mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
fix: include all runtime source files in npm package and add missing metadata
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
This commit is contained in:
2 files changed
+48
-10
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 PR0M3TH3AN
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+27
-10
@@ -2,33 +2,50 @@
|
||||
"name": "torch-lock",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"description": "TORCH standalone lock CLI and dashboard",
|
||||
"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/lib.mjs",
|
||||
"src/constants.mjs",
|
||||
"src/lock-ops.mjs",
|
||||
"src/ops.mjs",
|
||||
"src/dashboard.mjs",
|
||||
"src/roster.mjs",
|
||||
"src/torch-config.mjs",
|
||||
"src/relay-health.mjs",
|
||||
"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"
|
||||
"TORCH.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "npm run validate:scheduler && npm run test:integration:e2e && node --test test/*.test.mjs test/*.test.js",
|
||||
|
||||
Reference in new issue
Block a user