nolo-cli 0.24.0-alpha.8 → 0.25.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 (75) hide show
  1. package/{_executeModel-ARCMGGMY.js → _executeModel-LXNDVFT2.js} +17 -17
  2. package/{agentDeleteCommand-C5PIEBMZ.js → agentDeleteCommand-DMAYEVOP.js} +11 -11
  3. package/{agentEmailCommands-2TGEUNEG.js → agentEmailCommands-RVGRDAD6.js} +22 -22
  4. package/{agentListCommands-LRHBS3A5.js → agentListCommands-SMW3NENV.js} +13 -13
  5. package/{agentMachineCommands-UYPSQ5LU.js → agentMachineCommands-VGE5A52U.js} +11 -11
  6. package/{agentRecordCommands-LKE5HYO5.js → agentRecordCommands-UHFL5OLB.js} +21 -21
  7. package/{agentRunCommand-BI53VGZX.js → agentRunCommand-GG4Z735K.js} +21 -21
  8. package/{agentRuntimeLocal-QOYY5UV2.js → agentRuntimeLocal-7N2SUWO2.js} +8 -8
  9. package/{agentSlice-J3W3RX2I.js → agentSlice-WY7SEYXO.js} +1 -1
  10. package/{appDeleteCommands-7NS46XDH.js → appDeleteCommands-AUC7KDHU.js} +12 -12
  11. package/{appDeployCommands-RSRNQ67U.js → appDeployCommands-OVYWXTNP.js} +12 -12
  12. package/{appDeployStatusCommands-EF4RSGC6.js → appDeployStatusCommands-DNUCH3KK.js} +12 -12
  13. package/{appGetCommands-YA7JWYUX.js → appGetCommands-4DLM2P37.js} +12 -12
  14. package/{appListCommands-WM2ON6JW.js → appListCommands-CL4VLCZW.js} +12 -12
  15. package/{authCommand-HJP7FURK.js → authCommand-W2BDNL4D.js} +6 -6
  16. package/{chunk-3MXMWN6W.js → chunk-2KPE5HQM.js} +11 -13
  17. package/{chunk-SWMCYK4O.js → chunk-35RYGII3.js} +0 -66
  18. package/{chunk-AQZCWJOG.js → chunk-5IIJMMC3.js} +1 -1
  19. package/{chunk-H73ZV2GL.js → chunk-5TAM6OX3.js} +3 -3
  20. package/{chunk-EHOYZRTI.js → chunk-5UI2CDQG.js} +9 -14
  21. package/{chunk-JBLY6HQP.js → chunk-6NUG4BJE.js} +1 -1
  22. package/{chunk-S7RWIPDI.js → chunk-6OMNSBFW.js} +8 -8
  23. package/{chunk-5HQQ4LUU.js → chunk-7HD7MCCZ.js} +1 -1
  24. package/{chunk-NVHPMDSZ.js → chunk-ACBCDO2E.js} +2 -2
  25. package/{chunk-LALVWNE4.js → chunk-B6RCQ4BM.js} +1 -1
  26. package/{chunk-MYSH5YAA.js → chunk-C4JWF4EX.js} +2 -2
  27. package/{chunk-P4QWLZGU.js → chunk-DZNONG7L.js} +2 -2
  28. package/{chunk-QNLLGS37.js → chunk-E2VQTGUO.js} +8 -8
  29. package/{chunk-IICW77GI.js → chunk-J3HWN4B5.js} +1 -1
  30. package/{chunk-CHSCAUZN.js → chunk-J6MEBHAT.js} +1 -1
  31. package/{chunk-S77SCVBU.js → chunk-KF3VWOQ6.js} +1 -1
  32. package/{chunk-CGVRC2TB.js → chunk-LWHK7TZR.js} +2 -2
  33. package/{chunk-KFUCLS7Z.js → chunk-MSBHAQVV.js} +1 -1
  34. package/{chunk-TW35GDNW.js → chunk-NZXRTSOY.js} +2 -2
  35. package/{chunk-7W6GFNJL.js → chunk-OBO5YB35.js} +1 -1
  36. package/{chunk-2IPEVBUO.js → chunk-OHK3HE4G.js} +0 -41
  37. package/{chunk-SROR5TSM.js → chunk-OMWJXZSZ.js} +1 -1
  38. package/{chunk-IUDMBCXC.js → chunk-ONGWRXVA.js} +1 -1
  39. package/{chunk-ZGVW7MSZ.js → chunk-OTIS3VY6.js} +1 -1
  40. package/{chunk-4ZH6GUJF.js → chunk-P5AVCQF3.js} +13 -13
  41. package/{chunk-M5OZCOBV.js → chunk-QJZJW65A.js} +3 -3
  42. package/{chunk-QLVWFXZQ.js → chunk-RRJD2ZUV.js} +3 -3
  43. package/{chunk-M3TMVJKG.js → chunk-SDDOGQ6M.js} +1 -1
  44. package/{chunk-4ULSC37S.js → chunk-T3EOQH72.js} +1 -1
  45. package/{chunk-H2NAWOLH.js → chunk-THN2YFSR.js} +16 -42
  46. package/{chunk-KI4HAIHQ.js → chunk-UTADKKM7.js} +15 -32
  47. package/{chunk-X546QUDT.js → chunk-WV3WZRYZ.js} +2 -2
  48. package/{chunk-JADNODCQ.js → chunk-XJBAAOKS.js} +1 -1
  49. package/{chunk-YINXZURV.js → chunk-XR6PNQ3N.js} +3 -3
  50. package/{createAgentAutomationAction-MKQWN4VQ.js → createAgentAutomationAction-B5G57KMG.js} +6 -6
  51. package/{createDialogAction-YWIZPLFS.js → createDialogAction-SYKO3ACQ.js} +7 -7
  52. package/{createPageAction-74TTEIPC.js → createPageAction-UBO6CXTT.js} +6 -6
  53. package/{dialogCommands-MJIP32FL.js → dialogCommands-FQPSK7QE.js} +12 -12
  54. package/{dialogSlice-KLLVH4WI.js → dialogSlice-OFGPXYFS.js} +6 -6
  55. package/{docCreateCommands-5DN472U6.js → docCreateCommands-ELKBZBHI.js} +11 -11
  56. package/{docDeleteCommands-HE76LBN4.js → docDeleteCommands-R6X3FKHX.js} +12 -12
  57. package/{docReadCommands-XVGZSCBS.js → docReadCommands-QNVUXQNM.js} +11 -11
  58. package/{docStore-SPH3D6BT.js → docStore-WFMCDOGV.js} +7 -7
  59. package/{docUpdateCommands-P7IAWUAD.js → docUpdateCommands-OOR4CWYI.js} +11 -11
  60. package/{getPricing-WENPBVWH.js → getPricing-ZOASM7TQ.js} +3 -3
  61. package/{handleSendMessageAction-ZU6WJVL7.js → handleSendMessageAction-R3AP5MQY.js} +6 -6
  62. package/index.js +53 -53
  63. package/{machineCommands-B3CAYTSB.js → machineCommands-FPZ2UVCS.js} +20 -20
  64. package/{machineWsRunDispatch-B72PNO7F.js → machineWsRunDispatch-XAVKPZLL.js} +20 -20
  65. package/{models-DB27UAE3.js → models-DUNBMXRQ.js} +2 -2
  66. package/package.json +1 -1
  67. package/{readlineWorkspace-2Z6XIXPW.js → readlineWorkspace-O3D2LRYG.js} +57 -103
  68. package/{runAgentClientLoop-ZPKMXCM5.js → runAgentClientLoop-UWNABHIZ.js} +14 -14
  69. package/{spaceCommands-3GGBJRQR.js → spaceCommands-L6R7DD2L.js} +11 -11
  70. package/{spaceSlice-47Z6XLFQ.js → spaceSlice-2UQAI6GT.js} +6 -6
  71. package/{streamAgentChatTurn-VT5K5JSD.js → streamAgentChatTurn-SS62OWZZ.js} +17 -17
  72. package/{tools-L7RCHAPT.js → tools-NVSLAOK4.js} +10 -10
  73. package/{tuiSummaryLlmCaller-3DYOLTVN.js → tuiSummaryLlmCaller-A7OO23I4.js} +4 -4
  74. package/{updateCommands-FEGVYDMO.js → updateCommands-HTCOBXCA.js} +1 -7
  75. package/{updateDialogTitleAction-KMPVPQ4A.js → updateDialogTitleAction-WMWZQ764.js} +6 -6
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-KI4HAIHQ.js";
3
+ } from "./chunk-UTADKKM7.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-WFHXMLHZ.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-JBLY6HQP.js";
15
+ } from "./chunk-6NUG4BJE.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-4ZH6GUJF.js";
4
+ } from "./chunk-P5AVCQF3.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-ZZ2MH7LE.js";
8
8
  import {
9
9
  isNoloHostedProvider
10
- } from "./chunk-2IPEVBUO.js";
10
+ } from "./chunk-OHK3HE4G.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
3
3
  isAntigravityOAuthAgent
4
- } from "./chunk-SROR5TSM.js";
4
+ } from "./chunk-OMWJXZSZ.js";
5
5
  import {
6
6
  clipMultilineText,
7
7
  fetchAndSerializeTable,
8
8
  resolveBuiltinSkillPage,
9
9
  waitForAbortableDelay
10
- } from "./chunk-4ZH6GUJF.js";
10
+ } from "./chunk-P5AVCQF3.js";
11
11
  import {
12
12
  createDrainExhaustedResponse,
13
13
  isCoreDrainingBody,
@@ -23,10 +23,10 @@ import {
23
23
  } from "./chunk-VP4WJWKW.js";
24
24
  import {
25
25
  fetchAndCacheMessages
26
- } from "./chunk-H2NAWOLH.js";
26
+ } from "./chunk-THN2YFSR.js";
27
27
  import {
28
28
  fetchServerSyncedCredential
29
- } from "./chunk-M5OZCOBV.js";
29
+ } from "./chunk-QJZJW65A.js";
30
30
  import {
31
31
  shouldUseServerProxy
32
32
  } from "./chunk-YYLHWIW6.js";
@@ -52,10 +52,10 @@ import {
52
52
  isOpenAiResponsesModel,
53
53
  resolvePlatformChatCompletionsEndpoint,
54
54
  resolvePlatformResponsesEndpoint
55
- } from "./chunk-EHOYZRTI.js";
55
+ } from "./chunk-5UI2CDQG.js";
56
56
  import {
57
57
  estimateTokenCount
58
- } from "./chunk-CGVRC2TB.js";
58
+ } from "./chunk-LWHK7TZR.js";
59
59
  import {
60
60
  createFileCredentialBroker
61
61
  } from "./chunk-5CS33IBL.js";
@@ -63,7 +63,7 @@ import {
63
63
  clampReasoningEffort,
64
64
  getModelConfig,
65
65
  isModelSupportReasoningEffort
66
- } from "./chunk-CHSCAUZN.js";
66
+ } from "./chunk-J6MEBHAT.js";
67
67
  import {
68
68
  MEMORY_USE_GUIDANCE,
69
69
  wrapHistoricalSummaryWithReplayGuard
@@ -78,7 +78,7 @@ import {
78
78
  isDeepInfraKimiModel,
79
79
  isFireworksKimiModel,
80
80
  resolveFireworksKimiModel
81
- } from "./chunk-2IPEVBUO.js";
81
+ } from "./chunk-OHK3HE4G.js";
82
82
  import {
83
83
  createSpaceKey
84
84
  } from "./chunk-OXLLFZNF.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAntigravityUserAgent
3
- } from "./chunk-SROR5TSM.js";
3
+ } from "./chunk-OMWJXZSZ.js";
4
4
  import {
5
5
  writeOAuthCredential
6
6
  } from "./chunk-JZPBVBIY.js";
@@ -14,7 +14,7 @@ import {
14
14
  platformHostedModels,
15
15
  xaiModels,
16
16
  zaiModels
17
- } from "./chunk-2IPEVBUO.js";
17
+ } from "./chunk-OHK3HE4G.js";
18
18
  import {
19
19
  __export
20
20
  } from "./chunk-4VNS5WPM.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-AQZCWJOG.js";
10
+ } from "./chunk-5IIJMMC3.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  MODEL_LOOKUP_MAP
3
- } from "./chunk-CHSCAUZN.js";
3
+ } from "./chunk-J6MEBHAT.js";
4
4
  import {
5
5
  ALL_MODELS
6
- } from "./chunk-4ULSC37S.js";
6
+ } from "./chunk-T3EOQH72.js";
7
7
  import {
8
8
  addContentAction
9
9
  } from "./chunk-OXLLFZNF.js";
@@ -24,7 +24,7 @@ import {
24
24
  resolvePlatformAuthToken,
25
25
  resolvePlatformServerUrl,
26
26
  resolveProviderTransportDecision
27
- } from "./chunk-EHOYZRTI.js";
27
+ } from "./chunk-5UI2CDQG.js";
28
28
  import {
29
29
  clipCompactText
30
30
  } from "./chunk-5MMAK75Q.js";
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-H2NAWOLH.js";
6
+ } from "./chunk-THN2YFSR.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -17,7 +17,7 @@ import {
17
17
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
18
18
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PRICE,
19
19
  PLATFORM_HOSTED_KIMI_PROVIDER
20
- } from "./chunk-2IPEVBUO.js";
20
+ } from "./chunk-OHK3HE4G.js";
21
21
  import {
22
22
  read,
23
23
  readAndWait,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-5HQQ4LUU.js";
3
+ } from "./chunk-7HD7MCCZ.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -519,17 +519,6 @@ var PLATFORM_HOSTED_KIMI_K3_PRICE = {
519
519
  };
520
520
  var PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL = "deepseek-v4-flash";
521
521
  var PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL = "deepseek-v4-pro";
522
- var DEEPSEEK_V4_PRICING_EFFECTIVE_AT_MS = Date.UTC(2026, 7, 16, 16);
523
- var PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE = {
524
- input: 3,
525
- inputCacheHit: 0.1,
526
- output: 9
527
- };
528
- var PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE = {
529
- input: 9,
530
- inputCacheHit: 0.3,
531
- output: 27
532
- };
533
522
  var PLATFORM_HOSTED_DEEPSEEK_FLASH_PRICE = {
534
523
  input: 1,
535
524
  inputCacheHit: 0.02,
@@ -540,34 +529,6 @@ var PLATFORM_HOSTED_DEEPSEEK_PRO_PRICE = {
540
529
  inputCacheHit: 0.025,
541
530
  output: 6
542
531
  };
543
- var PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE = {
544
- input: 1.5,
545
- inputCacheHit: 0.05,
546
- output: 4.5
547
- };
548
- var PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE = {
549
- input: 4.5,
550
- inputCacheHit: 0.15,
551
- output: 13.5
552
- };
553
- var getPlatformHostedDeepSeekV4Price = (model, nowMs = Date.now()) => {
554
- if (nowMs < DEEPSEEK_V4_PRICING_EFFECTIVE_AT_MS) {
555
- return model === PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL ? PLATFORM_HOSTED_DEEPSEEK_PRO_PRICE : PLATFORM_HOSTED_DEEPSEEK_FLASH_PRICE;
556
- }
557
- const hour = Number(
558
- new Intl.DateTimeFormat("en-US", {
559
- timeZone: "Asia/Shanghai",
560
- hour: "numeric",
561
- hourCycle: "h23"
562
- }).format(new Date(nowMs))
563
- );
564
- const peak = hour >= 9 && hour < 12 || hour >= 14 && hour < 18;
565
- if (!peak) {
566
- return model === PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL ? PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE : PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE;
567
- }
568
- return model === PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL ? PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE : PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE;
569
- };
570
- var isPlatformHostedDeepSeekV4Model = (model) => model === PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL || model === PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL;
571
532
  var PLATFORM_HOSTED_CHAT_COMPLETIONS_URL = "https://ollama.com/v1/chat/completions";
572
533
  var platformHostedModels = [
573
534
  {
@@ -665,8 +626,6 @@ export {
665
626
  isPlatformHostedGrokModel,
666
627
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
667
628
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PRICE,
668
- getPlatformHostedDeepSeekV4Price,
669
- isPlatformHostedDeepSeekV4Model,
670
629
  PLATFORM_HOSTED_CHAT_COMPLETIONS_URL,
671
630
  platformHostedModels,
672
631
  getCloudflareWorkersAiChatCompletionsUrl,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-EHOYZRTI.js";
3
+ } from "./chunk-5UI2CDQG.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-IICW77GI.js";
4
+ } from "./chunk-J3HWN4B5.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-H73ZV2GL.js";
4
+ } from "./chunk-5TAM6OX3.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  sortSafeAgentSummaries,
17
17
  toSafeAgentSummary
18
- } from "./chunk-LALVWNE4.js";
18
+ } from "./chunk-B6RCQ4BM.js";
19
19
  import {
20
20
  getUserDataItemTimestamp,
21
21
  mergeAndDedupUserData
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-VF4K2QE6.js";
29
29
  import {
30
30
  createDocState
31
- } from "./chunk-NVHPMDSZ.js";
31
+ } from "./chunk-ACBCDO2E.js";
32
32
  import {
33
33
  setDialogExtraReferencesAction
34
34
  } from "./chunk-MALVZUYL.js";
@@ -44,7 +44,7 @@ import {
44
44
  buildBuiltinObjectSkillDbKey,
45
45
  buildBuiltinObjectSkillPageContent,
46
46
  createDialogAction
47
- } from "./chunk-TW35GDNW.js";
47
+ } from "./chunk-NZXRTSOY.js";
48
48
  import {
49
49
  addCategory,
50
50
  addContentToSpace,
@@ -75,13 +75,13 @@ import {
75
75
  updateContentCategory,
76
76
  updateContentTitle,
77
77
  updateStep
78
- } from "./chunk-H2NAWOLH.js";
78
+ } from "./chunk-THN2YFSR.js";
79
79
  import {
80
80
  createAgent,
81
81
  runLlm,
82
82
  streamAgentChatTurn,
83
83
  updateAgent
84
- } from "./chunk-M5OZCOBV.js";
84
+ } from "./chunk-QJZJW65A.js";
85
85
  import {
86
86
  CODING_SKILL_SLUGS,
87
87
  buildCodingSkillConfig,
@@ -116,10 +116,10 @@ import {
116
116
  } from "./chunk-UZH44DWK.js";
117
117
  import {
118
118
  buildDatabaseFileContentUrl
119
- } from "./chunk-CGVRC2TB.js";
119
+ } from "./chunk-LWHK7TZR.js";
120
120
  import {
121
121
  DEFAULT_MODEL
122
- } from "./chunk-CHSCAUZN.js";
122
+ } from "./chunk-J6MEBHAT.js";
123
123
  import {
124
124
  canonicalizeToolName,
125
125
  canonicalizeToolNames
@@ -11247,7 +11247,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
11247
11247
  workspace: { mode: "lease" }
11248
11248
  };
11249
11249
  var findModelConfig = async (modelName, provider) => {
11250
- const { ALL_MODELS } = await import("./models-DB27UAE3.js");
11250
+ const { ALL_MODELS } = await import("./models-DUNBMXRQ.js");
11251
11251
  const name = toTrimmedString(modelName);
11252
11252
  const prov = toTrimmedString(provider ?? "");
11253
11253
  if (!name) return null;
@@ -11488,7 +11488,7 @@ var buildFormDataFromArgs = async (args) => {
11488
11488
  const trimmedModel = toTrimmedString(model);
11489
11489
  const trimmedProvider = toTrimmedString(provider);
11490
11490
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11491
- const { getModelPricing } = await import("./getPricing-WENPBVWH.js");
11491
+ const { getModelPricing } = await import("./getPricing-ZOASM7TQ.js");
11492
11492
  const normalizedTools = tools ?? [];
11493
11493
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11494
11494
  const formData = {
@@ -14773,7 +14773,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14773
14773
  const deletedDialogIds = [];
14774
14774
  const deletedDialogKeys = [];
14775
14775
  const failures = [];
14776
- const { deleteDialog } = await import("./dialogSlice-KLLVH4WI.js");
14776
+ const { deleteDialog } = await import("./dialogSlice-OFGPXYFS.js");
14777
14777
  for (const target of targets) {
14778
14778
  try {
14779
14779
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -24174,7 +24174,7 @@ var executeToolRun = createAsyncThunk(
24174
24174
  if (!executionInput) {
24175
24175
  throw new Error(`ToolRun ${id} has no input to execute with.`);
24176
24176
  }
24177
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-L7RCHAPT.js");
24177
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-NVSLAOK4.js");
24178
24178
  const { executor } = findToolExecutor2(run.toolName);
24179
24179
  toolRunStarted({
24180
24180
  id: run.id,
@@ -24198,7 +24198,7 @@ var executeToolRun = createAsyncThunk(
24198
24198
  const latestState = thunkApi.getState();
24199
24199
  const userId = latestState.auth?.currentUser?.userId;
24200
24200
  if (userId) {
24201
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-47Z6XLFQ.js");
24201
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-2UQAI6GT.js");
24202
24202
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
24203
24203
  }
24204
24204
  }
@@ -26681,7 +26681,7 @@ async function updateDocFunc(args, thunkApi) {
26681
26681
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26682
26682
  };
26683
26683
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26684
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-SPH3D6BT.js");
26684
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-WFMCDOGV.js");
26685
26685
  if (getDocState().pageKey === id) {
26686
26686
  applyExternalDocUpdate({
26687
26687
  slateData: finalSlateData,
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
300
300
  const overrides = {};
301
301
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
302
302
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
303
- const { _executeModel } = await import("./_executeModel-ARCMGGMY.js");
303
+ const { _executeModel } = await import("./_executeModel-LXNDVFT2.js");
304
304
  return _executeModel(
305
305
  {
306
306
  isStreaming: args.isStreaming ?? false,
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
321
321
  * - 循环直到无工具调用或触发其他运行时停止条件
322
322
  */
323
323
  runAgent: create.asyncThunk(async (args, thunkApi) => {
324
- const { runAgentClientLoop } = await import("./runAgentClientLoop-ZPKMXCM5.js");
324
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-UWNABHIZ.js");
325
325
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
326
326
  {
327
327
  agentKey: args.agentKey,
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
337
337
  * 聊天轮次流式 Agent 调用
338
338
  */
339
339
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
340
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VT5K5JSD.js");
340
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-SS62OWZZ.js");
341
341
  return streamAgentChatTurnHandler(args, thunkApi);
342
342
  }),
343
343
  /**
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-AQZCWJOG.js";
4
+ } from "./chunk-5IIJMMC3.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-JBLY6HQP.js";
7
+ } from "./chunk-6NUG4BJE.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
- } from "./chunk-LALVWNE4.js";
10
+ } from "./chunk-B6RCQ4BM.js";
11
11
 
12
12
  // packages/cli/agentListHelpers.ts
13
13
  function parseAgentRecordId(privateKey, explicitId) {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-CWMSB67P.js";
7
7
  import {
8
8
  getModelConfig
9
- } from "./chunk-CHSCAUZN.js";
9
+ } from "./chunk-J6MEBHAT.js";
10
10
  import {
11
11
  asOptionalFiniteNumber
12
12
  } from "./chunk-WWC7I6TA.js";
@@ -9,7 +9,7 @@ import {
9
9
  platformHostedModels,
10
10
  xaiModels,
11
11
  zaiModels
12
- } from "./chunk-2IPEVBUO.js";
12
+ } from "./chunk-OHK3HE4G.js";
13
13
 
14
14
  // packages/ai/llm/modelAbility.ts
15
15
  var MODEL_ABILITY_TABLE = {
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  deleteServerSyncedCredential,
14
14
  runLlm
15
- } from "./chunk-M5OZCOBV.js";
15
+ } from "./chunk-QJZJW65A.js";
16
16
  import {
17
17
  isOAuthApiKeyRef
18
18
  } from "./chunk-YYLHWIW6.js";
@@ -42,14 +42,14 @@ import {
42
42
  planCompression,
43
43
  resolveAutoExecutionProfile,
44
44
  serializeMessageContent
45
- } from "./chunk-CGVRC2TB.js";
45
+ } from "./chunk-LWHK7TZR.js";
46
46
  import {
47
47
  createFileCredentialBroker
48
48
  } from "./chunk-5CS33IBL.js";
49
49
  import {
50
50
  findModelConfig,
51
51
  getModelConfig
52
- } from "./chunk-CHSCAUZN.js";
52
+ } from "./chunk-J6MEBHAT.js";
53
53
  import {
54
54
  abortActiveControllers,
55
55
  addPageReferenceToRuntime,
@@ -70,10 +70,6 @@ import {
70
70
  import {
71
71
  toErrorMessage
72
72
  } from "./chunk-HNMXYYJR.js";
73
- import {
74
- getPlatformHostedDeepSeekV4Price,
75
- isPlatformHostedDeepSeekV4Model
76
- } from "./chunk-2IPEVBUO.js";
77
73
  import {
78
74
  isSystemAdmin,
79
75
  nolotusId,
@@ -5627,7 +5623,7 @@ var messageSlice = createSliceWithThunks({
5627
5623
  runtimeOptions: args.runtimeOptions
5628
5624
  });
5629
5625
  if (agentKeyToUse) {
5630
- const { streamAgentChatTurn } = await import("./agentSlice-J3W3RX2I.js");
5626
+ const { streamAgentChatTurn } = await import("./agentSlice-WY7SEYXO.js");
5631
5627
  await dispatch(
5632
5628
  streamAgentChatTurn({
5633
5629
  agentKey: agentKeyToUse,
@@ -7511,13 +7507,9 @@ var resolveEffectiveModelPrice = ({
7511
7507
  model,
7512
7508
  usage,
7513
7509
  provider,
7514
- billingServiceTier,
7515
- nowMs
7510
+ billingServiceTier
7516
7511
  }) => {
7517
7512
  const resolvedPrice = resolveModelPrice(model, usage);
7518
- if ((provider === "nolo" || provider === "deepseek") && isPlatformHostedDeepSeekV4Model(model.name)) {
7519
- return getPlatformHostedDeepSeekV4Price(model.name, nowMs);
7520
- }
7521
7513
  if (provider === "google") {
7522
7514
  return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
7523
7515
  }
@@ -7642,7 +7634,7 @@ var resolveOpenAIBuiltInImageSurcharge = (model, usage) => {
7642
7634
  if (imageGenerationCount <= 0 || pricePerImage <= 0) return 0;
7643
7635
  return imageGenerationCount * pricePerImage;
7644
7636
  };
7645
- var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceTier, nowMs) => {
7637
+ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceTier) => {
7646
7638
  if (!usage || typeof usage.input_tokens !== "number") {
7647
7639
  throw new Error("Invalid usage data");
7648
7640
  }
@@ -7650,8 +7642,7 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
7650
7642
  model,
7651
7643
  usage,
7652
7644
  provider,
7653
- billingServiceTier,
7654
- nowMs
7645
+ billingServiceTier
7655
7646
  });
7656
7647
  switch (provider) {
7657
7648
  case "deepseek":
@@ -7728,26 +7719,12 @@ var calculatePrice = ({
7728
7719
  // 不设默认值,undefined 表示 custom/未知 provider,走 zeroCostModel 路径
7729
7720
  provider,
7730
7721
  billingServiceTier,
7731
- nowMs,
7732
7722
  sharingLevel = "default"
7733
7723
  }) => {
7734
7724
  let model;
7735
7725
  try {
7736
7726
  model = getModelConfig(provider, modelName);
7737
7727
  } catch {
7738
- if ((provider === "nolo" || provider === "deepseek") && isPlatformHostedDeepSeekV4Model(modelName)) {
7739
- const hostedModel = getModelConfig("nolo", modelName);
7740
- const costs3 = calculateBasicCost(
7741
- hostedModel,
7742
- usage,
7743
- provider,
7744
- externalPrice,
7745
- billingServiceTier,
7746
- nowMs
7747
- );
7748
- const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
7749
- return { cost: sanitizeCost(costs3.charge), pay: pay3 };
7750
- }
7751
7728
  const zeroCostModel = {
7752
7729
  name: modelName,
7753
7730
  hasVision: false,
@@ -7758,8 +7735,7 @@ var calculatePrice = ({
7758
7735
  usage,
7759
7736
  "custom",
7760
7737
  externalPrice,
7761
- billingServiceTier,
7762
- nowMs
7738
+ billingServiceTier
7763
7739
  );
7764
7740
  const pay2 = calculatePayDistribution(costs2, externalPrice, sharingLevel);
7765
7741
  return { cost: sanitizeCost(costs2.charge), pay: pay2 };
@@ -7769,8 +7745,7 @@ var calculatePrice = ({
7769
7745
  usage,
7770
7746
  provider || "custom",
7771
7747
  externalPrice,
7772
- billingServiceTier,
7773
- nowMs
7748
+ billingServiceTier
7774
7749
  );
7775
7750
  const openAIImageSurcharge = provider === "openai" ? resolveOpenAIBuiltInImageSurcharge(model, usage) : 0;
7776
7751
  const adjustedCosts = openAIImageSurcharge > 0 ? {
@@ -7941,8 +7916,7 @@ var prepareTokenUsageData = ({
7941
7916
  output: agentConfig.outputPrice ?? 0,
7942
7917
  creatorId: agentConfig.userId ?? (agentConfig.id ? extractUserId(agentConfig.id) : "")
7943
7918
  } : void 0,
7944
- sharingLevel: agentConfig.sharingLevel,
7945
- nowMs: timestamp
7919
+ sharingLevel: agentConfig.sharingLevel
7946
7920
  });
7947
7921
  const billable = resolveBillable({
7948
7922
  usage,
@@ -8357,7 +8331,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8357
8331
  }
8358
8332
  if (isCurrentDialog) {
8359
8333
  await thunkApi.dispatch(resetMsgs());
8360
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-KLLVH4WI.js");
8334
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-OFGPXYFS.js");
8361
8335
  dispatch(clearPendingAttachments2());
8362
8336
  clearWorkflow();
8363
8337
  }
@@ -8366,15 +8340,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8366
8340
 
8367
8341
  // packages/chat/dialog/dialogSlice.ts
8368
8342
  var runCreateDialogAction = async (args, thunkApi) => {
8369
- const { createDialogAction } = await import("./createDialogAction-YWIZPLFS.js");
8343
+ const { createDialogAction } = await import("./createDialogAction-SYKO3ACQ.js");
8370
8344
  return createDialogAction(args, thunkApi);
8371
8345
  };
8372
8346
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
8373
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-MKQWN4VQ.js");
8347
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-B5G57KMG.js");
8374
8348
  return createAgentAutomationAction(args, thunkApi);
8375
8349
  };
8376
8350
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
8377
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-KMPVPQ4A.js");
8351
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-WMWZQ764.js");
8378
8352
  return updateDialogTitleAction(args, thunkApi);
8379
8353
  };
8380
8354
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -8398,7 +8372,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
8398
8372
  return setDialogExtraReferencesAction(args, thunkApi);
8399
8373
  };
8400
8374
  var runHandleSendMessageAction = async (args, thunkApi) => {
8401
- const { handleSendMessageAction } = await import("./handleSendMessageAction-ZU6WJVL7.js");
8375
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-R3AP5MQY.js");
8402
8376
  return handleSendMessageAction(args, thunkApi);
8403
8377
  };
8404
8378
  function clearDialogState() {
@@ -8411,7 +8385,7 @@ var createPageAndAddReference = createAsyncThunk(
8411
8385
  async (payload, { dispatch, getState, rejectWithValue }) => {
8412
8386
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
8413
8387
  try {
8414
- const { createDocState } = await import("./docStore-SPH3D6BT.js");
8388
+ const { createDocState } = await import("./docStore-WFMCDOGV.js");
8415
8389
  const pageKey = await createDocState(
8416
8390
  { slateData, title },
8417
8391
  { dispatch, getState }