maka-agent 0.2.0-dev.47.20260922 → 0.2.0-dev.49.20260924

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 (155) hide show
  1. package/dist/acp/session-event-mapper.js +1 -4
  2. package/dist/onboarding-catalog.js +20 -4
  3. package/dist/pi-transcript.js +0 -8
  4. package/dist/pi-tui-pickers.js +1 -1
  5. package/dist/pi-tui-runner.js +6 -4
  6. package/dist/runtime-host-capability-provider-command.js +25 -6
  7. package/dist/runtime-host-onboarding.js +5 -3
  8. package/dist/runtime-host-session-channel.js +9 -3
  9. package/dist/tui-mcp-control.js +37 -24
  10. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  11. package/node_modules/@maka/acp-executor-plugin/dist/acp-errors.js +26 -0
  12. package/node_modules/@maka/acp-executor-plugin/dist/acp-filesystem.js +103 -0
  13. package/node_modules/@maka/acp-executor-plugin/dist/acp-process.js +119 -0
  14. package/node_modules/@maka/acp-executor-plugin/dist/acp-projection.js +146 -0
  15. package/node_modules/@maka/acp-executor-plugin/dist/index.js +653 -0
  16. package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +24446 -0
  17. package/node_modules/@maka/acp-executor-plugin/package.json +15 -0
  18. package/node_modules/@maka/antigravity-acp-plugin/dist/index.js +88 -0
  19. package/node_modules/@maka/antigravity-acp-plugin/dist/model-presentation.js +53 -0
  20. package/node_modules/@maka/antigravity-acp-plugin/dist/plugin.mjs +115 -0
  21. package/node_modules/@maka/antigravity-acp-plugin/package.json +15 -0
  22. package/node_modules/@maka/core/dist/events.js +13 -0
  23. package/node_modules/@maka/core/dist/executor-catalog.js +106 -0
  24. package/node_modules/@maka/core/dist/llm-connections.js +2 -5
  25. package/node_modules/@maka/core/dist/mcp.js +4 -1
  26. package/node_modules/@maka/core/dist/model-facts.js +2 -4
  27. package/node_modules/@maka/core/dist/model-metadata.generated.js +345 -248
  28. package/node_modules/@maka/core/dist/model-metadata.js +28 -1
  29. package/node_modules/@maka/core/dist/model-thinking.js +17 -17
  30. package/node_modules/@maka/core/dist/model-web-search.js +7 -9
  31. package/node_modules/@maka/core/dist/models-dev-projection.js +1 -1
  32. package/node_modules/@maka/core/dist/onboarding.js +1 -4
  33. package/node_modules/@maka/core/dist/provider-registry.js +60 -86
  34. package/node_modules/@maka/core/dist/runtime-event-store.js +25 -0
  35. package/node_modules/@maka/core/dist/runtime-event.js +2 -2
  36. package/node_modules/@maka/core/dist/runtime-invocation.js +5 -0
  37. package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +28 -16
  38. package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +6 -0
  39. package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +21 -0
  40. package/node_modules/@maka/core/dist/runtime-policy.js +1 -1
  41. package/node_modules/@maka/core/dist/session.js +25 -9
  42. package/node_modules/@maka/core/dist/settings.js +1 -0
  43. package/node_modules/@maka/core/dist/tool-ledger-scanner.js +365 -104
  44. package/node_modules/@maka/core/dist/transcript-search.js +1 -0
  45. package/node_modules/@maka/core/dist/turn-origin.js +14 -0
  46. package/node_modules/@maka/core/dist/usage-stats/types.js +1 -0
  47. package/node_modules/@maka/core/package.json +2 -0
  48. package/node_modules/@maka/eval/dist/harbor-maka-subject.js +3 -0
  49. package/node_modules/@maka/eval/dist/maka-subject.js +8 -1
  50. package/node_modules/@maka/mcp/dist/credential-coordinator.js +6 -1
  51. package/node_modules/@maka/mcp/dist/index.js +31 -5
  52. package/node_modules/@maka/mcp/dist/oauth.js +54 -6
  53. package/node_modules/@maka/runtime/dist/agent-run-inspect.js +1 -1
  54. package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +1 -11
  55. package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +2 -12
  56. package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +3 -71
  57. package/node_modules/@maka/runtime/dist/conversation-copy.js +58 -3
  58. package/node_modules/@maka/runtime/dist/local-web-fetch.js +23 -11
  59. package/node_modules/@maka/runtime/dist/mcp-tools.js +9 -2
  60. package/node_modules/@maka/runtime/dist/model-adapter.js +10 -5
  61. package/node_modules/@maka/runtime/dist/model-factory.js +33 -30
  62. package/node_modules/@maka/runtime/dist/model-fetcher.js +4 -1
  63. package/node_modules/@maka/runtime/dist/model-runtime.js +3 -9
  64. package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +116 -3
  65. package/node_modules/@maka/runtime/dist/plugin-executor-service.js +212 -16
  66. package/node_modules/@maka/runtime/dist/read-page.js +11 -8
  67. package/node_modules/@maka/runtime/dist/recovery-resolver.js +47 -20
  68. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +1 -0
  69. package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +2 -2
  70. package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +39 -8
  71. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +3 -0
  72. package/node_modules/@maka/runtime/dist/session-manager.js +182 -127
  73. package/node_modules/@maka/runtime/dist/shell-run-manager.js +3 -0
  74. package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +29 -4
  75. package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +141 -134
  76. package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +3 -3
  77. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +7 -6
  78. package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +28 -62
  79. package/node_modules/@maka/runtime-host/dist/candidate-entry.js +8 -5
  80. package/node_modules/@maka/runtime-host/dist/client/hosted-execution-target.js +7 -1
  81. package/node_modules/@maka/runtime-host/dist/client/index.js +1 -1
  82. package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +8 -1
  83. package/node_modules/@maka/runtime-host/dist/client/session-catalog-summary.js +6 -1
  84. package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +3 -0
  85. package/node_modules/@maka/runtime-host/dist/composition-identity.js +19 -0
  86. package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +6 -3
  87. package/node_modules/@maka/runtime-host/dist/protocol/index.js +14 -2
  88. package/node_modules/@maka/runtime-host/dist/protocol/operations.js +4 -1
  89. package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +34 -0
  90. package/node_modules/@maka/runtime-host/dist/protocol/prompt-suggestions.js +61 -0
  91. package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +4 -1
  92. package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +40 -2
  93. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +2 -1
  94. package/node_modules/@maka/runtime-host/dist/server/builtin-external-agent-plugins.js +188 -0
  95. package/node_modules/@maka/runtime-host/dist/server/candidate.js +12 -7
  96. package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +44 -46
  97. package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +3 -0
  98. package/node_modules/@maka/runtime-host/dist/server/context-coordinator.js +2 -0
  99. package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +1 -1
  100. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +212 -24
  101. package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +41 -2
  102. package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +4 -0
  103. package/node_modules/@maka/runtime-host/dist/server/generated-text.js +39 -0
  104. package/node_modules/@maka/runtime-host/dist/server/host-composition-source.js +47 -0
  105. package/node_modules/@maka/runtime-host/dist/server/host-composition.js +1 -29
  106. package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +2 -9
  107. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +75 -9
  108. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +12 -0
  109. package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +45 -0
  110. package/node_modules/@maka/runtime-host/dist/server/jev-routing-model.js +157 -0
  111. package/node_modules/@maka/runtime-host/dist/server/listener-set.js +2 -2
  112. package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +4 -0
  113. package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +11 -1
  114. package/node_modules/@maka/runtime-host/dist/server/process-lifecycle.js +1 -1
  115. package/node_modules/@maka/runtime-host/dist/server/process-termination-error.js +27 -0
  116. package/node_modules/@maka/runtime-host/dist/server/prompt-suggestion.js +179 -0
  117. package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +93 -14
  118. package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +2 -0
  119. package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +99 -12
  120. package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +48 -16
  121. package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +12 -6
  122. package/node_modules/@maka/runtime-host/dist/server/session-title.js +3 -16
  123. package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +71 -3
  124. package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +3 -0
  125. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +6 -13
  126. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +39 -11
  127. package/node_modules/@maka/runtime-host/dist/server/workhub-result-coordinator.js +173 -0
  128. package/node_modules/@maka/runtime-host/dist/server/workhub-result-runtime.js +293 -0
  129. package/node_modules/@maka/runtime-host/package.json +2 -0
  130. package/node_modules/@maka/storage/dist/agent-run-store-contract.js +8 -0
  131. package/node_modules/@maka/storage/dist/config-transfer.js +14 -8
  132. package/node_modules/@maka/storage/dist/execution-stores.js +19 -6
  133. package/node_modules/@maka/storage/dist/interaction-store.js +13 -0
  134. package/node_modules/@maka/storage/dist/mcp-config-store.js +91 -2
  135. package/node_modules/@maka/storage/dist/operational-state-store.js +15 -1
  136. package/node_modules/@maka/storage/dist/plan-authority.js +2 -0
  137. package/node_modules/@maka/storage/dist/plan-store.js +30 -0
  138. package/node_modules/@maka/storage/dist/runtime-event-persistence.js +1 -0
  139. package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +28 -17
  140. package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +9 -3
  141. package/node_modules/@maka/storage/dist/runtime-policy/credential-vault-document.js +4 -1
  142. package/node_modules/@maka/storage/dist/runtime-policy/legacy-custom-connection.js +65 -0
  143. package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +10 -5
  144. package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +2 -0
  145. package/node_modules/@maka/storage/dist/session-bundle-policy.js +11 -0
  146. package/node_modules/@maka/storage/dist/session-store-values.js +16 -4
  147. package/node_modules/@maka/storage/dist/session-store.js +29 -6
  148. package/node_modules/@maka/storage/dist/shell-run-authority.js +1 -0
  149. package/node_modules/@maka/storage/dist/shell-run-store.js +15 -0
  150. package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +3 -0
  151. package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +74 -1
  152. package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +849 -91
  153. package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +21 -3
  154. package/node_modules/@maka/storage/dist/usage-screen.js +138 -108
  155. package/package.json +1 -1
@@ -140,7 +140,7 @@ export function openAiAdapterApiProtocol(modelId, providerType) {
140
140
  (providerType === 'opencode-go' && id === 'muse-spark-1.2-contributor') ||
141
141
  ((providerType === 'alibaba-token-plan-cn' || providerType === 'alibaba-token-plan') &&
142
142
  id === 'qwen3.8-max') ||
143
- /^gpt-5/i.test(id) ||
143
+ /^gpt-[56]/i.test(id) ||
144
144
  ((providerType === 'xai' || providerType === 'xai-oauth') && id === 'grok-4.5')
145
145
  ? 'openai-responses'
146
146
  : 'openai-chat';
@@ -205,6 +205,24 @@ const GOOGLE_MODEL_OVERRIDES = {
205
205
  thinkingOptions: { toggle: true, offBehavior: 'google-thinking-budget-zero' },
206
206
  },
207
207
  };
208
+ // These models are in the live models.dev OpenAI catalog but not yet in the
209
+ // bundled snapshot. The OpenAI Responses SDK accepts only these five GPT-6
210
+ // efforts on both API and Codex OAuth paths. It discards `none` and the Codex
211
+ // model list's `ultra` for Sol, so do not offer them until the request path
212
+ // can send and handle them.
213
+ const OPENAI_GPT6_THINKING_OPTIONS = {
214
+ efforts: ['low', 'medium', 'high', 'xhigh', 'max'],
215
+ };
216
+ const OPENAI_GPT6_MODEL_OVERRIDES = {
217
+ 'gpt-6-sol': {
218
+ displayName: 'GPT-6 Sol',
219
+ thinkingOptions: OPENAI_GPT6_THINKING_OPTIONS,
220
+ },
221
+ 'gpt-6-luna': {
222
+ displayName: 'GPT-6 Luna',
223
+ thinkingOptions: OPENAI_GPT6_THINKING_OPTIONS,
224
+ },
225
+ };
208
226
  // The OAuth path pins its own context windows over whatever the public
209
227
  // catalog says. Base facts come from the active table, falling back to the
210
228
  // shipped snapshot so a model upstream stops listing keeps a display name.
@@ -221,6 +239,14 @@ function withoutInputLimit(metadata) {
221
239
  }
222
240
  function openAiOAuthModelMetadata(active) {
223
241
  return {
242
+ 'gpt-6-sol': {
243
+ ...openAiOAuthBase(active, 'gpt-6-sol'),
244
+ ...OPENAI_GPT6_MODEL_OVERRIDES['gpt-6-sol'],
245
+ },
246
+ 'gpt-6-luna': {
247
+ ...openAiOAuthBase(active, 'gpt-6-luna'),
248
+ ...OPENAI_GPT6_MODEL_OVERRIDES['gpt-6-luna'],
249
+ },
224
250
  'gpt-5.6-sol': {
225
251
  ...openAiOAuthBase(active, 'gpt-5.6-sol'),
226
252
  contextWindow: 372_000,
@@ -412,6 +438,7 @@ const COMMAND_CODE_MODEL_METADATA = {
412
438
  function buildStaticModelMetadata(active) {
413
439
  return {
414
440
  anthropic: ANTHROPIC_MODEL_OVERRIDES,
441
+ openai: OPENAI_GPT6_MODEL_OVERRIDES,
415
442
  'claude-subscription': claudeSubscriptionModelMetadata(active),
416
443
  // The Command Code Provider-API plan rides the same effort table.
417
444
  commandcode: COMMAND_CODE_MODEL_METADATA,
@@ -17,6 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
  import { lookupModelMetadata } from './model-metadata.js';
20
+ import { isModelApiProtocol } from './provider-registry.js';
20
21
  export const THINKING_LEVELS = [
21
22
  'off',
22
23
  'minimal',
@@ -86,6 +87,7 @@ const APPLY_PATCH_MODELS = new Set([
86
87
  'gpt-5.6-terra',
87
88
  'gpt-5.6-luna',
88
89
  'gpt-6-astra',
90
+ 'deepseek-flash',
89
91
  'deepseek-v4-flash',
90
92
  'deepseek-v4-flash-vision-exp',
91
93
  'deepseek-v4-pro',
@@ -143,9 +145,7 @@ function normalizeModelOverride(entry) {
143
145
  declared.capabilities = entry.capabilities;
144
146
  if (isRecord(entry.modalities))
145
147
  declared.modalities = entry.modalities;
146
- if (entry.apiProtocol === 'openai-chat' ||
147
- entry.apiProtocol === 'openai-responses' ||
148
- entry.apiProtocol === 'anthropic-messages')
148
+ if (isModelApiProtocol(entry.apiProtocol))
149
149
  declared.apiProtocol = entry.apiProtocol;
150
150
  if (entry.serviceTier === 'fast')
151
151
  declared.serviceTier = 'fast';
@@ -174,13 +174,6 @@ export function normalizeModelOverrides(table) {
174
174
  }
175
175
  return parsed.length > 0 ? Object.fromEntries(parsed) : undefined;
176
176
  }
177
- /** Remove profiles for models explicitly retired from a provider. */
178
- export function pruneModelOverrides(table, retainedModelIds) {
179
- if (table === undefined)
180
- return undefined;
181
- const kept = Object.fromEntries(Object.entries(table).filter(([modelId]) => retainedModelIds.includes(modelId)));
182
- return Object.keys(kept).length > 0 ? kept : undefined;
183
- }
184
177
  /**
185
178
  * The one read seam for user declarations: thinking, vision, and context
186
179
  * window reads all enter through here, so the precedence of a declaration over
@@ -195,12 +188,19 @@ export function modelOverride(connection, modelId) {
195
188
  export function declaredContextWindow(connection, modelId) {
196
189
  return modelOverride(connection, modelId)?.compactionThreshold;
197
190
  }
191
+ /** The model's own wire declaration, then the discovered one, then the connection default. */
192
+ export function declaredModelApiProtocol(connection, modelId) {
193
+ return (modelOverride(connection, modelId)?.apiProtocol ??
194
+ connection.models?.find((model) => model.id === modelId)?.apiProtocol ??
195
+ connection.defaultApiProtocol);
196
+ }
198
197
  /**
199
198
  * Mirrors @ai-sdk/openai@4.0.42 priority-processing detection. The UI and
200
199
  * runtime share this gate so a saved Fast declaration always reaches the wire.
201
200
  */
202
- export function supportsRelayFastServiceTier(providerType, modelId) {
203
- if (providerType !== 'openai-responses-compatible')
201
+ export function supportsCustomFastServiceTier(connection, modelId) {
202
+ if (connection.providerType !== 'custom' ||
203
+ declaredModelApiProtocol(connection, modelId) !== 'openai-responses')
204
204
  return false;
205
205
  const oSeriesVersion = /^o(\d+)(?:-|$)/.exec(modelId)?.[1];
206
206
  const gptMatch = /^gpt-(\d+)(?:\.(\d+))?(?:-(.+))?$/.exec(modelId);
@@ -213,12 +213,12 @@ export function supportsRelayFastServiceTier(providerType, modelId) {
213
213
  (oSeriesVersion !== undefined && Number(oSeriesVersion) >= 3));
214
214
  }
215
215
  /**
216
- * OpenAI-compatible relay connections declare thinking support **per model** via
217
- * `modelOverrides[modelId].thinkingLevels` — a relay may front a
216
+ * Custom connections declare thinking support **per model** via
217
+ * `modelOverrides[modelId].thinkingLevels` — one endpoint may front a
218
218
  * DeepSeek-family reasoner and a plain instruct model side by side, so the
219
219
  * declaration granularity is the model, not the connection. Without a usable
220
- * declaration for that model every provider (including relays) falls through
221
- * to the metadata-derived variants.
220
+ * declaration for that model every provider falls through to the
221
+ * metadata-derived variants.
222
222
  */
223
223
  export function thinkingVariantsForConnection(connection, modelId) {
224
224
  const declared = modelOverride(connection, modelId)?.thinkingLevels;
@@ -262,7 +262,7 @@ export function thinkingOptionsForModel(providerType, modelId) {
262
262
  * Levels a model supports, in display order. Returns an empty list for
263
263
  * non-reasoning models and for provider/model combinations whose reasoning
264
264
  * support is not declarable from `providerType` + `modelId` alone (e.g.
265
- * `openai-compatible`, where the backing model is user-configured and
265
+ * `custom`, where the backing model is user-configured and
266
266
  * unknown). The UI hides the thinking switcher when this returns `[]`.
267
267
  *
268
268
  * Heuristics are intentionally conservative: only patterns known to accept the
@@ -36,10 +36,10 @@ export function resolveHostedWebSearchCapability(providerType, models, modelId,
36
36
  const stored = models?.find((model) => model.id === id);
37
37
  if (stored?.capabilities?.webSearch === false)
38
38
  return null;
39
- const adapter = providerHostedWebSearchAdapter(providerType);
39
+ const wire = effectiveWire ?? stored?.apiProtocol;
40
+ const adapter = providerHostedWebSearchAdapter(providerType, wire);
40
41
  if (!adapter)
41
42
  return null;
42
- const wire = effectiveWire ?? stored?.apiProtocol;
43
43
  if (wire !== undefined &&
44
44
  ((adapter.adapter === 'openai-responses' && wire !== 'openai-responses') ||
45
45
  (adapter.adapter === 'anthropic-messages' && wire !== 'anthropic-messages'))) {
@@ -50,15 +50,18 @@ export function resolveHostedWebSearchCapability(providerType, models, modelId,
50
50
  }
51
51
  return providerDefaultHostedWebSearchCapability(providerType, id, adapter);
52
52
  }
53
- function providerHostedWebSearchAdapter(providerType) {
53
+ function providerHostedWebSearchAdapter(providerType, wire) {
54
54
  switch (providerType) {
55
+ case 'custom':
56
+ return wire === 'openai-responses' || wire === 'anthropic-messages'
57
+ ? { adapter: wire, implemented: true }
58
+ : null;
55
59
  case 'deepseek':
56
60
  // @ai-sdk/open-responses currently serializes function tools only.
57
61
  // Mark native search unavailable so routing never hands it a provider
58
62
  // tool that would be silently filtered from the request.
59
63
  return { adapter: 'openai-responses', implemented: false };
60
64
  case 'openai':
61
- case 'openai-responses-compatible':
62
65
  case 'xai':
63
66
  case 'xai-oauth':
64
67
  return { adapter: 'openai-responses', implemented: true };
@@ -69,7 +72,6 @@ function providerHostedWebSearchAdapter(providerType) {
69
72
  case 'MiniMax':
70
73
  case 'MiniMax-cn':
71
74
  case 'minimax-coding-plan':
72
- case 'anthropic-compatible':
73
75
  return { adapter: 'anthropic-messages', implemented: true };
74
76
  case 'google':
75
77
  return { adapter: 'google-grounding', implemented: false };
@@ -104,10 +106,6 @@ function providerDefaultHostedWebSearchCapability(providerType, modelId, capabil
104
106
  case 'MiniMax-cn':
105
107
  case 'minimax-coding-plan':
106
108
  return /^MiniMax-M(?:2\.7|3)(?:[.-]|$)/i.test(modelId) ? capability : null;
107
- case 'anthropic-compatible':
108
- return modelId === 'deepseek-v4-flash' ? capability : null;
109
- case 'openai-responses-compatible':
110
- return null;
111
109
  case 'google':
112
110
  return /^gemini-(?:2\.0|2\.5|3|3\.1|3\.5)(?:[.-]|$)/i.test(modelId) ? capability : null;
113
111
  case 'zai':
@@ -36,7 +36,7 @@ export const MODELS_DEV_PROVIDERS = {
36
36
  google: 'google',
37
37
  groq: 'groq',
38
38
  huggingface: 'huggingface',
39
- 'kimi-coding-plan': 'kimi-for-coding',
39
+ 'kimi-coding-plan': 'kimi-code-plan-cn',
40
40
  MiniMax: 'minimax',
41
41
  'MiniMax-cn': 'minimax-cn',
42
42
  'minimax-coding-plan': 'minimax-coding-plan',
@@ -43,7 +43,7 @@ export function deriveOnboardingState(input) {
43
43
  requestedModel: model,
44
44
  });
45
45
  if (verdict.ready) {
46
- return hasHistory(input.sessions)
46
+ return input.hasHistory
47
47
  ? { kind: 'ready_with_history', connectionSlug: connection.slug, model: verdict.model }
48
48
  : { kind: 'ready_empty', connectionSlug: connection.slug, model: verdict.model };
49
49
  }
@@ -87,9 +87,6 @@ export function deriveOnboardingState(input) {
87
87
  ? { kind: 'blocked', reason: 'all_connections_retired' }
88
88
  : { kind: 'blocked', reason: 'all_connections_unhealthy' };
89
89
  }
90
- function hasHistory(sessions) {
91
- return sessions.length > 0;
92
- }
93
90
  /** Closed milestone ids persisted in settings. */
94
91
  export const ONBOARDING_MILESTONE_IDS = [
95
92
  'initial_onboarding',