nolo-cli 0.247.0-alpha.1 → 0.248.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/{agentDeleteCommand-MEJNOUQB.js → agentDeleteCommand-UF7XVELS.js} +3 -3
- package/{agentEmailCommands-RBQXQLVY.js → agentEmailCommands-SFHRPQYC.js} +4 -4
- package/{agentListCommands-U436UABA.js → agentListCommands-IXKBP3W5.js} +1 -1
- package/{agentMachineCommands-R6WKJ622.js → agentMachineCommands-7NX6PWQ6.js} +2 -2
- package/{agentRecordCommands-5MAINXNS.js → agentRecordCommands-IUNX6XD6.js} +4 -4
- package/{agentRunCommand-DNBAO4PN.js → agentRunCommand-LCR4XADM.js} +5 -5
- package/{agentRuntimeLocal-4Y47ZSIP.js → agentRuntimeLocal-LVXPQ7QA.js} +1 -1
- package/{appDeleteCommands-KTYELLHJ.js → appDeleteCommands-BESCJOQM.js} +1 -1
- package/{appDeployCommands-HH4ZVRIS.js → appDeployCommands-LPTR6IOX.js} +1 -1
- package/{appDeployStatusCommands-KSIDBUL2.js → appDeployStatusCommands-BZ7KZ5RD.js} +1 -1
- package/{appGetCommands-N5E5L24Z.js → appGetCommands-EDWGJV4S.js} +1 -1
- package/{appListCommands-7QC63Y6R.js → appListCommands-OPRWYPM6.js} +1 -1
- package/{chunk-S4UP27EG.js → chunk-7UVVLYKC.js} +1 -1
- package/{chunk-7IEJYF7U.js → chunk-EQZQUQ33.js} +2 -2
- package/{chunk-Z6YTCDU4.js → chunk-IIRJ4P4I.js} +1 -1
- package/{chunk-3UPWX4NA.js → chunk-R5NRFXGD.js} +1 -1
- package/{chunk-ABG4QNBR.js → chunk-RMWDKLBE.js} +111 -56
- package/{chunk-K4CHT35N.js → chunk-SCMYAGQE.js} +3 -3
- package/{chunk-45L3GRIE.js → chunk-XNTZD4AE.js} +31 -3
- package/{cliLocalAgentRecordReader-LWMGOH3X.js → cliLocalAgentRecordReader-MCQVRWBR.js} +2 -2
- package/{commandRegistry-ZZUPMMTU.js → commandRegistry-NTH5IAN5.js} +40 -40
- package/{dialogCommands-2JL3C5A3.js → dialogCommands-KZTZLWPZ.js} +1 -1
- package/{docCreateCommands-CZOVKJM5.js → docCreateCommands-26HJ5NAY.js} +1 -1
- package/{docDeleteCommands-WOVJXKOC.js → docDeleteCommands-UAOHH5XK.js} +1 -1
- package/{docReadCommands-ZHBKTJLT.js → docReadCommands-4ADG7YE6.js} +1 -1
- package/{docUpdateCommands-UYXQNOU7.js → docUpdateCommands-OGFJZENF.js} +1 -1
- package/{hostCredentialCreate-6UGOSRDR.js → hostCredentialCreate-23TX56G7.js} +4 -4
- package/index.js +3 -3
- package/{localRuntimeAdapter-R25LKDEH.js → localRuntimeAdapter-MTUWOYPN.js} +3 -3
- package/{machineCommands-CNIN7M4X.js → machineCommands-4WJUJQHW.js} +4 -4
- package/{machineWsRunDispatch-GLJGQSXX.js → machineWsRunDispatch-V3U4JM67.js} +4 -4
- package/package.json +1 -1
- package/{readlineWorkspace-RZCJAWF7.js → readlineWorkspace-T56MRMS5.js} +10 -8
- package/{spaceCommands-C4UE2TNV.js → spaceCommands-W5TAVFDT.js} +1 -1
- package/{workContextAccess-UZHDLBUR.js → workContextAccess-VU5I4LKZ.js} +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-D25ONVOH.js";
|
|
4
4
|
import {
|
|
5
5
|
clearCliLocalRuntimePreparedAgentCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SCMYAGQE.js";
|
|
7
7
|
import "./chunk-KLAMJNKQ.js";
|
|
8
8
|
import "./chunk-FE7G6DSP.js";
|
|
9
9
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -97,11 +97,11 @@ import "./chunk-BFKJ2RS3.js";
|
|
|
97
97
|
import {
|
|
98
98
|
resolveNoloHome
|
|
99
99
|
} from "./chunk-GLKOYSRU.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-7UVVLYKC.js";
|
|
101
101
|
import "./chunk-MZVCFV3T.js";
|
|
102
102
|
import "./chunk-JP2BH4NC.js";
|
|
103
103
|
import "./chunk-IJZC2KIJ.js";
|
|
104
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-XNTZD4AE.js";
|
|
105
105
|
import "./chunk-LHCGKAFO.js";
|
|
106
106
|
import "./chunk-ZNFJWEN4.js";
|
|
107
107
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UF6J7NXV.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R5NRFXGD.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-SCMYAGQE.js";
|
|
16
16
|
import "./chunk-KLAMJNKQ.js";
|
|
17
17
|
import "./chunk-FE7G6DSP.js";
|
|
18
18
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -96,11 +96,11 @@ import "./chunk-KK3FCYZM.js";
|
|
|
96
96
|
import "./chunk-CVMMWN6P.js";
|
|
97
97
|
import "./chunk-BFKJ2RS3.js";
|
|
98
98
|
import "./chunk-GLKOYSRU.js";
|
|
99
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-7UVVLYKC.js";
|
|
100
100
|
import "./chunk-MZVCFV3T.js";
|
|
101
101
|
import "./chunk-JP2BH4NC.js";
|
|
102
102
|
import "./chunk-IJZC2KIJ.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-XNTZD4AE.js";
|
|
104
104
|
import "./chunk-LHCGKAFO.js";
|
|
105
105
|
import "./chunk-ZNFJWEN4.js";
|
|
106
106
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -50,7 +50,7 @@ import "./chunk-S25VJYXV.js";
|
|
|
50
50
|
import "./chunk-UEILX4EV.js";
|
|
51
51
|
import "./chunk-GBWGPTA7.js";
|
|
52
52
|
import "./chunk-IJZC2KIJ.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-XNTZD4AE.js";
|
|
54
54
|
import "./chunk-LHCGKAFO.js";
|
|
55
55
|
import "./chunk-ZNFJWEN4.js";
|
|
56
56
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import "./chunk-FGHEF6WI.js";
|
|
15
15
|
import "./chunk-3L2WKC3W.js";
|
|
16
16
|
import "./chunk-IJZC2KIJ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-XNTZD4AE.js";
|
|
18
18
|
import "./chunk-LHCGKAFO.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
20
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -119,7 +119,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
119
119
|
return executeCli(provider, prompt, options);
|
|
120
120
|
}
|
|
121
121
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
122
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
122
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-V3U4JM67.js");
|
|
123
123
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
124
124
|
}
|
|
125
125
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R5NRFXGD.js";
|
|
6
6
|
import "./chunk-P27E22MA.js";
|
|
7
7
|
import "./chunk-D25ONVOH.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-SCMYAGQE.js";
|
|
9
9
|
import "./chunk-KLAMJNKQ.js";
|
|
10
10
|
import "./chunk-FE7G6DSP.js";
|
|
11
11
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -86,11 +86,11 @@ import "./chunk-KK3FCYZM.js";
|
|
|
86
86
|
import "./chunk-CVMMWN6P.js";
|
|
87
87
|
import "./chunk-BFKJ2RS3.js";
|
|
88
88
|
import "./chunk-GLKOYSRU.js";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-7UVVLYKC.js";
|
|
90
90
|
import "./chunk-MZVCFV3T.js";
|
|
91
91
|
import "./chunk-JP2BH4NC.js";
|
|
92
92
|
import "./chunk-IJZC2KIJ.js";
|
|
93
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-XNTZD4AE.js";
|
|
94
94
|
import "./chunk-LHCGKAFO.js";
|
|
95
95
|
import "./chunk-ZNFJWEN4.js";
|
|
96
96
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveRunSettlementNote,
|
|
10
10
|
resolveWorkflowReference,
|
|
11
11
|
runAgentRunCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RMWDKLBE.js";
|
|
13
13
|
import "./chunk-6QDYSCPW.js";
|
|
14
14
|
import "./chunk-GAHJLSDO.js";
|
|
15
15
|
import "./chunk-D25ONVOH.js";
|
|
16
16
|
import {
|
|
17
17
|
parseAgentRunArgs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SCMYAGQE.js";
|
|
19
19
|
import "./chunk-KLAMJNKQ.js";
|
|
20
20
|
import "./chunk-FE7G6DSP.js";
|
|
21
21
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-4D4QD7FT.js";
|
|
|
27
27
|
import "./chunk-PVFYPUIM.js";
|
|
28
28
|
import "./chunk-53W5BXLN.js";
|
|
29
29
|
import "./chunk-QHEN7NZ7.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-IIRJ4P4I.js";
|
|
31
31
|
import "./chunk-C5A54QS7.js";
|
|
32
32
|
import "./chunk-6RSNVJGO.js";
|
|
33
33
|
import "./chunk-324FWHUA.js";
|
|
@@ -108,11 +108,11 @@ import "./chunk-KK3FCYZM.js";
|
|
|
108
108
|
import "./chunk-CVMMWN6P.js";
|
|
109
109
|
import "./chunk-BFKJ2RS3.js";
|
|
110
110
|
import "./chunk-GLKOYSRU.js";
|
|
111
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-7UVVLYKC.js";
|
|
112
112
|
import "./chunk-MZVCFV3T.js";
|
|
113
113
|
import "./chunk-JP2BH4NC.js";
|
|
114
114
|
import "./chunk-IJZC2KIJ.js";
|
|
115
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-XNTZD4AE.js";
|
|
116
116
|
import "./chunk-LHCGKAFO.js";
|
|
117
117
|
import "./chunk-ZNFJWEN4.js";
|
|
118
118
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-LKZPX6YH.js";
|
|
|
15
15
|
import "./chunk-CIUZXD5D.js";
|
|
16
16
|
import "./chunk-FGHEF6WI.js";
|
|
17
17
|
import "./chunk-IJZC2KIJ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XNTZD4AE.js";
|
|
19
19
|
import "./chunk-LHCGKAFO.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
21
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -16,7 +16,7 @@ import "./chunk-LKZPX6YH.js";
|
|
|
16
16
|
import "./chunk-CIUZXD5D.js";
|
|
17
17
|
import "./chunk-FGHEF6WI.js";
|
|
18
18
|
import "./chunk-IJZC2KIJ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XNTZD4AE.js";
|
|
20
20
|
import "./chunk-LHCGKAFO.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-LKZPX6YH.js";
|
|
|
15
15
|
import "./chunk-CIUZXD5D.js";
|
|
16
16
|
import "./chunk-FGHEF6WI.js";
|
|
17
17
|
import "./chunk-IJZC2KIJ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XNTZD4AE.js";
|
|
19
19
|
import "./chunk-LHCGKAFO.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
21
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -16,7 +16,7 @@ import "./chunk-LKZPX6YH.js";
|
|
|
16
16
|
import "./chunk-CIUZXD5D.js";
|
|
17
17
|
import "./chunk-FGHEF6WI.js";
|
|
18
18
|
import "./chunk-IJZC2KIJ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XNTZD4AE.js";
|
|
20
20
|
import "./chunk-LHCGKAFO.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -16,7 +16,7 @@ import "./chunk-LKZPX6YH.js";
|
|
|
16
16
|
import "./chunk-CIUZXD5D.js";
|
|
17
17
|
import "./chunk-FGHEF6WI.js";
|
|
18
18
|
import "./chunk-IJZC2KIJ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XNTZD4AE.js";
|
|
20
20
|
import "./chunk-LHCGKAFO.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SCMYAGQE.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
7
|
} from "./chunk-LMGFVH65.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XNTZD4AE.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-USGHJSGO.js";
|
|
@@ -15,7 +15,7 @@ async function resolveWorkContextAccess(db, userId, dialogId, userMessageId) {
|
|
|
15
15
|
if (userMessageId === void 0) return { scope };
|
|
16
16
|
if (typeof userMessageId !== "string" || !/^[A-Za-z0-9_-]{1,128}$/.test(userMessageId)) throw new Error("persisted user message required");
|
|
17
17
|
const message = await db.get(dialogMessageKey(dialogId, userMessageId));
|
|
18
|
-
if (!message || message.id !== userMessageId || message.role !== "user" || message.userId !== userId || isTombstoneRecord(message) || typeof message.content !== "string" || typeof message.createdAt !== "string") throw new Error("work source forbidden");
|
|
18
|
+
if (!message || message.id !== userMessageId || message.dialogId != null && message.dialogId !== dialogId || message.role !== "user" || message.userId !== userId || isTombstoneRecord(message) || typeof message.content !== "string" || typeof message.createdAt !== "string") throw new Error("work source forbidden");
|
|
19
19
|
return { scope, sourceRef: JSON.stringify(["dialog", dialogId, "message", userMessageId]) };
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SCMYAGQE.js";
|
|
37
37
|
import {
|
|
38
38
|
boxGlyphs,
|
|
39
39
|
displayWidth,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
} from "./chunk-QHEN7NZ7.js";
|
|
66
66
|
import {
|
|
67
67
|
resolveWorkContextAccess
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-IIRJ4P4I.js";
|
|
69
69
|
import {
|
|
70
70
|
isWorkContextState,
|
|
71
71
|
readWorkContexts
|
|
@@ -170,11 +170,15 @@ import {
|
|
|
170
170
|
import {
|
|
171
171
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
172
172
|
LOCAL_TURN_ABORTED_CODE,
|
|
173
|
+
buildLocalDialogWritePlan,
|
|
174
|
+
dialogOwnerKey,
|
|
175
|
+
dialogTurnUserMessageId,
|
|
173
176
|
isSubtaskRun,
|
|
174
177
|
markCliUserBatchPhase,
|
|
175
178
|
readActionGate,
|
|
176
|
-
readAgentsMdLayerFromDisk
|
|
177
|
-
|
|
179
|
+
readAgentsMdLayerFromDisk,
|
|
180
|
+
registerDialogOwner
|
|
181
|
+
} from "./chunk-XNTZD4AE.js";
|
|
178
182
|
import {
|
|
179
183
|
resolveAgentRuntimeConfigFromRecord
|
|
180
184
|
} from "./chunk-4OXPN3WC.js";
|
|
@@ -236,11 +240,16 @@ import {
|
|
|
236
240
|
partitionScopedBlocks,
|
|
237
241
|
renderTurnContextBlocksWithScope
|
|
238
242
|
} from "./chunk-5HUO7SEX.js";
|
|
243
|
+
import {
|
|
244
|
+
isTombstoneRecord
|
|
245
|
+
} from "./chunk-BV3FLP2L.js";
|
|
239
246
|
import {
|
|
240
247
|
parseExternalSkillMarkdown,
|
|
241
248
|
parseSkillDocProtocol
|
|
242
249
|
} from "./chunk-AETZ7AD6.js";
|
|
243
250
|
import {
|
|
251
|
+
buildDialogKey,
|
|
252
|
+
dialogMessageKey,
|
|
244
253
|
ulid
|
|
245
254
|
} from "./chunk-OJKUU3LP.js";
|
|
246
255
|
import {
|
|
@@ -1077,42 +1086,72 @@ ${cardText}` : cardText;
|
|
|
1077
1086
|
var ENABLE_REMOTE_ATTACHMENT_PART_WRITES = false;
|
|
1078
1087
|
|
|
1079
1088
|
// packages/cli/client/cliTurnUserMessage.ts
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
var resolvePersistedTurnUserMessageId = async (input) => {
|
|
1087
|
-
if (!input.dialogId) return void 0;
|
|
1088
|
-
const candidate = singleCandidate(input);
|
|
1089
|
-
if (!candidate) return void 0;
|
|
1089
|
+
async function resolvePersistedTurnUserMessageId(input) {
|
|
1090
|
+
const { store, dialogId, userId, userMessages, batchMessageIds } = input;
|
|
1091
|
+
if (userMessages && userMessages.length !== 1) return void 0;
|
|
1092
|
+
if (batchMessageIds && batchMessageIds.length !== 1) return void 0;
|
|
1093
|
+
const candidate = userMessages ? userMessages[0]?.cliMessageId : batchMessageIds?.[0];
|
|
1094
|
+
if (!candidate || batchMessageIds && batchMessageIds[0] !== candidate) return void 0;
|
|
1090
1095
|
try {
|
|
1091
|
-
|
|
1092
|
-
remote: false
|
|
1093
|
-
});
|
|
1094
|
-
if (!record || record.role !== "user" || record.id !== candidate) return void 0;
|
|
1096
|
+
await resolveWorkContextAccess({ get: (key) => store.read(key, { remote: false }) }, userId, dialogId, candidate);
|
|
1095
1097
|
return candidate;
|
|
1096
1098
|
} catch {
|
|
1097
1099
|
return void 0;
|
|
1098
1100
|
}
|
|
1099
|
-
}
|
|
1100
|
-
async function
|
|
1101
|
-
const
|
|
1102
|
-
if (
|
|
1103
|
-
const id =
|
|
1104
|
-
if (!id) return void 0;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
);
|
|
1112
|
-
return id;
|
|
1113
|
-
} catch {
|
|
1101
|
+
}
|
|
1102
|
+
async function persistDirectWorkMemorySource(args) {
|
|
1103
|
+
const { store, userId, dialogId, turnId, message } = args;
|
|
1104
|
+
if (!userId || userId === "server" || !/^[A-Za-z0-9_-]{1,128}$/.test(dialogId)) return void 0;
|
|
1105
|
+
const id = dialogTurnUserMessageId(turnId, 0);
|
|
1106
|
+
if (!id || message.role !== "user" || message.id !== id || typeof message.content !== "string") return void 0;
|
|
1107
|
+
const dialogKey = buildDialogKey(userId, dialogId);
|
|
1108
|
+
const messageKey = dialogMessageKey(dialogId, id);
|
|
1109
|
+
const existingDialog = await store.read(dialogKey, { remote: false });
|
|
1110
|
+
if (existingDialog) {
|
|
1111
|
+
await resolveWorkContextAccess({ get: async () => existingDialog }, userId, dialogId);
|
|
1112
|
+
} else if (!args.freshDialog) {
|
|
1114
1113
|
return void 0;
|
|
1115
1114
|
}
|
|
1115
|
+
const existingMessage = await store.read(messageKey, { remote: false });
|
|
1116
|
+
if (!existingMessage) {
|
|
1117
|
+
const { ops } = buildLocalDialogWritePlan({
|
|
1118
|
+
input: { ...args.input, continueDialogId: dialogId, messages: [message], result: { content: "", model: "" } },
|
|
1119
|
+
userId,
|
|
1120
|
+
now: Date.now(),
|
|
1121
|
+
createId: () => dialogId,
|
|
1122
|
+
existingDialog
|
|
1123
|
+
});
|
|
1124
|
+
const userOp = ops.find((op) => op.key === messageKey && op.value.role === "user");
|
|
1125
|
+
const dialogOp = ops.find((op) => op.key === dialogKey);
|
|
1126
|
+
if (!userOp || !dialogOp) return void 0;
|
|
1127
|
+
const { status, finishedAt, ...openDialog } = dialogOp.value;
|
|
1128
|
+
if (!existingDialog) {
|
|
1129
|
+
await registerDialogOwner({
|
|
1130
|
+
store: {
|
|
1131
|
+
get: (key) => store.read(key, { remote: false }),
|
|
1132
|
+
put: (key, value) => store.batch([{ type: "put", key, value }])
|
|
1133
|
+
},
|
|
1134
|
+
dialogId,
|
|
1135
|
+
ownerId: userId,
|
|
1136
|
+
spaceId: args.input.spaceId,
|
|
1137
|
+
source: "cli-work-memory-source"
|
|
1138
|
+
});
|
|
1139
|
+
const owner = await store.read(dialogOwnerKey(dialogId), { remote: false });
|
|
1140
|
+
if (owner?.dialogId !== dialogId || owner.ownerId !== userId) return void 0;
|
|
1141
|
+
const currentDialog = await store.read(dialogKey, { remote: false });
|
|
1142
|
+
if (currentDialog) {
|
|
1143
|
+
await resolveWorkContextAccess({ get: async () => currentDialog }, userId, dialogId);
|
|
1144
|
+
await store.batch([userOp]);
|
|
1145
|
+
} else {
|
|
1146
|
+
await store.batch([{ ...dialogOp, value: openDialog }, userOp]);
|
|
1147
|
+
}
|
|
1148
|
+
} else {
|
|
1149
|
+
await store.batch([userOp]);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
const persisted = await store.read(messageKey, { remote: false });
|
|
1153
|
+
if (!persisted || isTombstoneRecord(persisted) || persisted.content !== message.content) return void 0;
|
|
1154
|
+
return resolvePersistedTurnUserMessageId({ store, userId, dialogId, userMessages: [{ cliMessageId: id }] });
|
|
1116
1155
|
}
|
|
1117
1156
|
|
|
1118
1157
|
// packages/cli/client/tokenUsage.ts
|
|
@@ -13025,7 +13064,7 @@ function isBalanceExhaustedError(error) {
|
|
|
13025
13064
|
|
|
13026
13065
|
// packages/cli/client/agentRun.ts
|
|
13027
13066
|
async function loadRunLocalAgentTurn() {
|
|
13028
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
13067
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-LVXPQ7QA.js");
|
|
13029
13068
|
return runLocalAgentTurn;
|
|
13030
13069
|
}
|
|
13031
13070
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -14246,21 +14285,25 @@ async function executeLocalAgentTurnForCliWithAdapter(options, settings, resolve
|
|
|
14246
14285
|
`);
|
|
14247
14286
|
return { exitCode: 1, localError: error };
|
|
14248
14287
|
}
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14288
|
+
const userId = resolveLocalUserId(options.env);
|
|
14289
|
+
const getTurnStore = () => getOrCreateSharedStore({
|
|
14290
|
+
env: options.env,
|
|
14291
|
+
cwd: options.localRuntimeCwd,
|
|
14292
|
+
fetchImpl: options.fetchImpl
|
|
14293
|
+
});
|
|
14294
|
+
const canUseWorkSource = !options.ephemeral && !options.background && !options.internalTurn && options.env.NOLO_AGENT_RUN_CHILD !== "1";
|
|
14295
|
+
if (canUseWorkSource && options.userMessages?.length === 1) {
|
|
14296
|
+
try {
|
|
14297
|
+
const id = await resolvePersistedTurnUserMessageId({
|
|
14298
|
+
store: await getTurnStore(),
|
|
14299
|
+
userId,
|
|
14300
|
+
dialogId: currentDialogId,
|
|
14301
|
+
batchMessageIds: batchIdentity?.messageIds,
|
|
14302
|
+
userMessages: options.userMessages
|
|
14303
|
+
});
|
|
14304
|
+
if (id) runtimeContextWithOwnership.userMessageId = id;
|
|
14305
|
+
} catch {
|
|
14262
14306
|
}
|
|
14263
|
-
} catch {
|
|
14264
14307
|
}
|
|
14265
14308
|
const markBatch = async (phase) => {
|
|
14266
14309
|
if (!batchIdentity) return;
|
|
@@ -14385,16 +14428,28 @@ async function executeLocalAgentTurnForCliWithAdapter(options, settings, resolve
|
|
|
14385
14428
|
inheritedFromDialogKey: options.inheritedFromDialogKey,
|
|
14386
14429
|
parentDialogId: options.parentDialogId,
|
|
14387
14430
|
runtimeContext: runtimeContextWithOwnership,
|
|
14388
|
-
|
|
14389
|
-
store: await
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14431
|
+
...canUseWorkSource && !batchIdentity && !options.userMessages?.length ? { prepareDirectWorkMemorySource: async (message) => persistDirectWorkMemorySource({
|
|
14432
|
+
store: await getTurnStore(),
|
|
14433
|
+
userId,
|
|
14434
|
+
dialogId: currentDialogId,
|
|
14435
|
+
turnId,
|
|
14436
|
+
freshDialog,
|
|
14437
|
+
input: {
|
|
14438
|
+
agentKey: options.agentKey,
|
|
14439
|
+
runtimeContext: runtimeContextWithOwnership,
|
|
14440
|
+
spaceId: options.spaceId,
|
|
14441
|
+
category: options.category,
|
|
14442
|
+
inheritedFromDialogKey: options.inheritedFromDialogKey,
|
|
14443
|
+
parentDialogId: options.parentDialogId
|
|
14444
|
+
},
|
|
14445
|
+
message
|
|
14446
|
+
}) } : {},
|
|
14447
|
+
...!options.ephemeral ? { resolveInjectedUserMessageId: async (messages) => resolvePersistedTurnUserMessageId({
|
|
14448
|
+
store: await getTurnStore(),
|
|
14449
|
+
userId,
|
|
14395
14450
|
dialogId: currentDialogId,
|
|
14396
14451
|
userMessages: messages
|
|
14397
|
-
}),
|
|
14452
|
+
}) } : {},
|
|
14398
14453
|
runKind: options.env.NOLO_AGENT_RUN_CHILD === "1" ? "subtask" : "interactive",
|
|
14399
14454
|
// 展示能力由宿主声明(TUI=narrow),非交互 CLI/后台留空 → unknown;
|
|
14400
14455
|
// 排版段只在能力已知时由 localLoop 注入,server 线不读该字段。
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
readDialogMessageRecords,
|
|
190
190
|
readDialogMessages,
|
|
191
191
|
resolveBuiltinLocalCliAgentConfig
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-7UVVLYKC.js";
|
|
193
193
|
import {
|
|
194
194
|
applyPublicAgentCatalogOverride
|
|
195
195
|
} from "./chunk-MZVCFV3T.js";
|
|
@@ -246,7 +246,7 @@ import {
|
|
|
246
246
|
runExecShellGates,
|
|
247
247
|
validateConfiguredRootExecutionLease,
|
|
248
248
|
verifyOwnerRouteAck
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-XNTZD4AE.js";
|
|
250
250
|
import {
|
|
251
251
|
createHostCredentialBrokerChain,
|
|
252
252
|
createStrictHostCredentialBroker
|
|
@@ -6746,7 +6746,7 @@ function buildServerPlatformToolExecutors(args) {
|
|
|
6746
6746
|
if (!ctx) throw new Error("local work memory unavailable");
|
|
6747
6747
|
const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-37ZNEY5Y.js");
|
|
6748
6748
|
const localUserId = resolveLocalUserId2(args.env);
|
|
6749
|
-
const { resolveWorkContextAccess } = await import("./workContextAccess-
|
|
6749
|
+
const { resolveWorkContextAccess } = await import("./workContextAccess-VU5I4LKZ.js");
|
|
6750
6750
|
const { updateWorkContext, readWorkContexts } = await import("./workContext-Y3ADAPZU.js");
|
|
6751
6751
|
const { scope, sourceRef } = await resolveWorkContextAccess(ctx.db, localUserId, dialogId, write ? userMessageId : void 0);
|
|
6752
6752
|
if (scope.spaceId) throw new Error("local work memory cannot verify space membership");
|
|
@@ -19249,12 +19249,18 @@ async function executeToolCall(args2) {
|
|
|
19249
19249
|
}
|
|
19250
19250
|
}
|
|
19251
19251
|
if (!toolResult) {
|
|
19252
|
+
let runtimeContext = input.runtimeContext;
|
|
19253
|
+
if (args2.getDirectWorkSource && !runtimeContext?.userMessageId && toolName === "rememberMemory" && parseNoloWorkspaceToolArguments(unwrappedArguments).mode === "work") {
|
|
19254
|
+
const id = await args2.getDirectWorkSource();
|
|
19255
|
+
throwIfAborted(input);
|
|
19256
|
+
if (id) runtimeContext = { ...runtimeContext, userMessageId: id };
|
|
19257
|
+
}
|
|
19252
19258
|
const executePromise = input.adapter.executeTool({
|
|
19253
19259
|
id: toolCall.id,
|
|
19254
19260
|
name: toolName,
|
|
19255
19261
|
arguments: unwrappedArguments,
|
|
19256
19262
|
...userInputText ? { userInput: userInputText } : {},
|
|
19257
|
-
...
|
|
19263
|
+
...runtimeContext ? { runtimeContext } : {},
|
|
19258
19264
|
...args2.runToolNames ? { runToolNames: args2.runToolNames } : {},
|
|
19259
19265
|
...input.abortSignal ? { abortSignal: input.abortSignal } : {},
|
|
19260
19266
|
// 定档信号:来源只由 turn 输入推导,不让模型/参数层参与。
|
|
@@ -19263,7 +19269,7 @@ async function executeToolCall(args2) {
|
|
|
19263
19269
|
origin: input.background ? "automation" : input.runKind === "subtask" ? "agent" : "chat"
|
|
19264
19270
|
}, {
|
|
19265
19271
|
...input.abortSignal ? { abortSignal: input.abortSignal } : {},
|
|
19266
|
-
...
|
|
19272
|
+
...runtimeContext ? { runtimeContext } : {}
|
|
19267
19273
|
});
|
|
19268
19274
|
const execStartedAtMs = Date.now();
|
|
19269
19275
|
toolResult = await runAbortableToolTask(input, executePromise, toolName);
|
|
@@ -21345,6 +21351,24 @@ async function runLocalAgentTurn(input) {
|
|
|
21345
21351
|
historyCount: history.length,
|
|
21346
21352
|
capToolMessage
|
|
21347
21353
|
});
|
|
21354
|
+
let prepareDirectWorkMemorySource = !input.userMessages?.length ? input.prepareDirectWorkMemorySource : void 0;
|
|
21355
|
+
const directUserMessage = prepareDirectWorkMemorySource ? transcript.persisted(sanitizedPersistedInput, input.persistedInputReference)[0] : void 0;
|
|
21356
|
+
let directWorkSource;
|
|
21357
|
+
const getDirectWorkSource = async () => {
|
|
21358
|
+
const prepare = prepareDirectWorkMemorySource;
|
|
21359
|
+
if (!prepare || directUserMessage?.role !== "user") return void 0;
|
|
21360
|
+
const attempt = directWorkSource ??= (async () => {
|
|
21361
|
+
try {
|
|
21362
|
+
const id2 = await prepare(directUserMessage);
|
|
21363
|
+
return id2 && id2 === directUserMessage.id ? id2 : void 0;
|
|
21364
|
+
} catch {
|
|
21365
|
+
return void 0;
|
|
21366
|
+
}
|
|
21367
|
+
})();
|
|
21368
|
+
const id = await attempt;
|
|
21369
|
+
if (!id && directWorkSource === attempt) directWorkSource = void 0;
|
|
21370
|
+
return id;
|
|
21371
|
+
};
|
|
21348
21372
|
const userInputText = extractUserInputText(input.input);
|
|
21349
21373
|
let toolCallCount = 0;
|
|
21350
21374
|
let requestCalibrationRatio = 1;
|
|
@@ -21557,6 +21581,7 @@ async function runLocalAgentTurn(input) {
|
|
|
21557
21581
|
for (const transaction of inFlightTransactions) await transaction.commit();
|
|
21558
21582
|
input.runtimeContext = { ...input.runtimeContext };
|
|
21559
21583
|
delete input.runtimeContext.userMessageId;
|
|
21584
|
+
prepareDirectWorkMemorySource = void 0;
|
|
21560
21585
|
const admittedMessages = inFlightTransactions.flatMap((transaction) => transaction.messages);
|
|
21561
21586
|
if (admittedMessages.length === 1 && admittedMessages[0]?.cliMessageId) {
|
|
21562
21587
|
try {
|
|
@@ -21884,6 +21909,7 @@ ${reasoningTailLog}
|
|
|
21884
21909
|
const { toolResult, toolExecMs } = await executeToolCall({
|
|
21885
21910
|
input: executionInput,
|
|
21886
21911
|
toolCall,
|
|
21912
|
+
...prepareDirectWorkMemorySource ? { getDirectWorkSource } : {},
|
|
21887
21913
|
round,
|
|
21888
21914
|
boundary: observationBoundary,
|
|
21889
21915
|
loopTiming,
|
|
@@ -23834,7 +23860,7 @@ async function saveCliPendingUserMessages(args2) {
|
|
|
23834
23860
|
if (ops.length) await args2.store.batch(ops);
|
|
23835
23861
|
}
|
|
23836
23862
|
async function readCliPendingUserMessages(store, dialogId) {
|
|
23837
|
-
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-
|
|
23863
|
+
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-MCQVRWBR.js");
|
|
23838
23864
|
const rows = await readDialogMessageRecords({ store, dialogId });
|
|
23839
23865
|
const uncertain = rows.filter(({ record: record2 }) => record2.metadata?.cliBatchPhase === "requested" && !record2.metadata?.cliBatchResolution);
|
|
23840
23866
|
const recovery = uncertain.length ? {
|
|
@@ -24923,6 +24949,7 @@ export {
|
|
|
24923
24949
|
readCommandActionGatePayload,
|
|
24924
24950
|
readActionGate,
|
|
24925
24951
|
orderDialogHistory,
|
|
24952
|
+
dialogTurnUserMessageId,
|
|
24926
24953
|
Option_exports,
|
|
24927
24954
|
Duration_exports,
|
|
24928
24955
|
Exit_exports,
|
|
@@ -24978,6 +25005,7 @@ export {
|
|
|
24978
25005
|
parseSyncServersEnv,
|
|
24979
25006
|
DEFAULT_HYBRID_READ_TIMEOUT_MS,
|
|
24980
25007
|
createHybridRecordStore,
|
|
25008
|
+
dialogOwnerKey,
|
|
24981
25009
|
registerDialogOwner,
|
|
24982
25010
|
localDialogMessageRecordToRuntimeMessage,
|
|
24983
25011
|
buildLocalDialogWritePlan,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
readDialogMessageRecords,
|
|
4
4
|
readDialogMessages,
|
|
5
5
|
resolveBuiltinLocalCliAgentConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7UVVLYKC.js";
|
|
7
7
|
import "./chunk-MZVCFV3T.js";
|
|
8
8
|
import "./chunk-JP2BH4NC.js";
|
|
9
9
|
import "./chunk-IJZC2KIJ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XNTZD4AE.js";
|
|
11
11
|
import "./chunk-LHCGKAFO.js";
|
|
12
12
|
import "./chunk-ZNFJWEN4.js";
|
|
13
13
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -112,7 +112,7 @@ function createDaemonShortcutCommand(path, description, command) {
|
|
|
112
112
|
// packages/cli/agentInternalCommandEntries.ts
|
|
113
113
|
function getAgentInternalCommandEntries() {
|
|
114
114
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
|
|
115
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
115
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-LCR4XADM.js");
|
|
116
116
|
return runAgentRunCommand(args, {
|
|
117
117
|
env: ctx.env,
|
|
118
118
|
scriptDir: ctx.scriptDir,
|
|
@@ -124,11 +124,11 @@ function getAgentInternalCommandEntries() {
|
|
|
124
124
|
createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
|
|
125
125
|
createAgentRunCommand(["chat"], "Chat with an agent"),
|
|
126
126
|
createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
|
|
127
|
-
const { runAgentListCommand } = await import("./agentListCommands-
|
|
127
|
+
const { runAgentListCommand } = await import("./agentListCommands-IXKBP3W5.js");
|
|
128
128
|
return runAgentListCommand(args, deps);
|
|
129
129
|
}),
|
|
130
130
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
|
|
131
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
131
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-IUNX6XD6.js");
|
|
132
132
|
return runAgentCreateCommand(args, deps);
|
|
133
133
|
}),
|
|
134
134
|
createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
|
|
@@ -144,7 +144,7 @@ function getAgentInternalCommandEntries() {
|
|
|
144
144
|
return runAgentPullCommand(args, deps);
|
|
145
145
|
}),
|
|
146
146
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
|
|
147
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
147
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-IUNX6XD6.js");
|
|
148
148
|
return runAgentReadCommand(args, deps);
|
|
149
149
|
}),
|
|
150
150
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -177,31 +177,31 @@ function getAgentInternalCommandEntries() {
|
|
|
177
177
|
return runSetupOfflineMarxistsAgentCommand(args, deps);
|
|
178
178
|
}),
|
|
179
179
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
|
|
180
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
180
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-IUNX6XD6.js");
|
|
181
181
|
return runAgentUpdateCommand(args, deps);
|
|
182
182
|
}),
|
|
183
183
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
|
|
184
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
184
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-SFHRPQYC.js");
|
|
185
185
|
return runAgentEmailProvisionCommand(args, deps);
|
|
186
186
|
}),
|
|
187
187
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
|
|
188
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
188
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-SFHRPQYC.js");
|
|
189
189
|
return runAgentEmailBindCommand(args, deps);
|
|
190
190
|
}),
|
|
191
191
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
|
|
192
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
192
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-SFHRPQYC.js");
|
|
193
193
|
return runAgentEmailTransferCommand(args, deps);
|
|
194
194
|
}),
|
|
195
195
|
createEnvCommand(
|
|
196
196
|
["agent", "email", "create-and-provision"],
|
|
197
197
|
"Create an agent and provision its controlled inbox",
|
|
198
198
|
async (args, deps) => {
|
|
199
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
199
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-SFHRPQYC.js");
|
|
200
200
|
return runAgentEmailCreateAndProvisionCommand(args, deps);
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
203
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
|
|
204
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
204
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-UF7XVELS.js");
|
|
205
205
|
return runAgentDeleteCommand(args, deps);
|
|
206
206
|
}),
|
|
207
207
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
|
|
@@ -221,15 +221,15 @@ function getAgentInternalCommandEntries() {
|
|
|
221
221
|
return runAgentRevokeGrantCommand(args, deps);
|
|
222
222
|
}),
|
|
223
223
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
|
|
224
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
224
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-7NX6PWQ6.js");
|
|
225
225
|
return runAgentBindCurrentCommand(args, deps);
|
|
226
226
|
}),
|
|
227
227
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
|
|
228
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
228
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-7NX6PWQ6.js");
|
|
229
229
|
return runAgentSmokeCurrentCommand(args, deps);
|
|
230
230
|
}),
|
|
231
231
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
|
|
232
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
232
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-7NX6PWQ6.js");
|
|
233
233
|
return runAgentRuntimeDoctorCommand(args, deps);
|
|
234
234
|
}),
|
|
235
235
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -240,23 +240,23 @@ function getAgentInternalCommandEntries() {
|
|
|
240
240
|
function getAppInternalCommandEntries() {
|
|
241
241
|
return [
|
|
242
242
|
createEnvCommand(["app", "list"], "List your apps", async (args, deps) => {
|
|
243
|
-
const { runAppListCommand } = await import("./appListCommands-
|
|
243
|
+
const { runAppListCommand } = await import("./appListCommands-OPRWYPM6.js");
|
|
244
244
|
return runAppListCommand(args, deps);
|
|
245
245
|
}),
|
|
246
246
|
createEnvCommand(["app", "get"], "Get app details", async (args, deps) => {
|
|
247
|
-
const { runAppGetCommand } = await import("./appGetCommands-
|
|
247
|
+
const { runAppGetCommand } = await import("./appGetCommands-EDWGJV4S.js");
|
|
248
248
|
return runAppGetCommand(args, deps);
|
|
249
249
|
}),
|
|
250
250
|
createEnvCommand(["app", "deploy"], "Deploy an app", async (args, deps) => {
|
|
251
|
-
const { runAppDeployCommand } = await import("./appDeployCommands-
|
|
251
|
+
const { runAppDeployCommand } = await import("./appDeployCommands-LPTR6IOX.js");
|
|
252
252
|
return runAppDeployCommand(args, deps);
|
|
253
253
|
}),
|
|
254
254
|
createEnvCommand(["app", "deploy", "status"], "Check app deploy status", async (args, deps) => {
|
|
255
|
-
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-
|
|
255
|
+
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-BZ7KZ5RD.js");
|
|
256
256
|
return runAppDeployStatusCommand(args, deps);
|
|
257
257
|
}),
|
|
258
258
|
createEnvCommand(["app", "delete"], "Delete an app", async (args, deps) => {
|
|
259
|
-
const { runAppDeleteCommand } = await import("./appDeleteCommands-
|
|
259
|
+
const { runAppDeleteCommand } = await import("./appDeleteCommands-BESCJOQM.js");
|
|
260
260
|
return runAppDeleteCommand(args, deps);
|
|
261
261
|
})
|
|
262
262
|
];
|
|
@@ -421,23 +421,23 @@ function getCiInternalCommandEntries() {
|
|
|
421
421
|
function getDialogInternalCommandEntries() {
|
|
422
422
|
return [
|
|
423
423
|
createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
|
|
424
|
-
const { runDialogSearchCommand } = await import("./dialogCommands-
|
|
424
|
+
const { runDialogSearchCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
425
425
|
return runDialogSearchCommand(args, deps);
|
|
426
426
|
}),
|
|
427
427
|
createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
|
|
428
|
-
const { runDialogListCommand } = await import("./dialogCommands-
|
|
428
|
+
const { runDialogListCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
429
429
|
return runDialogListCommand(args, deps);
|
|
430
430
|
}),
|
|
431
431
|
createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
|
|
432
|
-
const { runDialogDeleteCommand } = await import("./dialogCommands-
|
|
432
|
+
const { runDialogDeleteCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
433
433
|
return runDialogDeleteCommand(args, deps);
|
|
434
434
|
}),
|
|
435
435
|
createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
|
|
436
|
-
const { runDialogQueryCommand } = await import("./dialogCommands-
|
|
436
|
+
const { runDialogQueryCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
437
437
|
return runDialogQueryCommand(args, deps);
|
|
438
438
|
}),
|
|
439
439
|
createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
|
|
440
|
-
const { runDialogReadCommand } = await import("./dialogCommands-
|
|
440
|
+
const { runDialogReadCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
441
441
|
return runDialogReadCommand(args, deps);
|
|
442
442
|
}),
|
|
443
443
|
createEnvCommand(["dialog", "notify"], "Deliver a notification into a live CLI dialog's existing queue (--message/--file, --idempotency-key; --status for the receipt)", async (args, deps) => {
|
|
@@ -445,7 +445,7 @@ function getDialogInternalCommandEntries() {
|
|
|
445
445
|
return runDialogNotifyCommand(args, deps);
|
|
446
446
|
}),
|
|
447
447
|
createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
|
|
448
|
-
const { runDialogStatusCommand } = await import("./dialogCommands-
|
|
448
|
+
const { runDialogStatusCommand } = await import("./dialogCommands-KZTZLWPZ.js");
|
|
449
449
|
return runDialogStatusCommand(args, deps);
|
|
450
450
|
})
|
|
451
451
|
];
|
|
@@ -455,39 +455,39 @@ function getDialogInternalCommandEntries() {
|
|
|
455
455
|
function getDocInternalCommandEntries() {
|
|
456
456
|
return [
|
|
457
457
|
createEnvCommand(["doc", "create"], "Create a normal doc", async (args, deps) => {
|
|
458
|
-
const { runDocCreateCommand } = await import("./docCreateCommands-
|
|
458
|
+
const { runDocCreateCommand } = await import("./docCreateCommands-26HJ5NAY.js");
|
|
459
459
|
return runDocCreateCommand(args, deps);
|
|
460
460
|
}),
|
|
461
461
|
createEnvCommand(["doc", "read"], "Read a normal doc", async (args, deps) => {
|
|
462
|
-
const { runDocReadCommand } = await import("./docReadCommands-
|
|
462
|
+
const { runDocReadCommand } = await import("./docReadCommands-4ADG7YE6.js");
|
|
463
463
|
return runDocReadCommand(args, deps);
|
|
464
464
|
}),
|
|
465
465
|
createEnvCommand(["doc", "update"], "Update a normal doc", async (args, deps) => {
|
|
466
|
-
const { runDocUpdateCommand } = await import("./docUpdateCommands-
|
|
466
|
+
const { runDocUpdateCommand } = await import("./docUpdateCommands-OGFJZENF.js");
|
|
467
467
|
return runDocUpdateCommand(args, deps);
|
|
468
468
|
}),
|
|
469
469
|
createEnvCommand(["doc", "delete"], "Delete a normal doc", async (args, deps) => {
|
|
470
|
-
const { runDocDeleteCommand } = await import("./docDeleteCommands-
|
|
470
|
+
const { runDocDeleteCommand } = await import("./docDeleteCommands-UAOHH5XK.js");
|
|
471
471
|
return runDocDeleteCommand(args, deps);
|
|
472
472
|
}),
|
|
473
473
|
createEnvCommand(["skill-doc", "create"], "Create a skill-backed doc", async (args, deps) => {
|
|
474
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
474
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-26HJ5NAY.js");
|
|
475
475
|
return runSkillDocCreateCommand(args, deps);
|
|
476
476
|
}),
|
|
477
477
|
createEnvCommand(["skill", "create-doc"], "Create a skill-backed doc", async (args, deps) => {
|
|
478
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
478
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-26HJ5NAY.js");
|
|
479
479
|
return runSkillDocCreateCommand(args, deps);
|
|
480
480
|
}),
|
|
481
481
|
createEnvCommand(["skill-doc", "read"], "Read a skill doc", async (args, deps) => {
|
|
482
|
-
const { runSkillDocReadCommand } = await import("./docReadCommands-
|
|
482
|
+
const { runSkillDocReadCommand } = await import("./docReadCommands-4ADG7YE6.js");
|
|
483
483
|
return runSkillDocReadCommand(args, deps);
|
|
484
484
|
}),
|
|
485
485
|
createEnvCommand(["skill-doc", "update"], "Update a skill doc", async (args, deps) => {
|
|
486
|
-
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-
|
|
486
|
+
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-OGFJZENF.js");
|
|
487
487
|
return runSkillDocUpdateCommand(args, deps);
|
|
488
488
|
}),
|
|
489
489
|
createEnvCommand(["skill-doc", "delete"], "Delete a skill doc", async (args, deps) => {
|
|
490
|
-
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-
|
|
490
|
+
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-UAOHH5XK.js");
|
|
491
491
|
return runSkillDocDeleteCommand(args, deps);
|
|
492
492
|
})
|
|
493
493
|
];
|
|
@@ -515,19 +515,19 @@ function getMemoryInternalCommandEntries() {
|
|
|
515
515
|
function getSpaceInternalCommandEntries() {
|
|
516
516
|
return [
|
|
517
517
|
createEnvCommand(["space", "create"], "Create a space", async (args, deps) => {
|
|
518
|
-
const { runSpaceCreateCommand } = await import("./spaceCommands-
|
|
518
|
+
const { runSpaceCreateCommand } = await import("./spaceCommands-W5TAVFDT.js");
|
|
519
519
|
return runSpaceCreateCommand(args, deps);
|
|
520
520
|
}),
|
|
521
521
|
createEnvCommand(["space", "invite"], "Invite an existing user to a space", async (args, deps) => {
|
|
522
|
-
const { runSpaceInviteCommand } = await import("./spaceCommands-
|
|
522
|
+
const { runSpaceInviteCommand } = await import("./spaceCommands-W5TAVFDT.js");
|
|
523
523
|
return runSpaceInviteCommand(args, deps);
|
|
524
524
|
}),
|
|
525
525
|
createEnvCommand(["space", "accept-invite"], "Accept a space invite", async (args, deps) => {
|
|
526
|
-
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-
|
|
526
|
+
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-W5TAVFDT.js");
|
|
527
527
|
return runSpaceAcceptInviteCommand(args, deps);
|
|
528
528
|
}),
|
|
529
529
|
createEnvCommand(["space", "upload"], "Upload a file to a space", async (args, deps) => {
|
|
530
|
-
const { runSpaceUploadCommand } = await import("./spaceCommands-
|
|
530
|
+
const { runSpaceUploadCommand } = await import("./spaceCommands-W5TAVFDT.js");
|
|
531
531
|
return runSpaceUploadCommand(args, deps);
|
|
532
532
|
})
|
|
533
533
|
];
|
|
@@ -593,15 +593,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
593
593
|
return runWhoamiCommand({ args, env: ctx.env });
|
|
594
594
|
}),
|
|
595
595
|
createEntrypointEnvCommand(["connect"], "Hold a connector websocket for this machine", async (args, deps) => {
|
|
596
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
596
|
+
const { runMachineConnectCommand } = await import("./machineCommands-4WJUJQHW.js");
|
|
597
597
|
return runMachineConnectCommand(args, deps);
|
|
598
598
|
}),
|
|
599
599
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
|
|
600
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
600
|
+
const { runMachineConnectCommand } = await import("./machineCommands-4WJUJQHW.js");
|
|
601
601
|
return runMachineConnectCommand(args, deps);
|
|
602
602
|
}),
|
|
603
603
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
|
|
604
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
604
|
+
const { runMachineStatusCommand } = await import("./machineCommands-4WJUJQHW.js");
|
|
605
605
|
return runMachineStatusCommand(args, deps);
|
|
606
606
|
}),
|
|
607
607
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
|
|
@@ -35,7 +35,7 @@ import "./chunk-KK3FCYZM.js";
|
|
|
35
35
|
import "./chunk-CVMMWN6P.js";
|
|
36
36
|
import "./chunk-GLKOYSRU.js";
|
|
37
37
|
import "./chunk-IJZC2KIJ.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-XNTZD4AE.js";
|
|
39
39
|
import "./chunk-LHCGKAFO.js";
|
|
40
40
|
import "./chunk-ZNFJWEN4.js";
|
|
41
41
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
27
27
|
import "./chunk-CIUZXD5D.js";
|
|
28
28
|
import "./chunk-FGHEF6WI.js";
|
|
29
29
|
import "./chunk-IJZC2KIJ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-XNTZD4AE.js";
|
|
31
31
|
import "./chunk-LHCGKAFO.js";
|
|
32
32
|
import "./chunk-ZNFJWEN4.js";
|
|
33
33
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -20,7 +20,7 @@ import "./chunk-CIUZXD5D.js";
|
|
|
20
20
|
import "./chunk-FGHEF6WI.js";
|
|
21
21
|
import "./chunk-GBWGPTA7.js";
|
|
22
22
|
import "./chunk-IJZC2KIJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XNTZD4AE.js";
|
|
24
24
|
import "./chunk-LHCGKAFO.js";
|
|
25
25
|
import "./chunk-ZNFJWEN4.js";
|
|
26
26
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
15
15
|
import "./chunk-CIUZXD5D.js";
|
|
16
16
|
import "./chunk-FGHEF6WI.js";
|
|
17
17
|
import "./chunk-IJZC2KIJ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XNTZD4AE.js";
|
|
19
19
|
import "./chunk-LHCGKAFO.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
21
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -26,7 +26,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
26
26
|
import "./chunk-CIUZXD5D.js";
|
|
27
27
|
import "./chunk-FGHEF6WI.js";
|
|
28
28
|
import "./chunk-IJZC2KIJ.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-XNTZD4AE.js";
|
|
30
30
|
import "./chunk-LHCGKAFO.js";
|
|
31
31
|
import "./chunk-ZNFJWEN4.js";
|
|
32
32
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentCreateCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R5NRFXGD.js";
|
|
4
4
|
import "./chunk-P27E22MA.js";
|
|
5
5
|
import "./chunk-D25ONVOH.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-SCMYAGQE.js";
|
|
7
7
|
import "./chunk-KLAMJNKQ.js";
|
|
8
8
|
import "./chunk-FE7G6DSP.js";
|
|
9
9
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -87,13 +87,13 @@ import "./chunk-KK3FCYZM.js";
|
|
|
87
87
|
import "./chunk-CVMMWN6P.js";
|
|
88
88
|
import "./chunk-BFKJ2RS3.js";
|
|
89
89
|
import "./chunk-GLKOYSRU.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-7UVVLYKC.js";
|
|
91
91
|
import "./chunk-MZVCFV3T.js";
|
|
92
92
|
import "./chunk-JP2BH4NC.js";
|
|
93
93
|
import "./chunk-IJZC2KIJ.js";
|
|
94
94
|
import {
|
|
95
95
|
readCommandActionGatePayload
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-XNTZD4AE.js";
|
|
97
97
|
import {
|
|
98
98
|
createStrictHostCredentialBroker
|
|
99
99
|
} from "./chunk-LHCGKAFO.js";
|
package/index.js
CHANGED
|
@@ -129,9 +129,9 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
129
129
|
return proc.exited;
|
|
130
130
|
}
|
|
131
131
|
async function launchTuiWorkspace(args2) {
|
|
132
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
132
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-T56MRMS5.js");
|
|
133
133
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-TM5BU73J.js");
|
|
134
|
-
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-
|
|
134
|
+
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-MTUWOYPN.js");
|
|
135
135
|
setCliAutoCompactionSummaryFallback(
|
|
136
136
|
createTuiSummaryLlmCaller(args2.env, { platformPrimary: true })
|
|
137
137
|
);
|
|
@@ -157,7 +157,7 @@ async function launchTuiWorkspace(args2) {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async function main() {
|
|
160
|
-
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-
|
|
160
|
+
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-NTH5IAN5.js");
|
|
161
161
|
const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KOWK4HOG.js");
|
|
162
162
|
const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-X7DL7PUN.js");
|
|
163
163
|
const runtimeEnv = {
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
withRuntimeEnabledPacksAndPrompt,
|
|
41
41
|
writeDialog,
|
|
42
42
|
writeLocalTokenRecord
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SCMYAGQE.js";
|
|
44
44
|
import "./chunk-KLAMJNKQ.js";
|
|
45
45
|
import "./chunk-FE7G6DSP.js";
|
|
46
46
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -125,11 +125,11 @@ import "./chunk-KK3FCYZM.js";
|
|
|
125
125
|
import "./chunk-CVMMWN6P.js";
|
|
126
126
|
import "./chunk-BFKJ2RS3.js";
|
|
127
127
|
import "./chunk-GLKOYSRU.js";
|
|
128
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-7UVVLYKC.js";
|
|
129
129
|
import "./chunk-MZVCFV3T.js";
|
|
130
130
|
import "./chunk-JP2BH4NC.js";
|
|
131
131
|
import "./chunk-IJZC2KIJ.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-XNTZD4AE.js";
|
|
133
133
|
import "./chunk-LHCGKAFO.js";
|
|
134
134
|
import "./chunk-ZNFJWEN4.js";
|
|
135
135
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EQZQUQ33.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_CONNECTOR_TIMER_DELAY_MS,
|
|
8
8
|
clampConnectorTimerDelayMs,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveConnectorProbeTimeoutMs,
|
|
12
12
|
resolveConnectorWebSocketTarget
|
|
13
13
|
} from "./chunk-LISC7BD4.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SCMYAGQE.js";
|
|
15
15
|
import "./chunk-KLAMJNKQ.js";
|
|
16
16
|
import "./chunk-FE7G6DSP.js";
|
|
17
17
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -100,7 +100,7 @@ import "./chunk-KK3FCYZM.js";
|
|
|
100
100
|
import "./chunk-CVMMWN6P.js";
|
|
101
101
|
import "./chunk-BFKJ2RS3.js";
|
|
102
102
|
import "./chunk-GLKOYSRU.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-7UVVLYKC.js";
|
|
104
104
|
import "./chunk-MZVCFV3T.js";
|
|
105
105
|
import "./chunk-JP2BH4NC.js";
|
|
106
106
|
import "./chunk-IJZC2KIJ.js";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
PATH_FIELD_ALIASES,
|
|
110
110
|
createLocalWorkspaceToolExecutors,
|
|
111
111
|
resolveRequestedWorkspacePath
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-XNTZD4AE.js";
|
|
113
113
|
import "./chunk-LHCGKAFO.js";
|
|
114
114
|
import "./chunk-ZNFJWEN4.js";
|
|
115
115
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-EQZQUQ33.js";
|
|
15
|
+
import "./chunk-SCMYAGQE.js";
|
|
16
16
|
import "./chunk-KLAMJNKQ.js";
|
|
17
17
|
import "./chunk-FE7G6DSP.js";
|
|
18
18
|
import "./chunk-6TVYUQRM.js";
|
|
@@ -92,11 +92,11 @@ import "./chunk-KK3FCYZM.js";
|
|
|
92
92
|
import "./chunk-CVMMWN6P.js";
|
|
93
93
|
import "./chunk-BFKJ2RS3.js";
|
|
94
94
|
import "./chunk-GLKOYSRU.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-7UVVLYKC.js";
|
|
96
96
|
import "./chunk-MZVCFV3T.js";
|
|
97
97
|
import "./chunk-JP2BH4NC.js";
|
|
98
98
|
import "./chunk-IJZC2KIJ.js";
|
|
99
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-XNTZD4AE.js";
|
|
100
100
|
import "./chunk-LHCGKAFO.js";
|
|
101
101
|
import "./chunk-ZNFJWEN4.js";
|
|
102
102
|
import "./chunk-MYYNZG2M.js";
|
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
themeText,
|
|
110
110
|
toolRowDetailLine,
|
|
111
111
|
tuiRenderThemeFingerprint
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-RMWDKLBE.js";
|
|
113
113
|
import "./chunk-6QDYSCPW.js";
|
|
114
114
|
import "./chunk-GAHJLSDO.js";
|
|
115
115
|
import {
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
renderNoticeElements,
|
|
134
134
|
resolveNoticeTitle,
|
|
135
135
|
setTurnNoticeMeta
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-SCMYAGQE.js";
|
|
137
137
|
import {
|
|
138
138
|
createHostApprovalCardQueue,
|
|
139
139
|
formatApprovalRemaining,
|
|
@@ -178,7 +178,7 @@ import "./chunk-4D4QD7FT.js";
|
|
|
178
178
|
import "./chunk-PVFYPUIM.js";
|
|
179
179
|
import "./chunk-53W5BXLN.js";
|
|
180
180
|
import "./chunk-QHEN7NZ7.js";
|
|
181
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-IIRJ4P4I.js";
|
|
182
182
|
import "./chunk-C5A54QS7.js";
|
|
183
183
|
import "./chunk-6RSNVJGO.js";
|
|
184
184
|
import "./chunk-324FWHUA.js";
|
|
@@ -342,7 +342,7 @@ import {
|
|
|
342
342
|
import "./chunk-GLKOYSRU.js";
|
|
343
343
|
import {
|
|
344
344
|
readDialogMessageRecords
|
|
345
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-7UVVLYKC.js";
|
|
346
346
|
import "./chunk-MZVCFV3T.js";
|
|
347
347
|
import "./chunk-JP2BH4NC.js";
|
|
348
348
|
import "./chunk-IJZC2KIJ.js";
|
|
@@ -363,7 +363,7 @@ import {
|
|
|
363
363
|
runTaskStop,
|
|
364
364
|
saveCliPendingUserMessages,
|
|
365
365
|
validateStoredSummary
|
|
366
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-XNTZD4AE.js";
|
|
367
367
|
import "./chunk-LHCGKAFO.js";
|
|
368
368
|
import "./chunk-ZNFJWEN4.js";
|
|
369
369
|
import "./chunk-MYYNZG2M.js";
|
|
@@ -14771,6 +14771,7 @@ async function runAgentChat(scriptDir, state, message, env, output, agentRunner
|
|
|
14771
14771
|
getProcessCausalDepth: options.getProcessCausalDepth,
|
|
14772
14772
|
continueDialogId: state.dialogId,
|
|
14773
14773
|
freshDialog: options.freshDialog,
|
|
14774
|
+
internalTurn: options.internalTurn,
|
|
14774
14775
|
userMessages: options.userMessages,
|
|
14775
14776
|
...options.cliBatchId ? { cliBatchId: options.cliBatchId } : {},
|
|
14776
14777
|
// accountTaskUserSource 已移除:它专为 host task 证据链服务,
|
|
@@ -15344,7 +15345,7 @@ async function runOneAgentTurn(ctx, inputMsg, imageUrls, actionGateHandler, conf
|
|
|
15344
15345
|
if (!approved) return false;
|
|
15345
15346
|
const commandText = typeof request.command === "string" ? request.command : "";
|
|
15346
15347
|
if (commandText) {
|
|
15347
|
-
const { runApprovedCredentialCommand } = await import("./hostCredentialCreate-
|
|
15348
|
+
const { runApprovedCredentialCommand } = await import("./hostCredentialCreate-23TX56G7.js");
|
|
15348
15349
|
const hostResult = await runApprovedCredentialCommand({
|
|
15349
15350
|
commandText,
|
|
15350
15351
|
approvalEventId: request.id,
|
|
@@ -15569,6 +15570,7 @@ async function runOneAgentTurn(ctx, inputMsg, imageUrls, actionGateHandler, conf
|
|
|
15569
15570
|
ctx.options.agentRunner,
|
|
15570
15571
|
{
|
|
15571
15572
|
freshDialog: attemptFreshDialog,
|
|
15573
|
+
internalTurn: isInternalEvent,
|
|
15572
15574
|
userMessages: req.userMessages,
|
|
15573
15575
|
...req.cliBatchId ? { cliBatchId: req.cliBatchId } : {},
|
|
15574
15576
|
// accountTaskUserSource 已移除(host task 证据链下线,无消费者)。
|
|
@@ -17470,7 +17472,7 @@ async function compactDialog(options) {
|
|
|
17470
17472
|
fetchImpl,
|
|
17471
17473
|
agentRef: getActiveDialogAgentId(current) ?? void 0,
|
|
17472
17474
|
loadAdapter: async () => {
|
|
17473
|
-
const { createCliLocalRuntimeAdapter: createCliLocalRuntimeAdapter2 } = await import("./localRuntimeAdapter-
|
|
17475
|
+
const { createCliLocalRuntimeAdapter: createCliLocalRuntimeAdapter2 } = await import("./localRuntimeAdapter-MTUWOYPN.js");
|
|
17474
17476
|
return createCliLocalRuntimeAdapter2({ env: { ...options.env ?? {}, AUTH_TOKEN: options.authToken, NOLO_SERVER: options.serverUrl }, fetchImpl });
|
|
17475
17477
|
}
|
|
17476
17478
|
}) : void 0);
|
|
@@ -20566,7 +20568,7 @@ ${lines}` : lines;
|
|
|
20566
20568
|
onApprove: createSnapshotGuardedApproval("local", () => state.permissionGrants, approveLocalConfirms),
|
|
20567
20569
|
onApproved: async (approvedGate) => {
|
|
20568
20570
|
if (approvedGate.kind !== "confirm") return null;
|
|
20569
|
-
const { executeApprovedCredentialCreate } = await import("./hostCredentialCreate-
|
|
20571
|
+
const { executeApprovedCredentialCreate } = await import("./hostCredentialCreate-23TX56G7.js");
|
|
20570
20572
|
const hostResult = await executeApprovedCredentialCreate({
|
|
20571
20573
|
gate: approvedGate,
|
|
20572
20574
|
approvalGateId: approvedGate.id,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import "./chunk-FGHEF6WI.js";
|
|
20
20
|
import "./chunk-GBWGPTA7.js";
|
|
21
21
|
import "./chunk-IJZC2KIJ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XNTZD4AE.js";
|
|
23
23
|
import "./chunk-LHCGKAFO.js";
|
|
24
24
|
import "./chunk-ZNFJWEN4.js";
|
|
25
25
|
import "./chunk-MYYNZG2M.js";
|