@intentic/sandbox-contract 1.140.0 → 1.140.1

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.
@@ -12,6 +12,5 @@ export declare const HARNESSES: readonly {
12
12
  label: string;
13
13
  value: AgentHarness;
14
14
  }[];
15
- export declare const usesLiveCatalog: (provider: AgentProvider, harness: AgentHarness) => boolean;
16
- export declare const modelsFor: (provider: AgentProvider, harness: AgentHarness) => CatalogOption[];
15
+ export declare const modelsFor: (provider: AgentProvider) => CatalogOption[];
17
16
  //# sourceMappingURL=agent-catalog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOhF,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AAKD,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EAIxE,CAAC;AAIF,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,MAAwE,CAAC;AAKjI,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,EAGtE,CAAC;AAMF,eAAO,MAAM,eAAe,aAAc,aAAa,WAAW,YAAY,KAAG,OAAwD,CAAC;AAQ1I,eAAO,MAAM,SAAS,aAAc,aAAa,WAAW,YAAY,KAAG,aAAa,EAgBvF,CAAC"}
1
+ {"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOhF,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AAKD,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EAIxE,CAAC;AAIF,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,MAAwE,CAAC;AAKjI,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,EAGtE,CAAC;AAQF,eAAO,MAAM,SAAS,aAAc,aAAa,KAAG,aAAa,EAUhE,CAAC"}
@@ -8,14 +8,7 @@ export const HARNESSES = [
8
8
  { label: "Native", value: "native" },
9
9
  { label: "Claude Code", value: "claude-code" },
10
10
  ];
11
- export const usesLiveCatalog = (provider, harness) => harness === "native" || provider === "claude";
12
- export const modelsFor = (provider, harness) => {
13
- if (provider === "codex") {
14
- return harness === "claude-code" ? [{ label: "GPT-5 Codex", value: "gpt-5-codex" }] : [];
15
- }
16
- if (provider === "grok") {
17
- return harness === "claude-code" ? [{ label: "Grok 4", value: "grok-4" }] : [];
18
- }
11
+ export const modelsFor = (provider) => {
19
12
  if (provider === "claude") {
20
13
  return [
21
14
  { label: "Opus", value: "opus" },
@@ -1 +1 @@
1
- {"version":3,"file":"agent-catalog.js","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,SAAS,GAAwD;IAC1E,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE;IACzC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;CACnC,CAAC;AAIF,MAAM,CAAC,M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,CAAC;AACd,CAAC,CAAC"}
1
+ {"version":3,"file":"agent-catalog.js","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,SAAS,GAAwD;IAC1E,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE;IACzC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;CACnC,CAAC;AAIF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAuB,EAAU,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,EAAE,KAAK,IAAI,QAAQ,CAAC;AAKjI,MAAM,CAAC,MAAM,SAAS,GAAsD;IACxE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;CACjD,CAAC;AAQF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAuB,EAAmB,EAAE;IAClE,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO;YACH,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAChC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SACrC,CAAC;IACN,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/sandbox-contract",
3
- "version": "1.140.0",
3
+ "version": "1.140.1",
4
4
  "description": "oRPC wire contract for the intentic sandbox daemon — shared by the daemon and its browser client",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "@orpc/contract": "1.14.3",
46
46
  "tslib": "2.8.1",
47
47
  "zod": "4.4.3",
48
- "@intentic/extension-api": "1.140.0"
48
+ "@intentic/extension-api": "1.140.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "24.13.2",
@@ -31,25 +31,13 @@ export const HARNESSES: readonly { label: string; value: AgentHarness }[] = [
31
31
  { label: "Claude Code", value: "claude-code" },
32
32
  ];
33
33
 
34
- // Whether a provider+harness pair reads the LIVE daemon model catalog (/{provider}/models): every native turn
35
- // does, and claude under either harness (both are its own Claude Code loop). The one exception — a non-Claude
36
- // provider UNDER the Claude Code harness routes through the translator and pins its static mapping from
37
- // modelsFor instead. The single spelling of this decision; callers negate it rather than re-deriving the inverse.
38
- export const usesLiveCatalog = (provider: AgentProvider, harness: AgentHarness): boolean => harness === "native" || provider === "claude";
39
-
40
- // The STATIC floor of the model catalog; every native provider's real list is the daemon's live catalog
41
- // (/claude/models · /codex/models · /grok/models — discovery with a persisted/seed floor, never empty), which
42
- // consumers layer on top. Native codex/grok are empty here (nothing sensible to offer before the live load);
43
- // Claude's stable tier aliases always resolve to the newest version of each tier, so they double as the
44
- // pre-load fallback. UNDER the Claude Code harness a non-Claude provider routes through the translator, which
45
- // needs a concrete id, so codex/grok return one.
46
- export const modelsFor = (provider: AgentProvider, harness: AgentHarness): CatalogOption[] => {
47
- if (provider === "codex") {
48
- return harness === "claude-code" ? [{ label: "GPT-5 Codex", value: "gpt-5-codex" }] : [];
49
- }
50
- if (provider === "grok") {
51
- return harness === "claude-code" ? [{ label: "Grok 4", value: "grok-4" }] : [];
52
- }
34
+ // The STATIC floor of the model catalog, harness-independent: every provider's real list is the daemon's live
35
+ // catalog (/claude/models · /codex/models · /grok/models discovery with a persisted/seed floor, never empty),
36
+ // which consumers layer on top. Codex/grok are empty here (nothing sensible to offer before the live load — and
37
+ // under the Claude Code harness they route through the translator, which serves the SAME subscription model ids
38
+ // as the native catalog, so the harness no longer changes the list). Claude's stable tier aliases always resolve
39
+ // to the newest version of each tier, so they double as the pre-load fallback.
40
+ export const modelsFor = (provider: AgentProvider): CatalogOption[] => {
53
41
  if (provider === "claude") {
54
42
  return [
55
43
  { label: "Opus", value: "opus" },
@@ -57,6 +45,6 @@ export const modelsFor = (provider: AgentProvider, harness: AgentHarness): Catal
57
45
  { label: "Haiku", value: "haiku" },
58
46
  ];
59
47
  }
60
- // ACP providers: the model is the agent's own concern (configured on the capability), nothing to pick.
48
+ // Codex/Grok (live catalog only) and ACP providers (the agent owns its model): nothing static to pick.
61
49
  return [];
62
50
  };