llm-relay 0.77.0 → 0.78.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/dist/accounting-store-schema.js +5 -6
- package/dist/accounting-store-schema.js.map +1 -1
- package/dist/accounting-store.d.ts +10 -0
- package/dist/accounting-store.js +60 -6
- package/dist/accounting-store.js.map +1 -1
- package/dist/backend/envelope-validator.d.ts +1 -1
- package/dist/backend/envelope-validator.js +89 -52
- package/dist/backend/envelope-validator.js.map +1 -1
- package/dist/backend/health-prober.js +3 -1
- package/dist/backend/health-prober.js.map +1 -1
- package/dist/backend.d.ts +48 -0
- package/dist/backend.js +831 -7
- package/dist/backend.js.map +1 -1
- package/dist/candidate-runner.d.ts +135 -50
- package/dist/candidate-runner.js +160 -55
- package/dist/candidate-runner.js.map +1 -1
- package/dist/cli.d.ts +24 -2
- package/dist/cli.js +122 -20
- package/dist/cli.js.map +1 -1
- package/dist/config/routing-parser.d.ts +13 -8
- package/dist/config/routing-parser.js +369 -183
- package/dist/config/routing-parser.js.map +1 -1
- package/dist/config-types.d.ts +202 -0
- package/dist/config-types.js +2 -0
- package/dist/config-types.js.map +1 -1
- package/dist/config.d.ts +45 -1
- package/dist/config.js +87 -22
- package/dist/config.js.map +1 -1
- package/dist/dashboard-contract.d.ts +38 -0
- package/dist/dashboard-contract.js +19 -3
- package/dist/dashboard-contract.js.map +1 -1
- package/dist/dispatch-lane-stats.d.ts +33 -4
- package/dist/dispatch-lane-stats.js +65 -16
- package/dist/dispatch-lane-stats.js.map +1 -1
- package/dist/dispatch.d.ts +9 -0
- package/dist/dispatch.js +36 -4
- package/dist/dispatch.js.map +1 -1
- package/dist/key-checker.d.ts +21 -1
- package/dist/key-checker.js +38 -12
- package/dist/key-checker.js.map +1 -1
- package/dist/lane-affinity.d.ts +94 -1
- package/dist/lane-affinity.js +52 -4
- package/dist/lane-affinity.js.map +1 -1
- package/dist/mcp/lane-runner.d.ts +69 -16
- package/dist/mcp/lane-runner.js +30 -1
- package/dist/mcp/lane-runner.js.map +1 -1
- package/dist/mcp/server.d.ts +39 -4
- package/dist/mcp/server.js +70 -13
- package/dist/mcp/server.js.map +1 -1
- package/dist/openai-request.d.ts +21 -0
- package/dist/openai-request.js +1 -1
- package/dist/openai-request.js.map +1 -1
- package/dist/ping/cadence.js +9 -1
- package/dist/ping/cadence.js.map +1 -1
- package/dist/ping/probe-cache.d.ts +13 -0
- package/dist/ping/probe-cache.js +12 -0
- package/dist/ping/probe-cache.js.map +1 -1
- package/dist/responses-request.d.ts +20 -0
- package/dist/responses-request.js +7 -7
- package/dist/responses-request.js.map +1 -1
- package/dist/routes/admin.d.ts +8 -1
- package/dist/routes/admin.js +42 -6
- package/dist/routes/admin.js.map +1 -1
- package/dist/routes/messages.d.ts +1 -0
- package/dist/routes/messages.js +13 -8
- package/dist/routes/messages.js.map +1 -1
- package/dist/routes/openai-front.js +20 -7
- package/dist/routes/openai-front.js.map +1 -1
- package/dist/server.d.ts +9 -1
- package/dist/server.js +21 -3
- package/dist/server.js.map +1 -1
- package/dist/setup-claude.d.ts +2 -2
- package/dist/setup-claude.js +9 -7
- package/dist/setup-claude.js.map +1 -1
- package/dist/stream-pipeline.d.ts +116 -0
- package/dist/stream-pipeline.js +151 -0
- package/dist/stream-pipeline.js.map +1 -1
- package/dist/target-facts.d.ts +5 -4
- package/dist/target-facts.js +5 -0
- package/dist/target-facts.js.map +1 -1
- package/dist/telemetry.d.ts +15 -2
- package/dist/telemetry.js +4 -1
- package/dist/telemetry.js.map +1 -1
- package/dist/tier-data.d.ts +22 -0
- package/dist/tier-data.js +12 -2
- package/dist/tier-data.js.map +1 -1
- package/package.json +2 -1
- package/skills/llm-relay/SKILL.md +8 -3
- package/skills/llm-relay/references/dispatch-lanes.md +2 -1
- package/skills/llm-relay/references/operations.md +1 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parsing and validating the `routing` block of a config document (HOTSPOT-03).
|
|
3
3
|
*
|
|
4
|
-
* `parseRouting` plus the
|
|
5
|
-
* (`parseQuotaEnforcement`, `parseLatencyDemotion`, `parseHedge`, `
|
|
6
|
-
* `parseLaneProbe`, `parseDispatchWalk`, `parseSticky`)
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
9
|
-
*
|
|
10
|
-
* `
|
|
4
|
+
* `parseRouting` plus the thirty-six declarations only it reaches: the nine sub-block parsers
|
|
5
|
+
* (`parseQuotaEnforcement`, `parseLatencyDemotion`, `parseHedge`, `parseProbation`, `parseCrawl`,
|
|
6
|
+
* `parseMcpSettings`, `parseLaneProbe`, `parseDispatchWalk`, `parseSticky`) assembled by `parseOptionalBlocks`,
|
|
7
|
+
* `parseOffload`, the top-level field parsers `assertNoReservedProviderNames`, `parseDefault`,
|
|
8
|
+
* `parseTiers` and `parseSubagents`, the pool trio `parsePoolPolicy`/`parsePoolEntry`/`parsePools`,
|
|
9
|
+
* the ladder family (`parseLadder`, `parseLadders`, `parseCliLane`, `parseSpawnEnv` and its three
|
|
10
|
+
* placeholder tokens), the disabled-provider degradation family (`dropDisabledSpecs`,
|
|
11
|
+
* `dropDisabledRungs`, `pruneDisabledSpecEntries`, `degradeDisabledRouting`), the resolvability
|
|
12
|
+
* trio `assertSpecResolvable`/`assertRungsResolvable`/`assertRoutingResolvable`,
|
|
13
|
+
* `hasAsciiControl`, `DEFAULT_LANE_PROBE`, `DEFAULT_DISPATCH_WALK` and `EFFORT_LEVEL_SET`.
|
|
14
|
+
* Roughly 700 lines out of a 2,000-line `config.ts`.
|
|
11
15
|
*
|
|
12
16
|
* ⚠ **It imports `config-types.js` and `spec.js`, and NOTHING else.** That is the property the item
|
|
13
17
|
* asks for, and it is why `spec.ts` had to exist first: this parser needs `POOL_PREFIX`,
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
* every client session, so refusing to start would turn one unused optional provider into a total
|
|
28
32
|
* outage. See the degradation rules in `CLAUDE.md`.
|
|
29
33
|
*/
|
|
30
|
-
import { type DispatchWalkSettings, type LaneProbeSettings, type OffloadConfig, type ProviderConfig, type Routing } from "../config-types.js";
|
|
34
|
+
import { type DispatchWalkOutlierSettings, type DispatchWalkSettings, type LaneProbeSettings, type OffloadConfig, type ProviderConfig, type Routing } from "../config-types.js";
|
|
31
35
|
export declare function parseRouting(raw: unknown, providers: Record<string, ProviderConfig>, overrideDefault: string | undefined, warnings?: string[], disabledProviders?: Set<string>): Routing;
|
|
32
36
|
export declare const DEFAULT_LANE_PROBE: LaneProbeSettings;
|
|
33
37
|
/**
|
|
@@ -45,6 +49,7 @@ export declare const DEFAULT_LANE_PROBE: LaneProbeSettings;
|
|
|
45
49
|
* several sessions' traffic, which is exactly why `docs/backlog.md` still carries the calibration
|
|
46
50
|
* as open work.
|
|
47
51
|
*/
|
|
52
|
+
export declare const DEFAULT_DISPATCH_WALK_OUTLIER: DispatchWalkOutlierSettings;
|
|
48
53
|
export declare const DEFAULT_DISPATCH_WALK: DispatchWalkSettings;
|
|
49
54
|
/** Parse the legacy global switch or the independently keyed client-rule form. */
|
|
50
55
|
export declare function parseOffload(raw: unknown): OffloadConfig;
|