nolo-cli 0.97.0-alpha.1 → 0.97.0-alpha.2

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 (58) hide show
  1. package/{_executeModel-JIG7MRXQ.js → _executeModel-G2MRKK2K.js} +13 -13
  2. package/{agentDeleteCommand-THAZ5GQS.js → agentDeleteCommand-4427YKQF.js} +6 -6
  3. package/{agentEmailCommands-A7T7AJA4.js → agentEmailCommands-RNBKKO7Q.js} +15 -15
  4. package/{agentListCommands-BRZFEJQM.js → agentListCommands-O4AEMQVV.js} +6 -6
  5. package/{agentMachineCommands-DM4N5PK3.js → agentMachineCommands-FOFX5S2Q.js} +7 -7
  6. package/{agentRecordCommands-TTAEMNHB.js → agentRecordCommands-6QK7AMXQ.js} +15 -15
  7. package/{agentRunCommand-JVSTGVG2.js → agentRunCommand-2W3Q3A7M.js} +15 -15
  8. package/{agentRuntimeLocal-73CVIWBB.js → agentRuntimeLocal-IW3IM5P6.js} +6 -6
  9. package/{agentSlice-6X4JL2E3.js → agentSlice-SK47GTN7.js} +1 -1
  10. package/{appDeleteCommands-S7CK4OYL.js → appDeleteCommands-ZXLXNRHF.js} +6 -6
  11. package/{appDeployCommands-U6TMS5GO.js → appDeployCommands-PWB4YERK.js} +6 -6
  12. package/{appDeployStatusCommands-DTNQJ3LJ.js → appDeployStatusCommands-2EZKZP7Y.js} +6 -6
  13. package/{appGetCommands-3SHZEQD5.js → appGetCommands-JNUKOWHO.js} +6 -6
  14. package/{appListCommands-E2ZMIUB6.js → appListCommands-6X3H67SS.js} +6 -6
  15. package/{chatQueueReduxAdapter-LAQEZQKE.js → chatQueueReduxAdapter-ZJ555AT2.js} +4 -4
  16. package/{chunk-OF7AQZUG.js → chunk-2YMRWISD.js} +1 -1
  17. package/{chunk-LXF6XQDT.js → chunk-3SK4LEIH.js} +25 -11
  18. package/{chunk-3IIEFNGY.js → chunk-4EZHSKTB.js} +1 -1
  19. package/{chunk-R2B3MIZA.js → chunk-7D6Z6AA4.js} +2 -2
  20. package/{chunk-7OLPQSMQ.js → chunk-ADTY7BWR.js} +1 -1
  21. package/{chunk-WADCY6G6.js → chunk-ASQYTZTR.js} +43 -6
  22. package/{chunk-HWIZU4OL.js → chunk-B4ZH7KVO.js} +1 -1
  23. package/{chunk-54ADB4W7.js → chunk-EHKBVWKL.js} +1 -1
  24. package/{chunk-LZIWMYX4.js → chunk-L7I247DF.js} +1 -1
  25. package/{chunk-JAXOVNM4.js → chunk-NEDZDG3M.js} +1 -1
  26. package/{chunk-YVIV7WT4.js → chunk-NUVMWYJM.js} +13 -9
  27. package/{chunk-6FVRQBRR.js → chunk-O35EJJVP.js} +4 -4
  28. package/{chunk-JCIHVIVG.js → chunk-OIMN34NA.js} +6 -6
  29. package/{chunk-3WD6RUUJ.js → chunk-OZPMVBJI.js} +2 -2
  30. package/{chunk-Y5HW6GM2.js → chunk-QLNJRTKI.js} +2 -2
  31. package/{chunk-ESWUWEFS.js → chunk-R7N5TMTV.js} +3 -3
  32. package/{chunk-SQQVLHMH.js → chunk-RSJECD7I.js} +3 -3
  33. package/{chunk-ZWUOR654.js → chunk-SDTTBMBU.js} +105 -36
  34. package/{chunk-K4YGZD3P.js → chunk-WRFW73PB.js} +10 -10
  35. package/{chunk-TZJJ77KQ.js → chunk-X4QAVDFE.js} +9 -9
  36. package/{contentThunks-ATLWNC2D.js → contentThunks-YLWTUILV.js} +5 -5
  37. package/{createAgentAutomationAction-QYYWTVUR.js → createAgentAutomationAction-HFLPOBWQ.js} +5 -5
  38. package/{createDialogAction-7I5VGWCR.js → createDialogAction-4H52MURR.js} +6 -6
  39. package/{createPageAction-WNURYCWU.js → createPageAction-5YDRMJOS.js} +5 -5
  40. package/{dialogCommands-RILHDRQ5.js → dialogCommands-KFK2FF5B.js} +6 -6
  41. package/{dialogSlice-W5BYELVR.js → dialogSlice-TMSHUGEM.js} +4 -4
  42. package/{docCreateCommands-GSTPU7SG.js → docCreateCommands-V777WOZ7.js} +6 -6
  43. package/{docDeleteCommands-2FC3LSUT.js → docDeleteCommands-5KHT7Z5Q.js} +6 -6
  44. package/{docReadCommands-27POBA34.js → docReadCommands-BLROGWP3.js} +6 -6
  45. package/{docStore-7LAHBFP2.js → docStore-OBC5QOW7.js} +1 -1
  46. package/{docUpdateCommands-U4II6VCO.js → docUpdateCommands-QXOZHQ5H.js} +6 -6
  47. package/{handleSendMessageAction-SKMJMVRU.js → handleSendMessageAction-4LGNXH6T.js} +4 -4
  48. package/index.js +42 -42
  49. package/{machineCommands-S2RNYKVJ.js → machineCommands-SNLCRHQK.js} +15 -15
  50. package/{machineWsRunDispatch-JC44LBLP.js → machineWsRunDispatch-ZGZVDQSO.js} +15 -15
  51. package/package.json +1 -1
  52. package/{readlineWorkspace-VZSBXUH4.js → readlineWorkspace-OUL7ZN7D.js} +18 -15
  53. package/{runAgentClientLoop-ZYENU7GH.js → runAgentClientLoop-GD3APV7V.js} +11 -11
  54. package/{spaceCommands-QB3NNEMN.js → spaceCommands-TIDVUPDV.js} +6 -6
  55. package/{streamAgentChatTurn-43GPPQSN.js → streamAgentChatTurn-M73KWCCU.js} +13 -13
  56. package/{tools-SX6Y4STZ.js → tools-DXXDQ2CP.js} +8 -8
  57. package/{tuiSummaryLlmCaller-T2SHYMDZ.js → tuiSummaryLlmCaller-VJY3YD2Q.js} +2 -2
  58. package/{updateDialogTitleAction-VAKA4ZNY.js → updateDialogTitleAction-XI73NQMU.js} +5 -5
@@ -27,7 +27,7 @@ import {
27
27
  resolveLocalUserId,
28
28
  t,
29
29
  toolLabel
30
- } from "./chunk-YVIV7WT4.js";
30
+ } from "./chunk-NUVMWYJM.js";
31
31
  import {
32
32
  createRunActivityTracker,
33
33
  popSingleQueueMessage,
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-LTRXGFMS.js";
65
65
  import {
66
66
  formatAgentListCard
67
- } from "./chunk-TZJJ77KQ.js";
67
+ } from "./chunk-X4QAVDFE.js";
68
68
  import {
69
69
  isTransientFetchError
70
70
  } from "./chunk-5UTFL4QJ.js";
@@ -85,11 +85,11 @@ import {
85
85
  chooseMemoryOwners,
86
86
  loadMemoryCandidatesFromDb,
87
87
  resolveAgentMemoryPolicy
88
- } from "./chunk-3WD6RUUJ.js";
88
+ } from "./chunk-OZPMVBJI.js";
89
89
  import {
90
90
  API_REPORTED_COST_MULTIPLIER,
91
91
  parseUiAskChoiceContent
92
- } from "./chunk-K4YGZD3P.js";
92
+ } from "./chunk-WRFW73PB.js";
93
93
  import {
94
94
  isOAuthApiKeyRef
95
95
  } from "./chunk-YYLHWIW6.js";
@@ -112,10 +112,10 @@ import {
112
112
  LOCAL_AGENT_CONFIG_MISSING_CODE,
113
113
  LOCAL_TURN_ABORTED_CODE,
114
114
  readActionGate
115
- } from "./chunk-ZWUOR654.js";
115
+ } from "./chunk-SDTTBMBU.js";
116
116
  import {
117
117
  resolveAgentRuntimeConfigFromRecord
118
- } from "./chunk-3IIEFNGY.js";
118
+ } from "./chunk-4EZHSKTB.js";
119
119
  import {
120
120
  createThinkParserState,
121
121
  flushThinkParser,
@@ -138,10 +138,10 @@ import {
138
138
  DEFAULT_CONTEXT_WINDOW,
139
139
  getModelContextWindow,
140
140
  normalizeUsage
141
- } from "./chunk-JAXOVNM4.js";
141
+ } from "./chunk-NEDZDG3M.js";
142
142
  import {
143
143
  clipCompactText
144
- } from "./chunk-WADCY6G6.js";
144
+ } from "./chunk-ASQYTZTR.js";
145
145
  import {
146
146
  findModelConfig
147
147
  } from "./chunk-OIVSQH2O.js";
@@ -9821,6 +9821,14 @@ function formatCompactionSummaryLine(event) {
9821
9821
  return `${STYLE.dim}\u81EA\u52A8\u4E0A\u4E0B\u6587\u538B\u7F29\u5931\u8D25${reason}\uFF0C\u672C\u8F6E\u4EE5\u672A\u538B\u7F29\u4E0A\u4E0B\u6587\u7EE7\u7EED\u3002\u82E5\u53CD\u590D\u51FA\u73B0\u53EF\u624B\u52A8 /compact\u3002${STYLE.reset}
9822
9822
  `;
9823
9823
  }
9824
+ if (event.skipped) {
9825
+ if (event.skipReason === "adapter-missing-summary-methods" || event.skipReason === "load-summary-failed") {
9826
+ return `${STYLE.dim}\u81EA\u52A8\u4E0A\u4E0B\u6587\u538B\u7F29\u4E0D\u53EF\u7528\uFF08${event.skipReason}\uFF09\uFF0C\u672C\u8F6E\u4E0D\u538B\u7F29\u3002${STYLE.reset}
9827
+ `;
9828
+ }
9829
+ return "";
9830
+ }
9831
+ if (!event.summaryGenerated) return "";
9824
9832
  let detail = "\u751F\u6210\u5386\u53F2\u6458\u8981";
9825
9833
  const saved = typeof event.savedTokens === "number" ? event.savedTokens : void 0;
9826
9834
  let line = `\u5DF2\u538B\u7F29\u4E0A\u4E0B\u6587\uFF1A${detail}`;
@@ -9990,9 +9998,15 @@ ${options.agentName}${IDENTITY_LABEL_SEPARATOR}`);
9990
9998
  markThinkingDelta(chunk);
9991
9999
  },
9992
10000
  handleToolEvent,
9993
- /** 记录一条 compaction 观测事件(TUI 在 turn 结束时渲染一行 dim 摘要)。 */
10001
+ /** 记录一条 compaction 观测事件(TUI 在 turn 结束时渲染一行 dim 摘要)。
10002
+ * 一轮内可能来多条(轮开始 + 每个 round),按显著性保留最高者:
10003
+ * 失败 > 新生成摘要 > 投影复用 > 跳过,避免末尾的例行跳过事件
10004
+ * 覆盖掉中途真正发生的压缩。 */
9994
10005
  recordCompaction(event) {
9995
- compactionEvent = event;
10006
+ const significance = (e) => e.failed ? 4 : e.summaryGenerated ? 3 : e.compressed ? 2 : 1;
10007
+ if (!compactionEvent || significance(event) >= significance(compactionEvent)) {
10008
+ compactionEvent = event;
10009
+ }
9996
10010
  },
9997
10011
  showWorking(label) {
9998
10012
  const activeLabel = label ?? workingLabel;
@@ -10419,7 +10433,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
10419
10433
  // packages/cli/client/agentRun.ts
10420
10434
  import { ulid as ulid2 } from "ulid";
10421
10435
  async function loadRunLocalAgentTurn() {
10422
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-73CVIWBB.js");
10436
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-IW3IM5P6.js");
10423
10437
  return runLocalAgentTurn;
10424
10438
  }
10425
10439
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-JAXOVNM4.js";
6
+ } from "./chunk-NEDZDG3M.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
@@ -326,7 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
326
326
  ).unwrap();
327
327
  if (dbSpaceId) {
328
328
  try {
329
- const { updateContentTitle } = await import("./contentThunks-ATLWNC2D.js");
329
+ const { updateContentTitle } = await import("./contentThunks-YLWTUILV.js");
330
330
  await dispatch(
331
331
  updateContentTitle({
332
332
  spaceId: dbSpaceId,
@@ -365,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
365
365
  }
366
366
  }
367
367
  async function createDocState(args, thunkApi) {
368
- const { createPageAction } = await import("./createPageAction-WNURYCWU.js");
368
+ const { createPageAction } = await import("./createPageAction-5YDRMJOS.js");
369
369
  return createPageAction(args, thunkApi);
370
370
  }
371
371
  function subscribe(listener) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-YVIV7WT4.js";
3
+ } from "./chunk-NUVMWYJM.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-LS2ZANRJ.js";
@@ -409,13 +409,14 @@ var normalizeContextUsageRatio = (value) => {
409
409
  const ratio = value > 1 ? value / 100 : value;
410
410
  return ratio >= 0 && ratio <= 1 ? ratio : void 0;
411
411
  };
412
- var emptyPlan = (startIndex) => ({
412
+ var emptyPlan = (startIndex, diagnostics) => ({
413
413
  shouldCompress: false,
414
414
  compressCount: 0,
415
415
  msgsToCompress: [],
416
416
  msgsToKeep: [],
417
417
  newSummarizedBeforeId: void 0,
418
- startIndex
418
+ startIndex,
419
+ ...diagnostics ? { diagnostics } : {}
419
420
  });
420
421
  function findPendingMessages(allMsgs, summarizedBeforeId) {
421
422
  let startIndex = 0;
@@ -489,7 +490,20 @@ function planCompression(input) {
489
490
  coldResume
490
491
  } = input;
491
492
  const { pendingMsgs, startIndex } = findPendingMessages(allMsgs, summarizedBeforeId);
492
- if (pendingMsgs.length === 0) return emptyPlan(startIndex);
493
+ if (pendingMsgs.length === 0) {
494
+ return emptyPlan(startIndex, {
495
+ pendingMsgCount: 0,
496
+ totalUsed: estimateTokenCount(summary || ""),
497
+ historyBudget: 0,
498
+ triggerRatio: resolveCompressionTriggerRatio(contextWindow),
499
+ realUsageRatio: normalizeContextUsageRatio(realContextUsagePercent),
500
+ triggeredByRealUsage: false,
501
+ triggeredByEstimate: false,
502
+ triggeredByColdResume: false,
503
+ shouldRunActiveSummary: false,
504
+ emptyReason: "no-pending"
505
+ });
506
+ }
493
507
  const summaryTokens = estimateTokenCount(summary || "");
494
508
  const pendingTokens = pendingMsgs.reduce((sum, msg) => sum + getMessageTokenCount(msg), 0);
495
509
  const totalUsed = summaryTokens + pendingTokens;
@@ -517,14 +531,36 @@ function planCompression(input) {
517
531
  coldResume,
518
532
  lastMsg: pendingMsgs[pendingMsgs.length - 1]
519
533
  });
520
- if (!trigger) return emptyPlan(startIndex);
534
+ const diagnostics = {
535
+ pendingMsgCount: pendingMsgs.length,
536
+ totalUsed,
537
+ historyBudget,
538
+ triggerRatio,
539
+ realUsageRatio: normalizeContextUsageRatio(realContextUsagePercent),
540
+ triggeredByRealUsage,
541
+ triggeredByEstimate: normalizeContextUsageRatio(realContextUsagePercent) === void 0 && totalUsed >= historyBudget,
542
+ triggeredByColdResume,
543
+ shouldRunActiveSummary
544
+ };
545
+ if (!trigger) {
546
+ return emptyPlan(startIndex, {
547
+ ...diagnostics,
548
+ emptyReason: "not-triggered"
549
+ });
550
+ }
521
551
  let compressCount = calculateCompressCount(pendingMsgs, rawMessageBudget, {
522
552
  keepTailCount: shouldRunActiveSummary || triggeredByRealUsage || triggeredByColdResume,
523
553
  totalUsed,
524
554
  historyBudget
525
555
  });
526
556
  compressCount = guardToolChainBoundary(pendingMsgs, compressCount);
527
- if (compressCount < MIN_COMPRESS_COUNT) return emptyPlan(startIndex);
557
+ if (compressCount < MIN_COMPRESS_COUNT) {
558
+ return emptyPlan(startIndex, {
559
+ ...diagnostics,
560
+ compressCount,
561
+ emptyReason: "below-min-compress-count"
562
+ });
563
+ }
528
564
  const msgsToCompress = pendingMsgs.slice(0, compressCount);
529
565
  const msgsToKeep = pendingMsgs.slice(compressCount);
530
566
  const newSummarizedBeforeId = msgsToCompress[msgsToCompress.length - 1].id;
@@ -534,7 +570,8 @@ function planCompression(input) {
534
570
  msgsToCompress,
535
571
  msgsToKeep,
536
572
  newSummarizedBeforeId,
537
- startIndex
573
+ startIndex,
574
+ diagnostics: { ...diagnostics, compressCount }
538
575
  };
539
576
  }
540
577
 
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-K4YGZD3P.js";
12
+ } from "./chunk-WRFW73PB.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-6FVRQBRR.js";
4
+ } from "./chunk-O35EJJVP.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-IIVGDG4I.js";
8
8
  import {
9
9
  getModelContextWindow
10
- } from "./chunk-JAXOVNM4.js";
10
+ } from "./chunk-NEDZDG3M.js";
11
11
  import {
12
12
  estimateTokenCount
13
13
  } from "./chunk-PSCNXBYA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTimingMs
3
- } from "./chunk-WADCY6G6.js";
3
+ } from "./chunk-ASQYTZTR.js";
4
4
  import {
5
5
  MODEL_LOOKUP_MAP
6
6
  } from "./chunk-OIVSQH2O.js";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  inlineImageUrlsForCustomProvider,
63
63
  prepareTools
64
- } from "./chunk-Y5HW6GM2.js";
64
+ } from "./chunk-QLNJRTKI.js";
65
65
  import {
66
66
  getServerProviderSecret
67
67
  } from "./chunk-HS7MLR74.js";
@@ -80,7 +80,7 @@ import {
80
80
  rememberMemoryFunctionSchema,
81
81
  resolveAgentRequiredPackIds,
82
82
  setTodoListFunc
83
- } from "./chunk-TZJJ77KQ.js";
83
+ } from "./chunk-X4QAVDFE.js";
84
84
  import {
85
85
  fetchWithTransientRetry,
86
86
  isTransientFetchError
@@ -109,14 +109,14 @@ import {
109
109
  prepareTokenUsageData,
110
110
  resolveBuiltinPlatformAgentConfig,
111
111
  runKeyed
112
- } from "./chunk-K4YGZD3P.js";
112
+ } from "./chunk-WRFW73PB.js";
113
113
  import {
114
114
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
115
115
  BUILTIN_TITLE_LLM_CONFIG
116
116
  } from "./chunk-MC4XLIJ7.js";
117
117
  import {
118
118
  fetchServerSyncedCredential
119
- } from "./chunk-SQQVLHMH.js";
119
+ } from "./chunk-RSJECD7I.js";
120
120
  import {
121
121
  require_date_fns
122
122
  } from "./chunk-M76ECQRD.js";
@@ -170,7 +170,7 @@ import {
170
170
  resolveOpenAiCompatibleProviderConfig,
171
171
  shouldUseGeminiNativeToolRoute,
172
172
  summarizeToolArguments
173
- } from "./chunk-ZWUOR654.js";
173
+ } from "./chunk-SDTTBMBU.js";
174
174
  import {
175
175
  PlatformStreamInterruptedError,
176
176
  buildPlatformChatCompletionRequest,
@@ -182,11 +182,11 @@ import {
182
182
  readSseDataValues,
183
183
  resolvePlatformChatProviderConfig,
184
184
  shouldUsePlatformChatProvider
185
- } from "./chunk-OF7AQZUG.js";
185
+ } from "./chunk-2YMRWISD.js";
186
186
  import {
187
187
  resolveAgentRuntimeConfigFromRecord,
188
188
  resolveHistoricalToolContentCap
189
- } from "./chunk-3IIEFNGY.js";
189
+ } from "./chunk-4EZHSKTB.js";
190
190
  import {
191
191
  isDevinOAuthAgent
192
192
  } from "./chunk-5ZUL4CUO.js";
@@ -218,14 +218,14 @@ import {
218
218
  } from "./chunk-2MBTWINN.js";
219
219
  import {
220
220
  normalizeUsage
221
- } from "./chunk-JAXOVNM4.js";
221
+ } from "./chunk-NEDZDG3M.js";
222
222
  import {
223
223
  clipCompactText,
224
224
  createProviderCallTimingTracker,
225
225
  finalizeProviderCallTiming,
226
226
  observeMeaningfulProviderResponseAt,
227
227
  withProviderCallTimingFields
228
- } from "./chunk-WADCY6G6.js";
228
+ } from "./chunk-ASQYTZTR.js";
229
229
  import {
230
230
  estimateTokenCount
231
231
  } from "./chunk-PSCNXBYA.js";
@@ -11039,6 +11039,7 @@ function waitForRunTerminal(args) {
11039
11039
  };
11040
11040
  const loop = Effect_exports.gen(function* () {
11041
11041
  token = args.claim?.acquire() ?? null;
11042
+ const deadline = Date.now() + args.timeoutMs;
11042
11043
  while (true) {
11043
11044
  const state = yield* readEffect(args.read);
11044
11045
  lastState = state;
@@ -11049,6 +11050,9 @@ function waitForRunTerminal(args) {
11049
11050
  }
11050
11051
  return { kind: "terminal", state };
11051
11052
  }
11053
+ if (Date.now() >= deadline) {
11054
+ return { kind: "timeout", waitedMs: args.timeoutMs, lastState };
11055
+ }
11052
11056
  const slept = yield* sleep(args.pollIntervalMs);
11053
11057
  if (slept === "aborted") return { kind: "aborted" };
11054
11058
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-TZJJ77KQ.js";
10
+ } from "./chunk-X4QAVDFE.js";
11
11
  import {
12
12
  isGatewayHttpStatus
13
13
  } from "./chunk-NF64D32W.js";
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-MEYIRKDN.js";
29
29
  import {
30
30
  fetchAndCacheMessages
31
- } from "./chunk-K4YGZD3P.js";
31
+ } from "./chunk-WRFW73PB.js";
32
32
  import {
33
33
  shouldUseServerProxy
34
34
  } from "./chunk-YYLHWIW6.js";
35
35
  import {
36
36
  fetchServerSyncedCredential
37
- } from "./chunk-SQQVLHMH.js";
37
+ } from "./chunk-RSJECD7I.js";
38
38
  import {
39
39
  buildSkillGuidancePromptBlock,
40
40
  extractRuntimePageCapabilities,
@@ -48,7 +48,7 @@ import {
48
48
  detectDispatchIntentFromMessages,
49
49
  normalizeChatCompletionsBodyForProvider,
50
50
  resolveToolGuidedSections
51
- } from "./chunk-LZIWMYX4.js";
51
+ } from "./chunk-L7I247DF.js";
52
52
  import {
53
53
  convertMessagesToResponsesInput,
54
54
  getUsageRequestOptions,
@@ -5,14 +5,14 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-Y5HW6GM2.js";
8
+ } from "./chunk-QLNJRTKI.js";
9
9
  import {
10
10
  INVALID_TOOL_ARGS_REPLACEMENT,
11
11
  buildInvalidToolCallSelfHealResult,
12
12
  parseToolCallArguments,
13
13
  performFetchRequest,
14
14
  sanitizeOutboundMessages
15
- } from "./chunk-6FVRQBRR.js";
15
+ } from "./chunk-O35EJJVP.js";
16
16
  import {
17
17
  createSSEParser,
18
18
  createToolRunId,
@@ -23,7 +23,7 @@ import {
23
23
  toolRunSetPending,
24
24
  toolRunStarted,
25
25
  toolRunSucceeded
26
- } from "./chunk-TZJJ77KQ.js";
26
+ } from "./chunk-X4QAVDFE.js";
27
27
  import {
28
28
  getPublicImageAgentMode
29
29
  } from "./chunk-VIDPVFP3.js";
@@ -35,10 +35,10 @@ import {
35
35
  messageStreamEnd,
36
36
  messageStreaming,
37
37
  updateToolMessage
38
- } from "./chunk-K4YGZD3P.js";
38
+ } from "./chunk-WRFW73PB.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-SQQVLHMH.js";
41
+ } from "./chunk-RSJECD7I.js";
42
42
  import {
43
43
  addActiveController,
44
44
  removeActiveController,
@@ -56,7 +56,7 @@ import {
56
56
  import {
57
57
  EMPTY_ASSISTANT_REPAIR_PROMPT,
58
58
  getModelInfo
59
- } from "./chunk-JAXOVNM4.js";
59
+ } from "./chunk-NEDZDG3M.js";
60
60
  import {
61
61
  getApiEndpoint
62
62
  } from "./chunk-OIVSQH2O.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-HWIZU4OL.js";
3
+ } from "./chunk-B4ZH7KVO.js";
4
4
  import {
5
5
  prepareAndPersistMessage,
6
6
  uiAskChoiceFunc,
7
7
  uiAskChoiceFunctionSchema
8
- } from "./chunk-K4YGZD3P.js";
8
+ } from "./chunk-WRFW73PB.js";
9
9
  import {
10
10
  require_date_fns
11
11
  } from "./chunk-M76ECQRD.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-TZJJ77KQ.js";
3
+ } from "./chunk-X4QAVDFE.js";
4
4
  import {
5
5
  i18n_default
6
- } from "./chunk-K4YGZD3P.js";
6
+ } from "./chunk-WRFW73PB.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-O6OSWFZQ.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-YVIV7WT4.js";
4
+ } from "./chunk-NUVMWYJM.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-TZJJ77KQ.js";
7
+ } from "./chunk-X4QAVDFE.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-ZWUOR654.js";
10
+ } from "./chunk-SDTTBMBU.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-IIVGDG4I.js";
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
304
304
  const overrides = {};
305
305
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
306
306
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
307
- const { _executeModel } = await import("./_executeModel-JIG7MRXQ.js");
307
+ const { _executeModel } = await import("./_executeModel-G2MRKK2K.js");
308
308
  return _executeModel(
309
309
  {
310
310
  isStreaming: args.isStreaming ?? false,
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
325
325
  * - 循环直到无工具调用或触发其他运行时停止条件
326
326
  */
327
327
  runAgent: create.asyncThunk(async (args, thunkApi) => {
328
- const { runAgentClientLoop } = await import("./runAgentClientLoop-ZYENU7GH.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-GD3APV7V.js");
329
329
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
330
330
  {
331
331
  agentKey: args.agentKey,
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
341
341
  * 聊天轮次流式 Agent 调用
342
342
  */
343
343
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
344
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-43GPPQSN.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-M73KWCCU.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**