@ai-setting/roy-agent-cli 1.7.2 → 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.
@@ -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.2",
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
- if (result && result.length > 0) {
10940
- output.log(result);
10941
- }
10949
+ finalizeActStdout({
10950
+ result,
10951
+ streamService,
10952
+ output
10953
+ });
10942
10954
  if (!quiet) {
10943
10955
  if (isWorkflowPausedActResult(result)) {
10944
10956
  output.warn("工作流已暂停,等待用户输入(见上方 resume 提示)");
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.2",
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
- if (result && result.length > 0) {
10939
- output.log(result);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "type": "module",
5
5
  "description": "CLI for roy-agent - Non-interactive command execution",
6
6
  "main": "./dist/index.js",