Antigravity AI
f7435926cd
fix(30): Phase 30 gap closure - registry tests, security hardening, code review fixes
GAP 1 - Registry tests (was 5 failing, now 27 passing):
- Add injectable fs reader (_setReaderForTest/_restoreReader) to registry.ts
to bypass Vitest jsdom/Node built-in mock interop limitations
- Switch import to node:fs/promises and use _readdir/_readfile internally
- Rewrite registry describe block to inject fake readers directly
GAP 2 - Security hardening (T-30-01/03/04):
- fetchRouteSource: SSRF guard rejects any path not starting with "/" or containing "://"
- getRegistry: type allowlist drops sources with types other than geojson/route
- fetchGeojsonSource: post-join path confinement asserts absolutePath stays inside public/
- sync-local-plugins.mjs: filter localData before writing plugin.json (type, path, no "..")
- Add tests: SSRF guard rejects absolute-URL route, type allowlist drops csv sources
GAP 3 - Code review fixes:
- normalizers.ts: genericity fix - id uses pluginId param not hardcoded "camera-"
- fetchRouteSource: drop NEXTAUTH_URL (auth callback URL, wrong for app base)
- fetchRouteSource: remove stray console.error (no-stray-console rule)
2026-06-02 17:15:09 +12:00
..
2026-05-26 16:43:24 +12:00
2026-05-10 11:02:45 +12:00
2026-05-09 22:44:30 +12:00
2026-03-11 16:20:40 +13:00
2026-05-17 17:36:33 +12:00
2026-05-15 11:20:29 +12:00
2026-04-18 23:50:06 +12:00
2026-05-29 11:14:49 +12:00
2026-04-17 16:59:15 +12:00
2026-05-28 11:27:21 +12:00
2026-05-09 11:02:46 +12:00
2026-05-09 22:44:30 +12:00
2026-05-09 22:44:30 +12:00
2026-05-15 14:57:37 +12:00
2026-05-29 11:14:49 +12:00
2026-06-02 17:15:09 +12:00
2026-04-28 23:39:20 +12:00
2026-05-21 01:07:16 +12:00