@ai-setting/roy-agent-core 1.5.57 → 1.5.58

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/env/index.js CHANGED
@@ -43,9 +43,9 @@ import"../shared/@ai-setting/roy-agent-core-65yjzwv5.js";
43
43
  import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
44
44
  import {
45
45
  TaskComponent
46
- } from "../shared/@ai-setting/roy-agent-core-58yjq16r.js";
46
+ } from "../shared/@ai-setting/roy-agent-core-skaha0yj.js";
47
47
  import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
48
- import"../shared/@ai-setting/roy-agent-core-48jprgqk.js";
48
+ import"../shared/@ai-setting/roy-agent-core-0hhxwz5f.js";
49
49
  import"../shared/@ai-setting/roy-agent-core-w4f871e2.js";
50
50
  import"../shared/@ai-setting/roy-agent-core-nx3c3ce2.js";
51
51
  import {
@@ -3,7 +3,7 @@ import {
3
3
  BackgroundTaskManager,
4
4
  createDelegateTool,
5
5
  createStopTool
6
- } from "../../../shared/@ai-setting/roy-agent-core-48jprgqk.js";
6
+ } from "../../../shared/@ai-setting/roy-agent-core-0hhxwz5f.js";
7
7
  import"../../../shared/@ai-setting/roy-agent-core-nx3c3ce2.js";
8
8
  import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
9
9
  import"../../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
@@ -5,11 +5,11 @@ import {
5
5
  TaskPriorityEnum,
6
6
  TaskStatusEnum,
7
7
  TaskTypeEnum
8
- } from "../../shared/@ai-setting/roy-agent-core-58yjq16r.js";
8
+ } from "../../shared/@ai-setting/roy-agent-core-skaha0yj.js";
9
9
  import {
10
10
  TaskEntityEventTypes
11
11
  } from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
12
- import"../../shared/@ai-setting/roy-agent-core-48jprgqk.js";
12
+ import"../../shared/@ai-setting/roy-agent-core-0hhxwz5f.js";
13
13
  import {
14
14
  SQLiteTaskStore,
15
15
  getDefaultTaskDbPath
package/dist/index.js CHANGED
@@ -127,9 +127,9 @@ import {
127
127
  } from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
128
128
  import {
129
129
  TaskComponent
130
- } from "./shared/@ai-setting/roy-agent-core-58yjq16r.js";
130
+ } from "./shared/@ai-setting/roy-agent-core-skaha0yj.js";
131
131
  import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
132
- import"./shared/@ai-setting/roy-agent-core-48jprgqk.js";
132
+ import"./shared/@ai-setting/roy-agent-core-0hhxwz5f.js";
133
133
  import {
134
134
  SQLiteTaskStore,
135
135
  getDefaultTaskDbPath
@@ -355,7 +355,7 @@ class BackgroundTaskManager {
355
355
  associatedTaskId: task.associatedTaskId
356
356
  };
357
357
  this.publishBackgroundEvent(BackgroundTaskEventTypes.STOPPED, stoppedPayload, parentSessionId || task.parentSessionId);
358
- } else if (errorMessage.includes("timeout")) {
358
+ } else if (errorMessage.startsWith("Task execution timeout after")) {
359
359
  task.status = "timeout";
360
360
  const timeoutPayload = {
361
361
  backgroundTaskId: task.id,
@@ -403,13 +403,18 @@ class BackgroundTaskManager {
403
403
  const elapsedMs = Date.now() - task.startedAt;
404
404
  task.progress = Math.min(95, Math.floor(elapsedMs / PROGRESS_INTERVAL * 100));
405
405
  }
406
+ const currentTaskId = getCurrentTaskId();
407
+ if (currentTaskId !== undefined) {
408
+ task.associatedTaskId = currentTaskId;
409
+ }
406
410
  const progressPayload = {
407
411
  backgroundTaskId: taskId,
408
412
  subSessionId: task.subSessionId,
409
413
  parentSessionId,
410
414
  description: task.description,
411
415
  status: task.status,
412
- progress: task.progress
416
+ progress: task.progress,
417
+ associatedTaskId: task.associatedTaskId
413
418
  };
414
419
  this.publishBackgroundEvent(BackgroundTaskEventTypes.PROGRESS, progressPayload, parentSessionId);
415
420
  }, PROGRESS_INTERVAL);
@@ -5,7 +5,7 @@ import {
5
5
  BackgroundTaskManager,
6
6
  createDelegateTool,
7
7
  createStopTool
8
- } from "./roy-agent-core-48jprgqk.js";
8
+ } from "./roy-agent-core-0hhxwz5f.js";
9
9
  import {
10
10
  SQLiteTaskStore,
11
11
  getDefaultTaskDbPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-core",
3
- "version": "1.5.57",
3
+ "version": "1.5.58",
4
4
  "type": "module",
5
5
  "description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
6
6
  "main": "./dist/index.js",