@paybond/kit 0.11.4 → 0.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +2 -3
  2. package/dist/agent/interceptor.js +12 -3
  3. package/dist/cli/commands/agent.js +22 -14
  4. package/dist/cli/help.js +1 -1
  5. package/dist/cli/http-error-message.d.ts +13 -0
  6. package/dist/cli/http-error-message.js +93 -0
  7. package/dist/cli/offline-session.d.ts +9 -0
  8. package/dist/cli/offline-session.js +33 -0
  9. package/dist/cli/router.js +32 -1
  10. package/dist/gateway-retry.d.ts +16 -0
  11. package/dist/gateway-retry.js +83 -0
  12. package/dist/index.js +40 -111
  13. package/dist/mcp-server.js +1 -1
  14. package/dist/policy/sandbox-bootstrap.js +3 -2
  15. package/package.json +4 -2
  16. package/templates/manifest.json +9 -9
  17. package/templates/openai-shopping-agent/README.md +1 -1
  18. package/templates/openai-shopping-agent/package-lock.json +6 -5
  19. package/templates/openai-shopping-agent/package.json +2 -2
  20. package/templates/paybond-aws-operator/README.md +1 -1
  21. package/templates/paybond-aws-operator/package-lock.json +15 -5
  22. package/templates/paybond-aws-operator/package.json +2 -2
  23. package/templates/paybond-claude-agents-demo/README.md +1 -1
  24. package/templates/paybond-claude-agents-demo/package-lock.json +6 -5
  25. package/templates/paybond-claude-agents-demo/package.json +2 -2
  26. package/templates/paybond-invoice-agent/.github/workflows/smoke.yml +1 -1
  27. package/templates/paybond-invoice-agent/README.md +1 -1
  28. package/templates/paybond-invoice-agent/package.json +1 -1
  29. package/templates/paybond-invoice-agent/requirements.txt +1 -1
  30. package/templates/paybond-mcp-coding-agent/README.md +1 -1
  31. package/templates/paybond-mcp-coding-agent/package-lock.json +15 -5
  32. package/templates/paybond-mcp-coding-agent/package.json +2 -2
  33. package/templates/paybond-openai-agents-demo/README.md +1 -1
  34. package/templates/paybond-openai-agents-demo/package-lock.json +6 -5
  35. package/templates/paybond-openai-agents-demo/package.json +2 -2
  36. package/templates/paybond-procurement-agent/README.md +1 -1
  37. package/templates/paybond-procurement-agent/package-lock.json +15 -5
  38. package/templates/paybond-procurement-agent/package.json +2 -2
  39. package/templates/paybond-travel-agent/README.md +1 -1
  40. package/templates/paybond-travel-agent/package-lock.json +6 -5
  41. package/templates/paybond-travel-agent/package.json +2 -2
  42. package/templates/paybond-vercel-shopping-agent/README.md +1 -1
  43. package/templates/paybond-vercel-shopping-agent/package-lock.json +6 -5
  44. package/templates/paybond-vercel-shopping-agent/package.json +2 -2
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "name": "paybond-mcp-coding-agent",
8
8
  "dependencies": {
9
- "@paybond/kit": "^0.11.4"
9
+ "@paybond/kit": "^0.11.6"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/node": "^22.10.1",
@@ -47,9 +47,9 @@
47
47
  }
48
48
  },
49
49
  "node_modules/@paybond/kit": {
50
- "version": "0.11.4",
51
- "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.4.tgz",
52
- "integrity": "sha512-jURh2QsNyjXH/mLTTzHkCpNnbeChQhgt4LlLkMBtdYB7PoHKndz281lT5U4Mp4SNdgR/lguXOPLVKZbQDC23uw==",
50
+ "version": "0.11.6",
51
+ "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.6.tgz",
52
+ "integrity": "sha512-j4MYl0iqP2XG7Y2vshOxN+tC9ZdJCjlM9burdol2z6b2r45/IpgpA2qiy0L21uLo0qaB+Q9wakoPMIlmnS1Tsg==",
53
53
  "license": "Apache-2.0",
54
54
  "dependencies": {
55
55
  "@noble/ed25519": "^2.2.1",
@@ -57,7 +57,8 @@
57
57
  "@noble/secp256k1": "^2.2.3",
58
58
  "ajv": "^8.17.1",
59
59
  "blake3": "^2.1.7",
60
- "uuid": "^14.0.0"
60
+ "uuid": "^14.0.0",
61
+ "zod": "^4.4.3"
61
62
  },
62
63
  "bin": {
63
64
  "paybond": "dist/cli.js",
@@ -200,6 +201,15 @@
200
201
  "bin": {
201
202
  "uuid": "dist-node/bin/uuid"
202
203
  }
204
+ },
205
+ "node_modules/zod": {
206
+ "version": "4.4.3",
207
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
208
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
209
+ "license": "MIT",
210
+ "funding": {
211
+ "url": "https://github.com/sponsors/colinhacks"
212
+ }
203
213
  }
204
214
  }
205
215
  }
@@ -5,10 +5,10 @@
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
7
7
  "start": "node dist/index.js",
8
- "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation deploy.preview --requested-spend-cents 500 --evidence-preset cost_and_completion --result-body '{\"status\":\"completed\",\"cost_cents\":500}' --format json"
8
+ "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation deploy.preview --requested-spend-cents 500 --result-body '{\"status\":\"completed\",\"cost_cents\":500}' --format json"
9
9
  },
10
10
  "dependencies": {
11
- "@paybond/kit": "^0.11.4"
11
+ "@paybond/kit": "^0.11.6"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "^22.10.1",
@@ -10,7 +10,7 @@ cd paybond-openai-agents-demo
10
10
  cp .env.example .env.local
11
11
  paybond login
12
12
  npm install
13
- npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --evidence-preset cost_and_completion --result-body '{"status":"completed","cost_cents":2900}' --format json
13
+ npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --result-body '{"status":"completed","cost_cents":2900}' --format json
14
14
  ```
15
15
 
16
16
  ## Run the demo
@@ -7,7 +7,7 @@
7
7
  "name": "paybond-openai-agents-demo",
8
8
  "dependencies": {
9
9
  "@openai/agents": "^0.4.0",
10
- "@paybond/kit": "^0.11.4",
10
+ "@paybond/kit": "^0.11.6",
11
11
  "zod": "^4.2.0"
12
12
  },
13
13
  "devDependencies": {
@@ -169,9 +169,9 @@
169
169
  }
170
170
  },
171
171
  "node_modules/@paybond/kit": {
172
- "version": "0.11.4",
173
- "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.4.tgz",
174
- "integrity": "sha512-IUEccORrrn6A3WMXLpAnRwGgVJT84vD9o9/VgkVEsJkmYWJifCphdN8LGxIpC8PfpIitERhdib7b5Yqc4bvVXw==",
172
+ "version": "0.11.6",
173
+ "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.6.tgz",
174
+ "integrity": "sha512-j4MYl0iqP2XG7Y2vshOxN+tC9ZdJCjlM9burdol2z6b2r45/IpgpA2qiy0L21uLo0qaB+Q9wakoPMIlmnS1Tsg==",
175
175
  "license": "Apache-2.0",
176
176
  "dependencies": {
177
177
  "@noble/ed25519": "^2.2.1",
@@ -179,7 +179,8 @@
179
179
  "@noble/secp256k1": "^2.2.3",
180
180
  "ajv": "^8.17.1",
181
181
  "blake3": "^2.1.7",
182
- "uuid": "^14.0.0"
182
+ "uuid": "^14.0.0",
183
+ "zod": "^4.4.3"
183
184
  },
184
185
  "bin": {
185
186
  "paybond": "dist/cli.js",
@@ -5,10 +5,10 @@
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
7
7
  "start": "node dist/index.js",
8
- "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --evidence-preset cost_and_completion --result-body '{\"status\":\"completed\",\"cost_cents\":2900}' --format json"
8
+ "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --result-body '{\"status\":\"completed\",\"cost_cents\":2900}' --format json"
9
9
  },
10
10
  "dependencies": {
11
- "@paybond/kit": "^0.11.4",
11
+ "@paybond/kit": "^0.11.6",
12
12
  "@openai/agents": "^0.4.0",
13
13
  "zod": "^4.2.0"
14
14
  },
@@ -10,7 +10,7 @@ cd paybond-procurement-agent
10
10
  cp .env.example .env.local
11
11
  paybond login
12
12
  npm install
13
- npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation procurement.submit_po --requested-spend-cents 12000 --evidence-preset cost_and_completion --result-body '{"status":"completed","cost_cents":12000}' --format json
13
+ npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation procurement.submit_po --requested-spend-cents 12000 --result-body '{"status":"completed","cost_cents":12000}' --format json
14
14
  ```
15
15
 
16
16
  ## Run the demo
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "name": "paybond-procurement-agent",
8
8
  "dependencies": {
9
- "@paybond/kit": "^0.11.4"
9
+ "@paybond/kit": "^0.11.6"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/node": "^22.10.1",
@@ -47,9 +47,9 @@
47
47
  }
48
48
  },
49
49
  "node_modules/@paybond/kit": {
50
- "version": "0.11.4",
51
- "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.4.tgz",
52
- "integrity": "sha512-jAoF3PzfESfTC4bUNQN06+azFC0tAz6Jd7aE14SsNjZuopoNnxRE4BZfbl6qckBeuq+qxWmxTbHanaXVmcriZQ==",
50
+ "version": "0.11.6",
51
+ "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.6.tgz",
52
+ "integrity": "sha512-j4MYl0iqP2XG7Y2vshOxN+tC9ZdJCjlM9burdol2z6b2r45/IpgpA2qiy0L21uLo0qaB+Q9wakoPMIlmnS1Tsg==",
53
53
  "license": "Apache-2.0",
54
54
  "dependencies": {
55
55
  "@noble/ed25519": "^2.2.1",
@@ -57,7 +57,8 @@
57
57
  "@noble/secp256k1": "^2.2.3",
58
58
  "ajv": "^8.17.1",
59
59
  "blake3": "^2.1.7",
60
- "uuid": "^14.0.0"
60
+ "uuid": "^14.0.0",
61
+ "zod": "^4.4.3"
61
62
  },
62
63
  "bin": {
63
64
  "paybond": "dist/cli.js",
@@ -200,6 +201,15 @@
200
201
  "bin": {
201
202
  "uuid": "dist-node/bin/uuid"
202
203
  }
204
+ },
205
+ "node_modules/zod": {
206
+ "version": "4.4.3",
207
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
208
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
209
+ "license": "MIT",
210
+ "funding": {
211
+ "url": "https://github.com/sponsors/colinhacks"
212
+ }
203
213
  }
204
214
  }
205
215
  }
@@ -5,10 +5,10 @@
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
7
7
  "start": "node dist/index.js",
8
- "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation procurement.submit_po --requested-spend-cents 12000 --evidence-preset cost_and_completion --result-body '{\"status\":\"completed\",\"cost_cents\":12000}' --format json"
8
+ "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation procurement.submit_po --requested-spend-cents 12000 --result-body '{\"status\":\"completed\",\"cost_cents\":12000}' --format json"
9
9
  },
10
10
  "dependencies": {
11
- "@paybond/kit": "^0.11.4"
11
+ "@paybond/kit": "^0.11.6"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "^22.10.1",
@@ -10,7 +10,7 @@ cd paybond-travel-agent
10
10
  cp .env.example .env.local
11
11
  paybond login
12
12
  npm install
13
- npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation travel.book_hotel --requested-spend-cents 18700 --evidence-preset cost_and_completion --result-body '{"status":"completed","cost_cents":18700}' --format json
13
+ npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation travel.book_hotel --requested-spend-cents 18700 --result-body '{"status":"completed","cost_cents":18700}' --format json
14
14
  ```
15
15
 
16
16
  ## Run the demo
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@langchain/core": "^1.2.1",
10
10
  "@langchain/langgraph": "^1.4.7",
11
- "@paybond/kit": "^0.11.4",
11
+ "@paybond/kit": "^0.11.6",
12
12
  "zod": "^4.2.0"
13
13
  },
14
14
  "devDependencies": {
@@ -178,9 +178,9 @@
178
178
  }
179
179
  },
180
180
  "node_modules/@paybond/kit": {
181
- "version": "0.11.4",
182
- "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.4.tgz",
183
- "integrity": "sha512-6WjRRahbZB3FcY+qRlB4Q9JrW9SMP8i3bmR4mQweTOLVqcvRR6meLF+vQgPlTzIjbTk/+WOEwk6Iiz3GApixBw==",
181
+ "version": "0.11.6",
182
+ "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.6.tgz",
183
+ "integrity": "sha512-j4MYl0iqP2XG7Y2vshOxN+tC9ZdJCjlM9burdol2z6b2r45/IpgpA2qiy0L21uLo0qaB+Q9wakoPMIlmnS1Tsg==",
184
184
  "license": "Apache-2.0",
185
185
  "dependencies": {
186
186
  "@noble/ed25519": "^2.2.1",
@@ -188,7 +188,8 @@
188
188
  "@noble/secp256k1": "^2.2.3",
189
189
  "ajv": "^8.17.1",
190
190
  "blake3": "^2.1.7",
191
- "uuid": "^14.0.0"
191
+ "uuid": "^14.0.0",
192
+ "zod": "^4.4.3"
192
193
  },
193
194
  "bin": {
194
195
  "paybond": "dist/cli.js",
@@ -5,10 +5,10 @@
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
7
7
  "start": "node dist/index.js",
8
- "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation travel.book_hotel --requested-spend-cents 18700 --evidence-preset cost_and_completion --result-body '{\"status\":\"completed\",\"cost_cents\":18700}' --format json"
8
+ "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation travel.book_hotel --requested-spend-cents 18700 --result-body '{\"status\":\"completed\",\"cost_cents\":18700}' --format json"
9
9
  },
10
10
  "dependencies": {
11
- "@paybond/kit": "^0.11.4",
11
+ "@paybond/kit": "^0.11.6",
12
12
  "@langchain/core": "^1.2.1",
13
13
  "@langchain/langgraph": "^1.4.7",
14
14
  "zod": "^4.2.0"
@@ -10,7 +10,7 @@ cd paybond-vercel-shopping-agent
10
10
  cp .env.example .env.local
11
11
  paybond login
12
12
  npm install
13
- npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation commerce.checkout --requested-spend-cents 4500 --evidence-preset cost_and_completion --result-body '{"status":"completed","cost_cents":4500}' --format json
13
+ npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation commerce.checkout --requested-spend-cents 4500 --result-body '{"status":"completed","cost_cents":4500}' --format json
14
14
  ```
15
15
 
16
16
  ## Run the demo
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "name": "paybond-vercel-shopping-agent",
8
8
  "dependencies": {
9
- "@paybond/kit": "^0.11.4",
9
+ "@paybond/kit": "^0.11.6",
10
10
  "ai": "^5.0.0",
11
11
  "zod": "^4.2.0"
12
12
  },
@@ -104,9 +104,9 @@
104
104
  }
105
105
  },
106
106
  "node_modules/@paybond/kit": {
107
- "version": "0.11.4",
108
- "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.4.tgz",
109
- "integrity": "sha512-PS+ZPaKRYi8ElGyTqzMFzUeMMxDrIRDkuvmcDP9ZbaYu+GVgfvqQx8HQO2IIVQV6ztansdFrIBpwY5wqnjIrLg==",
107
+ "version": "0.11.6",
108
+ "resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.6.tgz",
109
+ "integrity": "sha512-j4MYl0iqP2XG7Y2vshOxN+tC9ZdJCjlM9burdol2z6b2r45/IpgpA2qiy0L21uLo0qaB+Q9wakoPMIlmnS1Tsg==",
110
110
  "license": "Apache-2.0",
111
111
  "dependencies": {
112
112
  "@noble/ed25519": "^2.2.1",
@@ -114,7 +114,8 @@
114
114
  "@noble/secp256k1": "^2.2.3",
115
115
  "ajv": "^8.17.1",
116
116
  "blake3": "^2.1.7",
117
- "uuid": "^14.0.0"
117
+ "uuid": "^14.0.0",
118
+ "zod": "^4.4.3"
118
119
  },
119
120
  "bin": {
120
121
  "paybond": "dist/cli.js",
@@ -5,10 +5,10 @@
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
7
7
  "start": "node dist/index.js",
8
- "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation commerce.checkout --requested-spend-cents 4500 --evidence-preset cost_and_completion --result-body '{\"status\":\"completed\",\"cost_cents\":4500}' --format json"
8
+ "smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation commerce.checkout --requested-spend-cents 4500 --result-body '{\"status\":\"completed\",\"cost_cents\":4500}' --format json"
9
9
  },
10
10
  "dependencies": {
11
- "@paybond/kit": "^0.11.4",
11
+ "@paybond/kit": "^0.11.6",
12
12
  "ai": "^5.0.0",
13
13
  "zod": "^4.2.0"
14
14
  },