Files
TORCH/torch-config.json
T
google-labs-jules[bot]andPR0M3TH3AN d23e6ff0b3 Refactor memory scripts and fix configuration for new installs
- Replaced fragile inline Node.js scripts in `torch-config.json` with dedicated modules: `scripts/memory/retrieve.mjs` and `scripts/memory/store.mjs`.
- Updated `src/ops.mjs` initialization logic to dynamically configure `scheduler.memoryPolicyByCadence` with correct paths based on the installation directory.
- Added default memory policy configuration to `torch-config.example.json` to guide users.
- Injected `torch:memory:list` and `torch:memory:inspect` convenience scripts into the host `package.json` during `init`.
- Removed legacy shell scripts (`run-memory-retrieval.sh`, `run-memory-store.sh`).
- Verified memory scripts function correctly and pass linting.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 17:19:55 +00:00

62 lines
1.6 KiB
JSON

{
"nostrLock": {
"namespace": "torch",
"relays": [
"wss://relay.damus.io",
"wss://nos.lol",
"wss://relay.primal.net"
],
"ttlSeconds": 7200,
"queryTimeoutMs": 15000
},
"dashboard": {
"defaultCadenceView": "all",
"defaultStatusView": "all"
},
"scheduler": {
"firstPromptByCadence": {
"daily": "scheduler-update-agent",
"weekly": "bug-reproducer-agent"
},
"handoffCommandByCadence": {
"daily": "node scripts/agent/run-selected-prompt.mjs",
"weekly": "node scripts/agent/run-selected-prompt.mjs"
},
"memoryPolicyByCadence": {
"daily": {
"mode": "required",
"retrieveCommand": "node scripts/memory/retrieve.mjs",
"storeCommand": "node scripts/memory/store.mjs",
"retrieveSuccessMarkers": [
"MEMORY_RETRIEVED"
],
"storeSuccessMarkers": [
"MEMORY_STORED"
],
"retrieveArtifacts": [
".scheduler-memory/latest/daily/retrieve.ok"
],
"storeArtifacts": [
".scheduler-memory/latest/daily/store.ok"
]
},
"weekly": {
"mode": "required",
"retrieveCommand": "node scripts/memory/retrieve.mjs",
"storeCommand": "node scripts/memory/store.mjs",
"retrieveSuccessMarkers": [
"MEMORY_RETRIEVED"
],
"storeSuccessMarkers": [
"MEMORY_STORED"
],
"retrieveArtifacts": [
".scheduler-memory/latest/weekly/retrieve.ok"
],
"storeArtifacts": [
".scheduler-memory/latest/weekly/store.ok"
]
}
}
}
}