nolo-cli 0.17.0 → 0.19.0

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 (79) hide show
  1. package/{_executeModel-WPNX5DH4.js → _executeModel-X5PCIZN6.js} +19 -19
  2. package/{agentDeleteCommand-L3357EFL.js → agentDeleteCommand-2BZDQV36.js} +12 -12
  3. package/{agentEmailCommands-N65AVLEI.js → agentEmailCommands-2QJDGRMB.js} +25 -25
  4. package/{agentListCommands-CH27FTI2.js → agentListCommands-6VEPTKBI.js} +14 -14
  5. package/{agentMachineCommands-PPK5HJZB.js → agentMachineCommands-NVVHNWYI.js} +12 -12
  6. package/{agentRecordCommands-HTVXD4TT.js → agentRecordCommands-4GGRDMD4.js} +24 -24
  7. package/{agentRunCommand-MGLVJUA5.js → agentRunCommand-XOLQNKBZ.js} +24 -24
  8. package/{agentRunControl-P75VPTGS.js → agentRunControl-Y5AFH5PQ.js} +2 -2
  9. package/{agentRuntimeLocal-QUTBSY3I.js → agentRuntimeLocal-7WYWCGL4.js} +9 -9
  10. package/{agentSlice-DOGRCMWK.js → agentSlice-EAXPGEYV.js} +1 -1
  11. package/{appDeleteCommands-FEEVXUBG.js → appDeleteCommands-77KR2RJ4.js} +13 -13
  12. package/{appDeployCommands-C4HCGC4B.js → appDeployCommands-K7CAHGBI.js} +13 -13
  13. package/{appDeployStatusCommands-IR5ZUZBQ.js → appDeployStatusCommands-4OEKLTBT.js} +13 -13
  14. package/{appGetCommands-6RJGZ66Z.js → appGetCommands-VM2WDLAZ.js} +13 -13
  15. package/{appListCommands-VMTF5YZF.js → appListCommands-GX6BBA6U.js} +13 -13
  16. package/{authCommand-WJZPOLSS.js → authCommand-DY6UUL6O.js} +6 -6
  17. package/{chunk-UZY4BEBR.js → chunk-23FZYPLC.js} +43 -14
  18. package/{chunk-IOOMJJ4Z.js → chunk-34WPV75U.js} +21 -0
  19. package/{chunk-JP7REMYP.js → chunk-3ZX7PERL.js} +1 -1
  20. package/{chunk-HV2A3B4W.js → chunk-AHCY2S2I.js} +1 -1
  21. package/{chunk-BT6K76S7.js → chunk-BV4VEE3W.js} +41 -15
  22. package/{chunk-PZCBZO4J.js → chunk-CZ6NYQTV.js} +12 -3
  23. package/{chunk-FVIPEIVX.js → chunk-DFCFMCY6.js} +1 -1
  24. package/{chunk-NEKFSXOP.js → chunk-EDV7EBOI.js} +22 -20
  25. package/{chunk-FKXFCYVO.js → chunk-FQZZLA3C.js} +2 -0
  26. package/{chunk-L6NVTGI7.js → chunk-FXUSIQC2.js} +1 -1
  27. package/{chunk-VDNQF5VI.js → chunk-G5U6LDLG.js} +2 -2
  28. package/{chunk-ZVOZH2HW.js → chunk-HEGV7BH3.js} +1 -1
  29. package/{chunk-RRGVDPH3.js → chunk-HWW2M4SN.js} +3 -3
  30. package/{chunk-EGPCU42M.js → chunk-I2ZJKTG5.js} +2 -2
  31. package/{chunk-NYUXSXLY.js → chunk-IYEXFJPC.js} +2 -2
  32. package/{chunk-FPKLD4KB.js → chunk-L4F3I4SR.js} +1 -1
  33. package/{chunk-RK5NYQEL.js → chunk-LLWKHDG4.js} +1 -1
  34. package/{chunk-MUCU6ATG.js → chunk-MHSGJW4Z.js} +1 -1
  35. package/{chunk-O6W2O2DA.js → chunk-MKA6QE5E.js} +6 -2
  36. package/{chunk-YXTRNO5W.js → chunk-MPVYDS7I.js} +3 -3
  37. package/{chunk-AAODAAUQ.js → chunk-N54HIJVJ.js} +1 -1
  38. package/{chunk-UB4RYYNQ.js → chunk-OK6YSWLH.js} +1 -1
  39. package/{chunk-VGMJ6PDJ.js → chunk-PIZYJVHQ.js} +2 -2
  40. package/{chunk-D3HVJJIA.js → chunk-PJSV3IZ5.js} +1 -1
  41. package/{chunk-YLRTBX4Y.js → chunk-R35XMF6F.js} +25 -9
  42. package/{chunk-MD3V54DA.js → chunk-REA4JLBH.js} +3 -3
  43. package/{chunk-CEFXYF66.js → chunk-RQN4SEKL.js} +1 -1
  44. package/{chunk-NVB267BZ.js → chunk-SCTYAHYK.js} +87 -15
  45. package/{chunk-45BY7RLP.js → chunk-SWDPIPOY.js} +1 -1
  46. package/{chunk-HQPG2PIV.js → chunk-UAIVG4J6.js} +1 -1
  47. package/{chunk-SNZV4QCE.js → chunk-UBHAWFQ6.js} +86 -17
  48. package/{chunk-L2MLZQXU.js → chunk-V3ED5AWK.js} +2 -2
  49. package/{chunk-RG2U2MTJ.js → chunk-VDXCXCXH.js} +1 -1
  50. package/{chunk-TSIYZBTH.js → chunk-VNAEBGDK.js} +1 -1
  51. package/{chunk-ZJZCMKOR.js → chunk-VYHDJEQD.js} +17 -29
  52. package/{chunk-QCJITMYO.js → chunk-YGW4G5W5.js} +7 -4
  53. package/{createAgentAutomationAction-PMOLEPGJ.js → createAgentAutomationAction-GNFF524X.js} +6 -6
  54. package/{createDialogAction-DPRTYNAK.js → createDialogAction-RB55KCLO.js} +7 -7
  55. package/{createPageAction-JGZK3WAM.js → createPageAction-Y7343GLU.js} +6 -6
  56. package/{db-HCJ5PRB5.js → db-W3O47YGF.js} +38 -12
  57. package/{dialogCommands-XED6DKLV.js → dialogCommands-IAZK6YHQ.js} +13 -13
  58. package/{dialogSlice-KO4NRNKC.js → dialogSlice-UQAXF23P.js} +6 -6
  59. package/{docCreateCommands-P6DYWHH3.js → docCreateCommands-I2EWZGCI.js} +12 -12
  60. package/{docDeleteCommands-KUWXAMSN.js → docDeleteCommands-IZ45UZKG.js} +13 -13
  61. package/{docReadCommands-ECW55TKB.js → docReadCommands-R6Z4QJYU.js} +12 -12
  62. package/{docStore-6KMERNUY.js → docStore-5HOJ4D7D.js} +7 -7
  63. package/{docUpdateCommands-5J4BTJQN.js → docUpdateCommands-2LRBKQPY.js} +12 -12
  64. package/{getPricing-RYY6OBA4.js → getPricing-G7DLAST6.js} +3 -3
  65. package/{handleSendMessageAction-R3ZHTVU4.js → handleSendMessageAction-Q4HY35WX.js} +6 -6
  66. package/index.js +52 -52
  67. package/{localDialogRead-HQZPVIE3.js → localDialogRead-4H3QJFLW.js} +1 -1
  68. package/{machineCommands-JF2YL34J.js → machineCommands-PKBPQKTY.js} +23 -23
  69. package/{machineWsRunDispatch-ON4AEOJL.js → machineWsRunDispatch-UZAW4OXJ.js} +23 -23
  70. package/{models-5K5G2CZI.js → models-DJFSJ7SW.js} +2 -2
  71. package/package.json +1 -1
  72. package/{readlineWorkspace-SUCINTL7.js → readlineWorkspace-Y2RDOFZG.js} +472 -97
  73. package/{runAgentClientLoop-OBD2AVEL.js → runAgentClientLoop-NBPIKJ6J.js} +16 -16
  74. package/{spaceCommands-32NTNLHS.js → spaceCommands-DHCZ7J5I.js} +12 -12
  75. package/{spaceSlice-P7VOXLY6.js → spaceSlice-ZXLLG3CR.js} +6 -6
  76. package/{streamAgentChatTurn-UHEMNI3X.js → streamAgentChatTurn-L3YW6LSB.js} +19 -19
  77. package/{tools-BMXIXHMB.js → tools-ECGXR5QF.js} +11 -11
  78. package/{tuiSummaryLlmCaller-VUNVBRX3.js → tuiSummaryLlmCaller-OMSCNHXA.js} +4 -4
  79. package/{updateDialogTitleAction-LJBDYZLH.js → updateDialogTitleAction-HQ2EUDFT.js} +6 -6
@@ -14,7 +14,7 @@ import {
14
14
  normalizeAgentHandle,
15
15
  readDbRecord,
16
16
  resolveAgentRecordFromHybridStore
17
- } from "./chunk-FVIPEIVX.js";
17
+ } from "./chunk-DFCFMCY6.js";
18
18
  import {
19
19
  agentRunCardLabels,
20
20
  createCliCallAgentToolExecutor,
@@ -25,7 +25,7 @@ import {
25
25
  parseAgentRunEvent,
26
26
  t,
27
27
  toolLabel
28
- } from "./chunk-UZY4BEBR.js";
28
+ } from "./chunk-23FZYPLC.js";
29
29
  import {
30
30
  NOLO_PROJECT_MANAGER_AGENT_KEY,
31
31
  isLocalCliAgentKey
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-6HYVJV7B.js";
40
40
  import {
41
41
  formatAgentListCard
42
- } from "./chunk-NEKFSXOP.js";
42
+ } from "./chunk-EDV7EBOI.js";
43
43
  import {
44
44
  isGatewayHttpStatus
45
45
  } from "./chunk-RQSOAMPJ.js";
@@ -51,12 +51,12 @@ import {
51
51
  chooseMemoryOwners,
52
52
  loadMemoryCandidatesFromDb,
53
53
  resolveAgentMemoryPolicy
54
- } from "./chunk-NYUXSXLY.js";
54
+ } from "./chunk-IYEXFJPC.js";
55
55
  import {
56
56
  API_REPORTED_COST_MULTIPLIER,
57
57
  normalizeUsage,
58
58
  parseUiAskChoiceContent
59
- } from "./chunk-NVB267BZ.js";
59
+ } from "./chunk-SCTYAHYK.js";
60
60
  import {
61
61
  buildSkillDiscoveryContextBlock
62
62
  } from "./chunk-7OBMZCRD.js";
@@ -67,7 +67,7 @@ import {
67
67
  import {
68
68
  buildPlatformChatCompletionRequest,
69
69
  parsePlatformChatCompletionData
70
- } from "./chunk-AAODAAUQ.js";
70
+ } from "./chunk-N54HIJVJ.js";
71
71
  import {
72
72
  resolveAgentRuntimeConfigFromRecord
73
73
  } from "./chunk-OIQPORYI.js";
@@ -76,7 +76,7 @@ import {
76
76
  LOCAL_TURN_ABORTED_CODE,
77
77
  readActionGate,
78
78
  readCommandActionGatePayload
79
- } from "./chunk-QCJITMYO.js";
79
+ } from "./chunk-YGW4G5W5.js";
80
80
  import {
81
81
  createThinkParserState,
82
82
  flushThinkParser,
@@ -85,17 +85,17 @@ import {
85
85
  import {
86
86
  resolvePlatformAuthToken,
87
87
  resolvePlatformChatCompletionsEndpoint
88
- } from "./chunk-MUCU6ATG.js";
88
+ } from "./chunk-MHSGJW4Z.js";
89
89
  import {
90
90
  DEFAULT_CONTEXT_WINDOW,
91
91
  getModelContextWindow
92
- } from "./chunk-EGPCU42M.js";
92
+ } from "./chunk-I2ZJKTG5.js";
93
93
  import {
94
94
  clipCompactText
95
95
  } from "./chunk-5MMAK75Q.js";
96
96
  import {
97
97
  findModelConfig
98
- } from "./chunk-HQPG2PIV.js";
98
+ } from "./chunk-UAIVG4J6.js";
99
99
  import {
100
100
  toErrorMessage
101
101
  } from "./chunk-HNMXYYJR.js";
@@ -110,7 +110,7 @@ import {
110
110
  createRunActivityTracker,
111
111
  finalizeRunRecord,
112
112
  spawnLocalBackgroundRun
113
- } from "./chunk-TSIYZBTH.js";
113
+ } from "./chunk-VNAEBGDK.js";
114
114
  import {
115
115
  formatFinishedRunCard,
116
116
  formatListRunsCard,
@@ -120,7 +120,7 @@ import {
120
120
  formatStopRunCard,
121
121
  isAgentRunTerminalStatus,
122
122
  runShowsLogTail
123
- } from "./chunk-FKXFCYVO.js";
123
+ } from "./chunk-FQZZLA3C.js";
124
124
  import {
125
125
  CliProviderQuotaError
126
126
  } from "./chunk-X7W4TNB4.js";
@@ -758,6 +758,19 @@ function wrapTranscriptLine(line, columns, hangingIndent = "") {
758
758
  }
759
759
  return result.length > 0 ? result : [""];
760
760
  }
761
+ function buildWindowTitle(title) {
762
+ const plain = stripAnsi(title).replace(/[\x00-\x1f\x7f]+/g, " ");
763
+ let truncated = "";
764
+ let width = 0;
765
+ const maxCols = 80;
766
+ for (const char of plain) {
767
+ const charWidth = displayWidth(char);
768
+ if (width + charWidth > maxCols) break;
769
+ truncated += char;
770
+ width += charWidth;
771
+ }
772
+ return `\x1B]0;${truncated}\x07\x1B]2;${truncated}\x07`;
773
+ }
761
774
  function wrapTextToLines(text, columns) {
762
775
  const result = [];
763
776
  for (const logicalLine of text.split("\n")) {
@@ -2652,10 +2665,22 @@ function createToolEventFormatter(mode, colorEnabled = resolveCliColorEnabled())
2652
2665
  let webSearchBuffer = [];
2653
2666
  let statusFold = null;
2654
2667
  const lastEmittedLogByRunId = /* @__PURE__ */ new Map();
2668
+ const lastPrintedCardByRunId = /* @__PURE__ */ new Map();
2669
+ const cardSubstance = (snapshot) => JSON.stringify([
2670
+ snapshot.status,
2671
+ snapshot.toolCallCount ?? -1,
2672
+ snapshot.lastToolNames ?? [],
2673
+ snapshot.lastAssistantText ?? "",
2674
+ snapshot.errorMessage ?? "",
2675
+ snapshot.logKey
2676
+ ]);
2655
2677
  const flushStatusFold = () => {
2656
2678
  if (!statusFold) return "";
2657
2679
  const fold = statusFold;
2658
2680
  statusFold = null;
2681
+ const substance = cardSubstance(fold);
2682
+ if (lastPrintedCardByRunId.get(fold.runId) === substance) return "";
2683
+ lastPrintedCardByRunId.set(fold.runId, substance);
2659
2684
  const prevLog = lastEmittedLogByRunId.get(fold.runId);
2660
2685
  const changed = Boolean(fold.logKey) && fold.logKey !== prevLog;
2661
2686
  if (changed && runShowsLogTail(fold.status)) {
@@ -3091,7 +3116,7 @@ ${options.agentName} > `);
3091
3116
  if (options.onAgentRunStatus) {
3092
3117
  const parsed = parseAgentRunEvent(event);
3093
3118
  if (parsed) {
3094
- options.onAgentRunStatus(parsed.kind === "gone" ? null : parsed.snapshot);
3119
+ options.onAgentRunStatus(parsed.snapshot);
3095
3120
  }
3096
3121
  }
3097
3122
  };
@@ -3532,7 +3557,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
3532
3557
  // packages/cli/client/agentRun.ts
3533
3558
  import { ulid } from "ulid";
3534
3559
  async function loadRunLocalAgentTurn() {
3535
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-QUTBSY3I.js");
3560
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-7WYWCGL4.js");
3536
3561
  return runLocalAgentTurn;
3537
3562
  }
3538
3563
  async function resolveCurrentMachineId(options) {
@@ -3972,7 +3997,7 @@ async function runLocalAgentTurnForCli(options, settings) {
3972
3997
  } : void 0;
3973
3998
  const currentDialogId = options.continueDialogId ?? ulid();
3974
3999
  const runChildTurn = async (input) => {
3975
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-QUTBSY3I.js");
4000
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-7WYWCGL4.js");
3976
4001
  return runLocalAgentTurn(input);
3977
4002
  };
3978
4003
  const createFreshChildBaseAdapter = () => {
@@ -5283,6 +5308,7 @@ export {
5283
5308
  takeDisplayWidth,
5284
5309
  padOrTruncateToWidth,
5285
5310
  wrapTranscriptLine,
5311
+ buildWindowTitle,
5286
5312
  wrapTextToLines,
5287
5313
  THEME_PALETTES,
5288
5314
  getActiveThemeName,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-NEKFSXOP.js";
4
+ } from "./chunk-EDV7EBOI.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-ZZ2MH7LE.js";
8
8
  import {
9
9
  isNoloHostedProvider
10
- } from "./chunk-O6W2O2DA.js";
10
+ } from "./chunk-MKA6QE5E.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
@@ -146,6 +146,7 @@ var sanitizeToolForProvider = (tool, provider) => {
146
146
  var translatedFunctionCache = /* @__PURE__ */ new Map();
147
147
  var prepareToolsResultCache = /* @__PURE__ */ new Map();
148
148
  var PREPARE_TOOLS_CACHE_LIMIT = 128;
149
+ var warnedUnknownToolNames = /* @__PURE__ */ new Set();
149
150
  function getTranslation(keys, defaultVal) {
150
151
  for (const key of keys) {
151
152
  if (i18n_default.exists(key)) {
@@ -247,7 +248,15 @@ var prepareTools = (toolNames, options) => {
247
248
  }
248
249
  const prepared = canonicalNames.map((toolName) => {
249
250
  const regTool = toolRegistry[toolName];
250
- if (!regTool) return regTool;
251
+ if (!regTool) {
252
+ if (!warnedUnknownToolNames.has(toolName)) {
253
+ warnedUnknownToolNames.add(toolName);
254
+ console.warn(
255
+ `[prepareTools] unknown tool name "${toolName}" ignored (not in toolRegistry); likely stale agent config from a renamed/deprecated tool.`
256
+ );
257
+ }
258
+ return regTool;
259
+ }
251
260
  return {
252
261
  ...regTool,
253
262
  function: translateSchemaCached(regTool.function)
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-45BY7RLP.js";
4
+ } from "./chunk-SWDPIPOY.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-VHBWHNVT.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  sortSafeAgentSummaries,
10
10
  toSafeAgentSummary
11
- } from "./chunk-JP7REMYP.js";
11
+ } from "./chunk-3ZX7PERL.js";
12
12
  import {
13
13
  getUserDataItemTimestamp,
14
14
  mergeAndDedupUserData
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-VF4K2QE6.js";
29
29
  import {
30
30
  createDocState
31
- } from "./chunk-VDNQF5VI.js";
31
+ } from "./chunk-G5U6LDLG.js";
32
32
  import {
33
33
  setDialogExtraReferencesAction
34
34
  } from "./chunk-JLA4FXYC.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-63W5N6P3.js";
41
41
  import {
42
42
  createDialogAction
43
- } from "./chunk-NYUXSXLY.js";
43
+ } from "./chunk-IYEXFJPC.js";
44
44
  import {
45
45
  addCategory,
46
46
  addContentToSpace,
@@ -71,13 +71,13 @@ import {
71
71
  updateContentCategory,
72
72
  updateContentTitle,
73
73
  updateStep
74
- } from "./chunk-NVB267BZ.js";
74
+ } from "./chunk-SCTYAHYK.js";
75
75
  import {
76
76
  createAgent,
77
77
  runLlm,
78
78
  streamAgentChatTurn,
79
79
  updateAgent
80
- } from "./chunk-MD3V54DA.js";
80
+ } from "./chunk-REA4JLBH.js";
81
81
  import {
82
82
  buildCodingSkillContentBySlug,
83
83
  buildCodingSkillPageKey,
@@ -108,10 +108,10 @@ import {
108
108
  } from "./chunk-DKZFOK24.js";
109
109
  import {
110
110
  buildDatabaseFileContentUrl
111
- } from "./chunk-EGPCU42M.js";
111
+ } from "./chunk-I2ZJKTG5.js";
112
112
  import {
113
113
  DEFAULT_MODEL
114
- } from "./chunk-HQPG2PIV.js";
114
+ } from "./chunk-UAIVG4J6.js";
115
115
  import {
116
116
  toErrorMessage
117
117
  } from "./chunk-HNMXYYJR.js";
@@ -151,7 +151,7 @@ import {
151
151
  formatStatusRunCard,
152
152
  formatStopRunCard,
153
153
  resolveRunLabel
154
- } from "./chunk-FKXFCYVO.js";
154
+ } from "./chunk-FQZZLA3C.js";
155
155
  import {
156
156
  shareResourceAction
157
157
  } from "./chunk-UGUW3FHG.js";
@@ -5601,6 +5601,9 @@ var interface_locale_default = {
5601
5601
  windowsDesc: "One-click installer for Windows.",
5602
5602
  linuxTitle: "Linux",
5603
5603
  linuxDesc: "Native package for your environment.",
5604
+ linuxTarInstallHint: "Extract and run bin/launcher \u2014 no install needed.",
5605
+ linuxDebInstallHint: "sudo apt install ./nolo-desktop_amd64.deb",
5606
+ linuxRpmInstallHint: "sudo dnf install ./nolo-desktop_x86_64.rpm",
5604
5607
  macosTitle: "macOS",
5605
5608
  macosDesc: "Optimized for Apple Silicon.",
5606
5609
  macosDmgInstaller: {
@@ -5637,7 +5640,6 @@ var interface_locale_default = {
5637
5640
  pricingTitle: "Pricing Details",
5638
5641
  pricingDesc: "View pricing rules",
5639
5642
  guideTitle: "User Guide",
5640
- guideDesc: "Quick start tips",
5641
5643
  downloadClientTitle: "Download Client",
5642
5644
  downloadClientDesc: "Install Nolo on desktop and mobile devices",
5643
5645
  feedbackTitle: "Give Feedback",
@@ -6828,6 +6830,9 @@ var interface_locale_default = {
6828
6830
  windowsDesc: "Windows \u4E00\u952E\u5B89\u88C5\u5305\u3002",
6829
6831
  linuxTitle: "Linux",
6830
6832
  linuxDesc: "\u9002\u914D\u4F60\u672C\u5730\u73AF\u5883\u7684\u539F\u751F\u5305\u3002",
6833
+ linuxTarInstallHint: "\u89E3\u538B\u540E\u8FD0\u884C bin/launcher\uFF0C\u65E0\u9700\u5B89\u88C5\u3002",
6834
+ linuxDebInstallHint: "sudo apt install ./nolo-desktop_amd64.deb",
6835
+ linuxRpmInstallHint: "sudo dnf install ./nolo-desktop_x86_64.rpm",
6831
6836
  macosTitle: "macOS",
6832
6837
  macosDesc: "\u4E3A Apple Silicon \u4F18\u5316\u3002",
6833
6838
  macosDmgInstaller: {
@@ -6864,7 +6869,6 @@ var interface_locale_default = {
6864
6869
  pricingTitle: "\u8BA1\u8D39\u8BE6\u60C5",
6865
6870
  pricingDesc: "\u67E5\u770B\u4EF7\u683C\u89C4\u5219",
6866
6871
  guideTitle: "\u4F7F\u7528\u6307\u5357",
6867
- guideDesc: "\u5FEB\u901F\u4E0A\u624B\u6280\u5DE7",
6868
6872
  downloadClientTitle: "\u4E0B\u8F7D\u5BA2\u6237\u7AEF",
6869
6873
  downloadClientDesc: "\u5B89\u88C5\u684C\u9762\u7AEF\u548C\u79FB\u52A8\u7AEF\uFF0C\u6362\u8BBE\u5907\u4E5F\u80FD\u7EE7\u7EED\u7528",
6870
6874
  feedbackTitle: "\u610F\u89C1\u53CD\u9988",
@@ -8091,7 +8095,6 @@ var interface_locale_default = {
8091
8095
  pricingTitle: "\u8A08\u8CBB\u8A73\u60C5",
8092
8096
  pricingDesc: "\u67E5\u770B\u50F9\u683C\u898F\u5247",
8093
8097
  guideTitle: "\u4F7F\u7528\u6307\u5357",
8094
- guideDesc: "\u5FEB\u901F\u4E0A\u624B\u6280\u5DE7",
8095
8098
  downloadClientTitle: "\u4E0B\u8F09\u5BA2\u6236\u7AEF",
8096
8099
  downloadClientDesc: "\u5B89\u88DD\u684C\u9762\u7AEF\u548C\u884C\u52D5\u7AEF\uFF0C\u63DB\u88DD\u7F6E\u4E5F\u80FD\u7E7C\u7E8C\u7528",
8097
8100
  feedbackTitle: "\u610F\u898B\u56DE\u994B",
@@ -9240,7 +9243,6 @@ var interface_locale_default = {
9240
9243
  pricingTitle: "\u6599\u91D1\u8A73\u7D30",
9241
9244
  pricingDesc: "\u6599\u91D1\u30EB\u30FC\u30EB\u3092\u78BA\u8A8D",
9242
9245
  guideTitle: "\u4F7F\u3044\u65B9\u30AC\u30A4\u30C9",
9243
- guideDesc: "\u30AF\u30A4\u30C3\u30AF\u30B9\u30BF\u30FC\u30C8\u306E\u30B3\u30C4",
9244
9246
  downloadClientTitle: "\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
9245
9247
  downloadClientDesc: "\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u3068\u30E2\u30D0\u30A4\u30EB\u306B Nolo \u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",
9246
9248
  feedbackTitle: "\u30D5\u30A3\u30FC\u30C9\u30D0\u30C3\u30AF",
@@ -11530,7 +11532,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
11530
11532
  workspace: { mode: "lease" }
11531
11533
  };
11532
11534
  var findModelConfig = async (modelName, provider) => {
11533
- const { ALL_MODELS } = await import("./models-5K5G2CZI.js");
11535
+ const { ALL_MODELS } = await import("./models-DJFSJ7SW.js");
11534
11536
  const name = toTrimmedString(modelName);
11535
11537
  const prov = toTrimmedString(provider ?? "");
11536
11538
  if (!name) return null;
@@ -11771,7 +11773,7 @@ var buildFormDataFromArgs = async (args) => {
11771
11773
  const trimmedModel = toTrimmedString(model);
11772
11774
  const trimmedProvider = toTrimmedString(provider);
11773
11775
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11774
- const { getModelPricing } = await import("./getPricing-RYY6OBA4.js");
11776
+ const { getModelPricing } = await import("./getPricing-G7DLAST6.js");
11775
11777
  const normalizedTools = tools ?? [];
11776
11778
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11777
11779
  const formData = {
@@ -14250,7 +14252,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14250
14252
  const deletedDialogIds = [];
14251
14253
  const deletedDialogKeys = [];
14252
14254
  const failures = [];
14253
- const { deleteDialog } = await import("./dialogSlice-KO4NRNKC.js");
14255
+ const { deleteDialog } = await import("./dialogSlice-UQAXF23P.js");
14254
14256
  for (const target of targets) {
14255
14257
  try {
14256
14258
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -22159,7 +22161,7 @@ async function startAgentRunFunc(args, thunkApi, _context) {
22159
22161
  // packages/ai/tools/agent/controlAgentRunTool.ts
22160
22162
  var controlAgentRunFunctionSchema = {
22161
22163
  name: "controlAgentRun",
22162
- description: "\u89C2\u5BDF\u548C\u63A7\u5236\u540E\u53F0 agent run\u3002\u4E00\u4E2A\u5DE5\u5177\u4E09\u4E2A action\uFF1Alist\uFF08\u5217\u51FA run\uFF0C\u652F\u6301\u6309\u6279\u6B21/\u72B6\u6001\u8FC7\u6EE4\u4E0E\u5206\u9875\uFF09\u3001status\uFF08\u67E5\u5355\u6761 + \u53EF\u9009\u65E5\u5FD7\uFF09\u3001stop\uFF08\u53D6\u6D88 run\uFF09\u3002\u76F8\u5F53\u4E8E Unix \u7684 wait + signal + /proc\u3002\u7528 startAgentRun \u62FF\u5230 runId \u540E\uFF0C\u7528\u672C\u5DE5\u5177\u8DDF\u8FDB\u5EA6\u6216\u53EB\u505C\u3002list \u9ED8\u8BA4\u53EA\u8FD4\u56DE\u6700\u8FD1 20 \u6761\uFF0C\u907F\u514D\u5168\u91CF\u51B2\u7206\u4E0A\u4E0B\u6587\uFF1B\u7528 status/batchId/limit/offset \u53D6\u6240\u9700\u5206\u9875\u3002",
22164
+ description: "\u89C2\u5BDF\u548C\u63A7\u5236\u540E\u53F0 agent run\u3002\u4E00\u4E2A\u5DE5\u5177\u4E09\u4E2A action\uFF1Alist\uFF08\u5217\u51FA run\uFF0C\u652F\u6301\u6309\u6279\u6B21/\u72B6\u6001\u8FC7\u6EE4\u4E0E\u5206\u9875\uFF09\u3001status\uFF08\u67E5\u5355\u6761 + \u53EF\u9009\u65E5\u5FD7\uFF09\u3001stop\uFF08\u53D6\u6D88 run\uFF09\u3002\u76F8\u5F53\u4E8E Unix \u7684 wait + signal + /proc\u3002\u7528 startAgentRun \u62FF\u5230 runId \u540E\uFF0C\u7528\u672C\u5DE5\u5177\u8DDF\u8FDB\u5EA6\u6216\u53EB\u505C\u3002list \u9ED8\u8BA4\u53EA\u8FD4\u56DE\u6700\u8FD1 20 \u6761\uFF0C\u907F\u514D\u5168\u91CF\u51B2\u7206\u4E0A\u4E0B\u6587\uFF1B\u7528 status/batchId/limit/offset \u53D6\u6240\u9700\u5206\u9875\u3002\u6CE8\u610F\uFF1A\u7528\u6237\u754C\u9762\u5DF2\u7ECF\u5728\u72EC\u7ACB\u5B9E\u65F6\u663E\u793A\u6BCF\u6761 run \u7684\u72B6\u6001\uFF0C\u672C\u5DE5\u5177\u662F\u7ED9\u4F60\u81EA\u5DF1\u505A\u51B3\u7B56\u7528\u7684\uFF0C\u4E0D\u662F\u7528\u6765\u7ED9\u7528\u6237\u6C47\u62A5\u8FDB\u5EA6\u7684\u2014\u2014\u4E0D\u5FC5\u4E3A\u4E86\u300C\u8BA9\u7528\u6237\u770B\u5230\u72B6\u6001\u300D\u800C\u8F6E\u8BE2\uFF0C\u4E5F\u4E0D\u8981\u628A\u8FD4\u56DE\u503C\u590D\u8FF0\u7ED9\u7528\u6237\u3002",
22163
22165
  parameters: {
22164
22166
  type: "object",
22165
22167
  properties: {
@@ -22174,7 +22176,7 @@ var controlAgentRunFunctionSchema = {
22174
22176
  },
22175
22177
  tailLines: {
22176
22178
  type: "number",
22177
- description: "\u53EF\u9009\u3002action=status \u65F6\uFF1A0=\u53EA\u8FD4\u56DE\u72B6\u6001\u6458\u8981\uFF0C>0=\u540C\u65F6\u8FD4\u56DE\u6700\u8FD1 N \u884C\u65E5\u5FD7\uFF08\u9ED8\u8BA4 0\uFF09\u3002",
22179
+ description: "\u53EF\u9009\u3002action=status \u65F6\uFF1A0=\u53EA\u8FD4\u56DE\u72B6\u6001\u6458\u8981\uFF0C>0=\u540C\u65F6\u8FD4\u56DE\u6700\u8FD1 N \u884C\u65E5\u5FD7\uFF08\u9ED8\u8BA4 0\uFF09\u3002\u672C\u5730 run \u7684\u72B6\u6001\u6458\u8981\u91CC\u5E26 progress\uFF08toolCalls/llmCalls/fileEdits\u3001inFlight=\u6B64\u523B\u5728\u6267\u884C\u4EC0\u4E48\u3001idleMs=\u8DDD\u4E0A\u6B21\u4E8B\u4EF6\u591A\u4E45\uFF09\uFF0C\u8DB3\u4EE5\u5224\u65AD\u300C\u5728\u5E72\u6D3B\u300D\u8FD8\u662F\u300C\u5361\u4F4F\u4E86\u300D\u2014\u2014\u5148\u770B\u5B83\uFF0C\u53EA\u6709\u786E\u5B9E\u53EF\u7591\u6216\u5DF2\u5931\u8D25\u65F6\u624D tailLines>0 \u62C9\u65E5\u5FD7\u3002",
22178
22180
  default: 0
22179
22181
  },
22180
22182
  batchId: {
@@ -23514,7 +23516,7 @@ var executeToolRun = createAsyncThunk(
23514
23516
  if (!executionInput) {
23515
23517
  throw new Error(`ToolRun ${id} has no input to execute with.`);
23516
23518
  }
23517
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-BMXIXHMB.js");
23519
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-ECGXR5QF.js");
23518
23520
  const { executor } = findToolExecutor2(run.toolName);
23519
23521
  toolRunStarted({
23520
23522
  id: run.id,
@@ -23538,7 +23540,7 @@ var executeToolRun = createAsyncThunk(
23538
23540
  const latestState = thunkApi.getState();
23539
23541
  const userId = latestState.auth?.currentUser?.userId;
23540
23542
  if (userId) {
23541
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-P7VOXLY6.js");
23543
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-ZXLLG3CR.js");
23542
23544
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
23543
23545
  }
23544
23546
  }
@@ -26021,7 +26023,7 @@ async function updateDocFunc(args, thunkApi) {
26021
26023
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26022
26024
  };
26023
26025
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26024
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-6KMERNUY.js");
26026
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-5HOJ4D7D.js");
26025
26027
  if (getDocState().pageKey === id) {
26026
26028
  applyExternalDocUpdate({
26027
26029
  slateData: finalSlateData,
@@ -206,6 +206,8 @@ function isAgentRunTerminalStatus(status) {
206
206
  export {
207
207
  getAgentRunStatusIcon,
208
208
  shortRunId,
209
+ clipText,
210
+ formatDuration,
209
211
  formatRunAge,
210
212
  isAgentNameFallback,
211
213
  resolveRunLabel,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-MUCU6ATG.js";
3
+ } from "./chunk-MHSGJW4Z.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-NVB267BZ.js";
3
+ } from "./chunk-SCTYAHYK.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-JGZK3WAM.js");
370
+ const { createPageAction } = await import("./createPageAction-Y7343GLU.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-FVIPEIVX.js";
5
+ } from "./chunk-DFCFMCY6.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-ZVOZH2HW.js";
4
+ } from "./chunk-HEGV7BH3.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-FVIPEIVX.js";
7
+ } from "./chunk-DFCFMCY6.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
- } from "./chunk-JP7REMYP.js";
10
+ } from "./chunk-3ZX7PERL.js";
11
11
 
12
12
  // packages/cli/agentListHelpers.ts
13
13
  function parseAgentRecordId(privateKey, explicitId) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MODEL_LOOKUP_MAP
3
- } from "./chunk-HQPG2PIV.js";
3
+ } from "./chunk-UAIVG4J6.js";
4
4
  import {
5
5
  addContentAction
6
6
  } from "./chunk-ELT65PZW.js";
7
7
  import {
8
8
  ALL_MODELS
9
- } from "./chunk-RK5NYQEL.js";
9
+ } from "./chunk-LLWKHDG4.js";
10
10
  import {
11
11
  upload
12
12
  } from "./chunk-XRZJGPFI.js";
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-NVB267BZ.js";
6
+ } from "./chunk-SCTYAHYK.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -14,7 +14,7 @@ import {
14
14
  PLATFORM_HOSTED_GLM_52_MODEL,
15
15
  PLATFORM_HOSTED_GLM_PRICE,
16
16
  PLATFORM_HOSTED_KIMI_PROVIDER
17
- } from "./chunk-O6W2O2DA.js";
17
+ } from "./chunk-MKA6QE5E.js";
18
18
  import {
19
19
  read,
20
20
  readAndWait,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-FVIPEIVX.js";
4
+ } from "./chunk-DFCFMCY6.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -10,7 +10,7 @@ import {
10
10
  platformHostedModels,
11
11
  xaiModels,
12
12
  zaiModels
13
- } from "./chunk-O6W2O2DA.js";
13
+ } from "./chunk-MKA6QE5E.js";
14
14
 
15
15
  // packages/ai/llm/modelAbility.ts
16
16
  var MODEL_ABILITY_TABLE = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-HQPG2PIV.js";
3
+ } from "./chunk-UAIVG4J6.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
@@ -531,8 +531,12 @@ var PLATFORM_HOSTED_KIMI_PRICE = {
531
531
  output: toPlatformCredits(2.4)
532
532
  };
533
533
  var PLATFORM_HOSTED_KIMI_K3_PRICE = {
534
- input: toPlatformCredits(3),
535
- output: toPlatformCredits(15)
534
+ input: 16,
535
+ // crof $2 × 8,特殊价不走通用 0.8×7 换算
536
+ inputCacheHit: 2,
537
+ // crof $0.25 × 8
538
+ output: 64
539
+ // crof $8 × 8
536
540
  };
537
541
  var PLATFORM_HOSTED_GLM_PRICE = {
538
542
  input: toPlatformCredits(1.4),
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-UZY4BEBR.js";
4
+ } from "./chunk-23FZYPLC.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-NEKFSXOP.js";
7
+ } from "./chunk-EDV7EBOI.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-QCJITMYO.js";
10
+ } from "./chunk-YGW4G5W5.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-5CS33IBL.js";
@@ -23,7 +23,7 @@ import {
23
23
  resolvePlatformAuthToken,
24
24
  resolvePlatformServerUrl,
25
25
  resolveProviderTransportDecision
26
- } from "./chunk-MUCU6ATG.js";
26
+ } from "./chunk-MHSGJW4Z.js";
27
27
  import {
28
28
  clipCompactText
29
29
  } from "./chunk-5MMAK75Q.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAntigravityUserAgent
3
- } from "./chunk-L6NVTGI7.js";
3
+ } from "./chunk-FXUSIQC2.js";
4
4
  import {
5
5
  writeOAuthCredential
6
6
  } from "./chunk-JZPBVBIY.js";
@@ -9,10 +9,10 @@ import {
9
9
  resolveAgentRecordFromHybridStore,
10
10
  sanitizeAgentRecordForCliOutput,
11
11
  writeAgentRecord
12
- } from "./chunk-FVIPEIVX.js";
12
+ } from "./chunk-DFCFMCY6.js";
13
13
  import {
14
14
  clearCliLocalRuntimePreparedAgentCache
15
- } from "./chunk-UZY4BEBR.js";
15
+ } from "./chunk-23FZYPLC.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-CWMSB67P.js";
7
7
  import {
8
8
  getModelConfig
9
- } from "./chunk-HQPG2PIV.js";
9
+ } from "./chunk-UAIVG4J6.js";
10
10
  import {
11
11
  asOptionalFiniteNumber
12
12
  } from "./chunk-WWC7I6TA.js";