nolo-cli 0.147.0-alpha.1 → 0.148.0-alpha.1

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 (102) hide show
  1. package/{_executeModel-MQFQCXIE.js → _executeModel-NFJAMAGJ.js} +29 -28
  2. package/{action-3ZOODRBC.js → action-GI44T4DR.js} +6 -6
  3. package/{addContentAction-IJHG2ZV7.js → addContentAction-B2DRF7P6.js} +5 -5
  4. package/{addDialogAgentAction-RLPSTAQ2.js → addDialogAgentAction-2P2FLTLD.js} +4 -4
  5. package/{agentDeleteCommand-6OGADD24.js → agentDeleteCommand-7IDWF6E3.js} +14 -13
  6. package/{agentEmailCommands-SV276XHA.js → agentEmailCommands-4KW33JII.js} +31 -30
  7. package/{agentListCommands-FRJZOOEG.js → agentListCommands-IW3GQVUP.js} +16 -15
  8. package/{agentMachineCommands-IB2WMF3X.js → agentMachineCommands-CMQR4RQ4.js} +14 -13
  9. package/{agentProviderCommands-TWB6E5WD.js → agentProviderCommands-YK2BIIXZ.js} +1 -1
  10. package/{agentRecordCommands-D5FUBTKU.js → agentRecordCommands-4YBSYPIY.js} +31 -30
  11. package/{agentRunCommand-TNW4RJ6W.js → agentRunCommand-5MU5X5OT.js} +31 -30
  12. package/{agentRuntimeLocal-QQCDFR7B.js → agentRuntimeLocal-AK2QVJHY.js} +12 -11
  13. package/{agentSlice-L6ILXYZ3.js → agentSlice-OZ33K224.js} +5 -5
  14. package/{appDeleteCommands-OGKQC2AM.js → appDeleteCommands-N3XEVVYC.js} +15 -14
  15. package/{appDeployCommands-Y2FV4JML.js → appDeployCommands-AWFIXYVW.js} +15 -14
  16. package/{appDeployStatusCommands-FNML5SUV.js → appDeployStatusCommands-CZRON2FO.js} +15 -14
  17. package/{appGetCommands-4FOY7W5E.js → appGetCommands-XQIUY4TD.js} +15 -14
  18. package/{appListCommands-E5SF6SIY.js → appListCommands-NNG4H36Y.js} +15 -14
  19. package/{chatQueueReduxAdapter-OUCL4GQF.js → chatQueueReduxAdapter-HVHA2HPM.js} +11 -11
  20. package/{chunk-GP4TSLAB.js → chunk-2JMMBU6V.js} +27 -257
  21. package/{chunk-T76D3OYX.js → chunk-3SV7RM24.js} +1 -1
  22. package/{chunk-C4YCNZFV.js → chunk-42Z3EMC4.js} +39 -27
  23. package/{chunk-O7WXJIUI.js → chunk-4H22P2JV.js} +11 -9
  24. package/{chunk-6RO37MST.js → chunk-523WHFSL.js} +10 -10
  25. package/{chunk-M2YBIBBS.js → chunk-5TEEECZM.js} +1 -1
  26. package/{chunk-Z7IZQF56.js → chunk-6FGTMQCL.js} +1 -1
  27. package/{chunk-ETZWFV6M.js → chunk-7CHC4W22.js} +1 -1
  28. package/{chunk-ZSPC3ZTC.js → chunk-AKG5W4LG.js} +1 -1
  29. package/{chunk-CCOXTK3I.js → chunk-ALFH24P3.js} +26 -0
  30. package/{chunk-7NANRWL4.js → chunk-ALGORS6Y.js} +1 -1
  31. package/chunk-BKWMNZ2X.js +411 -0
  32. package/{chunk-HNRASX3X.js → chunk-CPUFH46E.js} +1 -1
  33. package/{chunk-GMVELWJG.js → chunk-CU3QB4HW.js} +2 -2
  34. package/{chunk-QWYHDF4G.js → chunk-DCFPQW22.js} +2 -2
  35. package/{chunk-XA4RT4LC.js → chunk-DIXLJWCD.js} +14 -14
  36. package/{chunk-2EE5UD3N.js → chunk-DY7ANLKG.js} +1 -1
  37. package/{chunk-YAE5DQ5C.js → chunk-FWQEKRTD.js} +3 -3
  38. package/{chunk-I44MDY73.js → chunk-GOH6RW6F.js} +3 -3
  39. package/chunk-HUFPWXFW.js +1716 -0
  40. package/{chunk-QALRKMHF.js → chunk-HYZIYH2H.js} +5 -5
  41. package/{chunk-EFZKILX6.js → chunk-IAESIMK7.js} +1 -1
  42. package/{chunk-DSY37Y5Z.js → chunk-IAG4FHOJ.js} +1 -1
  43. package/{chunk-HLUYTEBY.js → chunk-K2CSUCHJ.js} +1 -1
  44. package/{chunk-NLBUI6IU.js → chunk-LPVCRQMM.js} +5 -5
  45. package/{chunk-QJLEMM2V.js → chunk-O2OWEFII.js} +1 -1
  46. package/{chunk-724HIKHT.js → chunk-OHOVNO7I.js} +4 -127
  47. package/{chunk-A7WFQXNK.js → chunk-P4BX6FFU.js} +4 -571
  48. package/{chunk-5ROO623H.js → chunk-PCVVZ2MH.js} +3 -3
  49. package/chunk-PQWU42UQ.js +132 -0
  50. package/{chunk-6HWONTC6.js → chunk-QU5A4LYX.js} +6 -6
  51. package/{chunk-QIH323EV.js → chunk-QXGPFY6J.js} +1 -1
  52. package/{chunk-B7ANJQWZ.js → chunk-RSEEDUMS.js} +2 -2
  53. package/{chunk-ELYEQNUI.js → chunk-RYZINGPM.js} +3 -3
  54. package/{chunk-AATZZAZE.js → chunk-SLLGJZDT.js} +1 -1
  55. package/{chunk-3IYMTWYZ.js → chunk-SONWNI3L.js} +2 -2
  56. package/chunk-T767MPHB.js +681 -0
  57. package/{chunk-67QZSNVD.js → chunk-T7F46O36.js} +3 -3
  58. package/{chunk-BJUDYFV5.js → chunk-UQNS32WZ.js} +1 -1
  59. package/{chunk-AUXHZ2M5.js → chunk-WIWM4FE3.js} +1 -1
  60. package/{chunk-7V2HN64K.js → chunk-WRMKCKZ3.js} +16 -14
  61. package/{chunk-YU2THNST.js → chunk-XISEYOGH.js} +1 -1
  62. package/{chunk-WSGZ4I7M.js → chunk-YUWMM4US.js} +3 -3
  63. package/{chunk-D76D3RTR.js → chunk-Z4CSIXYP.js} +2 -2
  64. package/{commandRegistry-OIUSLAJG.js → commandRegistry-YOEQUA7T.js} +42 -42
  65. package/{contentThunks-5QTQNUD2.js → contentThunks-AK2F3KNC.js} +12 -12
  66. package/{createAgentAutomationAction-YQKECXJV.js → createAgentAutomationAction-5EJL6ROU.js} +12 -12
  67. package/{createDialogAction-3NGUXFB7.js → createDialogAction-F5WEWA47.js} +13 -13
  68. package/{createPageAction-6MIKNYUH.js → createPageAction-75ELC64R.js} +12 -12
  69. package/{dbSlice-HFPIJT5P.js → dbSlice-DQ32LYTJ.js} +4 -4
  70. package/{deleteFile-UEAD5A5Z.js → deleteFile-NX6QHCWZ.js} +2 -2
  71. package/{dialogCommands-KSPH6QOU.js → dialogCommands-G7YBVAMC.js} +15 -14
  72. package/{dialogSlice-UGWF2KW6.js → dialogSlice-KSXPGJB2.js} +11 -11
  73. package/{docCreateCommands-B64BLZVJ.js → docCreateCommands-ZSLGVBZT.js} +14 -13
  74. package/{docDeleteCommands-UX2GXKUT.js → docDeleteCommands-5N4GVZBG.js} +15 -14
  75. package/{docReadCommands-5A6GF3XL.js → docReadCommands-YJSAA7AV.js} +14 -13
  76. package/{docStore-MOM2DHF5.js → docStore-AROBVRCR.js} +5 -5
  77. package/{docUpdateCommands-UTBGZPSR.js → docUpdateCommands-WEMLSW6W.js} +14 -13
  78. package/{handleSendMessageAction-QD6DK7XX.js → handleSendMessageAction-EGNWHAUB.js} +229 -45
  79. package/index.js +3 -3
  80. package/{machineCommands-42EQE5E2.js → machineCommands-ARZYKGGE.js} +30 -29
  81. package/{machineWsRunDispatch-QTUFQTZ5.js → machineWsRunDispatch-I7F4L532.js} +30 -29
  82. package/{memberThunks-SKFZ37VS.js → memberThunks-5ZXPR63F.js} +5 -5
  83. package/package.json +1 -1
  84. package/{providerPresetApply-XTEXOH7X.js → providerPresetApply-DD6NGWW6.js} +1 -1
  85. package/{providerRegistry-ADYDSLKR.js → providerRegistry-XDRLMYGJ.js} +1 -1
  86. package/{read-IEJLLUXY.js → read-EPTJRAEF.js} +2 -2
  87. package/{readDocTool-4SPYCP2Y.js → readDocTool-W4NDXNEX.js} +1 -1
  88. package/{readlineWorkspace-2QJL7CU4.js → readlineWorkspace-3XOFVARF.js} +34 -33
  89. package/{removeDialogAgentAction-R4RTGM2S.js → removeDialogAgentAction-OSYNZRX7.js} +6 -6
  90. package/{runAgentClientLoop-2EFDJHKS.js → runAgentClientLoop-UMF7VZYZ.js} +30 -28
  91. package/{setDialogExtraReferencesAction-NU2VZ7JZ.js → setDialogExtraReferencesAction-M32UYNCG.js} +5 -5
  92. package/{setPrimaryDialogAgentAction-VUY2FRVL.js → setPrimaryDialogAgentAction-WZ7KI3YA.js} +6 -6
  93. package/{settingSlice-CNE75ISY.js → settingSlice-Q6EKL7EQ.js} +5 -5
  94. package/{spaceCommands-HZUAGZXH.js → spaceCommands-UJOVU4XI.js} +14 -13
  95. package/{streamAgentChatTurn-IUFYM3LS.js → streamAgentChatTurn-GYGMYOSM.js} +71 -1268
  96. package/{switchDialogAgentAction-JC27CP72.js → switchDialogAgentAction-GMR7WN3P.js} +4 -4
  97. package/{tools-G7AM5SXM.js → tools-DU4JXVAV.js} +21 -21
  98. package/{tuiSummaryLlmCaller-RVW6CJSK.js → tuiSummaryLlmCaller-3YFNHCTW.js} +7 -7
  99. package/{updateDialogTitleAction-56P5NFOI.js → updateDialogTitleAction-4U5W4AMH.js} +12 -12
  100. package/chunk-BJ3KD73I.js +0 -155
  101. package/chunk-JK5XW3NO.js +0 -108
  102. package/chunk-YYKMFBK7.js +0 -306
@@ -5,33 +5,34 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-M2YBIBBS.js";
8
+ } from "./chunk-5TEEECZM.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-AATZZAZE.js";
13
- import "./chunk-7NANRWL4.js";
12
+ } from "./chunk-SLLGJZDT.js";
13
+ import "./chunk-ALGORS6Y.js";
14
14
  import "./chunk-OTGFTBLI.js";
15
15
  import "./chunk-SV5IJK6K.js";
16
16
  import "./chunk-VF4K2QE6.js";
17
- import "./chunk-O7WXJIUI.js";
17
+ import "./chunk-4H22P2JV.js";
18
18
  import "./chunk-P6GMCCAT.js";
19
19
  import "./chunk-ZNFJWEN4.js";
20
- import "./chunk-QIH323EV.js";
20
+ import "./chunk-QXGPFY6J.js";
21
21
  import "./chunk-GMZLP5DV.js";
22
- import "./chunk-724HIKHT.js";
22
+ import "./chunk-OHOVNO7I.js";
23
23
  import "./chunk-5ZUL4CUO.js";
24
24
  import "./chunk-CQ3WA2NE.js";
25
+ import "./chunk-PQWU42UQ.js";
25
26
  import "./chunk-2MBTWINN.js";
26
27
  import "./chunk-N7J63Q6C.js";
27
- import "./chunk-HLUYTEBY.js";
28
+ import "./chunk-K2CSUCHJ.js";
28
29
  import "./chunk-PUOC4YRO.js";
29
30
  import "./chunk-RGNEEJ3Y.js";
30
31
  import "./chunk-H6A6X4EK.js";
31
32
  import "./chunk-S5XGT6GB.js";
32
33
  import "./chunk-27ONFIEY.js";
33
- import "./chunk-ZSPC3ZTC.js";
34
- import "./chunk-ELYEQNUI.js";
34
+ import "./chunk-AKG5W4LG.js";
35
+ import "./chunk-RYZINGPM.js";
35
36
  import "./chunk-PSCNXBYA.js";
36
37
  import "./chunk-L36OWPP3.js";
37
38
  import "./chunk-BYXBJQAS.js";
@@ -40,7 +41,7 @@ import "./chunk-7KVZ5LDQ.js";
40
41
  import "./chunk-HNMXYYJR.js";
41
42
  import "./chunk-3BXNTXYI.js";
42
43
  import "./chunk-W7XHHYWM.js";
43
- import "./chunk-B7ANJQWZ.js";
44
+ import "./chunk-RSEEDUMS.js";
44
45
  import "./chunk-UAD2WT54.js";
45
46
  import "./chunk-ZWQUWF6W.js";
46
47
  import "./chunk-HDLLCBRF.js";
@@ -55,13 +56,13 @@ import "./chunk-Y6ROFCZO.js";
55
56
  import "./chunk-CYSYR67N.js";
56
57
  import "./chunk-Y3PMXGLH.js";
57
58
  import "./chunk-KX6YBIHG.js";
58
- import "./chunk-QALRKMHF.js";
59
- import "./chunk-ETZWFV6M.js";
59
+ import "./chunk-HYZIYH2H.js";
60
+ import "./chunk-7CHC4W22.js";
60
61
  import "./chunk-3AH7LNUB.js";
61
62
  import "./chunk-WWC7I6TA.js";
62
63
  import "./chunk-QSJ3HFEF.js";
63
- import "./chunk-EFZKILX6.js";
64
- import "./chunk-AUXHZ2M5.js";
64
+ import "./chunk-IAESIMK7.js";
65
+ import "./chunk-WIWM4FE3.js";
65
66
  import "./chunk-QOKAKDPE.js";
66
67
  import "./chunk-SEJ5OS6F.js";
67
68
  import "./chunk-OW765XBU.js";
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-YPREESF4.js";
5
5
  import {
6
6
  handleSendMessage
7
- } from "./chunk-C4YCNZFV.js";
7
+ } from "./chunk-42Z3EMC4.js";
8
8
  import "./chunk-523DITKR.js";
9
9
  import "./chunk-YYLHWIW6.js";
10
10
  import "./chunk-6O4IK4V2.js";
11
- import "./chunk-NLBUI6IU.js";
12
- import "./chunk-D76D3RTR.js";
11
+ import "./chunk-LPVCRQMM.js";
12
+ import "./chunk-Z4CSIXYP.js";
13
13
  import "./chunk-5RGU3J7P.js";
14
14
  import "./chunk-M76ECQRD.js";
15
15
  import {
@@ -22,8 +22,8 @@ import {
22
22
  import "./chunk-YDH3FDFQ.js";
23
23
  import "./chunk-MX574M24.js";
24
24
  import "./chunk-AGGIDPCZ.js";
25
- import "./chunk-ZSPC3ZTC.js";
26
- import "./chunk-ELYEQNUI.js";
25
+ import "./chunk-AKG5W4LG.js";
26
+ import "./chunk-RYZINGPM.js";
27
27
  import "./chunk-PSCNXBYA.js";
28
28
  import "./chunk-L36OWPP3.js";
29
29
  import "./chunk-BYXBJQAS.js";
@@ -32,22 +32,22 @@ import "./chunk-7KVZ5LDQ.js";
32
32
  import "./chunk-HNMXYYJR.js";
33
33
  import "./chunk-3BXNTXYI.js";
34
34
  import "./chunk-W7XHHYWM.js";
35
- import "./chunk-B7ANJQWZ.js";
35
+ import "./chunk-RSEEDUMS.js";
36
36
  import "./chunk-UAD2WT54.js";
37
37
  import "./chunk-ZWQUWF6W.js";
38
38
  import "./chunk-CYSYR67N.js";
39
39
  import "./chunk-Y3PMXGLH.js";
40
- import "./chunk-3IYMTWYZ.js";
40
+ import "./chunk-SONWNI3L.js";
41
41
  import "./chunk-Y5GCAMGP.js";
42
42
  import "./chunk-QDSINZM3.js";
43
43
  import "./chunk-KX6YBIHG.js";
44
- import "./chunk-QALRKMHF.js";
45
- import "./chunk-ETZWFV6M.js";
44
+ import "./chunk-HYZIYH2H.js";
45
+ import "./chunk-7CHC4W22.js";
46
46
  import "./chunk-3AH7LNUB.js";
47
47
  import "./chunk-WWC7I6TA.js";
48
48
  import "./chunk-QSJ3HFEF.js";
49
- import "./chunk-EFZKILX6.js";
50
- import "./chunk-AUXHZ2M5.js";
49
+ import "./chunk-IAESIMK7.js";
50
+ import "./chunk-WIWM4FE3.js";
51
51
  import "./chunk-QOKAKDPE.js";
52
52
  import "./chunk-SEJ5OS6F.js";
53
53
  import "./chunk-OW765XBU.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  assembleAgentDiscoveryResult,
3
3
  resolveDiscoveryScope
4
- } from "./chunk-2EE5UD3N.js";
4
+ } from "./chunk-DY7ANLKG.js";
5
5
  import {
6
6
  fetchWithTransientRetry
7
7
  } from "./chunk-5UTFL4QJ.js";
@@ -10,10 +10,14 @@ import {
10
10
  mergeAndDedupUserData
11
11
  } from "./chunk-KQHGZWSV.js";
12
12
  import {
13
+ ToolResultError,
14
+ clipMultilineText,
13
15
  createSSEParser,
16
+ fetchAndSerializeTable,
14
17
  isAgentSkillDisabled,
18
+ toolRunUpdated,
15
19
  waitForAbortableDelay
16
- } from "./chunk-BJ3KD73I.js";
20
+ } from "./chunk-BKWMNZ2X.js";
17
21
  import {
18
22
  isGatewayHttpStatus
19
23
  } from "./chunk-NF64D32W.js";
@@ -39,7 +43,7 @@ import {
39
43
  } from "./chunk-4JMDLJAD.js";
40
44
  import {
41
45
  createDialogAction
42
- } from "./chunk-5ROO623H.js";
46
+ } from "./chunk-PCVVZ2MH.js";
43
47
  import {
44
48
  addMemberSpace,
45
49
  fetchAuthoritativeRemoteSpace,
@@ -51,7 +55,7 @@ import {
51
55
  setMembershipRejected,
52
56
  setSpaceInitialized,
53
57
  updateMemberSpaceName
54
- } from "./chunk-HNRASX3X.js";
58
+ } from "./chunk-CPUFH46E.js";
55
59
  import {
56
60
  markdownToSlate
57
61
  } from "./chunk-YRRASA5Q.js";
@@ -63,10 +67,10 @@ import {
63
67
  } from "./chunk-VF4K2QE6.js";
64
68
  import {
65
69
  createDocState
66
- } from "./chunk-67QZSNVD.js";
70
+ } from "./chunk-T7F46O36.js";
67
71
  import {
68
72
  setDialogExtraReferencesAction
69
- } from "./chunk-Z7IZQF56.js";
73
+ } from "./chunk-6FGTMQCL.js";
70
74
  import {
71
75
  ToolApiError,
72
76
  buildToolRequestHeaders,
@@ -81,7 +85,7 @@ import {
81
85
  readPageFunc,
82
86
  readPageFunctionSchema,
83
87
  resolvePageReadMarkdown
84
- } from "./chunk-BJUDYFV5.js";
88
+ } from "./chunk-UQNS32WZ.js";
85
89
  import {
86
90
  extractMentionsFromSlate
87
91
  } from "./chunk-MEYIRKDN.js";
@@ -93,7 +97,6 @@ import {
93
97
  deleteContentFromSpace,
94
98
  deleteTable,
95
99
  expandCategoryInCollapsed,
96
- fetchAndCacheTableRows,
97
100
  getCollapsedCategories,
98
101
  loadTableRows,
99
102
  readStoredCollapsedCategories,
@@ -102,7 +105,7 @@ import {
102
105
  updateContentCategory,
103
106
  updateContentTitle,
104
107
  writeStoredCollapsedCategories
105
- } from "./chunk-6HWONTC6.js";
108
+ } from "./chunk-QU5A4LYX.js";
106
109
  import {
107
110
  getCurrentSpaceId,
108
111
  getCurrentSpaceIdRaw,
@@ -124,14 +127,14 @@ import {
124
127
  selectMsgById,
125
128
  uiAskChoiceFunc,
126
129
  uiAskChoiceFunctionSchema
127
- } from "./chunk-C4YCNZFV.js";
130
+ } from "./chunk-42Z3EMC4.js";
128
131
  import {
129
132
  createAgent,
130
133
  deleteServerSyncedCredential,
131
134
  runLlm,
132
135
  streamAgentChatTurn,
133
136
  updateAgent
134
- } from "./chunk-NLBUI6IU.js";
137
+ } from "./chunk-LPVCRQMM.js";
135
138
  import {
136
139
  getActiveDialogKey,
137
140
  selectCurrentDialogKey,
@@ -142,7 +145,7 @@ import {
142
145
  } from "./chunk-YDH3FDFQ.js";
143
146
  import {
144
147
  shareResourceAction
145
- } from "./chunk-GMVELWJG.js";
148
+ } from "./chunk-CU3QB4HW.js";
146
149
  import {
147
150
  listBuiltinSkills,
148
151
  resolveBuiltinSkillByName
@@ -179,7 +182,7 @@ import {
179
182
  import {
180
183
  buildDatabaseFileContentUrl,
181
184
  clipCompactText
182
- } from "./chunk-ELYEQNUI.js";
185
+ } from "./chunk-RYZINGPM.js";
183
186
  import {
184
187
  createFileCredentialBroker
185
188
  } from "./chunk-L36OWPP3.js";
@@ -198,7 +201,7 @@ import {
198
201
  UNCATEGORIZED_ID,
199
202
  addContentAction,
200
203
  checkSpaceMembership
201
- } from "./chunk-B7ANJQWZ.js";
204
+ } from "./chunk-RSEEDUMS.js";
202
205
  import {
203
206
  createSpaceKey,
204
207
  normalizeSpaceId
@@ -220,7 +223,7 @@ import {
220
223
  selectAutoApproveSelfUpdateFields,
221
224
  selectCurrentServer,
222
225
  selectSyncServers
223
- } from "./chunk-3IYMTWYZ.js";
226
+ } from "./chunk-SONWNI3L.js";
224
227
  import {
225
228
  asRecordOrEmpty
226
229
  } from "./chunk-KX6YBIHG.js";
@@ -235,7 +238,7 @@ import {
235
238
  selectEntities,
236
239
  toTimestampMs,
237
240
  write
238
- } from "./chunk-QALRKMHF.js";
241
+ } from "./chunk-HYZIYH2H.js";
239
242
  import {
240
243
  SEPARATOR,
241
244
  TYPE_STORAGE_PREFIXES,
@@ -265,7 +268,7 @@ import {
265
268
  } from "./chunk-QSJ3HFEF.js";
266
269
  import {
267
270
  readAction
268
- } from "./chunk-EFZKILX6.js";
271
+ } from "./chunk-IAESIMK7.js";
269
272
  import {
270
273
  DEVICE_LOCAL_OWNER_ID,
271
274
  createAsyncThunk,
@@ -277,7 +280,7 @@ import {
277
280
  resolveEffectiveSpaceActorId,
278
281
  resolveRecordOwnerUserId,
279
282
  selectRuntimeSnapshot
280
- } from "./chunk-AUXHZ2M5.js";
283
+ } from "./chunk-WIWM4FE3.js";
281
284
  import {
282
285
  isAbortError
283
286
  } from "./chunk-QOKAKDPE.js";
@@ -642,33 +645,6 @@ var updateAgentAutomationFunc = async () => serverOnlyResult("updateAgentAutomat
642
645
  var deleteAgentAutomationFunc = async () => serverOnlyResult("deleteAgentAutomation");
643
646
  var notifyUserFunc = async () => serverOnlyResult("notifyUser");
644
647
 
645
- // packages/ai/tools/toolResultError.ts
646
- var ToolResultError = class extends Error {
647
- code;
648
- rawData;
649
- displayData;
650
- retryable;
651
- constructor(message, options) {
652
- super(message);
653
- this.name = "ToolResultError";
654
- this.code = options?.code;
655
- this.rawData = options?.rawData;
656
- this.displayData = options?.displayData;
657
- this.retryable = options?.retryable;
658
- }
659
- };
660
- var getToolResultErrorData = (error) => {
661
- if (!error || typeof error !== "object") return null;
662
- const candidate = error;
663
- return {
664
- rawData: candidate.rawData,
665
- displayData: candidate.displayData,
666
- code: candidate.code,
667
- retryable: candidate.retryable,
668
- message: candidate.message
669
- };
670
- };
671
-
672
648
  // packages/ai/tools/agent/agentUpdateShared.ts
673
649
  var agentUpdateFieldSchemaProperties = {
674
650
  name: { type: "string", description: "Agent \u7684\u65B0\u540D\u79F0\u3002" },
@@ -3102,39 +3078,6 @@ async function importDataFunc(args, thunkApi) {
3102
3078
  }
3103
3079
  }
3104
3080
 
3105
- // packages/render/table/utils/tableSerialization.ts
3106
- var fetchAndSerializeTable = async (tableMeta, db, options = {}) => {
3107
- const tenantId = tableMeta.tenantId;
3108
- const tableId = tableMeta.tableId;
3109
- const results = await fetchAndCacheTableRows({
3110
- db,
3111
- tenantId,
3112
- tableId,
3113
- token: options.token,
3114
- remoteServers: options.remoteServers ?? []
3115
- });
3116
- const columns = tableMeta.columns || [];
3117
- const headerRow = columns.map((c) => c.label || c.name);
3118
- const separatorRow = columns.map(() => "---");
3119
- let tableMd = "";
3120
- if (columns.length > 0) {
3121
- tableMd = `| ${headerRow.join(" | ")} |
3122
- | ${separatorRow.join(" | ")} |
3123
- `;
3124
- results.forEach((row) => {
3125
- const rowData = columns.map((col) => {
3126
- const val = row[col.name];
3127
- return val === void 0 || val === null ? "" : String(val).replace(/\|/g, "\\|");
3128
- });
3129
- tableMd += `| ${rowData.join(" | ")} |
3130
- `;
3131
- });
3132
- } else {
3133
- tableMd = "(No columns defined for this table)";
3134
- }
3135
- return { rows: results, markdown: tableMd };
3136
- };
3137
-
3138
3081
  // packages/ai/tools/readFileTool.ts
3139
3082
  var readFileFunctionSchema = {
3140
3083
  name: "readFile",
@@ -3923,7 +3866,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3923
3866
  const deletedDialogIds = [];
3924
3867
  const deletedDialogKeys = [];
3925
3868
  const failures = [];
3926
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-UGWF2KW6.js");
3869
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-KSXPGJB2.js");
3927
3870
  for (const target of targets) {
3928
3871
  try {
3929
3872
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4257,7 +4200,7 @@ var readSkillDocFunctionSchema = {
4257
4200
  }
4258
4201
  };
4259
4202
  async function readSkillDocFunc(args, thunkApi) {
4260
- const { buildReadDocResult } = await import("./readDocTool-4SPYCP2Y.js");
4203
+ const { buildReadDocResult } = await import("./readDocTool-W4NDXNEX.js");
4261
4204
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4262
4205
  if (typeof id !== "string" || !id.trim()) {
4263
4206
  throw new Error("readSkillDoc requires id or doc.");
@@ -5060,7 +5003,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5060
5003
  const spaceKey = createSpaceKey.space(spaceId);
5061
5004
  const readSpace = async (dbKey) => {
5062
5005
  try {
5063
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-HFPIJT5P.js");
5006
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-DQ32LYTJ.js");
5064
5007
  if (fresh) {
5065
5008
  return await dispatch(readAndWait2(dbKey)).unwrap();
5066
5009
  }
@@ -10808,7 +10751,7 @@ var selectUserIdFromState = (state2) => {
10808
10751
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
10809
10752
  async function addImageContentToSpace(input) {
10810
10753
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
10811
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-IJHG2ZV7.js")).addContentAction;
10754
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-B2DRF7P6.js")).addContentAction;
10812
10755
  await addContentAction2(
10813
10756
  {
10814
10757
  spaceId: input.spaceId,
@@ -14670,162 +14613,6 @@ ${resultStr}
14670
14613
  };
14671
14614
  }
14672
14615
 
14673
- // packages/ai/tools/toolRunStore.ts
14674
- var import_react4 = __toESM(require_react());
14675
- var createToolRunId = () => `toolrun_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
14676
- var runsById = /* @__PURE__ */ new Map();
14677
- var listeners2 = /* @__PURE__ */ new Set();
14678
- var version2 = 0;
14679
- var notify2 = () => {
14680
- version2 += 1;
14681
- for (const listener of listeners2) {
14682
- try {
14683
- listener();
14684
- } catch {
14685
- }
14686
- }
14687
- };
14688
- function toolRunStarted(payload) {
14689
- const {
14690
- id,
14691
- messageId,
14692
- toolName,
14693
- behavior,
14694
- inputSummary,
14695
- startedAt,
14696
- interaction,
14697
- input
14698
- } = payload;
14699
- runsById.set(id, {
14700
- id,
14701
- messageId,
14702
- toolName,
14703
- behavior,
14704
- inputSummary,
14705
- status: "running",
14706
- startedAt: startedAt ?? Date.now(),
14707
- interaction,
14708
- input,
14709
- error: void 0,
14710
- finishedAt: void 0,
14711
- outputSummary: void 0,
14712
- steps: void 0
14713
- });
14714
- notify2();
14715
- }
14716
- function toolRunSetPending(payload) {
14717
- const { id } = payload;
14718
- const run = runsById.get(id);
14719
- if (run) {
14720
- run.status = "pending";
14721
- notify2();
14722
- }
14723
- }
14724
- function toolRunSucceeded(payload) {
14725
- const { id, outputSummary, steps, finishedAt } = payload;
14726
- const run = runsById.get(id);
14727
- if (run) {
14728
- run.status = "succeeded";
14729
- run.outputSummary = outputSummary;
14730
- if (steps !== void 0) {
14731
- run.steps = steps;
14732
- }
14733
- run.finishedAt = finishedAt ?? Date.now();
14734
- notify2();
14735
- }
14736
- }
14737
- function toolRunUpdated(payload) {
14738
- const { id, outputSummary, steps } = payload;
14739
- const run = runsById.get(id);
14740
- if (run) {
14741
- if (outputSummary !== void 0) {
14742
- run.outputSummary = outputSummary;
14743
- }
14744
- if (steps !== void 0) {
14745
- run.steps = steps;
14746
- }
14747
- notify2();
14748
- }
14749
- }
14750
- function toolRunFailed(payload) {
14751
- const { id, error, outputSummary, steps, finishedAt } = payload;
14752
- const run = runsById.get(id);
14753
- if (run) {
14754
- run.status = "failed";
14755
- run.error = error;
14756
- if (outputSummary !== void 0) {
14757
- run.outputSummary = outputSummary;
14758
- }
14759
- if (steps !== void 0) {
14760
- run.steps = steps;
14761
- }
14762
- run.finishedAt = finishedAt ?? Date.now();
14763
- notify2();
14764
- }
14765
- }
14766
- function getAllToolRuns() {
14767
- return Array.from(runsById.values()).sort((a, b) => a.startedAt - b.startedAt);
14768
- }
14769
- function getToolRunById(id) {
14770
- return runsById.get(id);
14771
- }
14772
- var executeToolRun = createAsyncThunk(
14773
- "toolRun/executeToolRun",
14774
- async ({ id, inputOverride }, thunkApi) => {
14775
- const run = getToolRunById(id);
14776
- if (!run) {
14777
- throw new Error(`ToolRun not found: ${id}`);
14778
- }
14779
- const executionInput = inputOverride ?? run.input;
14780
- if (!executionInput) {
14781
- throw new Error(`ToolRun ${id} has no input to execute with.`);
14782
- }
14783
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-G7AM5SXM.js");
14784
- const { executor } = findToolExecutor2(run.toolName);
14785
- toolRunStarted({
14786
- id: run.id,
14787
- messageId: run.messageId,
14788
- toolName: run.toolName,
14789
- behavior: run.behavior,
14790
- inputSummary: run.inputSummary,
14791
- startedAt: Date.now(),
14792
- interaction: run.interaction,
14793
- input: executionInput
14794
- });
14795
- try {
14796
- const result = await executor(executionInput, thunkApi, {
14797
- parentMessageId: run.messageId
14798
- });
14799
- toolRunSucceeded({
14800
- id: run.id,
14801
- outputSummary: result?.displayData || ""
14802
- });
14803
- if (run.toolName === "deleteSpaces") {
14804
- const latestState = thunkApi.getState();
14805
- const userId = selectIdentityUserId(latestState);
14806
- if (userId) {
14807
- const { fetchUserSpaceMemberships } = await import("./memberThunks-SKFZ37VS.js");
14808
- await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
14809
- }
14810
- }
14811
- return {
14812
- id: run.id,
14813
- rawData: result?.rawData,
14814
- displayData: result?.displayData
14815
- };
14816
- } catch (e) {
14817
- const msg = toErrorMessage(e);
14818
- const structured = getToolResultErrorData(e);
14819
- toolRunFailed({
14820
- id: run.id,
14821
- error: msg,
14822
- outputSummary: asOptionalTrimmedString(structured?.displayData)
14823
- });
14824
- throw e;
14825
- }
14826
- }
14827
- );
14828
-
14829
14616
  // packages/app/actions/syncAppRecord.ts
14830
14617
  var syncAppRecord = (appKey, appRecord, options = {}) => async (_dispatch, getState, extra) => {
14831
14618
  if (!appKey || !appRecord) return;
@@ -16968,14 +16755,6 @@ async function searchAllSpacesFunc(args, thunkApi) {
16968
16755
  };
16969
16756
  }
16970
16757
 
16971
- // packages/core/clipMultilineText.ts
16972
- function clipMultilineText(value, max) {
16973
- const trimmed2 = value.trim();
16974
- if (trimmed2.length <= max) return trimmed2;
16975
- return `${trimmed2.slice(0, max)}
16976
- ...[truncated ${trimmed2.length - max} chars]`;
16977
- }
16978
-
16979
16758
  // packages/ai/tools/dialogMessageSearch.ts
16980
16759
  var normalizeDialogSearchText = (value) => String(value ?? "").trim();
16981
16760
  var clampDialogSearchNumber = (value, fallback, min, max) => {
@@ -17287,7 +17066,7 @@ async function updateDocFunc(args, thunkApi) {
17287
17066
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
17288
17067
  };
17289
17068
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
17290
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-MOM2DHF5.js");
17069
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-AROBVRCR.js");
17291
17070
  if (getDocState().pageKey === id) {
17292
17071
  applyExternalDocUpdate({
17293
17072
  slateData: finalSlateData,
@@ -17312,7 +17091,7 @@ async function updateDocFunc(args, thunkApi) {
17312
17091
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
17313
17092
  async function dispatchSetSettings(thunkApi, changes) {
17314
17093
  const injectedSetSettings = thunkApi?.extra?.setSettings;
17315
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-CNE75ISY.js")).setSettings;
17094
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-Q6EKL7EQ.js")).setSettings;
17316
17095
  await thunkApi.dispatch(setSettings(changes)).unwrap();
17317
17096
  }
17318
17097
  var updateUserPreferenceProfileFunctionSchema = {
@@ -19604,9 +19383,6 @@ var findToolExecutor = (rawName) => {
19604
19383
  };
19605
19384
 
19606
19385
  export {
19607
- clipMultilineText,
19608
- fetchAndSerializeTable,
19609
- getToolResultErrorData,
19610
19386
  readXPostFunctionSchema,
19611
19387
  readXPostFunc,
19612
19388
  readXhsProfileFunctionSchema,
@@ -19619,12 +19395,6 @@ export {
19619
19395
  CONTROL_AGENT_RUN_ACTIONS,
19620
19396
  buildControlAgentRunFunctionSchema,
19621
19397
  setTodoListFunc,
19622
- createToolRunId,
19623
- toolRunStarted,
19624
- toolRunSetPending,
19625
- toolRunSucceeded,
19626
- toolRunFailed,
19627
- getAllToolRuns,
19628
19398
  TOOL_GROUP_META,
19629
19399
  toolQueryFunctionSchema,
19630
19400
  toolQueryFunc,
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-YU2THNST.js";
10
+ } from "./chunk-XISEYOGH.js";
11
11
  import {
12
12
  isLevelLockError
13
13
  } from "./chunk-URMS4XY2.js";