nolo-cli 0.188.0-alpha.1 → 0.188.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 (152) hide show
  1. package/{_executeModel-DIRZ5OVD.js → _executeModel-7GFCTOFY.js} +53 -52
  2. package/{accountResolver-NQJ57BVU.js → accountResolver-42BYPMVY.js} +5 -5
  3. package/{action-GPPJC5TI.js → action-HQXK4ZT4.js} +6 -5
  4. package/{addContentAction-XJQEJ4XW.js → addContentAction-3WAN3OWY.js} +11 -10
  5. package/{addDialogAgentAction-5WZX5CAY.js → addDialogAgentAction-WNQBFR5G.js} +13 -12
  6. package/{agentDeleteCommand-YBR3WPMA.js → agentDeleteCommand-GETUDKX4.js} +90 -89
  7. package/{agentEmailCommands-HCAJUPVT.js → agentEmailCommands-2EB4DJSA.js} +80 -79
  8. package/{agentListCommands-6N32GUGS.js → agentListCommands-6RONL2YO.js} +52 -51
  9. package/{agentMachineCommands-ICARPI2D.js → agentMachineCommands-J6SX7CPR.js} +36 -35
  10. package/{agentProviderCommands-FXEMNSZ2.js → agentProviderCommands-XSZUCNIR.js} +5 -5
  11. package/{agentPullCommand-7LHBOEYH.js → agentPullCommand-LGASFNH7.js} +5 -5
  12. package/{agentRecordCommands-SCC37ID4.js → agentRecordCommands-UXFGQXD6.js} +73 -72
  13. package/{agentRunCommand-LIEO5YKT.js → agentRunCommand-QTK73QMM.js} +78 -77
  14. package/{agentRunControl-SBHIICUQ.js → agentRunControl-6HHESKDB.js} +6 -6
  15. package/{agentRuntimeLocal-KMJAV6JL.js → agentRuntimeLocal-G4KEXO5D.js} +25 -24
  16. package/{agentSlice-XZODTFTF.js → agentSlice-STUDWJJZ.js} +12 -11
  17. package/{appDeleteCommands-KDKRH2S2.js → appDeleteCommands-6L6PTB6G.js} +33 -32
  18. package/{appDeployCommands-YNZIYHDK.js → appDeployCommands-PLXIHXN3.js} +33 -32
  19. package/{appDeployStatusCommands-CPGP7ELY.js → appDeployStatusCommands-VGYYEBTV.js} +33 -32
  20. package/{appGetCommands-VXKSPF54.js → appGetCommands-NAANWNTG.js} +33 -32
  21. package/{appListCommands-3QHVAMFI.js → appListCommands-ZT5YE2IX.js} +33 -32
  22. package/{authCommand-NR6NELQ7.js → authCommand-NVTKI7QU.js} +26 -25
  23. package/{authCommands-PIUTADO5.js → authCommands-RFLKIPBT.js} +9 -8
  24. package/{builtinSkillRegistry-RR35BY57.js → builtinSkillRegistry-2VN6JG4U.js} +4 -3
  25. package/{chromeCommands-EXJZ5HH5.js → chromeCommands-IVYZCGFL.js} +2 -2
  26. package/{chromeOpsCommands-ITBZEFBX.js → chromeOpsCommands-DOFY2OCF.js} +7 -7
  27. package/{chunk-KVUMIWLL.js → chunk-2RHDAHFX.js} +27 -27
  28. package/{chunk-IBZ2HGY7.js → chunk-3QFOYFJW.js} +9 -9
  29. package/{chunk-YBTP3PUM.js → chunk-4CEAZRZ4.js} +4 -4
  30. package/{chunk-GFHDRA4C.js → chunk-4OTMONZL.js} +22 -22
  31. package/{chunk-KHMJI7GE.js → chunk-53RSTB7T.js} +5 -5
  32. package/{chunk-GCOCWLIE.js → chunk-5LVGXDSL.js} +2 -2
  33. package/{chunk-EXAJ6DCR.js → chunk-5ZMIIR23.js} +3 -0
  34. package/{chunk-6JCZZDET.js → chunk-6G5V4Y3V.js} +89 -87
  35. package/{chunk-62TBKWTV.js → chunk-7DQSP7JU.js} +1 -1
  36. package/{chunk-V7QTD5MP.js → chunk-7N6C3IHF.js} +3 -3
  37. package/{chunk-JWEXJ573.js → chunk-7SJG5ZNX.js} +2 -2
  38. package/{chunk-SQOLMMXQ.js → chunk-A43QYPYN.js} +56 -54
  39. package/{chunk-MAYW6V3E.js → chunk-BA2FHPS4.js} +1 -1
  40. package/{chunk-CI5DVWU7.js → chunk-BTBT2566.js} +3 -3
  41. package/{chunk-YPG7TUQD.js → chunk-CLGAGPEM.js} +1 -1
  42. package/{chunk-NMFV26UG.js → chunk-CVMMWN6P.js} +6 -0
  43. package/{chunk-D2J22QSE.js → chunk-DYQXB46J.js} +10 -10
  44. package/{chunk-IF7V3CBU.js → chunk-ER4UTWWS.js} +4 -4
  45. package/{chunk-SJGHZTLV.js → chunk-FGIJLPZ3.js} +1 -1
  46. package/{chunk-ZZE2IJ5U.js → chunk-GSX7Z46F.js} +1 -1
  47. package/{chunk-W6E5IXIP.js → chunk-GTP6VNWH.js} +1 -1
  48. package/{chunk-ZKYRYOPF.js → chunk-H6FUDBS3.js} +12 -10
  49. package/{chunk-PO4IRXQ7.js → chunk-HVV4B6OL.js} +31 -31
  50. package/{chunk-LHRW5KFN.js → chunk-I3HWJODB.js} +1 -1
  51. package/{chunk-XLQ646HU.js → chunk-IFN7MHWL.js} +13 -13
  52. package/{chunk-KMSMIOOL.js → chunk-IIX6VWLW.js} +2 -2
  53. package/{chunk-ESMZW5PE.js → chunk-JOOWHDGM.js} +1 -1
  54. package/{chunk-K3TVMCV3.js → chunk-KOIGM3KU.js} +1 -1
  55. package/{chunk-NHEWV5FD.js → chunk-LBXUNNDS.js} +1 -1
  56. package/{chunk-OFFL4DCR.js → chunk-LEC5ALIN.js} +1 -1
  57. package/{chunk-GAGGEA7D.js → chunk-LEJSZV6V.js} +9 -9
  58. package/{chunk-BAWAKW7X.js → chunk-LOQYQUM2.js} +4 -4
  59. package/{chunk-APB44JID.js → chunk-MJWUBTK7.js} +1 -1
  60. package/{chunk-GUGCJ3DT.js → chunk-MMOISK6N.js} +14 -14
  61. package/{chunk-CR5WXQX7.js → chunk-N7E3LQ4A.js} +4 -4
  62. package/{chunk-QNLRCES2.js → chunk-NVOYW6H4.js} +3 -3
  63. package/{chunk-H5EQ2VTC.js → chunk-O2MBTX37.js} +7 -7
  64. package/{chunk-HEYJFOL6.js → chunk-OHRDHS4N.js} +1 -1
  65. package/{chunk-7XISFN2T.js → chunk-OXOXPREC.js} +1 -1
  66. package/{chunk-FDLDMJTM.js → chunk-P64WRQYV.js} +1 -1
  67. package/{chunk-FSIJK37C.js → chunk-PCPQWTXJ.js} +1 -1
  68. package/{chunk-P2BGRAW7.js → chunk-PVD7CRYV.js} +2 -2
  69. package/{chunk-TDBNIGUJ.js → chunk-PVZ3GB25.js} +10 -10
  70. package/{chunk-QSJLGX7K.js → chunk-Q54QGYRW.js} +14 -14
  71. package/{chunk-JOUFPRE4.js → chunk-QU3TLYBR.js} +5 -5
  72. package/{chunk-4NCLVO4U.js → chunk-R6AJKHEU.js} +3 -3
  73. package/{chunk-UKDHLQHS.js → chunk-RANCLEEC.js} +21 -19
  74. package/{chunk-77IXQ7PZ.js → chunk-RBVR7P3M.js} +56 -54
  75. package/{chunk-MILA23IG.js → chunk-RGTPR57U.js} +20 -18
  76. package/{chunk-YYKHIX4X.js → chunk-RJ3EYB5G.js} +1 -1
  77. package/{chunk-NSASNKVD.js → chunk-S4W4GV3B.js} +8 -6
  78. package/{chunk-OKKTPAKC.js → chunk-VECM2WX3.js} +12 -12
  79. package/{chunk-U7BOZFAD.js → chunk-VH7PE33C.js} +81 -79
  80. package/{chunk-IHQ7RMRS.js → chunk-WBCYL63M.js} +6 -6
  81. package/{chunk-XAFCJN32.js → chunk-WFUIXNKC.js} +1 -1
  82. package/{chunk-5EMSBTQ6.js → chunk-WMHWFFTE.js} +480 -224
  83. package/chunk-XJWWBO34.js +69 -0
  84. package/{chunk-CDLP56BS.js → chunk-Y2ZDNW2H.js} +17 -15
  85. package/{chunk-3L5MSPWX.js → chunk-YIRADHSY.js} +1 -1
  86. package/{chunk-DEO4FC7J.js → chunk-YUZIPPER.js} +3 -3
  87. package/{chunk-D6222KXV.js → chunk-ZIOYHDYW.js} +2 -2
  88. package/{chunk-XI7DGLUK.js → chunk-ZSO5B6SW.js} +3 -3
  89. package/cliAuthorityBrokerClient-PM3U6Q6J.js +21 -0
  90. package/cliAuthorityStoreDriver-TKLXNNTG.js +20 -0
  91. package/{commandRegistry-I6CNP54W.js → commandRegistry-MTKBHP45.js} +87 -87
  92. package/{contentThunks-U5ZQJBCJ.js → contentThunks-E4DHXF3M.js} +27 -26
  93. package/{createAgentAutomationAction-O5MAEWFH.js → createAgentAutomationAction-2P2II7B3.js} +30 -29
  94. package/{createDialogAction-6FEVBVYE.js → createDialogAction-MFZGE5EO.js} +29 -28
  95. package/{createPageAction-QJJX3V2F.js → createPageAction-SBU2YCNR.js} +32 -31
  96. package/cursorProvider-YGGNMVWX.js +1 -1
  97. package/{dbSlice-6PVPY44C.js → dbSlice-2O3YBVPP.js} +10 -9
  98. package/{deleteFile-YM6NDPAR.js → deleteFile-R5OBP7OM.js} +5 -5
  99. package/{dialogCommands-EDFRNBDA.js → dialogCommands-AWGFKOGS.js} +40 -39
  100. package/{dialogSlice-4J2R6S63.js → dialogSlice-GKPCUQWM.js} +25 -24
  101. package/dialogUsageCommand-44XMU6DD.js +246 -0
  102. package/{docCreateCommands-J6RRFAAL.js → docCreateCommands-4JEKXNST.js} +32 -31
  103. package/{docDeleteCommands-4KIMCR5H.js → docDeleteCommands-Q5K4UJPQ.js} +33 -32
  104. package/{docReadCommands-2UZQOOA7.js → docReadCommands-ZZ7HMGPV.js} +32 -31
  105. package/{docStore-CMJSEKU5.js → docStore-DOZVBVKZ.js} +12 -11
  106. package/{docUpdateCommands-OLZENBFB.js → docUpdateCommands-NUFXB6BD.js} +32 -31
  107. package/{fetchMessages-IIJWQ3HR.js → fetchMessages-QLW7INJJ.js} +4 -3
  108. package/{getPricing-2UPNNW3Y.js → getPricing-E2PLNWCR.js} +3 -3
  109. package/{handleSendMessageAction-ON2OCZ2O.js → handleSendMessageAction-FY4RBJEA.js} +46 -45
  110. package/index.js +7 -7
  111. package/keys-N6HQICY5.js +170 -0
  112. package/{localDialogRead-FSOMOPDZ.js → localDialogRead-55YDVPNU.js} +1 -1
  113. package/{localRuntimeAdapter-KYWEHSY3.js → localRuntimeAdapter-KCS5Y4T6.js} +70 -69
  114. package/{localRuntimeAuthority-BPN5OAQG.js → localRuntimeAuthority-NEGF3LRQ.js} +3 -3
  115. package/{localRuntimeDb-QIVAXMUL.js → localRuntimeDb-SDYFAEKA.js} +1 -1
  116. package/{machineCommands-PZYWWGXH.js → machineCommands-E3HMAMLA.js} +78 -77
  117. package/{machineWsRunDispatch-H7OSNRUO.js → machineWsRunDispatch-MGDBTLDX.js} +71 -70
  118. package/{memberThunks-AZINUM4S.js → memberThunks-VXT36MZP.js} +15 -14
  119. package/package.json +1 -1
  120. package/{providerPresetApply-MBMGCNKZ.js → providerPresetApply-JGNMO2KX.js} +5 -5
  121. package/{providerRegistry-P4KYS6SE.js → providerRegistry-33J3ZYFJ.js} +5 -5
  122. package/{read-7JPIWRBQ.js → read-D6NEWSGG.js} +5 -5
  123. package/{readDocTool-AAQTB2Y3.js → readDocTool-NTAXO7SX.js} +1 -1
  124. package/{readlineWorkspace-DTAJBA43.js → readlineWorkspace-IWWKZK3F.js} +116 -115
  125. package/{removeDialogAgentAction-RMVRILLK.js → removeDialogAgentAction-PK24DJ2J.js} +15 -14
  126. package/{runAgentClientLoop-KW7EFI6H.js → runAgentClientLoop-CFIM6MXT.js} +49 -48
  127. package/{runtimeDoctorCommands-DXJH5HIB.js → runtimeDoctorCommands-NYBOTA6D.js} +20 -20
  128. package/{setDialogExtraReferencesAction-L3V7JTMG.js → setDialogExtraReferencesAction-BN4IBUO6.js} +12 -11
  129. package/{setPrimaryDialogAgentAction-X52JQGTJ.js → setPrimaryDialogAgentAction-JR5SMLZY.js} +15 -14
  130. package/{settingThunks-N6XFWPOU.js → settingThunks-RJZQHL7H.js} +12 -10
  131. package/{spaceCommands-AUZVTCVH.js → spaceCommands-BI3TRIAK.js} +32 -31
  132. package/{streamAgentChatTurn-TGC24NGV.js → streamAgentChatTurn-3BS7IAFR.js} +67 -66
  133. package/{switchDialogAgentAction-ZJ5CGU7J.js → switchDialogAgentAction-TSIXBNRH.js} +13 -12
  134. package/{tools-N77X52PL.js → tools-PCTUYG54.js} +43 -42
  135. package/{tuiSummaryLlmCaller-5D3XCH2C.js → tuiSummaryLlmCaller-FSOADMXK.js} +12 -12
  136. package/{updateCommands-MZCY6FXK.js → updateCommands-Y6CKFKIF.js} +3 -3
  137. package/{updateDialogTitleAction-EH3LIVRX.js → updateDialogTitleAction-ZHFIMEQL.js} +32 -31
  138. package/dialogUsageCommand-ZPESQB6W.js +0 -136
  139. package/{agentGrantCommands-LPVAJ6KR.js → agentGrantCommands-V5FOQKFD.js} +3 -3
  140. package/{chunk-I2QHI2XM.js → chunk-4YMD7B4Y.js} +3 -3
  141. package/{chunk-ZJ7UHBJS.js → chunk-5XBUWM6I.js} +3 -3
  142. package/{chunk-YXTMZQGX.js → chunk-7JWW65DU.js} +3 -3
  143. package/{chunk-43OFVLWJ.js → chunk-7UODCAWW.js} +8 -8
  144. package/{chunk-CSINZLH7.js → chunk-JIFYXQRD.js} +3 -3
  145. package/{chunk-AA5GKA2X.js → chunk-RKLQVXUE.js} +3 -3
  146. package/{chunk-LIQJTQRN.js → chunk-TRZP7JZ7.js} +3 -3
  147. package/{chunk-FKOCI2WR.js → chunk-UBLITLAZ.js} +3 -3
  148. package/{chunk-TDNAAXUQ.js → chunk-ZBCBFOWC.js} +3 -3
  149. package/{memoryCommands-YLT3ADGQ.js → memoryCommands-ASCE5STX.js} +3 -3
  150. package/{offlineMarxistsAgentCommand-3GLX4QQY.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +3 -3
  151. package/{tableCommands-IVC5S7Y3.js → tableCommands-QYB64L5I.js} +7 -7
  152. package/{workloadLifecycle-2F5YKFGW.js → workloadLifecycle-JA75D6JR.js} +3 -3
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ZC3CMUKU.js";
11
11
  import {
12
12
  createKey
13
- } from "./chunk-5EMSBTQ6.js";
13
+ } from "./chunk-WMHWFFTE.js";
14
14
 
15
15
  // packages/ai/tools/codeWorkDiscipline.ts
16
16
  var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-BPN5OAQG.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-NEGF3LRQ.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-IHQ7RMRS.js";
4
+ } from "./chunk-WBCYL63M.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveAgentCallPlan
3
- } from "./chunk-XAFCJN32.js";
3
+ } from "./chunk-WFUIXNKC.js";
4
4
  import {
5
5
  SUBSCRIPTION_OAUTH_PROVIDERS
6
- } from "./chunk-JOUFPRE4.js";
6
+ } from "./chunk-QU3TLYBR.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
@@ -2,10 +2,10 @@ import {
2
2
  patch,
3
3
  remove,
4
4
  write
5
- } from "./chunk-CDLP56BS.js";
5
+ } from "./chunk-Y2ZDNW2H.js";
6
6
  import {
7
7
  getRuntimeServerContext
8
- } from "./chunk-43OFVLWJ.js";
8
+ } from "./chunk-7UODCAWW.js";
9
9
  import {
10
10
  asyncThunkCreator,
11
11
  buildCreateSlice
@@ -14,21 +14,21 @@ import {
14
14
  applyAgentSecretMigrationUpdates,
15
15
  migrateAgentSecrets,
16
16
  normalizeAgentRuntimeToolPolicy
17
- } from "./chunk-LIQJTQRN.js";
17
+ } from "./chunk-TRZP7JZ7.js";
18
18
  import {
19
19
  createFileCredentialBroker
20
20
  } from "./chunk-76YUTLOT.js";
21
21
  import {
22
22
  asRecordOrEmpty
23
23
  } from "./chunk-KX6YBIHG.js";
24
+ import {
25
+ isRecord
26
+ } from "./chunk-KUG52IAP.js";
24
27
  import {
25
28
  createAgentKey,
26
29
  createUserKey,
27
30
  toTrimmedString
28
- } from "./chunk-5EMSBTQ6.js";
29
- import {
30
- isRecord
31
- } from "./chunk-KUG52IAP.js";
31
+ } from "./chunk-WMHWFFTE.js";
32
32
  import {
33
33
  asTrimmedString
34
34
  } from "./chunk-3EUW3WEO.js";
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
347
347
  const overrides = {};
348
348
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
349
349
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
350
- const { _executeModel } = await import("./_executeModel-DIRZ5OVD.js");
350
+ const { _executeModel } = await import("./_executeModel-7GFCTOFY.js");
351
351
  return _executeModel(
352
352
  {
353
353
  isStreaming: args.isStreaming ?? false,
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
368
368
  * - 循环直到无工具调用或触发其他运行时停止条件
369
369
  */
370
370
  runAgent: create.asyncThunk(async (args, thunkApi) => {
371
- const { runAgentClientLoop } = await import("./runAgentClientLoop-KW7EFI6H.js");
371
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-CFIM6MXT.js");
372
372
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
373
373
  {
374
374
  agentKey: args.agentKey,
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
384
384
  * 聊天轮次流式 Agent 调用
385
385
  */
386
386
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
387
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-TGC24NGV.js");
387
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-3BS7IAFR.js");
388
388
  return streamAgentChatTurnHandler(args, thunkApi);
389
389
  }),
390
390
  /**
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-U7BOZFAD.js";
4
+ } from "./chunk-VH7PE33C.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-H5EQ2VTC.js";
7
+ } from "./chunk-O2MBTX37.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-PO4IRXQ7.js";
10
+ } from "./chunk-HVV4B6OL.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-FKOCI2WR.js";
13
+ } from "./chunk-UBLITLAZ.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
- } from "./chunk-LIQJTQRN.js";
16
+ } from "./chunk-TRZP7JZ7.js";
17
17
  import {
18
18
  asRecordOrEmpty
19
19
  } from "./chunk-KX6YBIHG.js";
@@ -21,11 +21,11 @@ import {
21
21
  ownedAgentKey
22
22
  } from "./chunk-M2EJHDJP.js";
23
23
  import {
24
- asTrimmedNonEmptyStringArray
25
- } from "./chunk-I42VC5KR.js";
24
+ toErrorMessage
25
+ } from "./chunk-HNMXYYJR.js";
26
26
  import {
27
- asOptionalPositiveFiniteNumber
28
- } from "./chunk-U6VC4MU4.js";
27
+ isRecord
28
+ } from "./chunk-KUG52IAP.js";
29
29
  import {
30
30
  parseUserIdFromAuthToken
31
31
  } from "./chunk-WACI5I6V.js";
@@ -40,14 +40,14 @@ import {
40
40
  t
41
41
  } from "./chunk-YO3O7H2X.js";
42
42
  import {
43
- isRecord
44
- } from "./chunk-KUG52IAP.js";
43
+ asTrimmedNonEmptyStringArray
44
+ } from "./chunk-I42VC5KR.js";
45
+ import {
46
+ asOptionalPositiveFiniteNumber
47
+ } from "./chunk-U6VC4MU4.js";
45
48
  import {
46
49
  asTrimmedString
47
50
  } from "./chunk-3EUW3WEO.js";
48
- import {
49
- toErrorMessage
50
- } from "./chunk-HNMXYYJR.js";
51
51
  import {
52
52
  asOptionalTrimmedString
53
53
  } from "./chunk-G3SUCT4W.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
- asOptionalFiniteNumber
3
- } from "./chunk-WWC7I6TA.js";
2
+ toErrorMessage
3
+ } from "./chunk-HNMXYYJR.js";
4
4
  import {
5
5
  trimTrailingSlash
6
- } from "./chunk-I2QHI2XM.js";
6
+ } from "./chunk-4YMD7B4Y.js";
7
7
  import {
8
8
  commandCodeModels,
9
9
  kimiCodeModels,
@@ -16,8 +16,8 @@ import {
16
16
  stepfunStepPlanModels
17
17
  } from "./chunk-GC64WGMD.js";
18
18
  import {
19
- toErrorMessage
20
- } from "./chunk-HNMXYYJR.js";
19
+ asOptionalFiniteNumber
20
+ } from "./chunk-WWC7I6TA.js";
21
21
  import {
22
22
  asOptionalTrimmedString
23
23
  } from "./chunk-G3SUCT4W.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-CDLP56BS.js";
10
+ } from "./chunk-Y2ZDNW2H.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-U5ZQJBCJ.js");
336
+ const { updateContentTitle } = await import("./contentThunks-E4DHXF3M.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-QJJX3V2F.js");
375
+ const { createPageAction } = await import("./createPageAction-SBU2YCNR.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-D6222KXV.js";
8
+ } from "./chunk-ZIOYHDYW.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-GUGCJ3DT.js";
17
+ } from "./chunk-MMOISK6N.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-6JCZZDET.js";
21
+ } from "./chunk-6G5V4Y3V.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-IBZ2HGY7.js";
26
+ } from "./chunk-3QFOYFJW.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,23 +32,23 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-H5EQ2VTC.js";
35
+ } from "./chunk-O2MBTX37.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
39
39
  import {
40
40
  getCurrentSpaceId
41
- } from "./chunk-ZJ7UHBJS.js";
41
+ } from "./chunk-5XBUWM6I.js";
42
42
  import {
43
43
  addToolMessage,
44
44
  messageStreamEnd,
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-77IXQ7PZ.js";
48
+ } from "./chunk-RBVR7P3M.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-TDBNIGUJ.js";
51
+ } from "./chunk-PVZ3GB25.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-CDLP56BS.js";
62
+ } from "./chunk-Y2ZDNW2H.js";
63
63
  import {
64
64
  createAsyncThunk
65
65
  } from "./chunk-WRCZXJ4N.js";
@@ -85,13 +85,13 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-HEYJFOL6.js";
88
+ } from "./chunk-OHRDHS4N.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-NSASNKVD.js";
91
+ } from "./chunk-S4W4GV3B.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-CSINZLH7.js";
94
+ } from "./chunk-JIFYXQRD.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
@@ -99,22 +99,24 @@ import {
99
99
  extractCustomId
100
100
  } from "./chunk-M2EJHDJP.js";
101
101
  import {
102
- createDialogMessageKeyAndId,
103
- dialogMessageKey,
104
- toTrimmedString
105
- } from "./chunk-5EMSBTQ6.js";
102
+ toErrorMessage
103
+ } from "./chunk-HNMXYYJR.js";
106
104
  import {
107
105
  getApiEndpoint
108
106
  } from "./chunk-GC64WGMD.js";
109
107
  import {
110
108
  isRecord
111
109
  } from "./chunk-KUG52IAP.js";
110
+ import {
111
+ toTrimmedString
112
+ } from "./chunk-WMHWFFTE.js";
113
+ import {
114
+ createDialogMessageKeyAndId,
115
+ dialogMessageKey
116
+ } from "./chunk-XJWWBO34.js";
112
117
  import {
113
118
  asTrimmedString
114
119
  } from "./chunk-3EUW3WEO.js";
115
- import {
116
- toErrorMessage
117
- } from "./chunk-HNMXYYJR.js";
118
120
  import {
119
121
  asOptionalTrimmedString
120
122
  } from "./chunk-G3SUCT4W.js";
@@ -1,31 +1,40 @@
1
1
  import {
2
2
  LOCAL_USER_ID
3
3
  } from "./chunk-TZXPT53C.js";
4
+ import {
5
+ buildDialogAttachmentPlan,
6
+ extractFileContentIds
7
+ } from "./chunk-LEC5ALIN.js";
4
8
  import {
5
9
  BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
6
10
  BUILTIN_SUMMARY_LLM_CONFIG
7
11
  } from "./chunk-523DITKR.js";
8
12
  import {
9
- buildDialogAttachmentPlan,
10
- extractFileContentIds
11
- } from "./chunk-OFFL4DCR.js";
13
+ runLlm
14
+ } from "./chunk-PVZ3GB25.js";
12
15
  import {
13
16
  isMediaToolConfirmation
14
17
  } from "./chunk-QYPE3TS3.js";
15
18
  import {
16
- runLlm
17
- } from "./chunk-TDBNIGUJ.js";
19
+ cleanupCliSessionForDialog
20
+ } from "./chunk-JOOWHDGM.js";
18
21
  import {
19
22
  getApproxPricePerImage
20
23
  } from "./chunk-4JH2UMJR.js";
21
24
  import {
22
- cleanupCliSessionForDialog
23
- } from "./chunk-ESMZW5PE.js";
25
+ addContentAction
26
+ } from "./chunk-7SJG5ZNX.js";
24
27
  import {
25
28
  getActiveDialogAgentId,
26
29
  getDialogAgentIds,
27
30
  getPrimaryDialogAgentId
28
31
  } from "./chunk-5RGU3J7P.js";
32
+ import {
33
+ _typeof,
34
+ addLeadingZeros,
35
+ requiredArgs,
36
+ toDate
37
+ } from "./chunk-4LCOCOR5.js";
29
38
  import {
30
39
  abortActiveControllers,
31
40
  addPageReferenceToRuntime,
@@ -42,21 +51,9 @@ import {
42
51
  setDialogConfigError,
43
52
  setMediaJobRuntimeActor
44
53
  } from "./chunk-OWYYDMGJ.js";
45
- import {
46
- _typeof,
47
- addLeadingZeros,
48
- requiredArgs,
49
- toDate
50
- } from "./chunk-4LCOCOR5.js";
51
54
  import {
52
55
  require_react
53
56
  } from "./chunk-YDH3FDFQ.js";
54
- import {
55
- fetchMessages
56
- } from "./chunk-XI7DGLUK.js";
57
- import {
58
- addContentAction
59
- } from "./chunk-JWEXJ573.js";
60
57
  import {
61
58
  patch,
62
59
  read,
@@ -64,12 +61,12 @@ import {
64
61
  selectById,
65
62
  upload,
66
63
  write
67
- } from "./chunk-CDLP56BS.js";
64
+ } from "./chunk-Y2ZDNW2H.js";
68
65
  import {
69
66
  getRuntimeServerContext,
70
67
  parseOwnerUserIdFromDbKey,
71
68
  scheduleDeleteReplication
72
- } from "./chunk-43OFVLWJ.js";
69
+ } from "./chunk-7UODCAWW.js";
73
70
  import {
74
71
  asyncThunkCreator,
75
72
  buildCreateSlice,
@@ -85,6 +82,9 @@ import {
85
82
  selectIdentityUser,
86
83
  selectIdentityUserId
87
84
  } from "./chunk-PXYBUFDB.js";
85
+ import {
86
+ fetchMessages
87
+ } from "./chunk-ZSO5B6SW.js";
88
88
  import {
89
89
  getRecordTimestamp,
90
90
  getTombstoneTimestamp,
@@ -106,7 +106,7 @@ import {
106
106
  extractReferenceKeysFromMessage,
107
107
  normalizeUsage,
108
108
  resolveAutoExecutionProfile
109
- } from "./chunk-NSASNKVD.js";
109
+ } from "./chunk-S4W4GV3B.js";
110
110
  import {
111
111
  isDevinOAuthAgent
112
112
  } from "./chunk-5ZUL4CUO.js";
@@ -123,7 +123,7 @@ import {
123
123
  getModelInfo,
124
124
  planCompression,
125
125
  serializeMessageContent
126
- } from "./chunk-CSINZLH7.js";
126
+ } from "./chunk-JIFYXQRD.js";
127
127
  import {
128
128
  isOAuthApiKeyRef
129
129
  } from "./chunk-UKZX3NHN.js";
@@ -146,22 +146,11 @@ import {
146
146
  publicAgentKey
147
147
  } from "./chunk-M2EJHDJP.js";
148
148
  import {
149
- buildDialogAgentListIndexDeleteOps,
150
- createDialogMessageKeyAndId,
151
- createKey,
152
- createTokenKey,
153
- createTokenStatsKey,
154
- dialogMessageKey
155
- } from "./chunk-5EMSBTQ6.js";
149
+ toErrorMessage
150
+ } from "./chunk-HNMXYYJR.js";
156
151
  import {
157
152
  estimateTokenCount
158
153
  } from "./chunk-PSCNXBYA.js";
159
- import {
160
- API_ENDPOINTS
161
- } from "./chunk-LCBAMY2M.js";
162
- import {
163
- asOptionalFiniteNumber
164
- } from "./chunk-WWC7I6TA.js";
165
154
  import {
166
155
  findModelConfig,
167
156
  getModelConfig
@@ -170,14 +159,27 @@ import {
170
159
  isRecord
171
160
  } from "./chunk-KUG52IAP.js";
172
161
  import {
173
- asTrimmedString
174
- } from "./chunk-3EUW3WEO.js";
175
- import {
176
- toErrorMessage
177
- } from "./chunk-HNMXYYJR.js";
162
+ API_ENDPOINTS
163
+ } from "./chunk-LCBAMY2M.js";
178
164
  import {
179
165
  normalizeServerOrigin
180
166
  } from "./chunk-CF7PE763.js";
167
+ import {
168
+ buildDialogAgentListIndexDeleteOps,
169
+ createKey,
170
+ createTokenKey,
171
+ createTokenStatsKey
172
+ } from "./chunk-WMHWFFTE.js";
173
+ import {
174
+ createDialogMessageKeyAndId,
175
+ dialogMessageKey
176
+ } from "./chunk-XJWWBO34.js";
177
+ import {
178
+ asOptionalFiniteNumber
179
+ } from "./chunk-WWC7I6TA.js";
180
+ import {
181
+ asTrimmedString
182
+ } from "./chunk-3EUW3WEO.js";
181
183
  import {
182
184
  asOptionalTrimmedString
183
185
  } from "./chunk-G3SUCT4W.js";
@@ -11071,7 +11073,7 @@ var messageSlice = createSliceWithThunks({
11071
11073
  runtimeOptions: args.runtimeOptions
11072
11074
  });
11073
11075
  if (agentKeyToUse) {
11074
- const { streamAgentChatTurn } = await import("./agentSlice-XZODTFTF.js");
11076
+ const { streamAgentChatTurn } = await import("./agentSlice-STUDWJJZ.js");
11075
11077
  await dispatch(
11076
11078
  streamAgentChatTurn({
11077
11079
  agentKey: agentKeyToUse,
@@ -13823,7 +13825,7 @@ var deleteOwnedDialogAttachments = async (args) => {
13823
13825
  metadataReadFailures
13824
13826
  });
13825
13827
  if (!plan.deleteCandidates.length) return plan;
13826
- const { deleteFileAction } = await import("./deleteFile-YM6NDPAR.js");
13828
+ const { deleteFileAction } = await import("./deleteFile-R5OBP7OM.js");
13827
13829
  for (const candidate of plan.deleteCandidates) {
13828
13830
  if (candidate.fileDbKey) {
13829
13831
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -13885,7 +13887,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13885
13887
  }
13886
13888
  if (isCurrentDialog) {
13887
13889
  await thunkApi.dispatch(resetMsgs());
13888
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4J2R6S63.js");
13890
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-GKPCUQWM.js");
13889
13891
  dispatch(clearPendingAttachments2());
13890
13892
  }
13891
13893
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13893,39 +13895,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13893
13895
 
13894
13896
  // packages/chat/dialog/dialogSlice.ts
13895
13897
  var runCreateDialogAction = async (args, thunkApi) => {
13896
- const { createDialogAction } = await import("./createDialogAction-6FEVBVYE.js");
13898
+ const { createDialogAction } = await import("./createDialogAction-MFZGE5EO.js");
13897
13899
  return createDialogAction(args, thunkApi);
13898
13900
  };
13899
13901
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13900
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-O5MAEWFH.js");
13902
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-2P2II7B3.js");
13901
13903
  return createAgentAutomationAction(args, thunkApi);
13902
13904
  };
13903
13905
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13904
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-EH3LIVRX.js");
13906
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-ZHFIMEQL.js");
13905
13907
  return updateDialogTitleAction(args, thunkApi);
13906
13908
  };
13907
13909
  var runAddDialogAgentAction = async (args, thunkApi) => {
13908
- const { addDialogAgentAction } = await import("./addDialogAgentAction-5WZX5CAY.js");
13910
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-WNQBFR5G.js");
13909
13911
  return addDialogAgentAction(args, thunkApi);
13910
13912
  };
13911
13913
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
13912
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-RMVRILLK.js");
13914
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-PK24DJ2J.js");
13913
13915
  return removeDialogAgentAction(args, thunkApi);
13914
13916
  };
13915
13917
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
13916
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-X52JQGTJ.js");
13918
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-JR5SMLZY.js");
13917
13919
  return setPrimaryDialogAgentAction(args, thunkApi);
13918
13920
  };
13919
13921
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
13920
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-ZJ5CGU7J.js");
13922
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-TSIXBNRH.js");
13921
13923
  return switchDialogAgentAction(args, thunkApi);
13922
13924
  };
13923
13925
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13924
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-L3V7JTMG.js");
13926
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-BN4IBUO6.js");
13925
13927
  return setDialogExtraReferencesAction(args, thunkApi);
13926
13928
  };
13927
13929
  var runHandleSendMessageAction = async (args, thunkApi) => {
13928
- const { handleSendMessageAction } = await import("./handleSendMessageAction-ON2OCZ2O.js");
13930
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-FY4RBJEA.js");
13929
13931
  return handleSendMessageAction(args, thunkApi);
13930
13932
  };
13931
13933
  function clearDialogState() {
@@ -13938,7 +13940,7 @@ var createPageAndAddReference = createAsyncThunk(
13938
13940
  async (payload, { dispatch, getState, rejectWithValue }) => {
13939
13941
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13940
13942
  try {
13941
- const { createDocState } = await import("./docStore-CMJSEKU5.js");
13943
+ const { createDocState } = await import("./docStore-DOZVBVKZ.js");
13942
13944
  const pageKey = await createDocState(
13943
13945
  { slateData, title },
13944
13946
  { dispatch, getState }
@@ -2,28 +2,28 @@ import {
2
2
  getCurrentSpaceId,
3
3
  getCurrentSpaceIdRaw,
4
4
  updateCurrentSpaceIfMatch
5
- } from "./chunk-ZJ7UHBJS.js";
5
+ } from "./chunk-5XBUWM6I.js";
6
6
  import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-77IXQ7PZ.js";
11
- import {
12
- formatISO
13
- } from "./chunk-ZRAU6T47.js";
14
- import {
15
- require_react
16
- } from "./chunk-YDH3FDFQ.js";
10
+ } from "./chunk-RBVR7P3M.js";
17
11
  import {
18
12
  UNCATEGORIZED_ID,
19
13
  addContentAction,
20
14
  checkSpaceMembership,
21
15
  localSpaceAuthorityPatchStamp
22
- } from "./chunk-JWEXJ573.js";
16
+ } from "./chunk-7SJG5ZNX.js";
23
17
  import {
24
18
  createSpaceKey,
25
19
  normalizeSpaceId
26
20
  } from "./chunk-UAD2WT54.js";
21
+ import {
22
+ formatISO
23
+ } from "./chunk-ZRAU6T47.js";
24
+ import {
25
+ require_react
26
+ } from "./chunk-YDH3FDFQ.js";
27
27
  import {
28
28
  patch,
29
29
  read,
@@ -32,7 +32,7 @@ import {
32
32
  uploadFileAction,
33
33
  upsertSSREntity,
34
34
  write
35
- } from "./chunk-CDLP56BS.js";
35
+ } from "./chunk-Y2ZDNW2H.js";
36
36
  import {
37
37
  resolveFileCategory
38
38
  } from "./chunk-3PVYUPXK.js";
@@ -43,7 +43,7 @@ import {
43
43
  resolveReplicationServers,
44
44
  scheduleDeleteReplication,
45
45
  scheduleWriteReplication
46
- } from "./chunk-43OFVLWJ.js";
46
+ } from "./chunk-7UODCAWW.js";
47
47
  import {
48
48
  createAsyncThunk
49
49
  } from "./chunk-WRCZXJ4N.js";
@@ -71,6 +71,9 @@ import {
71
71
  import {
72
72
  extractUserId
73
73
  } from "./chunk-M2EJHDJP.js";
74
+ import {
75
+ isRecord
76
+ } from "./chunk-KUG52IAP.js";
74
77
  import {
75
78
  SEPARATOR,
76
79
  createKey,
@@ -79,9 +82,11 @@ import {
79
82
  isPageKey,
80
83
  metaKey,
81
84
  rowKey,
82
- splitKey,
85
+ splitKey
86
+ } from "./chunk-WMHWFFTE.js";
87
+ import {
83
88
  ulid
84
- } from "./chunk-5EMSBTQ6.js";
89
+ } from "./chunk-XJWWBO34.js";
85
90
  import {
86
91
  asTrimmedNonEmptyStringArray
87
92
  } from "./chunk-I42VC5KR.js";
@@ -91,9 +96,6 @@ import {
91
96
  import {
92
97
  asOptionalFiniteNumber
93
98
  } from "./chunk-WWC7I6TA.js";
94
- import {
95
- isRecord
96
- } from "./chunk-KUG52IAP.js";
97
99
  import {
98
100
  asTrimmedString
99
101
  } from "./chunk-3EUW3WEO.js";
@@ -1495,11 +1497,11 @@ var ENTITY_DELETE_STRATEGIES = {
1495
1497
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1496
1498
  },
1497
1499
  file: async (key, { thunkAPI }) => {
1498
- const { deleteFileAction } = await import("./deleteFile-YM6NDPAR.js");
1500
+ const { deleteFileAction } = await import("./deleteFile-R5OBP7OM.js");
1499
1501
  await deleteFileAction(key, thunkAPI);
1500
1502
  },
1501
1503
  image: async (key, { thunkAPI }) => {
1502
- const { deleteFileAction } = await import("./deleteFile-YM6NDPAR.js");
1504
+ const { deleteFileAction } = await import("./deleteFile-R5OBP7OM.js");
1503
1505
  await deleteFileAction(key, thunkAPI);
1504
1506
  },
1505
1507
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {