@hasna/switcher 0.2.18 → 0.2.19
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/Dockerfile +6 -1
- package/README.md +1 -1
- package/dist/claude-desktop.js +19180 -3734
- package/dist/cli/index.js +613 -319
- package/dist/codex-state-bridge.js +4 -4
- package/dist/credentials.d.ts +36 -184
- package/dist/domain.d.ts +271 -737
- package/dist/gateway-service.d.ts +3 -1
- package/dist/index.js +19122 -3676
- package/dist/inference-gateway.d.ts +2 -0
- package/dist/mcp/index.js +19611 -4119
- package/dist/model-policy-schema.d.ts +93 -112
- package/dist/opencode2-config.d.ts +8 -12
- package/dist/presets.d.ts +2 -2
- package/dist/process-table.d.ts +7 -0
- package/dist/reasoning.d.ts +11 -2
- package/dist/sdk.js +19122 -3676
- package/dist/serve/index.js +269 -223
- package/docs/GATEWAY-SERVICE.md +66 -30
- package/openapi.json +264 -218
- package/package.json +8 -5
|
@@ -33,11 +33,13 @@ export type InferenceHandlerOptions = {
|
|
|
33
33
|
/** Resolve the provider credential when a request needs it; replaces input.credential. */
|
|
34
34
|
credential?: () => Promise<string | undefined>;
|
|
35
35
|
};
|
|
36
|
+
/** close aborts requests in flight; drain refuses new ones and lets those in flight finish. */
|
|
36
37
|
export type InferenceHandler = {
|
|
37
38
|
bodyLimit: number;
|
|
38
39
|
closing: () => boolean;
|
|
39
40
|
handle: (request: Request, server: Bun.Server<unknown>) => Promise<Response>;
|
|
40
41
|
close: () => Promise<void>;
|
|
42
|
+
drain: () => Promise<void>;
|
|
41
43
|
};
|
|
42
44
|
export declare const MAX_REQUEST_BODY_BYTES: number;
|
|
43
45
|
/** A launch's credential boundary and model policy, independent of the listener that serves it. */
|