Repository navigation
fix/issues/03 no casts edges - #260
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Test plan
Related