@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.
- package/dist/env/event-source/index.js +2 -2
- package/dist/env/index.js +4 -4
- package/dist/env/task/index.js +1 -1
- package/dist/env/task/plugins/index.js +5 -1
- package/dist/index.js +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-91rzfw8d.js → roy-agent-core-4csc7ars.js} +126 -31
- package/dist/shared/@ai-setting/{roy-agent-core-62mfe44h.js → roy-agent-core-4t6m600m.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-9z6gcy77.js +1520 -0
- package/dist/shared/@ai-setting/{roy-agent-core-pp140n9r.js → roy-agent-core-m09a4xwh.js} +2 -1
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-h4h6n9vk.js +0 -801
|
@@ -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;
|