@ai-setting/roy-agent-core 1.7.30 → 1.7.32

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.
@@ -539,8 +539,9 @@ class TaskComponent extends BaseComponent {
539
539
  };
540
540
  await this.executeHook(TaskHookPoints.OPERATION_BEFORE_CREATE, createCtx);
541
541
  const op = await this.store.createOperation(createCtx.options);
542
+ const task = await this.store.getTask(op.taskId);
542
543
  const resultCtx = { operation: op };
543
- await this.executeHook(TaskHookPoints.OPERATION_AFTER_CREATE, resultCtx);
544
+ await this.executeHook(TaskHookPoints.OPERATION_AFTER_CREATE, resultCtx, { task, operation: op });
544
545
  this.publishEvent(TaskEntityEventTypes.OPERATION_ADDED, { operation: op, taskId: op.taskId }, op.sessionId);
545
546
  logger2.info(`[TaskComponent] Operation created: ${op.id} for task ${op.taskId}`);
546
547
  return op;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-core",
3
- "version": "1.7.30",
3
+ "version": "1.7.32",
4
4
  "type": "module",
5
5
  "description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
6
6
  "main": "./dist/index.js",