{
  "tool": {
    "slug": "dependency-plan",
    "title": "Dependency Plan",
    "category": "Install Safety",
    "description": "Extract missing npm dependencies from source code and return a cautious install command with typosquat warnings.",
    "buyerIntent": "Use when an agent generated code with imports and wants the smallest safe install step.",
    "tokenValue": "Avoids package guessing and reduces install-command retries.",
    "method": "POST",
    "rawBlueprintSlug": "agent-dependency-safe-installer",
    "priceUSDC": 0.015,
    "latencyTargetMs": 320,
    "status": "live-preview",
    "tags": [
      "npm",
      "dependencies",
      "install",
      "supply-chain"
    ],
    "requestSchema": {
      "type": "object",
      "required": [
        "code"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "existingDependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        }
      }
    },
    "responseSchema": {
      "type": "object",
      "properties": {
        "missingDependencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "installCommands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "safeToInstall": {
          "type": "boolean"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "sampleRequest": {
      "code": "import sharp from 'sharp';\nimport fs from 'node:fs';",
      "existingDependencies": [
        "astro"
      ]
    },
    "sampleResponse": {
      "missingDependencies": [
        "sharp"
      ],
      "installCommands": [
        "pnpm add sharp"
      ],
      "safeToInstall": true,
      "warnings": []
    },
    "endpoint": "/api/v1/agent-tools/dependency-plan/",
    "absoluteEndpoint": "https://elpa.space/api/v1/agent-tools/dependency-plan/",
    "pageUrl": "https://elpa.space/agent-tools/#dependency-plan",
    "rawBlueprintUrl": "https://elpa.space/raw/agent-dependency-safe-installer",
    "priceLabel": "0.015 USDC"
  },
  "payment": {
    "protocol": "x402",
    "implementation": "x402 v2 exact EVM facilitator with legacy Base USDC transaction-hash fallback",
    "network": "Base",
    "networkCaip2": "eip155:8453",
    "currency": "USDC",
    "tokenContract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "recipientAddress": "0xd9d6ae1d5a2128fea511460fac8e4dea58baf153",
    "paymentHeaders": [
      "PAYMENT-SIGNATURE",
      "X-PAYMENT",
      "x402-tx-hash (legacy)"
    ],
    "challengeHeader": "PAYMENT-REQUIRED",
    "responseHeader": "PAYMENT-RESPONSE",
    "facilitatorEnv": [
      "X402_FACILITATOR_URL",
      "X402_FACILITATOR_AUTHORIZATION"
    ],
    "maxTimeoutSeconds": 120,
    "priceUSDC": 0.015,
    "x402": {
      "x402Version": 2,
      "resource": {
        "url": "https://elpa.space/api/v1/agent-tools/dependency-plan/",
        "description": "Extract missing npm dependencies from source code and return a cautious install command with typosquat warnings.",
        "mimeType": "application/json",
        "serviceName": "ELPA Agent Tools",
        "tags": [
          "npm",
          "dependencies",
          "install",
          "supply-chain"
        ],
        "iconUrl": "https://elpa.space/logo.svg"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "15000",
          "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
          "payTo": "0xd9d6ae1d5a2128fea511460fac8e4dea58baf153",
          "maxTimeoutSeconds": 120,
          "extra": {
            "name": "USDC",
            "version": "2",
            "decimals": 6
          }
        }
      ],
      "paymentRequired": {
        "x402Version": 2,
        "error": "PAYMENT-SIGNATURE header is required",
        "resource": {
          "url": "https://elpa.space/api/v1/agent-tools/dependency-plan/",
          "description": "Extract missing npm dependencies from source code and return a cautious install command with typosquat warnings.",
          "mimeType": "application/json",
          "serviceName": "ELPA Agent Tools",
          "tags": [
            "npm",
            "dependencies",
            "install",
            "supply-chain"
          ],
          "iconUrl": "https://elpa.space/logo.svg"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "15000",
            "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
            "payTo": "0xd9d6ae1d5a2128fea511460fac8e4dea58baf153",
            "maxTimeoutSeconds": 120,
            "extra": {
              "name": "USDC",
              "version": "2",
              "decimals": 6
            }
          }
        ],
        "extensions": {
          "bazaar": {
            "info": {
              "discoverable": true,
              "category": "Install Safety",
              "tags": [
                "npm",
                "dependencies",
                "install",
                "supply-chain"
              ],
              "input": {
                "code": "import sharp from 'sharp';\nimport fs from 'node:fs';",
                "existingDependencies": [
                  "astro"
                ]
              },
              "output": {
                "missingDependencies": [
                  "sharp"
                ],
                "installCommands": [
                  "pnpm add sharp"
                ],
                "safeToInstall": true,
                "warnings": []
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "discoverable": {
                  "type": "boolean"
                },
                "category": {
                  "type": "string"
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "input": {
                  "type": "object",
                  "required": [
                    "code"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "existingDependencies": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "default": []
                    }
                  }
                },
                "output": {
                  "type": "object",
                  "properties": {
                    "missingDependencies": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "installCommands": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "safeToInstall": {
                      "type": "boolean"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "paymentRequiredBase64": "eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQQVlNRU5ULVNJR05BVFVSRSBoZWFkZXIgaXMgcmVxdWlyZWQiLCJyZXNvdXJjZSI6eyJ1cmwiOiJodHRwczovL2VscGEuc3BhY2UvYXBpL3YxL2FnZW50LXRvb2xzL2RlcGVuZGVuY3ktcGxhbi8iLCJkZXNjcmlwdGlvbiI6IkV4dHJhY3QgbWlzc2luZyBucG0gZGVwZW5kZW5jaWVzIGZyb20gc291cmNlIGNvZGUgYW5kIHJldHVybiBhIGNhdXRpb3VzIGluc3RhbGwgY29tbWFuZCB3aXRoIHR5cG9zcXVhdCB3YXJuaW5ncy4iLCJtaW1lVHlwZSI6ImFwcGxpY2F0aW9uL2pzb24iLCJzZX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JsZSI6eyJ0eXBlIjoiYm9vbGVhbiJ9LCJjYXRlZ29yeSI6eyJ0eXBlIjoic3RyaW5nIn0sInRhZ3MiOnsidHlwZSI6ImFycmF5IiwiaXRlbXMiOnsidHlwZSI6InN0cmluZyJ9fSwiaW5wdXQiOnsidHlwZSI6Im9iamVjdCIsInJlcXVpcmVkIjpbImNvZGUiXSwicHJvcGVydGllcyI6eyJjb2RlIjp7InR5cGUiOiJzdHJpbmcifSwiZXhpc3RpbmdEZXBlbmRlbmNpZXMiOnsidHlwZSI6ImFycmF5IiwiaXRlbXMiOnsidHlwZSI6InN0cmluZyJ9LCJkZWZhdWx0IjpbXX19fSwib3V0cHV0Ijp7InR5cGUiOiJvYmplY3QiLCJwcm9wZXJ0aWVzIjp7Im1pc3NpbmdEZXBlbmRlbmNpZXMiOnsidHlwZSI6ImFycmF5IiwiaXRlbXMiOnsidHlwZSI6InN0cmluZyJ9fSwiaW5zdGFsbENvbW1hbmRzIjp7InR5cGUiOiJhcnJheSIsIml0ZW1zIjp7InR5cGUiOiJzdHJpbmcifX0sInNhZmVUb0luc3RhbGwiOnsidHlwZSI6ImJvb2xlYW4ifSwid2FybmluZ3MiOnsidHlwZSI6ImFycmF5IiwiaXRlbXMiOnsidHlwZSI6InN0cmluZyJ9fX19fX19fX0=",
      "facilitator": {
        "url": "https://api.cdp.coinbase.com/platform/v2/x402",
        "verify": "/verify",
        "settle": "/settle"
      },
      "legacy": {
        "enabled": true,
        "header": "x402-tx-hash",
        "note": "Legacy Base USDC transaction-hash receipts remain accepted for manual testing, but PAYMENT-SIGNATURE is the primary x402 path."
      }
    }
  }
}