nolo-cli 0.14.0-alpha.5 → 0.14.0-alpha.7
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-TURRLTZ2.js → _executeModel-RFT5SF7K.js} +9 -9
- package/{agentEmailCommands-M4AHOEZ3.js → agentEmailCommands-QEDVGC4R.js} +8 -8
- package/{agentMachineCommands-NPMM4Z53.js → agentMachineCommands-TU6R63NY.js} +1 -1
- package/{agentRecordCommands-RVUH7XLZ.js → agentRecordCommands-HU7Z6AIF.js} +8 -8
- package/{agentRunCommand-F6W2WKKZ.js → agentRunCommand-OV5KJJEJ.js} +8 -8
- package/{agentSlice-PCEL26Z7.js → agentSlice-AZJM7JEU.js} +1 -1
- package/{chunk-LNSRTNH7.js → chunk-2H5WLDK5.js} +3 -3
- package/{chunk-R5AOLZZV.js → chunk-3TNFSPK4.js} +23 -13
- package/{chunk-IYGQF62W.js → chunk-ABUSYXKS.js} +1 -1
- package/{chunk-NFPO7274.js → chunk-CGN3RCBB.js} +1 -1
- package/{chunk-MYE5X27Y.js → chunk-FTSTPJ5H.js} +5 -5
- package/{chunk-7TN6V43T.js → chunk-FUMEXHAF.js} +1 -1
- package/{chunk-E6KIDMTW.js → chunk-G5HNXQBU.js} +2 -2
- package/{chunk-IMZ7AFIJ.js → chunk-J4ZTWTKV.js} +3 -3
- package/{chunk-PYAJ6ZSK.js → chunk-KI6SJNRP.js} +1 -1
- package/{chunk-NZFWHBW5.js → chunk-OJTVDHOJ.js} +4 -4
- package/{chunk-4F4FJPFM.js → chunk-VWQGVOXQ.js} +5 -5
- package/{chunk-7LAIOHOL.js → chunk-YJAWJCEI.js} +2 -2
- package/{chunk-TYRTLSGX.js → chunk-ZVNP5V7L.js} +63 -16
- package/{createAgentAutomationAction-VLNDOHSP.js → createAgentAutomationAction-G6CHUK2D.js} +2 -2
- package/{createDialogAction-6WYTS62Z.js → createDialogAction-2WHKUKWV.js} +3 -3
- package/{createPageAction-YKHOC3LW.js → createPageAction-C2LKKOBJ.js} +2 -2
- package/{dialogSlice-2A2JOFZW.js → dialogSlice-LZU5QKIN.js} +2 -2
- package/{docStore-JJP5PUR7.js → docStore-QD57XJ4K.js} +3 -3
- package/{handleSendMessageAction-UAXTF73I.js → handleSendMessageAction-5OHXNVMH.js} +8 -4
- package/index.js +15 -15
- package/{machineCommands-BQ46IS5M.js → machineCommands-CXMIAUIS.js} +8 -8
- package/{machineWsRunDispatch-R33NXNNI.js → machineWsRunDispatch-MYFROKK2.js} +8 -8
- package/package.json +1 -1
- package/{readlineWorkspace-KBG4DKLX.js → readlineWorkspace-NBVFYLFX.js} +27 -9
- package/{runAgentClientLoop-MUV5YIRK.js → runAgentClientLoop-LYBCFZ2N.js} +7 -7
- package/{spaceSlice-VTC3QXP3.js → spaceSlice-BFQF34NY.js} +4 -2
- package/{streamAgentChatTurn-43N7BNV2.js → streamAgentChatTurn-4XRHF5WM.js} +8 -8
- package/{tools-PX6PEJLE.js → tools-TWULRP6D.js} +5 -5
- package/{updateDialogTitleAction-NPQZWAKG.js → updateDialogTitleAction-FDFEHTQP.js} +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KI6SJNRP.js";
|
|
4
4
|
import {
|
|
5
5
|
filterAndCleanMessages,
|
|
6
6
|
sendOpenAICompletionsRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FTSTPJ5H.js";
|
|
8
8
|
import "./chunk-JEXVIMYZ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CGN3RCBB.js";
|
|
10
10
|
import {
|
|
11
11
|
generateRequestBody,
|
|
12
12
|
mergeReferences,
|
|
13
13
|
performFetchRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2H5WLDK5.js";
|
|
15
15
|
import "./chunk-OIMX7MM4.js";
|
|
16
16
|
import "./chunk-VIDPVFP3.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-3TNFSPK4.js";
|
|
18
18
|
import "./chunk-RQSOAMPJ.js";
|
|
19
19
|
import "./chunk-OOIN7HSO.js";
|
|
20
20
|
import "./chunk-KQHGZWSV.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-YJAWJCEI.js";
|
|
27
|
+
import "./chunk-FUMEXHAF.js";
|
|
28
28
|
import "./chunk-VC6OZXO5.js";
|
|
29
29
|
import {
|
|
30
30
|
selectAllMsgs,
|
|
31
31
|
selectCurrentDialogConfig,
|
|
32
32
|
updateTokensAction
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZVNP5V7L.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-J4ZTWTKV.js";
|
|
39
39
|
import "./chunk-V6VXDXGY.js";
|
|
40
40
|
import "./chunk-Z4NR32XR.js";
|
|
41
41
|
import "./chunk-M76ECQRD.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "./chunk-3QAF2LTL.js";
|
|
9
9
|
import {
|
|
10
10
|
runAgentCreateCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ABUSYXKS.js";
|
|
12
|
+
import "./chunk-OJTVDHOJ.js";
|
|
13
13
|
import "./chunk-EHLHSX7R.js";
|
|
14
14
|
import "./chunk-CMKUBIGW.js";
|
|
15
15
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
} from "./chunk-VHBWHNVT.js";
|
|
27
27
|
import "./chunk-T3X232L6.js";
|
|
28
28
|
import "./chunk-ATNTHIZI.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-CGN3RCBB.js";
|
|
30
30
|
import "./chunk-OIMX7MM4.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-3TNFSPK4.js";
|
|
32
32
|
import "./chunk-RQSOAMPJ.js";
|
|
33
33
|
import "./chunk-OOIN7HSO.js";
|
|
34
34
|
import "./chunk-KQHGZWSV.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-YJAWJCEI.js";
|
|
41
|
+
import "./chunk-FUMEXHAF.js";
|
|
42
42
|
import "./chunk-VC6OZXO5.js";
|
|
43
43
|
import "./chunk-OWOHNGCN.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-ZVNP5V7L.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-J4ZTWTKV.js";
|
|
50
50
|
import "./chunk-V6VXDXGY.js";
|
|
51
51
|
import "./chunk-Z4NR32XR.js";
|
|
52
52
|
import "./chunk-M76ECQRD.js";
|
|
@@ -76,7 +76,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
76
76
|
return executeCli(provider, prompt, options);
|
|
77
77
|
}
|
|
78
78
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
79
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
79
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-MYFROKK2.js");
|
|
80
80
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
81
81
|
}
|
|
82
82
|
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-ABUSYXKS.js";
|
|
6
|
+
import "./chunk-OJTVDHOJ.js";
|
|
7
7
|
import "./chunk-EHLHSX7R.js";
|
|
8
8
|
import "./chunk-CMKUBIGW.js";
|
|
9
9
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -13,9 +13,9 @@ import "./chunk-TQCONXQ3.js";
|
|
|
13
13
|
import "./chunk-VHBWHNVT.js";
|
|
14
14
|
import "./chunk-T3X232L6.js";
|
|
15
15
|
import "./chunk-ATNTHIZI.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-CGN3RCBB.js";
|
|
17
17
|
import "./chunk-OIMX7MM4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-3TNFSPK4.js";
|
|
19
19
|
import "./chunk-RQSOAMPJ.js";
|
|
20
20
|
import "./chunk-OOIN7HSO.js";
|
|
21
21
|
import "./chunk-KQHGZWSV.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-YJAWJCEI.js";
|
|
28
|
+
import "./chunk-FUMEXHAF.js";
|
|
29
29
|
import "./chunk-VC6OZXO5.js";
|
|
30
30
|
import "./chunk-OWOHNGCN.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ZVNP5V7L.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-J4ZTWTKV.js";
|
|
37
37
|
import "./chunk-V6VXDXGY.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-VWQGVOXQ.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
11
|
import {
|
|
12
12
|
parseAgentRunArgs
|
|
13
13
|
} from "./chunk-3QAF2LTL.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-OJTVDHOJ.js";
|
|
15
15
|
import "./chunk-EHLHSX7R.js";
|
|
16
16
|
import "./chunk-CMKUBIGW.js";
|
|
17
17
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -23,9 +23,9 @@ import "./chunk-LTRXGFMS.js";
|
|
|
23
23
|
import "./chunk-T3X232L6.js";
|
|
24
24
|
import "./chunk-ATNTHIZI.js";
|
|
25
25
|
import "./chunk-JEXVIMYZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CGN3RCBB.js";
|
|
27
27
|
import "./chunk-OIMX7MM4.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-3TNFSPK4.js";
|
|
29
29
|
import "./chunk-RQSOAMPJ.js";
|
|
30
30
|
import "./chunk-OOIN7HSO.js";
|
|
31
31
|
import "./chunk-KQHGZWSV.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-YJAWJCEI.js";
|
|
38
|
+
import "./chunk-FUMEXHAF.js";
|
|
39
39
|
import "./chunk-VC6OZXO5.js";
|
|
40
40
|
import "./chunk-OWOHNGCN.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-ZVNP5V7L.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-J4ZTWTKV.js";
|
|
47
47
|
import "./chunk-V6VXDXGY.js";
|
|
48
48
|
import "./chunk-Z4NR32XR.js";
|
|
49
49
|
import "./chunk-M76ECQRD.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
clipMultilineText,
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
waitForAbortableDelay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3TNFSPK4.js";
|
|
10
10
|
import {
|
|
11
11
|
createDrainExhaustedResponse,
|
|
12
12
|
isCoreDrainingBody,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
fetchAndCacheMessages,
|
|
28
28
|
shouldUseServerProxy
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchServerSyncedCredential
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCurrentTimeBlock,
|
|
35
35
|
buildIdentityBlock,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-VF4K2QE6.js";
|
|
35
35
|
import {
|
|
36
36
|
createDocState
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YJAWJCEI.js";
|
|
38
38
|
import {
|
|
39
39
|
createDialogAction
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FUMEXHAF.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSkillDocMarkdown,
|
|
43
43
|
normalizeSkillBudgetTier,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
updateStep
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
80
80
|
import {
|
|
81
81
|
createAgent,
|
|
82
82
|
runLlm,
|
|
83
83
|
streamAgentChatTurn,
|
|
84
84
|
updateAgent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
86
86
|
import {
|
|
87
87
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
88
88
|
buildNoloSubjectRefQueryTarget,
|
|
@@ -5445,6 +5445,8 @@ var interface_locale_default = {
|
|
|
5445
5445
|
// === End Welcome Section ===
|
|
5446
5446
|
quickChat: {
|
|
5447
5447
|
greeting: "What are we working on today?",
|
|
5448
|
+
workspace: "Workspace",
|
|
5449
|
+
workspaceUnset: "Not set",
|
|
5448
5450
|
placeholder: "I'm {{name}}. Want to chat? You can also switch AI or set up a partner in settings.",
|
|
5449
5451
|
uploadImage: "Upload Image",
|
|
5450
5452
|
failedToStart: "Failed to start",
|
|
@@ -6670,6 +6672,8 @@ var interface_locale_default = {
|
|
|
6670
6672
|
// === End Welcome Section ===
|
|
6671
6673
|
quickChat: {
|
|
6672
6674
|
greeting: "\u4ECA\u5929\u4E00\u8D77\u505A\u4EC0\u4E48\uFF1F",
|
|
6675
|
+
workspace: "\u5DE5\u4F5C\u533A",
|
|
6676
|
+
workspaceUnset: "\u672A\u8BBE\u7F6E",
|
|
6673
6677
|
placeholder: "\u6211\u662F {{name}}\u3002\u60F3\u8DDF\u6211\u804A\u804A\u5417\uFF1F\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u5207\u6362 AI \u6216\u914D\u4E00\u4E2A\u642D\u6863",
|
|
6674
6678
|
uploadImage: "\u4E0A\u4F20\u56FE\u7247",
|
|
6675
6679
|
failedToStart: "\u542F\u52A8\u5931\u8D25",
|
|
@@ -7895,6 +7899,8 @@ var interface_locale_default = {
|
|
|
7895
7899
|
// === End Welcome Section ===
|
|
7896
7900
|
quickChat: {
|
|
7897
7901
|
greeting: "\u4ECA\u5929\u4E00\u8D77\u505A\u4EC0\u9EBC\uFF1F",
|
|
7902
|
+
workspace: "\u5DE5\u4F5C\u5340",
|
|
7903
|
+
workspaceUnset: "\u672A\u8A2D\u5B9A",
|
|
7898
7904
|
placeholder: "\u6211\u662F {{name}}\u3002\u60F3\u8DDF\u6211\u804A\u804A\u5417\uFF1F\u4F60\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u5207\u6362 AI \u6216\u5B9A\u5236\u4F60\u7684\u4E13\u5C5E AI",
|
|
7899
7905
|
uploadImage: "\u4E0A\u50B3\u5716\u7247",
|
|
7900
7906
|
failedToStart: "\u555F\u52D5\u5931\u6557",
|
|
@@ -14149,7 +14155,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14149
14155
|
const deletedDialogIds = [];
|
|
14150
14156
|
const deletedDialogKeys = [];
|
|
14151
14157
|
const failures = [];
|
|
14152
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14158
|
+
const { deleteDialog } = await import("./dialogSlice-LZU5QKIN.js");
|
|
14153
14159
|
for (const target of targets) {
|
|
14154
14160
|
try {
|
|
14155
14161
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -21987,7 +21993,7 @@ var startAgentRunFunctionSchema = {
|
|
|
21987
21993
|
properties: {
|
|
21988
21994
|
agentKey: {
|
|
21989
21995
|
type: "string",
|
|
21990
|
-
description: "\u8981\u542F\u52A8\u7684 Agent \u7684\u53EF\u8FD0\u884C dbKey\uFF08\u4F18\u5148\u4F7F\u7528 readAgent \u8FD4\u56DE\u7684 agentKey\uFF0C\u683C\u5F0F\u5982 agent-xxx\uFF09\u3002"
|
|
21996
|
+
description: "\u8981\u542F\u52A8\u7684 Agent \u7684\u53EF\u8FD0\u884C dbKey\uFF08\u4F18\u5148\u4F7F\u7528 readAgent \u8FD4\u56DE\u7684 agentKey\uFF0C\u683C\u5F0F\u5982 agent-xxx\uFF09\u3002\u5982\u679C\u5DF2\u901A\u8FC7 listAgents/readAgent \u83B7\u53D6\u540D\u79F0\uFF0C\u8BF7\u540C\u65F6\u4F20 agentName\u3002"
|
|
21991
21997
|
},
|
|
21992
21998
|
task: {
|
|
21993
21999
|
type: "string",
|
|
@@ -21995,13 +22001,17 @@ var startAgentRunFunctionSchema = {
|
|
|
21995
22001
|
},
|
|
21996
22002
|
input: {
|
|
21997
22003
|
description: "\u53EF\u9009\u3002JSON \u6216\u5B57\u7B26\u4E32\uFF0C\u4F5C\u4E3A\u672C\u6B21\u5B50\u4EFB\u52A1\u7684\u9644\u52A0\u8F93\u5165\uFF08\u5982\u6293\u53D6\u5230\u7684\u539F\u59CB\u6570\u636E\u3001\u4E0A\u4E0B\u6587\u7247\u6BB5\u7B49\uFF09\u3002"
|
|
22004
|
+
},
|
|
22005
|
+
agentName: {
|
|
22006
|
+
type: "string",
|
|
22007
|
+
description: "\u53EF\u9009\u3002\u7531 listAgents/readAgent \u5F97\u5230\u7684\u53EF\u8BFB Agent \u540D\u79F0\uFF0C\u7528\u4E8E TUI \u8FD0\u884C\u5361\u7247\u5C55\u793A\u3002"
|
|
21998
22008
|
}
|
|
21999
22009
|
},
|
|
22000
22010
|
required: ["agentKey", "task"]
|
|
22001
22011
|
}
|
|
22002
22012
|
};
|
|
22003
22013
|
async function startAgentRunFunc(args, thunkApi, _context) {
|
|
22004
|
-
const { agentKey, task, input } = args;
|
|
22014
|
+
const { agentKey, task, input, agentName } = args;
|
|
22005
22015
|
const { dispatch } = thunkApi;
|
|
22006
22016
|
if (!agentKey) {
|
|
22007
22017
|
throw new Error("startAgentRun: \u7F3A\u5C11 agentKey \u53C2\u6570\u3002");
|
|
@@ -22023,14 +22033,14 @@ async function startAgentRunFunc(args, thunkApi, _context) {
|
|
|
22023
22033
|
).unwrap();
|
|
22024
22034
|
const runId = bgResult.dialogId;
|
|
22025
22035
|
const status = bgResult.status ?? "pending";
|
|
22026
|
-
const
|
|
22036
|
+
const displayName = agentName?.trim() || bgResult.agentName || bgResult.name || "agent";
|
|
22027
22037
|
return {
|
|
22028
22038
|
rawData: {
|
|
22029
22039
|
runId,
|
|
22030
22040
|
status,
|
|
22031
|
-
...
|
|
22041
|
+
...displayName !== "agent" ? { agentName: displayName } : {}
|
|
22032
22042
|
},
|
|
22033
|
-
displayData: formatStartRunCard(
|
|
22043
|
+
displayData: formatStartRunCard(displayName, status)
|
|
22034
22044
|
};
|
|
22035
22045
|
} catch (e) {
|
|
22036
22046
|
throw new Error(`startAgentRun \u542F\u52A8 Agent [${agentKey}] \u5931\u8D25: ${toErrorMessage(e)}`);
|
|
@@ -23351,7 +23361,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23351
23361
|
if (!executionInput) {
|
|
23352
23362
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23353
23363
|
}
|
|
23354
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23364
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-TWULRP6D.js");
|
|
23355
23365
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23356
23366
|
toolRunStarted({
|
|
23357
23367
|
id: run.id,
|
|
@@ -23375,7 +23385,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23375
23385
|
const latestState = thunkApi.getState();
|
|
23376
23386
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23377
23387
|
if (userId) {
|
|
23378
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23388
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-BFQF34NY.js");
|
|
23379
23389
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23380
23390
|
}
|
|
23381
23391
|
}
|
|
@@ -25778,7 +25788,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25778
25788
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25779
25789
|
};
|
|
25780
25790
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25781
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25791
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-QD57XJ4K.js");
|
|
25782
25792
|
if (getDocState().pageKey === id) {
|
|
25783
25793
|
applyExternalDocUpdate({
|
|
25784
25794
|
slateData: finalSlateData,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CGN3RCBB.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2H5WLDK5.js";
|
|
12
12
|
import {
|
|
13
13
|
getPublicImageAgentMode
|
|
14
14
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
toolRunSetPending,
|
|
23
23
|
toolRunStarted,
|
|
24
24
|
toolRunSucceeded
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3TNFSPK4.js";
|
|
26
26
|
import {
|
|
27
27
|
addToolMessage,
|
|
28
28
|
messageStreamEnd,
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
38
|
} from "./chunk-VQFY3VXW.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OJTVDHOJ.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3TNFSPK4.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-VQFY3VXW.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-RFT5SF7K.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-LYBCFZ2N.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-4XRHF5WM.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
inlineImageUrlsForCustomProvider,
|
|
30
30
|
prepareTools
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CGN3RCBB.js";
|
|
32
32
|
import {
|
|
33
33
|
getAntigravityUserAgent,
|
|
34
34
|
isAntigravityOAuthAgent,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
readXhsProfileFunctionSchema,
|
|
54
54
|
rememberMemoryFunctionSchema,
|
|
55
55
|
resolveEffectiveEnabledPacks
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-3TNFSPK4.js";
|
|
57
57
|
import {
|
|
58
58
|
createDrainExhaustedResponse,
|
|
59
59
|
isCoreDrainingBody,
|
|
@@ -65,13 +65,13 @@ import {
|
|
|
65
65
|
} from "./chunk-OWOHNGCN.js";
|
|
66
66
|
import {
|
|
67
67
|
prepareTokenUsageData
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
69
69
|
import {
|
|
70
70
|
BUILTIN_TITLE_LLM_CONFIG
|
|
71
71
|
} from "./chunk-V2J635L5.js";
|
|
72
72
|
import {
|
|
73
73
|
fetchServerSyncedCredential
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
75
75
|
import {
|
|
76
76
|
buildAgentRuntimeDialogWritePlan,
|
|
77
77
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isBuiltinNoloAgentRef,
|
|
19
19
|
t,
|
|
20
20
|
toolLabel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OJTVDHOJ.js";
|
|
22
22
|
import {
|
|
23
23
|
CliProviderQuotaError
|
|
24
24
|
} from "./chunk-CMKUBIGW.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
formatStatusRunCard,
|
|
49
49
|
formatStopRunCard,
|
|
50
50
|
isAgentRunTerminalStatus
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3TNFSPK4.js";
|
|
52
52
|
import {
|
|
53
53
|
isGatewayHttpStatus
|
|
54
54
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
chooseMemoryOwners,
|
|
58
58
|
loadMemoryCandidatesFromDb,
|
|
59
59
|
resolveAgentMemoryPolicy
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-FUMEXHAF.js";
|
|
61
61
|
import {
|
|
62
62
|
parseExternalSkillMarkdown,
|
|
63
63
|
parseSkillDocProtocol
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
API_REPORTED_COST_MULTIPLIER,
|
|
67
67
|
normalizeUsage,
|
|
68
68
|
parseUiAskChoiceContent
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
70
70
|
import {
|
|
71
71
|
buildSkillDiscoveryContextBlock
|
|
72
72
|
} from "./chunk-AS3ZQ3O2.js";
|
|
@@ -3210,7 +3210,7 @@ ${options.agentName} > `);
|
|
|
3210
3210
|
spinner.show(activeLabel);
|
|
3211
3211
|
options.activityReporter?.(activeLabel);
|
|
3212
3212
|
}
|
|
3213
|
-
if (event.type === "tool-result" && options.onAgentRunStatus &&
|
|
3213
|
+
if (event.type === "tool-result" && options.onAgentRunStatus && event.toolName === "startAgentRun") {
|
|
3214
3214
|
const snapshot = extractAgentRunStatusSnapshot(event);
|
|
3215
3215
|
if (snapshot) {
|
|
3216
3216
|
options.onAgentRunStatus(snapshot);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVNP5V7L.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-C2LKKOBJ.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|