@kortix/sdk 0.13.40 → 0.13.41

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.
Files changed (207) hide show
  1. package/README.md +31 -4
  2. package/dist/browser/session-sync/server-transcript-mirror.d.ts +4 -0
  3. package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
  4. package/dist/browser/session-sync/server-transcript-mirror.js +15 -0
  5. package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
  6. package/dist/browser/stores/sandbox-connection-store.d.ts +1 -10
  7. package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
  8. package/dist/browser/stores/sandbox-connection-store.js +11 -1
  9. package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
  10. package/dist/browser/stores/sync-store/reconcile-parts.d.ts +14 -0
  11. package/dist/browser/stores/sync-store/reconcile-parts.d.ts.map +1 -0
  12. package/dist/browser/stores/sync-store/reconcile-parts.js +55 -0
  13. package/dist/browser/stores/sync-store/reconcile-parts.js.map +1 -0
  14. package/dist/browser/stores/sync-store.d.ts.map +1 -1
  15. package/dist/browser/stores/sync-store.js +11 -92
  16. package/dist/browser/stores/sync-store.js.map +1 -1
  17. package/dist/core/agents/composer-agents.d.ts +73 -0
  18. package/dist/core/agents/composer-agents.d.ts.map +1 -0
  19. package/dist/core/agents/composer-agents.js +100 -0
  20. package/dist/core/agents/composer-agents.js.map +1 -0
  21. package/dist/core/client/kortix.d.ts +39 -3
  22. package/dist/core/client/kortix.d.ts.map +1 -1
  23. package/dist/core/client/kortix.js +20 -1
  24. package/dist/core/client/kortix.js.map +1 -1
  25. package/dist/core/models/bedrock-invokable.d.ts +58 -0
  26. package/dist/core/models/bedrock-invokable.d.ts.map +1 -0
  27. package/dist/core/models/bedrock-invokable.js +83 -0
  28. package/dist/core/models/bedrock-invokable.js.map +1 -0
  29. package/dist/core/models/composer-model.d.ts +51 -0
  30. package/dist/core/models/composer-model.d.ts.map +1 -0
  31. package/dist/core/models/composer-model.js +88 -0
  32. package/dist/core/models/composer-model.js.map +1 -0
  33. package/dist/core/models/model-flatten.d.ts +90 -0
  34. package/dist/core/models/model-flatten.d.ts.map +1 -0
  35. package/dist/core/models/model-flatten.js +86 -0
  36. package/dist/core/models/model-flatten.js.map +1 -0
  37. package/dist/core/models/model-key.d.ts +18 -0
  38. package/dist/core/models/model-key.d.ts.map +1 -0
  39. package/dist/core/models/model-key.js +16 -0
  40. package/dist/core/models/model-key.js.map +1 -0
  41. package/dist/core/models/model-lookup.d.ts +3 -0
  42. package/dist/core/models/model-lookup.d.ts.map +1 -0
  43. package/dist/core/models/model-lookup.js +4 -0
  44. package/dist/core/models/model-lookup.js.map +1 -0
  45. package/dist/core/models/model-visibility.d.ts +85 -0
  46. package/dist/core/models/model-visibility.d.ts.map +1 -0
  47. package/dist/core/models/model-visibility.js +215 -0
  48. package/dist/core/models/model-visibility.js.map +1 -0
  49. package/dist/core/models/provider-selection.d.ts +142 -0
  50. package/dist/core/models/provider-selection.d.ts.map +1 -0
  51. package/dist/core/models/provider-selection.js +472 -0
  52. package/dist/core/models/provider-selection.js.map +1 -0
  53. package/dist/core/rest/platform-client/host-boundary.d.ts +4 -0
  54. package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
  55. package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
  56. package/dist/core/rest/projects-client/access.d.ts +6 -1
  57. package/dist/core/rest/projects-client/access.d.ts.map +1 -1
  58. package/dist/core/rest/projects-client/access.js +3 -1
  59. package/dist/core/rest/projects-client/access.js.map +1 -1
  60. package/dist/core/rest/projects-client/account-secret-resources.d.ts +7 -0
  61. package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
  62. package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
  63. package/dist/core/rest/projects-client/connectors.d.ts +7 -0
  64. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  65. package/dist/core/rest/projects-client/connectors.js +12 -3
  66. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  67. package/dist/core/rest/projects-client/github.d.ts +25 -0
  68. package/dist/core/rest/projects-client/github.d.ts.map +1 -1
  69. package/dist/core/rest/projects-client/github.js +19 -0
  70. package/dist/core/rest/projects-client/github.js.map +1 -1
  71. package/dist/core/rest/projects-client/index.d.ts +2 -0
  72. package/dist/core/rest/projects-client/index.d.ts.map +1 -1
  73. package/dist/core/rest/projects-client/index.js +2 -0
  74. package/dist/core/rest/projects-client/index.js.map +1 -1
  75. package/dist/core/rest/projects-client/project-agents.d.ts +29 -0
  76. package/dist/core/rest/projects-client/project-agents.d.ts.map +1 -0
  77. package/dist/core/rest/projects-client/project-agents.js +41 -0
  78. package/dist/core/rest/projects-client/project-agents.js.map +1 -0
  79. package/dist/core/rest/projects-client/projects.d.ts +10 -2
  80. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  81. package/dist/core/rest/projects-client/projects.js +8 -1
  82. package/dist/core/rest/projects-client/projects.js.map +1 -1
  83. package/dist/core/rest/projects-client/review-items.d.ts +3 -0
  84. package/dist/core/rest/projects-client/review-items.d.ts.map +1 -1
  85. package/dist/core/rest/projects-client/review-items.js +1 -0
  86. package/dist/core/rest/projects-client/review-items.js.map +1 -1
  87. package/dist/core/rest/projects-client/session-reminders.d.ts +63 -0
  88. package/dist/core/rest/projects-client/session-reminders.d.ts.map +1 -0
  89. package/dist/core/rest/projects-client/session-reminders.js +29 -0
  90. package/dist/core/rest/projects-client/session-reminders.js.map +1 -0
  91. package/dist/core/rest/projects-client/sessions.d.ts +6 -0
  92. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  93. package/dist/core/rest/projects-client/sessions.js +2 -0
  94. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  95. package/dist/core/rest/projects-client/setup-links.d.ts +2 -0
  96. package/dist/core/rest/projects-client/setup-links.d.ts.map +1 -1
  97. package/dist/core/rest/projects-client/setup-links.js.map +1 -1
  98. package/dist/core/rest/projects-client/tokens.d.ts +30 -0
  99. package/dist/core/rest/projects-client/tokens.d.ts.map +1 -1
  100. package/dist/core/rest/projects-client/tokens.js +11 -0
  101. package/dist/core/rest/projects-client/tokens.js.map +1 -1
  102. package/dist/core/session/connection.d.ts +22 -0
  103. package/dist/core/session/connection.d.ts.map +1 -1
  104. package/dist/core/session/connection.js +28 -0
  105. package/dist/core/session/connection.js.map +1 -1
  106. package/dist/core/session/status-vocabulary.d.ts +1 -1
  107. package/dist/core/session/status-vocabulary.js +1 -1
  108. package/dist/core/session/status-vocabulary.js.map +1 -1
  109. package/dist/core/session-sync/saved-copy-store.d.ts +5 -1
  110. package/dist/core/session-sync/saved-copy-store.d.ts.map +1 -1
  111. package/dist/core/session-sync/saved-copy-store.js +50 -2
  112. package/dist/core/session-sync/saved-copy-store.js.map +1 -1
  113. package/dist/core/session-sync/saved-transcript.d.ts +35 -0
  114. package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
  115. package/dist/core/session-sync/saved-transcript.js +22 -0
  116. package/dist/core/session-sync/saved-transcript.js.map +1 -1
  117. package/dist/core/session-sync/session-sync-controller.d.ts +2 -0
  118. package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
  119. package/dist/core/session-sync/session-sync-controller.js +19 -2
  120. package/dist/core/session-sync/session-sync-controller.js.map +1 -1
  121. package/dist/core/stream/keepalive.d.ts +1 -1
  122. package/dist/core/stream/keepalive.js +1 -1
  123. package/dist/core/turns/errors.d.ts +6 -0
  124. package/dist/core/turns/errors.d.ts.map +1 -1
  125. package/dist/core/turns/errors.js +7 -1
  126. package/dist/core/turns/errors.js.map +1 -1
  127. package/dist/core/turns/parts.d.ts.map +1 -1
  128. package/dist/core/turns/parts.js +22 -129
  129. package/dist/core/turns/parts.js.map +1 -1
  130. package/dist/core/turns/tools/web-helpers.d.ts.map +1 -1
  131. package/dist/core/turns/tools/web-helpers.js +79 -139
  132. package/dist/core/turns/tools/web-helpers.js.map +1 -1
  133. package/dist/index.d.ts +18 -0
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +17 -0
  136. package/dist/index.js.map +1 -1
  137. package/dist/kortix.esm.min.js +37 -37
  138. package/dist/kortix.global.js +37 -37
  139. package/dist/react/bedrock-invokable.d.ts +1 -57
  140. package/dist/react/bedrock-invokable.d.ts.map +1 -1
  141. package/dist/react/bedrock-invokable.js +2 -82
  142. package/dist/react/bedrock-invokable.js.map +1 -1
  143. package/dist/react/index.d.ts +1 -0
  144. package/dist/react/index.d.ts.map +1 -1
  145. package/dist/react/index.js +1 -0
  146. package/dist/react/index.js.map +1 -1
  147. package/dist/react/model-flatten.d.ts +1 -89
  148. package/dist/react/model-flatten.d.ts.map +1 -1
  149. package/dist/react/model-flatten.js +2 -85
  150. package/dist/react/model-flatten.js.map +1 -1
  151. package/dist/react/model-lookup.d.ts +1 -2
  152. package/dist/react/model-lookup.d.ts.map +1 -1
  153. package/dist/react/model-lookup.js +2 -3
  154. package/dist/react/model-lookup.js.map +1 -1
  155. package/dist/react/provider-selection.d.ts +1 -107
  156. package/dist/react/provider-selection.d.ts.map +1 -1
  157. package/dist/react/provider-selection.js +2 -437
  158. package/dist/react/provider-selection.js.map +1 -1
  159. package/dist/react/query-keys.d.ts +6 -0
  160. package/dist/react/query-keys.d.ts.map +1 -1
  161. package/dist/react/query-keys.js +6 -0
  162. package/dist/react/query-keys.js.map +1 -1
  163. package/dist/react/sign-in-with-kortix.d.ts +1 -1
  164. package/dist/react/use-model-defaults.d.ts +2 -1
  165. package/dist/react/use-model-defaults.d.ts.map +1 -1
  166. package/dist/react/use-model-defaults.js +3 -7
  167. package/dist/react/use-model-defaults.js.map +1 -1
  168. package/dist/react/use-model-store.d.ts +3 -44
  169. package/dist/react/use-model-store.d.ts.map +1 -1
  170. package/dist/react/use-model-store.js +16 -182
  171. package/dist/react/use-model-store.js.map +1 -1
  172. package/dist/react/use-opencode-local.d.ts.map +1 -1
  173. package/dist/react/use-opencode-local.js +41 -110
  174. package/dist/react/use-opencode-local.js.map +1 -1
  175. package/dist/react/use-opencode-sessions/agents.d.ts +2 -7
  176. package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
  177. package/dist/react/use-opencode-sessions/agents.js +3 -27
  178. package/dist/react/use-opencode-sessions/agents.js.map +1 -1
  179. package/dist/react/use-opencode-sessions/providers.d.ts +1 -1
  180. package/dist/react/use-opencode-sessions/providers.d.ts.map +1 -1
  181. package/dist/react/use-opencode-sessions/providers.js +4 -4
  182. package/dist/react/use-opencode-sessions/providers.js.map +1 -1
  183. package/dist/react/use-reminders.d.ts +465 -0
  184. package/dist/react/use-reminders.d.ts.map +1 -0
  185. package/dist/react/use-reminders.js +50 -0
  186. package/dist/react/use-reminders.js.map +1 -0
  187. package/dist/react/use-runtime-reconnect.d.ts +41 -8
  188. package/dist/react/use-runtime-reconnect.d.ts.map +1 -1
  189. package/dist/react/use-runtime-reconnect.js +93 -27
  190. package/dist/react/use-runtime-reconnect.js.map +1 -1
  191. package/dist/react/use-session-sync.d.ts +7 -0
  192. package/dist/react/use-session-sync.d.ts.map +1 -1
  193. package/dist/react/use-session-sync.js +15 -8
  194. package/dist/react/use-session-sync.js.map +1 -1
  195. package/dist/react/use-session-transcript-history.d.ts +2 -0
  196. package/dist/react/use-session-transcript-history.d.ts.map +1 -1
  197. package/dist/react/use-session-transcript-history.js +13 -0
  198. package/dist/react/use-session-transcript-history.js.map +1 -1
  199. package/dist/react/use-session.d.ts +15 -8
  200. package/dist/react/use-session.d.ts.map +1 -1
  201. package/dist/react/use-session.js +40 -10
  202. package/dist/react/use-session.js.map +1 -1
  203. package/dist/react/use-visible-agents.d.ts +5 -5
  204. package/dist/react/use-visible-agents.d.ts.map +1 -1
  205. package/dist/react/use-visible-agents.js +10 -28
  206. package/dist/react/use-visible-agents.js.map +1 -1
  207. package/package.json +2 -2
@@ -1,58 +1,2 @@
1
- import type { FlatModel } from './model-flatten.js';
2
- import type { ModelKey } from './use-model-store.js';
3
- /**
4
- * Resolution-time guard: a resolved model key must never be a bare Bedrock
5
- * in-region id when that provider serves cross-region inference profiles.
6
- *
7
- * *** THE PROBLEM THIS FIXES ***
8
- *
9
- * Bedrock refuses the bare id for its current model families — "Invocation of
10
- * model ID xai.grok-4.6 with on-demand throughput isn't supported. Retry your
11
- * request with the ID or ARN of an inference profile" — and OpenCode retries
12
- * forever ("Retrying in Ns"), so the session never produces a turn.
13
- *
14
- * Fixing the AUTO-SEEDED catalog default (`nativeProviderListFromCatalog`) is
15
- * necessary but not sufficient: that default is only Priority 3 of the LAST
16
- * source in `use-opencode-local`'s chain
17
- * (explicit > serverDefault > globalDefault > agent.model > fallback), and the
18
- * explicit slot is browser-global, not project-scoped —
19
- * `agentScopedModelSelectionKey(mode, agentName)` is `` `${mode}:${name ?? ''}` ``
20
- * (use-opencode-local.ts:226-231). The project-home composer has no agent and
21
- * no sessionId, so every native project in one browser shares the slot
22
- * `native:`. One earlier session pinned `xai.grok-4.6` there and every future
23
- * workspace inherited it, above anything the catalog default could say.
24
- * Observed on SampleCo 2026-08-26 with a bundle that already carried the
25
- * catalog-default fix.
26
- *
27
- * On the GATEWAY path PR #6897 already re-prefixes a bare id after Bedrock's
28
- * 400. Native mode has no gateway and therefore no retry — this is its
29
- * analogue, applied BEFORE the request instead of after the failure.
30
- *
31
- * The rule, applied only within the key's OWN provider:
32
- * 0. a GATEWAY key (`providerID` in `GATEWAY_PROVIDER_IDS`) → untouched. Under
33
- * the gateway every served model is registered as `kortix` and the real
34
- * provider rides in the modelID prefix (`amazon-bedrock/…`, `openrouter/…`,
35
- * `codex/…`), so "the same provider" would be the WHOLE catalog, and
36
- * `bedrockInferenceProfileRank` strips that prefix — a Bedrock profile
37
- * served through the gateway still ranks > 0. Without this step every
38
- * gateway pick without a twin (an OpenRouter or Codex model, a bare Bedrock
39
- * id) fell through to step 3 and "healed" to the newest Bedrock profile in
40
- * the catalog: on SampleCo (2026-08-27) the chip was pinned to Claude Opus 5
41
- * (Global) whatever the user clicked, and every prompt was sent with it.
42
- * The gateway re-prefixes a bare id itself after Bedrock's 400 (PR #6897);
43
- * this guard is the native analogue and has no business on that path.
44
- * 1. already an inference profile (`global.`/regional) → untouched;
45
- * 2. a `global.` or regional twin of the same bare id is offered → use it
46
- * (same model, invokable id — this also heals ids pinned or seeded before
47
- * the fix);
48
- * 3. no twin, but the provider offers OTHER inference profiles → the bare id
49
- * is not invokable here, so fall back to `autoSeedDefaultModel` over that
50
- * provider's profiles;
51
- * 4. the provider offers no profile ids at all → untouched.
52
- *
53
- * Step 4 is what makes this inert for every non-Bedrock provider: no id there
54
- * ever scores `bedrockInferenceProfileRank > 0`. Returns the SAME object when
55
- * nothing changes, so callers can use it inside a memo without churn.
56
- */
57
- export declare function healBedrockModelKey(key: ModelKey | undefined, offered: FlatModel[]): ModelKey | undefined;
1
+ export * from '../core/models/bedrock-invokable.js';
58
2
  //# sourceMappingURL=bedrock-invokable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bedrock-invokable.d.ts","sourceRoot":"","sources":["../../src/react/bedrock-invokable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,QAAQ,GAAG,SAAS,EACzB,OAAO,EAAE,SAAS,EAAE,GACnB,QAAQ,GAAG,SAAS,CA8BtB"}
1
+ {"version":3,"file":"bedrock-invokable.d.ts","sourceRoot":"","sources":["../../src/react/bedrock-invokable.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAC"}
@@ -1,83 +1,3 @@
1
- import { autoSeedDefaultModel, bedrockInferenceProfileRank } from '@kortix/llm-catalog';
2
- import { GATEWAY_PROVIDER_IDS } from './provider-selection.js';
3
- /**
4
- * Resolution-time guard: a resolved model key must never be a bare Bedrock
5
- * in-region id when that provider serves cross-region inference profiles.
6
- *
7
- * *** THE PROBLEM THIS FIXES ***
8
- *
9
- * Bedrock refuses the bare id for its current model families — "Invocation of
10
- * model ID xai.grok-4.6 with on-demand throughput isn't supported. Retry your
11
- * request with the ID or ARN of an inference profile" — and OpenCode retries
12
- * forever ("Retrying in Ns"), so the session never produces a turn.
13
- *
14
- * Fixing the AUTO-SEEDED catalog default (`nativeProviderListFromCatalog`) is
15
- * necessary but not sufficient: that default is only Priority 3 of the LAST
16
- * source in `use-opencode-local`'s chain
17
- * (explicit > serverDefault > globalDefault > agent.model > fallback), and the
18
- * explicit slot is browser-global, not project-scoped —
19
- * `agentScopedModelSelectionKey(mode, agentName)` is `` `${mode}:${name ?? ''}` ``
20
- * (use-opencode-local.ts:226-231). The project-home composer has no agent and
21
- * no sessionId, so every native project in one browser shares the slot
22
- * `native:`. One earlier session pinned `xai.grok-4.6` there and every future
23
- * workspace inherited it, above anything the catalog default could say.
24
- * Observed on SampleCo 2026-08-26 with a bundle that already carried the
25
- * catalog-default fix.
26
- *
27
- * On the GATEWAY path PR #6897 already re-prefixes a bare id after Bedrock's
28
- * 400. Native mode has no gateway and therefore no retry — this is its
29
- * analogue, applied BEFORE the request instead of after the failure.
30
- *
31
- * The rule, applied only within the key's OWN provider:
32
- * 0. a GATEWAY key (`providerID` in `GATEWAY_PROVIDER_IDS`) → untouched. Under
33
- * the gateway every served model is registered as `kortix` and the real
34
- * provider rides in the modelID prefix (`amazon-bedrock/…`, `openrouter/…`,
35
- * `codex/…`), so "the same provider" would be the WHOLE catalog, and
36
- * `bedrockInferenceProfileRank` strips that prefix — a Bedrock profile
37
- * served through the gateway still ranks > 0. Without this step every
38
- * gateway pick without a twin (an OpenRouter or Codex model, a bare Bedrock
39
- * id) fell through to step 3 and "healed" to the newest Bedrock profile in
40
- * the catalog: on SampleCo (2026-08-27) the chip was pinned to Claude Opus 5
41
- * (Global) whatever the user clicked, and every prompt was sent with it.
42
- * The gateway re-prefixes a bare id itself after Bedrock's 400 (PR #6897);
43
- * this guard is the native analogue and has no business on that path.
44
- * 1. already an inference profile (`global.`/regional) → untouched;
45
- * 2. a `global.` or regional twin of the same bare id is offered → use it
46
- * (same model, invokable id — this also heals ids pinned or seeded before
47
- * the fix);
48
- * 3. no twin, but the provider offers OTHER inference profiles → the bare id
49
- * is not invokable here, so fall back to `autoSeedDefaultModel` over that
50
- * provider's profiles;
51
- * 4. the provider offers no profile ids at all → untouched.
52
- *
53
- * Step 4 is what makes this inert for every non-Bedrock provider: no id there
54
- * ever scores `bedrockInferenceProfileRank > 0`. Returns the SAME object when
55
- * nothing changes, so callers can use it inside a memo without churn.
56
- */
57
- export function healBedrockModelKey(key, offered) {
58
- if (!key)
59
- return key;
60
- if (GATEWAY_PROVIDER_IDS.has(key.providerID))
61
- return key;
62
- if (bedrockInferenceProfileRank(key.modelID) > 0)
63
- return key;
64
- // `enabled === false` is the server's per-project "off" stamp — the same
65
- // predicate `isOfferedModel` applies. Never heal onto a model the picker
66
- // itself would refuse to offer.
67
- const siblings = offered.filter((model) => model.providerID === key.providerID && model.enabled !== false);
68
- if (!siblings.some((model) => bedrockInferenceProfileRank(model.modelID) > 0))
69
- return key;
70
- // `global.` first, then any regional profile — the same precedence
71
- // `bedrockInferenceProfileRank` encodes, applied here explicitly so the
72
- // result never depends on which twin the catalog happens to list first.
73
- const isRegionalTwin = (modelID) => bedrockInferenceProfileRank(modelID) === 1 &&
74
- modelID.slice(modelID.indexOf('.') + 1) === key.modelID;
75
- const twin = siblings.find((model) => model.modelID === `global.${key.modelID}`) ??
76
- siblings.find((model) => isRegionalTwin(model.modelID));
77
- const replacement = twin?.modelID ??
78
- autoSeedDefaultModel(siblings.map((model) => ({ id: model.modelID, released: model.releaseDate })))?.id;
79
- if (!replacement || replacement === key.modelID)
80
- return key;
81
- return { ...key, modelID: replacement };
82
- }
1
+ // Moved to the framework-free core so the root `@kortix/sdk` entry can export it.
2
+ export * from '../core/models/bedrock-invokable.js';
83
3
  //# sour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,GACR,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,UAAU,GAAG,CAAC,OAAO,EAAE,CAAC;QACnE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,MAAM,WAAW,GACf,IAAI,EAAE,OAAO;QACb,oBAAoB,CAClB,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAC9E,EAAE,EAAE,CAAC;IAER,IAAI,CAAC,WAAW,IAAI,WAAW,KAAK,GAAG,CAAC,OAAO;QAAE,OAAO,GAAG,CAAC;IAC5D,OAAO,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"bedrock-invokable.js","sourceRoot":"","sources":["../../src/react/bedrock-invokable.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,kCAAkC,CAAC"}
@@ -11,6 +11,7 @@ export { useAccounts, useProjects, accountsQueryOptions, projectsQueryOptions, t
11
11
  export { useProjectSecrets, projectSecretsKey } from './use-project-secrets.js';
12
12
  export { useAccountSecretResources, useSessionProviderSecretPools } from './use-provider-secrets.js';
13
13
  export { useProjectTriggers, projectTriggersKey } from './use-project-triggers.js';
14
+ export { useProjectReminders, useSessionReminders } from './use-reminders.js';
14
15
  export { useChangeRequests, changeRequestsKey } from './use-change-requests.js';
15
16
  export { useGatewayRoutingPolicy, gatewayRoutingPolicyKey } from './use-gateway-routing-policy.js';
16
17
  export { useProjectApps, useAppDeployments, useAppAccess, projectAppsKey, appDeploymentsKey, } from './use-project-apps.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot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,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -50,6 +50,7 @@ export { useAccounts, useProjects, accountsQueryOptions, projectsQueryOptions, }
50
50
  export { useProjectSecrets, projectSecretsKey } from './use-project-secrets.js';
51
51
  export { useAccountSecretResources, useSessionProviderSecretPools } from './use-provider-secrets.js';
52
52
  export { useProjectTriggers, projectTriggersKey } from './use-project-triggers.js';
53
+ export { useProjectReminders, useSessionReminders } from './use-reminders.js';
53
54
  export { useChangeRequests, changeRequestsKey } from './use-change-requests.js';
54
55
  export { useGatewayRoutingPolicy, gatewayRoutingPolicyKey } from './use-gateway-routing-policy.js';
55
56
  export { useProjectApps, useAppDeployments, useAppAccess, projectAppsKey, appDeploymentsKey, } from './use-project-apps.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,cAAc,0BAA0B,CAAC;AAEzC,4EAA4E;AAC5E,uEAAuE;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,0EAA0E;AAC1E,gFAAgF;AAChF,qEAAqE;AACrE,cAAc,YAAY,CAAC;AAE3B,+EAA+E;AAC/E,qEAAqE;AACrE,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,iBAAiB,GAKlB,MAAM,eAAe,CAAC;AAEvB,qEAAqE;AACrE,8EAA8E;AAC9E,4EAA4E;AAC5E,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,GAExB,MAAM,yBAAyB,CAAC;AAEjC,8EAA8E;AAC9E,0EAA0E;AAC1E,uEAAuE;AACvE,iEAAiE;AACjE,8BAA8B;AAC9B,OAAO,EACL,eAAe,GAMhB,MAAM,6BAA6B,CAAC;AAErC,0EAA0E;AAC1E,8DAA8D;AAC9D,sEAAsE;AACtE,yEAAyE;AACzE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,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAElC,4EAA4E;AAC5E,6EAA6E;AAC7E,0EAA0E;AAC1E,6EAA6E;AAC7E,yEAAyE;AACzE,2EAA2E;AAC3E,6EAA6E;AAC7E,yEAAyE;AACzE,4EAA4E;AAC5E,+EAA+E;AAC/E,OAAO,EACL,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,0BAA0B,EAC1B,kBAAkB,EAClB,uBAAuB,GAIxB,MAAM,WAAW,CAAC;AAEnB,cAAc,cAAc,CAAC;AAC7B,uEAAuE;AACvE,0EAA0E;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3F,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,iEAAiE;AACjE,gEAAgE;AAChE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,6BAA6B,GAI9B,MAAM,uBAAuB,CAAC;AAE/B,yEAAyE;AACzE,uEAAuE;AACvE,OAAO,EACL,kBAAkB,GAEnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,90 +1,2 @@
1
- import { type ProviderListResponse } from './use-opencode-sessions/index.js';
2
- /**
3
- * Flat model list + the flattening logic (relocated from web's session-chat-input —
4
- * it's data, not UI). Used by the model/agent resolution hooks.
5
- */
6
- export interface FlatModel {
7
- providerID: string;
8
- providerName: string;
9
- modelID: string;
10
- modelName: string;
11
- variants?: Record<string, Record<string, unknown>>;
12
- /** Capabilities extracted from the provider API response */
13
- capabilities?: {
14
- reasoning?: boolean;
15
- vision?: boolean;
16
- toolcall?: boolean;
17
- };
18
- /** Context window size in tokens */
19
- contextWindow?: number;
20
- /** ISO date string for release date */
21
- releaseDate?: string;
22
- /** Model family (used for "latest" logic) */
23
- family?: string;
24
- /** Cost per token (input/output) */
25
- cost?: {
26
- input: number;
27
- output: number;
28
- };
29
- /** Provider source (env, api, config, custom) */
30
- providerSource?: string;
31
- /**
32
- * The REAL upstream provider this model resolves against ('anthropic',
33
- * 'openai', 'codex', 'kortix', ...) — carried explicitly off the gateway's
34
- * served model so the picker never has to recover it by string-splitting
35
- * `modelID`. Every gateway model is registered under `providerID: 'kortix'`;
36
- * this is the field that identifies who ACTUALLY serves it. Undefined for
37
- * providers/models predating this field.
38
- */
39
- provider?: string;
40
- /** Tunable reasoning-effort values (models.dev's `reasoning_options`), when
41
- * the model exposes one. */
42
- reasoningOptions?: Array<{
43
- type: string;
44
- values?: string[];
45
- min?: number;
46
- max?: number;
47
- }>;
48
- /** Free-text blurb models.dev publishes for the model. */
49
- description?: string;
50
- /** True when the model's weights are publicly released (open-weights) vs.
51
- * closed API-only. models.dev's `open_weights` field, mirrored. */
52
- openWeights?: boolean;
53
- /** When models.dev last refreshed this model's own entry. */
54
- lastUpdated?: string;
55
- /**
56
- * Whether the project OFFERS this model. Server-owned per-project
57
- * enablement, resolved by the API (`/model-picker`) — the picker renders the
58
- * enabled ones and "Manage models" switches on this flag. Neither re-derives
59
- * it, and the gateway never refuses a request over it (display-only).
60
- * Undefined on catalogs that don't carry enablement (anything but
61
- * `/model-picker`), which callers read as "not applicable".
62
- */
63
- enabled?: boolean;
64
- }
65
- /**
66
- * Whether `key` may be offered/resolved from `models` — present in the catalog
67
- * and not turned off by the server's per-project enablement (`enabled` above).
68
- * THE one predicate for "is this model selectable?"; a second, client-local
69
- * visibility heuristic beside it is exactly what made the session picker and
70
- * "Manage models" disagree.
71
- */
72
- export declare function isOfferedModel(models: FlatModel[], key: {
73
- providerID: string;
74
- modelID: string;
75
- }): boolean;
76
- export declare function flattenModels(providers: ProviderListResponse | undefined, opts?: {
77
- /**
78
- * Which provider universe this list belongs to (modelProviderMode).
79
- *
80
- * • 'gateway' (default) — the synthetic `kortix` provider is the ONLY
81
- * renderable provider; a native provider that slips into the response
82
- * is a bypass and is dropped (defense in depth on top of source
83
- * filtering).
84
- * • 'native' (project `llm_gateway` flag OFF) — OpenCode's own connected
85
- * providers (`anthropic`, `openrouter`, `opencode`, …) ARE the catalog;
86
- * only a stale `kortix` entry (a box mid-toggle) is dropped.
87
- */
88
- providerMode?: 'gateway' | 'native';
89
- }): FlatModel[];
1
+ export * from '../core/models/model-flatten.js';
90
2
  //# sourceMappingURL=model-flatten.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-flatten.d.ts","sourceRoot":"","sources":["../../src/react/model-flatten.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAsC1F;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,4DAA4D;IAC5D,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;iCAC6B;IAC7B,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1F,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;wEACoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,EAAE,EACnB,GAAG,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C,OAAO,CAGT;AAiBD,wBAAgB,aAAa,CAC3B,SAAS,EAAE,oBAAoB,GAAG,SAAS,EAC3C,IAAI,CAAC,EAAE;IACL;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CACrC,GACA,SAAS,EAAE,CAiEb"}
1
+ {"version":3,"file":"model-flatten.d.ts","sourceRoot":"","sources":["../../src/react/model-flatten.ts"],"names":[],"mappings":"AACA,cAAc,8BAA8B,CAAC"}
@@ -1,86 +1,3 @@
1
- import { GATEWAY_PROVIDER_IDS } from './use-opencode-sessions/index.js';
2
- function hasCapabilities(model) {
3
- return 'capabilities' in model && model.capabilities != null;
4
- }
5
- /**
6
- * Whether `key` may be offered/resolved from `models` — present in the catalog
7
- * and not turned off by the server's per-project enablement (`enabled` above).
8
- * THE one predicate for "is this model selectable?"; a second, client-local
9
- * visibility heuristic beside it is exactly what made the session picker and
10
- * "Manage models" disagree.
11
- */
12
- export function isOfferedModel(models, key) {
13
- const model = models.find((m) => m.providerID === key.providerID && m.modelID === key.modelID);
14
- return !!model && model.enabled !== false;
15
- }
16
- export function flattenModels(providers, opts) {
17
- if (!providers)
18
- return [];
19
- const providerMode = opts?.providerMode ?? 'gateway';
20
- const all = Array.isArray(providers.all) ? providers.all : [];
21
- const connected = Array.isArray(providers.connected) ? providers.connected : [];
22
- const result = [];
23
- for (const p of all) {
24
- if (!connected.includes(p.id))
25
- continue;
26
- if (providerMode === 'gateway' ? !GATEWAY_PROVIDER_IDS.has(p.id) : GATEWAY_PROVIDER_IDS.has(p.id))
27
- continue;
28
- for (const [modelID, model] of Object.entries(p.models)) {
29
- // Old sandboxes can carry a baked catalog from before the synthetic model
30
- // was removed. Never expose or send those stale entries.
31
- if (modelID === 'auto' || modelID === 'kortix/auto')
32
- continue;
33
- // Narrow `model` itself (not a copy) so the loose-shape-only fields
34
- // (`reasoning`, `tool_call`, `modalities`) are safe to read below.
35
- let capabilities;
36
- // `vision` gates whether the composer refuses an attached image, so a
37
- // catalog that says NOTHING about modalities must stay `undefined`. A
38
- // custom or self-hosted provider carries no signal, and reading that
39
- // silence as `false` would block images on a model that can read them.
40
- if (hasCapabilities(model)) {
41
- const caps = model.capabilities;
42
- capabilities = {
43
- reasoning: caps.reasoning ?? false,
44
- vision: caps.input ? (caps.input.image ?? false) : undefined,
45
- toolcall: caps.toolcall ?? false,
46
- };
47
- }
48
- else {
49
- const modalityInput = model.modalities?.input;
50
- capabilities = {
51
- reasoning: model.reasoning ?? false,
52
- vision: modalityInput
53
- ? modalityInput.includes('image')
54
- : model.attachment,
55
- toolcall: model.tool_call ?? false,
56
- };
57
- }
58
- result.push({
59
- providerID: p.id,
60
- providerName: p.name,
61
- modelID,
62
- modelName: (model.name || modelID).replace('(latest)', '').trim(),
63
- variants: model.variants,
64
- capabilities,
65
- contextWindow: model.limit?.context,
66
- releaseDate: model.release_date,
67
- family: model.family,
68
- cost: model.cost
69
- ? {
70
- input: model.cost.input ?? 0,
71
- output: model.cost.output ?? 0,
72
- }
73
- : undefined,
74
- providerSource: p.source,
75
- provider: model.provider,
76
- reasoningOptions: model.reasoning_options,
77
- description: model.description,
78
- openWeights: model.open_weights,
79
- lastUpdated: model.last_updated,
80
- enabled: model.enabled,
81
- });
82
- }
83
- }
84
- return result;
85
- }
1
+ // Moved to the framework-free core so the root `@kortix/sdk` entry can export it.
2
+ export * from '../core/models/model-flatten.js';
86
3
  //# sourceMappingURL=model-flatten.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-flatten.js","sourceRoot":"","sources":["../../src/react/model-flatten.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAA6B,MAAM,yBAAyB,CAAC;AAkC1F,SAAS,eAAe,CAAC,KAAiB;IACxC,OAAO,cAAc,IAAI,KAAK,IAAI,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC;AAC/D,CAAC;AA6DD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,GAA4C;IAE5C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,OAAO,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/F,OAAO,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC;AAC5C,CAAC;AAiBD,MAAM,UAAU,aAAa,CAC3B,SAA2C,EAC3C,IAaC;IAED,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAC1B,MAAM,YAAY,GAAG,IAAI,EAAE,YAAY,IAAI,SAAS,CAAC;IACrD,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,C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aAC9C,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"model-flatten.js","sourceRoot":"","sources":["../../src/react/model-flatten.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,8BAA8B,CAAC"}
@@ -1,3 +1,2 @@
1
- import type { FlatModel } from './model-flatten.js';
2
- export declare function createModelLookup(models: FlatModel[]): Map<string, FlatModel>;
1
+ export * from '../core/models/model-lookup.js';
3
2
  //# sourceMappingURL=model-lookup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-lookup.d.ts","sourceRoot":"","sources":["../../src/react/model-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAE7E"}
1
+ {"version":3,"file":"model-lookup.d.ts","sourceRoot":"","sources":["../../src/react/model-lookup.ts"],"names":[],"mappings":"AACA,cAAc,6BAA6B,CAAC"}
@@ -1,4 +1,3 @@
1
- export function createModelLookup(models) {
2
- return new Map(models.map((model) => [`${model.providerID}:${model.modelID}`, model]));
3
- }
1
+ // Moved to the framework-free core (`createModelVisibility` reads it).
2
+ export * from '../core/models/model-lookup.js';
4
3
  //# sourceMappingURL=model-lookup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-lookup.js","sourceRoot":"","sources":["../../src/react/model-lookup.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACzF,CAAC"}
1
+ {"version":3,"file":"model-lookup.js","sourceRoot":"","sources":["../../src/react/model-lookup.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,cAAc,6BAA6B,CAAC"}
@@ -1,108 +1,2 @@
1
- import { type ProviderAuthRequirement } from '@kortix/llm-catalog';
2
- import type { ProviderListResponse as SdkProviderListResponse } from '@opencode-ai/sdk/v2/client';
3
- import type { ProjectLlmCatalogResponse } from '../core/rest/projects-client/index.js';
4
- export type ProviderListResponse = SdkProviderListResponse;
5
- /**
6
- * Provider → Kortix-owned auth requirement, derived from the shared
7
- * models.dev catalog via `providerAuthRequirement` (NOT the raw catalog
8
- * `env` list — see that function's doc comment for why: models.dev lists
9
- * every auth method the upstream SDK supports, not what Kortix actually
10
- * reads). Mirrors the `{ id, authRequirement }` projection of the web's
11
- * `LLM_PROVIDERS` (built from the same catalog + the same override table),
12
- * so connection inference is identical without depending on the web-only
13
- * provider-modal catalog module.
14
- *
15
- * Reads `CATALOG_PROVIDER_ENV` (the catalog's `{ id, env }` projection), not
16
- * `CATALOG`: this module is in every browser route's graph, and `CATALOG` is
17
- * the full ~7.6 MB models.dev snapshot.
18
- */
19
- export declare const LLM_PROVIDER_CREDENTIALS: Array<{
20
- id: string;
21
- authRequirement: ProviderAuthRequirement;
22
- }>;
23
- export declare const GATEWAY_PROVIDER_IDS: Set<string>;
24
- export declare function normalizeProviderList(providers: ProviderListResponse): ProviderListResponse;
25
- /**
26
- * True when a provider-list response actually carries usable models — i.e. at
27
- * least one CONNECTED provider that exposes >=1 model. A response failing this
28
- * is a transient boot state, not a real answer.
29
- */
30
- export declare function providerListHasModels(providers: ProviderListResponse | undefined): boolean;
31
- export declare function providerListHasGateway(providers: ProviderListResponse | undefined): boolean;
32
- export declare function filterToGatewayProviders(providers: ProviderListResponse): ProviderListResponse;
33
- export declare function mergeProviderLists(primary: ProviderListResponse, secondary: ProviderListResponse): ProviderListResponse;
34
- export declare function filterToNativeProviders(providers: ProviderListResponse): ProviderListResponse;
35
- export declare function mergeProjectSecretConnectedProviders(providers: ProviderListResponse, secretNames: Set<string>, providerCredentials: Array<{
36
- id: string;
37
- authRequirement: ProviderAuthRequirement;
38
- }>): ProviderListResponse;
39
- /** The catalog fields the pre-runtime picker source reads per model — a
40
- * structural subset of `@kortix/llm-catalog`'s `CatalogModel` (the wire
41
- * shape), typed loose so both the shared type and test fixtures satisfy it. */
42
- interface NativeCatalogModel {
43
- id: string;
44
- name: string;
45
- released?: string | null;
46
- status?: string;
47
- description?: string;
48
- family?: string;
49
- reasoning?: boolean;
50
- reasoning_options?: Array<{
51
- type: string;
52
- values?: Array<string | null>;
53
- min?: number;
54
- max?: number;
55
- }>;
56
- tool_call?: boolean;
57
- attachment?: boolean;
58
- open_weights?: boolean;
59
- last_updated?: string;
60
- modalities?: {
61
- input?: string[];
62
- output?: string[];
63
- };
64
- limit?: {
65
- context?: number;
66
- input?: number;
67
- output?: number;
68
- };
69
- cost?: {
70
- input?: number;
71
- output?: number;
72
- };
73
- }
74
- export declare function nativeProviderListFromCatalog(catalog: {
75
- providers: Array<{
76
- id: string;
77
- name: string;
78
- models: Array<NativeCatalogModel>;
79
- }>;
80
- }, secretNames: Set<string>): ProviderListResponse;
81
- /**
82
- * ONE native picker across sandbox states. Pre-boot the picker reads the
83
- * catalog synthesis (`nativeProviderListFromCatalog`); once the runtime
84
- * reports `/config/providers` it is the truth for what the box can actually
85
- * serve. Swapping sources on boot changed the picker under the user (provider
86
- * order, Zen appearing, the auto-picked default flipping). Merged instead:
87
- *
88
- * - shared provider ids take the RUNTIME object (real variant settings, the
89
- * box's exact model set), in CATALOG order (flagship rank);
90
- * - runtime-only providers (Zen, auth.json logins) append after;
91
- * - the curated catalog default wins per provider while the runtime serves
92
- * that model, else the runtime default — the auto-pick is stable across
93
- * boot and never names a model the box cannot run.
94
- */
95
- export declare function mergeNativeProviderLists(catalog: ProviderListResponse | undefined, runtime: ProviderListResponse | undefined): ProviderListResponse | undefined;
96
- export declare function connectedGatewayProviderIdsFromSecretNames(secretNames: Set<string>): Set<string>;
97
- /**
98
- * Restamp `enabled` on a gateway ProviderListResponse from an overrides map
99
- * (`wireModelId -> enabled`), touching only the models the map names. Pure —
100
- * returns a new list. Used to optimistically update the cached
101
- * `['project-providers', :id, 'gateway']` query when "Manage models" writes an
102
- * override, so the session picker (which renders from THAT cache, staleTime
103
- * Infinity) reflects the toggle without waiting for the refetch.
104
- */
105
- export declare function applyEnablementToProviderList(providers: ProviderListResponse, overrides: Record<string, boolean>): ProviderListResponse;
106
- export declare function projectLlmCatalogToProviderList(catalog: ProjectLlmCatalogResponse): ProviderListResponse;
107
- export {};
1
+ export * from '../core/models/provider-selection.js';
108
2
  //# sourceMappingURL=provider-selection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider-selection.d.ts","sourceRoot":"","sources":["../../src/react/provider-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAM7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,oBAAoB,IAAI,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,uBAAuB,CAAC;CAC1C,CAGE,CAAC;AAIJ,eAAO,MAAM,oBAAoB,aAAsB,CAAC;AAGxD,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,oBAAoB,GAAG,oBAAoB,CAiC3F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAO1F;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAM3F;AAED,wBAAgB,wBAAwB,CAAC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