singularity-forge/src/resources/extensions/gsd
Flux Labs d35ae683f1 Fix #453 native hangs in GSD auto-mode paths (#502)
* fix: avoid native hangs in gsd auto paths

* fix: use .js extension in edit-diff.test.ts import for tsc compatibility

* fix: prevent OOM on large file diffs and implement context-line windowing

- Add size guard (MAX_DP_CELLS=4M) to buildLineDiff that falls back to a
  linear-time prefix/suffix matching algorithm for large files, preventing
  the O(n*m) DP table from causing OOM crashes
- Implement contextLines parameter in generateDiffString so only lines
  within N lines of a change are rendered (with "..." separators), matching
  unified diff behavior — the parameter was previously accepted but ignored
- Add tests for both context windowing and large-file fallback

---------

Co-authored-by: TÂCHES <afromanguy@me.com>
2026-03-15 22:22:58 -06:00
..
docs feat: add git.commit_docs setting to keep .gsd/ local-only (#588) 2026-03-15 22:09:29 -06:00
migrate fix: normalize .ts import extensions to .js for Node 22.22+ compatibility (#354) 2026-03-14 07:27:32 -06:00
prompts fix: auto-mode continues after guided milestone planning 2026-03-15 20:28:32 -06:00
templates feat(prompts): worktree cwd, pipeline awareness, depth calibration, template improvements (#543) 2026-03-15 17:06:06 -06:00
tests feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
activity-log.ts refactor: add GSDError base class and capture silent catch errors (#546) 2026-03-15 17:12:16 -06:00
auto-dashboard.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
auto-dispatch.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
auto-prompts.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
auto-recovery.ts fix: parse cache collision causing false loop detection on complete-slice (#583) 2026-03-15 22:10:48 -06:00
auto-supervisor.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
auto-worktree.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
auto.ts fix: allow stopping auto-mode from a different terminal (#586) 2026-03-15 22:19:04 -06:00
cache.ts refactor: unify cache invalidation into invalidateAllCaches() (#545) 2026-03-15 17:12:13 -06:00
commands.ts fix: allow stopping auto-mode from a different terminal (#586) 2026-03-15 22:19:04 -06:00
complexity.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
crash-recovery.ts refactor: add GSDError base class and capture silent catch errors (#546) 2026-03-15 17:12:16 -06:00
dashboard-overlay.ts feat(ux): terminal width warning and dashboard dispose safety 2026-03-15 09:56:45 -05:00
dispatch-guard.ts fix: prevent merge loop, auto-resolve .gsd/ conflicts, restore git.isolation (#530, #531) 2026-03-15 18:09:05 -05:00
doctor.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
errors.ts refactor: add GSDError base class and capture silent catch errors (#546) 2026-03-15 17:12:16 -06:00
exit-command.ts fix/gsd-graceful-exit: make /exit use graceful shutdown (#134) 2026-03-13 08:47:55 -06:00
export.ts feat: QOL improvements — 8 new commands, budget enforcement, notifications (#441) 2026-03-15 16:28:04 -06:00
files.ts fix: parse cache collision causing false loop detection on complete-slice (#583) 2026-03-15 22:10:48 -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: add git.commit_docs setting to keep .gsd/ local-only (#588) 2026-03-15 22:09:29 -06:00
gitignore.ts feat: add git.commit_docs setting to keep .gsd/ local-only (#588) 2026-03-15 22:09:29 -06:00
guided-flow.ts feat: add git.commit_docs setting to keep .gsd/ local-only (#588) 2026-03-15 22:09:29 -06:00
history.ts feat: QOL improvements — 8 new commands, budget enforcement, notifications (#441) 2026-03-15 16:28:04 -06:00
index.ts feat: add /gsd steer command for hard-steering plan documents (#82) (#566) 2026-03-15 19:10:59 -06:00
metrics.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
native-git-bridge.ts Fix #453 native hangs in GSD auto-mode paths (#502) 2026-03-15 22:22:58 -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: QOL improvements — 8 new commands, budget enforcement, notifications (#441) 2026-03-15 16:28:04 -06:00
observability-validator.ts Initial commit 2026-03-10 22:28:37 -06:00
package.json Initial commit 2026-03-10 22:28:37 -06:00
paths.ts feat: native perf optimizations — deriveState, JSONL, paths, parsing (#576) 2026-03-15 20:16:42 -06:00
post-unit-hooks.ts feat: add extensible hook system for auto-mode state machine (#140) 2026-03-14 16:52:43 -05:00
preferences.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
prompt-loader.ts Potential fix for pull request finding 2026-03-14 17:55:05 -06:00
provider-error-pause.ts fix: resolve TypeScript errors in GSD extension files (#571) 2026-03-15 19:12:23 -06:00
roadmap-slices.ts fix: normalize .ts import extensions to .js for Node 22.22+ compatibility (#354) 2026-03-14 07:27:32 -06:00
routing-history.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
session-forensics.ts feat: native perf optimizations — deriveState, JSONL, paths, parsing (#576) 2026-03-15 20:16:42 -06:00
skill-discovery.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
state.ts feat: native perf optimizations — deriveState, JSONL, paths, parsing (#576) 2026-03-15 20:16:42 -06:00
types.ts feat: token optimization — profile presets, context compression, complexity routing, budget prediction (#582) 2026-03-15 22:20:38 -06:00
undo.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
unit-runtime.ts fix: normalize .ts import extensions to .js for Node 22.22+ compatibility (#354) 2026-03-14 07:27:32 -06:00
workspace-index.ts refactor: PR quality fixes — deduplicate findMilestoneIds, rename prefix→suffix, shared test helpers, fix typo (#360) 2026-03-14 08:42:22 -06:00
worktree-command.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
worktree-manager.ts feat: move git operations to Rust via git2 crate (#572) 2026-03-15 20:02:10 -06:00
worktree.ts feat: add git.commit_docs setting to keep .gsd/ local-only (#588) 2026-03-15 22:09:29 -06:00