@agentuity/core 1.0.36 → 1.0.38
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/services/keyvalue/service.d.ts +2 -0
- package/dist/services/keyvalue/service.d.ts.map +1 -1
- package/dist/services/keyvalue/service.js +4 -0
- package/dist/services/keyvalue/service.js.map +1 -1
- package/dist/services/sandbox/client.d.ts +56 -5
- package/dist/services/sandbox/client.d.ts.map +1 -1
- package/dist/services/sandbox/client.js +120 -51
- package/dist/services/sandbox/client.js.map +1 -1
- package/dist/services/sandbox/pause.js +1 -1
- package/dist/services/sandbox/pause.js.map +1 -1
- package/dist/services/sandbox/types.d.ts +30 -0
- package/dist/services/sandbox/types.d.ts.map +1 -1
- package/dist/services/sandbox/types.js +28 -0
- package/dist/services/sandbox/types.js.map +1 -1
- package/dist/services/stream/delete.d.ts +27 -0
- package/dist/services/stream/delete.d.ts.map +1 -0
- package/dist/services/stream/delete.js +58 -0
- package/dist/services/stream/delete.js.map +1 -0
- package/dist/services/stream/index.d.ts +3 -0
- package/dist/services/stream/index.d.ts.map +1 -1
- package/dist/services/stream/index.js +3 -0
- package/dist/services/stream/index.js.map +1 -1
- package/dist/services/stream/namespaces.d.ts +75 -0
- package/dist/services/stream/namespaces.d.ts.map +1 -0
- package/dist/services/stream/namespaces.js +99 -0
- package/dist/services/stream/namespaces.js.map +1 -0
- package/dist/services/stream/search.d.ts +34 -0
- package/dist/services/stream/search.d.ts.map +1 -0
- package/dist/services/stream/search.js +49 -0
- package/dist/services/stream/search.js.map +1 -0
- package/dist/services/task/service.d.ts +153 -18
- package/dist/services/task/service.d.ts.map +1 -1
- package/dist/services/task/service.js +255 -10
- package/dist/services/task/service.js.map +1 -1
- package/dist/services/vector/service.d.ts +3 -0
- package/dist/services/vector/service.d.ts.map +1 -1
- package/dist/services/vector/service.js +7 -0
- package/dist/services/vector/service.js.map +1 -1
- package/package.json +2 -2
- package/src/services/keyvalue/service.ts +4 -0
- package/src/services/sandbox/client.ts +215 -84
- package/src/services/sandbox/pause.ts +1 -1
- package/src/services/sandbox/types.ts +52 -0
- package/src/services/stream/delete.ts +87 -0
- package/src/services/stream/index.ts +3 -0
- package/src/services/stream/namespaces.ts +160 -0
- package/src/services/stream/search.ts +80 -0
- package/src/services/task/service.ts +375 -13
- package/src/services/vector/service.ts +8 -0
|
@@ -33,13 +33,11 @@ export type TaskType = z.infer<typeof TaskTypeSchema>;
|
|
|
33
33
|
* - `'open'` — Created, not yet started.
|
|
34
34
|
* - `'in_progress'` — Actively being worked on.
|
|
35
35
|
* - `'done'` — Work completed.
|
|
36
|
-
* - `'closed'` — Resolved and closed.
|
|
37
36
|
* - `'cancelled'` — Abandoned.
|
|
38
37
|
*/
|
|
39
38
|
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
40
39
|
open: "open";
|
|
41
40
|
in_progress: "in_progress";
|
|
42
|
-
closed: "closed";
|
|
43
41
|
done: "done";
|
|
44
42
|
cancelled: "cancelled";
|
|
45
43
|
}>;
|
|
@@ -114,7 +112,6 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
114
112
|
status: z.ZodEnum<{
|
|
115
113
|
open: "open";
|
|
116
114
|
in_progress: "in_progress";
|
|
117
|
-
closed: "closed";
|
|
118
115
|
done: "done";
|
|
119
116
|
cancelled: "cancelled";
|
|
120
117
|
}>;
|
|
@@ -243,7 +240,6 @@ export declare const CreateTaskParamsSchema: z.ZodObject<{
|
|
|
243
240
|
status: z.ZodOptional<z.ZodEnum<{
|
|
244
241
|
open: "open";
|
|
245
242
|
in_progress: "in_progress";
|
|
246
|
-
closed: "closed";
|
|
247
243
|
done: "done";
|
|
248
244
|
cancelled: "cancelled";
|
|
249
245
|
}>>;
|
|
@@ -298,7 +294,6 @@ export declare const UpdateTaskParamsSchema: z.ZodObject<{
|
|
|
298
294
|
status: z.ZodOptional<z.ZodEnum<{
|
|
299
295
|
open: "open";
|
|
300
296
|
in_progress: "in_progress";
|
|
301
|
-
closed: "closed";
|
|
302
297
|
done: "done";
|
|
303
298
|
cancelled: "cancelled";
|
|
304
299
|
}>>;
|
|
@@ -333,7 +328,6 @@ export declare const ListTasksParamsSchema: z.ZodObject<{
|
|
|
333
328
|
status: z.ZodOptional<z.ZodEnum<{
|
|
334
329
|
open: "open";
|
|
335
330
|
in_progress: "in_progress";
|
|
336
|
-
closed: "closed";
|
|
337
331
|
done: "done";
|
|
338
332
|
cancelled: "cancelled";
|
|
339
333
|
}>>;
|
|
@@ -351,6 +345,7 @@ export declare const ListTasksParamsSchema: z.ZodObject<{
|
|
|
351
345
|
none: "none";
|
|
352
346
|
}>>;
|
|
353
347
|
assigned_id: z.ZodOptional<z.ZodString>;
|
|
348
|
+
created_id: z.ZodOptional<z.ZodString>;
|
|
354
349
|
parent_id: z.ZodOptional<z.ZodString>;
|
|
355
350
|
project_id: z.ZodOptional<z.ZodString>;
|
|
356
351
|
tag_id: z.ZodOptional<z.ZodString>;
|
|
@@ -392,7 +387,6 @@ export declare const ListTasksResultSchema: z.ZodObject<{
|
|
|
392
387
|
status: z.ZodEnum<{
|
|
393
388
|
open: "open";
|
|
394
389
|
in_progress: "in_progress";
|
|
395
|
-
closed: "closed";
|
|
396
390
|
done: "done";
|
|
397
391
|
cancelled: "cancelled";
|
|
398
392
|
}>;
|
|
@@ -467,7 +461,6 @@ export declare const BatchDeleteTasksParamsSchema: z.ZodObject<{
|
|
|
467
461
|
status: z.ZodOptional<z.ZodEnum<{
|
|
468
462
|
open: "open";
|
|
469
463
|
in_progress: "in_progress";
|
|
470
|
-
closed: "closed";
|
|
471
464
|
done: "done";
|
|
472
465
|
cancelled: "cancelled";
|
|
473
466
|
}>>;
|
|
@@ -490,6 +483,22 @@ export declare const BatchDeleteTasksParamsSchema: z.ZodObject<{
|
|
|
490
483
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
491
484
|
}, z.core.$strip>;
|
|
492
485
|
export type BatchDeleteTasksParams = z.infer<typeof BatchDeleteTasksParamsSchema>;
|
|
486
|
+
/**
|
|
487
|
+
* Parameters for creating a new user entity.
|
|
488
|
+
*/
|
|
489
|
+
export interface CreateUserParams {
|
|
490
|
+
/** The user's display name. */
|
|
491
|
+
name: string;
|
|
492
|
+
/** The user type — defaults to 'human'. */
|
|
493
|
+
type?: 'human' | 'agent';
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Parameters for creating a new project entity.
|
|
497
|
+
*/
|
|
498
|
+
export interface CreateProjectParams {
|
|
499
|
+
/** The project name. */
|
|
500
|
+
name: string;
|
|
501
|
+
}
|
|
493
502
|
/**
|
|
494
503
|
* A single task that was deleted in a batch operation.
|
|
495
504
|
*/
|
|
@@ -689,7 +698,6 @@ export declare const TaskActivityDataPointSchema: z.ZodObject<{
|
|
|
689
698
|
open: z.ZodNumber;
|
|
690
699
|
inProgress: z.ZodNumber;
|
|
691
700
|
done: z.ZodNumber;
|
|
692
|
-
closed: z.ZodNumber;
|
|
693
701
|
cancelled: z.ZodNumber;
|
|
694
702
|
}, z.core.$strip>;
|
|
695
703
|
export type TaskActivityDataPoint = z.infer<typeof TaskActivityDataPointSchema>;
|
|
@@ -702,7 +710,6 @@ export declare const TaskActivityResultSchema: z.ZodObject<{
|
|
|
702
710
|
open: z.ZodNumber;
|
|
703
711
|
inProgress: z.ZodNumber;
|
|
704
712
|
done: z.ZodNumber;
|
|
705
|
-
closed: z.ZodNumber;
|
|
706
713
|
cancelled: z.ZodNumber;
|
|
707
714
|
}, z.core.$strip>>;
|
|
708
715
|
days: z.ZodNumber;
|
|
@@ -744,10 +751,10 @@ export interface TaskStorage {
|
|
|
744
751
|
*/
|
|
745
752
|
update(id: string, params: UpdateTaskParams): Promise<Task>;
|
|
746
753
|
/**
|
|
747
|
-
* Close a task by setting its status to
|
|
754
|
+
* Close a task by setting its status to done.
|
|
748
755
|
*
|
|
749
756
|
* @param id - The unique task identifier
|
|
750
|
-
* @returns The
|
|
757
|
+
* @returns The task with updated closed_date and status set to done
|
|
751
758
|
*/
|
|
752
759
|
close(id: string): Promise<Task>;
|
|
753
760
|
/**
|
|
@@ -922,6 +929,46 @@ export interface TaskStorage {
|
|
|
922
929
|
* @returns List of project entity references
|
|
923
930
|
*/
|
|
924
931
|
listProjects(): Promise<ListProjectsResult>;
|
|
932
|
+
/**
|
|
933
|
+
* Create a new user entity.
|
|
934
|
+
*
|
|
935
|
+
* @param params - The user creation parameters
|
|
936
|
+
* @returns The created user entity reference
|
|
937
|
+
*/
|
|
938
|
+
createUser(params: CreateUserParams): Promise<UserEntityRef>;
|
|
939
|
+
/**
|
|
940
|
+
* Get a user entity by ID.
|
|
941
|
+
*
|
|
942
|
+
* @param userId - The unique user identifier
|
|
943
|
+
* @returns The user entity reference
|
|
944
|
+
*/
|
|
945
|
+
getUser(userId: string): Promise<UserEntityRef>;
|
|
946
|
+
/**
|
|
947
|
+
* Delete a user entity.
|
|
948
|
+
*
|
|
949
|
+
* @param userId - The unique user identifier
|
|
950
|
+
*/
|
|
951
|
+
deleteUser(userId: string): Promise<void>;
|
|
952
|
+
/**
|
|
953
|
+
* Create a new project entity.
|
|
954
|
+
*
|
|
955
|
+
* @param params - The project creation parameters
|
|
956
|
+
* @returns The created project entity reference
|
|
957
|
+
*/
|
|
958
|
+
createProject(params: CreateProjectParams): Promise<EntityRef>;
|
|
959
|
+
/**
|
|
960
|
+
* Get a project entity by ID.
|
|
961
|
+
*
|
|
962
|
+
* @param projectId - The unique project identifier
|
|
963
|
+
* @returns The project entity reference
|
|
964
|
+
*/
|
|
965
|
+
getProject(projectId: string): Promise<EntityRef>;
|
|
966
|
+
/**
|
|
967
|
+
* Delete a project entity.
|
|
968
|
+
*
|
|
969
|
+
* @param projectId - The unique project identifier
|
|
970
|
+
*/
|
|
971
|
+
deleteProject(projectId: string): Promise<void>;
|
|
925
972
|
/**
|
|
926
973
|
* Get task activity time-series data showing daily status counts.
|
|
927
974
|
*
|
|
@@ -938,7 +985,7 @@ export interface TaskStorage {
|
|
|
938
985
|
* presigned S3 URLs, changelog tracking, and activity analytics.
|
|
939
986
|
*
|
|
940
987
|
* Tasks support lifecycle management through status transitions (`open` → `in_progress`
|
|
941
|
-
* → `done`/`
|
|
988
|
+
* → `done`/`cancelled`) with automatic date tracking for each transition.
|
|
942
989
|
*
|
|
943
990
|
* All methods validate inputs client-side and throw structured errors for invalid
|
|
944
991
|
* parameters. API errors throw {@link ServiceException}.
|
|
@@ -1056,17 +1103,17 @@ export declare class TaskStorageService implements TaskStorage {
|
|
|
1056
1103
|
*/
|
|
1057
1104
|
update(id: string, params: UpdateTaskParams): Promise<Task>;
|
|
1058
1105
|
/**
|
|
1059
|
-
* Close a task by setting its status to
|
|
1106
|
+
* Close a task by setting its status to done.
|
|
1060
1107
|
*
|
|
1061
1108
|
* @param id - The unique task identifier
|
|
1062
|
-
* @returns The
|
|
1109
|
+
* @returns The task with status set to done and updated closed_date
|
|
1063
1110
|
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1064
1111
|
* @throws {@link ServiceException} if the API request fails
|
|
1065
1112
|
*
|
|
1066
1113
|
* @example
|
|
1067
1114
|
* ```typescript
|
|
1068
|
-
* const
|
|
1069
|
-
* console.log('
|
|
1115
|
+
* const task = await tasks.close('task_abc123');
|
|
1116
|
+
* console.log('Done at:', task.closed_date);
|
|
1070
1117
|
* ```
|
|
1071
1118
|
*/
|
|
1072
1119
|
close(id: string): Promise<Task>;
|
|
@@ -1119,7 +1166,7 @@ export declare class TaskStorageService implements TaskStorage {
|
|
|
1119
1166
|
*
|
|
1120
1167
|
* @example
|
|
1121
1168
|
* ```typescript
|
|
1122
|
-
* const result = await tasks.batchDelete({ status: '
|
|
1169
|
+
* const result = await tasks.batchDelete({ status: 'done', older_than: '7d', limit: 50 });
|
|
1123
1170
|
* console.log(`Deleted ${result.count} tasks`);
|
|
1124
1171
|
* ```
|
|
1125
1172
|
*/
|
|
@@ -1470,6 +1517,94 @@ export declare class TaskStorageService implements TaskStorage {
|
|
|
1470
1517
|
* ```
|
|
1471
1518
|
*/
|
|
1472
1519
|
listProjects(): Promise<ListProjectsResult>;
|
|
1520
|
+
/**
|
|
1521
|
+
* Create a new user entity.
|
|
1522
|
+
*
|
|
1523
|
+
* @param params - The user creation parameters including name and optional type
|
|
1524
|
+
* @returns The created user entity reference
|
|
1525
|
+
* @throws {@link UserNameRequiredError} if the name is empty or not a string
|
|
1526
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1527
|
+
*
|
|
1528
|
+
* @example
|
|
1529
|
+
* ```typescript
|
|
1530
|
+
* const user = await tasks.createUser({ name: 'Jane Doe', type: 'human' });
|
|
1531
|
+
* console.log('Created user:', user.id, user.name);
|
|
1532
|
+
* ```
|
|
1533
|
+
*/
|
|
1534
|
+
createUser(params: CreateUserParams): Promise<UserEntityRef>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Get a user entity by ID.
|
|
1537
|
+
*
|
|
1538
|
+
* @param userId - The unique user identifier
|
|
1539
|
+
* @returns The user entity reference
|
|
1540
|
+
* @throws {@link UserIdRequiredError} if the user ID is empty or not a string
|
|
1541
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1542
|
+
*
|
|
1543
|
+
* @example
|
|
1544
|
+
* ```typescript
|
|
1545
|
+
* const user = await tasks.getUser('usr_abc123');
|
|
1546
|
+
* console.log(`${user.name} (${user.type})`);
|
|
1547
|
+
* ```
|
|
1548
|
+
*/
|
|
1549
|
+
getUser(userId: string): Promise<UserEntityRef>;
|
|
1550
|
+
/**
|
|
1551
|
+
* Delete a user entity.
|
|
1552
|
+
*
|
|
1553
|
+
* @param userId - The unique user identifier
|
|
1554
|
+
* @throws {@link UserIdRequiredError} if the user ID is empty or not a string
|
|
1555
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1556
|
+
*
|
|
1557
|
+
* @example
|
|
1558
|
+
* ```typescript
|
|
1559
|
+
* await tasks.deleteUser('usr_abc123');
|
|
1560
|
+
* console.log('User deleted');
|
|
1561
|
+
* ```
|
|
1562
|
+
*/
|
|
1563
|
+
deleteUser(userId: string): Promise<void>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Create a new project entity.
|
|
1566
|
+
*
|
|
1567
|
+
* @param params - The project creation parameters including name
|
|
1568
|
+
* @returns The created project entity reference
|
|
1569
|
+
* @throws {@link ProjectNameRequiredError} if the name is empty or not a string
|
|
1570
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1571
|
+
*
|
|
1572
|
+
* @example
|
|
1573
|
+
* ```typescript
|
|
1574
|
+
* const project = await tasks.createProject({ name: 'My Project' });
|
|
1575
|
+
* console.log('Created project:', project.id, project.name);
|
|
1576
|
+
* ```
|
|
1577
|
+
*/
|
|
1578
|
+
createProject(params: CreateProjectParams): Promise<EntityRef>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Get a project entity by ID.
|
|
1581
|
+
*
|
|
1582
|
+
* @param projectId - The unique project identifier
|
|
1583
|
+
* @returns The project entity reference
|
|
1584
|
+
* @throws {@link ProjectIdRequiredError} if the project ID is empty or not a string
|
|
1585
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1586
|
+
*
|
|
1587
|
+
* @example
|
|
1588
|
+
* ```typescript
|
|
1589
|
+
* const project = await tasks.getProject('prj_abc123');
|
|
1590
|
+
* console.log(`${project.name} (${project.id})`);
|
|
1591
|
+
* ```
|
|
1592
|
+
*/
|
|
1593
|
+
getProject(projectId: string): Promise<EntityRef>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Delete a project entity.
|
|
1596
|
+
*
|
|
1597
|
+
* @param projectId - The unique project identifier
|
|
1598
|
+
* @throws {@link ProjectIdRequiredError} if the project ID is empty or not a string
|
|
1599
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1600
|
+
*
|
|
1601
|
+
* @example
|
|
1602
|
+
* ```typescript
|
|
1603
|
+
* await tasks.deleteProject('prj_abc123');
|
|
1604
|
+
* console.log('Project deleted');
|
|
1605
|
+
* ```
|
|
1606
|
+
*/
|
|
1607
|
+
deleteProject(projectId: string): Promise<void>;
|
|
1473
1608
|
/**
|
|
1474
1609
|
* Get task activity time-series data showing daily task counts by status.
|
|
1475
1610
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/services/task/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;EAA4C,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;EAA4D,CAAC;AAExF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;EAAiE,CAAC;AAE/F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;EAA6B,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;OAYG;IACG,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC3D;;;;;;;;;;;;;OAaG;IACG,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA0B3C;;;;;;;;;;;;;OAaG;IACG,YAAY,IAAI,OAAO,CAAC,kBAAkB,CAAC;IA0BjD;;;;;;;;;;;;;OAaG;IACG,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAiClE;;;;;;;;;;;;;OAaG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAiCrD;;;;;;;;;;;;OAYG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC/C;;;;;;;;;;;;;OAaG;IACG,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,SAAS,CAAC;IAiCpE;;;;;;;;;;;;;OAaG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAiCvD;;;;;;;;;;;;OAYG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiCrD;;;;;;;;;;;;;;;OAeG;IACG,WAAW,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAkC3E"}
|
|
@@ -22,10 +22,9 @@ export const TaskTypeSchema = z.enum(['epic', 'feature', 'enhancement', 'bug', '
|
|
|
22
22
|
* - `'open'` — Created, not yet started.
|
|
23
23
|
* - `'in_progress'` — Actively being worked on.
|
|
24
24
|
* - `'done'` — Work completed.
|
|
25
|
-
* - `'closed'` — Resolved and closed.
|
|
26
25
|
* - `'cancelled'` — Abandoned.
|
|
27
26
|
*/
|
|
28
|
-
export const TaskStatusSchema = z.enum(['open', 'in_progress', '
|
|
27
|
+
export const TaskStatusSchema = z.enum(['open', 'in_progress', 'done', 'cancelled']);
|
|
29
28
|
/**
|
|
30
29
|
* A lightweight reference to a user or project entity, containing just the ID
|
|
31
30
|
* and display name. Used for creator, assignee, closer, and project associations.
|
|
@@ -274,6 +273,8 @@ export const ListTasksParamsSchema = z.object({
|
|
|
274
273
|
priority: TaskPrioritySchema.optional().describe('Filter by priority level.'),
|
|
275
274
|
/** Filter by assigned user ID. */
|
|
276
275
|
assigned_id: z.string().optional().describe('Filter by assigned user ID.'),
|
|
276
|
+
/** Filter by creator user ID. */
|
|
277
|
+
created_id: z.string().optional().describe('Filter by creator user ID.'),
|
|
277
278
|
/** Filter by parent task ID (get subtasks). */
|
|
278
279
|
parent_id: z.string().optional().describe('Filter by parent task ID (get subtasks).'),
|
|
279
280
|
/** Filter by project ID. */
|
|
@@ -477,8 +478,6 @@ export const TaskActivityDataPointSchema = z.object({
|
|
|
477
478
|
inProgress: z.number().describe("Number of tasks in `'in_progress'` status on this date."),
|
|
478
479
|
/** Number of tasks in `'done'` status on this date. */
|
|
479
480
|
done: z.number().describe("Number of tasks in `'done'` status on this date."),
|
|
480
|
-
/** Number of tasks in `'closed'` status on this date. */
|
|
481
|
-
closed: z.number().describe("Number of tasks in `'closed'` status on this date."),
|
|
482
481
|
/** Number of tasks in `'cancelled'` status on this date. */
|
|
483
482
|
cancelled: z.number().describe("Number of tasks in `'cancelled'` status on this date."),
|
|
484
483
|
});
|
|
@@ -513,6 +512,12 @@ const TagNameRequiredError = StructuredError('TagNameRequiredError', 'Tag name i
|
|
|
513
512
|
const AttachmentIdRequiredError = StructuredError('AttachmentIdRequiredError', 'Attachment ID is required and must be a non-empty string');
|
|
514
513
|
/** Thrown when a user ID parameter is empty or not a string. */
|
|
515
514
|
const UserIdRequiredError = StructuredError('UserIdRequiredError', 'User ID is required and must be a non-empty string');
|
|
515
|
+
/** Thrown when a user name parameter is empty or not a string. */
|
|
516
|
+
const UserNameRequiredError = StructuredError('UserNameRequiredError', 'A non-empty user name is required.');
|
|
517
|
+
/** Thrown when a project name parameter is empty or not a string. */
|
|
518
|
+
const ProjectNameRequiredError = StructuredError('ProjectNameRequiredError', 'A non-empty project name is required.');
|
|
519
|
+
/** Thrown when a project ID parameter is empty or not a string. */
|
|
520
|
+
const ProjectIdRequiredError = StructuredError('ProjectIdRequiredError', 'A non-empty project ID is required.');
|
|
516
521
|
/**
|
|
517
522
|
* Thrown when the API returns a success HTTP status but the response body indicates failure.
|
|
518
523
|
*/
|
|
@@ -525,7 +530,7 @@ const TaskStorageResponseError = StructuredError('TaskStorageResponseError')();
|
|
|
525
530
|
* presigned S3 URLs, changelog tracking, and activity analytics.
|
|
526
531
|
*
|
|
527
532
|
* Tasks support lifecycle management through status transitions (`open` → `in_progress`
|
|
528
|
-
* → `done`/`
|
|
533
|
+
* → `done`/`cancelled`) with automatic date tracking for each transition.
|
|
529
534
|
*
|
|
530
535
|
* All methods validate inputs client-side and throw structured errors for invalid
|
|
531
536
|
* parameters. API errors throw {@link ServiceException}.
|
|
@@ -691,6 +696,8 @@ export class TaskStorageService {
|
|
|
691
696
|
queryParams.set('priority', params.priority);
|
|
692
697
|
if (params?.assigned_id)
|
|
693
698
|
queryParams.set('assigned_id', params.assigned_id);
|
|
699
|
+
if (params?.created_id)
|
|
700
|
+
queryParams.set('created_id', params.created_id);
|
|
694
701
|
if (params?.parent_id)
|
|
695
702
|
queryParams.set('parent_id', params.parent_id);
|
|
696
703
|
if (params?.project_id)
|
|
@@ -785,17 +792,17 @@ export class TaskStorageService {
|
|
|
785
792
|
throw await toServiceException('PATCH', url, res.response);
|
|
786
793
|
}
|
|
787
794
|
/**
|
|
788
|
-
* Close a task by setting its status to
|
|
795
|
+
* Close a task by setting its status to done.
|
|
789
796
|
*
|
|
790
797
|
* @param id - The unique task identifier
|
|
791
|
-
* @returns The
|
|
798
|
+
* @returns The task with status set to done and updated closed_date
|
|
792
799
|
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
793
800
|
* @throws {@link ServiceException} if the API request fails
|
|
794
801
|
*
|
|
795
802
|
* @example
|
|
796
803
|
* ```typescript
|
|
797
|
-
* const
|
|
798
|
-
* console.log('
|
|
804
|
+
* const task = await tasks.close('task_abc123');
|
|
805
|
+
* console.log('Done at:', task.closed_date);
|
|
799
806
|
* ```
|
|
800
807
|
*/
|
|
801
808
|
async close(id) {
|
|
@@ -923,7 +930,7 @@ export class TaskStorageService {
|
|
|
923
930
|
*
|
|
924
931
|
* @example
|
|
925
932
|
* ```typescript
|
|
926
|
-
* const result = await tasks.batchDelete({ status: '
|
|
933
|
+
* const result = await tasks.batchDelete({ status: 'done', older_than: '7d', limit: 50 });
|
|
927
934
|
* console.log(`Deleted ${result.count} tasks`);
|
|
928
935
|
* ```
|
|
929
936
|
*/
|
|
@@ -1839,6 +1846,244 @@ export class TaskStorageService {
|
|
|
1839
1846
|
}
|
|
1840
1847
|
throw await toServiceException('GET', url, res.response);
|
|
1841
1848
|
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Create a new user entity.
|
|
1851
|
+
*
|
|
1852
|
+
* @param params - The user creation parameters including name and optional type
|
|
1853
|
+
* @returns The created user entity reference
|
|
1854
|
+
* @throws {@link UserNameRequiredError} if the name is empty or not a string
|
|
1855
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1856
|
+
*
|
|
1857
|
+
* @example
|
|
1858
|
+
* ```typescript
|
|
1859
|
+
* const user = await tasks.createUser({ name: 'Jane Doe', type: 'human' });
|
|
1860
|
+
* console.log('Created user:', user.id, user.name);
|
|
1861
|
+
* ```
|
|
1862
|
+
*/
|
|
1863
|
+
async createUser(params) {
|
|
1864
|
+
if (!params?.name || typeof params.name !== 'string' || params.name.trim().length === 0) {
|
|
1865
|
+
throw new UserNameRequiredError();
|
|
1866
|
+
}
|
|
1867
|
+
const normalizedName = params.name.trim();
|
|
1868
|
+
const url = buildUrl(this.#baseUrl, `/task/users/create/${TASK_API_VERSION}`);
|
|
1869
|
+
const signal = AbortSignal.timeout(30_000);
|
|
1870
|
+
const res = await this.#adapter.invoke(url, {
|
|
1871
|
+
method: 'POST',
|
|
1872
|
+
body: safeStringify({ ...params, name: normalizedName }),
|
|
1873
|
+
contentType: 'application/json',
|
|
1874
|
+
signal,
|
|
1875
|
+
telemetry: {
|
|
1876
|
+
name: 'agentuity.task.createUser',
|
|
1877
|
+
attributes: { userName: normalizedName },
|
|
1878
|
+
},
|
|
1879
|
+
});
|
|
1880
|
+
if (res.ok) {
|
|
1881
|
+
if (res.data.success) {
|
|
1882
|
+
return res.data.data;
|
|
1883
|
+
}
|
|
1884
|
+
throw new TaskStorageResponseError({
|
|
1885
|
+
status: res.response.status,
|
|
1886
|
+
message: res.data.message,
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
throw await toServiceException('POST', url, res.response);
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Get a user entity by ID.
|
|
1893
|
+
*
|
|
1894
|
+
* @param userId - The unique user identifier
|
|
1895
|
+
* @returns The user entity reference
|
|
1896
|
+
* @throws {@link UserIdRequiredError} if the user ID is empty or not a string
|
|
1897
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1898
|
+
*
|
|
1899
|
+
* @example
|
|
1900
|
+
* ```typescript
|
|
1901
|
+
* const user = await tasks.getUser('usr_abc123');
|
|
1902
|
+
* console.log(`${user.name} (${user.type})`);
|
|
1903
|
+
* ```
|
|
1904
|
+
*/
|
|
1905
|
+
async getUser(userId) {
|
|
1906
|
+
if (!userId || typeof userId !== 'string' || userId.trim().length === 0) {
|
|
1907
|
+
throw new UserIdRequiredError();
|
|
1908
|
+
}
|
|
1909
|
+
const url = buildUrl(this.#baseUrl, `/task/users/get/${TASK_API_VERSION}/${encodeURIComponent(userId)}`);
|
|
1910
|
+
const signal = AbortSignal.timeout(30_000);
|
|
1911
|
+
const res = await this.#adapter.invoke(url, {
|
|
1912
|
+
method: 'GET',
|
|
1913
|
+
signal,
|
|
1914
|
+
telemetry: {
|
|
1915
|
+
name: 'agentuity.task.getUser',
|
|
1916
|
+
attributes: { userId },
|
|
1917
|
+
},
|
|
1918
|
+
});
|
|
1919
|
+
if (res.ok) {
|
|
1920
|
+
if (res.data.success) {
|
|
1921
|
+
return res.data.data;
|
|
1922
|
+
}
|
|
1923
|
+
throw new TaskStorageResponseError({
|
|
1924
|
+
status: res.response.status,
|
|
1925
|
+
message: res.data.message,
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
throw await toServiceException('GET', url, res.response);
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* Delete a user entity.
|
|
1932
|
+
*
|
|
1933
|
+
* @param userId - The unique user identifier
|
|
1934
|
+
* @throws {@link UserIdRequiredError} if the user ID is empty or not a string
|
|
1935
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1936
|
+
*
|
|
1937
|
+
* @example
|
|
1938
|
+
* ```typescript
|
|
1939
|
+
* await tasks.deleteUser('usr_abc123');
|
|
1940
|
+
* console.log('User deleted');
|
|
1941
|
+
* ```
|
|
1942
|
+
*/
|
|
1943
|
+
async deleteUser(userId) {
|
|
1944
|
+
if (!userId || typeof userId !== 'string' || userId.trim().length === 0) {
|
|
1945
|
+
throw new UserIdRequiredError();
|
|
1946
|
+
}
|
|
1947
|
+
const url = buildUrl(this.#baseUrl, `/task/users/delete/${TASK_API_VERSION}/${encodeURIComponent(userId)}`);
|
|
1948
|
+
const signal = AbortSignal.timeout(30_000);
|
|
1949
|
+
const res = await this.#adapter.invoke(url, {
|
|
1950
|
+
method: 'DELETE',
|
|
1951
|
+
signal,
|
|
1952
|
+
telemetry: {
|
|
1953
|
+
name: 'agentuity.task.deleteUser',
|
|
1954
|
+
attributes: { userId },
|
|
1955
|
+
},
|
|
1956
|
+
});
|
|
1957
|
+
if (res.ok) {
|
|
1958
|
+
if (res.data?.success === false) {
|
|
1959
|
+
throw new TaskStorageResponseError({
|
|
1960
|
+
status: res.response.status,
|
|
1961
|
+
message: res.data.message ?? 'Operation failed',
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
return;
|
|
1965
|
+
}
|
|
1966
|
+
throw await toServiceException('DELETE', url, res.response);
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Create a new project entity.
|
|
1970
|
+
*
|
|
1971
|
+
* @param params - The project creation parameters including name
|
|
1972
|
+
* @returns The created project entity reference
|
|
1973
|
+
* @throws {@link ProjectNameRequiredError} if the name is empty or not a string
|
|
1974
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1975
|
+
*
|
|
1976
|
+
* @example
|
|
1977
|
+
* ```typescript
|
|
1978
|
+
* const project = await tasks.createProject({ name: 'My Project' });
|
|
1979
|
+
* console.log('Created project:', project.id, project.name);
|
|
1980
|
+
* ```
|
|
1981
|
+
*/
|
|
1982
|
+
async createProject(params) {
|
|
1983
|
+
if (!params?.name || typeof params.name !== 'string' || params.name.trim().length === 0) {
|
|
1984
|
+
throw new ProjectNameRequiredError();
|
|
1985
|
+
}
|
|
1986
|
+
const normalizedName = params.name.trim();
|
|
1987
|
+
const url = buildUrl(this.#baseUrl, `/task/projects/create/${TASK_API_VERSION}`);
|
|
1988
|
+
const signal = AbortSignal.timeout(30_000);
|
|
1989
|
+
const res = await this.#adapter.invoke(url, {
|
|
1990
|
+
method: 'POST',
|
|
1991
|
+
body: safeStringify({ ...params, name: normalizedName }),
|
|
1992
|
+
contentType: 'application/json',
|
|
1993
|
+
signal,
|
|
1994
|
+
telemetry: {
|
|
1995
|
+
name: 'agentuity.task.createProject',
|
|
1996
|
+
attributes: { projectName: normalizedName },
|
|
1997
|
+
},
|
|
1998
|
+
});
|
|
1999
|
+
if (res.ok) {
|
|
2000
|
+
if (res.data.success) {
|
|
2001
|
+
return res.data.data;
|
|
2002
|
+
}
|
|
2003
|
+
throw new TaskStorageResponseError({
|
|
2004
|
+
status: res.response.status,
|
|
2005
|
+
message: res.data.message,
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
throw await toServiceException('POST', url, res.response);
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* Get a project entity by ID.
|
|
2012
|
+
*
|
|
2013
|
+
* @param projectId - The unique project identifier
|
|
2014
|
+
* @returns The project entity reference
|
|
2015
|
+
* @throws {@link ProjectIdRequiredError} if the project ID is empty or not a string
|
|
2016
|
+
* @throws {@link ServiceException} if the API request fails
|
|
2017
|
+
*
|
|
2018
|
+
* @example
|
|
2019
|
+
* ```typescript
|
|
2020
|
+
* const project = await tasks.getProject('prj_abc123');
|
|
2021
|
+
* console.log(`${project.name} (${project.id})`);
|
|
2022
|
+
* ```
|
|
2023
|
+
*/
|
|
2024
|
+
async getProject(projectId) {
|
|
2025
|
+
if (!projectId || typeof projectId !== 'string' || projectId.trim().length === 0) {
|
|
2026
|
+
throw new ProjectIdRequiredError();
|
|
2027
|
+
}
|
|
2028
|
+
const url = buildUrl(this.#baseUrl, `/task/projects/get/${TASK_API_VERSION}/${encodeURIComponent(projectId)}`);
|
|
2029
|
+
const signal = AbortSignal.timeout(30_000);
|
|
2030
|
+
const res = await this.#adapter.invoke(url, {
|
|
2031
|
+
method: 'GET',
|
|
2032
|
+
signal,
|
|
2033
|
+
telemetry: {
|
|
2034
|
+
name: 'agentuity.task.getProject',
|
|
2035
|
+
attributes: { projectId },
|
|
2036
|
+
},
|
|
2037
|
+
});
|
|
2038
|
+
if (res.ok) {
|
|
2039
|
+
if (res.data.success) {
|
|
2040
|
+
return res.data.data;
|
|
2041
|
+
}
|
|
2042
|
+
throw new TaskStorageResponseError({
|
|
2043
|
+
status: res.response.status,
|
|
2044
|
+
message: res.data.message,
|
|
2045
|
+
});
|
|
2046
|
+
}
|
|
2047
|
+
throw await toServiceException('GET', url, res.response);
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Delete a project entity.
|
|
2051
|
+
*
|
|
2052
|
+
* @param projectId - The unique project identifier
|
|
2053
|
+
* @throws {@link ProjectIdRequiredError} if the project ID is empty or not a string
|
|
2054
|
+
* @throws {@link ServiceException} if the API request fails
|
|
2055
|
+
*
|
|
2056
|
+
* @example
|
|
2057
|
+
* ```typescript
|
|
2058
|
+
* await tasks.deleteProject('prj_abc123');
|
|
2059
|
+
* console.log('Project deleted');
|
|
2060
|
+
* ```
|
|
2061
|
+
*/
|
|
2062
|
+
async deleteProject(projectId) {
|
|
2063
|
+
if (!projectId || typeof projectId !== 'string' || projectId.trim().length === 0) {
|
|
2064
|
+
throw new ProjectIdRequiredError();
|
|
2065
|
+
}
|
|
2066
|
+
const url = buildUrl(this.#baseUrl, `/task/projects/delete/${TASK_API_VERSION}/${encodeURIComponent(projectId)}`);
|
|
2067
|
+
const signal = AbortSignal.timeout(30_000);
|
|
2068
|
+
const res = await this.#adapter.invoke(url, {
|
|
2069
|
+
method: 'DELETE',
|
|
2070
|
+
signal,
|
|
2071
|
+
telemetry: {
|
|
2072
|
+
name: 'agentuity.task.deleteProject',
|
|
2073
|
+
attributes: { projectId },
|
|
2074
|
+
},
|
|
2075
|
+
});
|
|
2076
|
+
if (res.ok) {
|
|
2077
|
+
if (res.data?.success === false) {
|
|
2078
|
+
throw new TaskStorageResponseError({
|
|
2079
|
+
status: res.response.status,
|
|
2080
|
+
message: res.data.message ?? 'Operation failed',
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
return;
|
|
2084
|
+
}
|
|
2085
|
+
throw await toServiceException('DELETE', url, res.response);
|
|
2086
|
+
}
|
|
1842
2087
|
/**
|
|
1843
2088
|
* Get task activity time-series data showing daily task counts by status.
|
|
1844
2089
|
*
|