fix: complete demo, OpenRouter and TypeSafe provider routing - #1
Merged
Merged
Conversation
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
--provider typesafecurrently returnsunsupported provider: typesafedespite being advertised by the CLI configuration and MCP schema. This change completes the three existing native routing providers (demo,openrouter, and directtypesafe) through the CLI and stdio MCP./v1/systemoneendpoint into routing, and return the normal fallback envelope for unsupported providers.demo; Hermes allows the provider HTTP timeout to finish.HTTP contracts were checked against the official TypeSafe reference and OpenRouter Decisions reference.
Checklist
npm testnpm run smokenpm run fail-open-smokenpm run clean-install-smokenpm pack --dry-runVerification output
Local Node.js
26.2.0:npm test: 92 passed, 0 failed, 0 skipped (baseline: 26 passed).npm pack --dry-run --json: passed; provider resolver, documentation and regression tests included.git diff --checkand the repository's credential-pattern check: passed.New checks cover request/flag/environment/config precedence for all three providers; both remote HTTP payloads; missing keys, 401/422/429/529, malformed responses, invalid selections, low confidence and actual HTTP timeouts; custom environment names; and Hermes/OMP adapter transport. HTTP tests use fixture credentials and a loopback server or injected responses. Browser checks exercise structured decisions only.
No live provider inference, real browser/UI, or interactive agent model was run. Local sandbox restrictions affected npm subprocesses/cache; the required checks passed when rerun with the necessary local permissions.