Repository navigation
Description
What to build
The repo runs one copy of the TanStack AI stack, on the current release line, with every gate green.
Today it runs three copies of @tanstack/ai side by side. The cause is a version mismatch we introduced rather than being behind: we declare @tanstack/ai@^0.42.0 while pinning @tanstack/ai-code-mode@0.3.7, whose peer dependency is exactly 0.41.0. Two copies of that package in one graph is the same hazard this repo already documents for Ark/Solid and for the RPC client — shared constants and identity checks stop matching across the boundary, and nothing warns you.
The dependency half is done on conciv-init: the stack moves to the 0.43.0 line as one consistent set (ai 0.43.0, ai-code-mode 0.3.9, ai-isolate-node 0.1.48, ai-sandbox 0.3.0, ai-sandbox-local-process 0.2.1, claude-code and codex 0.3.0, opencode and acp 0.2.4, ai-mcp 0.2.6, ai-client 0.23.0, ai-solid 0.16.0), every peer satisfied exactly, and the lockfile now references a single version. The local-process patch — a one-line stdin EPIPE guard that upstream still does not carry — was regenerated against 0.2.1 through the package manager's own patch flow, because the file had been restructured and the old diff could not apply. Four transitive stack members were added to the release-age exclusion list with a dated comment and a note to drop them once they age out, matching the convention already there.
What remains is the source migration, and it is not cosmetic. The event-log types this repo imports no longer exist: RunEventLog and InMemoryRunEventLog were removed from the sandbox package, which now expects the separate persistence package's stores. Alongside that, tool handlers may now be synchronous, so a schema-less tool no longer satisfies the code-mode tool type; the event union narrowed such that a run-started shape no longer widens to the umbrella event type; and one subscribe call now takes a different argument shape.
Tests are not the gate here — typecheck and build are, because a version split shows up as a type mismatch long before it shows up as a failing assertion.
Acceptance criteria
- One copy of every stack package in the graph; a check asserts the lockfile has no second version of the core package
- Every peer dependency satisfied with no unmet-peer warning from the stack
- Run-event logging moved onto whatever the current release provides, with durability behaviour unchanged from the user's point of view
- Code-mode tool construction typechecks without loosening our own tool contract — a synchronous handler is awaited at our boundary, not passed through
- The subscribe and event-emission call sites match the new signatures, with the existing streaming behaviour preserved
- The local-process patch still applies and is verified present in the installed build, not merely referenced
-
typecheck,build,lintandformat:checkall green; the full test suite run and its results reported - The release-age exclusions carry a dated reason and a removal note
Blocked by
- None — can start immediately.
Activity
omridevk commentedon Aug 4, 2026
Library references — read the resolved source under
node_modules/.pnpm/, not the docs alone. Earlier drafts of the design took doc statements at face value and were wrong three times; every claim that depends on library behaviour now carries a version and a path. The canonical table is in the spec under "Libraries: the exact versions, and where to read them". Versions assume the 0.43-line upgrade in #239.For this ticket:
@tanstack/ai@0.43.0dist/esm/types.d.tsfor the widened handler signature and the narrowed event union,@tanstack/ai-sandbox@0.3.0for what replaced the removed run-event-log exports,@tanstack/ai-persistence@0.1.0for the store shape the harness docs describe, andtanstack.com/ai/latest/docs/sandbox/harnessesplus/sandbox/journalfor the durability opt-in this restructure is part of.deps: single @tanstack/ai 0.43 stack, regen local-process patch (#239)
fix(core,client): migrate to ai-sandbox 0.3 event stores and 0.43 sig…
fix(ui-kit-chat): stop story stream yields after abort so stop settle…
fix(core): namespace run logs per instance, reject terminal runId reu…
feat(contract,core): declare RUN_ALREADY_FINISHED on chat.send and th…
test(harness): parse dist chunks with oxc-parser instead of regexing …
refactor(core): move run timing constants to a dedicated run-timing m…
fix(ui-kit-chat): guard trailing story lifecycle yields against post-…
fix(core): make runId reuse rejection atomic via the run store's crea…
fix(core): monotonic claim timestamps and failed-status finalization …
feat: conciv init — one-command project + harness setup, CLI promoted…