{
  "schema": "aipay-agent-distribution-v2",
  "name": "aipay-agent",
  "version": "1.38.0",
  "generated_at": "2026-11-23T14:59:02.612Z",
  "node": ">=22.18",
  "tarball": {
    "url": "https://aipay.im/downloads/aipay-agent-1.38.0.tgz",
    "file": "aipay-agent-1.38.0.tgz",
    "sha256": "3a3ff7d23e0dbcc8ccdeec57f3394a6696d76064e36977efcbb824780c9e95b0",
    "bytes": 308225,
    "root": "package/"
  },
  "entries": {
    "cli": "package/agent/cli.mjs",
    "mcp": "package/agent/mcp-server.mjs"
  },
  "tool_names": [
    "aipay_audit_tail",
    "aipay_capability_delegate",
    "aipay_capability_grant",
    "aipay_capability_import",
    "aipay_capability_list",
    "aipay_capability_revoke",
    "aipay_chains_list",
    "aipay_cloud_orders_cancel",
    "aipay_cloud_orders_create",
    "aipay_cloud_orders_get",
    "aipay_cloud_orders_list",
    "aipay_cloud_profile_get",
    "aipay_escalations_deny",
    "aipay_escalations_get",
    "aipay_escalations_list",
    "aipay_mandate_list",
    "aipay_merchant_products_create",
    "aipay_merchant_products_delete",
    "aipay_merchant_products_list",
    "aipay_merchant_profile_get",
    "aipay_merchant_profile_set",
    "aipay_orders_confirm",
    "aipay_orders_create",
    "aipay_orders_get",
    "aipay_orders_list",
    "aipay_pay",
    "aipay_payment_options",
    "aipay_payment_request_create",
    "aipay_policy_status",
    "aipay_quote",
    "aipay_receive_uri",
    "aipay_spending_kill",
    "aipay_spending_revive",
    "aipay_spends_list",
    "aipay_stream_close",
    "aipay_stream_list",
    "aipay_stream_open",
    "aipay_wallet_addresses",
    "aipay_wallet_balances",
    "aipay_wallet_history"
  ],
  "examples": {
    "tarball": {
      "url": "https://aipay.im/downloads/aipay-examples-1.38.0.tgz",
      "file": "aipay-examples-1.38.0.tgz",
      "sha256": "30048aa6b9a2f99c1fd03462c2d4a7bef1bc8058de7231c16f6422623846531c",
      "bytes": 23339
    },
    "files": [
      {
        "path": "examples/merchant-node/README.md",
        "bytes": 2628,
        "sha256": "4388ea145977bed3a9e21aa34734f538e99997dee2304b3807f472a39c6cfdca"
      },
      {
        "path": "examples/merchant-node/aipay.mjs",
        "bytes": 10740,
        "sha256": "ef07609d9bfd55fa0fab466618b3cde6e2262bbd5b1b7ce2d8ebd0756585e9d5"
      },
      {
        "path": "examples/merchant-node/aipay.test.mjs",
        "bytes": 10277,
        "sha256": "0c50b617a6ad5b3c52119873d8fe60ec99a794f0afc45a8d70badecb82896cab"
      },
      {
        "path": "examples/merchant-node/demo.mjs",
        "bytes": 2277,
        "sha256": "fed87a5f062617fc49bb61d9712b0c86cc3897e8f76d85bc3274ff77c8f869c5"
      },
      {
        "path": "examples/merchant-python/README.md",
        "bytes": 2498,
        "sha256": "c115bf46ad5aabc895de5be86012895b4117a418880bf6576d4080dc3b25e550"
      },
      {
        "path": "examples/merchant-python/aipay.py",
        "bytes": 11486,
        "sha256": "729ef893b052a5915f77068a18ffe4e98964ebe896e2596a5f71e476803818ad"
      },
      {
        "path": "examples/merchant-python/demo.py",
        "bytes": 2284,
        "sha256": "9acdb715eb76cbc53641492ef99ff51a0eac94db685c3358eb2f12e475988534"
      },
      {
        "path": "examples/merchant-python/selfcheck.py",
        "bytes": 9107,
        "sha256": "0892027f5b63cb392613f7795926895aaebcb2f202d8679be7f486cb23cea16c"
      },
      {
        "path": "examples/platform-node/README.md",
        "bytes": 4558,
        "sha256": "681eddb9bd3cdeafb631b32890e5c004fd7cee2e037d7c42a54c623c0f3826b8"
      },
      {
        "path": "examples/platform-node/aipay-platform.mjs",
        "bytes": 12843,
        "sha256": "e4a7ba31a251614a6a92be1d2848ebf970e00959307cbd694988223f94ff8f98"
      },
      {
        "path": "examples/platform-node/aipay-platform.test.mjs",
        "bytes": 11776,
        "sha256": "ed2bd30ac118fd688af36a40ef51ddf6190a75c94648b86fda02a343e406c39e"
      },
      {
        "path": "examples/platform-node/demo.mjs",
        "bytes": 3072,
        "sha256": "513faa885db964ab232d366838b3ed65127e1c8af35b5905f435346790710bef"
      },
      {
        "path": "examples/platform-node/sync-store.mjs",
        "bytes": 1635,
        "sha256": "04108e24cba8c39c9b11708c3d69641664853293ec9ba8a67c9af231c2f22c5f"
      }
    ]
  },
  "build": {
    "form": "bundled",
    "bundler": "esbuild",
    "bundler_version": "0.28.2",
    "sources": [
      "agent/cli.ts",
      "agent/mcp-server.ts"
    ],
    "inlined_modules": 74,
    "inlined_vendored_files": 17,
    "inlined_vendored_packages": [
      "@noble/hashes",
      "@scure/base",
      "@scure/bip39"
    ],
    "inlined_dependencies": [
      "@msg-chain/sdk"
    ],
    "options": {
      "platform": "node",
      "format": "esm",
      "target": "node22",
      "minify": false,
      "external": [
        "@ducanh2912/next-pwa",
        "@solana/pay",
        "@solana/spl-token",
        "@solana/web3.js",
        "@types/bip39",
        "@yudiel/react-qr-scanner",
        "bignumber.js",
        "bip39",
        "bs58",
        "clsx",
        "crypto-browserify",
        "dexie",
        "ed25519-hd-key",
        "ethers",
        "idb",
        "lucide-react",
        "next",
        "next-intl",
        "next-themes",
        "qrcode.react",
        "react",
        "react-dom",
        "react-qr-code",
        "sharp",
        "stream-browserify",
        "tailwind-merge",
        "vm-browserify"
      ],
      "alias": {
        "@": "./src"
      }
    },
    "note": "The published entry points are single-file ESM bundles. Internal sources (agent/, src/lib/, sdk/aipay-watch/src/) are inlined, never shipped as readable files; npm dependencies stay imports."
  },
  "dependencies": {
    "@solana/pay": "^0.2.6",
    "@solana/spl-token": "^0.4.14",
    "@solana/web3.js": "^1.98.4",
    "bignumber.js": "^9.3.1",
    "bip39": "^3.1.0",
    "bs58": "4.0.1",
    "dexie": "^4.3.0",
    "ed25519-hd-key": "^1.3.0",
    "ethers": "^6.16.0"
  },
  "files": [
    {
      "path": "agent/cli.mjs",
      "bytes": 689866,
      "sha256": "8c386448aa446499ca7b528437f407203399dd5e4535d3fa2c82bb3a76424dd3"
    },
    {
      "path": "agent/mcp-server.mjs",
      "bytes": 578542,
      "sha256": "f4d99ea1efc2a97370c12f0c69a34a2f8fab72c4eb2bde23992ddad38c6e4c20"
    },
    {
      "path": "package.json",
      "bytes": 503,
      "sha256": "fb67a765fe366d6cd35d9a5c9137846485b6bad5e1cd365e0d4863fb8bf24316"
    },
    {
      "path": "sdk/aipay-watch/README.md",
      "bytes": 5733,
      "sha256": "f473a15821dda2bfe019abfda00004adfe90b720d03ce5a60ee4a332a85d6439"
    },
    {
      "path": "sdk/aipay-watch/bin/aipay-watch.mjs",
      "bytes": 7782,
      "sha256": "c58dd3e849a2d16801a05a696e1161a1cfe9ee9a357e16dca6123af21300b6f9"
    },
    {
      "path": "sdk/aipay-watch/package.json",
      "bytes": 529,
      "sha256": "49bc7c407e9280509fc0eb991f779312161b83b8cac5b784487189138d3f4eb0"
    },
    {
      "path": "sdk/aipay-watch/src/api.mjs",
      "bytes": 3881,
      "sha256": "0414373f8ebea4c9e63cd88ee7676d774402888fff250a585eebc4ea12e68f9a"
    },
    {
      "path": "sdk/aipay-watch/src/evm.mjs",
      "bytes": 4191,
      "sha256": "59c61e4960406ebd79f5656bc4056fd22f9028aa567152c0a66ef99520be5ed5"
    },
    {
      "path": "sdk/aipay-watch/src/index.mjs",
      "bytes": 584,
      "sha256": "4d94ebe621fd0bce40854bbb0320686cfa5ef5a89a48142c71379f3f316d55d1"
    },
    {
      "path": "sdk/aipay-watch/src/solana.mjs",
      "bytes": 4510,
      "sha256": "3fe1fa360a3512e375f353e3c7ce05c988e7ee16e4261e3a72f235b5024b50d9"
    },
    {
      "path": "sdk/aipay-watch/src/tron.mjs",
      "bytes": 11407,
      "sha256": "2016fc8932043f00566d5e15d6feae0385f03c728563753e680d604514d2e53d"
    },
    {
      "path": "sdk/aipay-watch/src/watch.mjs",
      "bytes": 15579,
      "sha256": "af907365850c4baca9f6a61c9a567e70d40832f3b0e3a7b1dac06fdc0a43d28b"
    }
  ],
  "policy": {
    "mode": "allowlist+bundle",
    "allow_paths": [
      "agent/**",
      "src/lib/**",
      "sdk/aipay-watch/src/**"
    ],
    "shipped_paths": [
      "agent/cli.mjs",
      "agent/mcp-server.mjs",
      "sdk/aipay-watch/**",
      "package.json"
    ],
    "entry_points": [
      "agent/cli.ts",
      "agent/mcp-server.ts"
    ],
    "deny_paths": [
      "(^|\\/)\\.env",
      "(^|\\/)\\.git(\\/|$)",
      "(^|\\/)\\.pi(\\/|$)",
      "(^|\\/)\\.github(\\/|$)",
      "^docs\\/",
      "^contracts\\/",
      "^public\\/",
      "^scripts\\/",
      "^vendor\\/",
      "^tests?\\/",
      "(^|\\/)node_modules(\\/|$)",
      "(^|\\/)(id_rsa|id_ed25519|\\.npmrc|\\.netrc|keystore\\.json|approval\\.json|state\\.json)$"
    ],
    "deny_content": [
      "github_pat",
      "openai_key",
      "nvidia_key",
      "pem_block",
      "telegram_bot",
      "cloudflare_token",
      "internal_secret"
    ],
    "note": "A module is inlined only if the bundler resolves it under agent/, src/lib/ or sdk/aipay-watch/src/ (checked against the bundler metafile), and only the two bundles, the watcher SDK source and package.json are published — no .ts file and no src/ tree ever reach the tarball."
  },
  "legacy": {
    "manifest": "CHECKSUMS.txt",
    "install": "install.sh"
  },
  "sdk": {
    "name": "aipay-watch",
    "version": "0.3.0",
    "tarball": {
      "url": "https://aipay.im/downloads/aipay-watch-0.3.0.tgz",
      "file": "aipay-watch-0.3.0.tgz",
      "sha256": "471e9be7ac1d027216dacc6abe2a220fca94945d7d5da81afc1b4ef09627c07a",
      "bytes": 17020,
      "root": "package/"
    },
    "entries": {
      "cli": "package/bin/aipay-watch.mjs"
    },
    "install": "install-sdk.sh",
    "source_dir": "sdk/aipay-watch",
    "files": [
      {
        "path": "README.md",
        "bytes": 5733,
        "sha256": "f473a15821dda2bfe019abfda00004adfe90b720d03ce5a60ee4a332a85d6439"
      },
      {
        "path": "bin/aipay-watch.mjs",
        "bytes": 7782,
        "sha256": "c58dd3e849a2d16801a05a696e1161a1cfe9ee9a357e16dca6123af21300b6f9"
      },
      {
        "path": "package.json",
        "bytes": 529,
        "sha256": "49bc7c407e9280509fc0eb991f779312161b83b8cac5b784487189138d3f4eb0"
      },
      {
        "path": "src/api.mjs",
        "bytes": 3881,
        "sha256": "0414373f8ebea4c9e63cd88ee7676d774402888fff250a585eebc4ea12e68f9a"
      },
      {
        "path": "src/evm.mjs",
        "bytes": 4191,
        "sha256": "59c61e4960406ebd79f5656bc4056fd22f9028aa567152c0a66ef99520be5ed5"
      },
      {
        "path": "src/index.mjs",
        "bytes": 584,
        "sha256": "4d94ebe621fd0bce40854bbb0320686cfa5ef5a89a48142c71379f3f316d55d1"
      },
      {
        "path": "src/solana.mjs",
        "bytes": 4510,
        "sha256": "3fe1fa360a3512e375f353e3c7ce05c988e7ee16e4261e3a72f235b5024b50d9"
      },
      {
        "path": "src/tron.mjs",
        "bytes": 11407,
        "sha256": "2016fc8932043f00566d5e15d6feae0385f03c728563753e680d604514d2e53d"
      },
      {
        "path": "src/watch.mjs",
        "bytes": 15579,
        "sha256": "af907365850c4baca9f6a61c9a567e70d40832f3b0e3a7b1dac06fdc0a43d28b"
      }
    ],
    "note": "Reports a tx hash to POST /v1/orders/:reference/confirm; the server still verifies it."
  },
  "public_repo": {
    "files": [
      {
        "path": "ALLOWLIST.txt",
        "bytes": 287,
        "sha256": "c1f7ad9ad16e4f02340dfbbed5996759bdc38e2243b88a810e25953d657db4f9"
      },
      {
        "path": "CHECKSUMS.txt",
        "bytes": 427,
        "sha256": "7af4995222f5566f85440afedb2087b467d602d404b03ac1fa711bdfba74f347"
      },
      {
        "path": "DENYLIST.txt",
        "bytes": 663,
        "sha256": "63d8fe40e82f4b64e5d9bbaeab73979b7941a5a461125f6df6c99b1a391d1bd4"
      },
      {
        "path": "install-sdk.sh",
        "bytes": 1774,
        "sha256": "4f6eed5686167f28aa9e8adac652fb3c488f11ef680d6b69b6f9704f4295019a"
      },
      {
        "path": "install.sh",
        "bytes": 2181,
        "sha256": "7ab3322d7466b97b6a2e907d68d05f19b871aae87367045b3bc4709a7b06e0e3"
      },
      {
        "path": "mcp.example.json",
        "bytes": 301,
        "sha256": "9895e99e6bf3dc316768fcc4c81d6da436fce9855b522fc40a9bd87ed8521c30"
      },
      {
        "path": "README.md",
        "bytes": 3956,
        "sha256": "79151815ee9560137fe99ef10db1461d2dde72d3109c401ca58a43d1899861e6"
      },
      {
        "path": "sdk/aipay-watch/bin/aipay-watch.mjs",
        "bytes": 7782,
        "sha256": "c58dd3e849a2d16801a05a696e1161a1cfe9ee9a357e16dca6123af21300b6f9"
      },
      {
        "path": "sdk/aipay-watch/dist.json",
        "bytes": 3056,
        "sha256": "2f55bc6a32ad725f05d0a64c3abe0021b84299a59d9beae4a1bf305fafdf9d91"
      },
      {
        "path": "sdk/aipay-watch/package.json",
        "bytes": 529,
        "sha256": "49bc7c407e9280509fc0eb991f779312161b83b8cac5b784487189138d3f4eb0"
      },
      {
        "path": "sdk/aipay-watch/README.md",
        "bytes": 5733,
        "sha256": "f473a15821dda2bfe019abfda00004adfe90b720d03ce5a60ee4a332a85d6439"
      },
      {
        "path": "sdk/aipay-watch/src/api.mjs",
        "bytes": 3881,
        "sha256": "0414373f8ebea4c9e63cd88ee7676d774402888fff250a585eebc4ea12e68f9a"
      },
      {
        "path": "sdk/aipay-watch/src/evm.mjs",
        "bytes": 4191,
        "sha256": "59c61e4960406ebd79f5656bc4056fd22f9028aa567152c0a66ef99520be5ed5"
      },
      {
        "path": "sdk/aipay-watch/src/index.mjs",
        "bytes": 584,
        "sha256": "4d94ebe621fd0bce40854bbb0320686cfa5ef5a89a48142c71379f3f316d55d1"
      },
      {
        "path": "sdk/aipay-watch/src/solana.mjs",
        "bytes": 4510,
        "sha256": "3fe1fa360a3512e375f353e3c7ce05c988e7ee16e4261e3a72f235b5024b50d9"
      },
      {
        "path": "sdk/aipay-watch/src/tron.mjs",
        "bytes": 11407,
        "sha256": "2016fc8932043f00566d5e15d6feae0385f03c728563753e680d604514d2e53d"
      },
      {
        "path": "sdk/aipay-watch/src/watch.mjs",
        "bytes": 15579,
        "sha256": "af907365850c4baca9f6a61c9a567e70d40832f3b0e3a7b1dac06fdc0a43d28b"
      },
      {
        "path": "SECURITY.md",
        "bytes": 588,
        "sha256": "6f0ad0c23b8334e0b1ca1fc6018b271cf857b6273eec2293c4ae6d0ebf8c7432"
      }
    ],
    "sync": "the public repo pulls these from /downloads/pubrepo/ (see .github/workflows/sync.yml there)"
  }
}
