@alexeiled/claude-router 1.0.0 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexeiled/claude-router",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Native Claude Code Mod: Jev model and effort routing for the main conversation.",
5
5
  "license": "MIT",
6
6
  "author": "Alexei Ledenev",
@@ -32,6 +32,7 @@
32
32
  "check": "biome check lib scripts test hooks types .claude-plugin package.json package-lock.json biome.json experiments/mod-router",
33
33
  "validate": "claude plugin validate .claude-plugin/plugin.json && claude plugin validate .claude-plugin/marketplace.json",
34
34
  "format": "biome format --write .",
35
+ "docs:images": "node scripts/render-doc-images.mjs",
35
36
  "pack:dry": "npm pack --dry-run",
36
37
  "prepublishOnly": "npm run check && npm test"
37
38
  },
package/types/index.d.ts CHANGED
@@ -19,6 +19,16 @@ declare module 'claude-code' {
19
19
  cap?: number;
20
20
  cache?: RouterCacheState | { candidate: RouterCacheState; incumbent: RouterCacheState };
21
21
  }
22
+ interface RouterTuning {
23
+ timeoutMs: number;
24
+ downgradeVotes: number;
25
+ horizon: number;
26
+ cashCapUsd: number;
27
+ }
28
+ interface RouterRoutes {
29
+ routes: Record<RouterTier, { model: string; effort?: string | null }>;
30
+ baselineTier: RouterTier;
31
+ }
22
32
  interface RouterView {
23
33
  phase: 'ready' | 'choosing' | 'routed' | 'manual' | 'unavailable';
24
34
  mode: 'auto' | 'manual';
@@ -43,9 +53,16 @@ declare module 'claude-code' {
43
53
  adviceChoice?: RouterTier | 'uncertain' | null;
44
54
  estimate?: RouterEstimate | null;
45
55
  comparison?: RouterComparison | null;
56
+ probabilities?: Partial<Record<RouterTier | 'uncertain', number>> | null;
46
57
  history?: number[];
58
+ tiers?: (RouterTier | null)[];
47
59
  configPath?: string | null;
48
- tuning?: { timeoutMs: number; downgradeVotes: number; horizon: number } | null;
60
+ tuning?: Partial<RouterTuning> | null;
61
+ tuningBase?: RouterTuning | null;
62
+ routeDraft?: (RouterRoutes & { base: RouterRoutes }) | null;
63
+ tab?: 'now' | 'tiers' | 'tuning' | 'usage';
64
+ help?: boolean;
65
+ bandDetail?: boolean;
49
66
  notice?: string | null;
50
67
  }
51
68
  interface RouterPolicyState {