nolo-cli 0.16.0-alpha.14 → 0.16.0-alpha.16
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-UU2JO5OB.js → _executeModel-UD2KY354.js} +11 -11
- package/{agentDeleteCommand-L6JRXPYK.js → agentDeleteCommand-UVL3YSRK.js} +6 -6
- package/{agentEmailCommands-FE3GY3T5.js → agentEmailCommands-77H4MECZ.js} +13 -13
- package/{agentListCommands-ZWSAIC4W.js → agentListCommands-J2F4E5C6.js} +7 -7
- package/{agentMachineCommands-VWQ2GZBY.js → agentMachineCommands-DKDXHUDO.js} +6 -6
- package/{agentRecordCommands-PYVZMRZM.js → agentRecordCommands-KESYXWJZ.js} +13 -13
- package/{agentRunCommand-3ADJ2J5U.js → agentRunCommand-LZMUCDVH.js} +13 -13
- package/{agentRuntimeLocal-LXTR6SAU.js → agentRuntimeLocal-44OVOJQ7.js} +3 -3
- package/{agentSlice-TI6ECUGN.js → agentSlice-R4TX7ZSI.js} +1 -1
- package/{appDeleteCommands-QIS37SXE.js → appDeleteCommands-KXZCWKF2.js} +7 -7
- package/{appDeployCommands-WBHB7T5B.js → appDeployCommands-JNXA3HP7.js} +7 -7
- package/{appDeployStatusCommands-A3OUV6GO.js → appDeployStatusCommands-IZ225RMY.js} +7 -7
- package/{appGetCommands-LCVYIH63.js → appGetCommands-WALF7VTA.js} +7 -7
- package/{appListCommands-PC7QOBUO.js → appListCommands-Y3KMGFVO.js} +7 -7
- package/{chunk-UUDRNDC7.js → chunk-3ZLCL32L.js} +1 -1
- package/{chunk-NZBK3ZET.js → chunk-4PIVMGLG.js} +1 -1
- package/{chunk-FTNTMGXT.js → chunk-5PWAAPWU.js} +1 -1
- package/{chunk-GFPESFS6.js → chunk-6HV3GSA4.js} +2 -2
- package/{chunk-W6OKITU6.js → chunk-ARJBFRBT.js} +8 -13
- package/{chunk-2ZLEOGS5.js → chunk-DLH6BOUO.js} +1 -1
- package/{chunk-YZXEEGKV.js → chunk-FQLNGLOX.js} +1 -1
- package/{chunk-64IEIMN4.js → chunk-HYURMZU3.js} +1 -1
- package/{chunk-TUWPYUVR.js → chunk-IAXU3LK5.js} +7 -7
- package/{chunk-PFW2ZEON.js → chunk-IIHJMUV5.js} +0 -2
- package/{chunk-Q6B6XJBG.js → chunk-IPY6NKPP.js} +13 -7
- package/{chunk-HGDFFA6T.js → chunk-IRLFPNG7.js} +2 -2
- package/{chunk-2OK7P5XF.js → chunk-LBOJLRSS.js} +10 -26
- package/{chunk-5QJFYG2N.js → chunk-NKN2NIW7.js} +1 -1
- package/{chunk-URVWRKFU.js → chunk-PVHN3TZV.js} +10 -15
- package/{chunk-ECGTEOC2.js → chunk-PXZY7NIS.js} +3 -3
- package/{chunk-6IGLIDDE.js → chunk-QW7K3Y7V.js} +4 -4
- package/{chunk-U3DCTSPN.js → chunk-RADTZFVM.js} +10 -12
- package/{chunk-XG7CSGP3.js → chunk-SR4IC7DS.js} +1 -1
- package/{chunk-GM37ZF7R.js → chunk-TX6S7JCM.js} +1 -1
- package/{chunk-W63ZTRQU.js → chunk-UIVHASVR.js} +3 -3
- package/{chunk-BOBNE3XT.js → chunk-X6LNYUFU.js} +2 -2
- package/{chunk-ZDDHKIWB.js → chunk-Y62XMRMG.js} +1 -1
- package/{createAgentAutomationAction-N4ZB7VX2.js → createAgentAutomationAction-HXIGGMHG.js} +3 -3
- package/{createDialogAction-KF6HXCCZ.js → createDialogAction-HDNEXHMH.js} +4 -4
- package/{createPageAction-FXWSJONZ.js → createPageAction-F37QJEHE.js} +3 -3
- package/{dialogCommands-ULS6HV5V.js → dialogCommands-6HHOMMSZ.js} +7 -7
- package/{dialogSlice-K32QLYS7.js → dialogSlice-ZCVFV3WX.js} +3 -3
- package/{docCreateCommands-RZTRTRU4.js → docCreateCommands-C6DUOJZQ.js} +6 -6
- package/{docDeleteCommands-FU36A663.js → docDeleteCommands-WAKYWSKE.js} +7 -7
- package/{docReadCommands-IX4JXD4X.js → docReadCommands-QXWKU7NB.js} +6 -6
- package/{docStore-L6HBNJ3R.js → docStore-CSWTGKJJ.js} +4 -4
- package/{docUpdateCommands-W4OCR55Z.js → docUpdateCommands-7AX4KLZZ.js} +6 -6
- package/{handleSendMessageAction-MFKKZXV7.js → handleSendMessageAction-3KHB7J7E.js} +3 -3
- package/index.js +40 -40
- package/{machineCommands-4MFLZERH.js → machineCommands-GKOAG4SD.js} +12 -12
- package/{machineWsRunDispatch-AAHRNKIR.js → machineWsRunDispatch-CBRB2L3Q.js} +12 -12
- package/package.json +1 -1
- package/{readlineWorkspace-7OPITHTN.js → readlineWorkspace-LTW3NLCR.js} +17 -23
- package/{runAgentClientLoop-HRWV7KE2.js → runAgentClientLoop-LVE52RH4.js} +8 -8
- package/{spaceCommands-GMMQTMHK.js → spaceCommands-7RB3OWGN.js} +6 -6
- package/{spaceSlice-V2P5TTQU.js → spaceSlice-HLNFOVCA.js} +3 -3
- package/{streamAgentChatTurn-ZANOYOUR.js → streamAgentChatTurn-VS5W3C3N.js} +37 -40
- package/{tools-YHZP6NXU.js → tools-RWQXREN7.js} +6 -6
- package/{updateDialogTitleAction-IKTPGPPE.js → updateDialogTitleAction-C6WFIIAW.js} +3 -3
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UIVHASVR.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
@@ -11,50 +11,50 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
detectMachineInfo
|
|
13
13
|
} from "./chunk-6HYVJV7B.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ARJBFRBT.js";
|
|
15
15
|
import "./chunk-UB4RYYNQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SR4IC7DS.js";
|
|
17
17
|
import "./chunk-VHBWHNVT.js";
|
|
18
18
|
import "./chunk-KFHN5NGJ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-TX6S7JCM.js";
|
|
20
20
|
import "./chunk-L6NVTGI7.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PVHN3TZV.js";
|
|
22
22
|
import {
|
|
23
23
|
CORE_DRAIN_REASON
|
|
24
24
|
} from "./chunk-RQSOAMPJ.js";
|
|
25
25
|
import "./chunk-XJITGCTM.js";
|
|
26
26
|
import "./chunk-KQHGZWSV.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-6HV3GSA4.js";
|
|
28
28
|
import "./chunk-6N4KODMN.js";
|
|
29
29
|
import "./chunk-3LY4F7SV.js";
|
|
30
30
|
import "./chunk-VP4WJWKW.js";
|
|
31
31
|
import "./chunk-63W5N6P3.js";
|
|
32
32
|
import "./chunk-VF4K2QE6.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-IPY6NKPP.js";
|
|
34
34
|
import "./chunk-VC6OZXO5.js";
|
|
35
35
|
import "./chunk-OWOHNGCN.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-LBOJLRSS.js";
|
|
37
37
|
import "./chunk-XOIF2TNF.js";
|
|
38
38
|
import "./chunk-MRC4Q34M.js";
|
|
39
39
|
import "./chunk-MTU75CZ2.js";
|
|
40
40
|
import "./chunk-CWMSB67P.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-PXZY7NIS.js";
|
|
42
42
|
import "./chunk-RPDGJO4D.js";
|
|
43
43
|
import "./chunk-SOTZ6RDN.js";
|
|
44
44
|
import "./chunk-Z4NR32XR.js";
|
|
45
45
|
import "./chunk-M76ECQRD.js";
|
|
46
46
|
import "./chunk-WZSRQNQG.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-NKN2NIW7.js";
|
|
48
48
|
import "./chunk-AAODAAUQ.js";
|
|
49
49
|
import "./chunk-ZNFJWEN4.js";
|
|
50
50
|
import "./chunk-OIQPORYI.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-Y62XMRMG.js";
|
|
52
52
|
import "./chunk-LSFAWXKC.js";
|
|
53
53
|
import "./chunk-SOW2GCA5.js";
|
|
54
54
|
import "./chunk-KFEVY3ST.js";
|
|
55
55
|
import "./chunk-MUCU6ATG.js";
|
|
56
56
|
import "./chunk-OSIJVBXP.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-IIHJMUV5.js";
|
|
58
58
|
import "./chunk-5MMAK75Q.js";
|
|
59
59
|
import "./chunk-HQPG2PIV.js";
|
|
60
60
|
import "./chunk-5CS33IBL.js";
|
|
@@ -11,49 +11,49 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-UIVHASVR.js";
|
|
15
|
+
import "./chunk-ARJBFRBT.js";
|
|
16
16
|
import "./chunk-UB4RYYNQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SR4IC7DS.js";
|
|
18
18
|
import "./chunk-VHBWHNVT.js";
|
|
19
19
|
import "./chunk-KFHN5NGJ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-TX6S7JCM.js";
|
|
21
21
|
import "./chunk-L6NVTGI7.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-PVHN3TZV.js";
|
|
23
23
|
import "./chunk-RQSOAMPJ.js";
|
|
24
24
|
import "./chunk-XJITGCTM.js";
|
|
25
25
|
import "./chunk-KQHGZWSV.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-6HV3GSA4.js";
|
|
27
27
|
import "./chunk-6N4KODMN.js";
|
|
28
28
|
import "./chunk-3LY4F7SV.js";
|
|
29
29
|
import "./chunk-VP4WJWKW.js";
|
|
30
30
|
import "./chunk-63W5N6P3.js";
|
|
31
31
|
import "./chunk-VF4K2QE6.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-IPY6NKPP.js";
|
|
33
33
|
import "./chunk-VC6OZXO5.js";
|
|
34
34
|
import "./chunk-OWOHNGCN.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-LBOJLRSS.js";
|
|
36
36
|
import "./chunk-XOIF2TNF.js";
|
|
37
37
|
import "./chunk-MRC4Q34M.js";
|
|
38
38
|
import "./chunk-MTU75CZ2.js";
|
|
39
39
|
import "./chunk-CWMSB67P.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-PXZY7NIS.js";
|
|
41
41
|
import "./chunk-RPDGJO4D.js";
|
|
42
42
|
import "./chunk-SOTZ6RDN.js";
|
|
43
43
|
import "./chunk-Z4NR32XR.js";
|
|
44
44
|
import "./chunk-M76ECQRD.js";
|
|
45
45
|
import "./chunk-WZSRQNQG.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-NKN2NIW7.js";
|
|
47
47
|
import "./chunk-AAODAAUQ.js";
|
|
48
48
|
import "./chunk-ZNFJWEN4.js";
|
|
49
49
|
import "./chunk-OIQPORYI.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Y62XMRMG.js";
|
|
51
51
|
import "./chunk-LSFAWXKC.js";
|
|
52
52
|
import "./chunk-SOW2GCA5.js";
|
|
53
53
|
import "./chunk-KFEVY3ST.js";
|
|
54
54
|
import "./chunk-MUCU6ATG.js";
|
|
55
55
|
import "./chunk-OSIJVBXP.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-IIHJMUV5.js";
|
|
57
57
|
import "./chunk-5MMAK75Q.js";
|
|
58
58
|
import "./chunk-HQPG2PIV.js";
|
|
59
59
|
import "./chunk-5CS33IBL.js";
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
normalizeDialogRecord,
|
|
4
4
|
readDialogSnapshot,
|
|
5
5
|
sortDialogs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HYURMZU3.js";
|
|
7
7
|
import {
|
|
8
8
|
ANSI_ESCAPE_REGEX,
|
|
9
9
|
CLI_AUTO_TIER_AGENT_KEYS,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
visibleWidth,
|
|
57
57
|
wrapTextToLines,
|
|
58
58
|
wrapTranscriptLine
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RADTZFVM.js";
|
|
60
60
|
import "./chunk-DZ3XJVET.js";
|
|
61
61
|
import "./chunk-6HYVJV7B.js";
|
|
62
62
|
import {
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
listLocalCachedAgents,
|
|
65
65
|
listRemoteAgents,
|
|
66
66
|
listRemoteAgentsAcrossServers
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-IRLFPNG7.js";
|
|
68
68
|
import "./chunk-ID4G2MAR.js";
|
|
69
69
|
import {
|
|
70
70
|
listUserRecordsFromServers
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-DLH6BOUO.js";
|
|
72
72
|
import {
|
|
73
73
|
createCliLocalRuntimeAdapter,
|
|
74
74
|
initCliLocale,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
parseCliLocale,
|
|
77
77
|
setCliLocale,
|
|
78
78
|
t
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-ARJBFRBT.js";
|
|
80
80
|
import "./chunk-UB4RYYNQ.js";
|
|
81
81
|
import {
|
|
82
82
|
getReadableCliDb
|
|
@@ -85,8 +85,8 @@ import {
|
|
|
85
85
|
deleteDbRecord,
|
|
86
86
|
queryUserRecords,
|
|
87
87
|
readDbRecord
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import "./chunk-
|
|
88
|
+
} from "./chunk-4PIVMGLG.js";
|
|
89
|
+
import "./chunk-SR4IC7DS.js";
|
|
90
90
|
import {
|
|
91
91
|
resolveCliAgentKeyInput
|
|
92
92
|
} from "./chunk-VHBWHNVT.js";
|
|
@@ -95,33 +95,33 @@ import "./chunk-KFHN5NGJ.js";
|
|
|
95
95
|
import "./chunk-JEXVIMYZ.js";
|
|
96
96
|
import {
|
|
97
97
|
prepareTools
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-TX6S7JCM.js";
|
|
99
99
|
import "./chunk-L6NVTGI7.js";
|
|
100
100
|
import {
|
|
101
101
|
expandEnabledPacks
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-PVHN3TZV.js";
|
|
103
103
|
import "./chunk-RQSOAMPJ.js";
|
|
104
104
|
import "./chunk-XJITGCTM.js";
|
|
105
105
|
import "./chunk-KQHGZWSV.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-6HV3GSA4.js";
|
|
107
107
|
import "./chunk-6N4KODMN.js";
|
|
108
108
|
import "./chunk-3LY4F7SV.js";
|
|
109
109
|
import "./chunk-VP4WJWKW.js";
|
|
110
110
|
import "./chunk-63W5N6P3.js";
|
|
111
111
|
import "./chunk-VF4K2QE6.js";
|
|
112
|
-
import "./chunk-
|
|
112
|
+
import "./chunk-IPY6NKPP.js";
|
|
113
113
|
import "./chunk-VC6OZXO5.js";
|
|
114
114
|
import "./chunk-OWOHNGCN.js";
|
|
115
115
|
import {
|
|
116
116
|
extractReferenceKeysFromMessage
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-LBOJLRSS.js";
|
|
118
118
|
import {
|
|
119
119
|
buildBuiltinSummaryContent
|
|
120
120
|
} from "./chunk-XOIF2TNF.js";
|
|
121
121
|
import "./chunk-MRC4Q34M.js";
|
|
122
122
|
import "./chunk-MTU75CZ2.js";
|
|
123
123
|
import "./chunk-CWMSB67P.js";
|
|
124
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-PXZY7NIS.js";
|
|
125
125
|
import "./chunk-RPDGJO4D.js";
|
|
126
126
|
import "./chunk-SOTZ6RDN.js";
|
|
127
127
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -134,14 +134,14 @@ import {
|
|
|
134
134
|
buildLocalWorkspaceOpenAiTools,
|
|
135
135
|
buildLocalWorkspaceToolset,
|
|
136
136
|
getProcessRegistry
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-NKN2NIW7.js";
|
|
138
138
|
import "./chunk-AAODAAUQ.js";
|
|
139
139
|
import "./chunk-ZNFJWEN4.js";
|
|
140
140
|
import "./chunk-OIQPORYI.js";
|
|
141
141
|
import {
|
|
142
142
|
readCommandActionGatePayload,
|
|
143
143
|
resolveAgentImageInputSupport
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-Y62XMRMG.js";
|
|
145
145
|
import "./chunk-LSFAWXKC.js";
|
|
146
146
|
import {
|
|
147
147
|
buildCurrentTimeBlock,
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
getModelContextWindow,
|
|
162
162
|
planCompression,
|
|
163
163
|
serializeMessageContent
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-IIHJMUV5.js";
|
|
165
165
|
import {
|
|
166
166
|
clipCompactText
|
|
167
167
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -4939,13 +4939,7 @@ async function runAgentChat(scriptDir, state, message, env, output, agentRunner
|
|
|
4939
4939
|
serverUrl: state.serverUrl,
|
|
4940
4940
|
message: effectiveMessage,
|
|
4941
4941
|
continueDialogId: state.dialogId,
|
|
4942
|
-
...state.agentKey === DEFAULT_TUI_AGENT_KEY && env.NOLO_AUTO_ROUTE !== "0" ? {
|
|
4943
|
-
dialogAgentMode: "auto",
|
|
4944
|
-
memorySubjectId: "builtin:auto"
|
|
4945
|
-
} : {
|
|
4946
|
-
dialogAgentMode: "fixed",
|
|
4947
|
-
memorySubjectId: effectiveAgentKey
|
|
4948
|
-
},
|
|
4942
|
+
...state.agentKey === DEFAULT_TUI_AGENT_KEY && env.NOLO_AUTO_ROUTE !== "0" ? { dialogAgentMode: "auto" } : { dialogAgentMode: "fixed" },
|
|
4949
4943
|
runtimeMode: state.runtimeMode,
|
|
4950
4944
|
localRuntimeCwd: process.cwd(),
|
|
4951
4945
|
scriptDir,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3ZLCL32L.js";
|
|
4
4
|
import {
|
|
5
5
|
generateRequestBody,
|
|
6
6
|
mergeReferences,
|
|
7
7
|
performFetchRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QW7K3Y7V.js";
|
|
9
9
|
import "./chunk-L6NVTGI7.js";
|
|
10
10
|
import {
|
|
11
11
|
findToolExecutor,
|
|
12
12
|
getToolResultErrorData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PVHN3TZV.js";
|
|
14
14
|
import "./chunk-RQSOAMPJ.js";
|
|
15
15
|
import "./chunk-XJITGCTM.js";
|
|
16
16
|
import "./chunk-KQHGZWSV.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6HV3GSA4.js";
|
|
18
18
|
import "./chunk-6N4KODMN.js";
|
|
19
19
|
import "./chunk-3LY4F7SV.js";
|
|
20
20
|
import "./chunk-VP4WJWKW.js";
|
|
21
21
|
import "./chunk-63W5N6P3.js";
|
|
22
22
|
import "./chunk-VF4K2QE6.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-IPY6NKPP.js";
|
|
24
24
|
import "./chunk-VC6OZXO5.js";
|
|
25
25
|
import {
|
|
26
26
|
updateTokensAction
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LBOJLRSS.js";
|
|
28
28
|
import "./chunk-XOIF2TNF.js";
|
|
29
29
|
import "./chunk-MRC4Q34M.js";
|
|
30
30
|
import "./chunk-MTU75CZ2.js";
|
|
31
31
|
import "./chunk-CWMSB67P.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-PXZY7NIS.js";
|
|
33
33
|
import "./chunk-RPDGJO4D.js";
|
|
34
34
|
import "./chunk-SOTZ6RDN.js";
|
|
35
35
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -41,7 +41,7 @@ import "./chunk-MUCU6ATG.js";
|
|
|
41
41
|
import {
|
|
42
42
|
canonicalizeToolName
|
|
43
43
|
} from "./chunk-OSIJVBXP.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-IIHJMUV5.js";
|
|
45
45
|
import "./chunk-5MMAK75Q.js";
|
|
46
46
|
import {
|
|
47
47
|
getApiEndpoint
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLiveDbRecordAfterTombstoneMerge
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DLH6BOUO.js";
|
|
4
4
|
import {
|
|
5
5
|
readDbRecord,
|
|
6
6
|
writeAgentRecord
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-4PIVMGLG.js";
|
|
8
|
+
import "./chunk-SR4IC7DS.js";
|
|
9
9
|
import "./chunk-VHBWHNVT.js";
|
|
10
10
|
import "./chunk-KQHGZWSV.js";
|
|
11
11
|
import {
|
|
12
12
|
authRoutes
|
|
13
13
|
} from "./chunk-MRC4Q34M.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-NKN2NIW7.js";
|
|
15
15
|
import "./chunk-AAODAAUQ.js";
|
|
16
16
|
import "./chunk-ZNFJWEN4.js";
|
|
17
17
|
import "./chunk-OIQPORYI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-Y62XMRMG.js";
|
|
19
19
|
import "./chunk-LSFAWXKC.js";
|
|
20
20
|
import "./chunk-SOW2GCA5.js";
|
|
21
21
|
import "./chunk-KFEVY3ST.js";
|
|
22
22
|
import "./chunk-MUCU6ATG.js";
|
|
23
23
|
import "./chunk-OSIJVBXP.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-IIHJMUV5.js";
|
|
25
25
|
import "./chunk-5MMAK75Q.js";
|
|
26
26
|
import "./chunk-HQPG2PIV.js";
|
|
27
27
|
import "./chunk-5CS33IBL.js";
|
|
@@ -52,17 +52,17 @@ import {
|
|
|
52
52
|
updateContentTitle,
|
|
53
53
|
updateSpace,
|
|
54
54
|
uploadAndAddFileToSpace
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-LBOJLRSS.js";
|
|
56
56
|
import "./chunk-XOIF2TNF.js";
|
|
57
57
|
import "./chunk-MRC4Q34M.js";
|
|
58
58
|
import "./chunk-MTU75CZ2.js";
|
|
59
59
|
import "./chunk-CWMSB67P.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-PXZY7NIS.js";
|
|
61
61
|
import "./chunk-RPDGJO4D.js";
|
|
62
62
|
import "./chunk-SOTZ6RDN.js";
|
|
63
63
|
import "./chunk-Z4NR32XR.js";
|
|
64
64
|
import "./chunk-M76ECQRD.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-IIHJMUV5.js";
|
|
66
66
|
import "./chunk-5MMAK75Q.js";
|
|
67
67
|
import "./chunk-HQPG2PIV.js";
|
|
68
68
|
import "./chunk-5CS33IBL.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
sanitizeOutboundResponsesInput,
|
|
18
18
|
sendOpenAICompletionsRequest,
|
|
19
19
|
updateTotalUsage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IAXU3LK5.js";
|
|
21
21
|
import "./chunk-JEXVIMYZ.js";
|
|
22
22
|
import {
|
|
23
23
|
prepareTools
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TX6S7JCM.js";
|
|
25
25
|
import {
|
|
26
26
|
fetchReferenceContents,
|
|
27
27
|
generateRequestBody,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
resolveToolsFromKeys,
|
|
36
36
|
selectResponsesConversationState,
|
|
37
37
|
updateResponsesConversationState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QW7K3Y7V.js";
|
|
39
39
|
import "./chunk-L6NVTGI7.js";
|
|
40
40
|
import {
|
|
41
41
|
TOOL_PACKS,
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveEffectiveEnabledPacks,
|
|
51
51
|
shouldBlockForGptPro,
|
|
52
52
|
waitForAbortableDelay
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PVHN3TZV.js";
|
|
54
54
|
import "./chunk-RQSOAMPJ.js";
|
|
55
55
|
import "./chunk-XJITGCTM.js";
|
|
56
56
|
import "./chunk-KQHGZWSV.js";
|
|
57
57
|
import {
|
|
58
58
|
getDocState
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6HV3GSA4.js";
|
|
60
60
|
import {
|
|
61
61
|
getFinalPrice,
|
|
62
62
|
getModelPricing,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-VP4WJWKW.js";
|
|
75
75
|
import "./chunk-63W5N6P3.js";
|
|
76
76
|
import "./chunk-VF4K2QE6.js";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-IPY6NKPP.js";
|
|
78
78
|
import "./chunk-VC6OZXO5.js";
|
|
79
79
|
import {
|
|
80
80
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
@@ -97,12 +97,12 @@ import {
|
|
|
97
97
|
selectTableRows,
|
|
98
98
|
selectViewMode,
|
|
99
99
|
updateTokens
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-LBOJLRSS.js";
|
|
101
101
|
import "./chunk-XOIF2TNF.js";
|
|
102
102
|
import "./chunk-MRC4Q34M.js";
|
|
103
103
|
import "./chunk-MTU75CZ2.js";
|
|
104
104
|
import "./chunk-CWMSB67P.js";
|
|
105
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-PXZY7NIS.js";
|
|
106
106
|
import {
|
|
107
107
|
createCliChatTurnStream,
|
|
108
108
|
getCliChatSession,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
import {
|
|
121
121
|
projectToolMessageContent,
|
|
122
122
|
resolveAgentImageInputSupport
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-Y62XMRMG.js";
|
|
124
124
|
import "./chunk-LSFAWXKC.js";
|
|
125
125
|
import "./chunk-SOW2GCA5.js";
|
|
126
126
|
import {
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
getModelContextWindow,
|
|
140
140
|
getModelInfo,
|
|
141
141
|
planContextUsage
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-IIHJMUV5.js";
|
|
143
143
|
import "./chunk-5MMAK75Q.js";
|
|
144
144
|
import {
|
|
145
145
|
getApiEndpoint,
|
|
@@ -421,10 +421,10 @@ var difference = (arrA, arrB) => {
|
|
|
421
421
|
const exclude = new Set(arrB);
|
|
422
422
|
return arrA.filter((item) => !exclude.has(item));
|
|
423
423
|
};
|
|
424
|
-
var getFullChatContextKeys = async (state, dispatch, agentConfig, userInput,
|
|
424
|
+
var getFullChatContextKeys = async (state, dispatch, agentConfig, userInput, dialogConfig) => {
|
|
425
425
|
const msgs = selectAllMsgs(
|
|
426
426
|
state,
|
|
427
|
-
|
|
427
|
+
dialogConfig?.dbKey ? extractCustomId(dialogConfig.dbKey) : dialogConfig?.id
|
|
428
428
|
);
|
|
429
429
|
const botInstructionKeys = /* @__PURE__ */ new Set();
|
|
430
430
|
const botKnowledgeKeys = /* @__PURE__ */ new Set();
|
|
@@ -446,7 +446,7 @@ var getFullChatContextKeys = async (state, dispatch, agentConfig, userInput, dia
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
const historyKeys = /* @__PURE__ */ new Set();
|
|
449
|
-
const savedKeys =
|
|
449
|
+
const savedKeys = dialogConfig?.referenceKeys;
|
|
450
450
|
if (Array.isArray(savedKeys)) {
|
|
451
451
|
savedKeys.forEach((k) => historyKeys.add(k));
|
|
452
452
|
}
|
|
@@ -457,7 +457,7 @@ var getFullChatContextKeys = async (state, dispatch, agentConfig, userInput, dia
|
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
459
|
if (msgs && msgs.length > 0) {
|
|
460
|
-
const summarizedBeforeId =
|
|
460
|
+
const summarizedBeforeId = dialogConfig?.summarizedBeforeId;
|
|
461
461
|
if (!summarizedBeforeId) {
|
|
462
462
|
for (const msg of msgs) scanContentParts(msg);
|
|
463
463
|
} else {
|
|
@@ -1908,7 +1908,7 @@ var validateAccessAndBalance = (agentConfig, state) => {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
return null;
|
|
1910
1910
|
};
|
|
1911
|
-
var fetchMemoryOverlayContext = async (state, agentConfig, userInput,
|
|
1911
|
+
var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConfig) => {
|
|
1912
1912
|
const token = typeof state?.auth?.currentToken === "string" ? state.auth.currentToken : null;
|
|
1913
1913
|
const currentServer = typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
1914
1914
|
const agentKey = asOptionalTrimmedString(agentConfig.dbKey) ?? "";
|
|
@@ -1916,7 +1916,7 @@ var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConf
|
|
|
1916
1916
|
const baseUrl = resolveToolBaseUrl(currentServer);
|
|
1917
1917
|
if (!baseUrl) return null;
|
|
1918
1918
|
const inputText = typeof userInput === "string" ? userInput : JSON.stringify(userInput ?? "");
|
|
1919
|
-
const spaceId = asOptionalTrimmedString(
|
|
1919
|
+
const spaceId = asOptionalTrimmedString(dialogConfig?.spaceId) ?? (state?.space?.viewMode === "all" ? void 0 : asOptionalTrimmedString(state?.space?.currentSpaceId));
|
|
1920
1920
|
try {
|
|
1921
1921
|
const response = await fetch(`${baseUrl}/api/memory/query`, {
|
|
1922
1922
|
method: "POST",
|
|
@@ -1926,7 +1926,6 @@ var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConf
|
|
|
1926
1926
|
},
|
|
1927
1927
|
body: JSON.stringify({
|
|
1928
1928
|
agentKey,
|
|
1929
|
-
...asOptionalTrimmedString(memorySubjectId) ? { memorySubjectId: asOptionalTrimmedString(memorySubjectId) } : {},
|
|
1930
1929
|
userInput: inputText,
|
|
1931
1930
|
...spaceId ? { spaceId } : {}
|
|
1932
1931
|
})
|
|
@@ -1938,7 +1937,7 @@ var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConf
|
|
|
1938
1937
|
return null;
|
|
1939
1938
|
}
|
|
1940
1939
|
};
|
|
1941
|
-
var buildStaticContexts = async (state, dispatch, agentConfig,
|
|
1940
|
+
var buildStaticContexts = async (state, dispatch, agentConfig, dialogConfig, referenceContentCache) => {
|
|
1942
1941
|
const keySets = await getFullChatContextKeys(
|
|
1943
1942
|
state,
|
|
1944
1943
|
dispatch,
|
|
@@ -1972,7 +1971,7 @@ var buildStaticContexts = async (state, dispatch, agentConfig, dialogConfig2, re
|
|
|
1972
1971
|
if (spaceContextLevel > 1) {
|
|
1973
1972
|
const spaceLayer = await buildSpaceContextLayer({
|
|
1974
1973
|
source: turnContextSource,
|
|
1975
|
-
spaceId:
|
|
1974
|
+
spaceId: dialogConfig?.spaceId,
|
|
1976
1975
|
recentContentLimit: recentLimit
|
|
1977
1976
|
});
|
|
1978
1977
|
spaceContext = spaceLayer ? spaceLayer.content.trim() : null;
|
|
@@ -1989,7 +1988,7 @@ var buildStaticContexts = async (state, dispatch, agentConfig, dialogConfig2, re
|
|
|
1989
1988
|
${linkedSection}`;
|
|
1990
1989
|
}
|
|
1991
1990
|
}
|
|
1992
|
-
const dialogPolicyContext =
|
|
1991
|
+
const dialogPolicyContext = dialogConfig?.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationDialogPolicyContext() : null;
|
|
1993
1992
|
return {
|
|
1994
1993
|
botInstructionsContext: joinMapValues(botInstructionsMap),
|
|
1995
1994
|
botKnowledgeContext: joinMapValues(botKnowledgeMap),
|
|
@@ -2011,11 +2010,11 @@ ${linkedSection}`;
|
|
|
2011
2010
|
};
|
|
2012
2011
|
var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runtimeOptions, referenceContentCache, dialogKey) => {
|
|
2013
2012
|
let dialogSummary = null;
|
|
2014
|
-
let
|
|
2013
|
+
let dialogConfig;
|
|
2015
2014
|
if (dialogKey) {
|
|
2016
|
-
|
|
2017
|
-
if (
|
|
2018
|
-
dialogSummary =
|
|
2015
|
+
dialogConfig = selectById(state, dialogKey);
|
|
2016
|
+
if (dialogConfig?.summary) {
|
|
2017
|
+
dialogSummary = dialogConfig.summary;
|
|
2019
2018
|
}
|
|
2020
2019
|
}
|
|
2021
2020
|
const keySets = await getFullChatContextKeys(
|
|
@@ -2023,7 +2022,7 @@ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runti
|
|
|
2023
2022
|
dispatch,
|
|
2024
2023
|
agentConfig,
|
|
2025
2024
|
userInput,
|
|
2026
|
-
|
|
2025
|
+
dialogConfig
|
|
2027
2026
|
);
|
|
2028
2027
|
const finalKeys = deduplicateContextKeys(keySets);
|
|
2029
2028
|
const fetchReferences = (keys) => fetchReferenceContents(keys, dispatch, {
|
|
@@ -2040,7 +2039,7 @@ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runti
|
|
|
2040
2039
|
pendingFiles,
|
|
2041
2040
|
currentInputMap
|
|
2042
2041
|
);
|
|
2043
|
-
const dialogId =
|
|
2042
|
+
const dialogId = dialogConfig?.id ?? null;
|
|
2044
2043
|
const currentDialogMessages = selectAllMsgs(state, dialogId);
|
|
2045
2044
|
const currentDialogMessageIds = new Set(currentDialogMessages.map((msg) => msg.id));
|
|
2046
2045
|
const currentDialogToolRuns = getAllToolRuns().filter(
|
|
@@ -2055,8 +2054,7 @@ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runti
|
|
|
2055
2054
|
state,
|
|
2056
2055
|
agentConfig,
|
|
2057
2056
|
userInput,
|
|
2058
|
-
|
|
2059
|
-
runtimeOptions?.memorySubjectId
|
|
2057
|
+
dialogConfig
|
|
2060
2058
|
);
|
|
2061
2059
|
return {
|
|
2062
2060
|
currentInputContext: formattedCurrentInputContext.trim() || null,
|
|
@@ -2065,7 +2063,7 @@ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runti
|
|
|
2065
2063
|
appWorkingMemory,
|
|
2066
2064
|
memoryOverlay,
|
|
2067
2065
|
dialogSummary,
|
|
2068
|
-
referenceKeys:
|
|
2066
|
+
referenceKeys: dialogConfig?.referenceKeys || []
|
|
2069
2067
|
};
|
|
2070
2068
|
};
|
|
2071
2069
|
var mergeContexts = (staticCtx, dynamicCtx) => ({
|
|
@@ -2840,22 +2838,22 @@ var isSimpleTextInput = (userInput) => {
|
|
|
2840
2838
|
(part) => part && typeof part === "object" && part.type === "text" && typeof part.text === "string"
|
|
2841
2839
|
);
|
|
2842
2840
|
};
|
|
2843
|
-
var canUseQuickChatEmptyDynamicContexts = (quickChatPerfStartedAt, userInput, runtimeOptions,
|
|
2841
|
+
var canUseQuickChatEmptyDynamicContexts = (quickChatPerfStartedAt, userInput, runtimeOptions, dialogConfig, agentConfig) => {
|
|
2844
2842
|
if (!quickChatPerfStartedAt) return false;
|
|
2845
2843
|
if (runtimeOptions) return false;
|
|
2846
2844
|
if (agentConfig?.tools?.includes("rememberMemory")) return false;
|
|
2847
2845
|
if (!isSimpleTextInput(userInput)) return false;
|
|
2848
|
-
if (
|
|
2846
|
+
if (dialogConfig?.referenceKeys?.length) return false;
|
|
2849
2847
|
return true;
|
|
2850
2848
|
};
|
|
2851
2849
|
var QUICK_CHAT_DIRECT_ANSWER_PATTERN = /(只回复|只输出|只回答|直接回复|直接回答|不要解释|无需解释|不用解释|简短回答|一句话)/i;
|
|
2852
2850
|
var QUICK_CHAT_TOOL_INTENT_PATTERN = /(调用|转交|agent|助手|应用|网页|页面|图表|图片|生成图|画图|删除|清理|空间|商品|链接|https?:\/\/|www\.|@)/i;
|
|
2853
|
-
var shouldDisableQuickChatToolsForDirectAnswer = (quickChatPerfStartedAt, userInput, runtimeOptions,
|
|
2851
|
+
var shouldDisableQuickChatToolsForDirectAnswer = (quickChatPerfStartedAt, userInput, runtimeOptions, dialogConfig) => {
|
|
2854
2852
|
if (!canUseQuickChatEmptyDynamicContexts(
|
|
2855
2853
|
quickChatPerfStartedAt,
|
|
2856
2854
|
userInput,
|
|
2857
2855
|
runtimeOptions,
|
|
2858
|
-
|
|
2856
|
+
dialogConfig,
|
|
2859
2857
|
void 0
|
|
2860
2858
|
)) {
|
|
2861
2859
|
return false;
|
|
@@ -3160,11 +3158,11 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3160
3158
|
if (w2) w2.__LOOP_STOP_REASON__ = null;
|
|
3161
3159
|
const userText = extractAgentRunUserText(userInput);
|
|
3162
3160
|
const prompt = buildCliPrompt(agentConfig.prompt, userText);
|
|
3163
|
-
const
|
|
3164
|
-
if (!
|
|
3161
|
+
const dialogConfig = selectDialogConfigByKey(currentState, explicitDialogKey) ?? selectCurrentDialogConfig(currentState);
|
|
3162
|
+
if (!dialogConfig) {
|
|
3165
3163
|
return rejectWithValue("Dialog config not found");
|
|
3166
3164
|
}
|
|
3167
|
-
const dialogKey2 = explicitDialogKey ||
|
|
3165
|
+
const dialogKey2 = explicitDialogKey || dialogConfig.dbKey;
|
|
3168
3166
|
if (!dialogKey2) {
|
|
3169
3167
|
return rejectWithValue("\u5F53\u524D\u5BF9\u8BDD\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u53D1\u9001\u6D88\u606F\u3002");
|
|
3170
3168
|
}
|
|
@@ -3244,7 +3242,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3244
3242
|
entrypoint: "chat-dialog",
|
|
3245
3243
|
capabilities: ["streaming", "dialog-ui", "machine-bound-cli"]
|
|
3246
3244
|
},
|
|
3247
|
-
...
|
|
3245
|
+
...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
|
|
3248
3246
|
}),
|
|
3249
3247
|
signal: loopController.signal
|
|
3250
3248
|
});
|
|
@@ -3353,7 +3351,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3353
3351
|
usage: totalTurnUsage2 ?? void 0
|
|
3354
3352
|
};
|
|
3355
3353
|
}
|
|
3356
|
-
let cliSessionId =
|
|
3354
|
+
let cliSessionId = dialogConfig.cliSessionId ?? null;
|
|
3357
3355
|
dispatch(messageStreaming({
|
|
3358
3356
|
id: messageId,
|
|
3359
3357
|
dialogId: dialogId2,
|
|
@@ -4052,8 +4050,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4052
4050
|
runtime: "react",
|
|
4053
4051
|
entrypoint: "chat-dialog",
|
|
4054
4052
|
capabilities: ["streaming", "dialog-ui", "tool-cards"],
|
|
4055
|
-
...runtimeOptions?.memorySubjectId ? { memorySubjectId: runtimeOptions.memorySubjectId } : {}
|
|
4056
|
-
...dialogConfig?.agentMode ? { dialogAgentMode: dialogConfig.agentMode } : {}
|
|
4053
|
+
...runtimeOptions?.memorySubjectId ? { memorySubjectId: runtimeOptions.memorySubjectId } : {}
|
|
4057
4054
|
},
|
|
4058
4055
|
...runtimeOptions?.quickChatReasoningEffort ? {
|
|
4059
4056
|
runtimeOptions: {
|