@ai-setting/roy-agent-cli 1.7.3 → 1.7.4
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/dist/bin/roy-agent.js +17 -5
- package/dist/index.js +16 -4
- package/package.json +1 -1
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
package/dist/bin/roy-agent.js
CHANGED
|
@@ -9461,7 +9461,7 @@ class CliQuietModeService {
|
|
|
9461
9461
|
// package.json
|
|
9462
9462
|
var package_default = {
|
|
9463
9463
|
name: "@ai-setting/roy-agent-cli",
|
|
9464
|
-
version: "1.7.
|
|
9464
|
+
version: "1.7.4",
|
|
9465
9465
|
type: "module",
|
|
9466
9466
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9467
9467
|
main: "./dist/index.js",
|
|
@@ -10604,6 +10604,16 @@ async function runActShutdownCleanup(deps) {
|
|
|
10604
10604
|
}
|
|
10605
10605
|
}
|
|
10606
10606
|
|
|
10607
|
+
// src/commands/act-stdout-finalize.ts
|
|
10608
|
+
function finalizeActStdout(args) {
|
|
10609
|
+
const { result, streamService, output } = args;
|
|
10610
|
+
if (!result || result.length === 0)
|
|
10611
|
+
return;
|
|
10612
|
+
if (streamService.getFullText().length > 0)
|
|
10613
|
+
return;
|
|
10614
|
+
output.log(result);
|
|
10615
|
+
}
|
|
10616
|
+
|
|
10607
10617
|
// src/commands/act.ts
|
|
10608
10618
|
function detectWorkspaceRoot(cwd = process.cwd(), runGit = execFileSync) {
|
|
10609
10619
|
try {
|
|
@@ -10936,9 +10946,11 @@ function createActCommand(externalEnvService) {
|
|
|
10936
10946
|
provider.setGlobalContext(undefined);
|
|
10937
10947
|
}
|
|
10938
10948
|
unsubscribe();
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10949
|
+
finalizeActStdout({
|
|
10950
|
+
result,
|
|
10951
|
+
streamService,
|
|
10952
|
+
output
|
|
10953
|
+
});
|
|
10942
10954
|
if (!quiet) {
|
|
10943
10955
|
if (isWorkflowPausedActResult(result)) {
|
|
10944
10956
|
output.warn("工作流已暂停,等待用户输入(见上方 resume 提示)");
|
|
@@ -13007,7 +13019,7 @@ ${COLORS.error("❌ 执行失败: " + error)}
|
|
|
13007
13019
|
}
|
|
13008
13020
|
const mainSessionIdEarly = this.options.sessionId;
|
|
13009
13021
|
const hasActiveDescendant = mainSessionIdEarly ? hasActiveDescendants(this.env, mainSessionIdEarly) : false;
|
|
13010
|
-
logger4.debug(`[Esc] handler entered: isExecuting=${this.isExecuting} hasActiveDescendant=${hasActiveDescendant}
|
|
13022
|
+
logger4.debug(`[Esc] handler entered: isExecuting=${this.isExecuting} hasActiveDescendant=${hasActiveDescendant} lastEscPressTime=${this.lastEscPressTime}`);
|
|
13011
13023
|
const now = Date.now();
|
|
13012
13024
|
const isExecuting = this.isExecuting;
|
|
13013
13025
|
const canCascade = isExecuting || hasActiveDescendant;
|
package/dist/index.js
CHANGED
|
@@ -9460,7 +9460,7 @@ class CliQuietModeService {
|
|
|
9460
9460
|
// package.json
|
|
9461
9461
|
var package_default = {
|
|
9462
9462
|
name: "@ai-setting/roy-agent-cli",
|
|
9463
|
-
version: "1.7.
|
|
9463
|
+
version: "1.7.4",
|
|
9464
9464
|
type: "module",
|
|
9465
9465
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9466
9466
|
main: "./dist/index.js",
|
|
@@ -10603,6 +10603,16 @@ async function runActShutdownCleanup(deps) {
|
|
|
10603
10603
|
}
|
|
10604
10604
|
}
|
|
10605
10605
|
|
|
10606
|
+
// src/commands/act-stdout-finalize.ts
|
|
10607
|
+
function finalizeActStdout(args) {
|
|
10608
|
+
const { result, streamService, output } = args;
|
|
10609
|
+
if (!result || result.length === 0)
|
|
10610
|
+
return;
|
|
10611
|
+
if (streamService.getFullText().length > 0)
|
|
10612
|
+
return;
|
|
10613
|
+
output.log(result);
|
|
10614
|
+
}
|
|
10615
|
+
|
|
10606
10616
|
// src/commands/act.ts
|
|
10607
10617
|
function detectWorkspaceRoot(cwd = process.cwd(), runGit = execFileSync) {
|
|
10608
10618
|
try {
|
|
@@ -10935,9 +10945,11 @@ function createActCommand(externalEnvService) {
|
|
|
10935
10945
|
provider.setGlobalContext(undefined);
|
|
10936
10946
|
}
|
|
10937
10947
|
unsubscribe();
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10948
|
+
finalizeActStdout({
|
|
10949
|
+
result,
|
|
10950
|
+
streamService,
|
|
10951
|
+
output
|
|
10952
|
+
});
|
|
10941
10953
|
if (!quiet) {
|
|
10942
10954
|
if (isWorkflowPausedActResult(result)) {
|
|
10943
10955
|
output.warn("工作流已暂停,等待用户输入(见上方 resume 提示)");
|
package/package.json
CHANGED
|
Binary file
|