@hasna/switcher 0.2.4 → 0.2.5

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 CHANGED
@@ -15,8 +15,7 @@ RUN bun run generate \
15
15
 
16
16
  FROM --platform=linux/arm64 oven/bun:1.3.14-alpine AS runtime
17
17
  ENV NODE_ENV=production \
18
- PORT=8080 \
19
- HOST=0.0.0.0
18
+ PORT=8080
20
19
  WORKDIR /app
21
20
  RUN apk upgrade --no-cache \
22
21
  && apk add --no-cache ca-certificates wget \
@@ -38,4 +37,4 @@ USER bun
38
37
  EXPOSE 8080
39
38
  HEALTHCHECK --interval=20s --timeout=5s --start-period=15s --retries=3 \
40
39
  CMD bun -e 'fetch("http://127.0.0.1:8080/ready").then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))'
41
- CMD ["switcher-serve"]
40
+ CMD ["switcher-serve", "--host", "0.0.0.0"]
package/dist/cli/index.js CHANGED
@@ -514,7 +514,7 @@ function canonicalPolicyJSON(value) {
514
514
  }
515
515
 
516
516
  // src/domain.ts
517
- var VERSION = "0.2.4";
517
+ var VERSION = "0.2.5";
518
518
  var harnessSchema = z4.enum(["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "aider", "kilo"]);
519
519
  var protocolSchema = z4.enum(["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]);
520
520
  var idSchema = z4.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}$/);
@@ -2440,7 +2440,7 @@ var openapi_default = {
2440
2440
  openapi: "3.0.3",
2441
2441
  info: {
2442
2442
  title: "Switcher API",
2443
- version: "0.2.4",
2443
+ version: "0.2.5",
2444
2444
  description: "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
2445
2445
  },
2446
2446
  security: [
package/dist/domain.d.ts CHANGED
@@ -3,7 +3,7 @@ import { type RoutingEvent } from "./model-policy-schema";
3
3
  export { modelPolicySchema, routingEventSchema, routingEventsSchema } from "./model-policy-schema";
4
4
  export type { ModelPolicy, RoutingEvent } from "./model-policy-schema";
5
5
  export type { AuthStyle } from "./auth";
6
- export declare const VERSION = "0.2.4";
6
+ export declare const VERSION = "0.2.5";
7
7
  export declare const harnessSchema: z.ZodEnum<["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "aider", "kilo"]>;
8
8
  export declare const protocolSchema: z.ZodEnum<["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]>;
9
9
  export declare const idSchema: z.ZodString;
package/dist/mcp/index.js CHANGED
@@ -69,7 +69,7 @@ function canonicalPolicyJSON(value) {
69
69
  }
70
70
 
71
71
  // src/domain.ts
72
- var VERSION = "0.2.4";
72
+ var VERSION = "0.2.5";
73
73
  var harnessSchema = z3.enum(["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "aider", "kilo"]);
74
74
  var protocolSchema = z3.enum(["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]);
75
75
  var idSchema = z3.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}$/);
@@ -1174,7 +1174,7 @@ var openapi_default = {
1174
1174
  openapi: "3.0.3",
1175
1175
  info: {
1176
1176
  title: "Switcher API",
1177
- version: "0.2.4",
1177
+ version: "0.2.5",
1178
1178
  description: "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
1179
1179
  },
1180
1180
  security: [
@@ -68,7 +68,7 @@ function canonicalPolicyJSON(value) {
68
68
  }
69
69
 
70
70
  // src/domain.ts
71
- var VERSION = "0.2.4";
71
+ var VERSION = "0.2.5";
72
72
  var harnessSchema = z3.enum(["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "aider", "kilo"]);
73
73
  var protocolSchema = z3.enum(["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]);
74
74
  var idSchema = z3.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}$/);
@@ -899,7 +899,7 @@ var openapi_default = {
899
899
  openapi: "3.0.3",
900
900
  info: {
901
901
  title: "Switcher API",
902
- version: "0.2.4",
902
+ version: "0.2.5",
903
903
  description: "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
904
904
  },
905
905
  security: [
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
4
  "title": "Switcher API",
5
- "version": "0.2.4",
5
+ "version": "0.2.5",
6
6
  "description": "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
7
7
  },
8
8
  "security": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/switcher",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "Universal provider and model switcher for coding harnesses with an API, SDK and self-hosted storage",
6
6
  "license": "Apache-2.0",