caelum0x 042a4408e3 feat(t3-bridge): wire t3code contracts into the governance seam; fix the embedded backend's fresh-worktree boot
Executes T3CODE-FORK.md's remaining scope: wires the two pure-schema
t3code packages (packages/contracts, packages/shared) into the root pnpm
workspace (scoped `effect` override edges, not the global security-floor
pin), and adds packages/t3-bridge — createT3TerminalCommandGate, the
governance seam (patch #2) mirroring the existing Loom steer CommandGate
adapter but for a t3 TerminalWriteInput, composing @recoder/governance's
CommandGate + FileAuditLog + @recoder/agent-os's ApprovalService. 10 tests,
including a compatibility suite that decodes a real @t3tools/contracts
effect/Schema payload and proves it reaches the approval gate.

Also fixes the fresh-worktree embedded-backend boot cascade this exposed:
missing @types/better-sqlite3 (mem0), missing dom lib (agent-browser),
missing esbuild externals (sandbox-daytona), a missing @smithy/types dep
plus a real AWS SDK v3 middleware-overload bug (pi-ai), a missing
@recoder/auth dependency and a null-handling bug in recloud-deploy, and a
genuine tsx@4.23.1 runtime-resolution bug (a tsconfig "paths" alias meant
for tsc leaks into tsx's runtime loader, resolving a subpath export to its
.d.ts instead of its .js) worked around by renaming agent-runtimes' "./loom"
export to "./loom-client" plus a classic nested-package types shim.

Backend `tsc` now exits 0 from a fresh worktree; `pnpm run dev` reaches
"recoder-backend listening" with a real (truthfully degraded) /health
response, and the desktop app's renderer shows real content (Welcome
dialog + sidebar), not just a window title — screenshots in /tmp.

Full writeup: packages/t3-bridge/README.md, plans/recoder.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 04:56:33 +03:00
..