nolo-cli 0.36.0-alpha.1 → 0.37.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-EJ6RRIGV.js → agentDeleteCommand-6XYC7JVL.js} +2 -2
- package/{agentEmailCommands-44XJPIUG.js → agentEmailCommands-C6G4F4JL.js} +4 -4
- package/{agentListCommands-HSWVSDLI.js → agentListCommands-R7TKN3DL.js} +2 -2
- package/{agentMachineCommands-VMWDSASB.js → agentMachineCommands-JGA4C6ZZ.js} +3 -3
- package/{agentRecordCommands-NLRF3ZCV.js → agentRecordCommands-ZHH7KRWS.js} +4 -4
- package/{agentRunCommand-RUCLOMIL.js → agentRunCommand-5LLSNUAJ.js} +4 -4
- package/{agentRuntimeLocal-GTNYV7LH.js → agentRuntimeLocal-CPEWDR3Z.js} +2 -2
- package/{appDeleteCommands-YDXSR75I.js → appDeleteCommands-6SYOAMTR.js} +2 -2
- package/{appDeployCommands-4X5SN3EF.js → appDeployCommands-ZNMFUV2K.js} +2 -2
- package/{appDeployStatusCommands-TK3JKBHH.js → appDeployStatusCommands-G5FIZT64.js} +2 -2
- package/{appGetCommands-ZKQHHJYB.js → appGetCommands-4RIFLLZZ.js} +2 -2
- package/{appListCommands-JRDOEEGV.js → appListCommands-DK2JJ65T.js} +2 -2
- package/{chunk-ANM6AIWX.js → chunk-55U32YAP.js} +2 -2
- package/{chunk-QIMPDPEE.js → chunk-5OXHHCUI.js} +1 -1
- package/{chunk-OSCSEJJR.js → chunk-MZZZYUZS.js} +4 -1
- package/{chunk-MUG4FG5J.js → chunk-PEEWLG6V.js} +17 -7
- package/{chunk-7MWPUOKI.js → chunk-QKCJPJNO.js} +17 -2
- package/{chunk-LBZHTQTD.js → chunk-VOXNBPLB.js} +1 -1
- package/{dialogCommands-VYH2BY5H.js → dialogCommands-SSQLOBRU.js} +2 -2
- package/{docCreateCommands-JS7A3OHQ.js → docCreateCommands-WYP6MQ56.js} +2 -2
- package/{docDeleteCommands-HG5HNKZR.js → docDeleteCommands-6YNU4LZ7.js} +2 -2
- package/{docReadCommands-BH4WN6HH.js → docReadCommands-PFJMIPYU.js} +2 -2
- package/{docUpdateCommands-TAXC7LHJ.js → docUpdateCommands-KAP6JSGT.js} +2 -2
- package/index.js +41 -41
- package/{machineCommands-4J5NN3JH.js → machineCommands-FSLAJSUC.js} +4 -4
- package/{machineWsRunDispatch-KBPZKHM2.js → machineWsRunDispatch-PHYQYE4Q.js} +4 -4
- package/package.json +1 -1
- package/{readlineWorkspace-EP2W65SI.js → readlineWorkspace-HGR75YT3.js} +50 -12
- package/{spaceCommands-Y33JLAKF.js → spaceCommands-VHOKUADK.js} +2 -2
- package/{tuiSummaryLlmCaller-LH7F2SP7.js → tuiSummaryLlmCaller-SHRB4RWM.js} +1 -1
|
@@ -15,8 +15,8 @@ import "./chunk-KQHGZWSV.js";
|
|
|
15
15
|
import {
|
|
16
16
|
Level
|
|
17
17
|
} from "./chunk-6WD3OOJS.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-VOXNBPLB.js";
|
|
19
|
+
import "./chunk-MZZZYUZS.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
21
|
import "./chunk-64KIQZA2.js";
|
|
22
22
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-W445DPVT.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5OXHHCUI.js";
|
|
8
8
|
import {
|
|
9
9
|
positionalArgs,
|
|
10
10
|
readFlagValue
|
|
11
11
|
} from "./chunk-4AWH4LQA.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QKCJPJNO.js";
|
|
13
13
|
import "./chunk-IZNJDUJ4.js";
|
|
14
14
|
import "./chunk-6XG52ZQ6.js";
|
|
15
15
|
import {
|
|
@@ -62,8 +62,8 @@ import "./chunk-2KO5QQFV.js";
|
|
|
62
62
|
import "./chunk-IIOHYLIG.js";
|
|
63
63
|
import "./chunk-AETZ7AD6.js";
|
|
64
64
|
import "./chunk-KHCLMKZZ.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-VOXNBPLB.js";
|
|
66
|
+
import "./chunk-MZZZYUZS.js";
|
|
67
67
|
import "./chunk-ZNFJWEN4.js";
|
|
68
68
|
import "./chunk-64KIQZA2.js";
|
|
69
69
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
} from "./chunk-GUYMR3JL.js";
|
|
35
35
|
import "./chunk-KQHGZWSV.js";
|
|
36
36
|
import "./chunk-YYLHWIW6.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-VOXNBPLB.js";
|
|
38
|
+
import "./chunk-MZZZYUZS.js";
|
|
39
39
|
import "./chunk-ZNFJWEN4.js";
|
|
40
40
|
import "./chunk-64KIQZA2.js";
|
|
41
41
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
resolveCliAgentKeyInput
|
|
15
15
|
} from "./chunk-EKLRRZIN.js";
|
|
16
16
|
import "./chunk-RQSOAMPJ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-VOXNBPLB.js";
|
|
18
|
+
import "./chunk-MZZZYUZS.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
20
|
import "./chunk-64KIQZA2.js";
|
|
21
21
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -84,7 +84,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
84
84
|
return executeCli(provider, prompt, options);
|
|
85
85
|
}
|
|
86
86
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
87
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
87
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-PHYQYE4Q.js");
|
|
88
88
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
89
89
|
}
|
|
90
90
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-5OXHHCUI.js";
|
|
6
|
+
import "./chunk-QKCJPJNO.js";
|
|
7
7
|
import "./chunk-IZNJDUJ4.js";
|
|
8
8
|
import "./chunk-6XG52ZQ6.js";
|
|
9
9
|
import "./chunk-UNHKVD2N.js";
|
|
@@ -49,8 +49,8 @@ import "./chunk-2KO5QQFV.js";
|
|
|
49
49
|
import "./chunk-IIOHYLIG.js";
|
|
50
50
|
import "./chunk-AETZ7AD6.js";
|
|
51
51
|
import "./chunk-KHCLMKZZ.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-VOXNBPLB.js";
|
|
53
|
+
import "./chunk-MZZZYUZS.js";
|
|
54
54
|
import "./chunk-ZNFJWEN4.js";
|
|
55
55
|
import "./chunk-64KIQZA2.js";
|
|
56
56
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
prependSubjectDialogMarker,
|
|
6
6
|
resolveWorkflowReference,
|
|
7
7
|
runAgentRunCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PEEWLG6V.js";
|
|
9
9
|
import "./chunk-IMHO5LC6.js";
|
|
10
10
|
import {
|
|
11
11
|
parseAgentRunArgs
|
|
12
12
|
} from "./chunk-4AWH4LQA.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QKCJPJNO.js";
|
|
14
14
|
import "./chunk-IZNJDUJ4.js";
|
|
15
15
|
import "./chunk-6XG52ZQ6.js";
|
|
16
16
|
import "./chunk-UNHKVD2N.js";
|
|
@@ -60,8 +60,8 @@ import "./chunk-2KO5QQFV.js";
|
|
|
60
60
|
import "./chunk-IIOHYLIG.js";
|
|
61
61
|
import "./chunk-AETZ7AD6.js";
|
|
62
62
|
import "./chunk-KHCLMKZZ.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-VOXNBPLB.js";
|
|
64
|
+
import "./chunk-MZZZYUZS.js";
|
|
65
65
|
import "./chunk-ZNFJWEN4.js";
|
|
66
66
|
import "./chunk-64KIQZA2.js";
|
|
67
67
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveOpenAiCompatibleProviderConfig,
|
|
19
19
|
runLocalAgentTurn,
|
|
20
20
|
shouldCacheHybridRemoteRecord
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VOXNBPLB.js";
|
|
22
22
|
import {
|
|
23
23
|
buildPlatformChatCompletionRequest,
|
|
24
24
|
canUsePlatformChatProvider,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
readPlatformChatSseCompletion,
|
|
29
29
|
resolvePlatformChatProviderConfig,
|
|
30
30
|
shouldUsePlatformChatProvider
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MZZZYUZS.js";
|
|
32
32
|
import "./chunk-ZNFJWEN4.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveAgentRuntimeConfigFromRecord
|
|
@@ -13,8 +13,8 @@ import "./chunk-GZRMWK5R.js";
|
|
|
13
13
|
import "./chunk-J5NMOM35.js";
|
|
14
14
|
import "./chunk-EKLRRZIN.js";
|
|
15
15
|
import "./chunk-VF4K2QE6.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VOXNBPLB.js";
|
|
17
|
+
import "./chunk-MZZZYUZS.js";
|
|
18
18
|
import "./chunk-ZNFJWEN4.js";
|
|
19
19
|
import "./chunk-64KIQZA2.js";
|
|
20
20
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -14,8 +14,8 @@ import "./chunk-GZRMWK5R.js";
|
|
|
14
14
|
import "./chunk-J5NMOM35.js";
|
|
15
15
|
import "./chunk-EKLRRZIN.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-VOXNBPLB.js";
|
|
18
|
+
import "./chunk-MZZZYUZS.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
20
|
import "./chunk-64KIQZA2.js";
|
|
21
21
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -13,8 +13,8 @@ import "./chunk-GZRMWK5R.js";
|
|
|
13
13
|
import "./chunk-J5NMOM35.js";
|
|
14
14
|
import "./chunk-EKLRRZIN.js";
|
|
15
15
|
import "./chunk-VF4K2QE6.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VOXNBPLB.js";
|
|
17
|
+
import "./chunk-MZZZYUZS.js";
|
|
18
18
|
import "./chunk-ZNFJWEN4.js";
|
|
19
19
|
import "./chunk-64KIQZA2.js";
|
|
20
20
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -14,8 +14,8 @@ import "./chunk-GZRMWK5R.js";
|
|
|
14
14
|
import "./chunk-J5NMOM35.js";
|
|
15
15
|
import "./chunk-EKLRRZIN.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-VOXNBPLB.js";
|
|
18
|
+
import "./chunk-MZZZYUZS.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
20
|
import "./chunk-64KIQZA2.js";
|
|
21
21
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -14,8 +14,8 @@ import "./chunk-GZRMWK5R.js";
|
|
|
14
14
|
import "./chunk-J5NMOM35.js";
|
|
15
15
|
import "./chunk-EKLRRZIN.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-VOXNBPLB.js";
|
|
18
|
+
import "./chunk-MZZZYUZS.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
20
|
import "./chunk-64KIQZA2.js";
|
|
21
21
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QKCJPJNO.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
7
|
} from "./chunk-JK7UM3LT.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VOXNBPLB.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-NQ4N4IGO.js";
|
|
@@ -244,10 +244,12 @@ function extractChatCompletionStreamError(parsed) {
|
|
|
244
244
|
if (typeof raw !== "object") return null;
|
|
245
245
|
const message = typeof raw.msg === "string" && raw.msg.trim() ? raw.msg.trim() : typeof raw.message === "string" && raw.message.trim() ? raw.message.trim() : "";
|
|
246
246
|
const code = typeof raw.code === "string" && raw.code.trim() ? raw.code.trim() : typeof raw.type === "string" && raw.type.trim() ? raw.type.trim() : void 0;
|
|
247
|
+
const detail = typeof raw.detail === "string" && raw.detail.trim() ? raw.detail.trim() : void 0;
|
|
247
248
|
if (!message && !code) return null;
|
|
248
249
|
return {
|
|
249
250
|
message: message || "upstream stream error",
|
|
250
|
-
...code ? { code } : {}
|
|
251
|
+
...code ? { code } : {},
|
|
252
|
+
...detail ? { detail } : {}
|
|
251
253
|
};
|
|
252
254
|
}
|
|
253
255
|
function throwIfChatCompletionStreamFailed(state) {
|
|
@@ -257,6 +259,7 @@ function throwIfChatCompletionStreamFailed(state) {
|
|
|
257
259
|
failure.code ? `${failure.message} (${failure.code})` : failure.message
|
|
258
260
|
);
|
|
259
261
|
if (failure.code) error.code = failure.code;
|
|
262
|
+
if (failure.detail) error.detail = failure.detail;
|
|
260
263
|
throw error;
|
|
261
264
|
}
|
|
262
265
|
function applyChatCompletionDelta(parsed, state) {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parseAgentRunEvent,
|
|
21
21
|
t,
|
|
22
22
|
toolLabel
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QKCJPJNO.js";
|
|
24
24
|
import {
|
|
25
25
|
getReadableCliDb
|
|
26
26
|
} from "./chunk-UNHKVD2N.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
LOCAL_TURN_ABORTED_CODE,
|
|
92
92
|
readActionGate,
|
|
93
93
|
readCommandActionGatePayload
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VOXNBPLB.js";
|
|
95
95
|
import {
|
|
96
96
|
resolveAgentRuntimeConfigFromRecord
|
|
97
97
|
} from "./chunk-64KIQZA2.js";
|
|
@@ -4855,6 +4855,7 @@ function createCliTurnOutput(params) {
|
|
|
4855
4855
|
suppressRunProgressCards: typeof options.onAgentRunStatus === "function"
|
|
4856
4856
|
});
|
|
4857
4857
|
const eventMode = resolveAgentEventMode(options);
|
|
4858
|
+
const showThinking = options.showThinking !== false;
|
|
4858
4859
|
let streamedAssistantText = false;
|
|
4859
4860
|
let everStreamedAnyText = false;
|
|
4860
4861
|
let printedAssistantLabel = false;
|
|
@@ -4868,7 +4869,7 @@ function createCliTurnOutput(params) {
|
|
|
4868
4869
|
const parsed = processThinkChunk(chunk, thinkState);
|
|
4869
4870
|
thinkState = parsed.state;
|
|
4870
4871
|
if (!parsed.content && !parsed.reasoning) return;
|
|
4871
|
-
if (parsed.reasoning) {
|
|
4872
|
+
if (showThinking && parsed.reasoning) {
|
|
4872
4873
|
spinner.setThinkingHint(parsed.reasoning);
|
|
4873
4874
|
}
|
|
4874
4875
|
if (!parsed.content) return;
|
|
@@ -4929,7 +4930,7 @@ ${options.agentName} > `);
|
|
|
4929
4930
|
writeVisibleAssistantChunk(chunk);
|
|
4930
4931
|
},
|
|
4931
4932
|
pushThinking(chunk) {
|
|
4932
|
-
spinner.setThinkingHint(chunk);
|
|
4933
|
+
if (showThinking) spinner.setThinkingHint(chunk);
|
|
4933
4934
|
},
|
|
4934
4935
|
handleToolEvent,
|
|
4935
4936
|
/** 记录一条 compaction 观测事件(TUI 在 turn 结束时渲染一行 dim 摘要)。 */
|
|
@@ -5359,7 +5360,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
5359
5360
|
// packages/cli/client/agentRun.ts
|
|
5360
5361
|
import { ulid } from "ulid";
|
|
5361
5362
|
async function loadRunLocalAgentTurn() {
|
|
5362
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
5363
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-CPEWDR3Z.js");
|
|
5363
5364
|
return runLocalAgentTurn;
|
|
5364
5365
|
}
|
|
5365
5366
|
async function resolveCurrentMachineId(options) {
|
|
@@ -5582,7 +5583,16 @@ var FAILURE_BUILDERS = {
|
|
|
5582
5583
|
transient: buildTransientFailure,
|
|
5583
5584
|
upstream: buildUpstreamFailure
|
|
5584
5585
|
};
|
|
5585
|
-
function describeLocalRunFailure(message) {
|
|
5586
|
+
function describeLocalRunFailure(message, rawError) {
|
|
5587
|
+
let busyDetail;
|
|
5588
|
+
if (rawError && typeof rawError === "object" && "detail" in rawError && typeof rawError.detail === "string" && rawError.detail.trim()) {
|
|
5589
|
+
busyDetail = rawError.detail.trim();
|
|
5590
|
+
}
|
|
5591
|
+
if (/PLATFORM_LLM_BUSY|服务器紧张/.test(message)) {
|
|
5592
|
+
const shown = message.replace(/\s*\(PLATFORM_LLM_BUSY\)\s*$/, "");
|
|
5593
|
+
return `${RUN_UNAVAILABLE_PREFIX} \u670D\u52A1\u5668\u7D27\u5F20${shown !== "\u670D\u52A1\u5668\u7D27\u5F20" ? ` (${shown})` : ""} (PLATFORM_LLM_BUSY)${busyDetail ? `: ${busyDetail}` : ""}. ${NO_FALLBACK} \u5E73\u53F0\u6A21\u578B\u4E0A\u6E38\u7E41\u5FD9\uFF0C\u7A0D\u540E\u91CD\u8BD5\u6216\u6362\u4E2A\u6A21\u578B\u3002
|
|
5594
|
+
`;
|
|
5595
|
+
}
|
|
5586
5596
|
if (/UPSTREAM_402|Insufficient Balance|余额不足|insufficient\s+balance/i.test(
|
|
5587
5597
|
message
|
|
5588
5598
|
)) {
|
|
@@ -5998,7 +6008,7 @@ async function runAgentTurn(options) {
|
|
|
5998
6008
|
}
|
|
5999
6009
|
}
|
|
6000
6010
|
const localErrorMessage = localResult.localError ? toErrorMessage(localResult.localError) : "local runtime failed";
|
|
6001
|
-
options.output.write(describeLocalRunFailure(localErrorMessage));
|
|
6011
|
+
options.output.write(describeLocalRunFailure(localErrorMessage, localResult.localError));
|
|
6002
6012
|
return {
|
|
6003
6013
|
exitCode: 1,
|
|
6004
6014
|
...localResult.dialogId ? { dialogId: localResult.dialogId } : {},
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
parseSyncServersEnv,
|
|
139
139
|
resolveOpenAiCompatibleProviderConfig,
|
|
140
140
|
summarizeToolArguments
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-VOXNBPLB.js";
|
|
142
142
|
import {
|
|
143
143
|
buildPlatformChatCompletionRequest,
|
|
144
144
|
canUsePlatformChatProvider,
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
resolvePlatformChatProviderConfig,
|
|
151
151
|
shouldUsePlatformChatProvider,
|
|
152
152
|
streamSseDataValues
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-MZZZYUZS.js";
|
|
154
154
|
import {
|
|
155
155
|
resolveAgentRuntimeConfigFromRecord,
|
|
156
156
|
resolveHistoricalToolContentCap
|
|
@@ -712,6 +712,10 @@ var STRINGS = {
|
|
|
712
712
|
en: "question",
|
|
713
713
|
zh: "\u95EE\u9898"
|
|
714
714
|
},
|
|
715
|
+
askChoiceScrollHint: {
|
|
716
|
+
en: "\u2191 Shift+wheel scrolls back terminal history",
|
|
717
|
+
zh: "\u2191 Shift+\u6EDA\u8F6E\u53EF\u56DE\u770B\u4E0A\u65B9\u6D88\u606F"
|
|
718
|
+
},
|
|
715
719
|
askChoiceSubmit: {
|
|
716
720
|
en: "Submit",
|
|
717
721
|
zh: "\u63D0\u4EA4"
|
|
@@ -825,6 +829,7 @@ var STRINGS = {
|
|
|
825
829
|
" /context Show workspace context and next actions",
|
|
826
830
|
" /runtime <mode> Use auto, local, or server runtime",
|
|
827
831
|
" /tools <mode> Control tool trace: hide, compact, verbose",
|
|
832
|
+
" /thinking <mode> Show or hide live model reasoning",
|
|
828
833
|
" /switch Pick an agent interactively (\u2191\u2193, Enter)",
|
|
829
834
|
" /switch list List agents as text",
|
|
830
835
|
" /switch <name> Switch directly by name, alias, or key (alias: /agent)",
|
|
@@ -863,6 +868,7 @@ var STRINGS = {
|
|
|
863
868
|
" /context \u67E5\u770B\u5DE5\u4F5C\u533A\u4E0A\u4E0B\u6587\u4E0E\u540E\u7EED\u64CD\u4F5C",
|
|
864
869
|
" /runtime <mode> \u5207\u6362 runtime\uFF1Aauto\u3001local\u3001server",
|
|
865
870
|
" /tools <mode> \u5DE5\u5177\u8F68\u8FF9\u663E\u793A\uFF1Ahide\u3001compact\u3001verbose",
|
|
871
|
+
" /thinking <mode> \u663E\u793A\u6216\u9690\u85CF\u6A21\u578B\u7684\u5B9E\u65F6\u601D\u8003\u8FC7\u7A0B",
|
|
866
872
|
" /switch \u4EA4\u4E92\u5F0F\u9009\u62E9 agent\uFF08\u2191\u2193 \u79FB\u52A8\uFF0CEnter \u786E\u8BA4\uFF09",
|
|
867
873
|
" /switch list \u4EE5\u6587\u672C\u5217\u51FA\u5168\u90E8 agent",
|
|
868
874
|
" /switch <name> \u6309\u540D\u79F0\u3001\u522B\u540D\u6216 key \u76F4\u63A5\u5207\u6362\uFF08\u522B\u540D\uFF1A/agent\uFF09",
|
|
@@ -909,6 +915,15 @@ var STRINGS = {
|
|
|
909
915
|
},
|
|
910
916
|
toolsUsage: { en: "Usage: /tools <hide|compact|verbose>", zh: "\u7528\u6CD5\uFF1A/tools <hide|compact|verbose>" },
|
|
911
917
|
toolsSet: { en: "Tool display: {0}", zh: "\u5DE5\u5177\u663E\u793A\uFF1A{0}" },
|
|
918
|
+
thinkingCurrent: {
|
|
919
|
+
en: "Thinking display: {0} (show | hide)",
|
|
920
|
+
zh: "\u601D\u8003\u663E\u793A\uFF1A{0}\uFF08show | hide\uFF09"
|
|
921
|
+
},
|
|
922
|
+
thinkingUsage: {
|
|
923
|
+
en: "Usage: /thinking <show|hide>",
|
|
924
|
+
zh: "\u7528\u6CD5\uFF1A/thinking <show|hide>"
|
|
925
|
+
},
|
|
926
|
+
thinkingSet: { en: "Thinking display: {0}", zh: "\u601D\u8003\u663E\u793A\uFF1A{0}" },
|
|
912
927
|
tasksRunning: { en: "Running processes ({0}):", zh: "\u8FD0\u884C\u4E2D\u7684\u8FDB\u7A0B\uFF08{0}\uFF09\uFF1A" },
|
|
913
928
|
tasksStopped: { en: "Stopped/exited ({0}):", zh: "\u5DF2\u505C\u6B62/\u5DF2\u9000\u51FA\uFF08{0}\uFF09\uFF1A" },
|
|
914
929
|
tasksNone: { en: "No processes.", zh: "\u6CA1\u6709\u8FD0\u884C\u4E2D\u7684\u8FDB\u7A0B\u3002" },
|
|
@@ -17,8 +17,8 @@ import "./chunk-EKLRRZIN.js";
|
|
|
17
17
|
import "./chunk-KQHGZWSV.js";
|
|
18
18
|
import "./chunk-JIADXJYU.js";
|
|
19
19
|
import "./chunk-URMS4XY2.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-VOXNBPLB.js";
|
|
21
|
+
import "./chunk-MZZZYUZS.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
23
|
import "./chunk-64KIQZA2.js";
|
|
24
24
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -28,8 +28,8 @@ import "./chunk-EKLRRZIN.js";
|
|
|
28
28
|
import "./chunk-VF4K2QE6.js";
|
|
29
29
|
import "./chunk-AETZ7AD6.js";
|
|
30
30
|
import "./chunk-KHCLMKZZ.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-VOXNBPLB.js";
|
|
32
|
+
import "./chunk-MZZZYUZS.js";
|
|
33
33
|
import "./chunk-ZNFJWEN4.js";
|
|
34
34
|
import "./chunk-64KIQZA2.js";
|
|
35
35
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -21,8 +21,8 @@ import "./chunk-KQHGZWSV.js";
|
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
22
|
import "./chunk-AETZ7AD6.js";
|
|
23
23
|
import "./chunk-KHCLMKZZ.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VOXNBPLB.js";
|
|
25
|
+
import "./chunk-MZZZYUZS.js";
|
|
26
26
|
import "./chunk-ZNFJWEN4.js";
|
|
27
27
|
import "./chunk-64KIQZA2.js";
|
|
28
28
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -16,8 +16,8 @@ import "./chunk-EKLRRZIN.js";
|
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
17
|
import "./chunk-AETZ7AD6.js";
|
|
18
18
|
import "./chunk-KHCLMKZZ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-VOXNBPLB.js";
|
|
20
|
+
import "./chunk-MZZZYUZS.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-64KIQZA2.js";
|
|
23
23
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
resolvePageSkillMetadata
|
|
31
31
|
} from "./chunk-AETZ7AD6.js";
|
|
32
32
|
import "./chunk-KHCLMKZZ.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-VOXNBPLB.js";
|
|
34
|
+
import "./chunk-MZZZYUZS.js";
|
|
35
35
|
import "./chunk-ZNFJWEN4.js";
|
|
36
36
|
import "./chunk-64KIQZA2.js";
|
|
37
37
|
import "./chunk-T27IEBNQ.js";
|
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-5LLSNUAJ.js");
|
|
131
131
|
return runAgentRunCommand(args2, {
|
|
132
132
|
env: ctx.env,
|
|
133
133
|
scriptDir: ctx.scriptDir,
|
|
@@ -139,11 +139,11 @@ function getAgentInternalCommandEntries() {
|
|
|
139
139
|
createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
|
|
140
140
|
createAgentRunCommand(["chat"], "Chat with an agent"),
|
|
141
141
|
createEnvCommand(["agent", "list"], "List owned agents", async (args2, deps) => {
|
|
142
|
-
const { runAgentListCommand } = await import("./agentListCommands-
|
|
142
|
+
const { runAgentListCommand } = await import("./agentListCommands-R7TKN3DL.js");
|
|
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-ZHH7KRWS.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-ZHH7KRWS.js");
|
|
159
159
|
return runAgentReadCommand(args2, deps);
|
|
160
160
|
}),
|
|
161
161
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -193,31 +193,31 @@ function getAgentInternalCommandEntries() {
|
|
|
193
193
|
return runSetupOfflineMarxistsAgentCommand(args2, deps);
|
|
194
194
|
}),
|
|
195
195
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
|
|
196
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
196
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-ZHH7KRWS.js");
|
|
197
197
|
return runAgentUpdateCommand(args2, deps);
|
|
198
198
|
}),
|
|
199
199
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
|
|
200
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
200
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-C6G4F4JL.js");
|
|
201
201
|
return runAgentEmailProvisionCommand(args2, deps);
|
|
202
202
|
}),
|
|
203
203
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
|
|
204
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
204
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-C6G4F4JL.js");
|
|
205
205
|
return runAgentEmailBindCommand(args2, deps);
|
|
206
206
|
}),
|
|
207
207
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
|
|
208
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
208
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-C6G4F4JL.js");
|
|
209
209
|
return runAgentEmailTransferCommand(args2, deps);
|
|
210
210
|
}),
|
|
211
211
|
createEnvCommand(
|
|
212
212
|
["agent", "email", "create-and-provision"],
|
|
213
213
|
"Create an agent and provision its controlled inbox",
|
|
214
214
|
async (args2, deps) => {
|
|
215
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
215
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-C6G4F4JL.js");
|
|
216
216
|
return runAgentEmailCreateAndProvisionCommand(args2, deps);
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
219
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args2, deps) => {
|
|
220
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
220
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-6XYC7JVL.js");
|
|
221
221
|
return runAgentDeleteCommand(args2, deps);
|
|
222
222
|
}),
|
|
223
223
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args2, deps) => {
|
|
@@ -233,15 +233,15 @@ function getAgentInternalCommandEntries() {
|
|
|
233
233
|
return runAgentRevokeGrantCommand(args2, deps);
|
|
234
234
|
}),
|
|
235
235
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
|
|
236
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
236
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-JGA4C6ZZ.js");
|
|
237
237
|
return runAgentBindCurrentCommand(args2, deps);
|
|
238
238
|
}),
|
|
239
239
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
|
|
240
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
240
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-JGA4C6ZZ.js");
|
|
241
241
|
return runAgentSmokeCurrentCommand(args2, deps);
|
|
242
242
|
}),
|
|
243
243
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
|
|
244
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
244
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-JGA4C6ZZ.js");
|
|
245
245
|
return runAgentRuntimeDoctorCommand(args2, deps);
|
|
246
246
|
}),
|
|
247
247
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -252,23 +252,23 @@ function getAgentInternalCommandEntries() {
|
|
|
252
252
|
function getAppInternalCommandEntries() {
|
|
253
253
|
return [
|
|
254
254
|
createEnvCommand(["app", "list"], "List your apps", async (args2, deps) => {
|
|
255
|
-
const { runAppListCommand } = await import("./appListCommands-
|
|
255
|
+
const { runAppListCommand } = await import("./appListCommands-DK2JJ65T.js");
|
|
256
256
|
return runAppListCommand(args2, deps);
|
|
257
257
|
}),
|
|
258
258
|
createEnvCommand(["app", "get"], "Get app details", async (args2, deps) => {
|
|
259
|
-
const { runAppGetCommand } = await import("./appGetCommands-
|
|
259
|
+
const { runAppGetCommand } = await import("./appGetCommands-4RIFLLZZ.js");
|
|
260
260
|
return runAppGetCommand(args2, deps);
|
|
261
261
|
}),
|
|
262
262
|
createEnvCommand(["app", "deploy"], "Deploy an app", async (args2, deps) => {
|
|
263
|
-
const { runAppDeployCommand } = await import("./appDeployCommands-
|
|
263
|
+
const { runAppDeployCommand } = await import("./appDeployCommands-ZNMFUV2K.js");
|
|
264
264
|
return runAppDeployCommand(args2, deps);
|
|
265
265
|
}),
|
|
266
266
|
createEnvCommand(["app", "deploy", "status"], "Check app deploy status", async (args2, deps) => {
|
|
267
|
-
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-
|
|
267
|
+
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-G5FIZT64.js");
|
|
268
268
|
return runAppDeployStatusCommand(args2, deps);
|
|
269
269
|
}),
|
|
270
270
|
createEnvCommand(["app", "delete"], "Delete an app", async (args2, deps) => {
|
|
271
|
-
const { runAppDeleteCommand } = await import("./appDeleteCommands-
|
|
271
|
+
const { runAppDeleteCommand } = await import("./appDeleteCommands-6SYOAMTR.js");
|
|
272
272
|
return runAppDeleteCommand(args2, deps);
|
|
273
273
|
})
|
|
274
274
|
];
|
|
@@ -278,23 +278,23 @@ function getAppInternalCommandEntries() {
|
|
|
278
278
|
function getDialogInternalCommandEntries() {
|
|
279
279
|
return [
|
|
280
280
|
createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args2, deps) => {
|
|
281
|
-
const { runDialogListCommand } = await import("./dialogCommands-
|
|
281
|
+
const { runDialogListCommand } = await import("./dialogCommands-SSQLOBRU.js");
|
|
282
282
|
return runDialogListCommand(args2, deps);
|
|
283
283
|
}),
|
|
284
284
|
createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args2, deps) => {
|
|
285
|
-
const { runDialogDeleteCommand } = await import("./dialogCommands-
|
|
285
|
+
const { runDialogDeleteCommand } = await import("./dialogCommands-SSQLOBRU.js");
|
|
286
286
|
return runDialogDeleteCommand(args2, deps);
|
|
287
287
|
}),
|
|
288
288
|
createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args2, deps) => {
|
|
289
|
-
const { runDialogQueryCommand } = await import("./dialogCommands-
|
|
289
|
+
const { runDialogQueryCommand } = await import("./dialogCommands-SSQLOBRU.js");
|
|
290
290
|
return runDialogQueryCommand(args2, deps);
|
|
291
291
|
}),
|
|
292
292
|
createEnvCommand(["dialog", "read"], "Read a dialog", async (args2, deps) => {
|
|
293
|
-
const { runDialogReadCommand } = await import("./dialogCommands-
|
|
293
|
+
const { runDialogReadCommand } = await import("./dialogCommands-SSQLOBRU.js");
|
|
294
294
|
return runDialogReadCommand(args2, deps);
|
|
295
295
|
}),
|
|
296
296
|
createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args2, deps) => {
|
|
297
|
-
const { runDialogStatusCommand } = await import("./dialogCommands-
|
|
297
|
+
const { runDialogStatusCommand } = await import("./dialogCommands-SSQLOBRU.js");
|
|
298
298
|
return runDialogStatusCommand(args2, deps);
|
|
299
299
|
})
|
|
300
300
|
];
|
|
@@ -304,39 +304,39 @@ function getDialogInternalCommandEntries() {
|
|
|
304
304
|
function getDocInternalCommandEntries() {
|
|
305
305
|
return [
|
|
306
306
|
createEnvCommand(["doc", "create"], "Create a normal doc", async (args2, deps) => {
|
|
307
|
-
const { runDocCreateCommand } = await import("./docCreateCommands-
|
|
307
|
+
const { runDocCreateCommand } = await import("./docCreateCommands-WYP6MQ56.js");
|
|
308
308
|
return runDocCreateCommand(args2, deps);
|
|
309
309
|
}),
|
|
310
310
|
createEnvCommand(["doc", "read"], "Read a normal doc", async (args2, deps) => {
|
|
311
|
-
const { runDocReadCommand } = await import("./docReadCommands-
|
|
311
|
+
const { runDocReadCommand } = await import("./docReadCommands-PFJMIPYU.js");
|
|
312
312
|
return runDocReadCommand(args2, deps);
|
|
313
313
|
}),
|
|
314
314
|
createEnvCommand(["doc", "update"], "Update a normal doc", async (args2, deps) => {
|
|
315
|
-
const { runDocUpdateCommand } = await import("./docUpdateCommands-
|
|
315
|
+
const { runDocUpdateCommand } = await import("./docUpdateCommands-KAP6JSGT.js");
|
|
316
316
|
return runDocUpdateCommand(args2, deps);
|
|
317
317
|
}),
|
|
318
318
|
createEnvCommand(["doc", "delete"], "Delete a normal doc", async (args2, deps) => {
|
|
319
|
-
const { runDocDeleteCommand } = await import("./docDeleteCommands-
|
|
319
|
+
const { runDocDeleteCommand } = await import("./docDeleteCommands-6YNU4LZ7.js");
|
|
320
320
|
return runDocDeleteCommand(args2, deps);
|
|
321
321
|
}),
|
|
322
322
|
createEnvCommand(["skill-doc", "create"], "Create a skill-backed doc", async (args2, deps) => {
|
|
323
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
323
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-WYP6MQ56.js");
|
|
324
324
|
return runSkillDocCreateCommand(args2, deps);
|
|
325
325
|
}),
|
|
326
326
|
createEnvCommand(["skill", "create-doc"], "Create a skill-backed doc", async (args2, deps) => {
|
|
327
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
327
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-WYP6MQ56.js");
|
|
328
328
|
return runSkillDocCreateCommand(args2, deps);
|
|
329
329
|
}),
|
|
330
330
|
createEnvCommand(["skill-doc", "read"], "Read a skill doc", async (args2, deps) => {
|
|
331
|
-
const { runSkillDocReadCommand } = await import("./docReadCommands-
|
|
331
|
+
const { runSkillDocReadCommand } = await import("./docReadCommands-PFJMIPYU.js");
|
|
332
332
|
return runSkillDocReadCommand(args2, deps);
|
|
333
333
|
}),
|
|
334
334
|
createEnvCommand(["skill-doc", "update"], "Update a skill doc", async (args2, deps) => {
|
|
335
|
-
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-
|
|
335
|
+
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-KAP6JSGT.js");
|
|
336
336
|
return runSkillDocUpdateCommand(args2, deps);
|
|
337
337
|
}),
|
|
338
338
|
createEnvCommand(["skill-doc", "delete"], "Delete a skill doc", async (args2, deps) => {
|
|
339
|
-
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-
|
|
339
|
+
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-6YNU4LZ7.js");
|
|
340
340
|
return runSkillDocDeleteCommand(args2, deps);
|
|
341
341
|
})
|
|
342
342
|
];
|
|
@@ -364,19 +364,19 @@ function getMemoryInternalCommandEntries() {
|
|
|
364
364
|
function getSpaceInternalCommandEntries() {
|
|
365
365
|
return [
|
|
366
366
|
createEnvCommand(["space", "create"], "Create a space", async (args2, deps) => {
|
|
367
|
-
const { runSpaceCreateCommand } = await import("./spaceCommands-
|
|
367
|
+
const { runSpaceCreateCommand } = await import("./spaceCommands-VHOKUADK.js");
|
|
368
368
|
return runSpaceCreateCommand(args2, deps);
|
|
369
369
|
}),
|
|
370
370
|
createEnvCommand(["space", "invite"], "Invite an existing user to a space", async (args2, deps) => {
|
|
371
|
-
const { runSpaceInviteCommand } = await import("./spaceCommands-
|
|
371
|
+
const { runSpaceInviteCommand } = await import("./spaceCommands-VHOKUADK.js");
|
|
372
372
|
return runSpaceInviteCommand(args2, deps);
|
|
373
373
|
}),
|
|
374
374
|
createEnvCommand(["space", "accept-invite"], "Accept a space invite", async (args2, deps) => {
|
|
375
|
-
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-
|
|
375
|
+
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-VHOKUADK.js");
|
|
376
376
|
return runSpaceAcceptInviteCommand(args2, deps);
|
|
377
377
|
}),
|
|
378
378
|
createEnvCommand(["space", "upload"], "Upload a file to a space", async (args2, deps) => {
|
|
379
|
-
const { runSpaceUploadCommand } = await import("./spaceCommands-
|
|
379
|
+
const { runSpaceUploadCommand } = await import("./spaceCommands-VHOKUADK.js");
|
|
380
380
|
return runSpaceUploadCommand(args2, deps);
|
|
381
381
|
})
|
|
382
382
|
];
|
|
@@ -426,15 +426,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
426
426
|
return runWhoamiCommand({ args: args2, env: ctx.env });
|
|
427
427
|
}),
|
|
428
428
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
|
|
429
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
429
|
+
const { runMachineConnectCommand } = await import("./machineCommands-FSLAJSUC.js");
|
|
430
430
|
return runMachineConnectCommand(args2, deps);
|
|
431
431
|
}),
|
|
432
432
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
|
|
433
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
433
|
+
const { runMachineConnectCommand } = await import("./machineCommands-FSLAJSUC.js");
|
|
434
434
|
return runMachineConnectCommand(args2, deps);
|
|
435
435
|
}),
|
|
436
436
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
|
|
437
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
437
|
+
const { runMachineStatusCommand } = await import("./machineCommands-FSLAJSUC.js");
|
|
438
438
|
return runMachineStatusCommand(args2, deps);
|
|
439
439
|
}),
|
|
440
440
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
|
|
@@ -824,8 +824,8 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
824
824
|
return proc.exited;
|
|
825
825
|
}
|
|
826
826
|
async function launchTuiWorkspace(args2) {
|
|
827
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
828
|
-
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-
|
|
827
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-HGR75YT3.js");
|
|
828
|
+
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-SHRB4RWM.js");
|
|
829
829
|
return startTuiWorkspace({
|
|
830
830
|
...args2,
|
|
831
831
|
summaryLlmCaller: createTuiSummaryLlmCaller(args2.env)
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-55U32YAP.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
9
9
|
resolveConnectorWebSocketTarget
|
|
10
10
|
} from "./chunk-MQRZ5QUH.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QKCJPJNO.js";
|
|
12
12
|
import "./chunk-IZNJDUJ4.js";
|
|
13
13
|
import "./chunk-6XG52ZQ6.js";
|
|
14
14
|
import "./chunk-J5NMOM35.js";
|
|
@@ -57,8 +57,8 @@ import "./chunk-2KO5QQFV.js";
|
|
|
57
57
|
import "./chunk-IIOHYLIG.js";
|
|
58
58
|
import "./chunk-AETZ7AD6.js";
|
|
59
59
|
import "./chunk-KHCLMKZZ.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-VOXNBPLB.js";
|
|
61
|
+
import "./chunk-MZZZYUZS.js";
|
|
62
62
|
import "./chunk-ZNFJWEN4.js";
|
|
63
63
|
import "./chunk-64KIQZA2.js";
|
|
64
64
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-55U32YAP.js";
|
|
15
|
+
import "./chunk-QKCJPJNO.js";
|
|
16
16
|
import "./chunk-IZNJDUJ4.js";
|
|
17
17
|
import "./chunk-6XG52ZQ6.js";
|
|
18
18
|
import "./chunk-J5NMOM35.js";
|
|
@@ -56,8 +56,8 @@ import "./chunk-2KO5QQFV.js";
|
|
|
56
56
|
import "./chunk-IIOHYLIG.js";
|
|
57
57
|
import "./chunk-AETZ7AD6.js";
|
|
58
58
|
import "./chunk-KHCLMKZZ.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-VOXNBPLB.js";
|
|
60
|
+
import "./chunk-MZZZYUZS.js";
|
|
61
61
|
import "./chunk-ZNFJWEN4.js";
|
|
62
62
|
import "./chunk-64KIQZA2.js";
|
|
63
63
|
import "./chunk-T27IEBNQ.js";
|
package/package.json
CHANGED
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
wrapTextToLines,
|
|
77
77
|
wrapTranscriptLine,
|
|
78
78
|
wrapTranscriptLineWithLayout
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-PEEWLG6V.js";
|
|
80
80
|
import "./chunk-IMHO5LC6.js";
|
|
81
81
|
import "./chunk-4AWH4LQA.js";
|
|
82
82
|
import {
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
readTimestamp,
|
|
87
87
|
setCliLocale,
|
|
88
88
|
t
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-QKCJPJNO.js";
|
|
90
90
|
import "./chunk-IZNJDUJ4.js";
|
|
91
91
|
import "./chunk-6XG52ZQ6.js";
|
|
92
92
|
import {
|
|
@@ -179,8 +179,8 @@ import {
|
|
|
179
179
|
buildLocalWorkspaceToolset,
|
|
180
180
|
getProcessRegistry,
|
|
181
181
|
readCommandActionGatePayload
|
|
182
|
-
} from "./chunk-
|
|
183
|
-
import "./chunk-
|
|
182
|
+
} from "./chunk-VOXNBPLB.js";
|
|
183
|
+
import "./chunk-MZZZYUZS.js";
|
|
184
184
|
import "./chunk-ZNFJWEN4.js";
|
|
185
185
|
import "./chunk-64KIQZA2.js";
|
|
186
186
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -1515,13 +1515,18 @@ function renderFooter(multiSelect, colorEnabled) {
|
|
|
1515
1515
|
function otherRowPrefix(index) {
|
|
1516
1516
|
return ` [${index + 1}] ${t("askChoiceOtherLabel")}: `;
|
|
1517
1517
|
}
|
|
1518
|
-
function renderAskChoiceFrame(state) {
|
|
1518
|
+
function renderAskChoiceFrame(state, options) {
|
|
1519
1519
|
const colorEnabled = resolveCliColorEnabled();
|
|
1520
1520
|
const q = state.questions[state.activeIndex];
|
|
1521
1521
|
const qs = state.questionStates[state.activeIndex];
|
|
1522
1522
|
const lines = [];
|
|
1523
1523
|
let otherCursor = null;
|
|
1524
1524
|
lines.push(renderDialogTitle(t("askChoiceTitle")));
|
|
1525
|
+
if (options?.bottomAnchored) {
|
|
1526
|
+
lines.push(
|
|
1527
|
+
colorEnabled ? themeText(` ${t("askChoiceScrollHint")}`, "muted", colorEnabled) : ` ${t("askChoiceScrollHint")}`
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1525
1530
|
lines.push("");
|
|
1526
1531
|
if (state.questions.length > 1) {
|
|
1527
1532
|
lines.push(renderTabBar(state.questions, state.activeIndex, colorEnabled));
|
|
@@ -1620,19 +1625,25 @@ async function runAskChoiceDialog(args) {
|
|
|
1620
1625
|
unanchoredCursorLift = 0;
|
|
1621
1626
|
};
|
|
1622
1627
|
const paint = () => {
|
|
1623
|
-
const frame = renderAskChoiceFrame(state);
|
|
1628
|
+
const frame = renderAskChoiceFrame(state, { bottomAnchored });
|
|
1624
1629
|
const lines = frame.text.split("\n");
|
|
1625
1630
|
const lineCount = lines.length;
|
|
1626
1631
|
const canPosition = outputIsTty(output) && typeof output.write === "function";
|
|
1627
1632
|
if (bottomAnchored && canPosition) {
|
|
1628
1633
|
const anchorRow = resolveBottomRow();
|
|
1634
|
+
const ttyRows = typeof output === "object" && output !== null && "rows" in output && typeof output.rows === "number" ? output.rows : 24;
|
|
1629
1635
|
if (!scrolledHeadroom) {
|
|
1630
|
-
const ttyRows = typeof output === "object" && output !== null && "rows" in output && typeof output.rows === "number" ? output.rows : 24;
|
|
1631
1636
|
const scrollN = Math.min(lineCount, Math.max(0, ttyRows - 1));
|
|
1632
1637
|
if (scrollN > 0) {
|
|
1633
1638
|
output.write(`\x1B[${scrollN}S`);
|
|
1634
1639
|
}
|
|
1635
1640
|
scrolledHeadroom = true;
|
|
1641
|
+
} else if (lineCount > renderedLineCount) {
|
|
1642
|
+
const delta = lineCount - renderedLineCount;
|
|
1643
|
+
const scrollN = Math.min(delta, Math.max(0, ttyRows - 1));
|
|
1644
|
+
if (scrollN > 0) {
|
|
1645
|
+
output.write(`\x1B[${scrollN}S`);
|
|
1646
|
+
}
|
|
1636
1647
|
}
|
|
1637
1648
|
clearAnchoredLines(
|
|
1638
1649
|
output,
|
|
@@ -1660,6 +1671,11 @@ async function runAskChoiceDialog(args) {
|
|
|
1660
1671
|
for (let i = 0; i < renderedLineCount; i++) {
|
|
1661
1672
|
output.write("\x1B[1A\x1B[2K");
|
|
1662
1673
|
}
|
|
1674
|
+
if (renderedLineCount > 0 && lineCount > renderedLineCount) {
|
|
1675
|
+
const delta = lineCount - renderedLineCount;
|
|
1676
|
+
output.write("\n".repeat(delta));
|
|
1677
|
+
output.write(`\x1B[${delta}A`);
|
|
1678
|
+
}
|
|
1663
1679
|
output.write(`${frame.text}
|
|
1664
1680
|
`);
|
|
1665
1681
|
renderedLineCount = lineCount;
|
|
@@ -1713,12 +1729,12 @@ async function runAskChoiceDialog(args) {
|
|
|
1713
1729
|
const qs = state.questionStates[state.activeIndex];
|
|
1714
1730
|
const q = state.questions[state.activeIndex];
|
|
1715
1731
|
const isOtherRow = qs.cursorIndex >= q.choices.length;
|
|
1716
|
-
if (
|
|
1717
|
-
action = { type: "
|
|
1732
|
+
if (sequence === CSI_SHIFT_TAB) {
|
|
1733
|
+
action = { type: "PREV_TAB" };
|
|
1718
1734
|
} else if (sequence === CSI_TAB) {
|
|
1719
1735
|
action = { type: "NEXT_TAB" };
|
|
1720
|
-
} else if (sequence
|
|
1721
|
-
action = { type: "
|
|
1736
|
+
} else if (isCancel(sequence)) {
|
|
1737
|
+
action = { type: "CANCEL" };
|
|
1722
1738
|
} else if (isArrowUp(sequence)) {
|
|
1723
1739
|
action = { type: "MOVE_CURSOR", delta: -1 };
|
|
1724
1740
|
} else if (isArrowDown(sequence)) {
|
|
@@ -5081,6 +5097,7 @@ var SLASH_COMMANDS = [
|
|
|
5081
5097
|
"/ctx",
|
|
5082
5098
|
"/runtime",
|
|
5083
5099
|
"/tools",
|
|
5100
|
+
"/thinking",
|
|
5084
5101
|
"/auto",
|
|
5085
5102
|
"/switch",
|
|
5086
5103
|
"/agent",
|
|
@@ -5177,6 +5194,7 @@ function createInitialTuiState(env = process.env) {
|
|
|
5177
5194
|
userLanguage: asOptionalTrimmedString(env.NOLO_LANG),
|
|
5178
5195
|
gitStatus: void 0,
|
|
5179
5196
|
toolDisplay: normalizeToolDisplayMode(env.NOLO_CLI_TOOLS ?? env.NOLO_TOOLS, "compact"),
|
|
5197
|
+
thinkingDisplay: "show",
|
|
5180
5198
|
contextWindow: resolveAgentContextWindow({ agentKey, agentName }),
|
|
5181
5199
|
estimatedContextTokens: estimateDefaultCliContextTokens({
|
|
5182
5200
|
cwd,
|
|
@@ -5357,6 +5375,25 @@ function handleTuiInput(input, state) {
|
|
|
5357
5375
|
output: t("toolsSet", nextMode)
|
|
5358
5376
|
};
|
|
5359
5377
|
}
|
|
5378
|
+
case "/thinking": {
|
|
5379
|
+
const normalizedArg = asTrimmedLowercaseString(argText);
|
|
5380
|
+
if (!normalizedArg) {
|
|
5381
|
+
return {
|
|
5382
|
+
nextState: state,
|
|
5383
|
+
output: t("thinkingCurrent", state.thinkingDisplay)
|
|
5384
|
+
};
|
|
5385
|
+
}
|
|
5386
|
+
if (normalizedArg !== "show" && normalizedArg !== "hide") {
|
|
5387
|
+
return {
|
|
5388
|
+
nextState: state,
|
|
5389
|
+
output: t("thinkingUsage")
|
|
5390
|
+
};
|
|
5391
|
+
}
|
|
5392
|
+
return {
|
|
5393
|
+
nextState: { ...state, thinkingDisplay: normalizedArg },
|
|
5394
|
+
output: t("thinkingSet", normalizedArg)
|
|
5395
|
+
};
|
|
5396
|
+
}
|
|
5360
5397
|
case "/auto": {
|
|
5361
5398
|
const normalizedArg = asTrimmedLowercaseString(argText);
|
|
5362
5399
|
if (!normalizedArg) {
|
|
@@ -6777,6 +6814,7 @@ async function runAgentChat(scriptDir, state, message, env, output, agentRunner
|
|
|
6777
6814
|
NOLO_CLI_TOOLS: state.toolDisplay
|
|
6778
6815
|
},
|
|
6779
6816
|
output,
|
|
6817
|
+
showThinking: state.thinkingDisplay === "show",
|
|
6780
6818
|
...options.imageUrls && options.imageUrls.length > 0 ? { imageUrls: options.imageUrls } : {},
|
|
6781
6819
|
...options.actionGateHandler ? { actionGateHandler: options.actionGateHandler } : {},
|
|
6782
6820
|
...options.confirmDestructiveAction ? { confirmDestructiveAction: options.confirmDestructiveAction } : {},
|
|
@@ -8484,7 +8522,7 @@ ${merged}` : merged;
|
|
|
8484
8522
|
if (busyLock) {
|
|
8485
8523
|
const trimmedText = submittedText.trim();
|
|
8486
8524
|
const busySlashCommand = trimmedText.split(/\s+/)[0]?.toLowerCase();
|
|
8487
|
-
const isBusyLocalSlash = busySlashCommand === "/context" || busySlashCommand === "/ctx" || busySlashCommand === "/switch" || busySlashCommand === "/theme" || busySlashCommand === "/density" || busySlashCommand === "/runtime" || busySlashCommand === "/tools" || busySlashCommand === "/auto" || busySlashCommand === "/tasks" || busySlashCommand === "/jobs" || busySlashCommand === "/procs" || busySlashCommand === "/agents" || busySlashCommand === "/doc" || busySlashCommand === "/skill" || busySlashCommand === "/customize" || busySlashCommand === "/login" || busySlashCommand === "/profile" || busySlashCommand === "/version";
|
|
8525
|
+
const isBusyLocalSlash = busySlashCommand === "/context" || busySlashCommand === "/ctx" || busySlashCommand === "/switch" || busySlashCommand === "/theme" || busySlashCommand === "/density" || busySlashCommand === "/runtime" || busySlashCommand === "/tools" || busySlashCommand === "/thinking" || busySlashCommand === "/auto" || busySlashCommand === "/tasks" || busySlashCommand === "/jobs" || busySlashCommand === "/procs" || busySlashCommand === "/agents" || busySlashCommand === "/doc" || busySlashCommand === "/skill" || busySlashCommand === "/customize" || busySlashCommand === "/login" || busySlashCommand === "/profile" || busySlashCommand === "/version";
|
|
8488
8526
|
if (isBusyLocalSlash) {
|
|
8489
8527
|
releaseCollapsedPasteReferences(submittedText, pasteStore);
|
|
8490
8528
|
buffer = "";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
import "./chunk-J5NMOM35.js";
|
|
9
9
|
import "./chunk-EKLRRZIN.js";
|
|
10
10
|
import "./chunk-KQHGZWSV.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VOXNBPLB.js";
|
|
12
|
+
import "./chunk-MZZZYUZS.js";
|
|
13
13
|
import "./chunk-ZNFJWEN4.js";
|
|
14
14
|
import "./chunk-64KIQZA2.js";
|
|
15
15
|
import "./chunk-T27IEBNQ.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
canUsePlatformChatProvider,
|
|
7
7
|
parsePlatformChatCompletionResponse,
|
|
8
8
|
resolvePlatformChatProviderConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MZZZYUZS.js";
|
|
10
10
|
import "./chunk-T27IEBNQ.js";
|
|
11
11
|
import "./chunk-N7J63Q6C.js";
|
|
12
12
|
import "./chunk-BMB563Y6.js";
|