@hasna/switcher 0.2.20 → 0.2.21
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 +1 -1
- package/dist/claude-desktop.js +95 -95
- package/dist/cli/index.js +130 -54
- package/dist/harness-types.d.ts +6 -0
- package/dist/index.js +96 -96
- package/dist/inference-gateway.d.ts +6 -0
- package/dist/mcp/index.js +100 -100
- package/dist/sdk.js +96 -96
- package/dist/serve/index.js +2 -2
- package/docs/GATEWAY-SERVICE.md +59 -10
- package/openapi.json +1 -1
- package/package.json +1 -1
|
@@ -19,11 +19,17 @@ export type GatewayInput = HarnessLaunchInput & {
|
|
|
19
19
|
onRoutingEvent?: (event: RoutingEvent) => void;
|
|
20
20
|
};
|
|
21
21
|
/** A started gateway endpoint as a native harness sees it. */
|
|
22
|
+
/**
|
|
23
|
+
* routeSettingsFile: set when the gateway keeps serving this token to a session of this user
|
|
24
|
+
* after the launch ends and across restarts (a durable route). The harness writes the route
|
|
25
|
+
* into that file, which the gateway removes or empties when it stops accepting the token.
|
|
26
|
+
*/
|
|
22
27
|
export type GatewayLease = {
|
|
23
28
|
baseUrl: string;
|
|
24
29
|
token: string;
|
|
25
30
|
cleanup: () => Promise<void>;
|
|
26
31
|
retainsState?: () => boolean;
|
|
32
|
+
routeSettingsFile?: string;
|
|
27
33
|
};
|
|
28
34
|
/** Where a launch's inference gateway runs: its own listener, or a persistent service. */
|
|
29
35
|
export type GatewayHost = {
|