mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
The `files` array in package.json was missing 7 source modules and the entire `src/services/` directory tree that `src/lib.mjs` imports at runtime. Installing TORCH via `npm install` would crash immediately with ERR_MODULE_NOT_FOUND on any CLI command. Missing files added: cli-parser.mjs, errors.mjs, utils.mjs, lock-utils.mjs, cmd-proposal.mjs, cmd-rollback.mjs, src/services/ (memory + governance), and migrations/ for DB schema setup. Also adds: engines (node >=22), license (MIT), repository, keywords, exports map, LICENSE file — so the landing page install flow (`npm install ... && npx torch-lock init`) works out of the box. https://claude.ai/code/session_01CJFvLoy2BA8n9qk3z5BQQA
84 lines
2.9 KiB
JSON
84 lines
2.9 KiB
JSON
{
|
|
"name": "torch-lock",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"description": "TORCH — portable Nostr-based task locking toolkit for multi-agent coordination",
|
|
"main": "src/lib.mjs",
|
|
"exports": {
|
|
".": "./src/lib.mjs",
|
|
"./constants": "./src/constants.mjs",
|
|
"./lock-ops": "./src/lock-ops.mjs"
|
|
},
|
|
"bin": {
|
|
"torch-lock": "./bin/torch-lock.mjs"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/PR0M3TH3AN/TORCH.git"
|
|
},
|
|
"keywords": [
|
|
"nostr",
|
|
"task-locking",
|
|
"multi-agent",
|
|
"coordination",
|
|
"scheduler",
|
|
"cli"
|
|
],
|
|
"license": "MIT",
|
|
"files": [
|
|
"bin/",
|
|
"src/*.mjs",
|
|
"src/services/",
|
|
"src/prompts/",
|
|
"src/docs/",
|
|
"scripts/check-file-size.mjs",
|
|
"scripts/check-innerhtml.mjs",
|
|
"scripts/test-audit/",
|
|
"scripts/memory/",
|
|
"migrations/",
|
|
"skills/",
|
|
"dashboard/",
|
|
"assets/",
|
|
"torch-config.example.json",
|
|
"README.md",
|
|
"TORCH.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"test": "npm run validate:scheduler && npm run test:integration:e2e && node --test test/*.test.mjs test/*.test.js",
|
|
"test:unit:lock-backend": "node --test test/lock-ops.test.mjs test/lock-ops-publish-retry.test.mjs",
|
|
"lock:check:daily": "node bin/torch-lock.mjs check --cadence daily",
|
|
"lock:check:weekly": "node bin/torch-lock.mjs check --cadence weekly",
|
|
"lock:list": "node bin/torch-lock.mjs list",
|
|
"lock:lock": "node bin/torch-lock.mjs lock",
|
|
"lock:health": "node bin/torch-lock.mjs health",
|
|
"dashboard:serve": "node bin/torch-lock.mjs dashboard",
|
|
"build": "node build.mjs",
|
|
"lint": "eslint .",
|
|
"lock:complete": "node bin/torch-lock.mjs complete",
|
|
"validate:scheduler": "node scripts/validate-scheduler-roster.mjs && node scripts/validate-prompt-contract.mjs && node scripts/validate-scheduler-flow-parity.mjs && npm run validate:scheduler-failure-schema",
|
|
"scheduler:daily": "node scripts/agent/run-scheduler-cycle.mjs daily",
|
|
"scheduler:weekly": "node scripts/agent/run-scheduler-cycle.mjs weekly",
|
|
"report:lock-reliability": "node scripts/agent/summarize-lock-reliability.mjs --since-days 30",
|
|
"test:integration:e2e": "node --test test/scheduler-preflight-lock.e2e.test.mjs",
|
|
"validate:scheduler-failure-schema": "node --test test/scheduler-lock-failure-schema.contract.test.mjs",
|
|
"test:ci-resilience": "node --test test/lock-acquisition-resilience.integration.test.mjs",
|
|
"test:extended-main": "npm run test:integration:e2e && npm run test:ci-resilience",
|
|
"torch:memory:list": "node bin/torch-lock.mjs list-memories",
|
|
"torch:memory:inspect": "node bin/torch-lock.mjs inspect-memory"
|
|
},
|
|
"dependencies": {
|
|
"nostr-tools": "2.19.4",
|
|
"ws": "8.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.58.2",
|
|
"eslint": "^10.0.0",
|
|
"globals": "^17.3.0"
|
|
}
|
|
}
|