@paybond/kit 0.11.4 → 0.11.5
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.
- package/README.md +2 -3
- package/dist/cli/commands/agent.js +3 -3
- package/dist/cli/help.js +1 -1
- package/dist/index.js +7 -5
- package/dist/mcp-server.js +1 -1
- package/dist/policy/sandbox-bootstrap.js +3 -2
- package/package.json +3 -2
- package/templates/manifest.json +9 -9
- package/templates/openai-shopping-agent/README.md +1 -1
- package/templates/openai-shopping-agent/package-lock.json +6 -5
- package/templates/openai-shopping-agent/package.json +2 -2
- package/templates/paybond-aws-operator/README.md +1 -1
- package/templates/paybond-aws-operator/package-lock.json +15 -5
- package/templates/paybond-aws-operator/package.json +2 -2
- package/templates/paybond-claude-agents-demo/README.md +1 -1
- package/templates/paybond-claude-agents-demo/package-lock.json +6 -5
- package/templates/paybond-claude-agents-demo/package.json +2 -2
- package/templates/paybond-invoice-agent/.github/workflows/smoke.yml +1 -1
- package/templates/paybond-invoice-agent/README.md +1 -1
- package/templates/paybond-invoice-agent/package.json +1 -1
- package/templates/paybond-invoice-agent/requirements.txt +1 -1
- package/templates/paybond-mcp-coding-agent/README.md +1 -1
- package/templates/paybond-mcp-coding-agent/package-lock.json +15 -5
- package/templates/paybond-mcp-coding-agent/package.json +2 -2
- package/templates/paybond-openai-agents-demo/README.md +1 -1
- package/templates/paybond-openai-agents-demo/package-lock.json +6 -5
- package/templates/paybond-openai-agents-demo/package.json +2 -2
- package/templates/paybond-procurement-agent/README.md +1 -1
- package/templates/paybond-procurement-agent/package-lock.json +15 -5
- package/templates/paybond-procurement-agent/package.json +2 -2
- package/templates/paybond-travel-agent/README.md +1 -1
- package/templates/paybond-travel-agent/package-lock.json +6 -5
- package/templates/paybond-travel-agent/package.json +2 -2
- package/templates/paybond-vercel-shopping-agent/README.md +1 -1
- package/templates/paybond-vercel-shopping-agent/package-lock.json +6 -5
- package/templates/paybond-vercel-shopping-agent/package.json +2 -2
package/README.md
CHANGED
|
@@ -66,13 +66,12 @@ End-to-end sandbox smoke (bind + execute + evidence) with no app code:
|
|
|
66
66
|
```bash
|
|
67
67
|
npx -p @paybond/kit paybond agent sandbox smoke \
|
|
68
68
|
--policy-file paybond.policy.yaml \
|
|
69
|
-
--operation travel.book_hotel \
|
|
70
|
-
--requested-spend-cents 18700 \
|
|
71
|
-
--evidence-preset cost_and_completion \
|
|
72
69
|
--result-body '{"status":"completed","cost_cents":18700}' \
|
|
73
70
|
--format json
|
|
74
71
|
```
|
|
75
72
|
|
|
73
|
+
With `--policy-file`, Kit sends `completion_preset` from the tool's `evidence_preset` and omits `evidence_schema` and `template_id` (Gateway rejects conflicting bootstrap fields). Requires `@paybond/kit` 0.11.5+.
|
|
74
|
+
|
|
76
75
|
`agent sandbox smoke` only requires `@paybond/kit`. Framework demo commands (`agent demo vercel-ai smoke`, etc.) load their optional peers on demand.
|
|
77
76
|
|
|
78
77
|
Offline local dev loop and trace dashboard:
|
|
@@ -711,6 +711,9 @@ export async function handleAgentSandboxSmoke(ctx, argv) {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
+
if (resolvedPolicyFile && presetFlag.value?.trim()) {
|
|
715
|
+
throw agentCliError("agent sandbox smoke accepts --policy-file or --evidence-preset, not both; completion_preset is derived from tool evidence_preset in the policy file", { code: "cli.usage.conflicting_args", category: "usage" });
|
|
716
|
+
}
|
|
714
717
|
const resolvedOperation = operationFlag.value?.trim() || solutionSmokeDefaults?.operation;
|
|
715
718
|
const resolvedSpend = spendFlag.value?.trim() || (solutionSmokeDefaults ? String(solutionSmokeDefaults.requestedSpendCents) : undefined);
|
|
716
719
|
const resolvedEvidencePreset = presetFlag.value?.trim() || solutionSmokeDefaults?.evidencePreset;
|
|
@@ -738,9 +741,6 @@ export async function handleAgentSandboxSmoke(ctx, argv) {
|
|
|
738
741
|
if (resolvedSpend) {
|
|
739
742
|
bindArgv.push("--requested-spend-cents", resolvedSpend);
|
|
740
743
|
}
|
|
741
|
-
if (resolvedEvidencePreset) {
|
|
742
|
-
bindArgv.push("--completion-preset", resolvedEvidencePreset);
|
|
743
|
-
}
|
|
744
744
|
}
|
|
745
745
|
else {
|
|
746
746
|
bindArgv.push("--operation", resolvedOperation, "--requested-spend-cents", resolvedSpend, "--completion-preset", resolvedEvidencePreset);
|
package/dist/cli/help.js
CHANGED
|
@@ -67,7 +67,7 @@ export const COMMAND_HELP = {
|
|
|
67
67
|
"agent tool execute": "Usage: paybond agent tool execute --run-id <id> --operation <name> --tool-call-id <id> [--arguments <json>] --result-body <json>|--result-file <path>\n\nRun one tool through the middleware interceptor: authorize, simulated execute, auto-evidence. CLI supplies --result-body; external processes are not invoked in v1.\n\nExamples:\n $ paybond agent tool execute --run-id run-123 --operation travel.book_hotel --tool-call-id call-1 --arguments '{\"city\":\"Lisbon\",\"estimated_price_cents\":18700}' --result-body '{\"reservation\":{\"status\":\"confirmed\",\"price_cents\":18700}}' --format json\n\nDocs: https://docs.paybond.ai/kit/agent-middleware",
|
|
68
68
|
"agent tool validate": "Usage: paybond agent tool validate --run-id <id> --operation <name> [--requested-spend-cents <n>] [--arguments <json>]\n\nAuthorize-only dry run (no execute, no evidence). Useful for agents checking budget before side effects.\n\nExamples:\n $ paybond agent tool validate --run-id run-123 --operation travel.book_hotel --requested-spend-cents 18700 --format json\n\nDocs: https://docs.paybond.ai/kit/agent-middleware",
|
|
69
69
|
"agent registry validate": "Usage: paybond agent registry validate --file <path>\n\nValidate a registry YAML/JSON file before bind (evidence_preset required on side-effecting tools).\n\nExamples:\n $ paybond agent registry validate --file ./paybond.agent.registry.yaml --format json\n\nDocs: https://docs.paybond.ai/kit/agent-middleware",
|
|
70
|
-
"agent sandbox smoke": "Usage: paybond agent sandbox smoke [--production] [--preset <id>
|
|
70
|
+
"agent sandbox smoke": "Usage: paybond agent sandbox smoke [--production] [--preset <id> | --policy-file <path> [--operation <name>] [--requested-spend-cents <n>]] | (--operation <name> --requested-spend-cents <n> --evidence-preset <id>) --result-body <json>|--result-file <path>\n\nOne-shot end-to-end sandbox lifecycle: bind, tool execute, combined result. With --policy-file, completion_preset is derived from each tool's evidence_preset in YAML — do not pass --evidence-preset (Gateway rejects conflicting bootstrap fields).\n\nExamples:\n $ paybond agent sandbox smoke --preset travel --result-body '{\"status\":\"completed\",\"cost_cents\":18700}' --format json\n $ paybond agent sandbox smoke --policy-file paybond.policy.yaml --result-body '{\"status\":\"completed\",\"cost_cents\":18700}' --format json\n $ paybond agent sandbox smoke --operation paid-tool --requested-spend-cents 100 --evidence-preset cost_and_completion --result-body '{\"status\":\"ok\",\"cost_cents\":100}' --format json\n\nDocs: https://docs.paybond.ai/kit/quickstart-agent",
|
|
71
71
|
"agent demo vercel-ai smoke": "Usage: paybond agent demo vercel-ai smoke [--production] --operation <name> --requested-spend-cents <n> --evidence-preset <id>\n\nBundled no-LLM Vercel AI SDK sandbox demo: toolApproval, wrapped execute, and auto-evidence via MockLanguageModelV4.\n\nExamples:\n $ paybond agent demo vercel-ai smoke --operation paid-tool --requested-spend-cents 100 --evidence-preset cost_and_completion --format json\n\nDocs: https://docs.paybond.ai/kit/vercel-ai",
|
|
72
72
|
"agent demo langgraph smoke": "Usage: paybond agent demo langgraph smoke [--production] [--runtime typescript|python] --operation <name> --requested-spend-cents <n> --evidence-preset <id>\n\nBundled no-LLM LangGraph sandbox demo: ToolNode interceptor, authorize, execute, and auto-evidence.\n\nExamples:\n $ paybond agent demo langgraph smoke --operation paid-tool --requested-spend-cents 100 --evidence-preset cost_and_completion --format json\n\nDocs: https://docs.paybond.ai/kit/langgraph",
|
|
73
73
|
"agent demo generic smoke": "Usage: paybond agent demo generic smoke [--production] [--runtime typescript|python] --operation <name> --requested-spend-cents <n> --evidence-preset <id>\n\nBundled no-LLM agent-agnostic sandbox demo: createPaybondGenericAgentConfig, wrapped execute, and auto-evidence.\n\nExamples:\n $ paybond agent demo generic smoke --operation paid-tool --requested-spend-cents 100 --evidence-preset cost_and_completion --format json\n\nDocs: https://docs.paybond.ai/kit/agent-agnostic",
|
package/dist/index.js
CHANGED
|
@@ -1108,11 +1108,13 @@ export class PaybondGuardrails {
|
|
|
1108
1108
|
if (input.completionPreset !== undefined) {
|
|
1109
1109
|
payload.completion_preset = input.completionPreset;
|
|
1110
1110
|
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1111
|
+
else {
|
|
1112
|
+
if (input.templateId !== undefined) {
|
|
1113
|
+
payload.template_id = input.templateId;
|
|
1114
|
+
}
|
|
1115
|
+
if (input.parameters !== undefined) {
|
|
1116
|
+
payload.parameters = input.parameters;
|
|
1117
|
+
}
|
|
1116
1118
|
}
|
|
1117
1119
|
const { res, text, url } = await this.postJSON("/v1/sandbox/guardrails/bootstrap", payload, { idempotencyKey: input.idempotencyKey });
|
|
1118
1120
|
if (!res.ok) {
|
package/dist/mcp-server.js
CHANGED
|
@@ -13,7 +13,7 @@ import { McpCapabilityTokenCache, mcpToolStoresCapabilityToken, parseMcpCapabili
|
|
|
13
13
|
import { createMcpPolicyGatewayAdapter, McpPolicyReloadGate, parseMcpPolicyReloadConfig, } from "./mcp-policy-reload.js";
|
|
14
14
|
import { DEFAULT_PAYBOND_GATEWAY_BASE_URL, GatewayFraudClient, GatewaySignalClient, } from "./index.js";
|
|
15
15
|
const SERVER_NAME = "Paybond MCP";
|
|
16
|
-
const SERVER_VERSION = "0.11.
|
|
16
|
+
const SERVER_VERSION = "0.11.5";
|
|
17
17
|
const MCP_PROTOCOL_VERSION = "2025-11-25";
|
|
18
18
|
const DEFAULT_PRINCIPAL_PATH = "/v1/auth/principal";
|
|
19
19
|
const DEFAULT_RECOGNITION_VERIFIER_ID = "paybond-gateway";
|
|
@@ -59,12 +59,13 @@ export function policySandboxBootstrap(document, options = {}) {
|
|
|
59
59
|
completionPreset: evidencePreset,
|
|
60
60
|
metadata: options.metadata,
|
|
61
61
|
idempotencyKey: options.idempotencyKey,
|
|
62
|
-
templateId: preset.harbor_template_id,
|
|
63
|
-
parameters: preset.parameters,
|
|
64
62
|
};
|
|
65
63
|
// Gateway rejects requests that include both completion_preset and evidence_schema.
|
|
64
|
+
// Gateway also rejects completion_preset and template_id together — catalog resolves the template.
|
|
66
65
|
if (!evidencePreset.trim()) {
|
|
67
66
|
bootstrap.evidenceSchema = options.evidenceSchema ?? preset.evidence_schema;
|
|
67
|
+
bootstrap.templateId = preset.harbor_template_id;
|
|
68
|
+
bootstrap.parameters = preset.parameters;
|
|
68
69
|
}
|
|
69
70
|
else if (options.evidenceSchema !== undefined) {
|
|
70
71
|
throw new PaybondPolicySandboxBootstrapError("completion_preset and evidenceSchema are mutually exclusive for sandbox bootstrap");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paybond/kit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"mcpName": "io.github.nonameuserd/paybond",
|
|
5
5
|
"description": "Paybond Kit for TypeScript: agent spend governance for paid tool calls with spend authorization, evidence receipts, refunds, disputes, hosted Gateway sessions, and settlement.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -153,7 +153,8 @@
|
|
|
153
153
|
"@noble/secp256k1": "^2.2.3",
|
|
154
154
|
"ajv": "^8.17.1",
|
|
155
155
|
"blake3": "^2.1.7",
|
|
156
|
-
"uuid": "^14.0.0"
|
|
156
|
+
"uuid": "^14.0.0",
|
|
157
|
+
"zod": "^4.4.3"
|
|
157
158
|
},
|
|
158
159
|
"devDependencies": {
|
|
159
160
|
"@anthropic-ai/claude-agent-sdk": "^0.3.197",
|
package/templates/manifest.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"evidence_preset": "cost_and_completion",
|
|
14
14
|
"smoke_result_body": { "status": "completed", "cost_cents": 18700 },
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@paybond/kit": "^0.11.
|
|
16
|
+
"@paybond/kit": "^0.11.5",
|
|
17
17
|
"@langchain/core": "^1.2.1",
|
|
18
18
|
"@langchain/langgraph": "^1.4.7",
|
|
19
19
|
"zod": "^4.2.0"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"evidence_preset": "cost_and_completion",
|
|
34
34
|
"smoke_result_body": { "status": "completed", "cost_cents": 4500 },
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@paybond/kit": "^0.11.
|
|
36
|
+
"@paybond/kit": "^0.11.5",
|
|
37
37
|
"ai": "^5.0.0",
|
|
38
38
|
"zod": "^4.2.0"
|
|
39
39
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"evidence_preset": "cost_and_completion",
|
|
53
53
|
"smoke_result_body": { "status": "completed", "cost_cents": 2900 },
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@paybond/kit": "^0.11.
|
|
55
|
+
"@paybond/kit": "^0.11.5",
|
|
56
56
|
"@openai/agents": "^0.4.0",
|
|
57
57
|
"zod": "^4.2.0"
|
|
58
58
|
},
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"evidence_preset": "cost_and_completion",
|
|
72
72
|
"smoke_result_body": { "status": "completed", "cost_cents": 4500 },
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@paybond/kit": "^0.11.
|
|
74
|
+
"@paybond/kit": "^0.11.5",
|
|
75
75
|
"@openai/agents": "^0.4.0",
|
|
76
76
|
"zod": "^4.2.0"
|
|
77
77
|
},
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"evidence_preset": "cost_and_completion",
|
|
91
91
|
"smoke_result_body": { "status": "completed", "cost_cents": 18700 },
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@paybond/kit": "^0.11.
|
|
93
|
+
"@paybond/kit": "^0.11.5",
|
|
94
94
|
"@anthropic-ai/claude-agent-sdk": "^0.2.100",
|
|
95
95
|
"zod": "^4.2.0"
|
|
96
96
|
},
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"evidence_preset": "cost_and_completion",
|
|
111
111
|
"smoke_result_body": { "status": "completed", "cost_cents": 500 },
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"@paybond/kit": "^0.11.
|
|
113
|
+
"@paybond/kit": "^0.11.5"
|
|
114
114
|
},
|
|
115
115
|
"mcp_tool_policy": "spend-write"
|
|
116
116
|
},
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"evidence_preset": "cost_and_completion",
|
|
128
128
|
"smoke_result_body": { "status": "completed", "cost_cents": 12000 },
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@paybond/kit": "^0.11.
|
|
130
|
+
"@paybond/kit": "^0.11.5"
|
|
131
131
|
},
|
|
132
132
|
"demo_mode": "generic"
|
|
133
133
|
},
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"evidence_preset": "cost_and_completion",
|
|
144
144
|
"smoke_result_body": { "status": "completed", "cost_cents": 12500 },
|
|
145
145
|
"dependencies": {
|
|
146
|
-
"@paybond/kit": "^0.11.
|
|
146
|
+
"@paybond/kit": "^0.11.5"
|
|
147
147
|
},
|
|
148
148
|
"demo_mode": "generic"
|
|
149
149
|
},
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"evidence_preset": "cost_and_completion",
|
|
160
160
|
"smoke_result_body": { "status": "completed", "cost_cents": 2900 },
|
|
161
161
|
"python_dependencies": {
|
|
162
|
-
"paybond-kit": ">=0.11.
|
|
162
|
+
"paybond-kit": ">=0.11.5",
|
|
163
163
|
"langgraph": ">=1.2.0"
|
|
164
164
|
},
|
|
165
165
|
"demo_import": "paybond_kit.langgraph_sandbox_demo",
|
|
@@ -10,7 +10,7 @@ cd openai-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 --
|
|
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
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "openai-shopping-agent",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@openai/agents": "^0.4.0",
|
|
10
|
-
"@paybond/kit": "^0.11.
|
|
10
|
+
"@paybond/kit": "^0.11.5",
|
|
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.
|
|
173
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
174
|
-
"integrity": "sha512-
|
|
172
|
+
"version": "0.11.5",
|
|
173
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
174
|
+
"integrity": "sha512-Xaw0LnF/0iP7tEYqrNk/KtIjAFhBvVPezIItKeU30IZfIEnaW8iPMryw74r0IatL9uby2Ax06Icid1N5u8IaSg==",
|
|
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 commerce.checkout --requested-spend-cents 4500 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
12
12
|
"@openai/agents": "^0.4.0",
|
|
13
13
|
"zod": "^4.2.0"
|
|
14
14
|
},
|
|
@@ -10,7 +10,7 @@ cd paybond-aws-operator
|
|
|
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 aws.ec2.start_instance --requested-spend-cents 12500 --
|
|
13
|
+
npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation aws.ec2.start_instance --requested-spend-cents 12500 --result-body '{"status":"completed","cost_cents":12500}' --format json
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Run the demo
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "paybond-aws-operator",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@paybond/kit": "^0.11.
|
|
9
|
+
"@paybond/kit": "^0.11.5"
|
|
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.
|
|
51
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
52
|
-
"integrity": "sha512
|
|
50
|
+
"version": "0.11.5",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
52
|
+
"integrity": "sha512-rU45zNsuIKzkL1YhHu5q9Mg79GSoiYg5fii+Rv4jk/4y9MDQfvn+MZAUR52Uzr71z1vBkqBo3NxgSmtQDtNDew==",
|
|
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 aws.ec2.start_instance --requested-spend-cents 12500 --
|
|
8
|
+
"smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation aws.ec2.start_instance --requested-spend-cents 12500 --result-body '{\"status\":\"completed\",\"cost_cents\":12500}' --format json"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@paybond/kit": "^0.11.
|
|
11
|
+
"@paybond/kit": "^0.11.5"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "^22.10.1",
|
|
@@ -10,7 +10,7 @@ cd paybond-claude-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 travel.book_hotel --requested-spend-cents 18700 --
|
|
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
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "paybond-claude-agents-demo",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@anthropic-ai/claude-agent-sdk": "^0.2.100",
|
|
10
|
-
"@paybond/kit": "^0.11.
|
|
10
|
+
"@paybond/kit": "^0.11.5",
|
|
11
11
|
"zod": "^4.2.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
@@ -260,9 +260,9 @@
|
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
"node_modules/@paybond/kit": {
|
|
263
|
-
"version": "0.11.
|
|
264
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
265
|
-
"integrity": "sha512-
|
|
263
|
+
"version": "0.11.5",
|
|
264
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
265
|
+
"integrity": "sha512-7rWc4Qn9s1ufEsL5XcqptmgYt/+kMnp+rWvLWOsG+kif9hgjPwVwq5OfEhiWFmwFxKaseBvY95KDPcHDJgmP5A==",
|
|
266
266
|
"license": "Apache-2.0",
|
|
267
267
|
"dependencies": {
|
|
268
268
|
"@noble/ed25519": "^2.2.1",
|
|
@@ -270,7 +270,8 @@
|
|
|
270
270
|
"@noble/secp256k1": "^2.2.3",
|
|
271
271
|
"ajv": "^8.17.1",
|
|
272
272
|
"blake3": "^2.1.7",
|
|
273
|
-
"uuid": "^14.0.0"
|
|
273
|
+
"uuid": "^14.0.0",
|
|
274
|
+
"zod": "^4.4.3"
|
|
274
275
|
},
|
|
275
276
|
"bin": {
|
|
276
277
|
"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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
12
12
|
"@anthropic-ai/claude-agent-sdk": "^0.2.100",
|
|
13
13
|
"zod": "^4.2.0"
|
|
14
14
|
},
|
|
@@ -14,6 +14,6 @@ jobs:
|
|
|
14
14
|
python-version: "3.11"
|
|
15
15
|
- uses: actions/checkout@v4
|
|
16
16
|
- run: pip install -r requirements.txt
|
|
17
|
-
- run: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --
|
|
17
|
+
- run: 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
|
|
18
18
|
env:
|
|
19
19
|
PAYBOND_API_KEY: ${{ secrets.PAYBOND_SANDBOX_API_KEY }}
|
|
@@ -10,7 +10,7 @@ cd paybond-invoice-agent
|
|
|
10
10
|
cp .env.example .env.local
|
|
11
11
|
paybond-kit-login
|
|
12
12
|
pip install -r requirements.txt
|
|
13
|
-
npm run smoke # or: paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
3
|
"scripts": {
|
|
4
|
-
"smoke": "paybond agent sandbox smoke --policy-file paybond.policy.yaml --operation saas.provision_seat --requested-spend-cents 2900 --
|
|
4
|
+
"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"
|
|
5
5
|
}
|
|
6
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
paybond-kit>=0.11.
|
|
1
|
+
paybond-kit>=0.11.5
|
|
2
2
|
langgraph>=1.2.0
|
|
@@ -10,7 +10,7 @@ cd paybond-mcp-coding-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 deploy.preview --requested-spend-cents 500 --
|
|
13
|
+
npm run smoke # or: 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
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Run the demo
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "paybond-mcp-coding-agent",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@paybond/kit": "^0.11.
|
|
9
|
+
"@paybond/kit": "^0.11.5"
|
|
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.
|
|
51
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
52
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "0.11.5",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
52
|
+
"integrity": "sha512-2FMq8b++6AmgcICEfUzYnW3w2FqAjgbT9b0bslW0Fm9e5QNGbc7HwcXkVVzqJGqPySs4Ht8NtePrdEuliT0TXA==",
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5"
|
|
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 --
|
|
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.
|
|
10
|
+
"@paybond/kit": "^0.11.5",
|
|
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.
|
|
173
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
174
|
-
"integrity": "sha512-
|
|
172
|
+
"version": "0.11.5",
|
|
173
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
174
|
+
"integrity": "sha512-zDczNvZilk/4F1GBxCrExbSItw+E0ZlSvhSVLx9HQb8p2pYnKoA7ceapxuzXPKAc46grFyj6sXTKKob7qMtDyQ==",
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
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 --
|
|
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.
|
|
9
|
+
"@paybond/kit": "^0.11.5"
|
|
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.
|
|
51
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
52
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "0.11.5",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
52
|
+
"integrity": "sha512-hcoFqLsGAlI3sQmdpA5P4SxCeH/ZawRgbUSx0+9ouJkoGVw4rfwUk2EPptjmjN27Y/4Gow/PgQA5K2ao0QX0WA==",
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5"
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
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.
|
|
182
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
183
|
-
"integrity": "sha512-
|
|
181
|
+
"version": "0.11.5",
|
|
182
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
183
|
+
"integrity": "sha512-eyIWPe/jQGAW79+dL3eRDsEsZcWSLAP5Kq0vvULq3n9VYjHlOnmlH+erhMgkPCtX8n8P+Nm9jH7lvOSP8FXIpg==",
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
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 --
|
|
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.
|
|
9
|
+
"@paybond/kit": "^0.11.5",
|
|
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.
|
|
108
|
-
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.
|
|
109
|
-
"integrity": "sha512-
|
|
107
|
+
"version": "0.11.5",
|
|
108
|
+
"resolved": "https://registry.npmjs.org/@paybond/kit/-/kit-0.11.5.tgz",
|
|
109
|
+
"integrity": "sha512-enBWsO/QADB1wjFpG74dPoadswT/l/5qg/l5LNUSQ+8Lt7+z8TZ2E30X08lHk0eauNOhVhUCmDnSZ8Eba2g7fw==",
|
|
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 --
|
|
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.
|
|
11
|
+
"@paybond/kit": "^0.11.5",
|
|
12
12
|
"ai": "^5.0.0",
|
|
13
13
|
"zod": "^4.2.0"
|
|
14
14
|
},
|