Commit Graph
790 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN d479519067 feat: add diagnostic utility script
Added features/diagnostic.mjs to help users verify their local TORCH environment.
Includes checks for Node.js version, dependencies, configuration, and connectivity.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:48:29 +00:00
thePR0M3TH3AN a7a7679223 update 2026-02-19 23:36:01 -05:00
thePR0M3TH3AN 9bb95896e7 Merge pull request #361 from PR0M3TH3AN/opencode-active-4489682856002365014
Enable OpenCode agent and add agent website links
2026-02-19 23:19:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6106fd3dea Enable OpenCode agent and add agent website links
- Activated OpenCode agent card in landing page.
- Added OpenCode to dashboard platform colors (using teal).
- Added 'Learn more' links to all agent cards in landing page.
- Updated OpenCode installation prompt in landing page script.
- Added teal color utilities to dashboard/styles.css.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:18:42 +00:00
thePR0M3TH3AN 78a79faf3f update 2026-02-19 23:15:56 -05:00
thePR0M3TH3AN f5d52bd13c Merge pull request #360 from PR0M3TH3AN/add-dashboard-home-button-16801596229675926990
Add Home button to dashboard linking to landing page
2026-02-19 23:11:21 -05:00
thePR0M3TH3AN 2b706f6085 Merge pull request #359 from PR0M3TH3AN/fix/torch-init-gitignore-13639849350884611583
Ensure torch init adds .gitignore with node_modules
2026-02-19 23:10:56 -05:00
google-labs-jules[bot]andPR0M3TH3AN babdd4af5d Add Home button to dashboard linking to landing page
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:04:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN c36735dbde fix: ensure torch init adds .gitignore with node_modules
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:01:39 +00:00
thePR0M3TH3AN 0831727d02 Merge pull request #358 from PR0M3TH3AN/enhance-landing-hero-animations-3534963304295251671
Enhance Landing Page Hero Animations
2026-02-19 23:01:00 -05:00
google-labs-jules[bot]andPR0M3TH3AN 3cdd204585 feat: enhance landing page hero with animated gradient and background glow
- Updated `.hero h1` with a multi-stop animated gradient background.
- Added `@keyframes textShine` for the text gradient animation.
- Enhanced the background SVG with a `heroGlow` radial gradient and a large animated circle to provide a subtle ambient glow behind the hero section.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:00:16 +00:00
thePR0M3TH3AN fdf1cf7084 Merge pull request #352 from PR0M3TH3AN/init-output-summary-11038938146603193612
Enhance torch init output with configuration summary and dashboard link
2026-02-19 22:54:52 -05:00
thePR0M3TH3AN a8c9b1a4d9 Merge pull request #357 from PR0M3TH3AN/docs-alignment-script-updates-3776218186763643644
Update Documentation for Scheduler and Lock Management Commands
2026-02-19 22:54:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 439e08042c docs: update README.md and TORCH.md with scheduler and lock commands
- Added `scheduler:daily` and `scheduler:weekly` usage examples to README.md and TORCH.md.
- Added `lock:complete` and `lock:check:daily` usage examples to README.md and TORCH.md.
- Updated TODO list to reflect completion of documentation alignment.
- Verified script presence and syntax.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:52:47 +00:00
thePR0M3TH3AN be849ceae8 Merge pull request #356 from PR0M3TH3AN/perf-lexical-search-index-1433868811411746305
⚡ Performance Optimization: Inverted Index for Lexical Search
2026-02-19 22:52:33 -05:00
google-labs-jules[bot]andPR0M3TH3AN 9e6d99eb1e ⚡ optimize lexical search with inverted index
- Implemented LexicalIndex class in src/services/memory/retriever.js.
- Added WeakMap caching for indices based on memory array references.
- Improved memory array stability in src/services/memory/index.js using a storeVersion counter.
- Achieved ~2x speedup for 10k memories and ~9x speedup for 100k memories in benchmarks.
- Maintains compatibility with existing textMatchSimilarity scoring.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:51:34 +00:00
thePR0M3TH3AN a35286f17d Merge pull request #355 from PR0M3TH3AN/refactor-governance-target-validation-5425533680072569362
🧹 refactor(governance): extract duplicated target validation logic
2026-02-19 22:51:13 -05:00
google-labs-jules[bot]andPR0M3TH3AN cd744982a1 refactor(governance): extract duplicated target validation logic
Extracted duplicated target path resolution and allowlist validation logic
into a shared `resolveAndValidateTarget` helper function in
`src/services/governance/index.js`.

Updated `createProposal`, `validateProposal`, `applyProposal`, and
`rollbackPrompt` to use the new helper, ensuring consistent validation
and path handling across the service.

Added `test/governance-health.test.mjs` to verify validation logic.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:50:36 +00:00
thePR0M3TH3AN a4ffa537f6 Merge pull request #354 from PR0M3TH3AN/add-exiterror-tests-11501687712657376665
🧪 [testing improvement] Add tests for ExitError class and improve its implementation
2026-02-19 22:50:17 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8d4ae0d616 feat(testing): add unit tests for ExitError and improve class definition
- Added `test/errors.test.mjs` with comprehensive tests for the `ExitError` class.
- Updated `src/errors.mjs` to set `this.name = 'ExitError'` in the constructor for better error reporting.
- Verified that all new tests pass and no regressions were introduced to the existing test suite.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:49:34 +00:00
thePR0M3TH3AN 04adbd632e Merge pull request #353 from PR0M3TH3AN/fix-governance-command-injection-2246140485437553728
🔒 Fix Command Injection in Governance Service
2026-02-19 22:48:40 -05:00
google-labs-jules[bot]andPR0M3TH3AN 1e4d9720e8 fix(security): prevent command injection in governance service
Replaced `execSync` with `execFileSync` in `src/services/governance/index.js` to avoid shell interpretation of variable-derived inputs (such as agent IDs and file targets). This mitigates command injection risks in `createProposal`, `applyProposal`, and `rollbackPrompt`.

- Used `execFileSync` for all git operations.
- Updated logic to correctly handle `git diff` exit code 1.
- Removed unused `execSync` import.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:46:36 +00:00
google-labs-jules[bot]andPR0M3TH3AN 08d8407a7d feat(cli): enhance init output with config summary and dashboard link
- Updates `cmdInit` to output the Nostr hashtag, namespace, and a direct dashboard URL upon completion.
- Refactors `createDashboardLinkFile` to return the generated URL for console output.
- Ensures the initialization process provides clear next steps for both human users and agents.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:39:00 +00:00
thePR0M3TH3AN 5783f995d7 update 2026-02-19 22:22:45 -05:00
thePR0M3TH3AN 1a534fc746 Merge pull request #351 from PR0M3TH3AN/add-qwen-coder-landing-4500751862979356017
Add Qwen Coder to landing page and platform detection
2026-02-19 22:13:20 -05:00
google-labs-jules[bot]andPR0M3TH3AN a61079b505 Add Qwen Coder to landing page and platform detection
- Added Qwen Coder CLI to `landing/index.html` agent selector.
- Updated `src/utils.mjs` to detect `QWEN_API_KEY` or `QWEN_SESSION_ID` as 'qwen' platform.
- Updated `dashboard/app.js` to render Qwen tasks with appropriate badge styling.
- Added tests for Qwen platform detection in `test/utils.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:42:08 +00:00
thePR0M3TH3AN 38100ea9ae Merge pull request #350 from PR0M3TH3AN/claude/prompt-versioning-backup-tYH8t
Add prompt versioning, governance workflow, and state backup
2026-02-19 21:38:14 -05:00
thePR0M3TH3AN 1d85aef71f Merge pull request #349 from PR0M3TH3AN/agents/daily/docs-alignment-agent-2026-02-20-3286300579692442075
docs: align README and TORCH.md with package.json scripts
2026-02-19 21:38:05 -05:00
Claude 63ed863e1a docs: surface prompt versioning and backup in README and TORCH.md
- README.md: add "Prompt Governance & Versioning CLI" and "State Backup
  CLI" sections under Usage with full command examples and link to
  docs/prompt-versioning.md
- TORCH.md: add "Prompt Versioning & State Backup" section with
  proposal→apply→rollback cycle, backup command reference, and link to
  docs/prompt-versioning.md

https://claude.ai/code/session_01Ndq2D72Kp77BYo4owD63uY
2026-02-20 02:36:22 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0b9dfa60ce docs: align README and TORCH.md with package.json scripts
- Added `npm run scheduler:daily` to docs
- Added `npm run scheduler:weekly` to docs
- Added `npm run lock:complete` to docs
- Generated task log and artifacts for docs-alignment-agent run

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:35:34 +00:00
Claude 54818a624c chore: add .torch/ to .gitignore (runtime prompt-history and backups)
.torch/ is created at runtime by torch-lock backup and proposal apply.
It holds prompt version archives and state snapshots — operational data
that should not be tracked in source control.

https://claude.ai/code/session_01Ndq2D72Kp77BYo4owD63uY
2026-02-20 02:29:15 +00:00
thePR0M3TH3AN d3ab513295 Merge pull request #348 from PR0M3TH3AN/landing-add-codex-opencode-4896672905093668448
Add Codex CLI and OpenCode CLI to landing page
2026-02-19 21:28:48 -05:00
Claude be5ec21d5c feat(governance): add prompt versioning, rollback --list, and state backup
- governance/index.js: archive filenames now include ISO timestamp for
  deterministic sorting (<base>_<ts>_<hash>.md); write .meta.json sidecar
  on every archive with proposalId, author, reason, and archivedAt
- governance/index.js: add listPromptVersions(target) — returns archived
  versions for a prompt sorted newest-first with sidecar metadata surfaced
- cmd-rollback.mjs: add --list flag to list available versions without
  restoring (delegates to listPromptVersions)
- cli-parser.mjs: add --list and --output flags
- lib.mjs: pass list flag to cmdRollback; add backup command dispatch
- cmd-backup.mjs: new torch-lock backup command — snapshots
  .scheduler-memory/memory-store.json and scheduler run state to
  .torch/backups/<timestamp>/; supports --output override and --list
- docs/prompt-versioning.md: comprehensive guide to the full
  proposal → apply → list-versions → rollback workflow, state backup
  and restore procedure, and storage location reference
- test/governance.test.mjs: 7 scenario-based tests (SCN-proposal-create,
  SCN-proposal-list, SCN-proposal-reject, SCN-archive-naming,
  SCN-version-list, SCN-rollback-latest, SCN-rollback-hash)

https://claude.ai/code/session_01Ndq2D72Kp77BYo4owD63uY
2026-02-20 02:27:57 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9a28e07547 feat: Add Codex CLI (Active) and OpenCode CLI (Coming Soon) to landing page
- Enable Codex CLI card in `landing/index.html`.
- Add description "Requires full access permissions" to Codex CLI.
- Add "OpenCode CLI" as a "Coming Soon" option.
- Update `selectAgent` JavaScript to handle Codex selection.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:22:39 +00:00
thePR0M3TH3AN 91ed0c765f Merge pull request #347 from PR0M3TH3AN/agents/daily/docs-agent-3116770565114843973
docs(scheduler): run docs-agent cycle
2026-02-19 21:15:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 925ead1523 docs(scheduler): run docs-agent cycle
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:15:11 +00:00
thePR0M3TH3AN 158026bdb4 Merge pull request #346 from PR0M3TH3AN/claude/add-torch-removal-command-keFx5
Add cmdRemove command to completely uninstall TORCH from projects
2026-02-19 21:09:54 -05:00
thePR0M3TH3AN 0cfb40a410 Merge branch 'main' of https://github.com/PR0M3TH3AN/TORCH 2026-02-19 21:09:43 -05:00
thePR0M3TH3AN cab73c3344 update 2026-02-19 21:09:10 -05:00
thePR0M3TH3AN fa5ef77ed8 chore(ui): design system audit autofixes (agent) 2026-02-19 21:05:49 -05:00
Claude 7984c7de66 feat: add torch-lock remove command for complete TORCH uninstallation
Users who installed TORCH via `npm install <tarball> && npx torch-lock init`
had no built-in way to cleanly remove it. This adds a `remove` command that
detects and removes all TORCH artifacts: the torch/ directory, config files,
runtime directories (.torch/, .scheduler-memory/, task-logs/), governance
proposals, host package.json scripts, and the npm package itself.

- Add cmdRemove() in src/ops.mjs with detection, preview, confirmation, and cleanup
- Wire up `remove` command in CLI dispatcher (src/lib.mjs)
- Add TORCH_HOST_SCRIPTS constant in constants.mjs for shared script key list
- Add docs/removal.md with full manual removal instructions
- Add removal section to README.md
- Add 7 scenario tests in test/ops-remove.test.mjs

https://claude.ai/code/session_011Snrxu3iZGLtJ9pnFSajpM
2026-02-20 01:59:30 +00:00
thePR0M3TH3AN e7b8049f8b Merge pull request #345 from PR0M3TH3AN/agents/daily/deps-security-agent-2026-02-20-693252216422401941
Daily Scheduler Run: deps-security-agent
2026-02-19 20:54:32 -05:00
thePR0M3TH3AN 7036aa663d Merge pull request #344 from PR0M3TH3AN/agents/daily/decompose-agent-refactor-14956609596778737678
Decompose src/lock-ops.mjs (Daily Agent)
2026-02-19 20:54:18 -05:00
thePR0M3TH3AN 2df8b85682 Merge branch 'main' into agents/daily/decompose-agent-refactor-14956609596778737678 2026-02-19 20:54:11 -05:00
thePR0M3TH3AN 97abbcf8f6 Merge pull request #343 from PR0M3TH3AN/agents/daily/decompose-lock-ops-14953922511672470483
Decompose src/lock-ops.mjs into smaller modules
2026-02-19 20:50:50 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2cba102998 Run deps-security-agent (daily cadence)
- Audited dependencies (npm audit, npm outdated)
- Generated security report
- Created scheduler run artifacts
- Created completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 01:19:41 +00:00
google-labs-jules[bot]andPR0M3TH3AN b8598d1d92 feat: Decompose src/lock-ops.mjs into relay-health-manager.mjs and lock-publisher.mjs
- Extracted `RelayHealthManager` to `src/relay-health-manager.mjs`
- Extracted `LockPublisher` to `src/lock-publisher.mjs`
- Refactored `src/lock-ops.mjs` to import new modules
- Reduced `src/lock-ops.mjs` size significantly (> 500 lines)
- Preserved API compatibility (re-exported `defaultHealthManager`)
- Verified with lint and tests
- Updated `scripts/check-file-size.mjs` report (implicit)

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 00:36:49 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8653521593 [decompose] extract RelayHealthManager and LockPublisher from src/lock-ops.mjs
- Extracted `RelayHealthManager` to `src/relay-health-manager.mjs`
- Extracted `LockPublisher` to `src/lock-publisher.mjs`
- Moved shared utilities to `src/lock-utils.mjs`
- Updated `src/lock-ops.mjs` to import dependencies and re-export public API
- Reduced `src/lock-ops.mjs` from 880 to 152 lines
- Verified with tests (295 passed) and linting

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 23:41:10 +00:00
thePR0M3TH3AN e10528141d Merge pull request #341 from PR0M3TH3AN/landing-ui-refresh-2540753613320414541
Refreshed Landing Page UI with Ambient Animations and Warm Accents
2026-02-19 17:52:44 -05:00
thePR0M3TH3AN e83ac2f36c Merge pull request #342 from PR0M3TH3AN/agents/daily/content-audit-agent-94764358939736024
chore: run content-audit-agent (daily)
2026-02-19 17:52:24 -05:00