fix(types): make context builder output attachable - #77
Conversation
Port ContextInput from fork/port/openrouter-fixes commit efc2b68 onto current withContext/spawn names and post-68 example surfaces. Signed-off-by: Luke Parke <5702154+LukasParke@users.noreply.github.com>
|
@LukasParke is attempting to deploy a commit to the Matt Apperson's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Agent: CI reached the full core suite and failed only the unrelated timing-sensitive |
Run executeRunCode tests serially so their temporary global setTimeout proxy cannot capture delays from sibling tests under CI concurrency. Signed-off-by: Luke Parke <5702154+LukasParke@users.noreply.github.com>
Expose the pure retry-delay calculation for deterministic assertions instead of proxying global setTimeout, which captured sibling test timers under CI concurrency. Signed-off-by: Luke Parke <5702154+LukasParke@users.noreply.github.com>
|
Agent: Root-caused the repeated core CI failure to retry tests proxying global setTimeout and capturing sibling-test timers. Pushed a deterministic fix that tests the pure retry-delay function without mutating globals. DCO and Structural gate pass; CI rerun is in progress. |
What
ContextInput(readonly ContextLayer[]or any object with readonlylayers)spawnandwithContexttype/runtime seamscontext([...])output directly assignable without losing its inferred shapeWhy
ContextConfigpreserves exact layer types and is therefore invariant. The output of the publiccontext()builder was not assignable to thecontextoption on the builders it is meant to feed. A shallow structural input type preserves inference while giving attachment seams the minimum shape they need.This semantically ports
fork/port/openrouter-fixescommitefc2b689onto post-#68withContext/current names without restoring deleted bundled patterns.Test plan
sentrux check .Compatibility
Additive type widening only. Existing arrays and
ContextConfigvalues remain valid.