github-router 0.3.343 → 0.3.344

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 (41) hide show
  1. package/README.md +13 -8
  2. package/dist/{attribution-settings-DJEBjfJQ.js → attribution-settings-BkhBJn_K.js} +4 -4
  3. package/dist/{attribution-settings-DJEBjfJQ.js.map → attribution-settings-BkhBJn_K.js.map} +1 -1
  4. package/dist/{auth-DjKEIiqG.js → auth-Cgsy2T0s.js} +2 -2
  5. package/dist/{auth-DjKEIiqG.js.map → auth-Cgsy2T0s.js.map} +1 -1
  6. package/dist/browser-ext/manifest.json +1 -1
  7. package/dist/{check-usage-B7UrDwD8.js → check-usage-26G2hw_F.js} +3 -3
  8. package/dist/{check-usage-B7UrDwD8.js.map → check-usage-26G2hw_F.js.map} +1 -1
  9. package/dist/{claude-DJeYKVL2.js → claude-CarqHLsD.js} +7 -7
  10. package/dist/{claude-DJeYKVL2.js.map → claude-CarqHLsD.js.map} +1 -1
  11. package/dist/{codex-cUYAC32x.js → codex-AdG6FZIV.js} +5 -5
  12. package/dist/{codex-cUYAC32x.js.map → codex-AdG6FZIV.js.map} +1 -1
  13. package/dist/engine-gOzWnh6S.js +2 -0
  14. package/dist/{gate-discovery-BIBgN6mA.js → gate-discovery-ByujYipc.js} +2 -2
  15. package/dist/{gate-discovery-BIBgN6mA.js.map → gate-discovery-ByujYipc.js.map} +1 -1
  16. package/dist/{get-copilot-usage-CGaV01dC.js → get-copilot-usage-C_6ast5h.js} +2 -2
  17. package/dist/{get-copilot-usage-CGaV01dC.js.map → get-copilot-usage-C_6ast5h.js.map} +1 -1
  18. package/dist/{internal-stop-hook-Dyn0fRpZ.js → internal-stop-hook-DEMbF-hU.js} +2 -2
  19. package/dist/{internal-stop-hook-Dyn0fRpZ.js.map → internal-stop-hook-DEMbF-hU.js.map} +1 -1
  20. package/dist/main.js +9 -9
  21. package/dist/{models-68HDOEPK.js → models-BGCeGVXl.js} +2 -2
  22. package/dist/{models-68HDOEPK.js.map → models-BGCeGVXl.js.map} +1 -1
  23. package/dist/{peer-mcp-personas-Dt0VRKYz.js → peer-mcp-personas-CvqVopTx.js} +2 -2
  24. package/dist/{peer-mcp-personas-Dt0VRKYz.js.map → peer-mcp-personas-CvqVopTx.js.map} +1 -1
  25. package/dist/{pi-CnsdJGF0.js → pi-C8jxbK_2.js} +512 -88
  26. package/dist/pi-C8jxbK_2.js.map +1 -0
  27. package/dist/{provision-D_aHUCXt.js → provision-CJ3Zzs_Q.js} +2 -2
  28. package/dist/{provision-D_aHUCXt.js.map → provision-CJ3Zzs_Q.js.map} +1 -1
  29. package/dist/{serve-CwaKseAj.js → serve-DQhAmfp2.js} +6 -6
  30. package/dist/{serve-CwaKseAj.js.map → serve-DQhAmfp2.js.map} +1 -1
  31. package/dist/{server-setup-CtzSW7Ms.js → server-setup-BBbpJRWv.js} +25 -10
  32. package/dist/server-setup-BBbpJRWv.js.map +1 -0
  33. package/dist/{start-DqfQyqxD.js → start-C34seGtb.js} +3 -3
  34. package/dist/{start-DqfQyqxD.js.map → start-C34seGtb.js.map} +1 -1
  35. package/dist/state-CVp30CBF.js.map +1 -1
  36. package/dist/{token-DATA_OQK.js → token-s5Wd-Kwr.js} +2 -1
  37. package/dist/{token-DATA_OQK.js.map → token-s5Wd-Kwr.js.map} +1 -1
  38. package/package.json +2 -2
  39. package/dist/engine-DvGukHty.js +0 -2
  40. package/dist/pi-CnsdJGF0.js.map +0 -1
  41. package/dist/server-setup-CtzSW7Ms.js.map +0 -1
package/README.md CHANGED
@@ -16,14 +16,19 @@ github-router is a local reverse proxy that translates standard API formats to G
16
16
 
17
17
  ```sh
18
18
  # 1. Authenticate (one-time)
19
- npx github-router@latest auth
19
+ bunx github-router@latest auth
20
20
 
21
21
  # 2. Start the proxy
22
- npx github-router@latest start
22
+ bunx github-router@latest start
23
23
  ```
24
24
 
25
25
  The server runs at `http://localhost:8787`. Now pick your tool below.
26
26
 
27
+ > Bun is the default runtime for developing and running github-router
28
+ > (`bunx`, `bun install`, `bun test`). Plain Node.js 24/26 + npm stay
29
+ > supported (see the `node-compat` CI lane) — every `bunx` command below
30
+ > has an `npx` equivalent.
31
+
27
32
  ---
28
33
 
29
34
  ## Use with Claude Code
@@ -31,13 +36,13 @@ The server runs at `http://localhost:8787`. Now pick your tool below.
31
36
  **Option A: One-shot subcommand (recommended)**
32
37
 
33
38
  ```sh
34
- npx github-router@latest claude
39
+ bunx github-router@latest claude
35
40
  ```
36
41
 
37
42
  Boots the proxy on a random port and spawns Claude Code wired to it. Sets `ANTHROPIC_MODEL=claude-opus-4-8` (Anthropic's dashed slug — Claude Code's `/model` UI displays this as menu entry "Opus 4.8 (1M context)"). The proxy translates to Copilot's `claude-opus-4.8` at request time (single base slug; the catalog entry's `max_context_window_tokens` already advertises 1M context — no `-1m` sibling needed for 4.8). Major.minor fallback chain: `claude-opus-4-7` → `claude-opus-4-6` → `claude-opus-4-5`. Override with `-m`:
38
43
 
39
44
  ```sh
40
- npx github-router@latest claude -m claude-opus-4-8
45
+ bunx github-router@latest claude -m claude-opus-4-8
41
46
  ```
42
47
 
43
48
  The launcher sanitizes parent-env auth keys and sets `CLAUDE_CONFIG_DIR=$HOME/.claude` so the spawned `claude` ignores any persisted Console OAuth credential without requiring `claude /logout`. Settings, MCP servers, hooks, and CLAUDE.md auto-discovery still load from `~/.claude` as normal.
@@ -45,7 +50,7 @@ The launcher sanitizes parent-env auth keys and sets `CLAUDE_CONFIG_DIR=$HOME/.c
45
50
  **Option B: Interactive launch-command generator**
46
51
 
47
52
  ```sh
48
- npx github-router@latest start --claude-code
53
+ bunx github-router@latest start --claude-code
49
54
  ```
50
55
 
51
56
  Select your models, a launch command gets copied to your clipboard. Paste it in a new terminal.
@@ -128,19 +133,19 @@ Ripgrep is provided via the `@vscode/ripgrep` npm dependency (per-platform binar
128
133
  The fastest path is the `codex` subcommand — it boots the proxy on a random port and spawns Codex CLI wired to it:
129
134
 
130
135
  ```sh
131
- npx github-router@latest codex
136
+ bunx github-router@latest codex
132
137
  ```
133
138
 
134
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`:
135
140
 
136
141
  ```sh
137
- npx github-router@latest codex -m gpt-5.3-codex
142
+ bunx github-router@latest codex -m gpt-5.3-codex
138
143
  ```
139
144
 
140
145
  Or run the proxy and Codex CLI separately:
141
146
 
142
147
  ```sh
143
- npx github-router@latest start --codex # interactive launch-command generator
148
+ bunx github-router@latest start --codex # interactive launch-command generator
144
149
  # — or set env vars yourself —
145
150
  export OPENAI_BASE_URL="http://localhost:8787/v1"
146
151
  export OPENAI_API_KEY="dummy"
@@ -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-CtzSW7Ms.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-BBbpJRWv.js";
3
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-Dt0VRKYz.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-CvqVopTx.js";
5
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";
6
6
  import "./self-invocation-DIUyoRgL.js";
7
- import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-D_aHUCXt.js";
7
+ import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-CJ3Zzs_Q.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";
@@ -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-DJEBjfJQ.js.map
3901
+ //# sourceMappingURL=attribution-settings-BkhBJn_K.js.map