@kairenxyz/dealrail
v0.1.1
Published
CLI and SDK for DealRail procurement, negotiation, and escrow rails
Maintainers
Readme
@kairenxyz/dealrail
Publishable CLI and SDK package for DealRail.
It supports two modes:
- Human mode: ASCII command deck output for terminal use
- Agent mode: stable JSON with
--json
Install
Preferred once published:
npx @kairenxyz/dealrail doctor --json
npx @kairenxyz/dealrail vend "benchmark report" --budget 0.12 --hours 24 --jsonGlobal install:
npm install -g @kairenxyz/dealrail
dealrail helpLocal project install:
npm install @kairenxyz/dealrailIf you want the client in code:
import { DealRailClient } from '@kairenxyz/dealrail';
const client = new DealRailClient('http://localhost:3001');
const health = await client.health();Commands
dealrail help
dealrail demo
dealrail doctor
dealrail doctor --json
dealrail status
dealrail scan benchmark report
dealrail providers compliance checks --max-price 0.12
dealrail vend "benchmark report" --budget 0.12 --hours 24
dealrail vend "security review" --budget 0.20 --hours 48 --queue
dealrail rails
dealrail jobs --limit 8
dealrail job 12Configuration
Set the API base URL with either:
export DEALRAIL_API_URL=http://localhost:3001or:
dealrail status --api http://localhost:3001Recommended operator flow:
dealrail doctor
dealrail vend "automation benchmark report" --budget 0.12 --hours 24
dealrail jobs --limit 4Recommended agent flow:
dealrail doctor --json
dealrail vend "automation benchmark report" --budget 0.12 --hours 24 --jsonDevelopment
npm install
npm run check
npm run build
npm run pack:dry-run
npm run cli -- help
npm run demo
npm run demo:walkthrough
npm run start -- helpPublish
Before first publish:
- Run
npm login - Run
npm run check - Run
npm run pack:dry-run - Run
npm publish --access public
npm docs:
- https://docs.npmjs.com/about-scopes
- https://docs.npmjs.com/creating-and-publishing-scoped-public-packages
Demo Walkthrough
A separate recordable CLI demo runner lives at demo/dealrail-demo.sh.
It animates typed commands, pauses between scenes, and runs a clean walkthrough for:
helpstatusscanvendjobsrails
Run it with:
cd cli
npm run build
npm run demo:walkthroughUseful knobs for recording:
TYPE_SPEED=0.01 PAUSE_SHORT=0.8 PAUSE_LONG=1.6 npm run demo:walkthrough
DEALRAIL_API_URL=http://localhost:3001 npm run demo:walkthrough