nolo-cli 0.147.0-alpha.2 → 0.149.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.
- package/{_executeModel-3OCR5R5P.js → _executeModel-OW3H7ICR.js} +29 -28
- package/{action-3ZOODRBC.js → action-GI44T4DR.js} +6 -6
- package/{addContentAction-IJHG2ZV7.js → addContentAction-B2DRF7P6.js} +5 -5
- package/{addDialogAgentAction-RLPSTAQ2.js → addDialogAgentAction-2P2FLTLD.js} +4 -4
- package/{agentDeleteCommand-6OGADD24.js → agentDeleteCommand-7IDWF6E3.js} +14 -13
- package/{agentEmailCommands-OAPYGNYC.js → agentEmailCommands-A6XBQZBN.js} +31 -30
- package/{agentListCommands-FRJZOOEG.js → agentListCommands-IW3GQVUP.js} +16 -15
- package/{agentMachineCommands-OWLOV5WO.js → agentMachineCommands-DQPUIMAC.js} +14 -13
- package/{agentProviderCommands-TWB6E5WD.js → agentProviderCommands-YK2BIIXZ.js} +1 -1
- package/{agentRecordCommands-BW7HM6VH.js → agentRecordCommands-VCA76W6B.js} +31 -30
- package/{agentRunCommand-O2F3NU2H.js → agentRunCommand-YNLDKVR7.js} +31 -30
- package/{agentRuntimeLocal-QQCDFR7B.js → agentRuntimeLocal-AK2QVJHY.js} +12 -11
- package/{agentSlice-ZOCKW66S.js → agentSlice-O4RUQUMT.js} +5 -5
- package/{appDeleteCommands-OGKQC2AM.js → appDeleteCommands-N3XEVVYC.js} +15 -14
- package/{appDeployCommands-Y2FV4JML.js → appDeployCommands-AWFIXYVW.js} +15 -14
- package/{appDeployStatusCommands-FNML5SUV.js → appDeployStatusCommands-CZRON2FO.js} +15 -14
- package/{appGetCommands-4FOY7W5E.js → appGetCommands-XQIUY4TD.js} +15 -14
- package/{appListCommands-E5SF6SIY.js → appListCommands-NNG4H36Y.js} +15 -14
- package/{chatQueueReduxAdapter-DFZ6QB4K.js → chatQueueReduxAdapter-TJRMXMYA.js} +11 -11
- package/{chunk-27VHPPII.js → chunk-36KZDDO5.js} +6 -6
- package/{chunk-KRC6GI2Q.js → chunk-3DAVPNFT.js} +2 -2
- package/{chunk-T76D3OYX.js → chunk-3SV7RM24.js} +1 -1
- package/{chunk-O7WXJIUI.js → chunk-4H22P2JV.js} +11 -9
- package/{chunk-M2YBIBBS.js → chunk-5TEEECZM.js} +1 -1
- package/{chunk-Z7IZQF56.js → chunk-6FGTMQCL.js} +1 -1
- package/{chunk-ETZWFV6M.js → chunk-7CHC4W22.js} +1 -1
- package/{chunk-PZ3HKBET.js → chunk-ACQD6YI2.js} +19 -19
- package/{chunk-ZSPC3ZTC.js → chunk-AKG5W4LG.js} +1 -1
- package/{chunk-CCOXTK3I.js → chunk-ALFH24P3.js} +26 -0
- package/{chunk-7NANRWL4.js → chunk-ALGORS6Y.js} +1 -1
- package/chunk-ATLTFRYJ.js +411 -0
- package/{chunk-HNRASX3X.js → chunk-CPUFH46E.js} +1 -1
- package/{chunk-GMVELWJG.js → chunk-CU3QB4HW.js} +2 -2
- package/{chunk-LQ6P2MFG.js → chunk-DXHL7G2L.js} +14 -14
- package/{chunk-2EE5UD3N.js → chunk-DY7ANLKG.js} +1 -1
- package/{chunk-I44MDY73.js → chunk-GOH6RW6F.js} +3 -3
- package/chunk-HTVYCXBP.js +681 -0
- package/{chunk-QALRKMHF.js → chunk-HYZIYH2H.js} +5 -5
- package/{chunk-EFZKILX6.js → chunk-IAESIMK7.js} +1 -1
- package/{chunk-OXGHM2WW.js → chunk-ID7LNBWR.js} +27 -257
- package/{chunk-HLUYTEBY.js → chunk-K2CSUCHJ.js} +1 -1
- package/{chunk-JORF7I7F.js → chunk-MST6R3E4.js} +3 -3
- package/{chunk-QJLEMM2V.js → chunk-O2OWEFII.js} +1 -1
- package/{chunk-724HIKHT.js → chunk-OHOVNO7I.js} +4 -127
- package/{chunk-P4CRULYJ.js → chunk-OMRJYNCI.js} +3 -3
- package/chunk-PQWU42UQ.js +132 -0
- package/{chunk-JQ4LUB5I.js → chunk-PZZTFEKK.js} +1 -1
- package/{chunk-QIH323EV.js → chunk-QXGPFY6J.js} +1 -1
- package/{chunk-B7ANJQWZ.js → chunk-RSEEDUMS.js} +2 -2
- package/{chunk-ELYEQNUI.js → chunk-RYZINGPM.js} +3 -3
- package/{chunk-AATZZAZE.js → chunk-SLLGJZDT.js} +1 -1
- package/{chunk-3IYMTWYZ.js → chunk-SONWNI3L.js} +2 -2
- package/chunk-TB3MIBRC.js +1716 -0
- package/{chunk-2B74TU77.js → chunk-TXH4IWJL.js} +3 -3
- package/{chunk-UC3Q7X3J.js → chunk-TZZ2WRBL.js} +5 -5
- package/{chunk-36HTQWBD.js → chunk-UASIEDKM.js} +3 -3
- package/{chunk-BJUDYFV5.js → chunk-UQNS32WZ.js} +1 -1
- package/{chunk-AUXHZ2M5.js → chunk-WIWM4FE3.js} +1 -1
- package/{chunk-YU2THNST.js → chunk-XISEYOGH.js} +1 -1
- package/{chunk-BFLSOVHN.js → chunk-XYJSY4KG.js} +16 -14
- package/{chunk-NU4DCNMR.js → chunk-YAQJJDC2.js} +4 -571
- package/{chunk-D76D3RTR.js → chunk-Z4CSIXYP.js} +2 -2
- package/{chunk-BCJPO6SE.js → chunk-ZUEK6A6C.js} +10 -10
- package/{commandRegistry-OPVCVVOQ.js → commandRegistry-2KBOXZQC.js} +42 -42
- package/{contentThunks-IWXWFN6P.js → contentThunks-BDIQRZR6.js} +12 -12
- package/{createAgentAutomationAction-ROWX5ZPK.js → createAgentAutomationAction-5UGTB26P.js} +12 -12
- package/{createDialogAction-WLVAITHA.js → createDialogAction-B7VGVEVU.js} +13 -13
- package/{createPageAction-DAJL6GES.js → createPageAction-CDLDKPRM.js} +12 -12
- package/{dbSlice-HFPIJT5P.js → dbSlice-DQ32LYTJ.js} +4 -4
- package/{deleteFile-UEAD5A5Z.js → deleteFile-NX6QHCWZ.js} +2 -2
- package/{dialogCommands-KSPH6QOU.js → dialogCommands-G7YBVAMC.js} +15 -14
- package/{dialogSlice-WW75BKLO.js → dialogSlice-N3YB65G5.js} +11 -11
- package/{docCreateCommands-B64BLZVJ.js → docCreateCommands-ZSLGVBZT.js} +14 -13
- package/{docDeleteCommands-UX2GXKUT.js → docDeleteCommands-5N4GVZBG.js} +15 -14
- package/{docReadCommands-5A6GF3XL.js → docReadCommands-YJSAA7AV.js} +14 -13
- package/{docStore-2SADZYLX.js → docStore-E3CEOV5Q.js} +5 -5
- package/{docUpdateCommands-UTBGZPSR.js → docUpdateCommands-WEMLSW6W.js} +14 -13
- package/{handleSendMessageAction-2M57WHLO.js → handleSendMessageAction-DQAD5ERJ.js} +440 -106
- package/index.js +3 -3
- package/{machineCommands-7JUTOZP2.js → machineCommands-HAP75VSG.js} +30 -29
- package/{machineWsRunDispatch-6EETR3RV.js → machineWsRunDispatch-L32G7C4P.js} +30 -29
- package/{memberThunks-SKFZ37VS.js → memberThunks-5ZXPR63F.js} +5 -5
- package/package.json +1 -1
- package/{providerPresetApply-XTEXOH7X.js → providerPresetApply-DD6NGWW6.js} +1 -1
- package/{providerRegistry-ADYDSLKR.js → providerRegistry-XDRLMYGJ.js} +1 -1
- package/{read-IEJLLUXY.js → read-EPTJRAEF.js} +2 -2
- package/{readDocTool-4SPYCP2Y.js → readDocTool-W4NDXNEX.js} +1 -1
- package/{readlineWorkspace-LBLAGNGM.js → readlineWorkspace-7BC66QSX.js} +34 -33
- package/{removeDialogAgentAction-R4RTGM2S.js → removeDialogAgentAction-OSYNZRX7.js} +6 -6
- package/{runAgentClientLoop-RPEULJFS.js → runAgentClientLoop-6E6UC3CE.js} +30 -28
- package/{setDialogExtraReferencesAction-NU2VZ7JZ.js → setDialogExtraReferencesAction-M32UYNCG.js} +5 -5
- package/{setPrimaryDialogAgentAction-VUY2FRVL.js → setPrimaryDialogAgentAction-WZ7KI3YA.js} +6 -6
- package/{settingSlice-CNE75ISY.js → settingSlice-Q6EKL7EQ.js} +5 -5
- package/{spaceCommands-HZUAGZXH.js → spaceCommands-UJOVU4XI.js} +14 -13
- package/{streamAgentChatTurn-D5POCPVX.js → streamAgentChatTurn-3UXPYFNX.js} +71 -1268
- package/{switchDialogAgentAction-JC27CP72.js → switchDialogAgentAction-GMR7WN3P.js} +4 -4
- package/{tools-I6D2B2G6.js → tools-MKYDMWA4.js} +21 -21
- package/{tuiSummaryLlmCaller-RVW6CJSK.js → tuiSummaryLlmCaller-3YFNHCTW.js} +7 -7
- package/{updateDialogTitleAction-7YZ7FNAK.js → updateDialogTitleAction-UPFV7TDT.js} +12 -12
- package/chunk-BJ3KD73I.js +0 -155
- package/chunk-JK5XW3NO.js +0 -108
- package/chunk-YYKMFBK7.js +0 -306
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
loadFileFromIndexedDb,
|
|
3
3
|
removeAction,
|
|
4
4
|
saveFileToIndexedDb
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7CHC4W22.js";
|
|
6
6
|
import {
|
|
7
7
|
fileKey,
|
|
8
8
|
getFileIdFromKey,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
readAction,
|
|
13
13
|
readRequestManager,
|
|
14
14
|
resolveAgentReadServers
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IAESIMK7.js";
|
|
16
16
|
import {
|
|
17
17
|
asyncThunkCreator,
|
|
18
18
|
buildCreateSlice,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
shouldReplaceLocalWithRemoteRecord,
|
|
33
33
|
shouldReplicateLocalRecord,
|
|
34
34
|
uploadToCurrentServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WIWM4FE3.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchFromClientDb,
|
|
38
38
|
fetchFromServer,
|
|
@@ -712,7 +712,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
712
712
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
713
713
|
read: create.asyncThunk(
|
|
714
714
|
async (payload, thunkApi) => {
|
|
715
|
-
const { readAction: readAction2 } = await import("./read-
|
|
715
|
+
const { readAction: readAction2 } = await import("./read-EPTJRAEF.js");
|
|
716
716
|
return readAction2(payload, thunkApi);
|
|
717
717
|
},
|
|
718
718
|
{
|
|
@@ -786,7 +786,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
786
786
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
787
787
|
share: create.asyncThunk(
|
|
788
788
|
async (config, thunkApi) => {
|
|
789
|
-
const { shareResourceAction } = await import("./action-
|
|
789
|
+
const { shareResourceAction } = await import("./action-GI44T4DR.js");
|
|
790
790
|
return shareResourceAction(config, thunkApi);
|
|
791
791
|
}
|
|
792
792
|
),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleAgentDiscoveryResult,
|
|
3
3
|
resolveDiscoveryScope
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
20
|
+
} from "./chunk-ATLTFRYJ.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-
|
|
46
|
+
} from "./chunk-OMRJYNCI.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-
|
|
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-
|
|
70
|
+
} from "./chunk-TXH4IWJL.js";
|
|
67
71
|
import {
|
|
68
72
|
setDialogExtraReferencesAction
|
|
69
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
108
|
+
} from "./chunk-36KZDDO5.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-
|
|
130
|
+
} from "./chunk-ACQD6YI2.js";
|
|
128
131
|
import {
|
|
129
132
|
createAgent,
|
|
130
133
|
deleteServerSyncedCredential,
|
|
131
134
|
runLlm,
|
|
132
135
|
streamAgentChatTurn,
|
|
133
136
|
updateAgent
|
|
134
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-TZZ2WRBL.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3869
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-N3YB65G5.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-
|
|
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-
|
|
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-
|
|
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-I6D2B2G6.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-
|
|
17069
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-E3CEOV5Q.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-
|
|
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,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-U4STABYN.js";
|
|
4
4
|
import {
|
|
5
5
|
clearCliLocalRuntimePreparedAgentCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XYJSY4KG.js";
|
|
7
7
|
import {
|
|
8
8
|
readCredentialAvailability
|
|
9
9
|
} from "./chunk-62IL3KQV.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveAgentRecordFromHybridStore,
|
|
19
19
|
sanitizeAgentRecordForCliOutput,
|
|
20
20
|
writeAgentRecord
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ALGORS6Y.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCliAgentKeyInput
|
|
24
24
|
} from "./chunk-SV5IJK6K.js";
|
|
@@ -242,7 +242,7 @@ async function runAgentCreateCommand(args, deps = {}) {
|
|
|
242
242
|
clearCliLocalRuntimePreparedAgentCache();
|
|
243
243
|
let verifyResult;
|
|
244
244
|
if (parsed.verify) {
|
|
245
|
-
const { verifyCustomProvider } = await import("./agentProviderCommands-
|
|
245
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-YK2BIIXZ.js");
|
|
246
246
|
const rec = built.nextRecord;
|
|
247
247
|
verifyResult = await verifyCustomProvider({
|
|
248
248
|
providerUrl: rec.customProviderUrl,
|