@verax-ai/body 0.5.0 → 0.5.1
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/dist/demo.js +5 -2
- package/package.json +3 -3
package/dist/demo.js
CHANGED
|
@@ -358,12 +358,15 @@ export async function runDemo(argv, env, io, opts) {
|
|
|
358
358
|
writeOut("Approve this payment as the operator on this machine? [y/N]\n");
|
|
359
359
|
const answer = await readAnswer(io.stdin);
|
|
360
360
|
if (answer.trim().toLowerCase() === "y") {
|
|
361
|
+
// `verax approve` has the operator type the amount. Its own output is not
|
|
362
|
+
// shown here, so the demo asks the question that approve then reads.
|
|
363
|
+
writeOut(`Type the amount in minor units to approve it (${SPEND.amountMinor}):\n`);
|
|
361
364
|
const code = await runApprove(["approve", stateDir, held.ref], writeErr, () => undefined, {
|
|
362
365
|
isTTY: io.isTTY,
|
|
363
366
|
ask: async () => readAnswer(io.stdin),
|
|
364
367
|
}, { elevated: () => false });
|
|
365
368
|
if (code !== 0)
|
|
366
|
-
throw new Error(
|
|
369
|
+
throw new Error(`demo: approve failed; the amount to type was ${SPEND.amountMinor}`);
|
|
367
370
|
approved = true;
|
|
368
371
|
}
|
|
369
372
|
}
|
|
@@ -476,7 +479,7 @@ export async function runDemo(argv, env, io, opts) {
|
|
|
476
479
|
writeErr(`could not start the Conarium child (${detail}). run without --with-conarium\n`);
|
|
477
480
|
}
|
|
478
481
|
else {
|
|
479
|
-
writeErr(`demo: ${detail}\n`);
|
|
482
|
+
writeErr(`demo: ${detail.replace(/^demo: /, "")}\n`);
|
|
480
483
|
}
|
|
481
484
|
await cleanup();
|
|
482
485
|
return 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verax-ai/body",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@cedulon/cose": "0.13.1",
|
|
27
27
|
"@cedulon/effect-extract": "0.13.1",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
29
|
-
"@verax-ai/inventory": "^0.5.
|
|
30
|
-
"@verax-ai/proxy": "^0.5.
|
|
29
|
+
"@verax-ai/inventory": "^0.5.1",
|
|
30
|
+
"@verax-ai/proxy": "^0.5.1",
|
|
31
31
|
"jose": "^6.2.11"
|
|
32
32
|
},
|
|
33
33
|
"description": "VERAX body: an MCP server that decides, records and proves what an agent did.",
|