@dexto/tools-todo 0.1.1
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/LICENSE +44 -0
- package/dist/error-codes.cjs +34 -0
- package/dist/error-codes.d.cts +11 -0
- package/dist/error-codes.d.ts +11 -0
- package/dist/error-codes.js +10 -0
- package/dist/errors.cjs +84 -0
- package/dist/errors.d.cts +32 -0
- package/dist/errors.d.ts +32 -0
- package/dist/errors.js +60 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +14 -0
- package/dist/todo-service.cjs +187 -0
- package/dist/todo-service.d.cts +53 -0
- package/dist/todo-service.d.ts +53 -0
- package/dist/todo-service.js +163 -0
- package/dist/todo-write-tool.cjs +75 -0
- package/dist/todo-write-tool.d.cts +16 -0
- package/dist/todo-write-tool.d.ts +16 -0
- package/dist/todo-write-tool.js +51 -0
- package/dist/tool-provider.cjs +68 -0
- package/dist/tool-provider.d.cts +39 -0
- package/dist/tool-provider.d.ts +39 -0
- package/dist/tool-provider.js +44 -0
- package/dist/types.cjs +28 -0
- package/dist/types.d.cts +56 -0
- package/dist/types.d.ts +56 -0
- package/dist/types.js +4 -0
- package/package.json +39 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Service Types
|
|
3
|
+
*
|
|
4
|
+
* Types for todo list management and workflow tracking
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Valid todo status values
|
|
8
|
+
* Centralized constant to prevent duplication across domains
|
|
9
|
+
*/
|
|
10
|
+
declare const TODO_STATUS_VALUES: readonly ["pending", "in_progress", "completed"];
|
|
11
|
+
/**
|
|
12
|
+
* Todo item status
|
|
13
|
+
*/
|
|
14
|
+
type TodoStatus = (typeof TODO_STATUS_VALUES)[number];
|
|
15
|
+
/**
|
|
16
|
+
* Todo item with system metadata
|
|
17
|
+
*/
|
|
18
|
+
interface Todo {
|
|
19
|
+
id: string;
|
|
20
|
+
sessionId: string;
|
|
21
|
+
content: string;
|
|
22
|
+
activeForm: string;
|
|
23
|
+
status: TodoStatus;
|
|
24
|
+
position: number;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Todo input from tool (without system metadata)
|
|
30
|
+
*/
|
|
31
|
+
interface TodoInput {
|
|
32
|
+
content: string;
|
|
33
|
+
activeForm: string;
|
|
34
|
+
status: TodoStatus;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Todo list update result
|
|
38
|
+
*/
|
|
39
|
+
interface TodoUpdateResult {
|
|
40
|
+
todos: Todo[];
|
|
41
|
+
sessionId: string;
|
|
42
|
+
created: number;
|
|
43
|
+
updated: number;
|
|
44
|
+
deleted: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Configuration for TodoService
|
|
48
|
+
*/
|
|
49
|
+
interface TodoConfig {
|
|
50
|
+
/** Maximum todos per session */
|
|
51
|
+
maxTodosPerSession?: number;
|
|
52
|
+
/** Enable real-time events */
|
|
53
|
+
enableEvents?: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { TODO_STATUS_VALUES, type Todo, type TodoConfig, type TodoInput, type TodoStatus, type TodoUpdateResult };
|
package/dist/types.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dexto/tools-todo",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Todo/task tracking tools provider for Dexto agents",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"dexto",
|
|
16
|
+
"tools",
|
|
17
|
+
"todo",
|
|
18
|
+
"task-tracking"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"nanoid": "^5.0.9",
|
|
22
|
+
"zod": "^3.25.0",
|
|
23
|
+
"@dexto/core": "1.5.5"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"tsup": "^8.0.0",
|
|
27
|
+
"typescript": "^5.3.3",
|
|
28
|
+
"vitest": "^2.1.8"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"clean": "rm -rf dist"
|
|
38
|
+
}
|
|
39
|
+
}
|