Commit Graph
242 Commits
Author SHA1 Message Date
thePR0M3TH3AN 9fb290864d Merge branch 'main' into agents/daily/docs-agent-14144022524815492337 2026-02-26 21:40:51 -05:00
thePR0M3TH3AN 576341a215 Merge branch 'main' into agents/daily/decompose-agent-run-2026-02-27T00-00-00Z-4022426020255381415 2026-02-26 21:34:02 -05:00
thePR0M3TH3AN 13853e793c Merge pull request #473 from PR0M3TH3AN/agents/daily/deps-security-agent-2026-02-26-15829996421743532740
deps-security-agent daily run
2026-02-26 21:31:29 -05:00
google-labs-jules[bot]andPR0M3TH3AN dba3d0c27b fix(test): copy torch-config.mjs to e2e test fixture
- Resolved CI failure in `test/scheduler-preflight-lock.e2e.test.mjs`
- Added `npm run format` to documentation
- Executed `docs-agent` workflow

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-27 02:17:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN a9e46b6f63 Decompose run-scheduler-cycle.mjs and fix CI validation
- Extracted scheduler logic into `scheduler-config.mjs`, `scheduler-logger.mjs`, and `scheduler-state.mjs`.
- Updated `run-scheduler-cycle.mjs` to import from these new modules.
- Updated `scripts/validate-scheduler-flow-parity.mjs` to check the new modules for required prompt snippets.
- Updated `test/scheduler-lock-failure-schema.contract.test.mjs` and `test/scheduler-preflight-lock.e2e.test.mjs` to copy the new dependency modules and `src/torch-config.mjs` into test fixtures.
- Reduced `run-scheduler-cycle.mjs` size by ~333 lines.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-27 00:25:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN b9da3ae2d1 Decompose run-scheduler-cycle.mjs and fix CI validation
- Extracted scheduler logic into `scheduler-config.mjs`, `scheduler-logger.mjs`, and `scheduler-state.mjs`.
- Updated `run-scheduler-cycle.mjs` to import from these new modules.
- Updated `scripts/validate-scheduler-flow-parity.mjs` to check the new modules for required prompt snippets.
- Updated `test/scheduler-lock-failure-schema.contract.test.mjs` to copy the new dependency modules into the test fixture.
- Reduced `run-scheduler-cycle.mjs` size by ~333 lines.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-27 00:21:53 +00:00
google-labs-jules[bot]andPR0M3TH3AN 010ab5c01e fix(ci): copy torch-config.mjs to test fixture
- Fixes `ERR_MODULE_NOT_FOUND` in scheduler-preflight-lock e2e tests
- Ensures scheduler configuration module is available in the test temp directory

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 23:20:13 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1f7c1d3b52 fix: include src/torch-config.mjs in scheduler e2e test fixture
- Fixes `ERR_MODULE_NOT_FOUND` in `scheduler-preflight-lock.e2e.test.mjs` caused by missing `src/torch-config.mjs` in the temporary test environment.
- Ensures `scripts/agent/run-scheduler-cycle.mjs` can successfully import the config module during integration tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 23:20:08 +00:00
thePR0M3TH3AN d2db0cf25b Update generated dashboard links to torchagent.ai 2026-02-26 14:23:01 -05:00
thePR0M3TH3AN 32d0f905a6 Fix self-hosted update path collision in cmdUpdate 2026-02-26 08:41:36 -05:00
thePR0M3TH3AN 1e3f88e488 Fix Windows-unsafe artifact filenames and enforce safe timestamp format 2026-02-25 21:07:32 -05:00
thePR0M3TH3AN 1fb668064e update 2026-02-25 16:17:25 -05:00
thePR0M3TH3AN 600c078cd3 Prefer parent torch-config in host-repo torch subdir 2026-02-25 15:04:02 -05:00
thePR0M3TH3AN 85f9d3c4e7 Fix non-interactive init to complete with piped stdin 2026-02-25 14:54:02 -05:00
thePR0M3TH3AN 1fa4d4560e Fix host-repo scheduler config resolution and handoff defaults 2026-02-25 14:48:11 -05:00
thePR0M3TH3AN 723d9c8b53 Fix host-repo scheduler flow and init lint compatibility 2026-02-25 14:36:29 -05:00
thePR0M3TH3AN 55208c2e45 Merge origin/main into refactor/lock-ops-decomposition-2507393976208881863 (resolve conflicts) 2026-02-25 12:22:43 -05:00
google-labs-jules[bot]andPR0M3TH3AN d191a2bdfb test(coverage): improve lock-utils coverage via weekly agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 05:12:09 +00:00
google-labs-jules[bot]andPR0M3TH3AN a0e0d3a9cf fix(test): resolve unused variable lint error in dashboard.spec.js
Renames the unused catch error variable `e` to `_` in `test/playwright/dashboard.spec.js` to satisfy the ESLint `no-unused-vars` rule. This fixes the CI failure.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 03:27:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN e8eec45ff7 feat: add Playwright integration tests with coverage and log capture
- Added `@playwright/test` and `c8` dependencies.
- Configured Playwright in `playwright.config.js` to run the dashboard server.
- Added `test/playwright/dashboard.spec.js` to verify dashboard functionality (loading, auth, config) and capture console logs.
- Modified `src/dashboard.mjs` to support graceful shutdown via `/shutdown` endpoint (guarded by `NODE_V8_COVERAGE`) for coverage collection.
- Updated `package.json` with `test:playwright` and `test:playwright:coverage` scripts.
- Updated `.gitignore` to exclude coverage and test artifacts.
- Fixed `host` default value in `src/cli-parser.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 03:22:12 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8d38a6fa21 fix(test): mock relay server and use async exec in ops.test.mjs to prevent CI timeouts
Replaced synchronous `execSync` with asynchronous `exec` (promisified) in `test/ops.test.mjs` to allow the parent process's mock WebSocket server to handle connections from the child process.
Added `NOSTR_LOCK_RELAY_FALLBACKS: ''` to the child process environment to prevent `nostr-tools` from attempting to connect to default public relays, which caused hangs in restricted CI environments.
Updated `test/ops.test.mjs` to mock a relay response (EOSE) for robust integration testing without external network dependencies.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 01:41:40 +00:00
google-labs-jules[bot]andPR0M3TH3AN 003e18b93b Fix CI lint error in lock-publisher.mjs
- Ensure `src/lock-publisher.mjs` does not import `randomInt`.
- Clean up test output artifacts.
- Re-verify tests pass locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:48:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6cd20a06b7 refactor(ops): extract cmdRemove, fix lock-utils export, fix test audit
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:46:18 +00:00
thePR0M3TH3AN 41189d9041 Merge branch 'main' into refactor/lock-ops-decomposition-2507393976208881863 2026-02-21 15:41:00 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7c8eeb939c refactor(ops): extract cmdRemove to src/cmd-remove.mjs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:32:12 +00:00
thePR0M3TH3AN 9fef4c4f46 update 2026-02-21 15:16:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0cc086c08d fix(security): prevent command injection in governance service and fix build errors
- Mitigate command injection in `src/services/governance/index.js` by using explicit array arguments with `execFileSync` and adding a security comment.
- Add regression test `test/governance-security.test.mjs` verifying the fix against simulated exploit attempts.
- Fix CI build failures by resolving circular dependencies and duplicate declarations in `src/lock-utils.mjs`, `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs`.
- Resolve linting errors in tests and implementation files.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:03:04 +00:00
thePR0M3TH3AN 1c8c955cd1 Merge branch 'main' into fix/governance-command-injection-10151244085139343159 2026-02-21 14:56:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 61b3fd5709 fix(security): prevent command injection in governance service and fix build errors
- Mitigate command injection in `src/services/governance/index.js` by using explicit array arguments with `execFileSync` and adding a security comment.
- Add regression test `test/governance-security.test.mjs` verifying the fix against simulated exploit attempts.
- Fix CI build failures by resolving circular dependencies and duplicate declarations in `src/lock-utils.mjs`, `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs`.
- Resolve linting errors in tests and implementation files.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:55:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4e01a33cc2 fix(lock): fix potential duplicate imports in lock-publisher
- Rewrote `src/lock-publisher.mjs` to ensure clean imports and no duplicate declarations of `withTimeout`.
- This addresses the lint error `Identifier 'withTimeout' has already been declared` seen in CI.
- Verified lint passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:54:06 +00:00
thePR0M3TH3AN e5e490449e Merge branch 'main' into fix/governance-command-injection-10151244085139343159 2026-02-21 14:49:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN ef22045a61 fix(scheduler): Resolve CI module export error in lock-utils
- Fix `SyntaxError: The requested module './lock-utils.mjs' does not provide an export named 'withTimeout'` by refactoring exports in `src/lock-utils.mjs`.
- Explicitly import `relayListLabel` and `mergeRelayList` from `src/utils.mjs` before exporting them to avoid ambiguous export behavior in some environments.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:46:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN cb089fa061 fix(security): prevent command injection in governance service and fix build errors
- Mitigate command injection in `src/services/governance/index.js` by using explicit array arguments with `execFileSync` and adding a security comment.
- Add regression test `test/governance-security.test.mjs` verifying the fix against simulated exploit attempts.
- Fix CI build failures by resolving circular dependencies and duplicate declarations in `src/lock-utils.mjs`, `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs`.
- Resolve linting errors in tests and implementation files.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:45:51 +00:00
thePR0M3TH3AN a0c66686c5 Merge branch 'main' into fix/governance-command-injection-10151244085139343159 2026-02-21 14:39:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN bdd3ed8c8f fix(security): prevent command injection in governance service and fix build errors
- Mitigate command injection in `src/services/governance/index.js` by using explicit array arguments with `execFileSync` and adding a security comment.
- Add regression test `test/governance-security.test.mjs` verifying the fix against simulated exploit attempts.
- Fix CI build failures by resolving circular dependencies and duplicate declarations in `src/lock-utils.mjs`, `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs`.
- Resolve linting errors in tests and implementation files.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:35:31 +00:00
google-labs-jules[bot]andPR0M3TH3AN eefab43fdf fix(lock-utils): consolidate function declarations and fix CI failures
- Imported `randomInt` from `node:crypto` in `src/lock-publisher.mjs` to fix CI failure.
- Centralized `withTimeout` and `mergeRelayList` in `src/utils.mjs`.
- Updated `src/lock-utils.mjs` to re-export them.
- Removed local redefinitions in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Fixed `test/utils.test.mjs` imports.
- Verified all tests pass.

This resolves the N/A documentation task by ensuring the codebase is in a valid state.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:32:26 +00:00
thePR0M3TH3AN 5e639f1387 Merge branch 'main' into fix/governance-command-injection-10151244085139343159 2026-02-21 14:28:17 -05:00
thePR0M3TH3AN 3408e2ea76 Merge pull request #409 from PR0M3TH3AN/testing-improvement-cmd-rollback-5981959177572314725
Add tests for cmdRollback
2026-02-21 14:26:46 -05:00
thePR0M3TH3AN 047a1fd2f8 Merge branch 'main' into fix-torch-lock-commands-3759471574036935483 2026-02-21 14:25:30 -05:00
google-labs-jules[bot]andPR0M3TH3AN c0c5ac5473 fix(torch-lock): re-apply fixes for circular deps and syntax errors
- Moved `withTimeout` implementation to `src/lock-utils.mjs` and exported it correctly.
- Removed duplicate local definitions of `withTimeout`, `mergeRelayList`, and `secureRandom` in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Fixed imports in `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs` to use `src/lock-utils.mjs` consistently.
- Updated `test/utils.test.mjs` and `test/utils-async.test.mjs` to fix broken imports and test definitions.
- Verified `npm run lock:complete` and `npm run scheduler:daily` execute correctly.
- Updated `src/todo/TODO_2026-02-20T03-00-00Z.md` to mark verification task as completed.
- Verified `src/relay-health.mjs` does not use `MINUTE_MS` locally, despite mysterious CI error. Confirmed imports are correct.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:23:48 +00:00
thePR0M3TH3AN 45a666a7ed Merge branch 'main' into fix/security-remove-default-creds-12747623644908748667 2026-02-21 14:17:49 -05:00
thePR0M3TH3AN 3f03cfd690 Merge branch 'main' into chore/audit-memory-store-17064585358903407526 2026-02-21 14:15:40 -05:00
thePR0M3TH3AN 933bbad941 Merge pull request #369 from PR0M3TH3AN/test-lock-utils-helpers-17746102477708828726
🧪 Add tests for lock-utils helpers
2026-02-21 14:15:21 -05:00
thePR0M3TH3AN 67ebd6a504 Merge branch 'main' into test/upload-validation-15691315589845316357 2026-02-21 14:13:15 -05:00
thePR0M3TH3AN fd634b0319 Merge pull request #404 from PR0M3TH3AN/fix-dashboard-auth-plaintext-8015911861283425351
🔒 Fix Plaintext Password Storage in Dashboard Auth
2026-02-21 14:13:02 -05:00
thePR0M3TH3AN 873e649b2f Merge pull request #414 from PR0M3TH3AN/perf/async-roster-loading-4439301282033623986
⚡ Optimize Roster Loading to Async
2026-02-21 14:11:40 -05:00
thePR0M3TH3AN e242860fd6 Merge pull request #413 from PR0M3TH3AN/jules/test-cmd-backup-16743310224352411678
Add tests for cmdBackup
2026-02-21 14:09:25 -05:00
thePR0M3TH3AN 121b684e67 Merge pull request #417 from PR0M3TH3AN/refactor/memory-cache-invalidation-5975056545656617658
🧹 Granular memory cache invalidation
2026-02-21 14:09:14 -05:00
thePR0M3TH3AN 04f6a5db31 Merge pull request #419 from PR0M3TH3AN/add-cmd-proposal-tests-8161916931821665354
🧪 Add tests for cmdProposal
2026-02-21 14:09:01 -05:00
google-labs-jules[bot]andPR0M3TH3AN 1cd03f3d90 test(cmd-backup): fix unused variable in test
- Remove unused `manifest` variable from destructuring in `test/cmd-backup.test.mjs` to resolve ESLint error.
- Verified fix with `npm run lint`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:38:54 +00:00