Refactored `loadTorchConfig` to support dependency injection for `fs`, enabling true unit tests without disk I/O. Added comprehensive unit tests in `test/torch-config-unit.test.mjs`.
- Refactored `loadTorchConfig` to accept optional `fileSystem` argument.
- Created `test/torch-config-unit.test.mjs` with mocked fs tests.
- Verified existing tests pass.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Modified `src/lib.mjs` to execute `queryLocks` for all cadences in parallel.
- Added `scripts/perf-benchmark.mjs` for measuring CLI performance.
- Added `weekly-perf-report-2026-02-14.md` with baseline and verification data.
- Added `task-logs/weekly/2026-02-14T13-14-38Z__perf-deepdive-agent__completed.md`.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Extract parseTorchConfig for better isolation in tests.
- Add _resetTorchConfigCache for deterministic unit testing.
- Implement comprehensive tests in test/torch-config.test.mjs covering:
- Path resolution with env var support.
- Normalization of cadence and status.
- Roster parsing and filtering.
- Error handling for malformed config files.
- Caching behavior.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Created src/constants.mjs
- Updated src/lib.mjs to use constants
- Added execution artifacts and completed log
Co-authored-by: PR0M3TH3AN <[email protected]>
- Rename `src/nostr-lock.mjs` to `src/lib.mjs` and export core functions.
- Create `bin/torch-lock.mjs` as the CLI entry point.
- Implement `dashboard` command in `src/lib.mjs` to serve the dashboard using Node.js.
- Update `package.json` to configure `bin`, `main`, and `files` for NPM packaging.
- Create `torch-config.example.json` as a template for consumers.
- Update tests and README.md to reflect the new structure.
- Exclude task-specific artifacts (logs, context) from the package while retaining prompts and docs.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Attempted to run audit-agent.
- Failed because `scripts/check-file-size.mjs`, `scripts/check-innerhtml.mjs`, and `npm run lint` are missing.
- Created `artifacts/audit/2026-02-14/summary.md` documenting the failure.
- Created `task-logs/daily/2026-02-14T06-04-19Z__audit-agent__failed.md`.
- Added execution context in `src/context/`, `src/todo/`, `src/decisions/`, `src/test_logs/`.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Create `src/prompts/weekly/prompt-safety-agent.md` to audit other prompts for failure modes.
- Add `prompt-safety-agent` to `src/prompts/roster.json` in the weekly schedule.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Added `src/prompts/weekly/ui-ux-agent.md` to define the agent's role, mission, and workflow.
- Updated `src/prompts/roster.json` to include `ui-ux-agent` in the weekly schedule.
This agent is responsible for improving web design, accessibility, marketing copy, and maintaining style guides.
Co-authored-by: PR0M3TH3AN <[email protected]>
This agent analyzes the repository and proposes new, self-contained features
as single files in a `features/` directory, aimed at incrementally adding
value to the project.
Co-authored-by: PR0M3TH3AN <[email protected]>
Add a new agent prompt `log-fixer-agent.md` to `src/prompts/daily/` and
register it in `src/prompts/roster.json`. This agent is responsible for
monitoring task logs for failures and attempting to automatically fix
underlying errors (syntax, dependencies, tests) or creating issues for
complex problems.
Co-authored-by: PR0M3TH3AN <[email protected]>