singularity-forge/src/tests
TÂCHES 5a36c131a9 fix: detect stale bundled resources via content fingerprint (#1193)
initResources() only re-synced when the GSD version changed. This meant
same-version content fixes (e.g. the subagent bundled-extension-paths.js
import fix in a2a701b1) never reached ~/.gsd/agent/extensions/ because
the version-only check saw 2.28.0 == 2.28.0 and skipped the sync.

Add a lightweight content fingerprint (sha256 of file paths + sizes) to
the managed-resources.json manifest. On startup, if the version matches
but the fingerprint doesn't, resources are re-synced. This covers:

- npm link dev workflows where source changes without version bumps
- hotfixes within a release that change bundled extension content
- upgrades from manifests without contentHash (treated as stale)

Cost: ~1ms of stat calls on ~100 files — no file reads needed.
2026-03-18 11:06:09 -06:00
..
integration test: expand E2E smoke tests with 14 new CLI verification tests 2026-03-17 00:02:26 -05:00
app-smoke.test.ts perf: skip initResources when version matches, consolidate startup I/O (#1052) 2026-03-17 21:57:13 -06:00
artifact-manager.test.ts feat: TTSR + blob/artifact storage (ported from oh-my-pi) 2026-03-13 08:43:56 -06:00
auto-budget.test.ts refactor: extract 7 focused modules from auto.ts (#898) 2026-03-17 11:03:01 -05:00
auto-tool-tracking.test.ts refactor: extract 7 focused modules from auto.ts (#898) 2026-03-17 11:03:01 -05:00
bg-shell-persistence-cwd.test.ts fix/gsd-bg-shell-stale-cwd: normalize bg-shell worktree cwd detection 2026-03-16 17:02:58 -04:00
bg-shell-session-cleanup.test.ts fix: reap orphan-prone child processes across session churn (#920) 2026-03-17 13:14:51 -06:00
blob-store.test.ts feat: TTSR + blob/artifact storage (ported from oh-my-pi) 2026-03-13 08:43:56 -06:00
bundled-extension-paths.test.ts Fix packaging verification and path portability (#378) 2026-03-14 12:28:14 -06:00
ci_monitor.test.ts feat: add GitHub Workflows skill with CI workflow and ci_monitor tool (#294) 2026-03-13 22:31:17 -06:00
extension-smoke.test.ts fix: google-search OAuth test mock and Windows path separator in smoke test 2026-03-16 11:56:46 -06:00
file-watcher.test.ts fix: skip environment-dependent tests in CI 2026-03-16 14:38:59 -05:00
google-search-auth.repro.test.ts fix: google-search OAuth test mock and Windows path separator in smoke test 2026-03-16 11:56:46 -06:00
headless-detection.test.ts fix: headless mode exits early on progress notifications containing 'complete' (#879) (#888) 2026-03-17 09:11:34 -06:00
headless-events.test.ts feat: add --events flag for JSONL stream filtering (#1000) 2026-03-17 17:35:44 -06:00
llm-context-tavily.test.ts feat: add Tavily as alternative search provider (#102) 2026-03-12 07:12:19 -06:00
marketplace-discovery.test.ts fix: remove duplicate marketplace-discovery test 2026-03-17 16:18:45 -06:00
mcp-server.test.ts fix: resolve CI failures in VS Code extension PR 2026-03-16 16:53:34 -05:00
native-search.test.ts fix: limit native web_search to max_uses:5 per response (#817) (#869) 2026-03-17 08:23:05 -06:00
postinstall.test.ts fix: strip clack UI from postinstall, keep silent Playwright download (#783) 2026-03-16 21:35:04 -06:00
provider.test.ts fix(search): consolidate duplicate Brave API helpers (#1010) 2026-03-17 18:06:23 -06:00
resource-sync-staleness.test.ts fix: detect stale bundled resources via content fingerprint (#1193) 2026-03-18 11:06:09 -06:00
search-provider-command.test.ts feat: add Ollama Cloud as model and web tool provider (#430) (#434) 2026-03-14 21:03:31 -06:00
search-tavily.test.ts feat: add Tavily as alternative search provider (#102) 2026-03-12 07:12:19 -06:00
secret-scan.test.ts feat: add pre-commit secret scanner and CI secret detection (#1148) 2026-03-18 08:33:17 -06:00
tavily-helpers.test.ts feat: add Tavily as alternative search provider (#102) 2026-03-12 07:12:19 -06:00
token-counter.test.ts feat: add GitHub API client, diff-aware context, tiktoken token counting 2026-03-16 13:50:00 -05:00
tool-bootstrap.test.ts Fix packaging verification and path portability (#378) 2026-03-14 12:28:14 -06:00
ttsr-manager.test.ts fix: add barrel files for remote-questions, ttsr, and shared extensions (#1048) 2026-03-17 18:48:32 -06:00
ttsr-rule-loader.test.ts fix: add barrel files for remote-questions, ttsr, and shared extensions (#1048) 2026-03-17 18:48:32 -06:00
update-check.test.ts feat: add startup update check with 24h cache 2026-03-13 14:28:43 -03:00
url-utils.test.ts security: add SSRF protection to fetch_page tool 2026-03-16 13:35:48 -05:00