Files
agents-marketplace/buyer/package.json
david 814fe928d1 buyer/cli: add cycle:once + reclaim:orphans for cron-driven buyer bots
run-cycle.ts: one full PostEscrow → Submit-wait → Accept cycle per
invocation, then exit. Lifts the stale-Open-ref workaround from the
run-agent-a.ts demo (Marketplace.submitPrompt returns a spent ref;
findSubmittedEscrowRef polls the indexer for the current Submitted
state). Flags: --env, --prompt-text, --payment-lovelace, --log-file,
--tag. Exit codes 0/2/4.

reclaim-orphans.ts: scans indexer for buyer's Open|Claimed escrows and
reclaims any past deliver_by. Skips not-yet-expired via the
"reclaim before deliver_by" TxConstructionError. Generalizes the
hardcoded-ref demo script.

Both for the two-mainnet-bot deploy on vector-modules-simulation
(see ~/.claude/plans/i-have-an-instance-ticklish-newt.md). No Claude
Code in the per-cycle path; cron + hand-curated prompts.txt files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 12:03:48 +02:00

42 lines
1.2 KiB
JSON

{
"name": "@marketplace/buyer",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
"build:ui": "vite build --config vite.config.ts",
"dev:ui": "vite --config vite.config.ts",
"start": "node --enable-source-maps dist/index.js",
"tx:accept": "tsx src/cli/accept.ts",
"cycle:once": "tsx src/cli/run-cycle.ts",
"reclaim:orphans": "tsx src/cli/reclaim-orphans.ts"
},
"dependencies": {
"@marketplace/shared": "workspace:*",
"@noble/ed25519": "^2.3.0",
"@noble/hashes": "^1.8.0",
"bech32": "^2.0.0",
"better-sqlite3": "^11.9.1",
"express": "^4.21.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/better-sqlite3": "^7.6.12",
"@types/express": "^5.0.3",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.0",
"happy-dom": "^15.7.4",
"supertest": "^7.0.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.7.2",
"vite": "^5.4.0"
}
}