nolo-cli 0.253.0-alpha.1 → 0.254.0-alpha.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-VUXEWLLQ.js → _executeModel-OMDET3E2.js} +13 -13
- package/{agentDeleteCommand-SU5IKIW3.js → agentDeleteCommand-5WXEECFH.js} +10 -10
- package/{agentEmailCommands-SHLVY627.js → agentEmailCommands-3QWBB2JL.js} +11 -11
- package/{agentListCommands-3NTMYMVI.js → agentListCommands-WTEF5RKJ.js} +1 -1
- package/{agentMachineCommands-MYXLAKQF.js → agentMachineCommands-DP44GKA6.js} +1 -1
- package/{agentRecordCommands-EIZTKSWW.js → agentRecordCommands-4I7P34GJ.js} +11 -11
- package/{agentRunCommand-RB3EIT4I.js → agentRunCommand-VAKWFXJV.js} +11 -11
- package/{agentSlice-TQVS23WV.js → agentSlice-5ZSVWJHV.js} +1 -1
- package/{chunk-JJABK3QO.js → chunk-2G3XMM3O.js} +17 -2
- package/{chunk-UHTT23PH.js → chunk-4Z7Q4QZF.js} +5 -5
- package/{chunk-TOHMK27J.js → chunk-6WI4PFPP.js} +5 -5
- package/{chunk-MARF3TN2.js → chunk-AX63ZU2W.js} +2 -2
- package/{chunk-4BQ5QKIG.js → chunk-GJKEOBCV.js} +3 -3
- package/{chunk-CMYZT2XN.js → chunk-HKPIFK7F.js} +2 -2
- package/{chunk-ANQ544EU.js → chunk-IDCGMZLC.js} +3 -3
- package/{chunk-MPOUZIF4.js → chunk-IGK4OXAO.js} +2 -2
- package/{chunk-VKAITWPC.js → chunk-KR4W72OK.js} +6 -6
- package/{chunk-O3WZMJAN.js → chunk-MCQXBKC6.js} +2 -2
- package/{chunk-TI2JIXK4.js → chunk-MICGEDCN.js} +8 -8
- package/{chunk-FZSGYLFV.js → chunk-MR72IIX5.js} +2 -2
- package/{chunk-2BJ53346.js → chunk-MW3XUUYS.js} +2 -2
- package/{chunk-CF7U32BX.js → chunk-NEDBPW44.js} +1 -1
- package/{chunk-IRORRPH2.js → chunk-NXNHG3QT.js} +5 -5
- package/{chunk-4AFKLWZP.js → chunk-TA2JQUWA.js} +9 -9
- package/{chunk-YQYSQUP3.js → chunk-YW5L3XOO.js} +1 -1
- package/{chunk-UMI4NNZP.js → chunk-YYHWEVBI.js} +2 -2
- package/{chunk-CUQNRU4X.js → chunk-ZAKWT4XQ.js} +2 -2
- package/{commandRegistry-JDCGWIWD.js → commandRegistry-DONNI3FW.js} +16 -16
- package/{contentThunks-B6BY7GS3.js → contentThunks-THSXC6WQ.js} +3 -3
- package/{createAgentAutomationAction-TQ6IA5SV.js → createAgentAutomationAction-WNQOJ4DG.js} +3 -3
- package/{createDialogAction-QKMGD2TS.js → createDialogAction-YORDQFFC.js} +4 -4
- package/{createPageAction-7EEVGWGG.js → createPageAction-2S7V5OCW.js} +4 -4
- package/{dialogSlice-6WIME53P.js → dialogSlice-JOICDGQU.js} +2 -2
- package/{docStore-VEHQHXRM.js → docStore-NKVLWCXX.js} +1 -1
- package/{handleSendMessageAction-X5LGNJX5.js → handleSendMessageAction-SNNYOQ4P.js} +8 -8
- package/{hostCredentialCreate-AQYSWUKA.js → hostCredentialCreate-SDQUFL23.js} +11 -11
- package/index.js +3 -3
- package/{localRuntimeAdapter-FA4OGZGU.js → localRuntimeAdapter-JHYH5ZIR.js} +10 -10
- package/{machineCommands-VKU6MAFA.js → machineCommands-BXSBRM7L.js} +11 -11
- package/{machineWsRunDispatch-XQQHHOX4.js → machineWsRunDispatch-KEXSHGSD.js} +11 -11
- package/package.json +1 -1
- package/{projectArchive-674NJOYI.js → projectArchive-FDYE7VNC.js} +4 -4
- package/{readlineWorkspace-HFPEDOHN.js → readlineWorkspace-ME2C64XI.js} +14 -14
- package/{runAgentClientLoop-NU3JNHSH.js → runAgentClientLoop-UAGXVYW5.js} +11 -11
- package/{streamAgentChatTurn-7FDXIRMB.js → streamAgentChatTurn-RZUB6JTH.js} +13 -13
- package/{tools-GC45557U.js → tools-23F5EEVM.js} +8 -8
- package/{updateDialogTitleAction-OAC5MWMS.js → updateDialogTitleAction-TJWT4LXL.js} +3 -3
|
@@ -2,48 +2,48 @@ import {
|
|
|
2
2
|
fetchAgentContexts,
|
|
3
3
|
responsesJsonToChatCompletions,
|
|
4
4
|
updateAgentTokens
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YYHWEVBI.js";
|
|
6
6
|
import {
|
|
7
7
|
filterAndCleanMessages,
|
|
8
8
|
sendOpenAICompletionsRequest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KR4W72OK.js";
|
|
10
10
|
import "./chunk-JEXVIMYZ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-MCQXBKC6.js";
|
|
12
12
|
import {
|
|
13
13
|
DirectApiKeyResolutionError,
|
|
14
14
|
generateRequestBody,
|
|
15
15
|
performFetchRequest,
|
|
16
16
|
sanitizeOutboundBody
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IGK4OXAO.js";
|
|
18
18
|
import "./chunk-KZ4A7EIV.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-TA2JQUWA.js";
|
|
20
|
+
import "./chunk-2G3XMM3O.js";
|
|
21
21
|
import "./chunk-MVOZ22RZ.js";
|
|
22
22
|
import "./chunk-VZCBYCHV.js";
|
|
23
23
|
import {
|
|
24
24
|
mergeReferences
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-MW3XUUYS.js";
|
|
26
|
+
import "./chunk-GJKEOBCV.js";
|
|
27
27
|
import "./chunk-NF64D32W.js";
|
|
28
28
|
import "./chunk-WMMKHEGQ.js";
|
|
29
29
|
import "./chunk-WDWZPASX.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ZAKWT4XQ.js";
|
|
31
31
|
import "./chunk-MRYKRL2V.js";
|
|
32
32
|
import "./chunk-VF4K2QE6.js";
|
|
33
33
|
import "./chunk-OLS2J3WE.js";
|
|
34
34
|
import "./chunk-NMGG3NUB.js";
|
|
35
35
|
import "./chunk-AGIM7IMJ.js";
|
|
36
36
|
import "./chunk-KQBGXCKM.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-HKPIFK7F.js";
|
|
38
|
+
import "./chunk-YW5L3XOO.js";
|
|
39
39
|
import {
|
|
40
40
|
selectAllMsgs,
|
|
41
41
|
selectCurrentDialogConfig
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MICGEDCN.js";
|
|
43
43
|
import "./chunk-TZXPT53C.js";
|
|
44
44
|
import "./chunk-BUDVRYES.js";
|
|
45
45
|
import "./chunk-523DITKR.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-IDCGMZLC.js";
|
|
47
47
|
import "./chunk-DNY33GGQ.js";
|
|
48
48
|
import "./chunk-BYXBJQAS.js";
|
|
49
49
|
import "./chunk-M7GMJBQJ.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-ZYPXOQS2.js";
|
|
4
4
|
import {
|
|
5
5
|
clearCliLocalRuntimePreparedAgentCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6WI4PFPP.js";
|
|
7
7
|
import "./chunk-HSBHS6KT.js";
|
|
8
8
|
import "./chunk-FE7G6DSP.js";
|
|
9
9
|
import "./chunk-QV32GSVO.js";
|
|
@@ -19,29 +19,29 @@ import "./chunk-R7XWZDOH.js";
|
|
|
19
19
|
import "./chunk-ZEZC7IIM.js";
|
|
20
20
|
import "./chunk-ATNTHIZI.js";
|
|
21
21
|
import "./chunk-VPSPVLCM.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MCQXBKC6.js";
|
|
23
23
|
import "./chunk-KZ4A7EIV.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-TA2JQUWA.js";
|
|
25
|
+
import "./chunk-2G3XMM3O.js";
|
|
26
26
|
import "./chunk-MVOZ22RZ.js";
|
|
27
27
|
import "./chunk-VZCBYCHV.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-GJKEOBCV.js";
|
|
29
29
|
import "./chunk-NF64D32W.js";
|
|
30
30
|
import "./chunk-WMMKHEGQ.js";
|
|
31
31
|
import "./chunk-WDWZPASX.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ZAKWT4XQ.js";
|
|
33
33
|
import "./chunk-MRYKRL2V.js";
|
|
34
34
|
import "./chunk-VF4K2QE6.js";
|
|
35
35
|
import "./chunk-OLS2J3WE.js";
|
|
36
36
|
import "./chunk-NMGG3NUB.js";
|
|
37
37
|
import "./chunk-KQBGXCKM.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-HKPIFK7F.js";
|
|
39
|
+
import "./chunk-YW5L3XOO.js";
|
|
40
|
+
import "./chunk-MICGEDCN.js";
|
|
41
41
|
import "./chunk-TZXPT53C.js";
|
|
42
42
|
import "./chunk-BUDVRYES.js";
|
|
43
43
|
import "./chunk-523DITKR.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-IDCGMZLC.js";
|
|
45
45
|
import "./chunk-DNY33GGQ.js";
|
|
46
46
|
import "./chunk-BYXBJQAS.js";
|
|
47
47
|
import "./chunk-M7GMJBQJ.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-3272HU62.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NEDBPW44.js";
|
|
8
8
|
import "./chunk-P27E22MA.js";
|
|
9
9
|
import {
|
|
10
10
|
getReadableCliDb
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
positionalArgs,
|
|
14
14
|
readFlagValue
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6WI4PFPP.js";
|
|
16
16
|
import "./chunk-HSBHS6KT.js";
|
|
17
17
|
import "./chunk-FE7G6DSP.js";
|
|
18
18
|
import "./chunk-QV32GSVO.js";
|
|
@@ -29,29 +29,29 @@ import "./chunk-R7XWZDOH.js";
|
|
|
29
29
|
import "./chunk-ZEZC7IIM.js";
|
|
30
30
|
import "./chunk-ATNTHIZI.js";
|
|
31
31
|
import "./chunk-VPSPVLCM.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-MCQXBKC6.js";
|
|
33
33
|
import "./chunk-KZ4A7EIV.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-TA2JQUWA.js";
|
|
35
|
+
import "./chunk-2G3XMM3O.js";
|
|
36
36
|
import "./chunk-MVOZ22RZ.js";
|
|
37
37
|
import "./chunk-VZCBYCHV.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-GJKEOBCV.js";
|
|
39
39
|
import "./chunk-NF64D32W.js";
|
|
40
40
|
import "./chunk-WMMKHEGQ.js";
|
|
41
41
|
import "./chunk-WDWZPASX.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-ZAKWT4XQ.js";
|
|
43
43
|
import "./chunk-MRYKRL2V.js";
|
|
44
44
|
import "./chunk-VF4K2QE6.js";
|
|
45
45
|
import "./chunk-OLS2J3WE.js";
|
|
46
46
|
import "./chunk-NMGG3NUB.js";
|
|
47
47
|
import "./chunk-KQBGXCKM.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-HKPIFK7F.js";
|
|
49
|
+
import "./chunk-YW5L3XOO.js";
|
|
50
|
+
import "./chunk-MICGEDCN.js";
|
|
51
51
|
import "./chunk-TZXPT53C.js";
|
|
52
52
|
import "./chunk-BUDVRYES.js";
|
|
53
53
|
import "./chunk-523DITKR.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-IDCGMZLC.js";
|
|
55
55
|
import "./chunk-DNY33GGQ.js";
|
|
56
56
|
import "./chunk-BYXBJQAS.js";
|
|
57
57
|
import "./chunk-M7GMJBQJ.js";
|
|
@@ -122,7 +122,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
122
122
|
return executeCli(provider, prompt, options);
|
|
123
123
|
}
|
|
124
124
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
125
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
125
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-KEXSHGSD.js");
|
|
126
126
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
127
127
|
}
|
|
128
128
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NEDBPW44.js";
|
|
6
6
|
import "./chunk-P27E22MA.js";
|
|
7
7
|
import "./chunk-ZYPXOQS2.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-6WI4PFPP.js";
|
|
9
9
|
import "./chunk-HSBHS6KT.js";
|
|
10
10
|
import "./chunk-FE7G6DSP.js";
|
|
11
11
|
import "./chunk-QV32GSVO.js";
|
|
@@ -22,29 +22,29 @@ import "./chunk-R7XWZDOH.js";
|
|
|
22
22
|
import "./chunk-ZEZC7IIM.js";
|
|
23
23
|
import "./chunk-ATNTHIZI.js";
|
|
24
24
|
import "./chunk-VPSPVLCM.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-MCQXBKC6.js";
|
|
26
26
|
import "./chunk-KZ4A7EIV.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-TA2JQUWA.js";
|
|
28
|
+
import "./chunk-2G3XMM3O.js";
|
|
29
29
|
import "./chunk-MVOZ22RZ.js";
|
|
30
30
|
import "./chunk-VZCBYCHV.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-GJKEOBCV.js";
|
|
32
32
|
import "./chunk-NF64D32W.js";
|
|
33
33
|
import "./chunk-WMMKHEGQ.js";
|
|
34
34
|
import "./chunk-WDWZPASX.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-ZAKWT4XQ.js";
|
|
36
36
|
import "./chunk-MRYKRL2V.js";
|
|
37
37
|
import "./chunk-VF4K2QE6.js";
|
|
38
38
|
import "./chunk-OLS2J3WE.js";
|
|
39
39
|
import "./chunk-NMGG3NUB.js";
|
|
40
40
|
import "./chunk-KQBGXCKM.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-HKPIFK7F.js";
|
|
42
|
+
import "./chunk-YW5L3XOO.js";
|
|
43
|
+
import "./chunk-MICGEDCN.js";
|
|
44
44
|
import "./chunk-TZXPT53C.js";
|
|
45
45
|
import "./chunk-BUDVRYES.js";
|
|
46
46
|
import "./chunk-523DITKR.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-IDCGMZLC.js";
|
|
48
48
|
import "./chunk-DNY33GGQ.js";
|
|
49
49
|
import "./chunk-BYXBJQAS.js";
|
|
50
50
|
import "./chunk-M7GMJBQJ.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveRunSettlementNote,
|
|
10
10
|
resolveWorkflowReference,
|
|
11
11
|
runAgentRunCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4Z7Q4QZF.js";
|
|
13
13
|
import "./chunk-6QDYSCPW.js";
|
|
14
14
|
import "./chunk-GAHJLSDO.js";
|
|
15
15
|
import "./chunk-ZYPXOQS2.js";
|
|
16
16
|
import {
|
|
17
17
|
parseAgentRunArgs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6WI4PFPP.js";
|
|
19
19
|
import "./chunk-HSBHS6KT.js";
|
|
20
20
|
import "./chunk-FE7G6DSP.js";
|
|
21
21
|
import "./chunk-QV32GSVO.js";
|
|
@@ -42,29 +42,29 @@ import "./chunk-BMQ2MJUK.js";
|
|
|
42
42
|
import "./chunk-ATNTHIZI.js";
|
|
43
43
|
import "./chunk-VPSPVLCM.js";
|
|
44
44
|
import "./chunk-JEXVIMYZ.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-MCQXBKC6.js";
|
|
46
46
|
import "./chunk-KZ4A7EIV.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-TA2JQUWA.js";
|
|
48
|
+
import "./chunk-2G3XMM3O.js";
|
|
49
49
|
import "./chunk-MVOZ22RZ.js";
|
|
50
50
|
import "./chunk-VZCBYCHV.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-GJKEOBCV.js";
|
|
52
52
|
import "./chunk-NF64D32W.js";
|
|
53
53
|
import "./chunk-WMMKHEGQ.js";
|
|
54
54
|
import "./chunk-WDWZPASX.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ZAKWT4XQ.js";
|
|
56
56
|
import "./chunk-MRYKRL2V.js";
|
|
57
57
|
import "./chunk-VF4K2QE6.js";
|
|
58
58
|
import "./chunk-OLS2J3WE.js";
|
|
59
59
|
import "./chunk-NMGG3NUB.js";
|
|
60
60
|
import "./chunk-KQBGXCKM.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-HKPIFK7F.js";
|
|
62
|
+
import "./chunk-YW5L3XOO.js";
|
|
63
|
+
import "./chunk-MICGEDCN.js";
|
|
64
64
|
import "./chunk-TZXPT53C.js";
|
|
65
65
|
import "./chunk-BUDVRYES.js";
|
|
66
66
|
import "./chunk-523DITKR.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-IDCGMZLC.js";
|
|
68
68
|
import "./chunk-DNY33GGQ.js";
|
|
69
69
|
import "./chunk-BYXBJQAS.js";
|
|
70
70
|
import "./chunk-M7GMJBQJ.js";
|
|
@@ -80,6 +80,15 @@ function filterAgentsByScope(agents, scope) {
|
|
|
80
80
|
if (scope === "public") return unique.filter((agent) => isPublicDiscoveryAgent(agent));
|
|
81
81
|
return unique.filter((agent) => isPreferredAgent(agent) || agent.isPublic === true);
|
|
82
82
|
}
|
|
83
|
+
function resolveCallerCredentialGroup(agents, caller) {
|
|
84
|
+
const explicit = caller?.credentialGroup;
|
|
85
|
+
if (typeof explicit === "string" && explicit.trim()) return explicit.trim();
|
|
86
|
+
const callerKey = typeof caller?.agentKey === "string" && caller.agentKey.trim() ? caller.agentKey : void 0;
|
|
87
|
+
if (!callerKey) return void 0;
|
|
88
|
+
const own = agents.find((agent) => agent.agentKey === callerKey);
|
|
89
|
+
const group = own?.credentialGroup;
|
|
90
|
+
return typeof group === "string" && group.length > 0 ? group : void 0;
|
|
91
|
+
}
|
|
83
92
|
function recommendPlanning(agents, caller, poolComplete) {
|
|
84
93
|
const callerKey = typeof caller?.agentKey === "string" && caller.agentKey.trim() ? caller.agentKey : void 0;
|
|
85
94
|
const current = callerKey ? agents.find((a) => a.agentKey === callerKey) : void 0;
|
|
@@ -263,16 +272,22 @@ function buildAgentDiscoveryResult(options) {
|
|
|
263
272
|
) : { agents: projectedAgents, groups: credentialGroups };
|
|
264
273
|
const tierHints = {};
|
|
265
274
|
const tierHintPreferences = /* @__PURE__ */ new Map();
|
|
275
|
+
const callerCredentialGroup = resolveCallerCredentialGroup(sortedAgents, options.caller);
|
|
266
276
|
for (const agent of sortedAgents) {
|
|
267
277
|
const { agentKey, name, model, modelTier, requiresPaidApproval, availabilityStatus } = agent;
|
|
268
278
|
if (!agentKey || requiresPaidApproval !== false || modelTier === "unknown" || availabilityStatus === "quota_exhausted" || availabilityStatus === "rate_limited") continue;
|
|
269
279
|
const priority = resolveAgentSelectionPriority(agent);
|
|
270
280
|
const current = tierHintPreferences.get(modelTier);
|
|
271
281
|
if (current && current.priority !== priority) continue;
|
|
282
|
+
const differentGroup = callerCredentialGroup !== void 0 && Boolean(agent.credentialGroup) && agent.credentialGroup !== callerCredentialGroup;
|
|
272
283
|
const resetAt = nearestFundedSubscriptionReset(agent, now);
|
|
273
284
|
const price = resetAt === Infinity ? meteredUnitPrice(agent) : Infinity;
|
|
274
|
-
if (current &&
|
|
275
|
-
|
|
285
|
+
if (current && current.differentGroup !== differentGroup) {
|
|
286
|
+
if (current.differentGroup) continue;
|
|
287
|
+
} else if (current && (resetAt > current.resetAt || resetAt === current.resetAt && price >= current.price)) {
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
tierHintPreferences.set(modelTier, { priority, differentGroup, resetAt, price });
|
|
276
291
|
tierHints[modelTier] = { agentKey, name, model };
|
|
277
292
|
}
|
|
278
293
|
return {
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6WI4PFPP.js";
|
|
37
37
|
import {
|
|
38
38
|
boxGlyphs,
|
|
39
39
|
displayWidth,
|
|
@@ -89,11 +89,11 @@ import {
|
|
|
89
89
|
} from "./chunk-BMQ2MJUK.js";
|
|
90
90
|
import {
|
|
91
91
|
resolveCliLocalRuntimeKeyCapability
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-TA2JQUWA.js";
|
|
93
93
|
import {
|
|
94
94
|
parseUiCard,
|
|
95
95
|
uiCardFallback
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-GJKEOBCV.js";
|
|
97
97
|
import {
|
|
98
98
|
isGatewayHttpStatus
|
|
99
99
|
} from "./chunk-NF64D32W.js";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
loadOwnerItemsFromDb,
|
|
105
105
|
parseUiAskChoiceContent,
|
|
106
106
|
resolveAgentMemoryPolicy
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-HKPIFK7F.js";
|
|
108
108
|
import {
|
|
109
109
|
API_REPORTED_COST_MULTIPLIER,
|
|
110
110
|
estimateMessagesTokens,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
resolveAgentContextWindow,
|
|
114
114
|
resolveOccupancy,
|
|
115
115
|
resolveOccupancyWindow
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-MICGEDCN.js";
|
|
117
117
|
import {
|
|
118
118
|
getDefaultCliLocalRuntimeDb
|
|
119
119
|
} from "./chunk-J55F3IEZ.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
import {
|
|
76
76
|
inlineImageUrlsForCustomProvider,
|
|
77
77
|
prepareTools
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-MCQXBKC6.js";
|
|
79
79
|
import {
|
|
80
80
|
getServerProviderSecret
|
|
81
81
|
} from "./chunk-KZ4A7EIV.js";
|
|
@@ -98,18 +98,18 @@ import {
|
|
|
98
98
|
resolveCliLocalSpawnDispatch,
|
|
99
99
|
resolveRunContextFacts,
|
|
100
100
|
resolveStartAgentRunCwd
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-TA2JQUWA.js";
|
|
102
102
|
import {
|
|
103
103
|
normalizeEnabledPromptSkills,
|
|
104
104
|
resolveUserEnabledSkills
|
|
105
105
|
} from "./chunk-WMMKHEGQ.js";
|
|
106
106
|
import {
|
|
107
107
|
validateAskChoiceInput
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-HKPIFK7F.js";
|
|
109
109
|
import {
|
|
110
110
|
prepareTokenUsageData,
|
|
111
111
|
runKeyed
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-MICGEDCN.js";
|
|
113
113
|
import {
|
|
114
114
|
applyTokenUsageToDayStats,
|
|
115
115
|
require_format
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
} from "./chunk-523DITKR.js";
|
|
121
121
|
import {
|
|
122
122
|
fetchServerSyncedCredential
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-IDCGMZLC.js";
|
|
124
124
|
import {
|
|
125
125
|
getDefaultCliLocalRuntimeDb
|
|
126
126
|
} from "./chunk-J55F3IEZ.js";
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
resolveCreationSpaceId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YW5L3XOO.js";
|
|
18
18
|
import {
|
|
19
19
|
runtime_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MICGEDCN.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentSpaceId
|
|
23
23
|
} from "./chunk-DNY33GGQ.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-OLS2J3WE.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAndCacheTableRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YW5L3XOO.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveDialogRuntimeAgentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MICGEDCN.js";
|
|
13
13
|
import {
|
|
14
14
|
createSpaceKey
|
|
15
15
|
} from "./chunk-UAD2WT54.js";
|
|
@@ -791,7 +791,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
791
791
|
if (!executionInput) {
|
|
792
792
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
793
793
|
}
|
|
794
|
-
const { findToolExecutor } = await import("./tools-
|
|
794
|
+
const { findToolExecutor } = await import("./tools-23F5EEVM.js");
|
|
795
795
|
const { executor } = findToolExecutor(run.toolName);
|
|
796
796
|
toolRunStarted({
|
|
797
797
|
id: run.id,
|
|
@@ -471,7 +471,7 @@ var slice = createSliceWithThunks({
|
|
|
471
471
|
const overrides = {};
|
|
472
472
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
473
473
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
474
|
-
const { _executeModel } = await import("./_executeModel-
|
|
474
|
+
const { _executeModel } = await import("./_executeModel-OMDET3E2.js");
|
|
475
475
|
return _executeModel(
|
|
476
476
|
{
|
|
477
477
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -492,7 +492,7 @@ var slice = createSliceWithThunks({
|
|
|
492
492
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
493
493
|
*/
|
|
494
494
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
495
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
495
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-UAGXVYW5.js");
|
|
496
496
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
497
497
|
{
|
|
498
498
|
agentKey: args.agentKey,
|
|
@@ -508,7 +508,7 @@ var slice = createSliceWithThunks({
|
|
|
508
508
|
* 聊天轮次流式 Agent 调用
|
|
509
509
|
*/
|
|
510
510
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
511
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
511
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-RZUB6JTH.js");
|
|
512
512
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
513
513
|
}),
|
|
514
514
|
/**
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-KZ4A7EIV.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MW3XUUYS.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IDCGMZLC.js";
|
|
10
10
|
import {
|
|
11
11
|
buildIdentityBlock,
|
|
12
12
|
buildPlatformStaticContextLayers,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MCQXBKC6.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IGK4OXAO.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TA2JQUWA.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GJKEOBCV.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MICGEDCN.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IDCGMZLC.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
44
|
} from "./chunk-DNY33GGQ.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TA2JQUWA.js";
|
|
4
4
|
import {
|
|
5
5
|
INLINE_IMAGE_MAX_BYTES,
|
|
6
6
|
INLINE_IMAGE_TOTAL_MAX_BYTES,
|
|
7
7
|
runtime_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MICGEDCN.js";
|
|
9
9
|
import {
|
|
10
10
|
canonicalizeToolNames
|
|
11
11
|
} from "./chunk-YLAHYLDQ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-523DITKR.js";
|
|
11
11
|
import {
|
|
12
12
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IDCGMZLC.js";
|
|
14
14
|
import {
|
|
15
15
|
cleanupCliSessionForDialog
|
|
16
16
|
} from "./chunk-M7GMJBQJ.js";
|
|
@@ -15192,7 +15192,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
15192
15192
|
runtimeOptions: args.runtimeOptions
|
|
15193
15193
|
});
|
|
15194
15194
|
if (agentKeyToUse) {
|
|
15195
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
15195
|
+
const { streamAgentChatTurn } = await import("./agentSlice-5ZSVWJHV.js");
|
|
15196
15196
|
await dispatch(
|
|
15197
15197
|
streamAgentChatTurn({
|
|
15198
15198
|
agentKey: agentKeyToUse,
|
|
@@ -16338,7 +16338,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
16338
16338
|
}
|
|
16339
16339
|
if (isCurrentDialog) {
|
|
16340
16340
|
await thunkApi.dispatch(resetMsgs());
|
|
16341
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
16341
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-JOICDGQU.js");
|
|
16342
16342
|
dispatch(clearPendingAttachments2());
|
|
16343
16343
|
}
|
|
16344
16344
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -16346,15 +16346,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
16346
16346
|
|
|
16347
16347
|
// packages/chat/dialog/dialogSlice.ts
|
|
16348
16348
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
16349
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
16349
|
+
const { createDialogAction } = await import("./createDialogAction-YORDQFFC.js");
|
|
16350
16350
|
return createDialogAction(args, thunkApi);
|
|
16351
16351
|
};
|
|
16352
16352
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
16353
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
16353
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-WNQOJ4DG.js");
|
|
16354
16354
|
return createAgentAutomationAction(args, thunkApi);
|
|
16355
16355
|
};
|
|
16356
16356
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
16357
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
16357
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-TJWT4LXL.js");
|
|
16358
16358
|
return updateDialogTitleAction(args, thunkApi);
|
|
16359
16359
|
};
|
|
16360
16360
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -16378,7 +16378,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
16378
16378
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
16379
16379
|
};
|
|
16380
16380
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
16381
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
16381
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-SNNYOQ4P.js");
|
|
16382
16382
|
return handleSendMessageAction(args, thunkApi);
|
|
16383
16383
|
};
|
|
16384
16384
|
function clearDialogState() {
|
|
@@ -16391,7 +16391,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
16391
16391
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
16392
16392
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
16393
16393
|
try {
|
|
16394
|
-
const { createDocState } = await import("./docStore-
|
|
16394
|
+
const { createDocState } = await import("./docStore-NKVLWCXX.js");
|
|
16395
16395
|
const pageKey = await createDocState(
|
|
16396
16396
|
{ slateData, title },
|
|
16397
16397
|
{ dispatch, getState }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6WI4PFPP.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GJKEOBCV.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-3SEBCWLD.js";
|