@lunaroute/cli 0.6.1 → 0.7.0

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 (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import { Command, InvalidArgumentError, Option } from "commander";
5
5
 
6
6
  // package.json
7
- var version = "0.6.1";
7
+ var version = "0.7.0";
8
8
 
9
9
  // src/login.ts
10
10
  import { createServer } from "http";
@@ -1050,12 +1050,18 @@ function buildPlan3(ctx) {
1050
1050
  // keys are ignored and the OAuth token 401s through the gateway, kata
1051
1051
  // 009h).
1052
1052
  { name: "ANTHROPIC_AUTH_TOKEN", value: `$${ctx.keyEnvVar}` },
1053
- { name: "ANTHROPIC_MODEL", value: firstModel }
1053
+ { name: "ANTHROPIC_MODEL", value: firstModel },
1054
+ // Claude Code sends this hint header (x-claude-code-request-class:
1055
+ // auxiliary) only when asked to, and LunaRoute reads it to give
1056
+ // auto-mode classifier and other auxiliary requests a fast dedicated
1057
+ // lane instead of queueing them behind the session's own requests.
1058
+ { name: "CLAUDE_CODE_GATEWAY_HINT_HEADERS", value: "1" }
1054
1059
  ],
1055
1060
  notes: [
1056
1061
  "\nClaude Code: add the exports above to your shell profile, then restart Claude Code.",
1057
1062
  `Change ANTHROPIC_MODEL to any of: ${ctx.models.map((m) => m.id).join(", ")}`,
1058
1063
  "(Auth travels in the Authorization: Bearer header via ANTHROPIC_AUTH_TOKEN.)",
1064
+ "CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 makes Claude Code label its auxiliary requests (the auto-mode safety classifier) so LunaRoute can route them to a fast dedicated lane; without it they are still detected via their wire marker, just less directly.",
1059
1065
  "If your Claude Code build predates ANTHROPIC_AUTH_TOKEN support, set ANTHROPIC_API_KEY=$LUNAROUTE_API_KEY instead \u2014 LunaRoute also authenticates lr_ keys sent as x-api-key. Bearer wins whenever both are set.",
1060
1066
  "To set these in ~/.claude/settings.json instead, note its env values are literal \u2014 the key would be baked into the file rather than read from $LUNAROUTE_API_KEY.",
1061
1067
  "If Claude Code hangs or keeps retrying when connecting, your key is likely wrong \u2014 it retries auth errors silently. Debug with the curl below, which fails fast with the real error:",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunaroute/cli",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "LunaRoute CLI — configure coding harnesses and manage your LunaRoute account.",
5
5
  "repository": {
6
6
  "type": "git",