nolo-cli 0.73.0-alpha.1 → 0.74.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-YCKNRHGK.js → _executeModel-YEVZAJYX.js} +11 -11
- package/{agentEmailCommands-NB4LKSYO.js → agentEmailCommands-HQT4EUOA.js} +9 -9
- package/{agentMachineCommands-KY64CTJQ.js → agentMachineCommands-3TR7DVYO.js} +1 -1
- package/{agentRecordCommands-QSMNZZJG.js → agentRecordCommands-TRUY7Z6N.js} +9 -9
- package/{agentRunCommand-J46VK6FV.js → agentRunCommand-EHJOESHA.js} +9 -9
- package/{agentSlice-SLXBJ4NO.js → agentSlice-RRZS2UII.js} +1 -1
- package/{chatQueueReduxAdapter-QM2VAX2O.js → chatQueueReduxAdapter-LSBTGZW2.js} +2 -2
- package/{chunk-72I27DY3.js → chunk-2JCTE5UN.js} +2 -2
- package/{chunk-OVIWUKZU.js → chunk-57VRXRLF.js} +1 -1
- package/{chunk-IZVGS7I4.js → chunk-AWPU7GXU.js} +2 -2
- package/{chunk-26Q7BEUX.js → chunk-CS36XM4N.js} +4 -4
- package/{chunk-CHF7R74H.js → chunk-DFY6PUV4.js} +5 -5
- package/{chunk-EDKF7RX4.js → chunk-EOARMOVD.js} +2 -0
- package/{chunk-3Q6IRFKW.js → chunk-FARB62OB.js} +5573 -342
- package/{chunk-ZFCKTVS5.js → chunk-I4UWPYBH.js} +2 -2
- package/{chunk-RFUMIH4D.js → chunk-OH5WRY7G.js} +7 -3
- package/{chunk-TVCEQO7Z.js → chunk-OXY5PKLG.js} +1 -1
- package/{chunk-BUWJ35JI.js → chunk-QBA5KMJI.js} +8 -8
- package/{chunk-NO5V2FJH.js → chunk-TI4CCL34.js} +3 -3
- package/{chunk-KZNSQBYS.js → chunk-VOEW2KF3.js} +8 -8
- package/{chunk-O5BQBXPT.js → chunk-XGZM6BTX.js} +1 -1
- package/{chunk-RZXW3OQR.js → chunk-XPQJXIF5.js} +50 -4
- package/{contentThunks-L25U6PGY.js → contentThunks-476Y6CFR.js} +3 -3
- package/{createAgentAutomationAction-AVO4SGAB.js → createAgentAutomationAction-DN4SFTP5.js} +3 -3
- package/{createDialogAction-CRM7655J.js → createDialogAction-2GS4JCMU.js} +4 -4
- package/{createPageAction-MZBXQPMN.js → createPageAction-44WTUMZ5.js} +3 -3
- package/{dialogSlice-DVUADIHJ.js → dialogSlice-7HEVCJFT.js} +2 -2
- package/{docStore-OREDKMJV.js → docStore-LJ7KNKFB.js} +1 -1
- package/{handleSendMessageAction-4EZCK5L4.js → handleSendMessageAction-ETA5QZIN.js} +2 -2
- package/index.js +15 -15
- package/{machineCommands-LILMX4Q6.js → machineCommands-INAP62WH.js} +9 -9
- package/{machineWsRunDispatch-CS5WKOMR.js → machineWsRunDispatch-MT7VRNKX.js} +9 -9
- package/package.json +1 -1
- package/{readlineWorkspace-TNCGQG3G.js → readlineWorkspace-5TV6ES57.js} +10 -10
- package/{runAgentClientLoop-DLBWIW7B.js → runAgentClientLoop-2PGZSCET.js} +9 -9
- package/{streamAgentChatTurn-PC75F4UN.js → streamAgentChatTurn-I6FUM6RV.js} +10 -10
- package/{tools-F5DJNXLT.js → tools-KU4X5HGZ.js} +6 -6
- package/{updateDialogTitleAction-IHI6S2PU.js → updateDialogTitleAction-E3SNB75W.js} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XPQJXIF5.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QBA5KMJI.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-CJ23A7U4.js";
|
|
@@ -141,8 +141,12 @@ async function runGit(args, cwd, options = {}) {
|
|
|
141
141
|
stderr: "pipe",
|
|
142
142
|
stdin: "ignore"
|
|
143
143
|
});
|
|
144
|
-
const [stdout, exitCode] = await Promise.all([
|
|
144
|
+
const [stdout, , exitCode] = await Promise.all([
|
|
145
145
|
readPipeText(proc.stdout),
|
|
146
|
+
// git 在非仓库目录对 diff 系子命令会向 stderr 打印整段 usage(数十 KB):
|
|
147
|
+
// 不消费 stderr 会让 git 阻塞在写满的 stderr 管道上永不退出(bun:child_process),
|
|
148
|
+
// proc.exited 随之永不 resolve——connector 收尾整体挂死(2026-09-16 实测)。
|
|
149
|
+
readPipeText(proc.stderr),
|
|
146
150
|
proc.exited
|
|
147
151
|
]);
|
|
148
152
|
if (exitCode !== 0) return null;
|
|
@@ -81,14 +81,14 @@ import {
|
|
|
81
81
|
} from "./chunk-VF4K2QE6.js";
|
|
82
82
|
import {
|
|
83
83
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-AWPU7GXU.js";
|
|
85
85
|
import {
|
|
86
86
|
BUILTIN_OBJECT_SKILL_IDS,
|
|
87
87
|
buildBuiltinObjectSkillConfig,
|
|
88
88
|
buildBuiltinObjectSkillDbKey,
|
|
89
89
|
buildBuiltinObjectSkillPageContent,
|
|
90
90
|
createDialogAction
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-2JCTE5UN.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
94
94
|
addContentToSpace,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
updateContentCategory,
|
|
107
107
|
updateContentTitle,
|
|
108
108
|
writeStoredCollapsedCategories
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-XGZM6BTX.js";
|
|
110
110
|
import {
|
|
111
111
|
getCurrentSpaceId,
|
|
112
112
|
getCurrentSpaceIdRaw,
|
|
@@ -128,14 +128,14 @@ import {
|
|
|
128
128
|
selectMsgById,
|
|
129
129
|
uiAskChoiceFunc,
|
|
130
130
|
uiAskChoiceFunctionSchema
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-VOEW2KF3.js";
|
|
132
132
|
import {
|
|
133
133
|
createAgent,
|
|
134
134
|
deleteServerSyncedCredential,
|
|
135
135
|
runLlm,
|
|
136
136
|
streamAgentChatTurn,
|
|
137
137
|
updateAgent
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-TI4CCL34.js";
|
|
139
139
|
import {
|
|
140
140
|
getActiveDialogKey,
|
|
141
141
|
selectCurrentDialogKey,
|
|
@@ -4672,7 +4672,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
4672
4672
|
const deletedDialogIds = [];
|
|
4673
4673
|
const deletedDialogKeys = [];
|
|
4674
4674
|
const failures = [];
|
|
4675
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4675
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-7HEVCJFT.js");
|
|
4676
4676
|
for (const target of targets) {
|
|
4677
4677
|
try {
|
|
4678
4678
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -15533,7 +15533,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
15533
15533
|
if (!executionInput) {
|
|
15534
15534
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
15535
15535
|
}
|
|
15536
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
15536
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-KU4X5HGZ.js");
|
|
15537
15537
|
const { executor } = findToolExecutor2(run.toolName);
|
|
15538
15538
|
toolRunStarted({
|
|
15539
15539
|
id: run.id,
|
|
@@ -18040,7 +18040,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18040
18040
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18041
18041
|
};
|
|
18042
18042
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18043
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18043
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-LJ7KNKFB.js");
|
|
18044
18044
|
if (getDocState().pageKey === id) {
|
|
18045
18045
|
applyExternalDocUpdate({
|
|
18046
18046
|
slateData: finalSlateData,
|
|
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
|
|
|
304
304
|
const overrides = {};
|
|
305
305
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
306
306
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
307
|
-
const { _executeModel } = await import("./_executeModel-
|
|
307
|
+
const { _executeModel } = await import("./_executeModel-YEVZAJYX.js");
|
|
308
308
|
return _executeModel(
|
|
309
309
|
{
|
|
310
310
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
|
|
|
325
325
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
326
326
|
*/
|
|
327
327
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
328
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
328
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-2PGZSCET.js");
|
|
329
329
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
330
330
|
{
|
|
331
331
|
agentKey: args.agentKey,
|
|
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
|
|
|
341
341
|
* 聊天轮次流式 Agent 调用
|
|
342
342
|
*/
|
|
343
343
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
344
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
344
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-I6FUM6RV.js");
|
|
345
345
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
346
346
|
}),
|
|
347
347
|
/**
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-AGGIDPCZ.js";
|
|
14
14
|
import {
|
|
15
15
|
runLlm
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TI4CCL34.js";
|
|
17
17
|
import {
|
|
18
18
|
cleanupCliSessionForDialog
|
|
19
19
|
} from "./chunk-BJCWNHVU.js";
|
|
@@ -17122,7 +17122,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
17122
17122
|
runtimeOptions: args.runtimeOptions
|
|
17123
17123
|
});
|
|
17124
17124
|
if (agentKeyToUse) {
|
|
17125
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
17125
|
+
const { streamAgentChatTurn } = await import("./agentSlice-RRZS2UII.js");
|
|
17126
17126
|
await dispatch(
|
|
17127
17127
|
streamAgentChatTurn({
|
|
17128
17128
|
agentKey: agentKeyToUse,
|
|
@@ -18255,7 +18255,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18255
18255
|
}
|
|
18256
18256
|
if (isCurrentDialog) {
|
|
18257
18257
|
await thunkApi.dispatch(resetMsgs());
|
|
18258
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
18258
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-7HEVCJFT.js");
|
|
18259
18259
|
dispatch(clearPendingAttachments2());
|
|
18260
18260
|
}
|
|
18261
18261
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -18263,15 +18263,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18263
18263
|
|
|
18264
18264
|
// packages/chat/dialog/dialogSlice.ts
|
|
18265
18265
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
18266
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
18266
|
+
const { createDialogAction } = await import("./createDialogAction-2GS4JCMU.js");
|
|
18267
18267
|
return createDialogAction(args, thunkApi);
|
|
18268
18268
|
};
|
|
18269
18269
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
18270
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
18270
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-DN4SFTP5.js");
|
|
18271
18271
|
return createAgentAutomationAction(args, thunkApi);
|
|
18272
18272
|
};
|
|
18273
18273
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
18274
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
18274
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-E3SNB75W.js");
|
|
18275
18275
|
return updateDialogTitleAction(args, thunkApi);
|
|
18276
18276
|
};
|
|
18277
18277
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -18295,7 +18295,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
18295
18295
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
18296
18296
|
};
|
|
18297
18297
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
18298
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
18298
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-ETA5QZIN.js");
|
|
18299
18299
|
return handleSendMessageAction(args, thunkApi);
|
|
18300
18300
|
};
|
|
18301
18301
|
function clearDialogState() {
|
|
@@ -18308,7 +18308,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
18308
18308
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
18309
18309
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
18310
18310
|
try {
|
|
18311
|
-
const { createDocState } = await import("./docStore-
|
|
18311
|
+
const { createDocState } = await import("./docStore-LJ7KNKFB.js");
|
|
18312
18312
|
const pageKey = await createDocState(
|
|
18313
18313
|
{ slateData, title },
|
|
18314
18314
|
{ dispatch, getState }
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
inlineImageUrlsForCustomProvider,
|
|
57
57
|
prepareTools
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-I4UWPYBH.js";
|
|
59
59
|
import {
|
|
60
60
|
getServerProviderSecret
|
|
61
61
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
rememberMemoryFunctionSchema,
|
|
73
73
|
resolveAgentRequiredPackIds,
|
|
74
74
|
setTodoListFunc
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QBA5KMJI.js";
|
|
76
76
|
import {
|
|
77
77
|
fetchWithTransientRetry,
|
|
78
78
|
isTransientFetchError
|
|
@@ -95,13 +95,13 @@ import {
|
|
|
95
95
|
prepareTokenUsageData,
|
|
96
96
|
resolveBuiltinPlatformAgentConfig,
|
|
97
97
|
runKeyed
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-VOEW2KF3.js";
|
|
99
99
|
import {
|
|
100
100
|
BUILTIN_TITLE_LLM_CONFIG
|
|
101
101
|
} from "./chunk-EVBFYPDC.js";
|
|
102
102
|
import {
|
|
103
103
|
fetchServerSyncedCredential
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-TI4CCL34.js";
|
|
105
105
|
import {
|
|
106
106
|
require_date_fns
|
|
107
107
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -2524,6 +2524,46 @@ async function detectCurrentMachineId(env) {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
|
|
2526
2526
|
// packages/cli/client/cliProviderHelpers.ts
|
|
2527
|
+
var CYCLE_SCAN_NODE_BUDGET = 2e4;
|
|
2528
|
+
function keysForJson(value) {
|
|
2529
|
+
if (Array.isArray(value)) {
|
|
2530
|
+
const keys = [];
|
|
2531
|
+
for (let i = 0; i < value.length; i++) keys.push(String(i));
|
|
2532
|
+
return keys;
|
|
2533
|
+
}
|
|
2534
|
+
return Object.keys(value);
|
|
2535
|
+
}
|
|
2536
|
+
function hasJsonCycle(root) {
|
|
2537
|
+
if (typeof root !== "object" || root === null) return false;
|
|
2538
|
+
if (typeof root.toJSON === "function") return false;
|
|
2539
|
+
const onPath = /* @__PURE__ */ new Set([root]);
|
|
2540
|
+
const stack = [
|
|
2541
|
+
{ holder: root, keys: keysForJson(root), index: 0 }
|
|
2542
|
+
];
|
|
2543
|
+
let visited = 1;
|
|
2544
|
+
while (stack.length > 0) {
|
|
2545
|
+
const frame = stack[stack.length - 1];
|
|
2546
|
+
if (frame.index >= frame.keys.length) {
|
|
2547
|
+
onPath.delete(frame.holder);
|
|
2548
|
+
stack.pop();
|
|
2549
|
+
continue;
|
|
2550
|
+
}
|
|
2551
|
+
const key = frame.keys[frame.index++];
|
|
2552
|
+
let child;
|
|
2553
|
+
try {
|
|
2554
|
+
child = frame.holder[key];
|
|
2555
|
+
} catch {
|
|
2556
|
+
continue;
|
|
2557
|
+
}
|
|
2558
|
+
if (typeof child !== "object" || child === null) continue;
|
|
2559
|
+
if (typeof child.toJSON === "function") continue;
|
|
2560
|
+
if (onPath.has(child)) return true;
|
|
2561
|
+
if (++visited > CYCLE_SCAN_NODE_BUDGET) return false;
|
|
2562
|
+
onPath.add(child);
|
|
2563
|
+
stack.push({ holder: child, keys: keysForJson(child), index: 0 });
|
|
2564
|
+
}
|
|
2565
|
+
return false;
|
|
2566
|
+
}
|
|
2527
2567
|
function buildDelegatedTaskContent(task, input) {
|
|
2528
2568
|
if (input === void 0 || input === null) {
|
|
2529
2569
|
return task;
|
|
@@ -2540,6 +2580,9 @@ ${input}`;
|
|
|
2540
2580
|
}
|
|
2541
2581
|
let jsonStr;
|
|
2542
2582
|
try {
|
|
2583
|
+
if (hasJsonCycle(input)) {
|
|
2584
|
+
throw new TypeError("Converting circular structure to JSON");
|
|
2585
|
+
}
|
|
2543
2586
|
const serialized = JSON.stringify(input, null, 2);
|
|
2544
2587
|
if (serialized === void 0) {
|
|
2545
2588
|
return task;
|
|
@@ -2564,6 +2607,9 @@ function calculateDelegatedPayloadMetrics(task, input, delegatedContent) {
|
|
|
2564
2607
|
serializedInputForTokens = input;
|
|
2565
2608
|
} else {
|
|
2566
2609
|
try {
|
|
2610
|
+
if (hasJsonCycle(input)) {
|
|
2611
|
+
throw new TypeError("Converting circular structure to JSON");
|
|
2612
|
+
}
|
|
2567
2613
|
const serialized = JSON.stringify(input, null, 2);
|
|
2568
2614
|
if (serialized !== void 0) {
|
|
2569
2615
|
inputChars = serialized.length;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
updateContentPinned,
|
|
8
8
|
updateContentTitle,
|
|
9
9
|
uploadAndAddFileToSpace
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XGZM6BTX.js";
|
|
11
11
|
import "./chunk-ZJ7UHBJS.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VOEW2KF3.js";
|
|
13
13
|
import "./chunk-EVBFYPDC.js";
|
|
14
14
|
import "./chunk-HQUORJTM.js";
|
|
15
15
|
import "./chunk-YYLHWIW6.js";
|
|
16
16
|
import "./chunk-AGGIDPCZ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-TI4CCL34.js";
|
|
18
18
|
import "./chunk-BJCWNHVU.js";
|
|
19
19
|
import "./chunk-5RGU3J7P.js";
|
|
20
20
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XGZM6BTX.js";
|
|
4
4
|
import "./chunk-ZJ7UHBJS.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-VOEW2KF3.js";
|
|
6
6
|
import "./chunk-EVBFYPDC.js";
|
|
7
7
|
import "./chunk-HQUORJTM.js";
|
|
8
8
|
import "./chunk-YYLHWIW6.js";
|
|
9
9
|
import "./chunk-AGGIDPCZ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TI4CCL34.js";
|
|
11
11
|
import "./chunk-BJCWNHVU.js";
|
|
12
12
|
import "./chunk-5RGU3J7P.js";
|
|
13
13
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2JCTE5UN.js";
|
|
5
|
+
import "./chunk-XGZM6BTX.js";
|
|
6
6
|
import "./chunk-ZJ7UHBJS.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-VOEW2KF3.js";
|
|
8
8
|
import "./chunk-EVBFYPDC.js";
|
|
9
9
|
import "./chunk-HQUORJTM.js";
|
|
10
10
|
import "./chunk-YYLHWIW6.js";
|
|
11
11
|
import "./chunk-AGGIDPCZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TI4CCL34.js";
|
|
13
13
|
import "./chunk-BJCWNHVU.js";
|
|
14
14
|
import "./chunk-5RGU3J7P.js";
|
|
15
15
|
import "./chunk-6YTOJY35.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
client_default
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XGZM6BTX.js";
|
|
18
18
|
import {
|
|
19
19
|
getCurrentSpaceId
|
|
20
20
|
} from "./chunk-ZJ7UHBJS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VOEW2KF3.js";
|
|
22
22
|
import "./chunk-EVBFYPDC.js";
|
|
23
23
|
import "./chunk-HQUORJTM.js";
|
|
24
24
|
import "./chunk-YYLHWIW6.js";
|
|
25
25
|
import "./chunk-AGGIDPCZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-TI4CCL34.js";
|
|
27
27
|
import "./chunk-BJCWNHVU.js";
|
|
28
28
|
import "./chunk-5RGU3J7P.js";
|
|
29
29
|
import "./chunk-6YTOJY35.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
switchDialogAgent,
|
|
21
21
|
updateDialogTitle,
|
|
22
22
|
updateTokens
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VOEW2KF3.js";
|
|
24
24
|
import "./chunk-EVBFYPDC.js";
|
|
25
25
|
import "./chunk-HQUORJTM.js";
|
|
26
26
|
import "./chunk-YYLHWIW6.js";
|
|
27
27
|
import "./chunk-AGGIDPCZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-TI4CCL34.js";
|
|
29
29
|
import "./chunk-BJCWNHVU.js";
|
|
30
30
|
import {
|
|
31
31
|
getActiveDialogAgentId
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
prepareAndPersistUserMessage,
|
|
7
7
|
resolveHandleSendMessageContext,
|
|
8
8
|
selectAllMsgs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VOEW2KF3.js";
|
|
10
10
|
import "./chunk-EVBFYPDC.js";
|
|
11
11
|
import "./chunk-HQUORJTM.js";
|
|
12
12
|
import "./chunk-YYLHWIW6.js";
|
|
13
13
|
import "./chunk-AGGIDPCZ.js";
|
|
14
14
|
import {
|
|
15
15
|
streamAgentChatTurn
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TI4CCL34.js";
|
|
17
17
|
import "./chunk-BJCWNHVU.js";
|
|
18
18
|
import "./chunk-5RGU3J7P.js";
|
|
19
19
|
import {
|
package/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function createDaemonShortcutCommand(path, description, command2) {
|
|
|
127
127
|
// packages/cli/agentInternalCommandEntries.ts
|
|
128
128
|
function getAgentInternalCommandEntries() {
|
|
129
129
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
|
|
130
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
130
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-EHJOESHA.js");
|
|
131
131
|
return runAgentRunCommand(args2, {
|
|
132
132
|
env: ctx.env,
|
|
133
133
|
scriptDir: ctx.scriptDir,
|
|
@@ -143,7 +143,7 @@ function getAgentInternalCommandEntries() {
|
|
|
143
143
|
return runAgentListCommand(args2, deps);
|
|
144
144
|
}),
|
|
145
145
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args2, deps) => {
|
|
146
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
146
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-TRUY7Z6N.js");
|
|
147
147
|
return runAgentCreateCommand(args2, deps);
|
|
148
148
|
}),
|
|
149
149
|
createEnvCommand(["agent", "models"], "List models available on an OpenAI-compatible provider", async (args2, deps) => {
|
|
@@ -155,7 +155,7 @@ function getAgentInternalCommandEntries() {
|
|
|
155
155
|
return runAgentPullCommand(args2, deps);
|
|
156
156
|
}),
|
|
157
157
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args2, deps) => {
|
|
158
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
158
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-TRUY7Z6N.js");
|
|
159
159
|
return runAgentReadCommand(args2, deps);
|
|
160
160
|
}),
|
|
161
161
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -184,26 +184,26 @@ function getAgentInternalCommandEntries() {
|
|
|
184
184
|
return runSetupOfflineMarxistsAgentCommand(args2, deps);
|
|
185
185
|
}),
|
|
186
186
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
|
|
187
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
187
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-TRUY7Z6N.js");
|
|
188
188
|
return runAgentUpdateCommand(args2, deps);
|
|
189
189
|
}),
|
|
190
190
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
|
|
191
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
191
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-HQT4EUOA.js");
|
|
192
192
|
return runAgentEmailProvisionCommand(args2, deps);
|
|
193
193
|
}),
|
|
194
194
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
|
|
195
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
195
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-HQT4EUOA.js");
|
|
196
196
|
return runAgentEmailBindCommand(args2, deps);
|
|
197
197
|
}),
|
|
198
198
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
|
|
199
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
199
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-HQT4EUOA.js");
|
|
200
200
|
return runAgentEmailTransferCommand(args2, deps);
|
|
201
201
|
}),
|
|
202
202
|
createEnvCommand(
|
|
203
203
|
["agent", "email", "create-and-provision"],
|
|
204
204
|
"Create an agent and provision its controlled inbox",
|
|
205
205
|
async (args2, deps) => {
|
|
206
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
206
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-HQT4EUOA.js");
|
|
207
207
|
return runAgentEmailCreateAndProvisionCommand(args2, deps);
|
|
208
208
|
}
|
|
209
209
|
),
|
|
@@ -224,15 +224,15 @@ function getAgentInternalCommandEntries() {
|
|
|
224
224
|
return runAgentRevokeGrantCommand(args2, deps);
|
|
225
225
|
}),
|
|
226
226
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
|
|
227
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
227
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-3TR7DVYO.js");
|
|
228
228
|
return runAgentBindCurrentCommand(args2, deps);
|
|
229
229
|
}),
|
|
230
230
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
|
|
231
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
231
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-3TR7DVYO.js");
|
|
232
232
|
return runAgentSmokeCurrentCommand(args2, deps);
|
|
233
233
|
}),
|
|
234
234
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
|
|
235
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
235
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-3TR7DVYO.js");
|
|
236
236
|
return runAgentRuntimeDoctorCommand(args2, deps);
|
|
237
237
|
}),
|
|
238
238
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -417,15 +417,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
417
417
|
return runWhoamiCommand({ args: args2, env: ctx.env });
|
|
418
418
|
}),
|
|
419
419
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
|
|
420
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
420
|
+
const { runMachineConnectCommand } = await import("./machineCommands-INAP62WH.js");
|
|
421
421
|
return runMachineConnectCommand(args2, deps);
|
|
422
422
|
}),
|
|
423
423
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
|
|
424
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
424
|
+
const { runMachineConnectCommand } = await import("./machineCommands-INAP62WH.js");
|
|
425
425
|
return runMachineConnectCommand(args2, deps);
|
|
426
426
|
}),
|
|
427
427
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
|
|
428
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
428
|
+
const { runMachineStatusCommand } = await import("./machineCommands-INAP62WH.js");
|
|
429
429
|
return runMachineStatusCommand(args2, deps);
|
|
430
430
|
}),
|
|
431
431
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
|
|
@@ -815,7 +815,7 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
815
815
|
return proc.exited;
|
|
816
816
|
}
|
|
817
817
|
async function launchTuiWorkspace(args2) {
|
|
818
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
818
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-5TV6ES57.js");
|
|
819
819
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-J5BEPLW5.js");
|
|
820
820
|
return startTuiWorkspace({
|
|
821
821
|
...args2,
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OH5WRY7G.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
9
9
|
resolveConnectorWebSocketTarget
|
|
10
10
|
} from "./chunk-ALXHV7NK.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XPQJXIF5.js";
|
|
12
12
|
import "./chunk-GBPZKFYK.js";
|
|
13
13
|
import "./chunk-EADNWBAZ.js";
|
|
14
14
|
import "./chunk-HH65VA5U.js";
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
import "./chunk-JBTJAPUF.js";
|
|
23
23
|
import "./chunk-3QPYFHAH.js";
|
|
24
24
|
import "./chunk-ATNTHIZI.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-I4UWPYBH.js";
|
|
26
26
|
import "./chunk-HS7MLR74.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-QBA5KMJI.js";
|
|
28
28
|
import "./chunk-5XTOKQLW.js";
|
|
29
29
|
import "./chunk-NF64D32W.js";
|
|
30
30
|
import {
|
|
@@ -42,16 +42,16 @@ import "./chunk-FZGV4FGK.js";
|
|
|
42
42
|
import "./chunk-MEYIRKDN.js";
|
|
43
43
|
import "./chunk-63W5N6P3.js";
|
|
44
44
|
import "./chunk-VF4K2QE6.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-AWPU7GXU.js";
|
|
46
|
+
import "./chunk-2JCTE5UN.js";
|
|
47
|
+
import "./chunk-XGZM6BTX.js";
|
|
48
48
|
import "./chunk-ZJ7UHBJS.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-VOEW2KF3.js";
|
|
50
50
|
import "./chunk-EVBFYPDC.js";
|
|
51
51
|
import "./chunk-HQUORJTM.js";
|
|
52
52
|
import "./chunk-YYLHWIW6.js";
|
|
53
53
|
import "./chunk-AGGIDPCZ.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-TI4CCL34.js";
|
|
55
55
|
import "./chunk-BJCWNHVU.js";
|
|
56
56
|
import "./chunk-5RGU3J7P.js";
|
|
57
57
|
import "./chunk-6YTOJY35.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-OH5WRY7G.js";
|
|
15
|
+
import "./chunk-XPQJXIF5.js";
|
|
16
16
|
import "./chunk-GBPZKFYK.js";
|
|
17
17
|
import "./chunk-EADNWBAZ.js";
|
|
18
18
|
import "./chunk-HH65VA5U.js";
|
|
@@ -23,9 +23,9 @@ import "./chunk-MP64VFGD.js";
|
|
|
23
23
|
import "./chunk-JBTJAPUF.js";
|
|
24
24
|
import "./chunk-3QPYFHAH.js";
|
|
25
25
|
import "./chunk-ATNTHIZI.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-I4UWPYBH.js";
|
|
27
27
|
import "./chunk-HS7MLR74.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QBA5KMJI.js";
|
|
29
29
|
import "./chunk-5XTOKQLW.js";
|
|
30
30
|
import "./chunk-NF64D32W.js";
|
|
31
31
|
import "./chunk-3L2WKC3W.js";
|
|
@@ -41,16 +41,16 @@ import "./chunk-FZGV4FGK.js";
|
|
|
41
41
|
import "./chunk-MEYIRKDN.js";
|
|
42
42
|
import "./chunk-63W5N6P3.js";
|
|
43
43
|
import "./chunk-VF4K2QE6.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-AWPU7GXU.js";
|
|
45
|
+
import "./chunk-2JCTE5UN.js";
|
|
46
|
+
import "./chunk-XGZM6BTX.js";
|
|
47
47
|
import "./chunk-ZJ7UHBJS.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-VOEW2KF3.js";
|
|
49
49
|
import "./chunk-EVBFYPDC.js";
|
|
50
50
|
import "./chunk-HQUORJTM.js";
|
|
51
51
|
import "./chunk-YYLHWIW6.js";
|
|
52
52
|
import "./chunk-AGGIDPCZ.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-TI4CCL34.js";
|
|
54
54
|
import "./chunk-BJCWNHVU.js";
|
|
55
55
|
import "./chunk-5RGU3J7P.js";
|
|
56
56
|
import "./chunk-6YTOJY35.js";
|