@ai-setting/roy-agent-cli 1.5.58 → 1.5.59

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.
@@ -207,8 +207,9 @@ ${COLORS.system("[已中断]")}
207
207
  process.stdout.write(COLORS.reasoning(delta));
208
208
  return;
209
209
  }
210
- if (this.reasoningClosedByText)
211
- return;
210
+ if (this.reasoningClosedByText) {
211
+ this.reasoningClosedByText = false;
212
+ }
212
213
  this.reasoningBuffer += delta;
213
214
  if (this.reasoningBuffer.length >= 15) {
214
215
  this.flushReasoningBuffer();
@@ -7319,7 +7320,7 @@ var require_dist = __commonJS((exports) => {
7319
7320
  var require_package = __commonJS((exports, module) => {
7320
7321
  module.exports = {
7321
7322
  name: "@ai-setting/roy-agent-cli",
7322
- version: "1.5.58",
7323
+ version: "1.5.59",
7323
7324
  type: "module",
7324
7325
  description: "CLI for roy-agent - Non-interactive command execution",
7325
7326
  main: "./dist/index.js",
@@ -7346,7 +7347,7 @@ var require_package = __commonJS((exports, module) => {
7346
7347
  },
7347
7348
  dependencies: {
7348
7349
  "@ai-setting/roy-agent-coder-harness": "^1.5.48",
7349
- "@ai-setting/roy-agent-core": "^1.5.57",
7350
+ "@ai-setting/roy-agent-core": "^1.5.58",
7350
7351
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
7351
7352
  chalk: "^5.6.2",
7352
7353
  commander: "^14.0.3",
@@ -8842,6 +8843,9 @@ class QueryExecutor {
8842
8843
  getFullText() {
8843
8844
  return this.streamService?.getFullText() ?? "";
8844
8845
  }
8846
+ resetStream() {
8847
+ this.streamService?.reset();
8848
+ }
8845
8849
  async compact(sessionId) {
8846
8850
  try {
8847
8851
  const envCore = this.env.getComponent("core");
@@ -8949,7 +8953,12 @@ class EventMessageFormatter {
8949
8953
  const desc = payload.description || "未命名任务";
8950
8954
  const progress = payload.progress !== undefined ? `${payload.progress}%` : "";
8951
8955
  const message = payload.progressMessage || "";
8952
- let result = `${this.prefix} \uD83D\uDD04 后台任务「${desc}」进度更新`;
8956
+ const taskId = payload.associatedTaskId;
8957
+ let result = `${this.prefix} \uD83D\uDD04 后台任务「${desc}」`;
8958
+ if (taskId !== undefined) {
8959
+ result += `[Task #${taskId}] `;
8960
+ }
8961
+ result += `进度更新`;
8953
8962
  if (progress)
8954
8963
  result += `: ${progress}`;
8955
8964
  if (message)
package/dist/index.js CHANGED
@@ -206,8 +206,9 @@ ${COLORS.system("[已中断]")}
206
206
  process.stdout.write(COLORS.reasoning(delta));
207
207
  return;
208
208
  }
209
- if (this.reasoningClosedByText)
210
- return;
209
+ if (this.reasoningClosedByText) {
210
+ this.reasoningClosedByText = false;
211
+ }
211
212
  this.reasoningBuffer += delta;
212
213
  if (this.reasoningBuffer.length >= 15) {
213
214
  this.flushReasoningBuffer();
@@ -7318,7 +7319,7 @@ var require_dist = __commonJS((exports) => {
7318
7319
  var require_package = __commonJS((exports, module) => {
7319
7320
  module.exports = {
7320
7321
  name: "@ai-setting/roy-agent-cli",
7321
- version: "1.5.58",
7322
+ version: "1.5.59",
7322
7323
  type: "module",
7323
7324
  description: "CLI for roy-agent - Non-interactive command execution",
7324
7325
  main: "./dist/index.js",
@@ -7345,7 +7346,7 @@ var require_package = __commonJS((exports, module) => {
7345
7346
  },
7346
7347
  dependencies: {
7347
7348
  "@ai-setting/roy-agent-coder-harness": "^1.5.48",
7348
- "@ai-setting/roy-agent-core": "^1.5.57",
7349
+ "@ai-setting/roy-agent-core": "^1.5.58",
7349
7350
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
7350
7351
  chalk: "^5.6.2",
7351
7352
  commander: "^14.0.3",
@@ -8841,6 +8842,9 @@ class QueryExecutor {
8841
8842
  getFullText() {
8842
8843
  return this.streamService?.getFullText() ?? "";
8843
8844
  }
8845
+ resetStream() {
8846
+ this.streamService?.reset();
8847
+ }
8844
8848
  async compact(sessionId) {
8845
8849
  try {
8846
8850
  const envCore = this.env.getComponent("core");
@@ -8948,7 +8952,12 @@ class EventMessageFormatter {
8948
8952
  const desc = payload.description || "未命名任务";
8949
8953
  const progress = payload.progress !== undefined ? `${payload.progress}%` : "";
8950
8954
  const message = payload.progressMessage || "";
8951
- let result = `${this.prefix} \uD83D\uDD04 后台任务「${desc}」进度更新`;
8955
+ const taskId = payload.associatedTaskId;
8956
+ let result = `${this.prefix} \uD83D\uDD04 后台任务「${desc}」`;
8957
+ if (taskId !== undefined) {
8958
+ result += `[Task #${taskId}] `;
8959
+ }
8960
+ result += `进度更新`;
8952
8961
  if (progress)
8953
8962
  result += `: ${progress}`;
8954
8963
  if (message)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.5.58",
3
+ "version": "1.5.59",
4
4
  "type": "module",
5
5
  "description": "CLI for roy-agent - Non-interactive command execution",
6
6
  "main": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@ai-setting/roy-agent-coder-harness": "^1.5.48",
30
- "@ai-setting/roy-agent-core": "^1.5.57",
30
+ "@ai-setting/roy-agent-core": "^1.5.58",
31
31
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
32
32
  "chalk": "^5.6.2",
33
33
  "commander": "^14.0.3",