singularity-forge/packages
Mikael Hugo 66309b235f
Some checks are pending
sf self-deploy / build, test, and publish server image (push) Waiting to run
sf self-deploy / upgrade vega source server (push) Blocked by required conditions
sf self-deploy / deploy test and probe (push) Blocked by required conditions
sf self-deploy / promote prod (push) Blocked by required conditions
fix(circular): skip type-only imports + break tui ↔ overlay-layout cycle
Two changes (one walker, one real code):

1. scripts/check-circular-deps.mjs — skip type-only imports.
   `import type { X } from "..."` and `export type { X } from "..."`
   are erased by tsc at compile time and cannot cause runtime cycles.
   Walker now drops them, matching the precedent set by skipping
   dynamic `await import(...)`. Net effect on full-repo scan:
     before: 9 cycles
     after:  3 cycles (the 6 that disappeared were all `import type`
       false-positives — none were real runtime cycles).

2. packages/tui — break the last 2-file cycle.
   tui.ts and overlay-layout.ts had a real RUNTIME cycle:
     - tui.ts → overlay-layout.ts:  applyLineResets, compositeOverlays,
       extractCursorPosition, isOverlayVisible (4 fns)
     - overlay-layout.ts → tui.ts:  CURSOR_MARKER (1 const)
   Both files already imported `./overlay-types.ts` (no cycle there).
   Moved CURSOR_MARKER from tui.ts into overlay-types.ts and re-exported
   from tui.ts so existing `from "./tui.js"` call sites keep working.
   No behavior change.

Remaining cycles after both fixes (3 real-runtime ones, separate slices):
  - safety/autonomous-rollback chain (9 files, SF extension)
  - packages/coding-agent core mega-cycle (12 files)
  - (one more, see `npm run check:circular`)

These are foundational refactors worth their own commits, not bundled
into this one.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 00:28:53 +02:00
..
agent-core chore(release): 2.75.3 → 2.75.4 + workspace dependency refresh 2026-05-16 23:59:14 +02:00
ai remove: SF voice IVR / ElevenLabs paging — migrated to centralcloud 2026-05-17 17:42:16 +02:00
coding-agent fix(rpc, web): integrate drain into forceShutdown + healthz-503 on shutdown 2026-05-17 22:35:50 +02:00
daemon refactor(sf): separate daemon from server identity 2026-05-17 19:18:33 +02:00
google-gemini-cli-provider chore(release): 2.75.3 → 2.75.4 + workspace dependency refresh 2026-05-16 23:59:14 +02:00
native feat: replace launchd with systemd user-unit install path 2026-05-17 17:33:34 +02:00
openai-codex-provider chore(release): 2.75.3 → 2.75.4 + workspace dependency refresh 2026-05-16 23:59:14 +02:00
rpc-client fix: harden sf server control loop 2026-05-17 21:13:12 +02:00
tui fix(circular): skip type-only imports + break tui ↔ overlay-layout cycle 2026-05-18 00:28:53 +02:00