@lunaroute/cli 0.7.0 → 0.8.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 +9 -6
  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.7.0";
7
+ var version = "0.8.0";
8
8
 
9
9
  // src/login.ts
10
10
  import { createServer } from "http";
@@ -1053,15 +1053,15 @@ function buildPlan3(ctx) {
1053
1053
  { name: "ANTHROPIC_MODEL", value: firstModel },
1054
1054
  // Claude Code sends this hint header (x-claude-code-request-class:
1055
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.
1056
+ // auto-mode classifier and other auxiliary requests a fast path
1057
+ // instead of queueing them behind the session's own requests.
1058
1058
  { name: "CLAUDE_CODE_GATEWAY_HINT_HEADERS", value: "1" }
1059
1059
  ],
1060
1060
  notes: [
1061
1061
  "\nClaude Code: add the exports above to your shell profile, then restart Claude Code.",
1062
1062
  `Change ANTHROPIC_MODEL to any of: ${ctx.models.map((m) => m.id).join(", ")}`,
1063
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.",
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 path; without it they are still detected via their wire marker, just less directly.",
1065
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.",
1066
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.",
1067
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:",
@@ -1108,7 +1108,10 @@ function buildPlan4(ctx) {
1108
1108
  'name = "LunaRoute"',
1109
1109
  `base_url = "${base}/v1"`,
1110
1110
  'env_key = "LUNAROUTE_API_KEY"',
1111
- 'wire_api = "responses"'
1111
+ 'wire_api = "responses"',
1112
+ // Codex only calls /v1/alpha/search when the provider opts in; the
1113
+ // endpoint is derived from base_url by the /responses suffix swap.
1114
+ "supports_standalone_web_search = true"
1112
1115
  ]).join("\n") + "\n";
1113
1116
  return {
1114
1117
  fileWrites: [{ kind: "text", path: codexProfilePath(), content }],
@@ -2455,7 +2458,7 @@ function buildRunSpec(ctx) {
2455
2458
 
2456
2459
  // src/run/adapters/codex.ts
2457
2460
  function buildRunSpec2(ctx) {
2458
- const provider = `{name="LunaRoute",base_url="${ctx.routingUrl}/v1",env_key="LUNAROUTE_API_KEY",wire_api="responses"}`;
2461
+ const provider = `{name="LunaRoute",base_url="${ctx.routingUrl}/v1",env_key="LUNAROUTE_API_KEY",wire_api="responses",supports_standalone_web_search=true}`;
2459
2462
  const args = [
2460
2463
  "-c",
2461
2464
  'model_provider="lunaroute"',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunaroute/cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "LunaRoute CLI — configure coding harnesses and manage your LunaRoute account.",
5
5
  "repository": {
6
6
  "type": "git",