github-router 0.3.342 → 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.
- package/README.md +13 -8
- package/dist/{attribution-settings-DA3wkQHE.js → attribution-settings-BkhBJn_K.js} +4 -4
- package/dist/{attribution-settings-DA3wkQHE.js.map → attribution-settings-BkhBJn_K.js.map} +1 -1
- package/dist/{auth-DjKEIiqG.js → auth-Cgsy2T0s.js} +2 -2
- package/dist/{auth-DjKEIiqG.js.map → auth-Cgsy2T0s.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-B7UrDwD8.js → check-usage-26G2hw_F.js} +3 -3
- package/dist/{check-usage-B7UrDwD8.js.map → check-usage-26G2hw_F.js.map} +1 -1
- package/dist/{claude-CMuHUWWy.js → claude-CarqHLsD.js} +7 -7
- package/dist/{claude-CMuHUWWy.js.map → claude-CarqHLsD.js.map} +1 -1
- package/dist/{codex-B__qfHCC.js → codex-AdG6FZIV.js} +5 -5
- package/dist/{codex-B__qfHCC.js.map → codex-AdG6FZIV.js.map} +1 -1
- package/dist/engine-gOzWnh6S.js +2 -0
- package/dist/{gate-discovery-BIBgN6mA.js → gate-discovery-ByujYipc.js} +2 -2
- package/dist/{gate-discovery-BIBgN6mA.js.map → gate-discovery-ByujYipc.js.map} +1 -1
- package/dist/{get-copilot-usage-CGaV01dC.js → get-copilot-usage-C_6ast5h.js} +2 -2
- package/dist/{get-copilot-usage-CGaV01dC.js.map → get-copilot-usage-C_6ast5h.js.map} +1 -1
- package/dist/{internal-stop-hook-Dyn0fRpZ.js → internal-stop-hook-DEMbF-hU.js} +2 -2
- package/dist/{internal-stop-hook-Dyn0fRpZ.js.map → internal-stop-hook-DEMbF-hU.js.map} +1 -1
- package/dist/main.js +9 -9
- package/dist/{models-68HDOEPK.js → models-BGCeGVXl.js} +2 -2
- package/dist/{models-68HDOEPK.js.map → models-BGCeGVXl.js.map} +1 -1
- package/dist/{peer-mcp-personas-Dt0VRKYz.js → peer-mcp-personas-CvqVopTx.js} +2 -2
- package/dist/{peer-mcp-personas-Dt0VRKYz.js.map → peer-mcp-personas-CvqVopTx.js.map} +1 -1
- package/dist/{pi-WT6IahMr.js → pi-C8jxbK_2.js} +689 -130
- package/dist/pi-C8jxbK_2.js.map +1 -0
- package/dist/{pi-memory-bridge-BWZJnjpz.js → pi-memory-bridge-DEU1SUDz.js} +5 -5
- package/dist/{pi-memory-bridge-BWZJnjpz.js.map → pi-memory-bridge-DEU1SUDz.js.map} +1 -1
- package/dist/{provision-D_aHUCXt.js → provision-CJ3Zzs_Q.js} +2 -2
- package/dist/{provision-D_aHUCXt.js.map → provision-CJ3Zzs_Q.js.map} +1 -1
- package/dist/{serve-BaLMvHSp.js → serve-DQhAmfp2.js} +6 -6
- package/dist/{serve-BaLMvHSp.js.map → serve-DQhAmfp2.js.map} +1 -1
- package/dist/{server-setup-B7Usfq5v.js → server-setup-BBbpJRWv.js} +25 -10
- package/dist/server-setup-BBbpJRWv.js.map +1 -0
- package/dist/{start-C-13_1Ld.js → start-C34seGtb.js} +3 -3
- package/dist/{start-C-13_1Ld.js.map → start-C34seGtb.js.map} +1 -1
- package/dist/state-CVp30CBF.js.map +1 -1
- package/dist/{token-DATA_OQK.js → token-s5Wd-Kwr.js} +2 -1
- package/dist/{token-DATA_OQK.js.map → token-s5Wd-Kwr.js.map} +1 -1
- package/package.json +2 -2
- package/dist/engine-DvGukHty.js +0 -2
- package/dist/pi-WT6IahMr.js.map +0 -1
- package/dist/server-setup-B7Usfq5v.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
|
-
|
|
19
|
+
bunx github-router@latest auth
|
|
20
20
|
|
|
21
21
|
# 2. Start the proxy
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3901
|
+
//# sourceMappingURL=attribution-settings-BkhBJn_K.js.map
|