mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-08 01:51:14 +00:00
Tests calling loadManifest(true) with mocked fetch were writing test manifests (only 2 agents) to the real ~/.cache/spawn/manifest.json. This caused `spawn` to show only "Claude Code" and "Aider" instead of all 15 agents. Root cause: CACHE_DIR/CACHE_FILE were computed once at import time, so tests setting XDG_CACHE_HOME in beforeEach() had no effect. Fix: - Make CACHE_DIR/CACHE_FILE dynamic via getter functions so test isolation via XDG_CACHE_HOME actually works - Skip disk writes in test environments unless XDG_CACHE_HOME is explicitly set (tests that need disk cache use setupTestEnvironment which sets XDG_CACHE_HOME to a temp dir) - Bump CLI version to 0.2.88 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
533 B
JSON
22 lines
533 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.2.88",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|