nolo-cli 0.188.0-alpha.2 → 0.188.0
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-7GFCTOFY.js → _executeModel-WQ7BV3G7.js} +22 -22
- package/{action-HQXK4ZT4.js → action-BHWB4MOK.js} +2 -2
- package/{addContentAction-3WAN3OWY.js → addContentAction-BY375D35.js} +3 -3
- package/{addDialogAgentAction-WNQBFR5G.js → addDialogAgentAction-HOZYOCWC.js} +2 -2
- package/{agentDeleteCommand-GETUDKX4.js → agentDeleteCommand-4DK6X4S4.js} +24 -24
- package/{agentEmailCommands-2EB4DJSA.js → agentEmailCommands-CYPIYPOK.js} +25 -25
- package/agentFavoriteCommands-GAFEXKKP.js +187 -0
- package/{agentListCommands-6RONL2YO.js → agentListCommands-MAG736RU.js} +8 -8
- package/{agentMachineCommands-J6SX7CPR.js → agentMachineCommands-7VTOWHHD.js} +6 -6
- package/{agentRecordCommands-UXFGQXD6.js → agentRecordCommands-VK3NEK5G.js} +24 -24
- package/{agentRunCommand-QTK73QMM.js → agentRunCommand-7MFVUHWX.js} +25 -25
- package/{agentRuntimeLocal-G4KEXO5D.js → agentRuntimeLocal-NAAYNHCW.js} +4 -4
- package/{agentSlice-STUDWJJZ.js → agentSlice-TZRLTBEJ.js} +3 -3
- package/{appDeleteCommands-6L6PTB6G.js → appDeleteCommands-VDHCDVBF.js} +8 -8
- package/{appDeployCommands-PLXIHXN3.js → appDeployCommands-V6UTKVXR.js} +8 -8
- package/{appDeployStatusCommands-VGYYEBTV.js → appDeployStatusCommands-4UIFSEPC.js} +8 -8
- package/{appGetCommands-NAANWNTG.js → appGetCommands-XKDXLC3C.js} +8 -8
- package/{appListCommands-ZT5YE2IX.js → appListCommands-BELRVX2Y.js} +8 -8
- package/{authCommand-NVTKI7QU.js → authCommand-RV5MQDWN.js} +3 -3
- package/{authCommands-RFLKIPBT.js → authCommands-MZUXPRYJ.js} +2 -2
- package/{builtinSkillRegistry-2VN6JG4U.js → builtinSkillRegistry-7MBUY5EY.js} +3 -3
- package/{chromeOpsCommands-DOFY2OCF.js → chromeOpsCommands-C46BXHEE.js} +1 -1
- package/{chunk-5LVGXDSL.js → chunk-2NAE7IVE.js} +1 -1
- package/{chunk-FGIJLPZ3.js → chunk-4MYCKDSI.js} +2 -2
- package/{chunk-3QFOYFJW.js → chunk-5DIFZFYF.js} +4 -4
- package/{chunk-KOIGM3KU.js → chunk-5DPVRMSY.js} +1 -1
- package/{chunk-GSX7Z46F.js → chunk-5HAPEKNH.js} +1 -1
- package/{chunk-RBVR7P3M.js → chunk-63JHZKGZ.js} +18 -18
- package/{chunk-JOOWHDGM.js → chunk-A5BLRE3G.js} +1 -1
- package/{chunk-VECM2WX3.js → chunk-ABMBNULR.js} +2 -2
- package/{chunk-HVV4B6OL.js → chunk-ADTJJVDJ.js} +210 -43
- package/{chunk-Y2ZDNW2H.js → chunk-B2N5GZBU.js} +2 -2
- package/{chunk-7SJG5ZNX.js → chunk-B6EZB6DW.js} +1 -1
- package/{chunk-H6FUDBS3.js → chunk-CGKSIL4D.js} +5 -5
- package/{chunk-CLGAGPEM.js → chunk-CNMQATUF.js} +1 -1
- package/{chunk-ER4UTWWS.js → chunk-DFF6B7P7.js} +1 -1
- package/{chunk-WMHWFFTE.js → chunk-ECX3NKRD.js} +46 -0
- package/{chunk-R6AJKHEU.js → chunk-EVF6F3QU.js} +3 -3
- package/{chunk-7N6C3IHF.js → chunk-EXSR7DXT.js} +2 -2
- package/{chunk-WBCYL63M.js → chunk-GYVLAHA4.js} +1 -1
- package/{chunk-RKLQVXUE.js → chunk-HTLIKE5U.js} +2 -2
- package/{chunk-4OTMONZL.js → chunk-IOIPWEL4.js} +9 -9
- package/{chunk-RANCLEEC.js → chunk-JG6IWEAW.js} +10 -10
- package/{chunk-LOQYQUM2.js → chunk-JGJVDP2W.js} +17 -17
- package/{chunk-S4W4GV3B.js → chunk-K6TZSON4.js} +1 -1
- package/{chunk-VH7PE33C.js → chunk-KDBKEYUW.js} +36 -11
- package/{chunk-A43QYPYN.js → chunk-NMDAOZRN.js} +12 -12
- package/{chunk-ZIOYHDYW.js → chunk-OUSUFO5W.js} +2 -2
- package/{chunk-PCPQWTXJ.js → chunk-PD2YRFAI.js} +1 -1
- package/{chunk-OXOXPREC.js → chunk-SM56M7N7.js} +1 -1
- package/{chunk-2RHDAHFX.js → chunk-TFSMPRAY.js} +4 -4
- package/{chunk-Q54QGYRW.js → chunk-TZLPJRNO.js} +4 -4
- package/{chunk-6G5V4Y3V.js → chunk-UC5RISH3.js} +65 -41
- package/{chunk-IFN7MHWL.js → chunk-UGCQKKXW.js} +1 -1
- package/{chunk-YO3O7H2X.js → chunk-UNOILAZP.js} +14 -0
- package/{chunk-YUZIPPER.js → chunk-UVWBGWBO.js} +8 -2
- package/{chunk-MMOISK6N.js → chunk-V62MBA65.js} +3 -3
- package/{chunk-IIGDVODZ.js → chunk-WAZ6BTSC.js} +1 -1
- package/{chunk-O2MBTX37.js → chunk-WVGVGT44.js} +4 -4
- package/{chunk-RGTPR57U.js → chunk-YARN6MCX.js} +4 -4
- package/{chunk-PVZ3GB25.js → chunk-YHNZZIAH.js} +5 -5
- package/{commandRegistry-MTKBHP45.js → commandRegistry-RM2Z2DVF.js} +65 -61
- package/{contentThunks-E4DHXF3M.js → contentThunks-RP4BYNUC.js} +8 -8
- package/{cooldownCommands-IUU3ZH3L.js → cooldownCommands-4XKJFEBW.js} +1 -1
- package/{createAgentAutomationAction-2P2II7B3.js → createAgentAutomationAction-AYFAMQ5D.js} +8 -8
- package/{createDialogAction-MFZGE5EO.js → createDialogAction-NV5TEAIN.js} +10 -10
- package/{createPageAction-SBU2YCNR.js → createPageAction-FJGDX55N.js} +8 -8
- package/{dbSlice-2O3YBVPP.js → dbSlice-QAUXABCC.js} +2 -2
- package/{dialogCommands-AWGFKOGS.js → dialogCommands-4BGV6DPD.js} +8 -8
- package/{dialogSlice-GKPCUQWM.js → dialogSlice-ZUYNLTF6.js} +7 -7
- package/{dialogUsageCommand-44XMU6DD.js → dialogUsageCommand-QTG6ILEJ.js} +58 -5
- package/{docCreateCommands-4JEKXNST.js → docCreateCommands-3CW75UF2.js} +7 -7
- package/{docDeleteCommands-Q5K4UJPQ.js → docDeleteCommands-NL4ZYMN5.js} +8 -8
- package/{docReadCommands-ZZ7HMGPV.js → docReadCommands-HXCNVDPQ.js} +7 -7
- package/{docStore-DOZVBVKZ.js → docStore-EPAZ4HLD.js} +3 -3
- package/{docUpdateCommands-NUFXB6BD.js → docUpdateCommands-RMVBAMDE.js} +7 -7
- package/{fetchMessages-QLW7INJJ.js → fetchMessages-HWBVATSE.js} +1 -1
- package/{handleSendMessageAction-FY4RBJEA.js → handleSendMessageAction-5UH3DA6V.js} +15 -15
- package/index.js +6 -6
- package/{keys-N6HQICY5.js → keys-P4ZDOVJW.js} +11 -1
- package/{localDialogRead-55YDVPNU.js → localDialogRead-CT5HGDMC.js} +1 -1
- package/{localRuntimeAdapter-KCS5Y4T6.js → localRuntimeAdapter-LVPGHOJK.js} +22 -22
- package/{machineCommands-E3HMAMLA.js → machineCommands-O6RDJGLV.js} +23 -23
- package/{machineWsRunDispatch-MGDBTLDX.js → machineWsRunDispatch-GVDQO742.js} +23 -23
- package/{memberThunks-VXT36MZP.js → memberThunks-QWAAGQBS.js} +155 -52
- package/package.json +1 -1
- package/{readlineWorkspace-IWWKZK3F.js → readlineWorkspace-I5XZFI2E.js} +87 -41
- package/{removeDialogAgentAction-PK24DJ2J.js → removeDialogAgentAction-YEPO5AYI.js} +3 -3
- package/{runAgentClientLoop-CFIM6MXT.js → runAgentClientLoop-LV2HYQPH.js} +20 -20
- package/{secretCommands-UZV7CPJY.js → secretCommands-N6CMCJDZ.js} +1 -1
- package/{setDialogExtraReferencesAction-BN4IBUO6.js → setDialogExtraReferencesAction-EH5GWDAJ.js} +3 -3
- package/{setPrimaryDialogAgentAction-JR5SMLZY.js → setPrimaryDialogAgentAction-PNWRK6IY.js} +3 -3
- package/{settingThunks-RJZQHL7H.js → settingThunks-7VCWB6P7.js} +2 -2
- package/{spaceCommands-BI3TRIAK.js → spaceCommands-ZUI4CTSO.js} +6 -6
- package/{streamAgentChatTurn-3BS7IAFR.js → streamAgentChatTurn-ZCHIQR35.js} +22 -22
- package/{switchDialogAgentAction-TSIXBNRH.js → switchDialogAgentAction-23BFWJMV.js} +2 -2
- package/{tools-PCTUYG54.js → tools-2DZDJWHZ.js} +17 -17
- package/{updateCommands-Y6CKFKIF.js → updateCommands-KE6LP3QX.js} +3 -3
- package/{updateDialogTitleAction-ZHFIMEQL.js → updateDialogTitleAction-QZWVKVVW.js} +8 -8
- package/{windowsSelfUpdate-XV2MMQAC.js → windowsSelfUpdate-26TSFXEZ.js} +2 -2
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-VF4K2QE6.js";
|
|
18
18
|
import {
|
|
19
19
|
addMemberSpace,
|
|
20
|
+
applyFetchSpaceFulfilled,
|
|
20
21
|
fetchAuthoritativeRemoteSpace,
|
|
21
22
|
getAllMemberSpaces,
|
|
22
23
|
removeMemberSpace,
|
|
@@ -24,9 +25,8 @@ import {
|
|
|
24
25
|
setMembershipLoaded,
|
|
25
26
|
setMembershipLoading,
|
|
26
27
|
setMembershipRejected,
|
|
27
|
-
setSpaceInitialized,
|
|
28
28
|
updateMemberSpaceName
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JGJVDP2W.js";
|
|
30
30
|
import {
|
|
31
31
|
ToolResultError,
|
|
32
32
|
clipMultilineText,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WVGVGT44.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-VYNMQ6HW.js";
|
|
56
56
|
import {
|
|
57
57
|
createDocState
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EVF6F3QU.js";
|
|
59
59
|
import {
|
|
60
60
|
ToolApiError,
|
|
61
61
|
buildToolRequestHeaders,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-MYOH447Z.js";
|
|
67
67
|
import {
|
|
68
68
|
setDialogExtraReferencesAction
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DFF6B7P7.js";
|
|
70
70
|
import {
|
|
71
71
|
readDocFunc,
|
|
72
72
|
readDocFunctionSchema,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./chunk-63W5N6P3.js";
|
|
83
83
|
import {
|
|
84
84
|
createDialogAction
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CGKSIL4D.js";
|
|
86
86
|
import {
|
|
87
87
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
88
88
|
addContentToSpace,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
updateContentCategory,
|
|
100
100
|
updateContentTitle,
|
|
101
101
|
writeStoredCollapsedCategories
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YARN6MCX.js";
|
|
103
103
|
import {
|
|
104
104
|
getCurrentSpaceId,
|
|
105
105
|
getCurrentSpaceIdRaw,
|
|
@@ -122,14 +122,14 @@ import {
|
|
|
122
122
|
selectMsgById,
|
|
123
123
|
uiAskChoiceFunc,
|
|
124
124
|
uiAskChoiceFunctionSchema
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-63JHZKGZ.js";
|
|
126
126
|
import {
|
|
127
127
|
createAgent,
|
|
128
128
|
deleteServerSyncedCredential,
|
|
129
129
|
runLlm,
|
|
130
130
|
streamAgentChatTurn,
|
|
131
131
|
updateAgent
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-YHNZZIAH.js";
|
|
133
133
|
import {
|
|
134
134
|
buildMediaToolConfirmation,
|
|
135
135
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
UNCATEGORIZED_ID,
|
|
139
139
|
addContentAction,
|
|
140
140
|
checkSpaceMembership
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-B6EZB6DW.js";
|
|
142
142
|
import {
|
|
143
143
|
createSpaceKey,
|
|
144
144
|
normalizeSpaceId
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
} from "./chunk-YDH3FDFQ.js";
|
|
154
154
|
import {
|
|
155
155
|
shareResourceAction
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-CNMQATUF.js";
|
|
157
157
|
import {
|
|
158
158
|
selectCurrentServer,
|
|
159
159
|
selectSyncServers
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
selectEntities,
|
|
170
170
|
toTimestampMs,
|
|
171
171
|
write
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-B2N5GZBU.js";
|
|
173
173
|
import {
|
|
174
174
|
readAction
|
|
175
175
|
} from "./chunk-LBXUNNDS.js";
|
|
@@ -199,10 +199,10 @@ import {
|
|
|
199
199
|
import {
|
|
200
200
|
listBuiltinSkills,
|
|
201
201
|
resolveBuiltinSkillByName
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-5HAPEKNH.js";
|
|
203
203
|
import {
|
|
204
204
|
CAPABILITY_PACKS
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-SM56M7N7.js";
|
|
206
206
|
import {
|
|
207
207
|
buildSkillDocMarkdown,
|
|
208
208
|
normalizeSkillModalities,
|
|
@@ -308,7 +308,7 @@ import {
|
|
|
308
308
|
rowKey,
|
|
309
309
|
splitKey,
|
|
310
310
|
toTrimmedString
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-ECX3NKRD.js";
|
|
312
312
|
import {
|
|
313
313
|
dialogMessageRange,
|
|
314
314
|
isDialogKey,
|
|
@@ -3884,7 +3884,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3884
3884
|
const deletedDialogIds = [];
|
|
3885
3885
|
const deletedDialogKeys = [];
|
|
3886
3886
|
const failures = [];
|
|
3887
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3887
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-ZUYNLTF6.js");
|
|
3888
3888
|
for (const target of targets) {
|
|
3889
3889
|
try {
|
|
3890
3890
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4468,6 +4468,7 @@ var createInitialState = () => ({
|
|
|
4468
4468
|
agentIds: [],
|
|
4469
4469
|
contentIds: [],
|
|
4470
4470
|
favoritedAtById: {},
|
|
4471
|
+
displaySummaryById: {},
|
|
4471
4472
|
initialized: false,
|
|
4472
4473
|
loading: false,
|
|
4473
4474
|
snapshotComplete: false,
|
|
@@ -4491,9 +4492,11 @@ function removeFavoriteLocally(payload) {
|
|
|
4491
4492
|
state = {
|
|
4492
4493
|
...state,
|
|
4493
4494
|
agentIds: state.agentIds.filter((item) => item !== id),
|
|
4494
|
-
favoritedAtById: { ...state.favoritedAtById }
|
|
4495
|
+
favoritedAtById: { ...state.favoritedAtById },
|
|
4496
|
+
displaySummaryById: { ...state.displaySummaryById }
|
|
4495
4497
|
};
|
|
4496
4498
|
delete state.favoritedAtById[id];
|
|
4499
|
+
delete state.displaySummaryById[id];
|
|
4497
4500
|
notify();
|
|
4498
4501
|
return;
|
|
4499
4502
|
}
|
|
@@ -4501,9 +4504,11 @@ function removeFavoriteLocally(payload) {
|
|
|
4501
4504
|
state = {
|
|
4502
4505
|
...state,
|
|
4503
4506
|
contentIds: state.contentIds.filter((item) => item !== id),
|
|
4504
|
-
favoritedAtById: { ...state.favoritedAtById }
|
|
4507
|
+
favoritedAtById: { ...state.favoritedAtById },
|
|
4508
|
+
displaySummaryById: { ...state.displaySummaryById }
|
|
4505
4509
|
};
|
|
4506
4510
|
delete state.favoritedAtById[id];
|
|
4511
|
+
delete state.displaySummaryById[id];
|
|
4507
4512
|
notify();
|
|
4508
4513
|
}
|
|
4509
4514
|
}
|
|
@@ -4978,6 +4983,24 @@ var deleteSpaceAction = async (input, thunkAPI) => {
|
|
|
4978
4983
|
return { spaceId, strategy };
|
|
4979
4984
|
};
|
|
4980
4985
|
|
|
4986
|
+
// packages/create/space/withTimeout.ts
|
|
4987
|
+
var SPACE_LOCAL_READ_TIMEOUT_MS = 1500;
|
|
4988
|
+
var withTimeout = async (promise, ms = SPACE_LOCAL_READ_TIMEOUT_MS) => {
|
|
4989
|
+
let timer;
|
|
4990
|
+
try {
|
|
4991
|
+
return await Promise.race([
|
|
4992
|
+
promise,
|
|
4993
|
+
new Promise((resolve) => {
|
|
4994
|
+
timer = setTimeout(() => resolve(null), ms);
|
|
4995
|
+
})
|
|
4996
|
+
]);
|
|
4997
|
+
} catch {
|
|
4998
|
+
return null;
|
|
4999
|
+
} finally {
|
|
5000
|
+
if (timer) clearTimeout(timer);
|
|
5001
|
+
}
|
|
5002
|
+
};
|
|
5003
|
+
|
|
4981
5004
|
// packages/create/space/fetchSpaceAction.ts
|
|
4982
5005
|
var fetchSpaceAction = async (input, thunkAPI) => {
|
|
4983
5006
|
const rawSpaceId = typeof input === "string" ? input : input?.spaceId;
|
|
@@ -4990,15 +5013,9 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
4990
5013
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
4991
5014
|
const readSpace = async (dbKey) => {
|
|
4992
5015
|
try {
|
|
4993
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
}
|
|
4997
|
-
return await dispatch(
|
|
4998
|
-
read2({
|
|
4999
|
-
dbKey
|
|
5000
|
-
})
|
|
5001
|
-
).unwrap();
|
|
5016
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QAUXABCC.js");
|
|
5017
|
+
const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
|
|
5018
|
+
return await withTimeout(readPromise);
|
|
5002
5019
|
} catch {
|
|
5003
5020
|
return null;
|
|
5004
5021
|
}
|
|
@@ -5155,16 +5172,6 @@ var fetchSpaceSidebarStateAction = async (spaceId, thunkAPI) => {
|
|
|
5155
5172
|
};
|
|
5156
5173
|
};
|
|
5157
5174
|
|
|
5158
|
-
// packages/create/space/applyFetchSpaceFulfilled.ts
|
|
5159
|
-
function applyFetchSpaceFulfilled(payload) {
|
|
5160
|
-
const { spaceId, spaceData } = payload;
|
|
5161
|
-
const currentSpaceId = getCurrentSpaceIdRaw();
|
|
5162
|
-
if (!currentSpaceId || currentSpaceId === spaceId) {
|
|
5163
|
-
setCurrentSpaceBoth(spaceId, spaceData);
|
|
5164
|
-
setSpaceInitialized();
|
|
5165
|
-
}
|
|
5166
|
-
}
|
|
5167
|
-
|
|
5168
5175
|
// packages/create/space/changeSpaceAction.ts
|
|
5169
5176
|
var getSpaceUpdatedAt2 = (space) => {
|
|
5170
5177
|
if (!space) return 0;
|
|
@@ -5241,6 +5248,7 @@ var fetchSpaceSidebarState = createAsyncThunk(
|
|
|
5241
5248
|
}
|
|
5242
5249
|
}
|
|
5243
5250
|
);
|
|
5251
|
+
var SPACE_SWITCH_TIMEOUT_MS = 1e4;
|
|
5244
5252
|
var changeSpace = createAsyncThunk(
|
|
5245
5253
|
"space/changeSpace",
|
|
5246
5254
|
async (arg, thunkAPI) => {
|
|
@@ -5249,8 +5257,22 @@ var changeSpace = createAsyncThunk(
|
|
|
5249
5257
|
setMembershipLoading();
|
|
5250
5258
|
setCurrentSpace(null);
|
|
5251
5259
|
}
|
|
5260
|
+
const actionPromise = changeSpaceAction(arg, thunkAPI);
|
|
5261
|
+
actionPromise.catch(() => {
|
|
5262
|
+
});
|
|
5263
|
+
let timeoutTimer;
|
|
5252
5264
|
try {
|
|
5253
|
-
const payload = await
|
|
5265
|
+
const payload = await Promise.race([
|
|
5266
|
+
actionPromise,
|
|
5267
|
+
new Promise((_, reject) => {
|
|
5268
|
+
timeoutTimer = setTimeout(
|
|
5269
|
+
() => reject(
|
|
5270
|
+
new Error("\u5207\u6362\u7A7A\u95F4\u8D85\u65F6\uFF1A\u672C\u5730\u5B58\u50A8\u6216\u670D\u52A1\u7AEF\u672A\u5728\u65F6\u9650\u5185\u8FD4\u56DE")
|
|
5271
|
+
),
|
|
5272
|
+
SPACE_SWITCH_TIMEOUT_MS
|
|
5273
|
+
);
|
|
5274
|
+
})
|
|
5275
|
+
]);
|
|
5254
5276
|
setCurrentSpaceBoth(payload.spaceId, payload.spaceData);
|
|
5255
5277
|
setMembershipLoaded();
|
|
5256
5278
|
setCollapsedCategories(
|
|
@@ -5263,6 +5285,8 @@ var changeSpace = createAsyncThunk(
|
|
|
5263
5285
|
setCurrentSpaceBoth(null, null);
|
|
5264
5286
|
setCollapsedCategories({}, null);
|
|
5265
5287
|
throw error;
|
|
5288
|
+
} finally {
|
|
5289
|
+
if (timeoutTimer) clearTimeout(timeoutTimer);
|
|
5266
5290
|
}
|
|
5267
5291
|
}
|
|
5268
5292
|
);
|
|
@@ -11637,7 +11661,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
11637
11661
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
11638
11662
|
async function addImageContentToSpace(input) {
|
|
11639
11663
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
11640
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
11664
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-BY375D35.js")).addContentAction;
|
|
11641
11665
|
await addContentAction2(
|
|
11642
11666
|
{
|
|
11643
11667
|
spaceId: input.spaceId,
|
|
@@ -18566,7 +18590,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18566
18590
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18567
18591
|
};
|
|
18568
18592
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18569
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18593
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-EPAZ4HLD.js");
|
|
18570
18594
|
if (getDocState().pageKey === id) {
|
|
18571
18595
|
applyExternalDocUpdate({
|
|
18572
18596
|
slateData: finalSlateData,
|
|
@@ -18591,7 +18615,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18591
18615
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
18592
18616
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
18593
18617
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
18594
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
18618
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-7VCWB6P7.js")).setSettings;
|
|
18595
18619
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
18596
18620
|
}
|
|
18597
18621
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -553,6 +553,16 @@ var agentStrings = {
|
|
|
553
553
|
en: "+{0} more",
|
|
554
554
|
zh: "\u8FD8\u6709 {0} \u4E2A"
|
|
555
555
|
},
|
|
556
|
+
// 纯推理 run(0 次工具调用)的心跳:模型调用次数。
|
|
557
|
+
runLlmCalls: {
|
|
558
|
+
en: "{0} model calls",
|
|
559
|
+
zh: "{0} \u6B21\u6A21\u578B\u8C03\u7528"
|
|
560
|
+
},
|
|
561
|
+
// 停滞信号:最后一次事件太久没有更新(次数不涨)。
|
|
562
|
+
runStalled: {
|
|
563
|
+
en: "may be stuck",
|
|
564
|
+
zh: "\u53EF\u80FD\u5361\u4F4F"
|
|
565
|
+
},
|
|
556
566
|
agentsTitle: {
|
|
557
567
|
en: "Agents:",
|
|
558
568
|
zh: "\u667A\u80FD\u4F53\uFF1A"
|
|
@@ -2627,6 +2637,10 @@ var COMMAND_DESCRIPTIONS = {
|
|
|
2627
2637
|
en: "Hard-delete an agent's private and public records",
|
|
2628
2638
|
zh: "\u786C\u5220\u9664\u667A\u80FD\u4F53\u7684\u79C1\u6709\u4E0E\u516C\u5F00\u8BB0\u5F55"
|
|
2629
2639
|
},
|
|
2640
|
+
"agent favorite": {
|
|
2641
|
+
en: "Favorite an agent for the current user (--off to unfavorite)",
|
|
2642
|
+
zh: "\u6536\u85CF\u667A\u80FD\u4F53\uFF08--off \u53D6\u6D88\u6536\u85CF\uFF09"
|
|
2643
|
+
},
|
|
2630
2644
|
"agent grant": {
|
|
2631
2645
|
en: "Grant another user access to this agent's owner credentials",
|
|
2632
2646
|
zh: "\u6388\u6743\u5176\u4ED6\u7528\u6237\u4F7F\u7528\u8BE5\u667A\u80FD\u4F53\u7684\u5C5E\u4E3B\u51ED\u8BC1"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5DPVRMSY.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYVLAHA4.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup
|
|
10
10
|
} from "./chunk-53RSTB7T.js";
|
|
@@ -212,6 +212,12 @@ async function listFavoriteAgentIdsAcrossServers(args) {
|
|
|
212
212
|
favoritedAtByKey[id] ?? 0,
|
|
213
213
|
at || Date.now()
|
|
214
214
|
);
|
|
215
|
+
if (args.summariesByKey && (item?.displayTitle !== void 0 || item?.displayAvatarFileId !== void 0)) {
|
|
216
|
+
args.summariesByKey[id] = {
|
|
217
|
+
...typeof item?.displayTitle === "string" ? { displayTitle: item.displayTitle } : {},
|
|
218
|
+
...item?.displayAvatarFileId !== void 0 ? { displayAvatarFileId: item.displayAvatarFileId } : {}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
215
221
|
}
|
|
216
222
|
const ids = Array.isArray(data?.ids) ? data.ids : [];
|
|
217
223
|
for (const id of ids) {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5DIFZFYF.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YHNZZIAH.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillGuidancePromptBlock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5HAPEKNH.js";
|
|
13
13
|
import {
|
|
14
14
|
CREDENTIAL_HYGIENE_RULE,
|
|
15
15
|
DELETE_SAFETY_RED_LINE,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YARN6MCX.js";
|
|
12
12
|
import {
|
|
13
13
|
require_react
|
|
14
14
|
} from "./chunk-YDH3FDFQ.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
resolveBuiltinCapability,
|
|
24
24
|
resolveBuiltinSkillEntry
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5HAPEKNH.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_SYSTEM_AGENT_CAPABILITIES
|
|
28
28
|
} from "./chunk-EUGTFFO6.js";
|
|
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
521
521
|
if (!executionInput) {
|
|
522
522
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
523
523
|
}
|
|
524
|
-
const { findToolExecutor } = await import("./tools-
|
|
524
|
+
const { findToolExecutor } = await import("./tools-2DZDJWHZ.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -545,7 +545,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
545
545
|
const latestState = thunkApi.getState();
|
|
546
546
|
const userId = selectIdentityUserId(latestState);
|
|
547
547
|
if (userId) {
|
|
548
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
548
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-QWAAGQBS.js");
|
|
549
549
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
deleteDialog,
|
|
8
8
|
runtime_default,
|
|
9
9
|
toast
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-63JHZKGZ.js";
|
|
11
11
|
import {
|
|
12
12
|
UNCATEGORIZED_ID,
|
|
13
13
|
addContentAction,
|
|
14
14
|
checkSpaceMembership,
|
|
15
15
|
localSpaceAuthorityPatchStamp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B6EZB6DW.js";
|
|
17
17
|
import {
|
|
18
18
|
createSpaceKey,
|
|
19
19
|
normalizeSpaceId
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
uploadFileAction,
|
|
33
33
|
upsertSSREntity,
|
|
34
34
|
write
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-B2N5GZBU.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveFileCategory
|
|
38
38
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
metaKey,
|
|
84
84
|
rowKey,
|
|
85
85
|
splitKey
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ECX3NKRD.js";
|
|
87
87
|
import {
|
|
88
88
|
ulid
|
|
89
89
|
} from "./chunk-XJWWBO34.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
patch,
|
|
3
3
|
remove,
|
|
4
4
|
write
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B2N5GZBU.js";
|
|
6
6
|
import {
|
|
7
7
|
getRuntimeServerContext
|
|
8
8
|
} from "./chunk-7UODCAWW.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
createAgentKey,
|
|
29
29
|
createUserKey,
|
|
30
30
|
toTrimmedString
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ECX3NKRD.js";
|
|
32
32
|
import {
|
|
33
33
|
asTrimmedString
|
|
34
34
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
|
|
|
347
347
|
const overrides = {};
|
|
348
348
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
349
349
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
350
|
-
const { _executeModel } = await import("./_executeModel-
|
|
350
|
+
const { _executeModel } = await import("./_executeModel-WQ7BV3G7.js");
|
|
351
351
|
return _executeModel(
|
|
352
352
|
{
|
|
353
353
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
|
|
|
368
368
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
369
369
|
*/
|
|
370
370
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
371
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
371
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-LV2HYQPH.js");
|
|
372
372
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
373
373
|
{
|
|
374
374
|
agentKey: args.agentKey,
|
|
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
|
|
|
384
384
|
* 聊天轮次流式 Agent 调用
|
|
385
385
|
*/
|
|
386
386
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
387
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
387
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-ZCHIQR35.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|