Commit Graph
21 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 19af4dcba5 perf: visibility-gate dashboard render loop
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 23:09:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN 754a1c2ce1 feat: support platform and model info in nostr lock events
This change enables agents to report their execution platform (e.g., Jules, Codex, Goose) and model (e.g., DeepSeek 3.2) in the Nostr lock events.

Key changes:
- Updated `torch-lock` CLI to accept `--platform` and `--model` arguments.
- Implemented `detectPlatform` utility to infer platform from environment variables if not provided.
- Updated `src/lib.mjs` to include these fields in the event content.
- Updated `scripts/agent/run-scheduler-cycle.mjs` to propagate `--model` and `AGENT_MODEL`.
- Updated `dashboard/index.html` to display the model information on the lock card.
- Fixed a regression in `scripts/validate-scheduler-flow-parity.mjs` and `test/scheduler-ratchet.test.mjs` caused by argument string matching.
- Deleted `repro_test.mjs` temporary file.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 20:18:59 +00:00
google-labs-jules[bot]andPR0M3TH3AN cbc5054b94 feat: make lock event hashtag configurable via config and env var
- Added `getHashtag` function to `src/torch-config.mjs` to resolve hashtag from `NOSTR_LOCK_HASHTAG` env var, `dashboard.hashtag` config, or default to `${namespace}-agent-lock`.
- Updated `src/lib.mjs` to use `getHashtag()` in `cmdLock` and `cmdComplete` for publishing events.
- Updated `dashboard/index.html` to remove hardcoded `#torch-agent-lock` string and rely on dynamic configuration.
- Updated `src/docs/TORCH.md` and `README.md` to document the new configuration options.
- Verified changes with unit tests and frontend verification script.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 18:54:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 01b26c155f Fix dashboard pagination styling and layout by adding missing CSS classes and styles
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 17:54:06 +00:00
thePR0M3TH3AN 4c59c942f1 Merge branch 'main' into feature/dashboard-modal-docs-2259273807106788000 2026-02-15 12:12:54 -05:00
google-labs-jules[bot]andPR0M3TH3AN 89049c9690 feat(dashboard): add documentation modal and refactor styles
- Refactor modal CSS from `landing/index.html` to `dashboard/styles.css` for reuse.
- Add "Readme Modal" functionality to `dashboard/index.html`.
- Move "How this works" footer content from dashboard to `src/docs/TORCH.md`.
- Update dashboard "TORCH" link to trigger the modal.
- Verify changes with Playwright script.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 17:05:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 41f3775ea9 feat: add pagination to dashboard and fix mjs mime type
- Implemented client-side pagination in `dashboard/index.html` (20 items per page).
- Added pagination controls and CSS utilities in `dashboard/styles.css`.
- Fixed `src/dashboard.mjs` to serve `.mjs` files with `text/javascript` MIME type.
- Verified `npx torch-lock init` functionality (no changes needed to landing page).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 16:55:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN b92f0efd38 feat(security): migrate dashboard innerHTML to safe DOM APIs
- Replace innerHTML with document.createElement and replaceChildren in dashboard/index.html
- Add dashboard/domUtils.js for safe HTML escaping and element creation
- Add context, decisions, and test logs
- Update daily task logs

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 23:05:24 +00:00
thePR0M3TH3AN 7d67df97f7 Update docs to use torch-lock entrypoint 2026-02-14 16:20:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN c068565890 daily: design-system-audit-agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 19:10:18 +00:00
google-labs-jules[bot]andPR0M3TH3AN 02e96d49be Refactor magic number 30078 to KIND_APP_DATA constant
- Added KIND_APP_DATA to src/constants.mjs
- Updated src/lib.mjs, src/lock-ops.mjs, and dashboard/index.html to use the constant
- Added missing src files to package.json files list
- Updated build.mjs to copy src/constants.mjs to dist/src/

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 14:16:44 +00:00
thePR0M3TH3AN 8ec8a1f7f9 Merge pull request #41 from PR0M3TH3AN/new-logo-favicon-9440139992277662259
Add new flamey logo and favicon
2026-02-14 01:14:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN f8331a3083 feat: add new flamey logo and favicon
- Created `assets/logo.svg` with a new gradient flame design.
- Created `assets/favicon.svg` based on the logo.
- Updated `build.mjs` to copy `assets/` to `dist/` and adjust paths in `landing/index.html`.
- Updated `landing/index.html` to use the new logo and favicon.
- Updated `dashboard/index.html` to include the new logo and favicon.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:13:16 +00:00
google-labs-jules[bot]andPR0M3TH3AN adaeac5273 feat: add completed task filter and styling to dashboard
- Adds a "Completed only" option to the dashboard status filter.
- Updates filtering logic to distinguish between "Active" (running) and "Completed" (finished) tasks.
- Adds new utility classes `.bg-success/5` and `.border-success` to `styles.css`.
- Applies green tint and success border to completed task cards.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:07:11 +00:00
thePR0M3TH3AN 0124d5bf71 Merge pull request #31 from PR0M3TH3AN/fix-dashboard-platform-labels-13309693923244272174
Fix dashboard platform labels showing as Unknown
2026-02-14 00:32:26 -05:00
google-labs-jules[bot]andPR0M3TH3AN e03cb64f80 fix(dashboard): normalize platform names for lock cards
- Update `platformStyle` in `dashboard/index.html` to be case-insensitive and handle aliases (e.g., 'Claude' -> 'claude-code').
- Update summary statistics to use the normalized label for consistency.
- Ensure platforms like "Jules", "Codex", and "Claude" are displayed correctly instead of "Unknown".

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:29:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN aeec529350 fix(dashboard): resolve refresh filter reset and relay counter leak
Separate filter initialization from connection logic to prevent resetting user preferences on refresh.
Add socket cleanup and manual close handling to prevent duplicate connections and incorrect relay counts.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:28:29 +00:00
thePR0M3TH3AN 579655d1e4 feat: add per-project torch-config for lock and scheduler defaults 2026-02-13 22:05:20 -05:00
thePR0M3TH3AN 9e4cf8b76b Add dashboard utility stylesheet and wire it in head 2026-02-13 21:25:14 -05:00
thePR0M3TH3AN 1c0a10dcab Update dashboard lock dedupe to prefer latest dTag event 2026-02-13 20:47:37 -05:00
thePR0M3TH3AN 67c8a17a03 updated with files 2026-02-13 20:35:03 -05:00