nolo-cli 0.223.0-alpha.1 → 0.224.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 (141) hide show
  1. package/{_executeModel-4GGQQHOB.js → _executeModel-4WBUORCW.js} +40 -39
  2. package/{addContentAction-GDHDOF4U.js → addContentAction-EQXMFNPR.js} +4 -4
  3. package/{addDialogAgentAction-CAKRU3ZT.js → addDialogAgentAction-RSDZDASD.js} +3 -3
  4. package/{agentDeleteCommand-BPV2XZL7.js → agentDeleteCommand-BB6KU5AO.js} +58 -57
  5. package/{agentEmailCommands-EJOS75YL.js → agentEmailCommands-KMHPL6OH.js} +55 -54
  6. package/{agentListCommands-HIZODBF3.js → agentListCommands-5UNM7CGG.js} +27 -27
  7. package/{agentMachineCommands-ZMQ2CY7Y.js → agentMachineCommands-OC5D4YZW.js} +23 -23
  8. package/{agentProviderCommands-WKJOAWBP.js → agentProviderCommands-ZCH37KAL.js} +2 -2
  9. package/{agentRecordCommands-OMXVDLDX.js → agentRecordCommands-S2IVVEES.js} +54 -53
  10. package/{agentRunCommand-CB34YWMV.js → agentRunCommand-M22Y3D5U.js} +55 -53
  11. package/{agentRunControl-JNONH3RP.js → agentRunControl-QDFW5P2T.js} +6 -6
  12. package/{agentRuntimeLocal-QZPFWMLG.js → agentRuntimeLocal-SD7U2EGY.js} +21 -21
  13. package/{agentSlice-RD2CDU7T.js → agentSlice-AJPMMBOP.js} +4 -4
  14. package/{appDeleteCommands-QCCFDIEQ.js → appDeleteCommands-NE3NQQJL.js} +24 -24
  15. package/{appDeployCommands-V2T7TNMQ.js → appDeployCommands-2BAHY522.js} +24 -24
  16. package/{appDeployStatusCommands-6PGH7ZCG.js → appDeployStatusCommands-JTW6LZNC.js} +24 -24
  17. package/{appGetCommands-3L7WWJA6.js → appGetCommands-WKFEJO6A.js} +24 -24
  18. package/{appListCommands-ENJCK4PO.js → appListCommands-HNAZZLFX.js} +24 -24
  19. package/{authCommand-6V47SYGK.js → authCommand-VQP625QS.js} +16 -12
  20. package/{authCommands-GAJ3NIXO.js → authCommands-PAKU3CJZ.js} +5 -1
  21. package/{builtinSkillRegistry-2ECA42FC.js → builtinSkillRegistry-PXH7EGQB.js} +3 -3
  22. package/{chunk-AN74ON4G.js → chunk-2KTUDBG7.js} +1 -1
  23. package/{chunk-I7WBYGBP.js → chunk-2OLYKYNY.js} +2 -2
  24. package/{chunk-BGP2EDFG.js → chunk-4A2JIXR2.js} +1 -1
  25. package/{chunk-ON37YXGX.js → chunk-53X6PS42.js} +8 -8
  26. package/{chunk-2CI3ZFWD.js → chunk-5OZC7R7Y.js} +4 -4
  27. package/{chunk-5CHGAKRT.js → chunk-5R63B62U.js} +4 -4
  28. package/{chunk-ODJ7BVSI.js → chunk-652XYZGP.js} +3 -3
  29. package/{chunk-6WU5572L.js → chunk-6D7NVU66.js} +3 -3
  30. package/{chunk-DVQH4BTR.js → chunk-6E2NWYT4.js} +5 -1
  31. package/{chunk-27PCUMJI.js → chunk-6NKA6RKF.js} +1 -1
  32. package/{chunk-I4EADJ4P.js → chunk-6RQFZCKH.js} +16 -16
  33. package/{chunk-MYHNBEXD.js → chunk-AFHOCBSP.js} +1 -1
  34. package/{chunk-44X52WOJ.js → chunk-AVHRSJUH.js} +2 -2
  35. package/{chunk-SQYIK6HO.js → chunk-BGGHA5DV.js} +1 -1
  36. package/chunk-BJF2MHJ3.js +118 -0
  37. package/{chunk-B4GOW4MT.js → chunk-BKJSRO66.js} +26 -26
  38. package/{chunk-4DESLZTK.js → chunk-CXDPIPZ4.js} +2 -2
  39. package/{chunk-QNWG52I4.js → chunk-DJSTBAOU.js} +4 -4
  40. package/{chunk-WJVYAO6P.js → chunk-EGXPAWLG.js} +1 -1
  41. package/{chunk-SVT62ULE.js → chunk-EK7PGVPY.js} +13 -13
  42. package/{chunk-FS2XP5D7.js → chunk-EOWLBDY6.js} +1 -1
  43. package/{chunk-GYVCJABP.js → chunk-EVYGYDPG.js} +5 -5
  44. package/{chunk-EIAI3PPH.js → chunk-FRSBYNWI.js} +2 -2
  45. package/{chunk-MDLS23JK.js → chunk-G2EJ7NL4.js} +2 -2
  46. package/{chunk-UB3D4TRQ.js → chunk-GGKNJ42M.js} +2 -2
  47. package/{chunk-DNKTQ3IN.js → chunk-GIABSSWQ.js} +1 -1
  48. package/{chunk-PJCIP64Z.js → chunk-GNHMRBYZ.js} +1 -1
  49. package/{chunk-AD5EWDFD.js → chunk-GVGOEMNV.js} +1 -1
  50. package/{chunk-XWVCYUUU.js → chunk-H5LWB3D3.js} +7 -117
  51. package/{chunk-AIHYNKGV.js → chunk-H7R3365N.js} +3 -3
  52. package/{chunk-RDH5CQ4T.js → chunk-HCJFGH6Y.js} +3 -3
  53. package/{chunk-O6J3OTOP.js → chunk-HJAGA3GR.js} +3 -3
  54. package/{chunk-3LMUPOHG.js → chunk-IWH5SOU4.js} +2 -2
  55. package/{chunk-FJK526XH.js → chunk-IWQAOW2X.js} +2 -2
  56. package/{chunk-F3GRJO4Z.js → chunk-J6T25AJ6.js} +1 -1
  57. package/{chunk-SY3C4SQ7.js → chunk-JC5XLWZK.js} +3 -3
  58. package/{chunk-HYIETXA6.js → chunk-JVRQ6YVK.js} +1 -1
  59. package/{chunk-2GJKRKI6.js → chunk-K5FNYHZC.js} +1 -1
  60. package/{chunk-7ET2U67U.js → chunk-KN3HEZIQ.js} +1 -1
  61. package/{chunk-7EEZJ6BS.js → chunk-KOXKKHFE.js} +1 -1
  62. package/{chunk-LVL6GFCM.js → chunk-KPAFQHRT.js} +3 -3
  63. package/{chunk-2UCBGYO4.js → chunk-LE6LGAJE.js} +1 -1
  64. package/{chunk-X7UF53VA.js → chunk-ME4XUFTD.js} +3 -3
  65. package/{chunk-MBG66ZBH.js → chunk-MOMR7NMG.js} +1 -1
  66. package/{chunk-AQZ6BMRK.js → chunk-OGHP3CTL.js} +1 -1
  67. package/{chunk-DWX2HEVC.js → chunk-OK4MZRJ6.js} +14 -14
  68. package/{chunk-7JLY4WYF.js → chunk-OOF7XDZF.js} +2 -2
  69. package/{chunk-34J5K2YA.js → chunk-OXKUPBAQ.js} +2 -2
  70. package/{chunk-MAIITKBT.js → chunk-PFJNLBRU.js} +2 -2
  71. package/{chunk-JA3ICVJY.js → chunk-PVZY6P3S.js} +1 -1
  72. package/{chunk-IILMY4W4.js → chunk-PYIMOZSX.js} +3 -3
  73. package/{chunk-CIRB724Q.js → chunk-Q6HOUF4O.js} +1 -1
  74. package/{chunk-FYF2TONJ.js → chunk-Q7WP5RPC.js} +1 -1
  75. package/{chunk-YWWDC3O7.js → chunk-QG3USDTD.js} +5 -5
  76. package/{chunk-WAE3GFCJ.js → chunk-QLFCTYRH.js} +1 -1
  77. package/{chunk-NWP2OYOX.js → chunk-RXJ26SQW.js} +4 -4
  78. package/{chunk-MZLE5HQ3.js → chunk-S7RA7A4X.js} +26 -25
  79. package/{chunk-YU4ZPWVF.js → chunk-SASHAZ67.js} +1 -1
  80. package/chunk-SH3IKNCG.js +100 -0
  81. package/{chunk-MS4NZNKI.js → chunk-SJYK3LLP.js} +4 -4
  82. package/{chunk-OBWT45ZU.js → chunk-SRL56PI2.js} +3 -3
  83. package/{chunk-T6DXNI6Z.js → chunk-SYQR7FQS.js} +2 -2
  84. package/{chunk-WKGQSYTB.js → chunk-TRWT3EE3.js} +1 -1
  85. package/{chunk-Z2PITYZN.js → chunk-TVFRV3UQ.js} +16 -16
  86. package/{chunk-3IK6ILVW.js → chunk-UJKTI5PG.js} +6 -6
  87. package/{chunk-P5ZJRTCH.js → chunk-ULK35M44.js} +30 -30
  88. package/{chunk-KQSYAIZR.js → chunk-UMRI2IRY.js} +3 -3
  89. package/{chunk-CKG3PRZ7.js → chunk-VALBGPM6.js} +106 -50
  90. package/{chunk-WI67URFP.js → chunk-WOIURUUV.js} +4 -4
  91. package/{chunk-WUUH4LWZ.js → chunk-XUJZYUIM.js} +9 -9
  92. package/{chunk-NIZ2BXFD.js → chunk-XWGDCWXY.js} +2 -2
  93. package/{chunk-PJVKMGPZ.js → chunk-ZLNHUFOF.js} +133 -106
  94. package/{chunk-CMZ3Z5PT.js → chunk-ZLOSGVCQ.js} +3 -3
  95. package/{cliAgentConfigHelpers-TKYL43MT.js → cliAgentConfigHelpers-PO3MVDME.js} +7 -7
  96. package/{cliLocalAgentRecordReader-MHHD4T7R.js → cliLocalAgentRecordReader-Z7CH4K4R.js} +25 -25
  97. package/{commandRegistry-5DA5UP7S.js → commandRegistry-3JVE76K2.js} +61 -61
  98. package/{contentThunks-5GUQ7FWJ.js → contentThunks-SRKUHSBR.js} +17 -17
  99. package/{createAgentAutomationAction-UCLTHQRI.js → createAgentAutomationAction-B4BQV46J.js} +17 -17
  100. package/{createDialogAction-UPN774AF.js → createDialogAction-IONSKZIX.js} +19 -18
  101. package/{createPageAction-JRQ2TA4O.js → createPageAction-K75KBQOO.js} +18 -18
  102. package/{dbSlice-WNON7TOL.js → dbSlice-ZJPDIFER.js} +3 -3
  103. package/{dialogCommands-VRI7VCXH.js → dialogCommands-6KQEBHSG.js} +26 -26
  104. package/{dialogNotifyCommand-6TMCX4D2.js → dialogNotifyCommand-WIZFFEY3.js} +8 -8
  105. package/{dialogSlice-LFNVUSAN.js → dialogSlice-GPALSBQM.js} +15 -15
  106. package/{docCreateCommands-AMPXMOX3.js → docCreateCommands-XZOLWBRC.js} +23 -23
  107. package/{docDeleteCommands-I5WFAEHP.js → docDeleteCommands-ZSO4LGWE.js} +24 -24
  108. package/{docReadCommands-X53ELNIE.js → docReadCommands-TTMXCDER.js} +23 -23
  109. package/{docStore-2VAWVLWH.js → docStore-O43KOHIX.js} +4 -4
  110. package/{docUpdateCommands-6QPNDC7M.js → docUpdateCommands-PRG6WOXL.js} +23 -23
  111. package/{getPricing-MB2GBXOK.js → getPricing-YH3VMSVU.js} +3 -3
  112. package/{handleSendMessageAction-AAJOHXOB.js → handleSendMessageAction-I2GHUSHZ.js} +34 -34
  113. package/{hostCredentialCreate-GLMJ22M6.js → hostCredentialCreate-V775SKCE.js} +54 -53
  114. package/index.js +4 -4
  115. package/{localRuntimeAdapter-BMP57P42.js → localRuntimeAdapter-SAMUDW5S.js} +53 -52
  116. package/{machineCommands-3MLIAK5Q.js → machineCommands-ZXZWGMFE.js} +54 -53
  117. package/{machineWsRunDispatch-FKIGROQF.js → machineWsRunDispatch-3ZEI4BEC.js} +54 -53
  118. package/{memberThunks-ZGLZ36PK.js → memberThunks-JRYNONYV.js} +5 -5
  119. package/{models-ULVWLSQ6.js → models-CXINDUJA.js} +2 -2
  120. package/package.json +1 -1
  121. package/{projectArchive-HK63GMF4.js → projectArchive-V7EYBAX6.js} +18 -18
  122. package/{providerPresetApply-OIFQ73LH.js → providerPresetApply-SHT2SUVB.js} +5 -5
  123. package/{providerRegistry-KZ3SDZ3D.js → providerRegistry-TA7EGCVZ.js} +5 -5
  124. package/{read-MRQHJMJ2.js → read-Q7GOHGNP.js} +2 -2
  125. package/{readDocTool-4BGTXTXA.js → readDocTool-Z5OQ6422.js} +1 -1
  126. package/{readlineWorkspace-AKAHSCNY.js → readlineWorkspace-S4VRNWYG.js} +65 -63
  127. package/{removeDialogAgentAction-B6H7DXFM.js → removeDialogAgentAction-U3F2MNAY.js} +4 -4
  128. package/{runAgentClientLoop-UVAWGEON.js → runAgentClientLoop-MQLOUDF5.js} +37 -36
  129. package/{runtimeDoctorCommands-FW6XKDUG.js → runtimeDoctorCommands-I47JN4HS.js} +5 -5
  130. package/{setDialogExtraReferencesAction-EVCY3TRW.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +4 -4
  131. package/{setPrimaryDialogAgentAction-KPFVPHCJ.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +4 -4
  132. package/{settingThunks-ENOAK2WV.js → settingThunks-AXTBX3Q5.js} +7 -7
  133. package/{spaceCommands-DTTNAS2L.js → spaceCommands-IB6FKWIC.js} +23 -23
  134. package/{streamAgentChatTurn-R5UY25VB.js → streamAgentChatTurn-GMNIKJVL.js} +45 -44
  135. package/{switchDialogAgentAction-SZ44XDRY.js → switchDialogAgentAction-UOFIAGPL.js} +3 -3
  136. package/{tools-HWFG6GMJ.js → tools-MWIF3S4T.js} +31 -30
  137. package/{tuiSummaryLlmCaller-HQQZAMYF.js → tuiSummaryLlmCaller-7LWYTHLM.js} +12 -12
  138. package/{updateDialogTitleAction-KNPOAMVS.js → updateDialogTitleAction-ZXHMZFSX.js} +17 -17
  139. package/{usageCommand-FWZCB7AM.js → usageCommand-RVKHEPLU.js} +1 -1
  140. package/{usageRebuildCommand-SP2BLNJU.js → usageRebuildCommand-GRAFOZF2.js} +2 -2
  141. package/{workloadLifecycle-DYNEYHV5.js → workloadLifecycle-O2I3NZ2Q.js} +3 -3
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-UAD2WT54.js";
7
7
  import {
8
8
  toTimestampMs
9
- } from "./chunk-44X52WOJ.js";
9
+ } from "./chunk-AVHRSJUH.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-I7WBYGBP.js";
3
+ } from "./chunk-2OLYKYNY.js";
4
4
 
5
5
  // packages/cli/client/localRuntimeHelpers.ts
6
6
  var REMOTE_DIALOG_SYNC_TIMEOUT_MS = 1e4;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildStaticUserPolicyContext,
3
3
  resolveSpaceContextPreloadPlan
4
- } from "./chunk-ODJ7BVSI.js";
4
+ } from "./chunk-652XYZGP.js";
5
5
  import {
6
6
  fetchReferenceContents,
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-GYVCJABP.js";
10
+ } from "./chunk-EVYGYDPG.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -18,32 +18,32 @@ import {
18
18
  selectSpaceContextLevel,
19
19
  selectUserTonePreset,
20
20
  uiCardFallback
21
- } from "./chunk-ON37YXGX.js";
21
+ } from "./chunk-53X6PS42.js";
22
22
  import {
23
23
  getDocState
24
- } from "./chunk-IILMY4W4.js";
24
+ } from "./chunk-PYIMOZSX.js";
25
25
  import {
26
26
  resolveToolBaseUrl
27
27
  } from "./chunk-4JVNURX4.js";
28
28
  import {
29
29
  getTableState
30
- } from "./chunk-YWWDC3O7.js";
30
+ } from "./chunk-QG3USDTD.js";
31
31
  import {
32
32
  PERSONALIZATION_DIALOG_CATEGORY,
33
33
  buildPersonalizationDialogPolicyContext,
34
34
  selectAllMsgs
35
- } from "./chunk-MZLE5HQ3.js";
35
+ } from "./chunk-S7RA7A4X.js";
36
36
  import {
37
37
  getCurrentSpaceIdRaw,
38
38
  getViewMode
39
- } from "./chunk-MBG66ZBH.js";
39
+ } from "./chunk-MOMR7NMG.js";
40
40
  import {
41
41
  selectPendingFiles
42
42
  } from "./chunk-S2NTVGA2.js";
43
43
  import {
44
44
  read,
45
45
  selectById
46
- } from "./chunk-44X52WOJ.js";
46
+ } from "./chunk-AVHRSJUH.js";
47
47
  import {
48
48
  getSessionSnapshotForState,
49
49
  selectIdentityUserBalance,
@@ -55,15 +55,15 @@ import {
55
55
  import {
56
56
  resolveAgentRecommendedSkillNames,
57
57
  resolveAgentRequiredPackIds
58
- } from "./chunk-FS2XP5D7.js";
58
+ } from "./chunk-EOWLBDY6.js";
59
59
  import {
60
60
  attachmentKind,
61
61
  extractReferenceKeysFromMessage,
62
62
  normalizeAttachmentPart
63
- } from "./chunk-NIZ2BXFD.js";
63
+ } from "./chunk-XWGDCWXY.js";
64
64
  import {
65
65
  getModelContextWindow
66
- } from "./chunk-RDH5CQ4T.js";
66
+ } from "./chunk-HCJFGH6Y.js";
67
67
  import {
68
68
  asRecordOrEmpty
69
69
  } from "./chunk-KX6YBIHG.js";
@@ -79,7 +79,7 @@ import {
79
79
  expandEnabledPackPromptPatches,
80
80
  expandEnabledPacks,
81
81
  resolveEffectiveEnabledPacks
82
- } from "./chunk-PJCIP64Z.js";
82
+ } from "./chunk-GNHMRBYZ.js";
83
83
  import {
84
84
  canonicalizeToolNames,
85
85
  prioritizeToolNames
@@ -98,7 +98,7 @@ import {
98
98
  getModelPricing,
99
99
  getPrices,
100
100
  hasExplicitAgentPricing
101
- } from "./chunk-FJK526XH.js";
101
+ } from "./chunk-IWQAOW2X.js";
102
102
  import {
103
103
  buildLinkedSpacesSection,
104
104
  buildSpaceContextLayer
@@ -109,7 +109,7 @@ import {
109
109
  import {
110
110
  getModelConfig,
111
111
  getProviderByModelName
112
- } from "./chunk-2UCBGYO4.js";
112
+ } from "./chunk-LE6LGAJE.js";
113
113
  import {
114
114
  isRecord
115
115
  } from "./chunk-KUG52IAP.js";
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-SOF4OWDM.js";
8
8
  import {
9
9
  isSystemBuiltinTrustedAgentKey
10
- } from "./chunk-3IK6ILVW.js";
10
+ } from "./chunk-UJKTI5PG.js";
11
11
  import {
12
12
  resolveRuntimeAuthToken
13
- } from "./chunk-AQZ6BMRK.js";
13
+ } from "./chunk-OGHP3CTL.js";
14
14
  import {
15
15
  parseUserIdFromAuthToken
16
16
  } from "./chunk-2THCNKE4.js";
@@ -15,12 +15,12 @@ import {
15
15
  } from "./chunk-UKZX3NHN.js";
16
16
  import {
17
17
  getModelAbility
18
- } from "./chunk-WKGQSYTB.js";
18
+ } from "./chunk-TRWT3EE3.js";
19
19
  import {
20
20
  isAntigravityOAuthAgent,
21
21
  isSubscriptionEndpoint,
22
22
  isSubscriptionOAuthCredential
23
- } from "./chunk-SY3C4SQ7.js";
23
+ } from "./chunk-JC5XLWZK.js";
24
24
  import {
25
25
  isOwnedAgentKey,
26
26
  ownedAgentKey,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-E2BESSAW.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-RDH5CQ4T.js";
13
+ } from "./chunk-HCJFGH6Y.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
@@ -18,7 +18,7 @@ import {
18
18
  PLATFORM_HOSTED_KIMI_K3_MODEL,
19
19
  isFireworksKimiModel,
20
20
  isNoloHostedProvider
21
- } from "./chunk-CKG3PRZ7.js";
21
+ } from "./chunk-VALBGPM6.js";
22
22
  import {
23
23
  asTrimmedLowercaseString
24
24
  } from "./chunk-QSJ3HFEF.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-44X52WOJ.js";
8
+ } from "./chunk-AVHRSJUH.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-44X52WOJ.js";
10
+ } from "./chunk-AVHRSJUH.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-5GUQ7FWJ.js");
338
+ const { updateContentTitle } = await import("./contentThunks-SRKUHSBR.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-JRQ2TA4O.js");
381
+ const { createPageAction } = await import("./createPageAction-K75KBQOO.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-I7WBYGBP.js";
3
+ } from "./chunk-2OLYKYNY.js";
4
4
  import {
5
5
  getCredentialsDir
6
6
  } from "./chunk-G7Y4GXTY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-27PCUMJI.js";
3
+ } from "./chunk-6NKA6RKF.js";
4
4
  import {
5
5
  t
6
6
  } from "./chunk-OB6DVWPF.js";
@@ -2,13 +2,13 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-MZLE5HQ3.js";
5
+ } from "./chunk-S7RA7A4X.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
9
9
  getCurrentSpaceIdRaw,
10
10
  updateCurrentSpaceIfMatch
11
- } from "./chunk-MBG66ZBH.js";
11
+ } from "./chunk-MOMR7NMG.js";
12
12
  import {
13
13
  require_formatISO
14
14
  } from "./chunk-UVLYNWIE.js";
@@ -26,7 +26,7 @@ import {
26
26
  patchIndividualContentRecord,
27
27
  readContentRecordForSpaceSync,
28
28
  syncContentRecordSpaceId
29
- } from "./chunk-JA3ICVJY.js";
29
+ } from "./chunk-PVZY6P3S.js";
30
30
  import {
31
31
  createSpaceKey,
32
32
  normalizeSpaceId
@@ -39,7 +39,7 @@ import {
39
39
  uploadFileAction,
40
40
  upsertSSREntity,
41
41
  write
42
- } from "./chunk-44X52WOJ.js";
42
+ } from "./chunk-AVHRSJUH.js";
43
43
  import {
44
44
  resolveFileCategory
45
45
  } from "./chunk-3PVYUPXK.js";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-7DPNBQSV.js";
75
75
  import {
76
76
  isSystemAdmin
77
- } from "./chunk-7ET2U67U.js";
77
+ } from "./chunk-KN3HEZIQ.js";
78
78
  import {
79
79
  extractUserId
80
80
  } from "./chunk-M2EJHDJP.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-7DPNBQSV.js";
23
23
  import {
24
24
  isBuiltinPlatformAgentKey
25
- } from "./chunk-3IK6ILVW.js";
25
+ } from "./chunk-UJKTI5PG.js";
26
26
  import {
27
27
  NOLO_CLUSTER_SERVERS,
28
28
  normalizeKnownServerOrigin
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-44X52WOJ.js";
4
+ } from "./chunk-AVHRSJUH.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-4GGQQHOB.js");
461
+ const { _executeModel } = await import("./_executeModel-4WBUORCW.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-UVAWGEON.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-MQLOUDF5.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-R5UY25VB.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-GMNIKJVL.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -14,13 +14,13 @@ import {
14
14
  } from "./chunk-523DITKR.js";
15
15
  import {
16
16
  runLlm
17
- } from "./chunk-NWP2OYOX.js";
17
+ } from "./chunk-RXJ26SQW.js";
18
18
  import {
19
19
  isMediaToolConfirmation
20
20
  } from "./chunk-QYPE3TS3.js";
21
21
  import {
22
22
  cleanupCliSessionForDialog
23
- } from "./chunk-AD5EWDFD.js";
23
+ } from "./chunk-GVGOEMNV.js";
24
24
  import {
25
25
  getActiveDialogAgentId,
26
26
  getDialogAgentIds,
@@ -50,7 +50,7 @@ import {
50
50
  } from "./chunk-HXER7YJF.js";
51
51
  import {
52
52
  addContentAction
53
- } from "./chunk-JA3ICVJY.js";
53
+ } from "./chunk-PVZY6P3S.js";
54
54
  import {
55
55
  patch,
56
56
  read,
@@ -58,7 +58,7 @@ import {
58
58
  selectById,
59
59
  upload,
60
60
  write
61
- } from "./chunk-44X52WOJ.js";
61
+ } from "./chunk-AVHRSJUH.js";
62
62
  import {
63
63
  getRuntimeServerContext,
64
64
  parseOwnerUserIdFromDbKey,
@@ -93,7 +93,7 @@ import {
93
93
  import {
94
94
  applyBuiltinAgentRuntimeOverride,
95
95
  resolveBuiltinPlatformAgentRecord
96
- } from "./chunk-HYIETXA6.js";
96
+ } from "./chunk-JVRQ6YVK.js";
97
97
  import {
98
98
  DEFAULT_AUTO_EXECUTION_PROFILE,
99
99
  EMPTY_ASSISTANT_FALLBACK_MESSAGE,
@@ -108,7 +108,7 @@ import {
108
108
  isCodexOAuthAgent,
109
109
  normalizeAttachmentPart,
110
110
  resolveAutoExecutionProfile
111
- } from "./chunk-NIZ2BXFD.js";
111
+ } from "./chunk-XWGDCWXY.js";
112
112
  import {
113
113
  isDevinOAuthAgent
114
114
  } from "./chunk-5ZUL4CUO.js";
@@ -128,7 +128,7 @@ import {
128
128
  runSummaryWithContract,
129
129
  selectSummaryRoute,
130
130
  serializeMessageContent
131
- } from "./chunk-RDH5CQ4T.js";
131
+ } from "./chunk-HCJFGH6Y.js";
132
132
  import {
133
133
  isOAuthApiKeyRef
134
134
  } from "./chunk-UKZX3NHN.js";
@@ -140,10 +140,10 @@ import {
140
140
  } from "./chunk-7DPNBQSV.js";
141
141
  import {
142
142
  nolotusId
143
- } from "./chunk-7ET2U67U.js";
143
+ } from "./chunk-KN3HEZIQ.js";
144
144
  import {
145
145
  isBuiltinPlatformAgentKey
146
- } from "./chunk-3IK6ILVW.js";
146
+ } from "./chunk-UJKTI5PG.js";
147
147
  import {
148
148
  extractCustomId,
149
149
  extractUserId
@@ -173,7 +173,7 @@ import {
173
173
  import {
174
174
  findModelConfig,
175
175
  getModelConfig
176
- } from "./chunk-2UCBGYO4.js";
176
+ } from "./chunk-LE6LGAJE.js";
177
177
  import {
178
178
  isRecord
179
179
  } from "./chunk-KUG52IAP.js";
@@ -194,7 +194,7 @@ import {
194
194
  isPlatformManagedProvider,
195
195
  resolvePlatformEffectiveModel,
196
196
  resolvePlatformHostedRouting
197
- } from "./chunk-CKG3PRZ7.js";
197
+ } from "./chunk-VALBGPM6.js";
198
198
  import {
199
199
  asTrimmedLowercaseString
200
200
  } from "./chunk-QSJ3HFEF.js";
@@ -14426,7 +14426,7 @@ var messageSlice = createSliceWithThunks({
14426
14426
  runtimeOptions: args.runtimeOptions
14427
14427
  });
14428
14428
  if (agentKeyToUse) {
14429
- const { streamAgentChatTurn } = await import("./agentSlice-RD2CDU7T.js");
14429
+ const { streamAgentChatTurn } = await import("./agentSlice-AJPMMBOP.js");
14430
14430
  await dispatch(
14431
14431
  streamAgentChatTurn({
14432
14432
  agentKey: agentKeyToUse,
@@ -14692,11 +14692,12 @@ var calculateCanonicalInputTotalCost = (resolvedPrice, usage, externalPrice) =>
14692
14692
  }
14693
14693
  };
14694
14694
  };
14695
+ var CANONICAL_INPUT_TOTAL_USAGE_PROVIDERS = /* @__PURE__ */ new Set(["cloudflare", "openai"]);
14695
14696
  var resolvePlatformCloudflareCacheCost = (modelName, resolvedPrice, usage, externalPrice) => {
14696
14697
  const routing = resolvePlatformHostedRouting(modelName);
14697
- const isCloudflareUpstream = routing?.usageProvider === "cloudflare";
14698
+ const usesCanonicalInputTotal = typeof routing?.usageProvider === "string" && CANONICAL_INPUT_TOTAL_USAGE_PROVIDERS.has(routing.usageProvider);
14698
14699
  const hasExplicitCachingPrices = typeof resolvedPrice.cachingWrite === "number" && typeof resolvedPrice.cachingRead === "number";
14699
- if (!isCloudflareUpstream || !hasExplicitCachingPrices) return null;
14700
+ if (!usesCanonicalInputTotal || !hasExplicitCachingPrices) return null;
14700
14701
  return calculateCanonicalInputTotalCost(resolvedPrice, usage, externalPrice);
14701
14702
  };
14702
14703
  var calculateSimpleCost = (resolvedPrice, usage, externalPrice) => {
@@ -15558,7 +15559,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15558
15559
  }
15559
15560
  if (isCurrentDialog) {
15560
15561
  await thunkApi.dispatch(resetMsgs());
15561
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LFNVUSAN.js");
15562
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-GPALSBQM.js");
15562
15563
  dispatch(clearPendingAttachments2());
15563
15564
  }
15564
15565
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15566,39 +15567,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15566
15567
 
15567
15568
  // packages/chat/dialog/dialogSlice.ts
15568
15569
  var runCreateDialogAction = async (args, thunkApi) => {
15569
- const { createDialogAction } = await import("./createDialogAction-UPN774AF.js");
15570
+ const { createDialogAction } = await import("./createDialogAction-IONSKZIX.js");
15570
15571
  return createDialogAction(args, thunkApi);
15571
15572
  };
15572
15573
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15573
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-UCLTHQRI.js");
15574
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-B4BQV46J.js");
15574
15575
  return createAgentAutomationAction(args, thunkApi);
15575
15576
  };
15576
15577
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15577
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-KNPOAMVS.js");
15578
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-ZXHMZFSX.js");
15578
15579
  return updateDialogTitleAction(args, thunkApi);
15579
15580
  };
15580
15581
  var runAddDialogAgentAction = async (args, thunkApi) => {
15581
- const { addDialogAgentAction } = await import("./addDialogAgentAction-CAKRU3ZT.js");
15582
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-RSDZDASD.js");
15582
15583
  return addDialogAgentAction(args, thunkApi);
15583
15584
  };
15584
15585
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15585
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-B6H7DXFM.js");
15586
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-U3F2MNAY.js");
15586
15587
  return removeDialogAgentAction(args, thunkApi);
15587
15588
  };
15588
15589
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15589
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-KPFVPHCJ.js");
15590
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-6FHAHZBB.js");
15590
15591
  return setPrimaryDialogAgentAction(args, thunkApi);
15591
15592
  };
15592
15593
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15593
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-SZ44XDRY.js");
15594
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-UOFIAGPL.js");
15594
15595
  return switchDialogAgentAction(args, thunkApi);
15595
15596
  };
15596
15597
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15597
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-EVCY3TRW.js");
15598
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-G3WSJ7EM.js");
15598
15599
  return setDialogExtraReferencesAction(args, thunkApi);
15599
15600
  };
15600
15601
  var runHandleSendMessageAction = async (args, thunkApi) => {
15601
- const { handleSendMessageAction } = await import("./handleSendMessageAction-AAJOHXOB.js");
15602
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-I2GHUSHZ.js");
15602
15603
  return handleSendMessageAction(args, thunkApi);
15603
15604
  };
15604
15605
  function clearDialogState() {
@@ -15611,7 +15612,7 @@ var createPageAndAddReference = createAsyncThunk(
15611
15612
  async (payload, { dispatch, getState, rejectWithValue }) => {
15612
15613
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15613
15614
  try {
15614
- const { createDocState } = await import("./docStore-2VAWVLWH.js");
15615
+ const { createDocState } = await import("./docStore-O43KOHIX.js");
15615
15616
  const pageKey = await createDocState(
15616
15617
  { slateData, title },
15617
15618
  { dispatch, getState }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveAgentImageInputSupport
3
- } from "./chunk-OBWT45ZU.js";
3
+ } from "./chunk-SRL56PI2.js";
4
4
  import {
5
5
  TOOL_HAD_IMAGES,
6
6
  hadToolImages
@@ -0,0 +1,100 @@
1
+ import {
2
+ loadMemoryVNextCatalog
3
+ } from "./chunk-XI2BWJM5.js";
4
+ import {
5
+ recallMemoryVNextLocal
6
+ } from "./chunk-YL3EFYL3.js";
7
+ import {
8
+ DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
9
+ buildMemoryOverlay
10
+ } from "./chunk-EUCFKKDM.js";
11
+ import {
12
+ createMemoryKey
13
+ } from "./chunk-SYTHYBMI.js";
14
+
15
+ // packages/ai/memory/storeShared.ts
16
+ var retrievalCountOf = (item) => item.activationCount ?? 0;
17
+ var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
18
+ if (items.length === 0) return;
19
+ const batch = db.batch();
20
+ for (const item of items) {
21
+ batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
22
+ ...item,
23
+ // retrieval bookkeeping on legacy storage names — see doc comment above
24
+ lastActivatedAt: now,
25
+ activationCount: retrievalCountOf(item) + 1
26
+ });
27
+ }
28
+ await batch.write();
29
+ };
30
+
31
+ // packages/ai/memory/remember.ts
32
+ var RESIDENT_MAX_CONTENT_CHARS = 240;
33
+
34
+ // packages/ai/memory/vnext/pureVNextRuntime.ts
35
+ function deriveStateResident(state, ownerType) {
36
+ if (ownerType !== "user") return false;
37
+ if (state.text.trim().length > RESIDENT_MAX_CONTENT_CHARS) return false;
38
+ return state.facet === "preference" || state.facet === "style";
39
+ }
40
+ var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
41
+ id: `vnext-state-${state.id}`,
42
+ ownerType,
43
+ ownerId,
44
+ visibility: "private",
45
+ subjectType: "user",
46
+ subjectId: ownerId,
47
+ kind: "semantic",
48
+ content: state.text.trim(),
49
+ createdAt: state.createdAt,
50
+ lastActivatedAt: state.createdAt,
51
+ activationCount: 1,
52
+ importance: 0.9,
53
+ confidence: 0.9,
54
+ resident: deriveStateResident(state, ownerType)
55
+ });
56
+ async function resolvePureVNextRuntime(input) {
57
+ const { db, owners, userInput } = input;
58
+ if (owners.length === 0 || !userInput.trim()) {
59
+ return { selectedItems: [], promptBlock: null, recalledStateCount: 0 };
60
+ }
61
+ const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
62
+ const catalogs = await Promise.all(
63
+ ownerIds.map((ownerId) => loadMemoryVNextCatalog(db, ownerId))
64
+ );
65
+ const selectedItems = [];
66
+ const seenStateKeys = /* @__PURE__ */ new Set();
67
+ for (let i = 0; i < owners.length; i++) {
68
+ const owner = owners[i];
69
+ const catalog = catalogs[i];
70
+ const currentStates = catalog.states.filter((s) => !s.retiredAt && s.text.trim());
71
+ const hits = recallMemoryVNextLocal({
72
+ query: userInput,
73
+ entities: catalog.entities,
74
+ states: currentStates
75
+ });
76
+ const entityById = new Map(catalog.entities.map((e) => [e.id, e]));
77
+ for (const hit of hits) {
78
+ const stateKey = `${hit.state.ownerId}\0${hit.state.id}`;
79
+ if (seenStateKeys.has(stateKey)) continue;
80
+ seenStateKeys.add(stateKey);
81
+ selectedItems.push(
82
+ buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
83
+ );
84
+ }
85
+ }
86
+ const promptBlock = selectedItems.length === 0 ? null : buildMemoryOverlay(selectedItems, {
87
+ maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
88
+ });
89
+ return {
90
+ selectedItems,
91
+ promptBlock,
92
+ recalledStateCount: selectedItems.length
93
+ };
94
+ }
95
+
96
+ export {
97
+ touchMemoryItemsInDb,
98
+ deriveStateResident,
99
+ resolvePureVNextRuntime
100
+ };
@@ -14,16 +14,16 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-YWWDC3O7.js";
17
+ } from "./chunk-QG3USDTD.js";
18
18
  import {
19
19
  runtime_default
20
- } from "./chunk-MZLE5HQ3.js";
20
+ } from "./chunk-S7RA7A4X.js";
21
21
  import {
22
22
  getCurrentSpaceId
23
- } from "./chunk-MBG66ZBH.js";
23
+ } from "./chunk-MOMR7NMG.js";
24
24
  import {
25
25
  write
26
- } from "./chunk-44X52WOJ.js";
26
+ } from "./chunk-AVHRSJUH.js";
27
27
  import {
28
28
  selectIdentityUserId
29
29
  } from "./chunk-PXYBUFDB.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  resolveAgentCallPlan
3
- } from "./chunk-KQSYAIZR.js";
3
+ } from "./chunk-UMRI2IRY.js";
4
4
  import {
5
5
  SUBSCRIPTION_OAUTH_PROVIDERS
6
- } from "./chunk-SY3C4SQ7.js";
6
+ } from "./chunk-JC5XLWZK.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
10
- } from "./chunk-2UCBGYO4.js";
10
+ } from "./chunk-LE6LGAJE.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-MYHNBEXD.js";
10
+ } from "./chunk-AFHOCBSP.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
@@ -62,7 +62,7 @@ import {
62
62
  } from "./chunk-OB6DVWPF.js";
63
63
  import {
64
64
  resolveRunsDir
65
- } from "./chunk-2GJKRKI6.js";
65
+ } from "./chunk-K5FNYHZC.js";
66
66
  import {
67
67
  toErrorMessage
68
68
  } from "./chunk-HNMXYYJR.js";
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-CKG3PRZ7.js";
7
+ } from "./chunk-VALBGPM6.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {