nolo-cli 0.99.0 → 0.99.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-F324DLT6.js → _executeModel-WLFACVFR.js} +10 -10
- package/{agentEmailCommands-3TQXT2DZ.js → agentEmailCommands-XQMUAB4R.js} +9 -9
- package/{agentMachineCommands-HCHRMJRJ.js → agentMachineCommands-UOEI4TPN.js} +1 -1
- package/{agentRecordCommands-YX7CN2PH.js → agentRecordCommands-BIV7NMQZ.js} +9 -9
- package/{agentRunCommand-BT5U3G5Q.js → agentRunCommand-SY7N2BDL.js} +9 -9
- package/{agentSlice-TFZX3W5R.js → agentSlice-WBSSBKBB.js} +1 -1
- package/{chunk-TWYWQFJR.js → chunk-5LTAPGPV.js} +2 -2
- package/{chunk-J6ZXSIBA.js → chunk-CHNCM7EF.js} +3 -3
- package/{chunk-7UEMHIFV.js → chunk-CJN5OERD.js} +29 -20
- package/{chunk-VNR63IV3.js → chunk-DNHENQ3T.js} +2 -2
- package/{chunk-L6VWRPBW.js → chunk-F3NUFVSP.js} +1 -1
- package/{chunk-3AD37QCF.js → chunk-GUYEMTRK.js} +8 -8
- package/{chunk-ED7UD6EF.js → chunk-KLUBZL6X.js} +1 -1
- package/{chunk-I5L5CBSE.js → chunk-ODTDLPBV.js} +2 -2
- package/{chunk-UW4JVRYR.js → chunk-OYPMWCIQ.js} +3 -3
- package/{chunk-36XI7AVG.js → chunk-PH275YDS.js} +4 -4
- package/{chunk-WHZ67DFH.js → chunk-U6IGAJT4.js} +1 -1
- package/{chunk-OYA47B3D.js → chunk-X34KOYU2.js} +3 -3
- package/{chunk-AW2UF3FF.js → chunk-XIRXOUBV.js} +2 -2
- package/{chunk-HPATMUWW.js → chunk-Z56IK6UT.js} +10 -6
- package/{commandRegistry-MODC2W5M.js → commandRegistry-NKJIYWXB.js} +14 -14
- package/{contentThunks-636N2NA7.js → contentThunks-F2BNWOZV.js} +3 -3
- package/{createAgentAutomationAction-2ZGYUIT4.js → createAgentAutomationAction-5N2NRNR7.js} +3 -3
- package/{createDialogAction-DOZD7XW7.js → createDialogAction-DSEG4L5Y.js} +4 -4
- package/{createPageAction-FJQVAHIK.js → createPageAction-K32FYQPE.js} +3 -3
- package/{dialogSlice-FOWUVVPW.js → dialogSlice-4GBOUTGL.js} +2 -2
- package/{docStore-F645L3JQ.js → docStore-ZTYSP3YE.js} +1 -1
- package/{handleSendMessageAction-6DCDAY6A.js → handleSendMessageAction-XFZH2TQS.js} +2 -2
- package/index.js +2 -2
- package/{machineCommands-465OUHT4.js → machineCommands-KMU3D5I5.js} +9 -9
- package/{machineWsRunDispatch-M3FUGFP4.js → machineWsRunDispatch-6GJ5YOSW.js} +9 -9
- package/package.json +1 -1
- package/{readlineWorkspace-LFCVKGAB.js → readlineWorkspace-ZMNRQXMC.js} +9 -9
- package/{runAgentClientLoop-KBRADH67.js → runAgentClientLoop-URRDZ5WG.js} +8 -8
- package/{streamAgentChatTurn-CCOW4CUC.js → streamAgentChatTurn-YPUYKXDX.js} +16 -10
- package/{tools-QNXUF3LE.js → tools-M5ENXZRJ.js} +6 -6
- package/{updateDialogTitleAction-ZLUQE6XC.js → updateDialogTitleAction-7PNUE23W.js} +3 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLUBZL6X.js";
|
|
4
4
|
import {
|
|
5
5
|
filterAndCleanMessages,
|
|
6
6
|
sendOpenAICompletionsRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z56IK6UT.js";
|
|
8
8
|
import "./chunk-JEXVIMYZ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5LTAPGPV.js";
|
|
10
10
|
import {
|
|
11
11
|
generateRequestBody,
|
|
12
12
|
mergeReferences,
|
|
13
13
|
performFetchRequest,
|
|
14
14
|
sanitizeOutboundBody
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OYPMWCIQ.js";
|
|
16
16
|
import "./chunk-EOARMOVD.js";
|
|
17
17
|
import "./chunk-HS7MLR74.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-GUYEMTRK.js";
|
|
19
19
|
import "./chunk-NF64D32W.js";
|
|
20
20
|
import "./chunk-U7XXEI5R.js";
|
|
21
21
|
import "./chunk-AOTBKDRK.js";
|
|
@@ -33,21 +33,21 @@ import "./chunk-NUHHBEJC.js";
|
|
|
33
33
|
import "./chunk-AGIM7IMJ.js";
|
|
34
34
|
import "./chunk-63W5N6P3.js";
|
|
35
35
|
import "./chunk-VF4K2QE6.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ODTDLPBV.js";
|
|
37
|
+
import "./chunk-DNHENQ3T.js";
|
|
38
38
|
import "./chunk-E3YWHWCR.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-U6IGAJT4.js";
|
|
40
40
|
import "./chunk-ZJ7UHBJS.js";
|
|
41
41
|
import {
|
|
42
42
|
selectAllMsgs,
|
|
43
43
|
selectCurrentDialogConfig,
|
|
44
44
|
updateTokensAction
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CJN5OERD.js";
|
|
46
46
|
import "./chunk-YYLHWIW6.js";
|
|
47
47
|
import "./chunk-6O4IK4V2.js";
|
|
48
48
|
import "./chunk-523DITKR.js";
|
|
49
49
|
import "./chunk-AGGIDPCZ.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-CHNCM7EF.js";
|
|
51
51
|
import "./chunk-PCF3QU5Q.js";
|
|
52
52
|
import "./chunk-5RGU3J7P.js";
|
|
53
53
|
import "./chunk-ZRAU6T47.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-K6U4NKFJ.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F3NUFVSP.js";
|
|
8
8
|
import {
|
|
9
9
|
positionalArgs,
|
|
10
10
|
readFlagValue
|
|
11
11
|
} from "./chunk-V7E4PXQD.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PH275YDS.js";
|
|
13
13
|
import "./chunk-2WJ57RJA.js";
|
|
14
14
|
import "./chunk-YUNJN43V.js";
|
|
15
15
|
import "./chunk-62IL3KQV.js";
|
|
@@ -30,9 +30,9 @@ import "./chunk-JBTJAPUF.js";
|
|
|
30
30
|
import "./chunk-VIWDGTDA.js";
|
|
31
31
|
import "./chunk-VCAQFMVN.js";
|
|
32
32
|
import "./chunk-ATNTHIZI.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5LTAPGPV.js";
|
|
34
34
|
import "./chunk-HS7MLR74.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-GUYEMTRK.js";
|
|
36
36
|
import "./chunk-NF64D32W.js";
|
|
37
37
|
import "./chunk-U7XXEI5R.js";
|
|
38
38
|
import "./chunk-AOTBKDRK.js";
|
|
@@ -50,20 +50,20 @@ import "./chunk-NUHHBEJC.js";
|
|
|
50
50
|
import "./chunk-AGIM7IMJ.js";
|
|
51
51
|
import "./chunk-63W5N6P3.js";
|
|
52
52
|
import "./chunk-VF4K2QE6.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-ODTDLPBV.js";
|
|
54
|
+
import "./chunk-DNHENQ3T.js";
|
|
55
55
|
import "./chunk-U3C3IA32.js";
|
|
56
56
|
import "./chunk-E3YWHWCR.js";
|
|
57
57
|
import "./chunk-FOXQ7BAB.js";
|
|
58
58
|
import "./chunk-GLKOYSRU.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-U6IGAJT4.js";
|
|
60
60
|
import "./chunk-ZJ7UHBJS.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-CJN5OERD.js";
|
|
62
62
|
import "./chunk-YYLHWIW6.js";
|
|
63
63
|
import "./chunk-6O4IK4V2.js";
|
|
64
64
|
import "./chunk-523DITKR.js";
|
|
65
65
|
import "./chunk-AGGIDPCZ.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-CHNCM7EF.js";
|
|
67
67
|
import "./chunk-PCF3QU5Q.js";
|
|
68
68
|
import "./chunk-5RGU3J7P.js";
|
|
69
69
|
import "./chunk-ZRAU6T47.js";
|
|
@@ -96,7 +96,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
96
96
|
return executeCli(provider, prompt, options);
|
|
97
97
|
}
|
|
98
98
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
99
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
99
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-6GJ5YOSW.js");
|
|
100
100
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
101
101
|
}
|
|
102
102
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-F3NUFVSP.js";
|
|
6
|
+
import "./chunk-PH275YDS.js";
|
|
7
7
|
import "./chunk-2WJ57RJA.js";
|
|
8
8
|
import "./chunk-YUNJN43V.js";
|
|
9
9
|
import "./chunk-62IL3KQV.js";
|
|
@@ -17,9 +17,9 @@ import "./chunk-JBTJAPUF.js";
|
|
|
17
17
|
import "./chunk-VIWDGTDA.js";
|
|
18
18
|
import "./chunk-VCAQFMVN.js";
|
|
19
19
|
import "./chunk-ATNTHIZI.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5LTAPGPV.js";
|
|
21
21
|
import "./chunk-HS7MLR74.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GUYEMTRK.js";
|
|
23
23
|
import "./chunk-NF64D32W.js";
|
|
24
24
|
import "./chunk-U7XXEI5R.js";
|
|
25
25
|
import "./chunk-AOTBKDRK.js";
|
|
@@ -37,20 +37,20 @@ import "./chunk-NUHHBEJC.js";
|
|
|
37
37
|
import "./chunk-AGIM7IMJ.js";
|
|
38
38
|
import "./chunk-63W5N6P3.js";
|
|
39
39
|
import "./chunk-VF4K2QE6.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-ODTDLPBV.js";
|
|
41
|
+
import "./chunk-DNHENQ3T.js";
|
|
42
42
|
import "./chunk-U3C3IA32.js";
|
|
43
43
|
import "./chunk-E3YWHWCR.js";
|
|
44
44
|
import "./chunk-FOXQ7BAB.js";
|
|
45
45
|
import "./chunk-GLKOYSRU.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-U6IGAJT4.js";
|
|
47
47
|
import "./chunk-ZJ7UHBJS.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-CJN5OERD.js";
|
|
49
49
|
import "./chunk-YYLHWIW6.js";
|
|
50
50
|
import "./chunk-6O4IK4V2.js";
|
|
51
51
|
import "./chunk-523DITKR.js";
|
|
52
52
|
import "./chunk-AGGIDPCZ.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-CHNCM7EF.js";
|
|
54
54
|
import "./chunk-PCF3QU5Q.js";
|
|
55
55
|
import "./chunk-5RGU3J7P.js";
|
|
56
56
|
import "./chunk-ZRAU6T47.js";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
resolveRunSettlementNote,
|
|
9
9
|
resolveWorkflowReference,
|
|
10
10
|
runAgentRunCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X34KOYU2.js";
|
|
12
12
|
import "./chunk-VJVNU77E.js";
|
|
13
13
|
import {
|
|
14
14
|
parseAgentRunArgs
|
|
15
15
|
} from "./chunk-V7E4PXQD.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PH275YDS.js";
|
|
17
17
|
import "./chunk-2WJ57RJA.js";
|
|
18
18
|
import "./chunk-YUNJN43V.js";
|
|
19
19
|
import "./chunk-62IL3KQV.js";
|
|
@@ -31,9 +31,9 @@ import "./chunk-LTRXGFMS.js";
|
|
|
31
31
|
import "./chunk-VCAQFMVN.js";
|
|
32
32
|
import "./chunk-ATNTHIZI.js";
|
|
33
33
|
import "./chunk-JEXVIMYZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-5LTAPGPV.js";
|
|
35
35
|
import "./chunk-HS7MLR74.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-GUYEMTRK.js";
|
|
37
37
|
import "./chunk-NF64D32W.js";
|
|
38
38
|
import "./chunk-U7XXEI5R.js";
|
|
39
39
|
import "./chunk-AOTBKDRK.js";
|
|
@@ -52,21 +52,21 @@ import "./chunk-NUHHBEJC.js";
|
|
|
52
52
|
import "./chunk-AGIM7IMJ.js";
|
|
53
53
|
import "./chunk-63W5N6P3.js";
|
|
54
54
|
import "./chunk-VF4K2QE6.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ODTDLPBV.js";
|
|
56
|
+
import "./chunk-DNHENQ3T.js";
|
|
57
57
|
import "./chunk-U3C3IA32.js";
|
|
58
58
|
import "./chunk-E3YWHWCR.js";
|
|
59
59
|
import "./chunk-EXAJ6DCR.js";
|
|
60
60
|
import "./chunk-FOXQ7BAB.js";
|
|
61
61
|
import "./chunk-GLKOYSRU.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-U6IGAJT4.js";
|
|
63
63
|
import "./chunk-ZJ7UHBJS.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-CJN5OERD.js";
|
|
65
65
|
import "./chunk-YYLHWIW6.js";
|
|
66
66
|
import "./chunk-6O4IK4V2.js";
|
|
67
67
|
import "./chunk-523DITKR.js";
|
|
68
68
|
import "./chunk-AGGIDPCZ.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-CHNCM7EF.js";
|
|
70
70
|
import "./chunk-PCF3QU5Q.js";
|
|
71
71
|
import "./chunk-5RGU3J7P.js";
|
|
72
72
|
import "./chunk-ZRAU6T47.js";
|
|
@@ -306,7 +306,7 @@ var slice = createSliceWithThunks({
|
|
|
306
306
|
const overrides = {};
|
|
307
307
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
308
308
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
309
|
-
const { _executeModel } = await import("./_executeModel-
|
|
309
|
+
const { _executeModel } = await import("./_executeModel-WLFACVFR.js");
|
|
310
310
|
return _executeModel(
|
|
311
311
|
{
|
|
312
312
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -327,7 +327,7 @@ var slice = createSliceWithThunks({
|
|
|
327
327
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
328
328
|
*/
|
|
329
329
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
330
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
330
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-URRDZ5WG.js");
|
|
331
331
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
332
332
|
{
|
|
333
333
|
agentKey: args.agentKey,
|
|
@@ -343,7 +343,7 @@ var slice = createSliceWithThunks({
|
|
|
343
343
|
* 聊天轮次流式 Agent 调用
|
|
344
344
|
*/
|
|
345
345
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
346
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
346
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YPUYKXDX.js");
|
|
347
347
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
348
348
|
}),
|
|
349
349
|
/**
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-AGGIDPCZ.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CHNCM7EF.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
20
|
} from "./chunk-PCF3QU5Q.js";
|
|
@@ -210,6 +210,18 @@ var addReferenceKeysAction = createAsyncThunk(
|
|
|
210
210
|
}
|
|
211
211
|
);
|
|
212
212
|
|
|
213
|
+
// packages/chat/messages/messageDialogIdentity.ts
|
|
214
|
+
function inferMessageDialogIdFromDbKey(dbKey) {
|
|
215
|
+
const prefix = `${"dialog" /* DIALOG */}-`;
|
|
216
|
+
if (!dbKey?.startsWith(prefix)) return null;
|
|
217
|
+
const marker = "-msg-";
|
|
218
|
+
const separatorAt = dbKey.lastIndexOf(marker);
|
|
219
|
+
if (separatorAt <= prefix.length || separatorAt + marker.length >= dbKey.length) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
return dbKey.slice(prefix.length, separatorAt);
|
|
223
|
+
}
|
|
224
|
+
|
|
213
225
|
// packages/chat/messages/toolPresentation.ts
|
|
214
226
|
var SUMMARY_EMOJI_PREFIX = new RegExp("^(\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\[[vx!]\\])\\s*", "u");
|
|
215
227
|
|
|
@@ -9687,14 +9699,7 @@ var getMessageDialogState = (state, dialogId, dialogKey) => {
|
|
|
9687
9699
|
}
|
|
9688
9700
|
return createEmptyMessageDialogState();
|
|
9689
9701
|
};
|
|
9690
|
-
var inferDialogIdFromDbKey =
|
|
9691
|
-
if (!dbKey) return null;
|
|
9692
|
-
const parts = dbKey.split("-");
|
|
9693
|
-
if (parts.length >= 4 && parts[0] === "dialog" /* DIALOG */ && parts[2] === "msg") {
|
|
9694
|
-
return parts[1];
|
|
9695
|
-
}
|
|
9696
|
-
return null;
|
|
9697
|
-
};
|
|
9702
|
+
var inferDialogIdFromDbKey = inferMessageDialogIdFromDbKey;
|
|
9698
9703
|
var inferDialogIdFromMessage = (message) => message.dialogId ?? inferDialogIdFromDbKey(message.dbKey);
|
|
9699
9704
|
var findDialogIdByMessageId = (state, messageId) => {
|
|
9700
9705
|
for (const [dialogId, dialogState] of Object.entries(state.dialogStateById)) {
|
|
@@ -9771,6 +9776,9 @@ var messageSlice = createSliceWithThunks({
|
|
|
9771
9776
|
(state, action2) => {
|
|
9772
9777
|
const { dialogId, ...message } = action2.payload;
|
|
9773
9778
|
const resolvedDialogId = dialogId ?? inferDialogIdFromMessage(action2.payload);
|
|
9779
|
+
if (!resolvedDialogId) {
|
|
9780
|
+
throw new Error("messageStreaming requires an explicit dialogId or a valid message dbKey");
|
|
9781
|
+
}
|
|
9774
9782
|
const dialogState = ensureMessageDialogState(state, resolvedDialogId);
|
|
9775
9783
|
const existing = dialogState.msgs.entities[message.id];
|
|
9776
9784
|
upsertOneMessage(
|
|
@@ -9856,10 +9864,11 @@ var messageSlice = createSliceWithThunks({
|
|
|
9856
9864
|
}
|
|
9857
9865
|
),
|
|
9858
9866
|
addToolMessage: create.reducer((state, action2) => {
|
|
9859
|
-
const
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9867
|
+
const dialogId = inferDialogIdFromMessage(action2.payload);
|
|
9868
|
+
if (!dialogId) {
|
|
9869
|
+
throw new Error("addToolMessage requires an explicit dialogId or a valid message dbKey");
|
|
9870
|
+
}
|
|
9871
|
+
const dialogState = ensureMessageDialogState(state, dialogId);
|
|
9863
9872
|
addOneMessage(dialogState, action2.payload);
|
|
9864
9873
|
}),
|
|
9865
9874
|
updateToolMessage: create.reducer((state, action2) => {
|
|
@@ -10519,7 +10528,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10519
10528
|
runtimeOptions: args.runtimeOptions
|
|
10520
10529
|
});
|
|
10521
10530
|
if (agentKeyToUse) {
|
|
10522
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10531
|
+
const { streamAgentChatTurn } = await import("./agentSlice-WBSSBKBB.js");
|
|
10523
10532
|
await dispatch(
|
|
10524
10533
|
streamAgentChatTurn({
|
|
10525
10534
|
agentKey: agentKeyToUse,
|
|
@@ -13264,7 +13273,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13264
13273
|
}
|
|
13265
13274
|
if (isCurrentDialog) {
|
|
13266
13275
|
await thunkApi.dispatch(resetMsgs());
|
|
13267
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13276
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4GBOUTGL.js");
|
|
13268
13277
|
dispatch(clearPendingAttachments2());
|
|
13269
13278
|
}
|
|
13270
13279
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13272,15 +13281,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13272
13281
|
|
|
13273
13282
|
// packages/chat/dialog/dialogSlice.ts
|
|
13274
13283
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13275
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13284
|
+
const { createDialogAction } = await import("./createDialogAction-DSEG4L5Y.js");
|
|
13276
13285
|
return createDialogAction(args, thunkApi);
|
|
13277
13286
|
};
|
|
13278
13287
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13279
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13288
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5N2NRNR7.js");
|
|
13280
13289
|
return createAgentAutomationAction(args, thunkApi);
|
|
13281
13290
|
};
|
|
13282
13291
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13283
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13292
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-7PNUE23W.js");
|
|
13284
13293
|
return updateDialogTitleAction(args, thunkApi);
|
|
13285
13294
|
};
|
|
13286
13295
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13304,7 +13313,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13304
13313
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13305
13314
|
};
|
|
13306
13315
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13307
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13316
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-XFZH2TQS.js");
|
|
13308
13317
|
return handleSendMessageAction(args, thunkApi);
|
|
13309
13318
|
};
|
|
13310
13319
|
function clearDialogState() {
|
|
@@ -13317,7 +13326,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13317
13326
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13318
13327
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13319
13328
|
try {
|
|
13320
|
-
const { createDocState } = await import("./docStore-
|
|
13329
|
+
const { createDocState } = await import("./docStore-ZTYSP3YE.js");
|
|
13321
13330
|
const pageKey = await createDocState(
|
|
13322
13331
|
{ slateData, title },
|
|
13323
13332
|
{ dispatch, getState }
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U6IGAJT4.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CJN5OERD.js";
|
|
10
10
|
import {
|
|
11
11
|
formatISO
|
|
12
12
|
} from "./chunk-ZRAU6T47.js";
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
} from "./chunk-VF4K2QE6.js";
|
|
76
76
|
import {
|
|
77
77
|
createDocState
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ODTDLPBV.js";
|
|
79
79
|
import {
|
|
80
80
|
createDialogAction
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-DNHENQ3T.js";
|
|
82
82
|
import {
|
|
83
83
|
TASK_PREVIEW_MAX,
|
|
84
84
|
buildDelegatedTaskContent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
updateContentCategory,
|
|
109
109
|
updateContentTitle,
|
|
110
110
|
writeStoredCollapsedCategories
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-U6IGAJT4.js";
|
|
112
112
|
import {
|
|
113
113
|
getCurrentSpaceId,
|
|
114
114
|
getCurrentSpaceIdRaw,
|
|
@@ -130,14 +130,14 @@ import {
|
|
|
130
130
|
selectMsgById,
|
|
131
131
|
uiAskChoiceFunc,
|
|
132
132
|
uiAskChoiceFunctionSchema
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-CJN5OERD.js";
|
|
134
134
|
import {
|
|
135
135
|
createAgent,
|
|
136
136
|
deleteServerSyncedCredential,
|
|
137
137
|
runLlm,
|
|
138
138
|
streamAgentChatTurn,
|
|
139
139
|
updateAgent
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-CHNCM7EF.js";
|
|
141
141
|
import {
|
|
142
142
|
getActiveDialogKey,
|
|
143
143
|
selectCurrentDialogKey,
|
|
@@ -3996,7 +3996,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3996
3996
|
const deletedDialogIds = [];
|
|
3997
3997
|
const deletedDialogKeys = [];
|
|
3998
3998
|
const failures = [];
|
|
3999
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3999
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-4GBOUTGL.js");
|
|
4000
4000
|
for (const target of targets) {
|
|
4001
4001
|
try {
|
|
4002
4002
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -14905,7 +14905,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14905
14905
|
if (!executionInput) {
|
|
14906
14906
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
14907
14907
|
}
|
|
14908
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
14908
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-M5ENXZRJ.js");
|
|
14909
14909
|
const { executor } = findToolExecutor2(run.toolName);
|
|
14910
14910
|
toolRunStarted({
|
|
14911
14911
|
id: run.id,
|
|
@@ -17412,7 +17412,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17412
17412
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17413
17413
|
};
|
|
17414
17414
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17415
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17415
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-ZTYSP3YE.js");
|
|
17416
17416
|
if (getDocState().pageKey === id) {
|
|
17417
17417
|
applyExternalDocUpdate({
|
|
17418
17418
|
slateData: finalSlateData,
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-F2BNWOZV.js");
|
|
337
337
|
await dispatch(
|
|
338
338
|
updateContentTitle({
|
|
339
339
|
spaceId: dbSpaceId,
|
|
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
async function createDocState(args, thunkApi) {
|
|
375
|
-
const { createPageAction } = await import("./createPageAction-
|
|
375
|
+
const { createPageAction } = await import("./createPageAction-K32FYQPE.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GUYEMTRK.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk-AGIM7IMJ.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchAndCacheMessages
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CJN5OERD.js";
|
|
33
33
|
import {
|
|
34
34
|
shouldUseServerProxy
|
|
35
35
|
} from "./chunk-YYLHWIW6.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchServerSyncedCredential
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CHNCM7EF.js";
|
|
39
39
|
import {
|
|
40
40
|
buildSkillGuidancePromptBlock,
|
|
41
41
|
extractRuntimePageCapabilities,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
inlineImageUrlsForCustomProvider,
|
|
47
47
|
prepareTools
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5LTAPGPV.js";
|
|
49
49
|
import {
|
|
50
50
|
getServerProviderSecret
|
|
51
51
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
rememberMemoryFunctionSchema,
|
|
64
64
|
resolveAgentRequiredPackIds,
|
|
65
65
|
setTodoListFunc
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-GUYEMTRK.js";
|
|
67
67
|
import {
|
|
68
68
|
deriveCredentialGroup,
|
|
69
69
|
deriveCustomProviderCredentialGroup
|
|
@@ -115,14 +115,14 @@ import {
|
|
|
115
115
|
prepareTokenUsageData,
|
|
116
116
|
resolveBuiltinPlatformAgentConfig,
|
|
117
117
|
runKeyed
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-CJN5OERD.js";
|
|
119
119
|
import {
|
|
120
120
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
121
121
|
BUILTIN_TITLE_LLM_CONFIG
|
|
122
122
|
} from "./chunk-523DITKR.js";
|
|
123
123
|
import {
|
|
124
124
|
fetchServerSyncedCredential
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-CHNCM7EF.js";
|
|
126
126
|
import {
|
|
127
127
|
FORCED_TOOLS,
|
|
128
128
|
addDefaultLightWebToolsForConfiguredAgents,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
t,
|
|
29
29
|
toolLabel,
|
|
30
30
|
toolLabelVariants
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PH275YDS.js";
|
|
32
32
|
import {
|
|
33
33
|
clearCredentialAvailability,
|
|
34
34
|
readCredentialEntry,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
chooseMemoryOwners,
|
|
84
84
|
loadMemoryCandidatesFromDb,
|
|
85
85
|
resolveAgentMemoryPolicy
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-DNHENQ3T.js";
|
|
87
87
|
import {
|
|
88
88
|
createRunActivityTracker,
|
|
89
89
|
popSingleQueueMessage,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
import {
|
|
114
114
|
API_REPORTED_COST_MULTIPLIER,
|
|
115
115
|
parseUiAskChoiceContent
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-CJN5OERD.js";
|
|
117
117
|
import {
|
|
118
118
|
isOAuthApiKeyRef
|
|
119
119
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PH275YDS.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GUYEMTRK.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-G53AA7RW.js";
|