nolo-cli 0.16.0-alpha.7 → 0.16.0-alpha.9

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 (73) hide show
  1. package/{_executeModel-XF7VJZ6O.js → _executeModel-ABTND4KZ.js} +17 -17
  2. package/{agentDeleteCommand-X35VSSVM.js → agentDeleteCommand-ARMAV46L.js} +11 -11
  3. package/{agentEmailCommands-LGMEEMQP.js → agentEmailCommands-BKPZP4UP.js} +22 -22
  4. package/{agentListCommands-LLQHUE4O.js → agentListCommands-5J7RRXUO.js} +13 -13
  5. package/{agentMachineCommands-4Q5PFIKF.js → agentMachineCommands-VXWJXXPF.js} +11 -11
  6. package/{agentRecordCommands-XUYVG7BS.js → agentRecordCommands-INDJINPN.js} +21 -21
  7. package/{agentRunCommand-NORLSA7L.js → agentRunCommand-KBN6HBY4.js} +21 -21
  8. package/{agentRuntimeLocal-N56G2ZJK.js → agentRuntimeLocal-AH2RYWGP.js} +8 -10
  9. package/{agentSlice-JE5BREZQ.js → agentSlice-R4PELU57.js} +1 -1
  10. package/{appDeleteCommands-WHRYDQLZ.js → appDeleteCommands-FRWMPQNS.js} +12 -12
  11. package/{appDeployCommands-USRWBT6T.js → appDeployCommands-IRF3T35Z.js} +12 -12
  12. package/{appDeployStatusCommands-R632IBVL.js → appDeployStatusCommands-ADFERYPU.js} +12 -12
  13. package/{appGetCommands-PKGC2JWH.js → appGetCommands-FTEOXWMS.js} +12 -12
  14. package/{appListCommands-OMRAEOAL.js → appListCommands-WBY7UWYD.js} +12 -12
  15. package/{authCommand-P22WCVOP.js → authCommand-QU5BXRBH.js} +6 -6
  16. package/{chunk-BS5STUTA.js → chunk-2XA3QGOH.js} +3 -3
  17. package/{chunk-NY5FDXZL.js → chunk-4EME3YTO.js} +3 -3
  18. package/{chunk-KOW2R4MZ.js → chunk-4N7QA72L.js} +1 -5
  19. package/{chunk-2B3BNWPC.js → chunk-5Y5KEB7V.js} +1 -1
  20. package/{chunk-5BP2BROQ.js → chunk-66X4VSRC.js} +4 -3
  21. package/{chunk-BH4AZ7S6.js → chunk-7HECYFOI.js} +30 -19
  22. package/{chunk-C2BYYSAO.js → chunk-AFNJWHKL.js} +3 -3
  23. package/{chunk-AWGYJBWX.js → chunk-BG7AP3Q7.js} +8 -8
  24. package/{chunk-ZVBKL6NS.js → chunk-BHVBFI6B.js} +3 -3
  25. package/{chunk-AKYTMRBP.js → chunk-F6JSVFHX.js} +1 -1
  26. package/{chunk-FJHD7FHN.js → chunk-FMYTM25W.js} +1 -1
  27. package/{chunk-EFNMO3YF.js → chunk-G63IH3ZK.js} +1 -1
  28. package/{chunk-XQW4K7D3.js → chunk-GWESD7AS.js} +2 -2
  29. package/{chunk-CI2G2Z2L.js → chunk-HSLJ7QER.js} +1 -1
  30. package/{chunk-OIX36K6R.js → chunk-IFPY2BIE.js} +1 -1
  31. package/{chunk-J4VLNDI7.js → chunk-J3VQSU5W.js} +1 -1
  32. package/{chunk-XBOY5KZG.js → chunk-LSHKV3S7.js} +10 -10
  33. package/{chunk-ZTRZ2O5B.js → chunk-LZYEWFPK.js} +7 -3
  34. package/{chunk-4IF3B7WC.js → chunk-OELQ67TN.js} +2 -2
  35. package/{chunk-3STYIYRD.js → chunk-PEDT43JF.js} +2 -2
  36. package/{chunk-BOPYCNN3.js → chunk-QLWU2KOT.js} +1 -1
  37. package/{chunk-ZRDWHLMQ.js → chunk-R6ALN5F5.js} +1 -1
  38. package/{chunk-UALQTIWY.js → chunk-RK5NYQEL.js} +1 -1
  39. package/{chunk-YQMTILRW.js → chunk-RLCXU7A5.js} +1 -1
  40. package/{chunk-CTZLNWT3.js → chunk-SGRDLYRZ.js} +2 -2
  41. package/{chunk-J2DR42U3.js → chunk-VAT72PDP.js} +12 -10
  42. package/{chunk-YXQA6X6I.js → chunk-VK2HVKAO.js} +31 -24
  43. package/{chunk-QSWWWYGA.js → chunk-WVDAUR2S.js} +1 -1
  44. package/{chunk-6EFJQCL6.js → chunk-XECKIDGJ.js} +79 -63
  45. package/{chunk-4XR5OJ7J.js → chunk-ZPPTWRPT.js} +1 -1
  46. package/{chunk-YLVJ7NB4.js → chunk-ZVC2PCZN.js} +2 -2
  47. package/{chunk-LJIJWXIT.js → chunk-ZVDRAEZL.js} +4 -12
  48. package/{createAgentAutomationAction-MEYL7OTC.js → createAgentAutomationAction-3KKRAYGE.js} +6 -6
  49. package/{createDialogAction-OUK5YIH4.js → createDialogAction-S7NMQ4TZ.js} +7 -7
  50. package/{createPageAction-NEBMC6AB.js → createPageAction-2EFBT4LQ.js} +6 -6
  51. package/{dialogCommands-L4LMXQAI.js → dialogCommands-J7XFIQRD.js} +12 -12
  52. package/{dialogSlice-BKRE6NDW.js → dialogSlice-LNRRBUIC.js} +6 -6
  53. package/{docCreateCommands-C4HJCM47.js → docCreateCommands-MKO5WB34.js} +11 -11
  54. package/{docDeleteCommands-Y6W6A3W6.js → docDeleteCommands-RCBHRKUE.js} +12 -12
  55. package/{docReadCommands-2WUIDAR6.js → docReadCommands-66527P4G.js} +11 -11
  56. package/{docStore-XIPSSX7U.js → docStore-67MYPX7P.js} +7 -7
  57. package/{docUpdateCommands-XVL2CBKE.js → docUpdateCommands-UT5HSLOJ.js} +11 -11
  58. package/{getPricing-HXWUZAEN.js → getPricing-P4XRJRZB.js} +3 -3
  59. package/{handleSendMessageAction-NTDBIOMZ.js → handleSendMessageAction-VZ7226PB.js} +6 -6
  60. package/index.js +47 -47
  61. package/{machineCommands-SXOARUBD.js → machineCommands-ATA7OSBJ.js} +20 -20
  62. package/{machineWsRunDispatch-OZQ4WNCE.js → machineWsRunDispatch-ZDCZ645H.js} +20 -20
  63. package/{models-DQUMNIGQ.js → models-5K5G2CZI.js} +2 -2
  64. package/package.json +1 -1
  65. package/{readlineWorkspace-AM2FA7HS.js → readlineWorkspace-UUNABTLB.js} +29 -25
  66. package/{runAgentClientLoop-ISTTN5QO.js → runAgentClientLoop-2A577WBM.js} +14 -14
  67. package/{spaceCommands-PYFLKEAW.js → spaceCommands-UNZVR2OS.js} +11 -11
  68. package/{spaceSlice-QER2OEYB.js → spaceSlice-MC7FYPMZ.js} +6 -6
  69. package/{streamAgentChatTurn-VBXKG5JA.js → streamAgentChatTurn-IEKPNM33.js} +17 -20
  70. package/{tools-XMFFOQXS.js → tools-E6FHKTCF.js} +10 -10
  71. package/{tuiSummaryLlmCaller-ENLQTJUV.js → tuiSummaryLlmCaller-QHPDD4WP.js} +4 -4
  72. package/{updateDialogTitleAction-QJEJGVZD.js → updateDialogTitleAction-SQJEEW2K.js} +6 -6
  73. /package/{chunk-LPWS7HMQ.js → chunk-O6W2O2DA.js} +0 -0
@@ -3,12 +3,12 @@ import {
3
3
  refreshAntigravityOAuthToken,
4
4
  refreshOpenAiCodexToken,
5
5
  refreshXaiOAuthToken
6
- } from "./chunk-J4VLNDI7.js";
6
+ } from "./chunk-J3VQSU5W.js";
7
7
  import {
8
8
  buildLocalAgentLookupKeys,
9
9
  normalizeAgentHandle,
10
10
  shouldReadAgentKeyRemotely
11
- } from "./chunk-QSWWWYGA.js";
11
+ } from "./chunk-WVDAUR2S.js";
12
12
  import {
13
13
  LOCAL_CODEX_AGENT_ID,
14
14
  LOCAL_CODEX_AGENT_KEY,
@@ -21,13 +21,13 @@ import {
21
21
  import {
22
22
  inlineImageUrlsForCustomProvider,
23
23
  prepareTools
24
- } from "./chunk-3STYIYRD.js";
24
+ } from "./chunk-PEDT43JF.js";
25
25
  import {
26
26
  getAntigravityUserAgent,
27
27
  isAntigravityOAuthAgent,
28
28
  readAntigravityProjectId,
29
29
  resolveAntigravityCloudCodeBaseUrl
30
- } from "./chunk-CI2G2Z2L.js";
30
+ } from "./chunk-HSLJ7QER.js";
31
31
  import {
32
32
  FORCED_TOOLS,
33
33
  addDefaultLightWebToolsForConfiguredAgents,
@@ -46,8 +46,9 @@ import {
46
46
  readXhsProfileFunc,
47
47
  readXhsProfileFunctionSchema,
48
48
  rememberMemoryFunctionSchema,
49
- resolveEffectiveEnabledPacks
50
- } from "./chunk-BH4AZ7S6.js";
49
+ resolveEffectiveEnabledPacks,
50
+ resolveRunLabel
51
+ } from "./chunk-7HECYFOI.js";
51
52
  import {
52
53
  createDrainExhaustedResponse,
53
54
  isCoreDrainingBody,
@@ -59,13 +60,13 @@ import {
59
60
  } from "./chunk-OWOHNGCN.js";
60
61
  import {
61
62
  prepareTokenUsageData
62
- } from "./chunk-XBOY5KZG.js";
63
+ } from "./chunk-LSHKV3S7.js";
63
64
  import {
64
65
  BUILTIN_TITLE_LLM_CONFIG
65
66
  } from "./chunk-XOIF2TNF.js";
66
67
  import {
67
68
  fetchServerSyncedCredential
68
- } from "./chunk-ZVBKL6NS.js";
69
+ } from "./chunk-BHVBFI6B.js";
69
70
  import {
70
71
  buildAgentRuntimeDialogWritePlan,
71
72
  buildLocalWorkspaceOpenAiTools,
@@ -79,30 +80,29 @@ import {
79
80
  parseSseDataLineObject,
80
81
  readOpenAiCompatibleSseCompletion,
81
82
  resolveOpenAiCompatibleProviderConfig
82
- } from "./chunk-C2BYYSAO.js";
83
+ } from "./chunk-AFNJWHKL.js";
83
84
  import {
84
85
  buildPlatformChatCompletionRequest,
85
86
  canUsePlatformChatProvider,
86
87
  parsePlatformChatCompletionData,
87
88
  parsePlatformChatCompletionResponse,
88
89
  readSseDataValues,
89
- resolveLegacyDeepSeekProxyChatFallback,
90
90
  resolvePlatformChatProviderConfig,
91
91
  shouldUsePlatformChatProvider
92
- } from "./chunk-KOW2R4MZ.js";
92
+ } from "./chunk-4N7QA72L.js";
93
93
  import {
94
94
  resolveAgentRuntimeConfigFromRecord
95
95
  } from "./chunk-OIQPORYI.js";
96
96
  import {
97
97
  summarizeToolArguments
98
- } from "./chunk-ZTRZ2O5B.js";
98
+ } from "./chunk-LZYEWFPK.js";
99
99
  import {
100
100
  convertMessagesToResponsesInput,
101
101
  toResponsesTools
102
102
  } from "./chunk-KFEVY3ST.js";
103
103
  import {
104
104
  resolvePlatformAuthToken
105
- } from "./chunk-LJIJWXIT.js";
105
+ } from "./chunk-ZVDRAEZL.js";
106
106
  import {
107
107
  buildLoadSkillExecutor,
108
108
  buildNoloWorkspaceCliToolExecutors,
@@ -2071,7 +2071,7 @@ ${JSON.stringify(args.input)}`;
2071
2071
  },
2072
2072
  deps
2073
2073
  );
2074
- const displayName = agentName ?? "agent";
2074
+ const displayName = resolveRunLabel({ agentName, agentKey, runId });
2075
2075
  const labels = agentRunCardLabels();
2076
2076
  return {
2077
2077
  content: JSON.stringify({
@@ -2126,7 +2126,7 @@ function createCliControlAgentRunExecutor(deps = {}) {
2126
2126
  if (action === "status") {
2127
2127
  const reconciled = checkStaleRun(record.runId, deps) ?? record;
2128
2128
  const logTail = tailLines > 0 ? tailFile(record.logPath, tailLines, resolveFs(deps)) : void 0;
2129
- const name = reconciled.agentName || "agent";
2129
+ const name = resolveRunLabel(reconciled);
2130
2130
  const logLines = logTail ? logTail.split("\n") : void 0;
2131
2131
  const labels2 = agentRunCardLabels();
2132
2132
  return {
@@ -2563,7 +2563,17 @@ function convertOpenAiMessagesToGemini(messages, options) {
2563
2563
  }
2564
2564
  const output = messageText(content) || "{}";
2565
2565
  pushOrMergeContent("user", [
2566
- { functionResponse: { name, response: { output } } }
2566
+ {
2567
+ functionResponse: {
2568
+ name,
2569
+ response: { output },
2570
+ // 保留 OpenAI tool_call_id:antigravity Cloud Code Assist 网关把
2571
+ // Gemini contents 转成 Claude messages 时需要 functionResponse →
2572
+ // tool_result 的 tool_use_id;缺 id 时网关报
2573
+ // "tool_result.tool_use_id: Field required"(HTTP 400)。
2574
+ ...toolCallId ? { id: toolCallId } : {}
2575
+ }
2576
+ }
2567
2577
  ]);
2568
2578
  }
2569
2579
  }
@@ -2703,6 +2713,7 @@ function buildCloudCodeAssistPayload(args) {
2703
2713
  const logicalModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gemini-3.1-pro";
2704
2714
  const { wireModelId: model, profile } = resolveAntigravityWireModel(logicalModel);
2705
2715
  const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
2716
+ const isClaude = model.toLowerCase().includes("claude");
2706
2717
  const { contents, systemTexts } = convertOpenAiMessagesToGemini(rawMessages, {
2707
2718
  attachSkipThoughtSignature: isGemini3Model(model)
2708
2719
  });
@@ -2741,7 +2752,6 @@ function buildCloudCodeAssistPayload(args) {
2741
2752
  const trajectoryId = randomUUID();
2742
2753
  const step = 2;
2743
2754
  const requestId = `agent/${agentId}/${Date.now()}/${trajectoryId}/${step}`;
2744
- const isClaude = model.toLowerCase().includes("claude");
2745
2755
  const labels = {
2746
2756
  trajectory_id: trajectoryId,
2747
2757
  last_step_index: String(step - 1),
@@ -2893,7 +2903,15 @@ function buildAnthropicMessagesBody(args) {
2893
2903
  const message = raw;
2894
2904
  const role = String(message.role ?? "");
2895
2905
  if (role === "system" || role === "developer") {
2896
- system.push(...toAnthropicContent(message.content));
2906
+ const stablePrefixChars = Number(message.stable_prefix_chars);
2907
+ if (typeof message.content === "string" && Number.isFinite(stablePrefixChars) && stablePrefixChars > 0 && stablePrefixChars <= message.content.length) {
2908
+ const stable = message.content.slice(0, stablePrefixChars);
2909
+ const dynamic = message.content.slice(stablePrefixChars);
2910
+ system.push({ type: "text", text: stable, cache_control: { type: "ephemeral" } });
2911
+ if (dynamic) system.push({ type: "text", text: dynamic });
2912
+ } else {
2913
+ system.push(...toAnthropicContent(message.content));
2914
+ }
2897
2915
  continue;
2898
2916
  }
2899
2917
  if (role === "tool") {
@@ -2935,11 +2953,8 @@ function buildAnthropicMessagesBody(args) {
2935
2953
  if (!hasClaudeCodeIdentity(system)) {
2936
2954
  system.unshift({ type: "text", text: CLAUDE_CODE_SYSTEM_INSTRUCTION });
2937
2955
  }
2938
- if (system.length > 0) {
2939
- const last = system[system.length - 1];
2940
- if (!isCacheControl(last.cache_control)) {
2941
- last.cache_control = { type: "ephemeral" };
2942
- }
2956
+ if (system.length > 0 && !system.some((block) => isCacheControl(block.cache_control))) {
2957
+ system[system.length - 1].cache_control = { type: "ephemeral" };
2943
2958
  }
2944
2959
  const tools = Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools.flatMap((raw) => {
2945
2960
  if (!raw || typeof raw !== "object") return [];
@@ -2996,6 +3011,8 @@ function mapAnthropicMessageToOpenAi(payload) {
2996
3011
  }
2997
3012
  const usage = payload.usage ?? {};
2998
3013
  const inputTokens = (typeof usage.input_tokens === "number" ? usage.input_tokens : 0) + (typeof usage.cache_creation_input_tokens === "number" ? usage.cache_creation_input_tokens : 0) + (typeof usage.cache_read_input_tokens === "number" ? usage.cache_read_input_tokens : 0);
3014
+ const cacheCreationInputTokens = typeof usage.cache_creation_input_tokens === "number" ? usage.cache_creation_input_tokens : 0;
3015
+ const cacheReadInputTokens = typeof usage.cache_read_input_tokens === "number" ? usage.cache_read_input_tokens : 0;
2999
3016
  const outputTokens = typeof usage.output_tokens === "number" ? usage.output_tokens : 0;
3000
3017
  const stopReason = String(payload.stop_reason ?? "");
3001
3018
  const message = { role: "assistant", content: text || null };
@@ -3011,9 +3028,16 @@ function mapAnthropicMessageToOpenAi(payload) {
3011
3028
  finish_reason: toolCalls.length > 0 || stopReason === "tool_use" ? "tool_calls" : stopReason === "max_tokens" ? "length" : "stop"
3012
3029
  }],
3013
3030
  usage: {
3031
+ // prompt_tokens/input_tokens are total input, including cache read/write.
3032
+ // Preserve Anthropic's components so normalization and billing can apply
3033
+ // the correct cache prices without double-counting them.
3014
3034
  prompt_tokens: inputTokens,
3035
+ input_tokens: inputTokens,
3015
3036
  completion_tokens: outputTokens,
3016
- total_tokens: inputTokens + outputTokens
3037
+ output_tokens: outputTokens,
3038
+ total_tokens: inputTokens + outputTokens,
3039
+ cache_creation_input_tokens: cacheCreationInputTokens,
3040
+ cache_read_input_tokens: cacheReadInputTokens
3017
3041
  }
3018
3042
  };
3019
3043
  }
@@ -9181,6 +9205,31 @@ function collectInstructions(messages, agentPrompt) {
9181
9205
  }
9182
9206
  return systemTexts.join("\n\n");
9183
9207
  }
9208
+ function collectStableInstructions(messages, fallbackPrompt) {
9209
+ const systemTexts = [];
9210
+ if (fallbackPrompt?.trim()) systemTexts.push(fallbackPrompt.trim());
9211
+ for (const raw of messages) {
9212
+ if (!raw || typeof raw !== "object") continue;
9213
+ const message = raw;
9214
+ const role = String(message.role ?? "");
9215
+ if (role !== "system" && role !== "developer") continue;
9216
+ if (typeof message.content === "string") {
9217
+ const boundary = Number(message.stable_prefix_chars);
9218
+ const text = Number.isFinite(boundary) && boundary > 0 ? message.content.slice(0, boundary) : message.content;
9219
+ if (text.trim()) systemTexts.push(text.trim());
9220
+ }
9221
+ }
9222
+ return systemTexts.join("\n\n");
9223
+ }
9224
+ function stablePromptCacheKey(parts) {
9225
+ const value = JSON.stringify(parts);
9226
+ let hash = 2166136261;
9227
+ for (let index = 0; index < value.length; index += 1) {
9228
+ hash ^= value.charCodeAt(index);
9229
+ hash = Math.imul(hash, 16777619) >>> 0;
9230
+ }
9231
+ return `nolo-codex-${hash.toString(16).padStart(8, "0")}`;
9232
+ }
9184
9233
  function buildCodexRequestBody(args, identity = createCodexRequestIdentity()) {
9185
9234
  const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
9186
9235
  const nonSystem = rawMessages.filter((m) => {
@@ -9189,6 +9238,7 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity()) {
9189
9238
  });
9190
9239
  const input = convertMessagesToResponsesInput(nonSystem);
9191
9240
  const instructions = collectInstructions(rawMessages, args.agentConfig.prompt);
9241
+ const stableInstructions = collectStableInstructions(rawMessages, args.agentConfig.prompt);
9192
9242
  const model = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gpt-5.5";
9193
9243
  const tools = toResponsesTools(
9194
9244
  Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
@@ -9198,7 +9248,9 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity()) {
9198
9248
  input,
9199
9249
  stream: true,
9200
9250
  store: false,
9201
- prompt_cache_key: identity.sessionId,
9251
+ // Keep routing stable across turns and request UUIDs. Growing input/history
9252
+ // is intentionally excluded; only stable request-prefix material belongs.
9253
+ prompt_cache_key: stablePromptCacheKey([model, stableInstructions, tools ?? []]),
9202
9254
  client_metadata: identity.clientMetadata
9203
9255
  };
9204
9256
  if (instructions) body.instructions = instructions;
@@ -10808,44 +10860,8 @@ function createCliLocalRuntimeAdapter(deps) {
10808
10860
  loopbackRequest
10809
10861
  }
10810
10862
  );
10811
- let responseProviderConfig = providerConfig2;
10812
- let firstErrorRaw;
10813
10863
  if (!res.ok) {
10814
- firstErrorRaw = await res.text().catch(() => "");
10815
- const fallbackProviderConfig = resolveLegacyDeepSeekProxyChatFallback({
10816
- providerConfig: providerConfig2,
10817
- status: res.status,
10818
- raw: firstErrorRaw
10819
- });
10820
- if (fallbackProviderConfig) {
10821
- responseProviderConfig = fallbackProviderConfig;
10822
- const fallbackRequest = buildPlatformChatCompletionRequest({
10823
- providerConfig: fallbackProviderConfig,
10824
- messages,
10825
- tools: tools2,
10826
- stream: false
10827
- });
10828
- logLocalRuntimeDiagnostic("provider.request.compatibility-fallback", {
10829
- agentKey: agentConfig.key,
10830
- provider: providerConfig2.provider,
10831
- fromEndpoint: summarizeEndpoint(providerConfig2.endpoint) ?? null,
10832
- toEndpoint: summarizeEndpoint(fallbackProviderConfig.endpoint) ?? null,
10833
- reason: "legacy-proxy-responses-schema"
10834
- });
10835
- res = await fetchWithTransientRetry(
10836
- fetchImpl,
10837
- fallbackRequest.url,
10838
- { ...fallbackRequest.init },
10839
- {
10840
- sleep: deps.sleep,
10841
- loopbackRequest
10842
- }
10843
- );
10844
- firstErrorRaw = void 0;
10845
- }
10846
- }
10847
- if (!res.ok) {
10848
- const raw2 = firstErrorRaw ?? await res.text().catch(() => "");
10864
+ const raw2 = await res.text().catch(() => "");
10849
10865
  const data2 = parsePlatformChatCompletionData(raw2);
10850
10866
  const rawPreview = raw2.length > 200 ? `${raw2.slice(0, 200)}\u2026(${raw2.length}b)` : raw2;
10851
10867
  const gatewayHeaders = [
@@ -10896,7 +10912,7 @@ function createCliLocalRuntimeAdapter(deps) {
10896
10912
  });
10897
10913
  const data = parsePlatformChatCompletionData(raw);
10898
10914
  return parsePlatformChatCompletionResponse({
10899
- providerConfig: responseProviderConfig,
10915
+ providerConfig: providerConfig2,
10900
10916
  data,
10901
10917
  trace: messages
10902
10918
  });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-J2DR42U3.js";
4
+ } from "./chunk-VAT72PDP.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-6EFJQCL6.js";
3
+ } from "./chunk-XECKIDGJ.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-W4NVOSFF.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-FJHD7FHN.js";
15
+ } from "./chunk-FMYTM25W.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-5BP2BROQ.js";
3
+ } from "./chunk-66X4VSRC.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
@@ -28,7 +28,6 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
28
28
 
29
29
  // packages/agent-runtime/platformProviderEndpoints.ts
30
30
  var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
31
- var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/v1/responses";
32
31
  var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
33
32
  deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
34
33
  // DeepSeek official API endpoint removed — all DeepSeek models now route
@@ -48,7 +47,6 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
48
47
  };
49
48
  function isOpenAiResponsesModel(args) {
50
49
  const provider = asTrimmedLowercaseString(args.provider);
51
- if (provider === "deepseek") return false;
52
50
  if (provider !== "openai") return false;
53
51
  if (args.endpointKey === "responses") return true;
54
52
  if (!args.model) return false;
@@ -59,17 +57,11 @@ function isOpenAiResponsesModel(args) {
59
57
  }
60
58
  }
61
59
  function resolvePlatformResponsesEndpoint(provider) {
62
- switch (asTrimmedLowercaseString(provider)) {
63
- case "openai":
64
- return OPENAI_RESPONSES_ENDPOINT;
65
- case "deepseek":
66
- return DEEPSEEK_RESPONSES_ENDPOINT;
67
- default:
68
- return void 0;
69
- }
60
+ return asTrimmedLowercaseString(provider) === "openai" ? OPENAI_RESPONSES_ENDPOINT : void 0;
70
61
  }
71
62
  var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
72
- "ollama-cloud": "nolo"
63
+ "ollama-cloud": "nolo",
64
+ deepseek: "nolo"
73
65
  };
74
66
  function resolvePlatformChatCompletionsEndpoint(provider) {
75
67
  const key = asTrimmedLowercaseString(provider);
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-XBOY5KZG.js";
3
+ } from "./chunk-LSHKV3S7.js";
4
4
  import "./chunk-XOIF2TNF.js";
5
5
  import "./chunk-MRC4Q34M.js";
6
6
  import "./chunk-MTU75CZ2.js";
7
7
  import "./chunk-CWMSB67P.js";
8
- import "./chunk-ZVBKL6NS.js";
8
+ import "./chunk-BHVBFI6B.js";
9
9
  import "./chunk-RPDGJO4D.js";
10
10
  import "./chunk-SOTZ6RDN.js";
11
11
  import "./chunk-Z4NR32XR.js";
12
12
  import "./chunk-M76ECQRD.js";
13
- import "./chunk-4IF3B7WC.js";
13
+ import "./chunk-OELQ67TN.js";
14
14
  import "./chunk-5MMAK75Q.js";
15
- import "./chunk-5BP2BROQ.js";
15
+ import "./chunk-66X4VSRC.js";
16
16
  import "./chunk-5CS33IBL.js";
17
17
  import "./chunk-JZPBVBIY.js";
18
18
  import "./chunk-ZHXJ6M7T.js";
@@ -20,8 +20,8 @@ import "./chunk-DFFIZ25G.js";
20
20
  import "./chunk-3ASDTTEI.js";
21
21
  import "./chunk-DWLEOOGR.js";
22
22
  import "./chunk-HNMXYYJR.js";
23
- import "./chunk-UALQTIWY.js";
24
- import "./chunk-LPWS7HMQ.js";
23
+ import "./chunk-RK5NYQEL.js";
24
+ import "./chunk-O6W2O2DA.js";
25
25
  import "./chunk-EABWT43X.js";
26
26
  import "./chunk-Y5GCAMGP.js";
27
27
  import "./chunk-KX6YBIHG.js";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  createDialogAction,
3
3
  isLocalOwnerDialogAgents
4
- } from "./chunk-CTZLNWT3.js";
4
+ } from "./chunk-SGRDLYRZ.js";
5
5
  import "./chunk-VC6OZXO5.js";
6
- import "./chunk-XBOY5KZG.js";
6
+ import "./chunk-LSHKV3S7.js";
7
7
  import "./chunk-XOIF2TNF.js";
8
8
  import "./chunk-MRC4Q34M.js";
9
9
  import "./chunk-MTU75CZ2.js";
10
10
  import "./chunk-CWMSB67P.js";
11
- import "./chunk-ZVBKL6NS.js";
11
+ import "./chunk-BHVBFI6B.js";
12
12
  import "./chunk-RPDGJO4D.js";
13
13
  import "./chunk-SOTZ6RDN.js";
14
14
  import "./chunk-Z4NR32XR.js";
15
15
  import "./chunk-M76ECQRD.js";
16
16
  import "./chunk-WZSRQNQG.js";
17
- import "./chunk-4IF3B7WC.js";
17
+ import "./chunk-OELQ67TN.js";
18
18
  import "./chunk-5MMAK75Q.js";
19
- import "./chunk-5BP2BROQ.js";
19
+ import "./chunk-66X4VSRC.js";
20
20
  import "./chunk-5CS33IBL.js";
21
21
  import "./chunk-JZPBVBIY.js";
22
22
  import "./chunk-ZHXJ6M7T.js";
@@ -24,8 +24,8 @@ import "./chunk-DFFIZ25G.js";
24
24
  import "./chunk-3ASDTTEI.js";
25
25
  import "./chunk-DWLEOOGR.js";
26
26
  import "./chunk-HNMXYYJR.js";
27
- import "./chunk-UALQTIWY.js";
28
- import "./chunk-LPWS7HMQ.js";
27
+ import "./chunk-RK5NYQEL.js";
28
+ import "./chunk-O6W2O2DA.js";
29
29
  import "./chunk-EABWT43X.js";
30
30
  import "./chunk-Y5GCAMGP.js";
31
31
  import "./chunk-KX6YBIHG.js";
@@ -18,20 +18,20 @@ import {
18
18
  addContentToSpace,
19
19
  client_default,
20
20
  selectCurrentSpaceId
21
- } from "./chunk-XBOY5KZG.js";
21
+ } from "./chunk-LSHKV3S7.js";
22
22
  import "./chunk-XOIF2TNF.js";
23
23
  import "./chunk-MRC4Q34M.js";
24
24
  import "./chunk-MTU75CZ2.js";
25
25
  import "./chunk-CWMSB67P.js";
26
- import "./chunk-ZVBKL6NS.js";
26
+ import "./chunk-BHVBFI6B.js";
27
27
  import "./chunk-RPDGJO4D.js";
28
28
  import "./chunk-SOTZ6RDN.js";
29
29
  import "./chunk-Z4NR32XR.js";
30
30
  import "./chunk-M76ECQRD.js";
31
31
  import "./chunk-WZSRQNQG.js";
32
- import "./chunk-4IF3B7WC.js";
32
+ import "./chunk-OELQ67TN.js";
33
33
  import "./chunk-5MMAK75Q.js";
34
- import "./chunk-5BP2BROQ.js";
34
+ import "./chunk-66X4VSRC.js";
35
35
  import "./chunk-5CS33IBL.js";
36
36
  import "./chunk-JZPBVBIY.js";
37
37
  import "./chunk-ZHXJ6M7T.js";
@@ -39,8 +39,8 @@ import "./chunk-DFFIZ25G.js";
39
39
  import "./chunk-3ASDTTEI.js";
40
40
  import "./chunk-DWLEOOGR.js";
41
41
  import "./chunk-HNMXYYJR.js";
42
- import "./chunk-UALQTIWY.js";
43
- import "./chunk-LPWS7HMQ.js";
42
+ import "./chunk-RK5NYQEL.js";
43
+ import "./chunk-O6W2O2DA.js";
44
44
  import "./chunk-EABWT43X.js";
45
45
  import "./chunk-Y5GCAMGP.js";
46
46
  import "./chunk-KX6YBIHG.js";
@@ -8,27 +8,27 @@ import {
8
8
  runDialogReadCommand,
9
9
  runDialogStatusCommand,
10
10
  sortDialogs
11
- } from "./chunk-ZRDWHLMQ.js";
11
+ } from "./chunk-R6ALN5F5.js";
12
12
  import "./chunk-ID4G2MAR.js";
13
- import "./chunk-AKYTMRBP.js";
14
- import "./chunk-FJHD7FHN.js";
15
- import "./chunk-QSWWWYGA.js";
13
+ import "./chunk-F6JSVFHX.js";
14
+ import "./chunk-FMYTM25W.js";
15
+ import "./chunk-WVDAUR2S.js";
16
16
  import "./chunk-VHBWHNVT.js";
17
17
  import "./chunk-KQHGZWSV.js";
18
18
  import "./chunk-MTU75CZ2.js";
19
- import "./chunk-C2BYYSAO.js";
20
- import "./chunk-KOW2R4MZ.js";
19
+ import "./chunk-AFNJWHKL.js";
20
+ import "./chunk-4N7QA72L.js";
21
21
  import "./chunk-ZNFJWEN4.js";
22
22
  import "./chunk-OIQPORYI.js";
23
- import "./chunk-ZTRZ2O5B.js";
23
+ import "./chunk-LZYEWFPK.js";
24
24
  import "./chunk-LSFAWXKC.js";
25
25
  import "./chunk-ASZ2C44S.js";
26
26
  import "./chunk-KFEVY3ST.js";
27
- import "./chunk-LJIJWXIT.js";
27
+ import "./chunk-ZVDRAEZL.js";
28
28
  import "./chunk-B4KT7RN2.js";
29
- import "./chunk-4IF3B7WC.js";
29
+ import "./chunk-OELQ67TN.js";
30
30
  import "./chunk-5MMAK75Q.js";
31
- import "./chunk-5BP2BROQ.js";
31
+ import "./chunk-66X4VSRC.js";
32
32
  import "./chunk-5CS33IBL.js";
33
33
  import "./chunk-JZPBVBIY.js";
34
34
  import "./chunk-ZHXJ6M7T.js";
@@ -39,8 +39,8 @@ import "./chunk-HNMXYYJR.js";
39
39
  import "./chunk-IDZTNRP2.js";
40
40
  import "./chunk-A7GB5UGH.js";
41
41
  import "./chunk-OLZBQWZU.js";
42
- import "./chunk-UALQTIWY.js";
43
- import "./chunk-LPWS7HMQ.js";
42
+ import "./chunk-RK5NYQEL.js";
43
+ import "./chunk-O6W2O2DA.js";
44
44
  import "./chunk-Y5GCAMGP.js";
45
45
  import "./chunk-KX6YBIHG.js";
46
46
  import "./chunk-IWLUTMYX.js";
@@ -19,19 +19,19 @@ import {
19
19
  setPrimaryDialogAgent,
20
20
  updateDialogTitle,
21
21
  updateTokens
22
- } from "./chunk-XBOY5KZG.js";
22
+ } from "./chunk-LSHKV3S7.js";
23
23
  import "./chunk-XOIF2TNF.js";
24
24
  import "./chunk-MRC4Q34M.js";
25
25
  import "./chunk-MTU75CZ2.js";
26
26
  import "./chunk-CWMSB67P.js";
27
- import "./chunk-ZVBKL6NS.js";
27
+ import "./chunk-BHVBFI6B.js";
28
28
  import "./chunk-RPDGJO4D.js";
29
29
  import "./chunk-SOTZ6RDN.js";
30
30
  import "./chunk-Z4NR32XR.js";
31
31
  import "./chunk-M76ECQRD.js";
32
- import "./chunk-4IF3B7WC.js";
32
+ import "./chunk-OELQ67TN.js";
33
33
  import "./chunk-5MMAK75Q.js";
34
- import "./chunk-5BP2BROQ.js";
34
+ import "./chunk-66X4VSRC.js";
35
35
  import "./chunk-5CS33IBL.js";
36
36
  import "./chunk-JZPBVBIY.js";
37
37
  import "./chunk-ZHXJ6M7T.js";
@@ -70,8 +70,8 @@ import {
70
70
  } from "./chunk-3ASDTTEI.js";
71
71
  import "./chunk-DWLEOOGR.js";
72
72
  import "./chunk-HNMXYYJR.js";
73
- import "./chunk-UALQTIWY.js";
74
- import "./chunk-LPWS7HMQ.js";
73
+ import "./chunk-RK5NYQEL.js";
74
+ import "./chunk-O6W2O2DA.js";
75
75
  import "./chunk-EABWT43X.js";
76
76
  import "./chunk-Y5GCAMGP.js";
77
77
  import "./chunk-KX6YBIHG.js";
@@ -21,26 +21,26 @@ import {
21
21
  resolveDocKind,
22
22
  resolveWriteTargets,
23
23
  writePageRecord
24
- } from "./chunk-2B3BNWPC.js";
25
- import "./chunk-FJHD7FHN.js";
26
- import "./chunk-QSWWWYGA.js";
24
+ } from "./chunk-5Y5KEB7V.js";
25
+ import "./chunk-FMYTM25W.js";
26
+ import "./chunk-WVDAUR2S.js";
27
27
  import "./chunk-VHBWHNVT.js";
28
28
  import "./chunk-VF4K2QE6.js";
29
29
  import "./chunk-VC6OZXO5.js";
30
30
  import "./chunk-WZSRQNQG.js";
31
- import "./chunk-C2BYYSAO.js";
32
- import "./chunk-KOW2R4MZ.js";
31
+ import "./chunk-AFNJWHKL.js";
32
+ import "./chunk-4N7QA72L.js";
33
33
  import "./chunk-ZNFJWEN4.js";
34
34
  import "./chunk-OIQPORYI.js";
35
- import "./chunk-ZTRZ2O5B.js";
35
+ import "./chunk-LZYEWFPK.js";
36
36
  import "./chunk-LSFAWXKC.js";
37
37
  import "./chunk-ASZ2C44S.js";
38
38
  import "./chunk-KFEVY3ST.js";
39
- import "./chunk-LJIJWXIT.js";
39
+ import "./chunk-ZVDRAEZL.js";
40
40
  import "./chunk-B4KT7RN2.js";
41
- import "./chunk-4IF3B7WC.js";
41
+ import "./chunk-OELQ67TN.js";
42
42
  import "./chunk-5MMAK75Q.js";
43
- import "./chunk-5BP2BROQ.js";
43
+ import "./chunk-66X4VSRC.js";
44
44
  import "./chunk-5CS33IBL.js";
45
45
  import "./chunk-JZPBVBIY.js";
46
46
  import "./chunk-ZHXJ6M7T.js";
@@ -53,8 +53,8 @@ import {
53
53
  readOption
54
54
  } from "./chunk-A7GB5UGH.js";
55
55
  import "./chunk-OLZBQWZU.js";
56
- import "./chunk-UALQTIWY.js";
57
- import "./chunk-LPWS7HMQ.js";
56
+ import "./chunk-RK5NYQEL.js";
57
+ import "./chunk-O6W2O2DA.js";
58
58
  import "./chunk-KX6YBIHG.js";
59
59
  import "./chunk-IWLUTMYX.js";
60
60
  import "./chunk-3S2VOMIF.js";