mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
- 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]>
66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"nostrLock": {
|
|
"namespace": "torch-example",
|
|
"relays": [
|
|
"wss://relay.damus.io",
|
|
"wss://nos.lol",
|
|
"wss://relay.primal.net"
|
|
],
|
|
"ttlSeconds": 7200,
|
|
"queryTimeoutMs": 30000,
|
|
"publishTimeoutMs": 15000,
|
|
"minSuccessfulRelayPublishes": 2,
|
|
"minActiveRelayPool": 2,
|
|
"relayFallbacks": [
|
|
"wss://relay.snort.social",
|
|
"wss://relay.nostr.band"
|
|
]
|
|
},
|
|
"dashboard": {
|
|
"defaultCadenceView": "daily",
|
|
"defaultStatusView": "active"
|
|
},
|
|
"scheduler": {
|
|
"firstPromptByCadence": {
|
|
"daily": "scheduler-update-agent",
|
|
"weekly": "bug-reproducer-agent"
|
|
},
|
|
"memoryPolicyByCadence": {
|
|
"daily": {
|
|
"mode": "required",
|
|
"retrieveCommand": "node torch/scripts/memory/retrieve.mjs",
|
|
"storeCommand": "node torch/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 torch/scripts/memory/retrieve.mjs",
|
|
"storeCommand": "node torch/scripts/memory/store.mjs",
|
|
"retrieveSuccessMarkers": [
|
|
"MEMORY_RETRIEVED"
|
|
],
|
|
"storeSuccessMarkers": [
|
|
"MEMORY_STORED"
|
|
],
|
|
"retrieveArtifacts": [
|
|
".scheduler-memory/latest/weekly/retrieve.ok"
|
|
],
|
|
"storeArtifacts": [
|
|
".scheduler-memory/latest/weekly/store.ok"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|