singularity-forge/src/resources/extensions/gsd
Jeremy McSpadden b8d08f3667 fix: prune stale env-utils.js from extensions root, preventing startup load error (#1655)
* fix: prune stale env-utils.js from extensions root, preventing startup load error

- Move env-utils.ts from extensions/ root into gsd/ subdirectory
- Update all import paths to reflect new location
- Add manifest-based tracking in resource-loader to record which root-level
  extension files are installed, so future upgrades can detect and prune files
  that get removed or relocated (preventing recurrence)
- Add known-stale fallback for pre-manifest upgrades (explicitly removes
  env-utils.js which was moved into gsd/ in this release)
- Remove re-export block from auto.ts that referenced relocated symbols
- Clean up session_start handler in native-search.ts (remove provider diagnostics
  that were duplicating info already shown by model_select)
- Update welcome-screen layout to two-panel bar design for visual consistency

* fix: resolve PR1655 extension load and compile regressions

* fix: remove duplicate _clearGsdRootCache export

* fix: restore native-search session_start diagnostics
2026-03-20 15:43:06 -06:00
..
auto refactor(gsd): replace session-scoped promise bridge with per-unit one-shot (#1595) 2026-03-20 09:56:43 -06:00
bootstrap Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
commands Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
docs refactor(gsd): remove prompt compression subsystem (~4,100 lines) (#1597) 2026-03-20 09:55:07 -06:00
migrate fix: break remaining shared/mod.js barrel imports in report generation chain (#1588) 2026-03-20 08:28:53 -06:00
prompts feat: upgrade forensics prompt to full-access GSD debugger (#1660) 2026-03-20 15:32:50 -06:00
skills/gsd-headless feat: add --events flag for JSONL stream filtering (#1000) 2026-03-17 17:35:44 -06:00
templates feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
tests feat(pi): add Skill tool resolution (#1661) 2026-03-20 15:42:28 -06:00
workflow-templates feat: workflow templates — right-sized workflows for every task type (#1185) 2026-03-18 12:25:28 -06:00
activity-log.ts fix: enforce GSDError usage and activate unused error codes (#997) 2026-03-17 17:14:07 -06:00
atomic-write.ts refactor(gsd): extract atomicWriteSync utility to replace 6 duplicate write-tmp-rename patterns (#1046) 2026-03-17 18:36:14 -06:00
auto-budget.ts refactor: extract 7 focused modules from auto.ts (#898) 2026-03-17 11:03:01 -05:00
auto-dashboard.ts fix: guard TUI render during session transitions to prevent freeze (#1658) 2026-03-20 15:29:34 -06:00
auto-direct-dispatch.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-dispatch.ts feat(gsd): add browser-executable and runtime-executable UAT types (#1620) 2026-03-20 10:41:57 -06:00
auto-loop.ts refactor: decompose autoLoop into pipeline phases (#1615) (#1659) 2026-03-20 15:33:28 -06:00
auto-model-selection.ts fix: wire escalateTier into auto-loop retry path (#1505) (#1519) 2026-03-19 18:01:25 -06:00
auto-observability.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-post-unit.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
auto-prompts.ts fix: default UAT type to artifact-driven to prevent unnecessary auto-mode pauses (#1651) 2026-03-20 15:11:55 -06:00
auto-recovery.ts fix(gsd): reactive batch verification + dependency-based carry-forward (#1549) 2026-03-19 23:59:03 -06:00
auto-start.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
auto-supervisor.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-timeout-recovery.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-timers.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-tool-tracking.ts refactor: extract 7 focused modules from auto.ts (#898) 2026-03-17 11:03:01 -05:00
auto-unit-closeout.ts fix: add error handling for unhandled promise rejections (#992) 2026-03-17 17:06:17 -06:00
auto-verification.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
auto-worktree-sync.ts feat: add GSD_HOME env var to override global ~/.gsd directory (#1566) 2026-03-20 08:29:01 -06:00
auto-worktree.ts fix: use pathspec exclusions in smartStage to prevent hanging on large repos (#1613) 2026-03-20 10:39:34 -06:00
auto.ts fix: prune stale env-utils.js from extensions root, preventing startup load error (#1655) 2026-03-20 15:43:06 -06:00
cache.ts fix: include DB artifact cache in invalidateAllCaches (#793) 2026-03-16 22:32:10 -06:00
captures.ts fix: detect worktree paths resolved through .gsd symlinks (#1585) 2026-03-20 08:10:45 -06:00
changelog.ts feat(gsd): add /gsd changelog command with LLM-summarized release notes (#1465) 2026-03-19 15:36:43 -06:00
claude-import.ts fix: type errors in claude-import.ts and marketplace-discovery.ts 2026-03-16 14:46:31 -04:00
collision-diagnostics.ts feat: import Claude marketplace plugins with namespaced components 2026-03-16 11:47:28 -04:00
commands-bootstrap.ts feat(gsd): add /gsd changelog command with LLM-summarized release notes (#1465) 2026-03-19 15:36:43 -06:00
commands-cmux.ts feat: integrate cmux with gsd runtime (#1532) 2026-03-19 20:05:06 -06:00
commands-config.ts refactor: decompose commands.ts into 5 focused modules 2026-03-17 22:21:00 -06:00
commands-extensions.ts feat: add GSD_HOME env var to override global ~/.gsd directory (#1566) 2026-03-20 08:29:01 -06:00
commands-handlers.ts Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
commands-inspect.ts fix(gsd): open existing database on inspect 2026-03-19 01:35:28 -07:00
commands-logs.ts refactor: extend json-persistence utility and migrate top JSON I/O callsites (#1216) 2026-03-18 12:06:01 -06:00
commands-maintenance.ts refactor: decompose commands.ts into 5 focused modules 2026-03-17 22:21:00 -06:00
commands-prefs-wizard.ts refactor(gsd): remove prompt compression subsystem (~4,100 lines) (#1597) 2026-03-20 09:55:07 -06:00
commands-rate.ts fix: wire dead token-profile defaults and add /gsd rate command (#1505) (#1516) 2026-03-19 17:53:00 -06:00
commands-workflow-templates.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
commands.ts Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
complexity-classifier.ts refactor: extract parseUnitId() to centralize unit ID parsing (#1282) 2026-03-18 19:20:08 -06:00
constants.ts fix: centralize GSD timeout and cache constants (#1038) 2026-03-17 18:33:13 -06:00
context-budget.ts refactor(gsd): remove prompt compression subsystem (~4,100 lines) (#1597) 2026-03-20 09:55:07 -06:00
context-store.ts feat: SQLite context store — surgical prompt injection (#619) 2026-03-16 09:33:05 -06:00
crash-recovery.ts fix: add actionable recovery guidance to crash info messages (#1295) 2026-03-18 18:56:55 -06:00
dashboard-overlay.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
db-writer.ts fix: use atomic writes for completed-units.json and invalidate caches in db-writer (#1069) 2026-03-17 22:01:08 -06:00
debug-logger.ts merge: resolve conflicts with main, remove copyright headers 2026-03-16 11:13:43 -05:00
detection.ts feat: add GSD_HOME env var to override global ~/.gsd directory (#1566) 2026-03-20 08:29:01 -06:00
diff-context.ts fix: enforce GSDError usage and activate unused error codes (#997) 2026-03-17 17:14:07 -06:00
dispatch-guard.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
doctor-checks.ts feat(gsd): add 13 enhancements to /gsd doctor (#1583) 2026-03-20 08:12:09 -06:00
doctor-environment.ts feat(gsd): add 13 enhancements to /gsd doctor (#1583) 2026-03-20 08:12:09 -06:00
doctor-format.ts feat(gsd): add 13 enhancements to /gsd doctor (#1583) 2026-03-20 08:12:09 -06:00
doctor-proactive.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
doctor-providers.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
doctor-types.ts feat(gsd): add 13 enhancements to /gsd doctor (#1583) 2026-03-20 08:12:09 -06:00
doctor.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
env-utils.ts fix: prune stale env-utils.js from extensions root, preventing startup load error (#1655) 2026-03-20 15:43:06 -06:00
error-utils.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
errors.ts fix: enforce GSDError usage and activate unused error codes (#997) 2026-03-17 17:14:07 -06:00
exit-command.ts fix: create node_modules symlink for dynamic import resolution in extensions (#1623) 2026-03-20 10:48:17 -06:00
export-html.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
export.ts fix: break remaining shared/mod.js barrel imports in report generation chain (#1588) 2026-03-20 08:28:53 -06:00
extension-manifest.json feat: add extension manifest + registry for user-managed enable/disable (#1238) 2026-03-18 14:12:19 -06:00
file-watcher.ts fix: eliminate command injection surface in diff-context, harden file-watcher path resolution 2026-03-16 14:10:29 -06:00
files.ts fix: prune stale env-utils.js from extensions root, preventing startup load error (#1655) 2026-03-20 15:43:06 -06:00
forensics.ts fix: break remaining shared/mod.js barrel imports in report generation chain (#1588) 2026-03-20 08:28:53 -06:00
git-constants.ts fix(gsd): add GIT_NO_PROMPT_ENV to gitFileExec and deduplicate constant (#1006) 2026-03-17 18:01:38 -06:00
git-self-heal.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
git-service.ts feat(gsd): create draft PR on milestone completion when git.auto_pr enabled (#1627) 2026-03-20 11:48:13 -06:00
gitignore.ts fix(gsd): close residual #1364 data-loss vectors on v2.36.0+ (#1637) 2026-03-20 13:15:11 -06:00
gsd-db.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
guided-flow-queue.ts refactor: extract dispatchUnit helper, inline dead buildDocsCommitInstruction (#1275) 2026-03-18 17:22:54 -06:00
guided-flow.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
health-widget-core.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
health-widget.ts Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
history.ts fix: separate pi-tui-dependent layout utils to fix report generation (#1527) 2026-03-19 21:14:03 -06:00
index.ts Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
init-wizard.ts refactor: remove dead commit_docs preference (incompatible with external .gsd/ state) (#1258) 2026-03-18 15:12:16 -06:00
json-persistence.ts refactor: extend json-persistence utility and migrate top JSON I/O callsites (#1216) 2026-03-18 12:06:01 -06:00
jsonl-utils.ts fix: deduplicate parseJSONL and unify MAX_JSONL_BYTES constant (#985) 2026-03-17 17:05:35 -06:00
key-manager.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
marketplace-discovery.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
md-importer.ts refactor: move .gsd/ to external state directory with symlink (ADR-002) (#1242) 2026-03-18 14:05:10 -06:00
memory-extractor.ts feat: incremental memory system for auto-mode (#795) 2026-03-16 22:29:35 -06:00
memory-store.ts feat: incremental memory system for auto-mode (#795) 2026-03-16 22:29:35 -06:00
metrics.ts fix: separate pi-tui-dependent layout utils to fix report generation (#1527) 2026-03-19 21:14:03 -06:00
migrate-external.ts fix(gsd): close residual #1364 data-loss vectors on v2.36.0+ (#1637) 2026-03-20 13:15:11 -06:00
milestone-actions.ts feat: park/discard actions for in-progress milestones (#1107) 2026-03-18 01:03:00 -06:00
milestone-ids.ts fix(gsd): filter non-milestone directories from findMilestoneIds (#1494) (#1508) 2026-03-19 17:33:24 -06:00
model-cost-table.ts feat: dynamic model routing for token consumption optimization (#579) 2026-03-16 07:53:53 -06:00
model-router.ts feat: dynamic model routing for token consumption optimization (#579) 2026-03-16 07:53:53 -06:00
namespaced-registry.ts feat: import Claude marketplace plugins with namespaced components 2026-03-16 11:47:28 -04:00
namespaced-resolver.ts feat: import Claude marketplace plugins with namespaced components 2026-03-16 11:47:28 -04:00
native-git-bridge.ts fix: use pathspec exclusions in smartStage to prevent hanging on large repos (#1613) 2026-03-20 10:39:34 -06:00
native-parser-bridge.ts Fix #453 native hangs in GSD auto-mode paths (#502) 2026-03-15 22:22:58 -06:00
notifications.ts feat: integrate cmux with gsd runtime (#1532) 2026-03-19 20:05:06 -06:00
observability-validator.ts fix(gsd): enforce backtick file paths in task plan IO sections (#1548) 2026-03-19 23:28:44 -06:00
package.json Initial commit 2026-03-10 22:28:37 -06:00
parallel-eligibility.ts feat: park/discard actions for in-progress milestones (#1107) 2026-03-18 01:03:00 -06:00
parallel-merge.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
parallel-orchestrator.ts refactor: extract getErrorMessage() helper to eliminate 65 inline duplicates (#1280) 2026-03-18 19:12:44 -06:00
paths.ts feat(gsd): add .gsd/RUNTIME.md template for declared runtime context (#1626) 2026-03-20 12:51:51 -06:00
plugin-importer.ts fix: enforce GSDError usage and activate unused error codes (#997) 2026-03-17 17:14:07 -06:00
post-unit-hooks.ts fix: inject network_idle warning into hook prompts (#1345) (#1401) 2026-03-19 16:54:14 -06:00
preferences-models.ts refactor(gsd): remove prompt compression subsystem (~4,100 lines) (#1597) 2026-03-20 09:55:07 -06:00
preferences-skills.ts refactor: decompose preferences.ts, populate skills and models modules (#1091) 2026-03-17 22:27:21 -06:00
preferences-types.ts feat(gsd): GitHub sync extension — auto-sync to Issues, PRs, Milestones (#1603) 2026-03-20 10:10:37 -06:00
preferences-validation.ts feat(gsd): GitHub sync extension — auto-sync to Issues, PRs, Milestones (#1603) 2026-03-20 10:10:37 -06:00
preferences.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
progress-score.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
prompt-cache-optimizer.ts feat: add token optimization suite for prompt caching, compression, and smart context selection 2026-03-17 22:02:27 -05:00
prompt-loader.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
prompt-ordering.ts feat: cache-ordered prompt assembly and dashboard cache hit rate (#1094) 2026-03-17 23:31:20 -06:00
provider-error-pause.ts fix: auto-resume on transient server errors, not just rate limits (#886) (#957) 2026-03-17 18:00:43 -06:00
queue-order.ts refactor: extend json-persistence utility and migrate top JSON I/O callsites (#1216) 2026-03-18 12:06:01 -06:00
queue-reorder-ui.ts fix: text-based fallbacks for RPC mode where TUI widgets produce empty turns (#1112) 2026-03-18 08:34:49 -06:00
quick.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
reactive-graph.ts fix(gsd): reactive batch verification + dependency-based carry-forward (#1549) 2026-03-19 23:59:03 -06:00
repo-identity.ts feat: add GSD_PROJECT_ID env var to override project hash (#1600) 2026-03-20 09:56:19 -06:00
reports.ts fix: deduplicate formatDateShort into shared/format-utils (#1032) 2026-03-17 18:29:54 -06:00
resource-version.ts feat: add GSD_HOME env var to override global ~/.gsd directory (#1566) 2026-03-20 08:29:01 -06:00
roadmap-mutations.ts fix: add auto-fix for premature slice completion deadlock in doctor (#1611) 2026-03-20 10:39:24 -06:00
roadmap-slices.ts fix: robust prose slice header parsing — handle H1-H4, bold, dots, no-separator variants (#1248) 2026-03-18 15:02:51 -06:00
routing-history.ts refactor: extract shared JSON persistence utility, migrate metrics + routing-history + unit-runtime (#1206) 2026-03-18 11:25:32 -06:00
safe-fs.ts refactor(gsd): extract safeCopy/safeMkdir helpers to replace repetitive try/catch FS patterns (#1043) 2026-03-17 18:36:17 -06:00
session-forensics.ts refactor: move .gsd/ to external state directory with symlink (ADR-002) (#1242) 2026-03-18 14:05:10 -06:00
session-lock.ts fix: clarify session lock loss diagnostics (#1535) 2026-03-19 21:13:38 -06:00
session-status-io.ts refactor: extend json-persistence utility and migrate top JSON I/O callsites (#1216) 2026-03-18 12:06:01 -06:00
skill-discovery.ts fix: prevent CPU spinning from regex backtracking and TTSR throttling (#468) 2026-03-15 12:41:28 -05:00
skill-health.ts feat: skill lifecycle management — telemetry, health dashboard, heal-skill (#599) (#649) 2026-03-16 10:32:55 -06:00
skill-telemetry.ts feat: skill lifecycle management — telemetry, health dashboard, heal-skill (#599) (#649) 2026-03-16 10:32:55 -06:00
state.ts fix: treat summary as terminal artifact even when roadmap slices are unchecked (#1632) 2026-03-20 13:19:56 -06:00
structured-data-formatter.ts feat: add token optimization suite for prompt caching, compression, and smart context selection 2026-03-17 22:02:27 -05:00
token-counter.ts feat: add token optimization suite for prompt caching, compression, and smart context selection 2026-03-17 22:02:27 -05:00
triage-resolution.ts refactor: move .gsd/ to external state directory with symlink (ADR-002) (#1242) 2026-03-18 14:05:10 -06:00
triage-ui.ts fix: add barrel files for remote-questions, ttsr, and shared extensions (#1048) 2026-03-17 18:48:32 -06:00
types.ts feat(gsd): activate matching skills in dispatched prompts (#1630) 2026-03-20 13:20:06 -06:00
undo.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
unit-id.ts refactor: extract parseUnitId() to centralize unit ID parsing (#1282) 2026-03-18 19:20:08 -06:00
unit-runtime.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
validate-directory.ts feat(gsd): add directory safeguards for system/home paths (#1053) 2026-03-17 21:57:53 -06:00
verification-evidence.ts feat(gsd): add .gsd/RUNTIME.md template for declared runtime context (#1626) 2026-03-20 12:51:51 -06:00
verification-gate.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
visualizer-data.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
visualizer-overlay.ts fix: add barrel files for remote-questions, ttsr, and shared extensions (#1048) 2026-03-17 18:48:32 -06:00
visualizer-views.ts feat: health check phase 2 — real-time doctor issue visibility across widget, visualizer, and HTML reports (#1644) 2026-03-20 15:33:40 -06:00
workflow-templates.ts feat: workflow templates — right-sized workflows for every task type (#1185) 2026-03-18 12:25:28 -06:00
workspace-index.ts perf: optimize bg-shell hot path, parallel git queries, lazy workspace validation 2026-03-16 19:11:43 -05:00
worktree-command-bootstrap.ts Improve startup performance with lazy extension loading (#1336) 2026-03-19 07:38:50 -06:00
worktree-command.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
worktree-manager.ts M001: The Minimal Machine — linear auto-loop, sole-authority state, sidecar queue, WorktreeResolver (#1419) 2026-03-19 14:56:00 -06:00
worktree-resolver.ts fix: realign cwd before dispatch + clean stale merge state on failure (#1389) (#1400) 2026-03-19 16:55:18 -06:00
worktree.ts fix: detect worktree paths resolved through .gsd symlinks (#1585) 2026-03-20 08:10:45 -06:00