Files
routstrd/package.json
T
redshift d17079ea2c docs: link pi sessions to request/response logs
Adds docs/linking-sessions-to-request-logs.md and a bun mapper
(scripts/link-session-logs.ts, run via `bun run link-logs`) that joins a pi
session transcript to the daemon's request/response logs.

An assistant message stores the upstream response id as
`message.responseId`, and that same id appears verbatim in the response
log's SSE `chunk.text`, so the join is exact (no keyword/timestamp
heuristics). Request and response logs already share one id
(`requests/<id>.json` <-> `responses/<id>.jsonl`).
2026-10-04 20:51:18 +08:00

58 lines
1.7 KiB
JSON

{
"name": "routstrd",
"version": "0.4.12",
"module": "src/index.ts",
"type": "module",
"private": false,
"bin": {
"routstrd": "./dist/index.js"
},
"files": [
"dist/index.js",
"dist/daemon/index.js",
"src",
"!src/**/*.test.ts",
"!src/daemon/wallet/fixtures",
"README.md",
"SECURITY.md",
"SKILL.md"
],
"scripts": {
"start": "bun src/index.ts start",
"stop": "bun src/index.ts stop",
"monitor": "bun src/index.ts monitor",
"lint": "tsc --noEmit",
"test": "bun test",
"smoke": "scripts/smoke/chat-completions.sh",
"link-logs": "bun scripts/link-session-logs.ts",
"build": "bun build src/index.ts --target=bun --outfile=dist/index.js --external better-sqlite3 && bun build src/daemon/index.ts --target=bun --outfile=dist/daemon/index.js --external better-sqlite3",
"build:binary": "bun build --compile --no-compile-autoload-dotenv --no-compile-autoload-bunfig src/index.ts --outfile=dist/routstrd",
"prepublishOnly": "bun run build"
},
"devDependencies": {
"@types/bun": "latest",
"@types/qrcode": "^1.5.6"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@cashu/cashu-ts": "^4.3.0",
"@cashu/coco-core": "^1.0.1",
"@cashu/coco-sqlite-bun": "^1.0.1",
"@routstr/sdk": "^0.4.8",
"@scure/bip39": "^2.2.0",
"applesauce-core": "^5.1.0",
"applesauce-relay": "^5.1.0",
"applesauce-wallet-connect": "^6.0.0",
"coco-cashu-core": "1.1.2-rc.50",
"coco-cashu-plugin-npc": "2.4.1",
"commander": "^14.0.2",
"nostr-tools": "^2.12.0",
"qrcode": "^1.5.4",
"rxjs": "^7.8.1",
"yaml": "^2.9.0",
"zustand": "^5.0.5"
}
}