@ai-setting/roy-agent-core 1.5.6 → 1.5.8

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.
Files changed (27) hide show
  1. package/dist/env/index.d.ts +21 -0
  2. package/dist/env/index.js +10 -9
  3. package/dist/env/llm/index.js +1 -1
  4. package/dist/env/task/delegate/index.d.ts +66 -76
  5. package/dist/env/task/delegate/index.js +4 -4
  6. package/dist/env/task/events/index.d.ts +171 -0
  7. package/dist/env/task/events/index.js +7 -0
  8. package/dist/env/task/hooks/index.d.ts +24 -7
  9. package/dist/env/task/index.d.ts +139 -1
  10. package/dist/env/task/index.js +8 -4
  11. package/dist/env/task/plugins/index.d.ts +4 -0
  12. package/dist/env/task/storage/index.d.ts +17 -0
  13. package/dist/env/task/storage/index.js +1 -1
  14. package/dist/env/task/tools/index.d.ts +21 -0
  15. package/dist/env/task/tools/index.js +1 -1
  16. package/dist/env/task/tools/operation/index.d.ts +21 -0
  17. package/dist/env/workflow/index.js +15 -15
  18. package/dist/index.d.ts +21 -0
  19. package/dist/index.js +14 -13
  20. package/dist/shared/@ai-setting/roy-agent-core-8gxth0eh.js +10 -0
  21. package/dist/shared/@ai-setting/{roy-agent-core-htwpckw9.js → roy-agent-core-bvr1761x.js} +17 -5
  22. package/dist/shared/@ai-setting/{roy-agent-core-n2cvdgd6.js → roy-agent-core-gwc4h96n.js} +28 -7
  23. package/dist/shared/@ai-setting/{roy-agent-core-z62zee1e.js → roy-agent-core-vf215qfv.js} +121 -97
  24. package/dist/shared/@ai-setting/{roy-agent-core-3xwneva0.js → roy-agent-core-vkz81f7v.js} +12 -1
  25. package/dist/shared/@ai-setting/{roy-agent-core-dbsk841j.js → roy-agent-core-wa1kzqky.js} +47 -5
  26. package/package.json +1 -1
  27. package/dist/shared/@ai-setting/{roy-agent-core-dc497hmk.js → roy-agent-core-rhmtwnw1.js} +5 -5
@@ -996,6 +996,10 @@ interface Task {
996
996
  updatedAt: string;
997
997
  due_date?: string;
998
998
  tags?: string[];
999
+ /** Project root path for task positioning */
1000
+ project_path: string;
1001
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
1002
+ context: string;
999
1003
  }
1000
1004
  /**
1001
1005
  * TaskOperation entity
@@ -1034,6 +1038,15 @@ interface CreateTaskOptions {
1034
1038
  due_date?: string;
1035
1039
  tags?: string[];
1036
1040
  sessionId: string;
1041
+ /** Project root path for task positioning. Use 'unknown' if unknown. */
1042
+ project_path: string;
1043
+ /**
1044
+ * JSON string with time-space positioning info.
1045
+ * - For coding tasks: include worktree_path, branch, type
1046
+ * - For other tasks: use '{}' or '{"type":"unknown"}'
1047
+ * Must be a valid JSON string.
1048
+ */
1049
+ context: string;
1037
1050
  }
1038
1051
  interface UpdateTaskOptions {
1039
1052
  title?: string;
@@ -1045,6 +1058,10 @@ interface UpdateTaskOptions {
1045
1058
  goals_and_expected_deliverables?: string;
1046
1059
  due_date?: string;
1047
1060
  tags?: string[];
1061
+ /** 项目路径,标识任务所属的项目 */
1062
+ project_path?: string;
1063
+ /** 任务上下文信息,用于存储额外上下文 */
1064
+ context?: string;
1048
1065
  }
1049
1066
  interface ListTasksOptions {
1050
1067
  status?: TaskStatus;
@@ -1256,6 +1273,123 @@ declare class SQLiteTaskStore implements TaskStore {
1256
1273
  close(): Promise<void>;
1257
1274
  }
1258
1275
  /**
1276
+ * @fileoverview Task Entity Event Types
1277
+ *
1278
+ * 定义 TaskComponent 相关的 EnvEvent 类型
1279
+ */
1280
+ /**
1281
+ * Task Entity 事件类型枚举
1282
+ */
1283
+ declare const TaskEntityEventTypes: {
1284
+ /** Task 创建 */
1285
+ readonly CREATED: "task.created";
1286
+ /** Task 更新 */
1287
+ readonly UPDATED: "task.updated";
1288
+ /** Task 完成 */
1289
+ readonly COMPLETED: "task.completed";
1290
+ /** Task 删除 */
1291
+ readonly DELETED: "task.deleted";
1292
+ /** Operation 记录添加 */
1293
+ readonly OPERATION_ADDED: "task.operation_added";
1294
+ /** Task 被委托 */
1295
+ readonly DELEGATED: "task.delegated";
1296
+ };
1297
+ type TaskEntityEventType = (typeof TaskEntityEventTypes)[keyof typeof TaskEntityEventTypes];
1298
+ /**
1299
+ * task.created 事件负载
1300
+ */
1301
+ interface TaskCreatedPayload {
1302
+ task: Task;
1303
+ sessionId: string;
1304
+ }
1305
+ /**
1306
+ * task.updated 事件负载
1307
+ */
1308
+ interface TaskUpdatedPayload {
1309
+ task: Task;
1310
+ changes: Partial<Task>;
1311
+ sessionId: string;
1312
+ }
1313
+ /**
1314
+ * task.completed 事件负载
1315
+ */
1316
+ interface TaskCompletedPayload {
1317
+ task: Task;
1318
+ sessionId: string;
1319
+ }
1320
+ /**
1321
+ * task.deleted 事件负载
1322
+ */
1323
+ interface TaskDeletedPayload {
1324
+ taskId: number;
1325
+ sessionId: string;
1326
+ }
1327
+ /**
1328
+ * task.operation_added 事件负载
1329
+ */
1330
+ interface TaskOperationAddedPayload {
1331
+ operation: TaskOperation;
1332
+ taskId: number;
1333
+ }
1334
+ /**
1335
+ * task.delegated 事件负载
1336
+ */
1337
+ interface TaskDelegatedPayload {
1338
+ taskId: number;
1339
+ backgroundTaskId: string;
1340
+ subSessionId: string;
1341
+ parentSessionId: string;
1342
+ description: string;
1343
+ subagentType: string;
1344
+ }
1345
+ /**
1346
+ * task.background.started 事件负载
1347
+ */
1348
+ interface BackgroundTaskStartedPayload {
1349
+ taskId: string;
1350
+ subSessionId: string;
1351
+ parentSessionId: string;
1352
+ description: string;
1353
+ subagentType: string;
1354
+ associatedTaskId?: number;
1355
+ }
1356
+ /**
1357
+ * task.background.progress 事件负载
1358
+ */
1359
+ interface BackgroundTaskProgressPayload {
1360
+ taskId: string;
1361
+ subSessionId: string;
1362
+ parentSessionId: string;
1363
+ status: string;
1364
+ progress?: number;
1365
+ progressMessage?: string;
1366
+ description?: string;
1367
+ subagentType?: string;
1368
+ }
1369
+ /**
1370
+ * task.background.completed/failed/timeout/stopped 事件负载
1371
+ */
1372
+ interface BackgroundTaskCompletedPayload {
1373
+ taskId: string;
1374
+ subSessionId: string;
1375
+ parentSessionId: string;
1376
+ status: "completed" | "failed" | "timeout" | "stopped";
1377
+ result?: string;
1378
+ error?: string;
1379
+ executionTimeMs: number;
1380
+ associatedTaskId?: number;
1381
+ description?: string;
1382
+ subagentType?: string;
1383
+ }
1384
+ /**
1385
+ * 所有 Task Entity 事件负载的联合类型
1386
+ */
1387
+ type TaskEntityEventPayload = TaskCreatedPayload | TaskUpdatedPayload | TaskCompletedPayload | TaskDeletedPayload | TaskOperationAddedPayload | TaskDelegatedPayload;
1388
+ /**
1389
+ * 所有 Background Task 事件负载的联合类型
1390
+ */
1391
+ type BackgroundTaskEventPayload = BackgroundTaskStartedPayload | BackgroundTaskProgressPayload | BackgroundTaskCompletedPayload;
1392
+ /**
1259
1393
  * TaskComponent 配置选项(通过 options 传递)
1260
1394
  *
1261
1395
  * 配置加载顺序(优先级从低到高):
@@ -1283,6 +1417,10 @@ declare class TaskComponent extends BaseComponent {
1283
1417
  private configComponent?;
1284
1418
  private tagService;
1285
1419
  private plugins;
1420
+ /**
1421
+ * 发布 EnvEvent
1422
+ */
1423
+ private publishEvent;
1286
1424
  constructor();
1287
1425
  /**
1288
1426
  * Initialize the component
@@ -1412,4 +1550,4 @@ declare class TaskComponent extends BaseComponent {
1412
1550
  */
1413
1551
  listPlugins(): TaskPlugin[];
1414
1552
  }
1415
- export { UpdateTaskOptions, TaskTag, TaskStore, TaskStatusEnum, TaskStatus, TaskPriorityEnum, TaskPriority, TaskOperation, TaskConfigSchema, TaskConfig, TaskComponentOptions, TaskComponent, Task, SQLiteTaskStore, ListTasksOptions, ListOperationsOptions, CreateTaskOptions, CreateOperationOptions, ActionTypeEnum, ActionType };
1553
+ export { UpdateTaskOptions, TaskUpdatedPayload, TaskTag, TaskStore, TaskStatusEnum, TaskStatus, TaskPriorityEnum, TaskPriority, TaskOperationAddedPayload, TaskOperation, TaskEntityEventTypes, TaskEntityEventType, TaskEntityEventPayload, TaskDeletedPayload, TaskDelegatedPayload, TaskCreatedPayload, TaskConfigSchema, TaskConfig, TaskComponentOptions, TaskComponent, TaskCompletedPayload, Task, SQLiteTaskStore, ListTasksOptions, ListOperationsOptions, CreateTaskOptions, CreateOperationOptions, BackgroundTaskStartedPayload, BackgroundTaskProgressPayload, BackgroundTaskEventPayload, BackgroundTaskCompletedPayload, ActionTypeEnum, ActionType };
@@ -4,14 +4,17 @@ import {
4
4
  TaskConfigSchema,
5
5
  TaskPriorityEnum,
6
6
  TaskStatusEnum
7
- } from "../../shared/@ai-setting/roy-agent-core-n2cvdgd6.js";
7
+ } from "../../shared/@ai-setting/roy-agent-core-gwc4h96n.js";
8
+ import"../../shared/@ai-setting/roy-agent-core-vf215qfv.js";
8
9
  import {
9
10
  SQLiteTaskStore
10
- } from "../../shared/@ai-setting/roy-agent-core-htwpckw9.js";
11
- import"../../shared/@ai-setting/roy-agent-core-dbsk841j.js";
11
+ } from "../../shared/@ai-setting/roy-agent-core-bvr1761x.js";
12
+ import"../../shared/@ai-setting/roy-agent-core-wa1kzqky.js";
12
13
  import"../../shared/@ai-setting/roy-agent-core-t94ktchq.js";
13
- import"../../shared/@ai-setting/roy-agent-core-z62zee1e.js";
14
14
  import"../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
15
+ import {
16
+ TaskEntityEventTypes
17
+ } from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
15
18
  import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
16
19
  import"../../shared/@ai-setting/roy-agent-core-kkbwepqb.js";
17
20
  import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
@@ -23,6 +26,7 @@ import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
23
26
  export {
24
27
  TaskStatusEnum,
25
28
  TaskPriorityEnum,
29
+ TaskEntityEventTypes,
26
30
  TaskConfigSchema,
27
31
  TaskComponent,
28
32
  SQLiteTaskStore,
@@ -357,6 +357,10 @@ interface Task {
357
357
  updatedAt: string;
358
358
  due_date?: string;
359
359
  tags?: string[];
360
+ /** Project root path for task positioning */
361
+ project_path: string;
362
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
363
+ context: string;
360
364
  }
361
365
  /**
362
366
  * TaskOperation entity
@@ -31,6 +31,10 @@ interface Task {
31
31
  updatedAt: string;
32
32
  due_date?: string;
33
33
  tags?: string[];
34
+ /** Project root path for task positioning */
35
+ project_path: string;
36
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
37
+ context: string;
34
38
  }
35
39
  /**
36
40
  * TaskOperation entity
@@ -67,6 +71,15 @@ interface CreateTaskOptions {
67
71
  due_date?: string;
68
72
  tags?: string[];
69
73
  sessionId: string;
74
+ /** Project root path for task positioning. Use 'unknown' if unknown. */
75
+ project_path: string;
76
+ /**
77
+ * JSON string with time-space positioning info.
78
+ * - For coding tasks: include worktree_path, branch, type
79
+ * - For other tasks: use '{}' or '{"type":"unknown"}'
80
+ * Must be a valid JSON string.
81
+ */
82
+ context: string;
70
83
  }
71
84
  interface UpdateTaskOptions {
72
85
  title?: string;
@@ -78,6 +91,10 @@ interface UpdateTaskOptions {
78
91
  goals_and_expected_deliverables?: string;
79
92
  due_date?: string;
80
93
  tags?: string[];
94
+ /** 项目路径,标识任务所属的项目 */
95
+ project_path?: string;
96
+ /** 任务上下文信息,用于存储额外上下文 */
97
+ context?: string;
81
98
  }
82
99
  interface ListTasksOptions {
83
100
  status?: TaskStatus;
@@ -2,7 +2,7 @@ import {
2
2
  SQLiteTaskStore,
3
3
  getDefaultDataDir,
4
4
  getDefaultTaskDbPath
5
- } from "../../../shared/@ai-setting/roy-agent-core-htwpckw9.js";
5
+ } from "../../../shared/@ai-setting/roy-agent-core-bvr1761x.js";
6
6
  import"../../../shared/@ai-setting/roy-agent-core-44hnfb02.js";
7
7
  import"../../../shared/@ai-setting/roy-agent-core-xs5rsgat.js";
8
8
  import"../../../shared/@ai-setting/roy-agent-core-psv4v63c.js";
@@ -1163,6 +1163,10 @@ interface Task {
1163
1163
  updatedAt: string;
1164
1164
  due_date?: string;
1165
1165
  tags?: string[];
1166
+ /** Project root path for task positioning */
1167
+ project_path: string;
1168
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
1169
+ context: string;
1166
1170
  }
1167
1171
  /**
1168
1172
  * TaskOperation entity
@@ -1199,6 +1203,15 @@ interface CreateTaskOptions {
1199
1203
  due_date?: string;
1200
1204
  tags?: string[];
1201
1205
  sessionId: string;
1206
+ /** Project root path for task positioning. Use 'unknown' if unknown. */
1207
+ project_path: string;
1208
+ /**
1209
+ * JSON string with time-space positioning info.
1210
+ * - For coding tasks: include worktree_path, branch, type
1211
+ * - For other tasks: use '{}' or '{"type":"unknown"}'
1212
+ * Must be a valid JSON string.
1213
+ */
1214
+ context: string;
1202
1215
  }
1203
1216
  interface UpdateTaskOptions {
1204
1217
  title?: string;
@@ -1210,6 +1223,10 @@ interface UpdateTaskOptions {
1210
1223
  goals_and_expected_deliverables?: string;
1211
1224
  due_date?: string;
1212
1225
  tags?: string[];
1226
+ /** 项目路径,标识任务所属的项目 */
1227
+ project_path?: string;
1228
+ /** 任务上下文信息,用于存储额外上下文 */
1229
+ context?: string;
1213
1230
  }
1214
1231
  interface ListTasksOptions {
1215
1232
  status?: TaskStatus;
@@ -1326,6 +1343,10 @@ declare class TaskComponent extends BaseComponent {
1326
1343
  private configComponent?;
1327
1344
  private tagService;
1328
1345
  private plugins;
1346
+ /**
1347
+ * 发布 EnvEvent
1348
+ */
1349
+ private publishEvent;
1329
1350
  constructor();
1330
1351
  /**
1331
1352
  * Initialize the component
@@ -5,7 +5,7 @@ import {
5
5
  getTaskTool,
6
6
  listTasksTool,
7
7
  updateTaskTool
8
- } from "../../../shared/@ai-setting/roy-agent-core-dbsk841j.js";
8
+ } from "../../../shared/@ai-setting/roy-agent-core-wa1kzqky.js";
9
9
  import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
10
10
  export {
11
11
  updateTaskTool,
@@ -1163,6 +1163,10 @@ interface Task {
1163
1163
  updatedAt: string;
1164
1164
  due_date?: string;
1165
1165
  tags?: string[];
1166
+ /** Project root path for task positioning */
1167
+ project_path: string;
1168
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
1169
+ context: string;
1166
1170
  }
1167
1171
  /**
1168
1172
  * TaskOperation entity
@@ -1199,6 +1203,15 @@ interface CreateTaskOptions {
1199
1203
  due_date?: string;
1200
1204
  tags?: string[];
1201
1205
  sessionId: string;
1206
+ /** Project root path for task positioning. Use 'unknown' if unknown. */
1207
+ project_path: string;
1208
+ /**
1209
+ * JSON string with time-space positioning info.
1210
+ * - For coding tasks: include worktree_path, branch, type
1211
+ * - For other tasks: use '{}' or '{"type":"unknown"}'
1212
+ * Must be a valid JSON string.
1213
+ */
1214
+ context: string;
1202
1215
  }
1203
1216
  interface UpdateTaskOptions {
1204
1217
  title?: string;
@@ -1210,6 +1223,10 @@ interface UpdateTaskOptions {
1210
1223
  goals_and_expected_deliverables?: string;
1211
1224
  due_date?: string;
1212
1225
  tags?: string[];
1226
+ /** 项目路径,标识任务所属的项目 */
1227
+ project_path?: string;
1228
+ /** 任务上下文信息,用于存储额外上下文 */
1229
+ context?: string;
1213
1230
  }
1214
1231
  interface ListTasksOptions {
1215
1232
  status?: TaskStatus;
@@ -1326,6 +1343,10 @@ declare class TaskComponent extends BaseComponent {
1326
1343
  private configComponent?;
1327
1344
  private tagService;
1328
1345
  private plugins;
1346
+ /**
1347
+ * 发布 EnvEvent
1348
+ */
1349
+ private publishEvent;
1329
1350
  constructor();
1330
1351
  /**
1331
1352
  * Initialize the component
@@ -1,23 +1,10 @@
1
1
  import {
2
2
  WorkflowComponent
3
- } from "../../shared/@ai-setting/roy-agent-core-dc497hmk.js";
3
+ } from "../../shared/@ai-setting/roy-agent-core-rhmtwnw1.js";
4
4
  import"../../shared/@ai-setting/roy-agent-core-0rtxwr28.js";
5
- import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
6
- import"../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
7
- import {
8
- Edge,
9
- NodeAs,
10
- Workflow,
11
- WorkflowConverter,
12
- WorkflowEdges,
13
- createWorkflowFromClass
14
- } from "../../shared/@ai-setting/roy-agent-core-7fgf85wc.js";
15
- import {
16
- DecoratorNode,
17
- init_decorator_node
18
- } from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
19
5
  import"../../shared/@ai-setting/roy-agent-core-wrcy0h6z.js";
20
6
  import"../../shared/@ai-setting/roy-agent-core-69jskqjg.js";
7
+ import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
21
8
  import"../../shared/@ai-setting/roy-agent-core-jvatggbb.js";
22
9
  import {
23
10
  BaseEventSchema,
@@ -63,6 +50,19 @@ import {
63
50
  parseWorkflowFile,
64
51
  parseWorkflowFileSync
65
52
  } from "../../shared/@ai-setting/roy-agent-core-5x94xmt6.js";
53
+ import"../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
54
+ import {
55
+ Edge,
56
+ NodeAs,
57
+ Workflow,
58
+ WorkflowConverter,
59
+ WorkflowEdges,
60
+ createWorkflowFromClass
61
+ } from "../../shared/@ai-setting/roy-agent-core-7fgf85wc.js";
62
+ import {
63
+ DecoratorNode,
64
+ init_decorator_node
65
+ } from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
66
66
  import {
67
67
  AskUserError,
68
68
  createNodeInterruptEvent,
package/dist/index.d.ts CHANGED
@@ -3470,6 +3470,10 @@ interface Task {
3470
3470
  updatedAt: string;
3471
3471
  due_date?: string;
3472
3472
  tags?: string[];
3473
+ /** Project root path for task positioning */
3474
+ project_path: string;
3475
+ /** JSON string with time-space positioning info (worktree, branch, etc.) */
3476
+ context: string;
3473
3477
  }
3474
3478
  /**
3475
3479
  * TaskOperation entity
@@ -3508,6 +3512,15 @@ interface CreateTaskOptions {
3508
3512
  due_date?: string;
3509
3513
  tags?: string[];
3510
3514
  sessionId: string;
3515
+ /** Project root path for task positioning. Use 'unknown' if unknown. */
3516
+ project_path: string;
3517
+ /**
3518
+ * JSON string with time-space positioning info.
3519
+ * - For coding tasks: include worktree_path, branch, type
3520
+ * - For other tasks: use '{}' or '{"type":"unknown"}'
3521
+ * Must be a valid JSON string.
3522
+ */
3523
+ context: string;
3511
3524
  }
3512
3525
  interface UpdateTaskOptions {
3513
3526
  title?: string;
@@ -3519,6 +3532,10 @@ interface UpdateTaskOptions {
3519
3532
  goals_and_expected_deliverables?: string;
3520
3533
  due_date?: string;
3521
3534
  tags?: string[];
3535
+ /** 项目路径,标识任务所属的项目 */
3536
+ project_path?: string;
3537
+ /** 任务上下文信息,用于存储额外上下文 */
3538
+ context?: string;
3522
3539
  }
3523
3540
  interface ListTasksOptions {
3524
3541
  status?: TaskStatus;
@@ -3695,6 +3712,10 @@ declare class TaskComponent extends BaseComponent {
3695
3712
  private configComponent?;
3696
3713
  private tagService;
3697
3714
  private plugins;
3715
+ /**
3716
+ * 发布 EnvEvent
3717
+ */
3718
+ private publishEvent;
3698
3719
  constructor();
3699
3720
  /**
3700
3721
  * Initialize the component
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ CommandsComponent
3
+ } from "./shared/@ai-setting/roy-agent-core-f7q2x5z6.js";
1
4
  import {
2
5
  LogTraceComponent,
3
6
  LogTraceConfigSchema
@@ -33,7 +36,7 @@ import {
33
36
  invoke,
34
37
  invokeNonStream,
35
38
  parseModelString
36
- } from "./shared/@ai-setting/roy-agent-core-3xwneva0.js";
39
+ } from "./shared/@ai-setting/roy-agent-core-vkz81f7v.js";
37
40
  import {
38
41
  ConfigComponent
39
42
  } from "./shared/@ai-setting/roy-agent-core-vn2bc59q.js";
@@ -45,9 +48,6 @@ import {
45
48
  MemoryPlugin,
46
49
  createMemoryPlugin
47
50
  } from "./shared/@ai-setting/roy-agent-core-6kvtahqv.js";
48
- import {
49
- CommandsComponent
50
- } from "./shared/@ai-setting/roy-agent-core-f7q2x5z6.js";
51
51
  import {
52
52
  TaskPlugin,
53
53
  TaskTagPlugin
@@ -74,12 +74,16 @@ import {
74
74
  } from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
75
75
  import {
76
76
  WorkflowComponent
77
- } from "./shared/@ai-setting/roy-agent-core-dc497hmk.js";
77
+ } from "./shared/@ai-setting/roy-agent-core-rhmtwnw1.js";
78
78
  import {
79
79
  init_node_registry_helper,
80
80
  registerDecoratorNodeType
81
81
  } from "./shared/@ai-setting/roy-agent-core-0rtxwr28.js";
82
+ import"./shared/@ai-setting/roy-agent-core-wrcy0h6z.js";
83
+ import"./shared/@ai-setting/roy-agent-core-69jskqjg.js";
82
84
  import"./shared/@ai-setting/roy-agent-core-4t40mkpv.js";
85
+ import"./shared/@ai-setting/roy-agent-core-jvatggbb.js";
86
+ import"./shared/@ai-setting/roy-agent-core-5x94xmt6.js";
83
87
  import"./shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
84
88
  import {
85
89
  Edge,
@@ -89,10 +93,6 @@ import {
89
93
  createWorkflowFromClass
90
94
  } from "./shared/@ai-setting/roy-agent-core-7fgf85wc.js";
91
95
  import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
92
- import"./shared/@ai-setting/roy-agent-core-wrcy0h6z.js";
93
- import"./shared/@ai-setting/roy-agent-core-69jskqjg.js";
94
- import"./shared/@ai-setting/roy-agent-core-jvatggbb.js";
95
- import"./shared/@ai-setting/roy-agent-core-5x94xmt6.js";
96
96
  import {
97
97
  AgentComponent,
98
98
  AgentComponentConfigSchema
@@ -103,14 +103,15 @@ import {
103
103
  } from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
104
104
  import {
105
105
  TaskComponent
106
- } from "./shared/@ai-setting/roy-agent-core-n2cvdgd6.js";
107
- import"./shared/@ai-setting/roy-agent-core-htwpckw9.js";
108
- import"./shared/@ai-setting/roy-agent-core-dbsk841j.js";
106
+ } from "./shared/@ai-setting/roy-agent-core-gwc4h96n.js";
107
+ import"./shared/@ai-setting/roy-agent-core-vf215qfv.js";
108
+ import"./shared/@ai-setting/roy-agent-core-bvr1761x.js";
109
+ import"./shared/@ai-setting/roy-agent-core-wa1kzqky.js";
109
110
  import"./shared/@ai-setting/roy-agent-core-t94ktchq.js";
110
- import"./shared/@ai-setting/roy-agent-core-z62zee1e.js";
111
111
  import {
112
112
  TaskHookPoints
113
113
  } from "./shared/@ai-setting/roy-agent-core-92z6t4he.js";
114
+ import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
114
115
  import {
115
116
  SkillComponent
116
117
  } from "./shared/@ai-setting/roy-agent-core-zbkpc41z.js";
@@ -0,0 +1,10 @@
1
+ // src/env/task/events/task-event-types.ts
2
+ var TaskEntityEventTypes = {
3
+ CREATED: "task.created",
4
+ UPDATED: "task.updated",
5
+ COMPLETED: "task.completed",
6
+ DELETED: "task.deleted",
7
+ OPERATION_ADDED: "task.operation_added",
8
+ DELEGATED: "task.delegated"
9
+ };
10
+ export { TaskEntityEventTypes };
@@ -75,7 +75,9 @@ class SQLiteTaskStore {
75
75
  created_at INTEGER NOT NULL,
76
76
  updated_at INTEGER NOT NULL,
77
77
  due_date TEXT,
78
- tags TEXT
78
+ tags TEXT,
79
+ project_path TEXT NOT NULL DEFAULT 'unknown',
80
+ context TEXT NOT NULL DEFAULT '{}'
79
81
  )
80
82
  `);
81
83
  this.db.run(`
@@ -121,10 +123,10 @@ class SQLiteTaskStore {
121
123
  const stmt = this.db.prepare(`
122
124
  INSERT INTO task (title, description, priority, parent_task_id,
123
125
  goals_and_expected_deliverables, due_date, tags, status,
124
- current_status, created_at, updated_at)
125
- VALUES (?, ?, ?, ?, ?, ?, ?, 'todo', '', ?, ?)
126
+ current_status, created_at, updated_at, project_path, context)
127
+ VALUES (?, ?, ?, ?, ?, ?, ?, 'todo', '', ?, ?, ?, ?)
126
128
  `);
127
- const result = stmt.run(options.title, options.description || "", options.priority || "medium", options.parent_task_id || null, options.goals_and_expected_deliverables || "", options.due_date || null, options.tags ? JSON.stringify(options.tags) : null, now, now);
129
+ const result = stmt.run(options.title, options.description || "", options.priority || "medium", options.parent_task_id || null, options.goals_and_expected_deliverables || "", options.due_date || null, options.tags ? JSON.stringify(options.tags) : null, now, now, options.project_path, options.context);
128
130
  const task = await this.getTask(result.lastInsertRowid);
129
131
  if (task) {
130
132
  this.tasksCache.set(task.id, task);
@@ -188,6 +190,14 @@ class SQLiteTaskStore {
188
190
  updates.push("tags = ?");
189
191
  values.push(JSON.stringify(options.tags));
190
192
  }
193
+ if (options.project_path !== undefined) {
194
+ updates.push("project_path = ?");
195
+ values.push(options.project_path);
196
+ }
197
+ if (options.context !== undefined) {
198
+ updates.push("context = ?");
199
+ values.push(options.context);
200
+ }
191
201
  if (updates.length === 0)
192
202
  return task;
193
203
  updates.push("updated_at = ?");
@@ -329,7 +339,9 @@ class SQLiteTaskStore {
329
339
  createdAt: new Date(row.created_at).toISOString(),
330
340
  updatedAt: new Date(row.updated_at).toISOString(),
331
341
  due_date: row.due_date || undefined,
332
- tags: row.tags ? JSON.parse(row.tags) : undefined
342
+ tags: row.tags ? JSON.parse(row.tags) : undefined,
343
+ project_path: row.project_path,
344
+ context: row.context
333
345
  };
334
346
  }
335
347
  rowToOperation(row) {