Adds scripts/record_near_spend_guard_demo.mjs (npm run record:near-spend-guard), which asciinema-records the real `npm run demo:near-spend-guard` terminal session and renders it with agg/ffmpeg. Ran it for real against the live spendguard-024e8dd6f7.testnet contract: full build, 18/18 unit tests, sandbox integration test, then 25 real spend_to_seller calls, a real repay_credit_line, a real top_up_allowance, one more real spend on the same key, a dispute freeze, and a rejected post-freeze call. Commits the real artifacts: media/cred402-near-spend-guard-demo.cast (.gif, .mp4, poster.png). Updates SUBMISSION-CHECKLIST.md to mark the video done and adds a ready-to-post X caption draft (X-POST-DRAFT-2026-11-07.md) since no social-posting credentials exist in this environment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
97 lines
4.3 KiB
JSON
97 lines
4.3 KiB
JSON
{
|
|
"name": "cred402",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Cred402 — credit lines for autonomous RWA agents on Casper. x402 machine-to-machine revenue becomes on-chain reputation and DeFi credit.",
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx watch api/server.ts",
|
|
"start": "tsx api/server.ts",
|
|
"demo": "tsx scripts/run_demo_flow.ts",
|
|
"demo:dispute": "tsx scripts/run_demo_flow.ts --dispute",
|
|
"demo:multichain": "tsx scripts/multichain_demo.ts",
|
|
"demo:marketplace": "tsx scripts/marketplace_demo.ts",
|
|
"demo:realfi": "tsx scripts/realfi_demo.ts",
|
|
"ship:check": "tsx scripts/ship_first_check.ts",
|
|
"casper:health": "tsx scripts/casper_health.ts",
|
|
"casper:keygen": "tsx scripts/casper_keygen.ts",
|
|
"near:keygen": "tsx scripts/near_keygen.ts",
|
|
"near:spend-guard:deploy": "tsx scripts/near_spend_guard_deploy.ts",
|
|
"near:spend-guard:redeploy": "tsx scripts/near_spend_guard_redeploy.ts",
|
|
"demo:near-spend-guard": "tsx scripts/near_spend_guard_full_demo.ts",
|
|
"casper:sidecar": "tsx scripts/sidecar_watch.ts",
|
|
"graphql:sdl": "tsx scripts/export_graphql_sdl.ts",
|
|
"cli": "tsx cli/cred402.ts",
|
|
"status": "tsx scripts/status.ts",
|
|
"webhook:receiver": "tsx examples/webhook-receiver/server.ts",
|
|
"notify": "tsx services/notification-service/src/main.ts",
|
|
"index:journal": "tsx -e \"console.log('run the Go indexer: cd services/event-indexer && go run ./cmd/indexer --journal \\$CRED402_DATA_DIR/events.ndjson')\"",
|
|
"demo:request-evidence": "tsx scripts/steps.ts request-evidence",
|
|
"demo:pay-x402": "tsx scripts/steps.ts pay-x402",
|
|
"demo:submit-evidence": "tsx scripts/steps.ts submit-evidence",
|
|
"demo:score-agent": "tsx scripts/steps.ts score-agent",
|
|
"deploy:testnet": "tsx scripts/deploy_testnet.ts",
|
|
"seed": "tsx scripts/seed_demo_agents.ts",
|
|
"mcp": "tsx mcp/server.ts",
|
|
"mcp:sdk": "tsx mcp/server_sdk.ts",
|
|
"mcp:demo": "tsx scripts/mcp_demo.ts",
|
|
"sdk:demo": "tsx scripts/sdk_demo.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "tsx --test test/*.test.ts",
|
|
"simulate": "tsx scripts/simulate.ts",
|
|
"demo:bureau": "tsx scripts/demo_bureau.ts",
|
|
"record:demo": "node scripts/record_demo.mjs",
|
|
"demo:x402": "tsx scripts/universal_credit_demo.ts",
|
|
"demo:gateway": "tsx scripts/gateway_demo.ts",
|
|
"flare:credit": "tsx scripts/flare_credit.ts",
|
|
"keeperhub:execute": "tsx scripts/keeperhub_execute.ts",
|
|
"keeper:run": "tsx scripts/keeper_run.ts",
|
|
"automations:run": "tsx scripts/automations_run.ts",
|
|
"collateral:run": "tsx scripts/collateral_run.ts",
|
|
"x402:market": "tsx scripts/x402_market_run.ts",
|
|
"fassets:mint": "tsx scripts/fassets_mint_run.ts",
|
|
"scheduler:run": "tsx scripts/scheduler_run.ts",
|
|
"demo:grand": "tsx scripts/grand_demo.ts",
|
|
"record:hackathon": "node scripts/record_hackathon_demo.mjs",
|
|
"submit:check": "tsx scripts/submission_check.ts",
|
|
"x402:algorand:check": "tsx scripts/algorand_x402_check.ts",
|
|
"x402:algorand:ready": "tsx scripts/algorand_x402_ready.ts",
|
|
"x402:algorand:release-check": "tsx scripts/algorand_x402_release_check.ts",
|
|
"x402:algorand:pay": "tsx scripts/algorand_x402_pay.ts",
|
|
"x402:algorand:refunds": "tsx scripts/algorand_x402_refunds.ts",
|
|
"x402:algorand:challenge-check": "tsx scripts/algorand_x402_challenge_check.ts",
|
|
"record:algorand": "node scripts/record_algorand_x402_demo.mjs",
|
|
"x402:qie:check": "tsx scripts/qie_x402_check.ts",
|
|
"x402:qie:ready": "tsx scripts/qie_x402_ready.ts",
|
|
"x402:qie:release-check": "tsx scripts/qie_x402_release_check.ts",
|
|
"record:near-spend-guard": "node scripts/record_near_spend_guard_demo.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.0",
|
|
"playwright": "^1.61.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2"
|
|
},
|
|
"dependencies": {
|
|
"@algorandfoundation/algokit-utils": "^10.0.0-alpha.46",
|
|
"@casper-ecosystem/casper-eip-712": "^1.2.1",
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"@noble/curves": "^1.9.7",
|
|
"@noble/hashes": "^1.8.0",
|
|
"@x402/avm": "^2.23.0",
|
|
"@x402/core": "^2.23.0",
|
|
"@x402/evm": "^2.23.0",
|
|
"@x402/extensions": "^2.23.0",
|
|
"@x402/fetch": "^2.23.0",
|
|
"casper-js-sdk": "^5.0.12",
|
|
"graphql": "^16.14.2",
|
|
"near-api-js": "^7.3.1",
|
|
"plaid": "^42.2.0",
|
|
"stripe": "^22.2.1"
|
|
}
|
|
}
|