mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-11 20:47:58 +00:00
HTTP daemon: - GET /keys/api returns all stored provider API keys with baseUrl, key, balance, lastUsed, and aggregate total. - DELETE/POST /keys/api/delete removes a provider API key, refunding the remaining balance to a mint first (falls back to the first mint in the wallet). Key is removed manually if the refund fails. - Relaxed the post-auth method guard so /keys/api GET routes pass. coco-client: - stopLegacyCocod verifies the PID responds on the legacy cocod Unix socket before sending SIGTERM. routstrd writes its own PID to the shared cocod.pid while the in-process wallet is open, so the PID file alone is not a safe identifier. - Extracted injectable LegacyCocodStopOptions for testability. - Three stopLegacyCocod tests: live cocod, stale socket, no socket. build: - Point @routstr/sdk at the local checkout for coco-integration dev.
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "routstrd",
|
|
"version": "0.3.11",
|
|
"module": "src/index.ts",
|
|
"type": "module",
|
|
"private": false,
|
|
"bin": {
|
|
"routstrd": "./dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"start": "bun src/index.ts start",
|
|
"monitor": "bun src/index.ts monitor",
|
|
"lint": "tsc --noEmit",
|
|
"test": "bun test",
|
|
"build": "mkdir -p dist/daemon && bun build src/index.ts --target=bun --outfile=dist/index.js && bun build src/daemon/index.ts --target=bun --outfile=dist/daemon/index.js",
|
|
"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": "file://../routstr-sdk",
|
|
"@scure/bip39": "^2.2.0",
|
|
"applesauce-core": "^5.1.0",
|
|
"applesauce-relay": "^5.1.0",
|
|
"applesauce-wallet-connect": "^6.0.0",
|
|
"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"
|
|
}
|
|
}
|