github-router 0.3.346 → 0.3.347

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +6 -6
  2. package/dist/{attribution-settings-DyzvcqWL.js → attribution-settings-50S3mk4N.js} +10 -10
  3. package/dist/attribution-settings-50S3mk4N.js.map +1 -0
  4. package/dist/{balanced-profile-contract-C6AgFJNp.js → balanced-profile-contract-XiIj4O1U.js} +7 -7
  5. package/dist/balanced-profile-contract-XiIj4O1U.js.map +1 -0
  6. package/dist/browser-ext/manifest.json +1 -1
  7. package/dist/{claude-Bc-4s27I.js → claude-D0rojAcX.js} +16 -16
  8. package/dist/claude-D0rojAcX.js.map +1 -0
  9. package/dist/{codex-D6ZfS7hJ.js → codex-kcdKpoOe.js} +5 -5
  10. package/dist/{codex-D6ZfS7hJ.js.map → codex-kcdKpoOe.js.map} +1 -1
  11. package/dist/copilot-discount-CilBhKQW.js.map +1 -1
  12. package/dist/engine-BWxxbsSu.js +2 -0
  13. package/dist/{gate-discovery-TC3k4dr1.js → gate-discovery-CzZ5Oc3H.js} +3 -3
  14. package/dist/{gate-discovery-TC3k4dr1.js.map → gate-discovery-CzZ5Oc3H.js.map} +1 -1
  15. package/dist/hooks.mjs +8 -7
  16. package/dist/hooks.sha256 +1 -1
  17. package/dist/{internal-fast-dispatch-guard-7UiD_vM5.js → internal-fast-dispatch-guard-DRsZJ-Rg.js} +2 -2
  18. package/dist/{internal-fast-dispatch-guard-7UiD_vM5.js.map → internal-fast-dispatch-guard-DRsZJ-Rg.js.map} +1 -1
  19. package/dist/{internal-fast-dispatch-guard-ByXUE5oO.js → internal-fast-dispatch-guard-DeZ6KilC.js} +1 -1
  20. package/dist/{internal-max-dispatch-guard-CioyE9wn.js → internal-max-dispatch-guard-DSjJwVH2.js} +3 -3
  21. package/dist/internal-max-dispatch-guard-DSjJwVH2.js.map +1 -0
  22. package/dist/{internal-max-dispatch-guard-BSRTtOit.js → internal-max-dispatch-guard-KmbYwh7h.js} +1 -1
  23. package/dist/{internal-prompt-submit-BMJ0A7vR.js → internal-prompt-submit-DGxv_Vgl.js} +2 -2
  24. package/dist/{internal-prompt-submit-BMJ0A7vR.js.map → internal-prompt-submit-DGxv_Vgl.js.map} +1 -1
  25. package/dist/{internal-stop-hook-BjdKy6On.js → internal-stop-hook-BdVV3NyD.js} +4 -4
  26. package/dist/{internal-stop-hook-BjdKy6On.js.map → internal-stop-hook-BdVV3NyD.js.map} +1 -1
  27. package/dist/main.js +9 -9
  28. package/dist/{max-profile-contract-LTJstj1e.js → max-profile-contract--dAYkEG1.js} +5 -4
  29. package/dist/max-profile-contract--dAYkEG1.js.map +1 -0
  30. package/dist/{orchestration-BMISq91N.js → orchestration-Ccmfslh4.js} +2 -2
  31. package/dist/{orchestration-BMISq91N.js.map → orchestration-Ccmfslh4.js.map} +1 -1
  32. package/dist/{peer-mcp-personas-CIV3aDP6.js → peer-mcp-personas-DlmmbpD6.js} +62 -60
  33. package/dist/peer-mcp-personas-DlmmbpD6.js.map +1 -0
  34. package/dist/{pi-CugyWYp7.js → pi-07uTIAcP.js} +8 -5
  35. package/dist/pi-07uTIAcP.js.map +1 -0
  36. package/dist/{provision-J68elA3c.js → provision-D_rmmqTq.js} +3 -3
  37. package/dist/{provision-J68elA3c.js.map → provision-D_rmmqTq.js.map} +1 -1
  38. package/dist/{serve-BEY7EjEv.js → serve-DbrYa6zo.js} +6 -6
  39. package/dist/{serve-BEY7EjEv.js.map → serve-DbrYa6zo.js.map} +1 -1
  40. package/dist/{server-setup-tNMUzFgE.js → server-setup-CKhj8I0W.js} +16 -16
  41. package/dist/server-setup-CKhj8I0W.js.map +1 -0
  42. package/dist/{start-BDxUhfDG.js → start-BXVrchgI.js} +4 -4
  43. package/dist/{start-BDxUhfDG.js.map → start-BXVrchgI.js.map} +1 -1
  44. package/dist/{stop-gate-hook-DBcxPgkF.js → stop-gate-hook-DZVfKoSh.js} +2 -2
  45. package/dist/{stop-gate-hook-DBcxPgkF.js.map → stop-gate-hook-DZVfKoSh.js.map} +1 -1
  46. package/package.json +1 -1
  47. package/dist/attribution-settings-DyzvcqWL.js.map +0 -1
  48. package/dist/balanced-profile-contract-C6AgFJNp.js.map +0 -1
  49. package/dist/claude-Bc-4s27I.js.map +0 -1
  50. package/dist/engine-PexAztE4.js +0 -2
  51. package/dist/internal-max-dispatch-guard-CioyE9wn.js.map +0 -1
  52. package/dist/max-profile-contract-LTJstj1e.js.map +0 -1
  53. package/dist/peer-mcp-personas-CIV3aDP6.js.map +0 -1
  54. package/dist/pi-CugyWYp7.js.map +0 -1
  55. package/dist/server-setup-tNMUzFgE.js.map +0 -1
package/README.md CHANGED
@@ -88,7 +88,7 @@ Each persona is exposed both as a Claude Code subagent (callable via the `Task`
88
88
 
89
89
  | Subagent | Model | Endpoint | Effort tiers (default) |
90
90
  |---|---|---|---|
91
- | `codex-critic` | gpt-6-sol | `/v1/responses` | low \| medium \| high \| xhigh (xhigh) |
91
+ | `codex-critic` | gpt-5.6-sol | `/v1/responses` | low \| medium \| high \| xhigh (xhigh) |
92
92
  | `codex-reviewer` | gpt-5.3-codex | `/v1/responses` | low \| medium \| high \| xhigh (xhigh) |
93
93
  | `gemini-reviewer` | gemini-3.1-pro-preview | `/v1/chat/completions` | low \| medium \| high (high) |
94
94
  | `opus-critic` | claude-opus-4-6 | `/v1/messages` | low \| medium \| high (high) |
@@ -107,7 +107,7 @@ The launcher also registers focused native subagents that run in their own conte
107
107
 
108
108
  | Subagent | Use for | Preferred model chain | Tools |
109
109
  |---|---|---|---|
110
- | `implementer` | Coding changes needing judgment or with ambiguous scope | gpt-6-sol → gpt-5.5 | Full inherited toolset |
110
+ | `implementer` | Coding changes needing judgment or with ambiguous scope | gpt-5.6-sol → gpt-6-sol → gpt-5.5 | Full inherited toolset |
111
111
  | `implementer-fast` | Well-specified, mechanical coding changes | gpt-5.6-terra → gemini-3.1-pro-preview | Full inherited toolset |
112
112
  | `reviewer` | Assessing an existing diff, plan, document, or failure | gemini-3.1-pro-preview → gemini-3.8-flash → OpenAI frontier | Full inherited toolset |
113
113
  | `reviewer-fast` | Lower-stakes assessment on a cheaper cross-lab model | gemini-3.8-flash | Full inherited toolset |
@@ -136,7 +136,7 @@ The fastest path is the `codex` subcommand — it boots the proxy on a random po
136
136
  bunx github-router@latest codex
137
137
  ```
138
138
 
139
- Defaults to `gpt-6-sol`; falls back to `gpt-5.5` → `gpt-5.4` → `gpt-5.3-codex` → `gpt-5.2-codex` if your Copilot tier doesn't expose 5.6-sol yet. Override with `-m`:
139
+ Defaults to `gpt-5.6-sol`; falls back to `gpt-6-sol` → `gpt-5.5` → `gpt-5.4` → `gpt-5.3-codex` → `gpt-5.2-codex` if your Copilot tier doesn't expose 5.6-sol yet. Override with `-m`:
140
140
 
141
141
  ```sh
142
142
  bunx github-router@latest codex -m gpt-5.3-codex
@@ -149,7 +149,7 @@ bunx github-router@latest start --codex # interactive launch-command generator
149
149
  # — or set env vars yourself —
150
150
  export OPENAI_BASE_URL="http://localhost:8787/v1"
151
151
  export OPENAI_API_KEY="dummy"
152
- codex --full-auto -m gpt-6-sol
152
+ codex --full-auto -m gpt-5.6-sol
153
153
  ```
154
154
 
155
155
  ---
@@ -188,7 +188,7 @@ Anthropic endpoints are only available under `/v1/messages`.
188
188
  | Model | /chat/completions | /responses | /v1/messages |
189
189
  |---|---|---|---|
190
190
  | gpt-4.1, gpt-4o | Yes | Yes | No |
191
- | gpt-6-sol, gpt-5.5, gpt-5.4 | No | Yes | No |
191
+ | gpt-5.6-sol, gpt-6-sol, gpt-5.5, gpt-5.4 | No | Yes | No |
192
192
  | gpt-5.3-codex, gpt-5.2-codex | No | Yes | No |
193
193
  | claude-opus-4.8 (1M context as the single base slug) | Yes | No | Yes |
194
194
  | claude-opus-4.7-1m-internal (enterprise), claude-opus-4.7 | Yes | No | Yes |
@@ -257,7 +257,7 @@ github-router debug Print diagnostic info
257
257
  The `claude` and `codex` subcommands accept all the shared flags below plus `-m`/`--model` to override the default model. Default models live in `src/lib/port.ts`:
258
258
 
259
259
  - `claude` → `claude-opus-4-8` (Anthropic dashed slug for UI compatibility; the proxy translates to Copilot's `claude-opus-4.8` — the single base slug already advertises 1M context via `max_context_window_tokens`, so no `-1m` sibling exists). Major.minor fallback chain: `claude-opus-4-7` → `claude-opus-4-6` → `claude-opus-4-5`.
260
- - `codex` → `gpt-6-sol` → `gpt-5.5` → `gpt-5.4` → `gpt-5.3-codex` → `gpt-5.2-codex`
260
+ - `codex` → `gpt-5.6-sol` → `gpt-6-sol` → `gpt-5.5` → `gpt-5.4` → `gpt-5.3-codex` → `gpt-5.2-codex`
261
261
 
262
262
  Fallback chains fire only on the implicit-default path; explicit `-m`/`--model` is always respected as-is.
263
263
 
@@ -1,10 +1,10 @@
1
1
  import { a as isUnderClaudeConfigMirror, f as writeRuntimeFileSecure, t as PATHS } from "./paths-CpbTHKeP.js";
2
- import { C as CHEAP_REVIEWER_ALIAS_ID, S as CHEAP_PLAN_ALIAS_ID, T as MAX_BROWSE_LOW_ALIAS_ID, _ as CHEAPEST_EXPLORE_ALIAS_ID, b as CHEAP_EXPLORE_ALIAS_ID, g as BROWSE_LOW_ALIAS_ID, h as BALANCED_REVIEWER_ALIAS_ID, m as BALANCED_GENERAL_PURPOSE_ALIAS_ID, p as BALANCED_EXPLORE_ALIAS_ID, v as CHEAPEST_GENERAL_PURPOSE_ALIAS_ID, w as LUNA_SCOUT_ALIAS_ID, x as CHEAP_GENERAL_PURPOSE_ALIAS_ID, y as CHEAPEST_REVIEWER_ALIAS_ID } from "./server-setup-tNMUzFgE.js";
3
- import { _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, v as FAST_PROFILE_NATIVE_AGENT_NAMES, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-C6AgFJNp.js";
4
- import { Fn as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, In as CHEAPEST_PROFILE_NATIVE_EFFORTS, On as oneMContextDisabled, Un as CHEAP_PROFILE_NATIVE_AGENT_NAMES, Wn as CHEAP_PROFILE_NATIVE_EFFORTS, a as buildAgentPrompt, cn as DEFINITION_OF_GREATNESS, kn as withOneMSuffix, l as maxPersonasFor, n as MCP_GROUPS, sn as CONDENSED_OPERATING_SEQUENCE, t as GROUP_META, u as personasFor } from "./peer-mcp-personas-CIV3aDP6.js";
5
- import { C as MAX_PARALLELISM_RULE, S as MAX_COORDINATOR_PROMPT, T as maxNativePrompt, a as MAX_PROFILE_NATIVE_AGENT_NAMES, i as MAX_PROFILE_MODELS, o as MAX_PROFILE_NATIVE_EFFORTS, s as MAX_PROFILE_NATIVE_MODELS, w as maxNativeDescription, x as MAX_COORDINATOR_DESCRIPTION } from "./max-profile-contract-LTJstj1e.js";
2
+ import { C as CHEAP_REVIEWER_ALIAS_ID, S as CHEAP_PLAN_ALIAS_ID, T as MAX_BROWSE_LOW_ALIAS_ID, _ as CHEAPEST_EXPLORE_ALIAS_ID, b as CHEAP_EXPLORE_ALIAS_ID, g as BROWSE_LOW_ALIAS_ID, h as BALANCED_REVIEWER_ALIAS_ID, m as BALANCED_GENERAL_PURPOSE_ALIAS_ID, p as BALANCED_EXPLORE_ALIAS_ID, v as CHEAPEST_GENERAL_PURPOSE_ALIAS_ID, w as LUNA_SCOUT_ALIAS_ID, x as CHEAP_GENERAL_PURPOSE_ALIAS_ID, y as CHEAPEST_REVIEWER_ALIAS_ID } from "./server-setup-CKhj8I0W.js";
3
+ import { _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, v as FAST_PROFILE_NATIVE_AGENT_NAMES, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-XiIj4O1U.js";
4
+ import { Fn as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, In as CHEAPEST_PROFILE_NATIVE_EFFORTS, On as oneMContextDisabled, Un as CHEAP_PROFILE_NATIVE_AGENT_NAMES, Wn as CHEAP_PROFILE_NATIVE_EFFORTS, a as buildAgentPrompt, cn as DEFINITION_OF_GREATNESS, kn as withOneMSuffix, l as maxPersonasFor, n as MCP_GROUPS, sn as CONDENSED_OPERATING_SEQUENCE, t as GROUP_META, u as personasFor } from "./peer-mcp-personas-DlmmbpD6.js";
5
+ import { C as MAX_PARALLELISM_RULE, S as MAX_COORDINATOR_PROMPT, T as maxNativePrompt, a as MAX_PROFILE_NATIVE_AGENT_NAMES, i as MAX_PROFILE_MODELS, o as MAX_PROFILE_NATIVE_EFFORTS, s as MAX_PROFILE_NATIVE_MODELS, w as maxNativeDescription, x as MAX_COORDINATOR_DESCRIPTION } from "./max-profile-contract--dAYkEG1.js";
6
6
  import "./self-invocation-DIUyoRgL.js";
7
- import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-J68elA3c.js";
7
+ import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-D_rmmqTq.js";
8
8
  import { n as buildWorkspaceHeaderHelperCommand } from "./mcp-workspace-header-B77WqVFw.js";
9
9
  import { a as dispatcherAgentName, c as dispatcherTools, n as activeDispatchModes, o as dispatcherDescription, s as dispatcherPrompt } from "./worker-dispatch-lRhno09M.js";
10
10
  import consola from "consola";
@@ -133,16 +133,16 @@ function buildCoordinatorAgent(opts) {
133
133
  "",
134
134
  "The lead's brief will include an artifact (plan, design, diff, or code) and a goal (e.g. 'review before exit-plan', 'review the commit I just made', 'cross-check codex-critic's verdict'). Pick the right peers for the artifact type:",
135
135
  "",
136
- "- **Plan / design / architecture choice** → fan out to `codex-critic` (gpt-6-sol, strongest reasoning, cross-lab)" + (opts.geminiAvailable ? " AND `gemini-critic` (third-lab triangulation, strong on formal reasoning) in parallel" : "") + ". codex-reviewer is the wrong tool for plans (it's a code-specialist, not an architecture critic).",
136
+ "- **Plan / design / architecture choice** → fan out to `codex-critic` (gpt-5.6-sol, strongest reasoning, cross-lab)" + (opts.geminiAvailable ? " AND `gemini-critic` (third-lab triangulation, strong on formal reasoning) in parallel" : "") + ". codex-reviewer is the wrong tool for plans (it's a code-specialist, not an architecture critic).",
137
137
  "- **Concrete diff or single file** → fan out to `codex-reviewer` (gpt-5.3-codex, line-level code specialist)" + (opts.geminiAvailable ? " AND `gemini-reviewer` (gemini-3.1-pro, second-lab line-level review)" : "") + (opts.geminiAvailable ? " AND `gemini-critic` for cross-lab triangulation" : "") + ". For very small changes (<20 lines), one `codex-reviewer` call is enough.",
138
- "- **Large artifact** → the only peers that take a large artifact WHOLE are `codex-critic` (gpt-6-sol, ≈1M-token input window) and `opus-critic` (Opus-4.7-1M, ≈936K-token input on enterprise catalogs; ≈168K otherwise). Route the full artifact to those for cross-lab coverage. `codex-reviewer` (≈272K) and `gemini-critic` (≈136K) have small windows — see Decomposition below: never summarize or downsize the request to squeeze a large artifact into a small-window peer.",
138
+ "- **Large artifact** → the only peers that take a large artifact WHOLE are `codex-critic` (gpt-5.6-sol, ≈1M-token input window) and `opus-critic` (Opus-4.7-1M, ≈936K-token input on enterprise catalogs; ≈168K otherwise). Route the full artifact to those for cross-lab coverage. `codex-reviewer` (≈272K) and `gemini-critic` (≈136K) have small windows — see Decomposition below: never summarize or downsize the request to squeeze a large artifact into a small-window peer.",
139
139
  "- **Formal reasoning, proofs, or invariants** → prefer `gemini-critic`" + (opts.geminiAvailable ? " (gemini-3.1-pro, strong on math and formally-stated properties)" : " (NOT REGISTERED in this session — gemini-3.x not in catalog)") + ".",
140
140
  "- **Tie-breaker after codex-critic has weighed in** → call `gemini-critic`" + (opts.geminiAvailable ? "" : " (NOT REGISTERED in this session)") + " or `opus-critic` with the artifact AND codex-critic's verdict for cross-check.",
141
141
  "- **Fast sanity check** → `opus-critic` (same lab as lead but fresh context — catches confabulation and motivated reasoning).",
142
142
  "",
143
143
  "## Decomposition for large artifacts",
144
144
  "",
145
- "Route by the peer's real PROMPT WINDOW (input tokens): `codex-critic` gpt-6-sol ≈1M · `opus-critic` Opus-4.7-1M ≈936K (enterprise catalogs; ≈168K otherwise) · `codex-reviewer` gpt-5.3-codex ≈272K · `gemini-critic` gemini-3.1-pro ≈136K. The proxy REJECTS (with an actionable message) any single call whose brief exceeds the target peer's window — it will NOT silently truncate, because dropping lines from a review artifact is worse than a clear error. So: send the full artifact only to peers whose window fits it (large artifacts → `codex-critic` and/or `opus-critic`). When a peer's window is too small (commonly `gemini-critic` at ≈136K, or `codex-reviewer` at ≈272K), do NOT summarize or downsize the request to include it — either skip that peer, or split the artifact into 2-4 logical batches BY CONCERN (not by raw size — semantic batches give better per-batch reviews) that each fit, and call in parallel. Use the big-window peers for the whole and reserve a small-window peer like gemini for the concerns it can actually hold. The proxy's MCP cap allows up to 8 in-flight calls. Aggregate findings yourself before reporting back. (Separately, on the JSON transport a per-effort `predictedTooLong` byte cap still guards the ~60s tools/call timeout for non-SSE clients; Claude Code uses SSE, which streams with heartbeats and isn't subject to that cap.)",
145
+ "Route by the peer's real PROMPT WINDOW (input tokens): `codex-critic` gpt-5.6-sol ≈1M · `opus-critic` Opus-4.7-1M ≈936K (enterprise catalogs; ≈168K otherwise) · `codex-reviewer` gpt-5.3-codex ≈272K · `gemini-critic` gemini-3.1-pro ≈136K. The proxy REJECTS (with an actionable message) any single call whose brief exceeds the target peer's window — it will NOT silently truncate, because dropping lines from a review artifact is worse than a clear error. So: send the full artifact only to peers whose window fits it (large artifacts → `codex-critic` and/or `opus-critic`). When a peer's window is too small (commonly `gemini-critic` at ≈136K, or `codex-reviewer` at ≈272K), do NOT summarize or downsize the request to include it — either skip that peer, or split the artifact into 2-4 logical batches BY CONCERN (not by raw size — semantic batches give better per-batch reviews) that each fit, and call in parallel. Use the big-window peers for the whole and reserve a small-window peer like gemini for the concerns it can actually hold. The proxy's MCP cap allows up to 8 in-flight calls. Aggregate findings yourself before reporting back. (Separately, on the JSON transport a per-effort `predictedTooLong` byte cap still guards the ~60s tools/call timeout for non-SSE clients; Claude Code uses SSE, which streams with heartbeats and isn't subject to that cap.)",
146
146
  "",
147
147
  "## Aggregation contract",
148
148
  "",
@@ -2919,7 +2919,7 @@ The dispatcher calls the worker once and relays its result verbatim.
2919
2919
  * - review pass 2 (major issues only): Sol, medium effort
2920
2920
  */
2921
2921
  const SKILL_LUNA_MODEL_ID = "gpt-6-luna";
2922
- const SKILL_SOL_MODEL_ID = "gpt-6-sol";
2922
+ const SKILL_SOL_MODEL_ID = "gpt-5.6-sol";
2923
2923
  Object.freeze({
2924
2924
  gatherContext: Object.freeze({
2925
2925
  lead: SKILL_LUNA_MODEL_ID,
@@ -3898,4 +3898,4 @@ async function injectAttributionSuppressionIntoSettingsFile(settingsPath) {
3898
3898
  //#endregion
3899
3899
  export { writePeerMcpRuntimeFiles as C, workersKeyOf as S, sanitizeServeSettingsEnv as _, appendPeerAwarenessToMirroredClaudeMd as a, resolveCodexCliBackend as b, buildOperatingDefaultsDirective as c, prependStyleDirectiveToMirroredClaudeMd as d, buildArtifactReviewSkill as f, planModeAllowRules as g, injectAllowRules as h, writeInjectedSkill as i, prependArtifactPanelDirectiveToMirroredClaudeMd as l, configureServeDefaultPermissionMode as m, getInjectedSkills as n, appendToolbeltAwarenessToMirroredClaudeMd as o, SEAMLESS_BUILTIN_TOOLS as p, injectedSkillsForLaunch as r, buildOperatingDefaultsDigest as s, injectAttributionSuppressionIntoSettingsFile as t, prependOperatingDefaultsToMirroredClaudeMd as u, BUILTIN_SUBAGENT_DEFINITIONS as v, resolveGroupKeysFromMirror as x, injectPeerMcpIntoMirror as y };
3900
3900
 
3901
- //# sourceMappingURL=attribution-settings-DyzvcqWL.js.map
3901
+ //# sourceMappingURL=attribution-settings-50S3mk4N.js.map