nolo-cli 0.8.0-alpha.25 → 0.8.0-alpha.26
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-IYPAOWQQ.js → _executeModel-HM7KOYQX.js} +10 -10
- package/{agentEmailCommands-JGAZ26N2.js → agentEmailCommands-X24B32EE.js} +9 -9
- package/{agentMachineCommands-EBCDKO4T.js → agentMachineCommands-AHOFELNN.js} +3 -3
- package/{agentRecordCommands-ZKOLGEMX.js → agentRecordCommands-GCX4YO5J.js} +9 -9
- package/{agentRunCommand-L6A3DKTB.js → agentRunCommand-6Z73OBXZ.js} +9 -9
- package/{agentSlice-XRG5ODYW.js → agentSlice-73367RQ3.js} +1 -1
- package/{chunk-V6ICY2YU.js → chunk-2H4I6KR4.js} +1 -1
- package/{chunk-OOOKLEJ7.js → chunk-3WSPFJ7B.js} +2 -2
- package/{chunk-XGOTQ6ZG.js → chunk-6L2PIG7I.js} +1 -1
- package/{chunk-GAKEBQD6.js → chunk-D6OQHXVG.js} +11 -7
- package/{chunk-DW75SYWV.js → chunk-DXLC3MIQ.js} +8 -8
- package/{chunk-KRMH46UV.js → chunk-EUELM55L.js} +3 -3
- package/{chunk-EEUWELOX.js → chunk-GK7YFA5J.js} +1 -1
- package/{chunk-67Z375LK.js → chunk-HUHOMATY.js} +2 -2
- package/{chunk-5EUAXXSV.js → chunk-IB65MC33.js} +1 -1
- package/{chunk-AVMKZHBC.js → chunk-L53FGHA4.js} +3 -2
- package/{chunk-Y7QCVJ73.js → chunk-QXZ4YDXW.js} +19 -12
- package/{chunk-ALEDPZVP.js → chunk-TUIH56DJ.js} +4 -4
- package/{chunk-WO6IG6YT.js → chunk-VAHPL4CG.js} +35 -14
- package/{chunk-5LDYVJXY.js → chunk-VDS3NXE5.js} +32 -10
- package/{chunk-RB43SIIG.js → chunk-XW6CFB3M.js} +5 -5
- package/{createAgentAutomationAction-HZJ4LPCW.js → createAgentAutomationAction-MYQ7Z7VA.js} +2 -2
- package/{createDialogAction-KICYAHEQ.js → createDialogAction-PIV7Z7ZQ.js} +3 -3
- package/{createPageAction-VWBZOQPP.js → createPageAction-7ZAEDSUY.js} +2 -2
- package/{dialogSlice-G3WPGLY5.js → dialogSlice-4PYFGN7J.js} +2 -2
- package/{docStore-K7U47JYV.js → docStore-P7PG4YDJ.js} +3 -3
- package/{handleSendMessageAction-UAI2ZOGG.js → handleSendMessageAction-BHUXTQHK.js} +2 -2
- package/index.js +15 -15
- package/{machineCommands-FE5HOJWR.js → machineCommands-GD46ZUZC.js} +14 -12
- package/{machineWsRunDispatch-J56M67NJ.js → machineWsRunDispatch-5SF5RE7E.js} +9 -9
- package/package.json +1 -1
- package/{readlineWorkspace-GK33VXX2.js → readlineWorkspace-IKXTXTYB.js} +9 -9
- package/{runAgentClientLoop-EEC3BHWI.js → runAgentClientLoop-CRIQXO42.js} +8 -8
- package/{spaceSlice-OE57MB22.js → spaceSlice-NYR6BQDL.js} +2 -2
- package/{streamAgentChatTurn-CI6VMD2Y.js → streamAgentChatTurn-CYEFWT4D.js} +9 -9
- package/{tools-I5VPDJHG.js → tools-4YAV2HQH.js} +6 -6
- package/{updateDialogTitleAction-BKXHTAYL.js → updateDialogTitleAction-FEEBVBNP.js} +2 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6L2PIG7I.js";
|
|
4
4
|
import {
|
|
5
5
|
filterAndCleanMessages,
|
|
6
6
|
sendOpenAICompletionsRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XW6CFB3M.js";
|
|
8
8
|
import "./chunk-JEXVIMYZ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-IB65MC33.js";
|
|
10
10
|
import {
|
|
11
11
|
generateRequestBody,
|
|
12
12
|
mergeReferences,
|
|
13
13
|
performFetchRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VAHPL4CG.js";
|
|
15
15
|
import "./chunk-4GBNEA5B.js";
|
|
16
16
|
import "./chunk-VIDPVFP3.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-QXZ4YDXW.js";
|
|
18
|
+
import "./chunk-D6OQHXVG.js";
|
|
19
19
|
import "./chunk-I2HCZWJU.js";
|
|
20
20
|
import "./chunk-KQHGZWSV.js";
|
|
21
21
|
import "./chunk-IVAOVLM7.js";
|
|
@@ -23,19 +23,19 @@ import "./chunk-3LY4F7SV.js";
|
|
|
23
23
|
import "./chunk-VP4WJWKW.js";
|
|
24
24
|
import "./chunk-63W5N6P3.js";
|
|
25
25
|
import "./chunk-VF4K2QE6.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-3WSPFJ7B.js";
|
|
27
|
+
import "./chunk-GK7YFA5J.js";
|
|
28
28
|
import "./chunk-6WWHKODG.js";
|
|
29
29
|
import {
|
|
30
30
|
selectAllMsgs,
|
|
31
31
|
selectCurrentDialogConfig,
|
|
32
32
|
updateTokensAction
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DXLC3MIQ.js";
|
|
34
34
|
import "./chunk-V2J635L5.js";
|
|
35
35
|
import "./chunk-MRC4Q34M.js";
|
|
36
36
|
import "./chunk-MTU75CZ2.js";
|
|
37
37
|
import "./chunk-CWMSB67P.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-EUELM55L.js";
|
|
39
39
|
import "./chunk-XDXO65DS.js";
|
|
40
40
|
import "./chunk-Z4NR32XR.js";
|
|
41
41
|
import "./chunk-M76ECQRD.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "./chunk-DZ3XJVET.js";
|
|
9
9
|
import {
|
|
10
10
|
runAgentCreateCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-2H4I6KR4.js";
|
|
12
|
+
import "./chunk-VDS3NXE5.js";
|
|
13
13
|
import "./chunk-TOILAPLH.js";
|
|
14
14
|
import "./chunk-CMKUBIGW.js";
|
|
15
15
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "./chunk-VHBWHNVT.js";
|
|
27
27
|
import "./chunk-WZF7M6GX.js";
|
|
28
28
|
import "./chunk-ATNTHIZI.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-IB65MC33.js";
|
|
30
30
|
import "./chunk-4GBNEA5B.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-QXZ4YDXW.js";
|
|
32
|
+
import "./chunk-D6OQHXVG.js";
|
|
33
33
|
import "./chunk-I2HCZWJU.js";
|
|
34
34
|
import "./chunk-KQHGZWSV.js";
|
|
35
35
|
import "./chunk-IVAOVLM7.js";
|
|
@@ -37,16 +37,16 @@ import "./chunk-3LY4F7SV.js";
|
|
|
37
37
|
import "./chunk-VP4WJWKW.js";
|
|
38
38
|
import "./chunk-63W5N6P3.js";
|
|
39
39
|
import "./chunk-VF4K2QE6.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-3WSPFJ7B.js";
|
|
41
|
+
import "./chunk-GK7YFA5J.js";
|
|
42
42
|
import "./chunk-6WWHKODG.js";
|
|
43
43
|
import "./chunk-OWOHNGCN.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-DXLC3MIQ.js";
|
|
45
45
|
import "./chunk-V2J635L5.js";
|
|
46
46
|
import "./chunk-MRC4Q34M.js";
|
|
47
47
|
import "./chunk-MTU75CZ2.js";
|
|
48
48
|
import "./chunk-CWMSB67P.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-EUELM55L.js";
|
|
50
50
|
import "./chunk-XDXO65DS.js";
|
|
51
51
|
import "./chunk-Z4NR32XR.js";
|
|
52
52
|
import "./chunk-M76ECQRD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveConnectorWebSocketTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L53FGHA4.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-W4NVOSFF.js";
|
|
@@ -13,7 +13,7 @@ import "./chunk-SCBYSC74.js";
|
|
|
13
13
|
import {
|
|
14
14
|
resolveCliAgentKeyInput
|
|
15
15
|
} from "./chunk-VHBWHNVT.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-D6OQHXVG.js";
|
|
17
17
|
import "./chunk-IG2EZS3N.js";
|
|
18
18
|
import "./chunk-ZR4VHQ5D.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
@@ -75,7 +75,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
75
75
|
return executeCli(provider, prompt, options);
|
|
76
76
|
}
|
|
77
77
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
78
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
78
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-5SF5RE7E.js");
|
|
79
79
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
80
80
|
}
|
|
81
81
|
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-2H4I6KR4.js";
|
|
6
|
+
import "./chunk-VDS3NXE5.js";
|
|
7
7
|
import "./chunk-TOILAPLH.js";
|
|
8
8
|
import "./chunk-CMKUBIGW.js";
|
|
9
9
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -13,10 +13,10 @@ import "./chunk-SCBYSC74.js";
|
|
|
13
13
|
import "./chunk-VHBWHNVT.js";
|
|
14
14
|
import "./chunk-WZF7M6GX.js";
|
|
15
15
|
import "./chunk-ATNTHIZI.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-IB65MC33.js";
|
|
17
17
|
import "./chunk-4GBNEA5B.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QXZ4YDXW.js";
|
|
19
|
+
import "./chunk-D6OQHXVG.js";
|
|
20
20
|
import "./chunk-I2HCZWJU.js";
|
|
21
21
|
import "./chunk-KQHGZWSV.js";
|
|
22
22
|
import "./chunk-IVAOVLM7.js";
|
|
@@ -24,16 +24,16 @@ import "./chunk-3LY4F7SV.js";
|
|
|
24
24
|
import "./chunk-VP4WJWKW.js";
|
|
25
25
|
import "./chunk-63W5N6P3.js";
|
|
26
26
|
import "./chunk-VF4K2QE6.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-3WSPFJ7B.js";
|
|
28
|
+
import "./chunk-GK7YFA5J.js";
|
|
29
29
|
import "./chunk-6WWHKODG.js";
|
|
30
30
|
import "./chunk-OWOHNGCN.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-DXLC3MIQ.js";
|
|
32
32
|
import "./chunk-V2J635L5.js";
|
|
33
33
|
import "./chunk-MRC4Q34M.js";
|
|
34
34
|
import "./chunk-MTU75CZ2.js";
|
|
35
35
|
import "./chunk-CWMSB67P.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-EUELM55L.js";
|
|
37
37
|
import "./chunk-XDXO65DS.js";
|
|
38
38
|
import "./chunk-Z4NR32XR.js";
|
|
39
39
|
import "./chunk-M76ECQRD.js";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
prependSubjectDialogMarker,
|
|
7
7
|
resolveWorkflowReference,
|
|
8
8
|
runAgentRunCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TUIH56DJ.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
11
|
import {
|
|
12
12
|
parseAgentRunArgs
|
|
13
13
|
} from "./chunk-DZ3XJVET.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VDS3NXE5.js";
|
|
15
15
|
import "./chunk-TOILAPLH.js";
|
|
16
16
|
import "./chunk-CMKUBIGW.js";
|
|
17
17
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -23,10 +23,10 @@ import "./chunk-LTRXGFMS.js";
|
|
|
23
23
|
import "./chunk-WZF7M6GX.js";
|
|
24
24
|
import "./chunk-ATNTHIZI.js";
|
|
25
25
|
import "./chunk-JEXVIMYZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-IB65MC33.js";
|
|
27
27
|
import "./chunk-4GBNEA5B.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QXZ4YDXW.js";
|
|
29
|
+
import "./chunk-D6OQHXVG.js";
|
|
30
30
|
import "./chunk-I2HCZWJU.js";
|
|
31
31
|
import "./chunk-KQHGZWSV.js";
|
|
32
32
|
import "./chunk-IVAOVLM7.js";
|
|
@@ -34,16 +34,16 @@ import "./chunk-3LY4F7SV.js";
|
|
|
34
34
|
import "./chunk-VP4WJWKW.js";
|
|
35
35
|
import "./chunk-63W5N6P3.js";
|
|
36
36
|
import "./chunk-VF4K2QE6.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-3WSPFJ7B.js";
|
|
38
|
+
import "./chunk-GK7YFA5J.js";
|
|
39
39
|
import "./chunk-6WWHKODG.js";
|
|
40
40
|
import "./chunk-OWOHNGCN.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-DXLC3MIQ.js";
|
|
42
42
|
import "./chunk-V2J635L5.js";
|
|
43
43
|
import "./chunk-MRC4Q34M.js";
|
|
44
44
|
import "./chunk-MTU75CZ2.js";
|
|
45
45
|
import "./chunk-CWMSB67P.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-EUELM55L.js";
|
|
47
47
|
import "./chunk-XDXO65DS.js";
|
|
48
48
|
import "./chunk-Z4NR32XR.js";
|
|
49
49
|
import "./chunk-M76ECQRD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXLC3MIQ.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-7ZAEDSUY.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
// packages/core/drainReason.ts
|
|
2
|
+
var CORE_DRAIN_REASON = "core_draining";
|
|
3
|
+
|
|
4
|
+
// packages/core/gatewayHttpStatus.ts
|
|
5
|
+
function isGatewayHttpStatus(status) {
|
|
6
|
+
return status === 502 || status === 503 || status === 504;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
// packages/core/retryAfterMs.ts
|
|
2
10
|
function normalizeNonNegativeMs(value, fallbackMs) {
|
|
3
11
|
const parsed = Number(value);
|
|
@@ -18,13 +26,9 @@ function parseRetryAfterHeaderMs(value, nowMs = Date.now()) {
|
|
|
18
26
|
return null;
|
|
19
27
|
}
|
|
20
28
|
|
|
21
|
-
// packages/core/gatewayHttpStatus.ts
|
|
22
|
-
function isGatewayHttpStatus(status) {
|
|
23
|
-
return status === 502 || status === 503 || status === 504;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
29
|
export {
|
|
30
|
+
CORE_DRAIN_REASON,
|
|
31
|
+
isGatewayHttpStatus,
|
|
27
32
|
normalizeNonNegativeMs,
|
|
28
|
-
parseRetryAfterHeaderMs
|
|
29
|
-
isGatewayHttpStatus
|
|
33
|
+
parseRetryAfterHeaderMs
|
|
30
34
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EUELM55L.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
21
|
} from "./chunk-XDXO65DS.js";
|
|
@@ -10500,7 +10500,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10500
10500
|
runtimeOptions: args.runtimeOptions
|
|
10501
10501
|
});
|
|
10502
10502
|
if (agentKeyToUse) {
|
|
10503
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10503
|
+
const { streamAgentChatTurn } = await import("./agentSlice-73367RQ3.js");
|
|
10504
10504
|
await dispatch(
|
|
10505
10505
|
streamAgentChatTurn({
|
|
10506
10506
|
agentKey: agentKeyToUse,
|
|
@@ -13211,7 +13211,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13211
13211
|
}
|
|
13212
13212
|
if (isCurrentDialog) {
|
|
13213
13213
|
await thunkApi.dispatch(resetMsgs());
|
|
13214
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13214
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4PYFGN7J.js");
|
|
13215
13215
|
dispatch(clearPendingAttachments2());
|
|
13216
13216
|
clearWorkflow();
|
|
13217
13217
|
}
|
|
@@ -13220,15 +13220,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13220
13220
|
|
|
13221
13221
|
// packages/chat/dialog/dialogSlice.ts
|
|
13222
13222
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13223
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13223
|
+
const { createDialogAction } = await import("./createDialogAction-PIV7Z7ZQ.js");
|
|
13224
13224
|
return createDialogAction(args, thunkApi);
|
|
13225
13225
|
};
|
|
13226
13226
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13227
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13227
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-MYQ7Z7VA.js");
|
|
13228
13228
|
return createAgentAutomationAction(args, thunkApi);
|
|
13229
13229
|
};
|
|
13230
13230
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13231
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13231
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-FEEBVBNP.js");
|
|
13232
13232
|
return updateDialogTitleAction(args, thunkApi);
|
|
13233
13233
|
};
|
|
13234
13234
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13248,7 +13248,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13248
13248
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13249
13249
|
};
|
|
13250
13250
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13251
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13251
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-BHUXTQHK.js");
|
|
13252
13252
|
return handleSendMessageAction(args, thunkApi);
|
|
13253
13253
|
};
|
|
13254
13254
|
function clearDialogState() {
|
|
@@ -13261,7 +13261,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13261
13261
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13262
13262
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13263
13263
|
try {
|
|
13264
|
-
const { createDocState } = await import("./docStore-
|
|
13264
|
+
const { createDocState } = await import("./docStore-P7PG4YDJ.js");
|
|
13265
13265
|
const pageKey = await createDocState(
|
|
13266
13266
|
{ slateData, title },
|
|
13267
13267
|
{ dispatch, getState }
|
|
@@ -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-HM7KOYQX.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-CRIQXO42.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-CYEFWT4D.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VDS3NXE5.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QXZ4YDXW.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-LWYCA4ZT.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CORE_DRAIN_REASON,
|
|
2
3
|
isGatewayHttpStatus,
|
|
3
4
|
parseRetryAfterHeaderMs
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D6OQHXVG.js";
|
|
5
6
|
import {
|
|
6
7
|
asTrimmedLowercaseString
|
|
7
8
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -61,7 +62,7 @@ async function resolveConnectorWebSocketTarget(input) {
|
|
|
61
62
|
}
|
|
62
63
|
if (response && !response.ok) {
|
|
63
64
|
const json2 = await response.clone().json().catch(() => null);
|
|
64
|
-
const retryable = json2?.retryable === true || json2?.reason ===
|
|
65
|
+
const retryable = json2?.retryable === true || json2?.reason === CORE_DRAIN_REASON || isGatewayHttpStatus(response.status);
|
|
65
66
|
if (retryable) {
|
|
66
67
|
const reason = typeof json2?.reason === "string" ? json2.reason : "retryable";
|
|
67
68
|
const message = typeof json2?.error === "string" ? json2.error : `Connector websocket unavailable with HTTP ${response.status}`;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CORE_DRAIN_REASON,
|
|
2
3
|
isGatewayHttpStatus,
|
|
3
4
|
normalizeNonNegativeMs,
|
|
4
5
|
parseRetryAfterHeaderMs
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D6OQHXVG.js";
|
|
6
7
|
import {
|
|
7
8
|
sortSafeAgentSummaries,
|
|
8
9
|
toSafeAgentSummary
|
|
@@ -32,10 +33,10 @@ import {
|
|
|
32
33
|
} from "./chunk-VF4K2QE6.js";
|
|
33
34
|
import {
|
|
34
35
|
createDocState
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3WSPFJ7B.js";
|
|
36
37
|
import {
|
|
37
38
|
createDialogAction
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GK7YFA5J.js";
|
|
39
40
|
import {
|
|
40
41
|
buildSkillDocMarkdown,
|
|
41
42
|
normalizeSkillBudgetTier,
|
|
@@ -74,13 +75,13 @@ import {
|
|
|
74
75
|
updateContentCategory,
|
|
75
76
|
updateContentTitle,
|
|
76
77
|
updateStep
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-DXLC3MIQ.js";
|
|
78
79
|
import {
|
|
79
80
|
createAgent,
|
|
80
81
|
runLlm,
|
|
81
82
|
streamAgentChatTurn,
|
|
82
83
|
updateAgent
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-EUELM55L.js";
|
|
84
85
|
import {
|
|
85
86
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
86
87
|
buildNoloSubjectRefQueryTarget,
|
|
@@ -13852,7 +13853,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
13852
13853
|
const deletedDialogIds = [];
|
|
13853
13854
|
const deletedDialogKeys = [];
|
|
13854
13855
|
const failures = [];
|
|
13855
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
13856
|
+
const { deleteDialog } = await import("./dialogSlice-4PYFGN7J.js");
|
|
13856
13857
|
for (const target of targets) {
|
|
13857
13858
|
try {
|
|
13858
13859
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -20631,6 +20632,7 @@ var parseMultilineSSE = createSSEParser();
|
|
|
20631
20632
|
var MAX_SSE_RETRIES = 3;
|
|
20632
20633
|
var SSE_RETRY_DELAY_MS = 1500;
|
|
20633
20634
|
var MAX_RUN_START_RETRIES = 1;
|
|
20635
|
+
var MAX_RUN_START_CORE_DRAINING_RETRIES = 30;
|
|
20634
20636
|
function createRetryableError(message, retryAfterMs) {
|
|
20635
20637
|
return Object.assign(new Error(message), {
|
|
20636
20638
|
retryable: true,
|
|
@@ -20752,7 +20754,8 @@ var runAgentBackground = createAsyncThunk("agent/runBackground", async (args, {
|
|
|
20752
20754
|
const authHeader = token ? `Bearer ${token}` : "";
|
|
20753
20755
|
const effectiveSignal = args.signal ?? thunkSignal;
|
|
20754
20756
|
let runResponse = null;
|
|
20755
|
-
|
|
20757
|
+
let maxRunStartRetries = MAX_RUN_START_RETRIES;
|
|
20758
|
+
for (let attempt = 0; attempt <= maxRunStartRetries; attempt++) {
|
|
20756
20759
|
const runRes = await fetch(`${currentServer}/api/agent/run`, {
|
|
20757
20760
|
method: "POST",
|
|
20758
20761
|
headers: {
|
|
@@ -20785,8 +20788,12 @@ var runAgentBackground = createAsyncThunk("agent/runBackground", async (args, {
|
|
|
20785
20788
|
SSE_RETRY_DELAY_MS,
|
|
20786
20789
|
payload?.retryAfterMs
|
|
20787
20790
|
);
|
|
20788
|
-
const
|
|
20789
|
-
|
|
20791
|
+
const isCoreDraining = payload?.reason === CORE_DRAIN_REASON;
|
|
20792
|
+
const retryable = payload?.retryable === true || isCoreDraining || isGatewayHttpStatus(runRes.status);
|
|
20793
|
+
if (isCoreDraining) {
|
|
20794
|
+
maxRunStartRetries = MAX_RUN_START_CORE_DRAINING_RETRIES;
|
|
20795
|
+
}
|
|
20796
|
+
if (retryable && attempt < maxRunStartRetries) {
|
|
20790
20797
|
await waitForRetryDelay(retryAfterMs, effectiveSignal);
|
|
20791
20798
|
continue;
|
|
20792
20799
|
}
|
|
@@ -22849,7 +22856,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
22849
22856
|
if (!executionInput) {
|
|
22850
22857
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
22851
22858
|
}
|
|
22852
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
22859
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-4YAV2HQH.js");
|
|
22853
22860
|
const { executor } = findToolExecutor2(run.toolName);
|
|
22854
22861
|
toolRunStarted({
|
|
22855
22862
|
id: run.id,
|
|
@@ -22873,7 +22880,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
22873
22880
|
const latestState = thunkApi.getState();
|
|
22874
22881
|
const userId = latestState.auth?.currentUser?.userId;
|
|
22875
22882
|
if (userId) {
|
|
22876
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
22883
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-NYR6BQDL.js");
|
|
22877
22884
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
22878
22885
|
}
|
|
22879
22886
|
}
|
|
@@ -25276,7 +25283,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25276
25283
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25277
25284
|
};
|
|
25278
25285
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25279
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25286
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-P7PG4YDJ.js");
|
|
25280
25287
|
if (getDocState().pageKey === id) {
|
|
25281
25288
|
applyExternalDocUpdate({
|
|
25282
25289
|
slateData: finalSlateData,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
createCliCallAgentToolExecutor,
|
|
15
15
|
createCliLocalRuntimeAdapter,
|
|
16
16
|
isBuiltinNoloAgentRef
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VDS3NXE5.js";
|
|
18
18
|
import {
|
|
19
19
|
CliProviderQuotaError
|
|
20
20
|
} from "./chunk-CMKUBIGW.js";
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
} from "./chunk-LTRXGFMS.js";
|
|
39
39
|
import {
|
|
40
40
|
isGatewayHttpStatus
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-D6OQHXVG.js";
|
|
42
42
|
import {
|
|
43
43
|
buildMemorySubjectsForAgent,
|
|
44
44
|
resolveAgentMemoryPolicy
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GK7YFA5J.js";
|
|
46
46
|
import {
|
|
47
47
|
parseExternalSkillMarkdown,
|
|
48
48
|
parseSkillDocProtocol
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
API_REPORTED_COST_MULTIPLIER,
|
|
52
52
|
parseUiAskChoiceContent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DXLC3MIQ.js";
|
|
54
54
|
import {
|
|
55
55
|
buildPlatformChatCompletionRequest,
|
|
56
56
|
parsePlatformChatCompletionData
|