Skip to content

fix/issues/03 no casts edges - #260

Merged
xiduzo merged 4 commits into
fix/issues/02-no-casts-corefrom
fix/issues/03-no-casts-edges
Dec 2, 2026
Merged

xiduzo merged 4 commits into
fix/issues/02-no-casts-corefrom
fix/issues/03-no-casts-edges

Conversation

@xiduzo

@xiduzo xiduzo commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Changes

Test plan

  • [ ]

Related

xiduzo and others added 4 commits December 1, 2026 21:33
The spec now has a typed `reasoning` builder that takes the model and the
effort and returns the adapter's ReasoningOption, or nothing for a model
that does not reason. The session passes what the builder returns.

- adapter-session.ts `as never`: red = removing the cast type-checks, the
  cast hid nothing (chat takes AnyTextAdapter) -> green = the builder types
  the level, check-types and 424 session/harness tests pass.

Closes #226

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
…ne typed wrapper

`claudeCodeText()` widens the adapter's config in one place: the model is any
id and the permission mode is Night Shift's own, `auto` included, which the
adapter passes to `claude --permission-mode` as it is. The adapter comes back
as an AnyTextAdapter, so any reasoning level type-checks. No call site casts.

- model `as "opus"`: red = removing it type-checks (ClaudeCodeModel takes any
  string) -> green = the wrapper takes a string model, check-types passes.
- mode `as "default"`: red = TS2322 '"auto"' is not assignable to
  ClaudeCodePermissionMode -> green = the wrapper's config takes PermissionMode,
  and a new test pins `--permission-mode auto` on the claude command line.

Refs #225

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
`proposalIssues` takes `Flow | null`. A new flow has no base, so only the
place names the connections and devices it may use. The terminal tools pass
the saved flow of that name or null, and the docs reference passes null.
The empty stand-in base and the `flow as Flow` cast are gone.

- terminal-tools `flow as Flow`: red = TS2345 'null' is not assignable to
  Flow, and the new unit test fails with "null is not an object (evaluating
  'draft.nodes')" -> green = check-types passes, flows assistant 86 pass,
  agents assistant 138 pass, docs:reference --check passes.

Closes #224

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
…o cast

`lookupRef` takes a RefContext: the template context, with the run left
optional. The editor's samples have no run, so it builds a RefContext
without one. The engine keeps TemplateContext, where the run is required.
The NO_RUN empty object and its cast are gone.

- flow-draft.ts NO_RUN: red = TS2741 Property 'run' is missing in type
  '{ nodes; inputs }' but required in type 'TemplateContext' -> green =
  check-types passes in all 22 tasks, the existing test "an input and a
  node's fields show their value in one line" still sees no sample for
  {{run.…}}, web flow-draft tests 21 pass.

Refs #222

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
@xiduzo
xiduzo added this pull request to stack #270 December 2, 2026 09:17
@xiduzo
xiduzo marked this pull request as ready for review December 2, 2026 10:21
@xiduzo
xiduzo merged commit 1732d0a into main Dec 2, 2026
24 checks passed
@xiduzo
xiduzo deleted the fix/issues/03-no-casts-edges branch December 2, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant