nolo-cli 0.16.0-alpha.18 → 0.16.0-alpha.19
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-UREJOVS3.js → _executeModel-YY6LVJXJ.js} +9 -9
- package/{agentEmailCommands-TOPVS5Q3.js → agentEmailCommands-UKEGNW25.js} +9 -9
- package/{agentMachineCommands-24BLT7M4.js → agentMachineCommands-OHZ3HKOV.js} +1 -1
- package/{agentRecordCommands-FYRQB7SX.js → agentRecordCommands-N2JQMKS4.js} +9 -9
- package/{agentRunCommand-TLW6PYPA.js → agentRunCommand-P2ECE6UJ.js} +9 -9
- package/{agentRunControl-YVLQ4BW5.js → agentRunControl-P75VPTGS.js} +1 -1
- package/{agentSlice-B6FQEOAF.js → agentSlice-OOLSXBHE.js} +1 -1
- package/{chunk-TKV34RQ6.js → chunk-2M54XJFV.js} +8 -8
- package/{chunk-BUTE3AHD.js → chunk-3PGT7DEK.js} +2 -2
- package/{chunk-37XKBS4O.js → chunk-BDSHV5HO.js} +8 -8
- package/{chunk-I2NSE23G.js → chunk-CGSHUOC7.js} +1 -1
- package/chunk-DL6EPNIK.js +50 -0
- package/{chunk-7TENCSE7.js → chunk-IRQJSVET.js} +5 -5
- package/{chunk-LP5UAY5I.js → chunk-JBWVSKBS.js} +22 -6
- package/{chunk-CZAAQLAW.js → chunk-JIDA7LBE.js} +2 -2
- package/{chunk-C75ONZYN.js → chunk-OZPVJZBX.js} +1 -1
- package/{chunk-TP6TE4L7.js → chunk-QSLNKTUG.js} +5 -5
- package/{chunk-C5SQSDB7.js → chunk-RYFZ55YC.js} +3 -3
- package/{chunk-LRYORNMJ.js → chunk-SQNQOXQ6.js} +3 -3
- package/{chunk-E5CLOOG5.js → chunk-TSIYZBTH.js} +4 -1
- package/{runOverlayPresentation-BHD5POEM.js → chunk-V5R4NZP2.js} +3 -4
- package/{chunk-GO7R5K32.js → chunk-X3AHTP6B.js} +1 -1
- package/{chunk-4CQFPP2G.js → chunk-XYXJ4JRT.js} +1 -1
- package/{createAgentAutomationAction-F62DAY54.js → createAgentAutomationAction-EL5ORU35.js} +2 -2
- package/{createDialogAction-RPB6W3QN.js → createDialogAction-DKED4DHE.js} +3 -3
- package/{createPageAction-APL7B2KC.js → createPageAction-BYW4YP54.js} +2 -2
- package/{dialogSlice-DMJVC2XX.js → dialogSlice-RJCHTUIG.js} +2 -2
- package/{docStore-YAPW55HZ.js → docStore-QWYVY7SV.js} +3 -3
- package/{handleSendMessageAction-YDCWKDVY.js → handleSendMessageAction-CUZL72WD.js} +2 -2
- package/index.js +20 -20
- package/{machineCommands-QKGBDYER.js → machineCommands-QMODXRTA.js} +9 -9
- package/{machineWsRunDispatch-25LT4UG6.js → machineWsRunDispatch-UPWS4PZD.js} +9 -9
- package/package.json +1 -1
- package/{queryRunOverlay-O5IAGNXY.js → queryRunOverlay-O4LOMMPO.js} +4 -46
- package/{readlineWorkspace-U6UCWL4I.js → readlineWorkspace-ZDN3CREA.js} +84 -18
- package/{runAgentClientLoop-PDE63NNW.js → runAgentClientLoop-XKFPXIZC.js} +7 -7
- package/runOverlayPresentation-ZO4VCWEU.js +11 -0
- package/{spaceSlice-DPX4F5V3.js → spaceSlice-LR2XC33A.js} +2 -2
- package/{streamAgentChatTurn-LYN66RLC.js → streamAgentChatTurn-5UOO7W6S.js} +10 -10
- package/{tools-VAJZFXRP.js → tools-VHE5VME5.js} +5 -5
- package/{updateDialogTitleAction-LE7SCNSB.js → updateDialogTitleAction-OZZQ7SB2.js} +2 -2
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filterAndCleanMessages,
|
|
3
3
|
sendOpenAICompletionsRequest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QSLNKTUG.js";
|
|
5
5
|
import "./chunk-JEXVIMYZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-OZPVJZBX.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAgentContexts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CGSHUOC7.js";
|
|
10
10
|
import {
|
|
11
11
|
generateRequestBody,
|
|
12
12
|
mergeReferences,
|
|
13
13
|
performFetchRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SQNQOXQ6.js";
|
|
15
15
|
import "./chunk-L6NVTGI7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2M54XJFV.js";
|
|
17
17
|
import "./chunk-RQSOAMPJ.js";
|
|
18
18
|
import "./chunk-XJITGCTM.js";
|
|
19
19
|
import "./chunk-KQHGZWSV.js";
|
|
20
20
|
import "./chunk-4T5F7YZQ.js";
|
|
21
21
|
import "./chunk-3LY4F7SV.js";
|
|
22
22
|
import "./chunk-VF4K2QE6.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-3PGT7DEK.js";
|
|
24
24
|
import "./chunk-VIDPVFP3.js";
|
|
25
25
|
import "./chunk-JLA4FXYC.js";
|
|
26
26
|
import "./chunk-VP4WJWKW.js";
|
|
27
27
|
import "./chunk-63W5N6P3.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-XYXJ4JRT.js";
|
|
29
29
|
import {
|
|
30
30
|
selectAllMsgs,
|
|
31
31
|
selectCurrentDialogConfig,
|
|
32
32
|
updateTokensAction
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BDSHV5HO.js";
|
|
34
34
|
import "./chunk-XOIF2TNF.js";
|
|
35
35
|
import "./chunk-B5TOXZAK.js";
|
|
36
36
|
import "./chunk-MRC4Q34M.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-RYFZ55YC.js";
|
|
38
38
|
import "./chunk-CWMSB67P.js";
|
|
39
39
|
import "./chunk-XHG22OEX.js";
|
|
40
40
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-RG2U2MTJ.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3AHTP6B.js";
|
|
8
8
|
import {
|
|
9
9
|
positionalArgs,
|
|
10
10
|
readFlagValue
|
|
@@ -16,35 +16,35 @@ import {
|
|
|
16
16
|
fetchWithTransportFallback,
|
|
17
17
|
resolveAgentRecordFromHybridStore
|
|
18
18
|
} from "./chunk-A7QNCVO5.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-JBWVSKBS.js";
|
|
20
20
|
import "./chunk-UB4RYYNQ.js";
|
|
21
21
|
import "./chunk-B26VDWID.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCliAgentKeyInput
|
|
24
24
|
} from "./chunk-VHBWHNVT.js";
|
|
25
25
|
import "./chunk-MVQ4TBSD.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-OZPVJZBX.js";
|
|
27
27
|
import "./chunk-L6NVTGI7.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-2M54XJFV.js";
|
|
29
29
|
import "./chunk-RQSOAMPJ.js";
|
|
30
30
|
import "./chunk-XJITGCTM.js";
|
|
31
31
|
import "./chunk-KQHGZWSV.js";
|
|
32
32
|
import "./chunk-4T5F7YZQ.js";
|
|
33
33
|
import "./chunk-3LY4F7SV.js";
|
|
34
34
|
import "./chunk-VF4K2QE6.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-3PGT7DEK.js";
|
|
36
36
|
import "./chunk-OWOHNGCN.js";
|
|
37
37
|
import "./chunk-JLA4FXYC.js";
|
|
38
38
|
import "./chunk-VP4WJWKW.js";
|
|
39
39
|
import "./chunk-63W5N6P3.js";
|
|
40
40
|
import "./chunk-WJRJDX2W.js";
|
|
41
41
|
import "./chunk-LM6IYQ3F.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-XYXJ4JRT.js";
|
|
43
|
+
import "./chunk-BDSHV5HO.js";
|
|
44
44
|
import "./chunk-XOIF2TNF.js";
|
|
45
45
|
import "./chunk-B5TOXZAK.js";
|
|
46
46
|
import "./chunk-MRC4Q34M.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-RYFZ55YC.js";
|
|
48
48
|
import "./chunk-CWMSB67P.js";
|
|
49
49
|
import "./chunk-XHG22OEX.js";
|
|
50
50
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -82,7 +82,7 @@ import "./chunk-5MIDPSSK.js";
|
|
|
82
82
|
import "./chunk-DFFIZ25G.js";
|
|
83
83
|
import "./chunk-3ASDTTEI.js";
|
|
84
84
|
import "./chunk-DWLEOOGR.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-TSIYZBTH.js";
|
|
86
86
|
import "./chunk-FKXFCYVO.js";
|
|
87
87
|
import "./chunk-X7W4TNB4.js";
|
|
88
88
|
import "./chunk-ATNTHIZI.js";
|
|
@@ -79,7 +79,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
79
79
|
return executeCli(provider, prompt, options);
|
|
80
80
|
}
|
|
81
81
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
82
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
82
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-UPWS4PZD.js");
|
|
83
83
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
84
84
|
}
|
|
85
85
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,36 +2,36 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3AHTP6B.js";
|
|
6
6
|
import "./chunk-WFHXMLHZ.js";
|
|
7
7
|
import "./chunk-A7QNCVO5.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JBWVSKBS.js";
|
|
9
9
|
import "./chunk-UB4RYYNQ.js";
|
|
10
10
|
import "./chunk-B26VDWID.js";
|
|
11
11
|
import "./chunk-VHBWHNVT.js";
|
|
12
12
|
import "./chunk-MVQ4TBSD.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-OZPVJZBX.js";
|
|
14
14
|
import "./chunk-L6NVTGI7.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2M54XJFV.js";
|
|
16
16
|
import "./chunk-RQSOAMPJ.js";
|
|
17
17
|
import "./chunk-XJITGCTM.js";
|
|
18
18
|
import "./chunk-KQHGZWSV.js";
|
|
19
19
|
import "./chunk-4T5F7YZQ.js";
|
|
20
20
|
import "./chunk-3LY4F7SV.js";
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3PGT7DEK.js";
|
|
23
23
|
import "./chunk-OWOHNGCN.js";
|
|
24
24
|
import "./chunk-JLA4FXYC.js";
|
|
25
25
|
import "./chunk-VP4WJWKW.js";
|
|
26
26
|
import "./chunk-63W5N6P3.js";
|
|
27
27
|
import "./chunk-WJRJDX2W.js";
|
|
28
28
|
import "./chunk-LM6IYQ3F.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-XYXJ4JRT.js";
|
|
30
|
+
import "./chunk-BDSHV5HO.js";
|
|
31
31
|
import "./chunk-XOIF2TNF.js";
|
|
32
32
|
import "./chunk-B5TOXZAK.js";
|
|
33
33
|
import "./chunk-MRC4Q34M.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-RYFZ55YC.js";
|
|
35
35
|
import "./chunk-CWMSB67P.js";
|
|
36
36
|
import "./chunk-XHG22OEX.js";
|
|
37
37
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -65,7 +65,7 @@ import "./chunk-5MIDPSSK.js";
|
|
|
65
65
|
import "./chunk-DFFIZ25G.js";
|
|
66
66
|
import "./chunk-3ASDTTEI.js";
|
|
67
67
|
import "./chunk-DWLEOOGR.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-TSIYZBTH.js";
|
|
69
69
|
import "./chunk-FKXFCYVO.js";
|
|
70
70
|
import "./chunk-X7W4TNB4.js";
|
|
71
71
|
import "./chunk-ATNTHIZI.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
prependSubjectDialogMarker,
|
|
6
6
|
resolveWorkflowReference,
|
|
7
7
|
runAgentRunCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IRQJSVET.js";
|
|
9
9
|
import {
|
|
10
10
|
parseAgentRunArgs
|
|
11
11
|
} from "./chunk-DZ3XJVET.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-A7QNCVO5.js";
|
|
|
14
14
|
import {
|
|
15
15
|
QUOTA_ERROR_PATTERNS,
|
|
16
16
|
isQuotaExhaustedError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JBWVSKBS.js";
|
|
18
18
|
import "./chunk-UB4RYYNQ.js";
|
|
19
19
|
import "./chunk-B26VDWID.js";
|
|
20
20
|
import "./chunk-VHBWHNVT.js";
|
|
@@ -22,28 +22,28 @@ import "./chunk-LTRXGFMS.js";
|
|
|
22
22
|
import "./chunk-MVQ4TBSD.js";
|
|
23
23
|
import "./chunk-6HYVJV7B.js";
|
|
24
24
|
import "./chunk-JEXVIMYZ.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OZPVJZBX.js";
|
|
26
26
|
import "./chunk-L6NVTGI7.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-2M54XJFV.js";
|
|
28
28
|
import "./chunk-RQSOAMPJ.js";
|
|
29
29
|
import "./chunk-XJITGCTM.js";
|
|
30
30
|
import "./chunk-KQHGZWSV.js";
|
|
31
31
|
import "./chunk-4T5F7YZQ.js";
|
|
32
32
|
import "./chunk-3LY4F7SV.js";
|
|
33
33
|
import "./chunk-VF4K2QE6.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-3PGT7DEK.js";
|
|
35
35
|
import "./chunk-OWOHNGCN.js";
|
|
36
36
|
import "./chunk-JLA4FXYC.js";
|
|
37
37
|
import "./chunk-VP4WJWKW.js";
|
|
38
38
|
import "./chunk-63W5N6P3.js";
|
|
39
39
|
import "./chunk-WJRJDX2W.js";
|
|
40
40
|
import "./chunk-LM6IYQ3F.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-XYXJ4JRT.js";
|
|
42
|
+
import "./chunk-BDSHV5HO.js";
|
|
43
43
|
import "./chunk-XOIF2TNF.js";
|
|
44
44
|
import "./chunk-B5TOXZAK.js";
|
|
45
45
|
import "./chunk-MRC4Q34M.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-RYFZ55YC.js";
|
|
47
47
|
import "./chunk-CWMSB67P.js";
|
|
48
48
|
import "./chunk-XHG22OEX.js";
|
|
49
49
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -78,7 +78,7 @@ import "./chunk-5MIDPSSK.js";
|
|
|
78
78
|
import "./chunk-DFFIZ25G.js";
|
|
79
79
|
import "./chunk-3ASDTTEI.js";
|
|
80
80
|
import "./chunk-DWLEOOGR.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-TSIYZBTH.js";
|
|
82
82
|
import "./chunk-FKXFCYVO.js";
|
|
83
83
|
import "./chunk-X7W4TNB4.js";
|
|
84
84
|
import "./chunk-ATNTHIZI.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-VF4K2QE6.js";
|
|
29
29
|
import {
|
|
30
30
|
createDocState
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3PGT7DEK.js";
|
|
32
32
|
import {
|
|
33
33
|
setDialogExtraReferencesAction
|
|
34
34
|
} from "./chunk-JLA4FXYC.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-63W5N6P3.js";
|
|
41
41
|
import {
|
|
42
42
|
createDialogAction
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XYXJ4JRT.js";
|
|
44
44
|
import {
|
|
45
45
|
addCategory,
|
|
46
46
|
addContentToSpace,
|
|
@@ -71,13 +71,13 @@ import {
|
|
|
71
71
|
updateContentCategory,
|
|
72
72
|
updateContentTitle,
|
|
73
73
|
updateStep
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-BDSHV5HO.js";
|
|
75
75
|
import {
|
|
76
76
|
createAgent,
|
|
77
77
|
runLlm,
|
|
78
78
|
streamAgentChatTurn,
|
|
79
79
|
updateAgent
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-RYFZ55YC.js";
|
|
81
81
|
import {
|
|
82
82
|
buildCodingSkillContentBySlug,
|
|
83
83
|
buildCodingSkillPageKey,
|
|
@@ -14250,7 +14250,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14250
14250
|
const deletedDialogIds = [];
|
|
14251
14251
|
const deletedDialogKeys = [];
|
|
14252
14252
|
const failures = [];
|
|
14253
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14253
|
+
const { deleteDialog } = await import("./dialogSlice-RJCHTUIG.js");
|
|
14254
14254
|
for (const target of targets) {
|
|
14255
14255
|
try {
|
|
14256
14256
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -23514,7 +23514,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23514
23514
|
if (!executionInput) {
|
|
23515
23515
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23516
23516
|
}
|
|
23517
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23517
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-VHE5VME5.js");
|
|
23518
23518
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23519
23519
|
toolRunStarted({
|
|
23520
23520
|
id: run.id,
|
|
@@ -23538,7 +23538,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23538
23538
|
const latestState = thunkApi.getState();
|
|
23539
23539
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23540
23540
|
if (userId) {
|
|
23541
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23541
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-LR2XC33A.js");
|
|
23542
23542
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23543
23543
|
}
|
|
23544
23544
|
}
|
|
@@ -26021,7 +26021,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
26021
26021
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
26022
26022
|
};
|
|
26023
26023
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
26024
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
26024
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-QWYVY7SV.js");
|
|
26025
26025
|
if (getDocState().pageKey === id) {
|
|
26026
26026
|
applyExternalDocUpdate({
|
|
26027
26027
|
slateData: finalSlateData,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BDSHV5HO.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
async function createDocState(args, thunkApi) {
|
|
370
|
-
const { createPageAction } = await import("./createPageAction-
|
|
370
|
+
const { createPageAction } = await import("./createPageAction-BYW4YP54.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
deleteServerSyncedCredential,
|
|
14
14
|
runLlm
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RYFZ55YC.js";
|
|
16
16
|
import {
|
|
17
17
|
getApproxPricePerImage
|
|
18
18
|
} from "./chunk-CWMSB67P.js";
|
|
@@ -5596,7 +5596,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
5596
5596
|
runtimeOptions: args.runtimeOptions
|
|
5597
5597
|
});
|
|
5598
5598
|
if (agentKeyToUse) {
|
|
5599
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
5599
|
+
const { streamAgentChatTurn } = await import("./agentSlice-OOLSXBHE.js");
|
|
5600
5600
|
await dispatch(
|
|
5601
5601
|
streamAgentChatTurn({
|
|
5602
5602
|
agentKey: agentKeyToUse,
|
|
@@ -8317,7 +8317,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8317
8317
|
}
|
|
8318
8318
|
if (isCurrentDialog) {
|
|
8319
8319
|
await thunkApi.dispatch(resetMsgs());
|
|
8320
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
8320
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-RJCHTUIG.js");
|
|
8321
8321
|
dispatch(clearPendingAttachments2());
|
|
8322
8322
|
clearWorkflow();
|
|
8323
8323
|
}
|
|
@@ -8326,15 +8326,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8326
8326
|
|
|
8327
8327
|
// packages/chat/dialog/dialogSlice.ts
|
|
8328
8328
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
8329
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
8329
|
+
const { createDialogAction } = await import("./createDialogAction-DKED4DHE.js");
|
|
8330
8330
|
return createDialogAction(args, thunkApi);
|
|
8331
8331
|
};
|
|
8332
8332
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
8333
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
8333
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-EL5ORU35.js");
|
|
8334
8334
|
return createAgentAutomationAction(args, thunkApi);
|
|
8335
8335
|
};
|
|
8336
8336
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
8337
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
8337
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OZZQ7SB2.js");
|
|
8338
8338
|
return updateDialogTitleAction(args, thunkApi);
|
|
8339
8339
|
};
|
|
8340
8340
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -8354,7 +8354,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
8354
8354
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
8355
8355
|
};
|
|
8356
8356
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
8357
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
8357
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-CUZL72WD.js");
|
|
8358
8358
|
return handleSendMessageAction(args, thunkApi);
|
|
8359
8359
|
};
|
|
8360
8360
|
function clearDialogState() {
|
|
@@ -8367,7 +8367,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
8367
8367
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
8368
8368
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
8369
8369
|
try {
|
|
8370
|
-
const { createDocState } = await import("./docStore-
|
|
8370
|
+
const { createDocState } = await import("./docStore-QWYVY7SV.js");
|
|
8371
8371
|
const pageKey = await createDocState(
|
|
8372
8372
|
{ slateData, title },
|
|
8373
8373
|
{ dispatch, getState }
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// packages/core/chat/runOverlayMachine.ts
|
|
2
|
+
var initialRunOverlayState = {
|
|
3
|
+
runs: /* @__PURE__ */ new Map()
|
|
4
|
+
};
|
|
5
|
+
function reduceRunOverlay(state, event) {
|
|
6
|
+
switch (event.type) {
|
|
7
|
+
case "run-state-chg": {
|
|
8
|
+
const prev = state.runs.get(event.runId);
|
|
9
|
+
const now = Date.now();
|
|
10
|
+
const merged = prev ? { ...prev, ...event.info, runId: event.runId, updatedAt: now } : {
|
|
11
|
+
runId: event.runId,
|
|
12
|
+
name: event.info.name ?? "",
|
|
13
|
+
status: event.info.status ?? "running",
|
|
14
|
+
summary: event.info.summary,
|
|
15
|
+
batchId: event.info.batchId,
|
|
16
|
+
parentDialogId: event.info.parentDialogId,
|
|
17
|
+
errorMessage: event.info.errorMessage,
|
|
18
|
+
updatedAt: now
|
|
19
|
+
};
|
|
20
|
+
if (prev && shallowEqualRun(prev, merged)) {
|
|
21
|
+
return state;
|
|
22
|
+
}
|
|
23
|
+
const runs = new Map(state.runs);
|
|
24
|
+
runs.set(event.runId, merged);
|
|
25
|
+
return { runs };
|
|
26
|
+
}
|
|
27
|
+
case "run-removed": {
|
|
28
|
+
if (!state.runs.has(event.runId)) return state;
|
|
29
|
+
const runs = new Map(state.runs);
|
|
30
|
+
runs.delete(event.runId);
|
|
31
|
+
return { runs };
|
|
32
|
+
}
|
|
33
|
+
case "clear-all": {
|
|
34
|
+
if (state.runs.size === 0) return state;
|
|
35
|
+
return { runs: /* @__PURE__ */ new Map() };
|
|
36
|
+
}
|
|
37
|
+
default: {
|
|
38
|
+
const _exhaustive = event;
|
|
39
|
+
return state;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function shallowEqualRun(a, b) {
|
|
44
|
+
return a.runId === b.runId && a.name === b.name && a.status === b.status && a.summary === b.summary && a.batchId === b.batchId && a.parentDialogId === b.parentDialogId && a.errorMessage === b.errorMessage;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
initialRunOverlayState,
|
|
49
|
+
reduceRunOverlay
|
|
50
|
+
};
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
parseAgentRunEvent,
|
|
26
26
|
t,
|
|
27
27
|
toolLabel
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JBWVSKBS.js";
|
|
29
29
|
import {
|
|
30
30
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
31
31
|
isLocalCliAgentKey
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-6HYVJV7B.js";
|
|
40
40
|
import {
|
|
41
41
|
formatAgentListCard
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2M54XJFV.js";
|
|
43
43
|
import {
|
|
44
44
|
isGatewayHttpStatus
|
|
45
45
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -51,12 +51,12 @@ import {
|
|
|
51
51
|
chooseMemoryOwners,
|
|
52
52
|
loadMemoryCandidatesFromDb,
|
|
53
53
|
resolveAgentMemoryPolicy
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XYXJ4JRT.js";
|
|
55
55
|
import {
|
|
56
56
|
API_REPORTED_COST_MULTIPLIER,
|
|
57
57
|
normalizeUsage,
|
|
58
58
|
parseUiAskChoiceContent
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BDSHV5HO.js";
|
|
60
60
|
import {
|
|
61
61
|
buildSkillDiscoveryContextBlock
|
|
62
62
|
} from "./chunk-7OBMZCRD.js";
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
createRunActivityTracker,
|
|
111
111
|
finalizeRunRecord,
|
|
112
112
|
spawnLocalBackgroundRun
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-TSIYZBTH.js";
|
|
114
114
|
import {
|
|
115
115
|
formatFinishedRunCard,
|
|
116
116
|
formatListRunsCard,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
inlineImageUrlsForCustomProvider,
|
|
22
22
|
prepareTools
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OZPVJZBX.js";
|
|
24
24
|
import {
|
|
25
25
|
getAntigravityUserAgent,
|
|
26
26
|
isAntigravityOAuthAgent,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
readXhsProfileFunctionSchema,
|
|
42
42
|
rememberMemoryFunctionSchema,
|
|
43
43
|
resolveEffectiveEnabledPacks
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2M54XJFV.js";
|
|
45
45
|
import {
|
|
46
46
|
createDrainExhaustedResponse,
|
|
47
47
|
isCoreDrainingBody,
|
|
@@ -56,13 +56,13 @@ import {
|
|
|
56
56
|
} from "./chunk-WJRJDX2W.js";
|
|
57
57
|
import {
|
|
58
58
|
prepareTokenUsageData
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BDSHV5HO.js";
|
|
60
60
|
import {
|
|
61
61
|
BUILTIN_TITLE_LLM_CONFIG
|
|
62
62
|
} from "./chunk-XOIF2TNF.js";
|
|
63
63
|
import {
|
|
64
64
|
fetchServerSyncedCredential
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-RYFZ55YC.js";
|
|
66
66
|
import {
|
|
67
67
|
buildAgentRuntimeDialogWritePlan,
|
|
68
68
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
gcRunRecords,
|
|
141
141
|
queryRunRecords,
|
|
142
142
|
spawnLocalBackgroundRun
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-TSIYZBTH.js";
|
|
144
144
|
import {
|
|
145
145
|
TASK_PREVIEW_MAX,
|
|
146
146
|
formatListRunsCard,
|
|
@@ -11841,6 +11841,22 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
11841
11841
|
},
|
|
11842
11842
|
executeTool: async (call, opts) => {
|
|
11843
11843
|
const contextualCall = opts?.runtimeContext ? { ...call, runtimeContext: opts.runtimeContext } : call;
|
|
11844
|
+
let injectedCall = contextualCall;
|
|
11845
|
+
if (contextualCall.name === "startAgentRun" && deps.parentDialogId && typeof contextualCall.arguments === "string") {
|
|
11846
|
+
try {
|
|
11847
|
+
const args = JSON.parse(contextualCall.arguments);
|
|
11848
|
+
if (!args.parentDialogId) {
|
|
11849
|
+
injectedCall = {
|
|
11850
|
+
...contextualCall,
|
|
11851
|
+
arguments: JSON.stringify({
|
|
11852
|
+
...args,
|
|
11853
|
+
parentDialogId: deps.parentDialogId
|
|
11854
|
+
})
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
} catch {
|
|
11858
|
+
}
|
|
11859
|
+
}
|
|
11844
11860
|
assertWithinLocalToolBudget({
|
|
11845
11861
|
toolName: call.name,
|
|
11846
11862
|
budgets: localToolBudgets,
|
|
@@ -11849,7 +11865,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
11849
11865
|
const result = await executeLocalToolWithPolicy({
|
|
11850
11866
|
env: deps.env,
|
|
11851
11867
|
agentToolNames: activeAgentToolNames,
|
|
11852
|
-
call:
|
|
11868
|
+
call: injectedCall,
|
|
11853
11869
|
executors: localToolExecutors,
|
|
11854
11870
|
abortSignal: opts?.abortSignal,
|
|
11855
11871
|
detachMs: resolveExecShellDetachMs(deps.env),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JBWVSKBS.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2M54XJFV.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-QCJITMYO.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OZPVJZBX.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SQNQOXQ6.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2M54XJFV.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BDSHV5HO.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RYFZ55YC.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
38
|
} from "./chunk-QCJITMYO.js";
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-YY6LVJXJ.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-XKFPXIZC.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-5UOO7W6S.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|