@hasna/todos 0.11.47 → 0.11.48

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 (240) hide show
  1. package/LICENSE +2 -1
  2. package/README.md +1232 -11
  3. package/dashboard/dist/assets/{index-B-w1tUlm.js → index-C3fBxEWP.js} +18 -18
  4. package/dashboard/dist/assets/index-DJm6m6Yy.css +1 -0
  5. package/dashboard/dist/index.html +2 -2
  6. package/dist/cli/index.js +46559 -28624
  7. package/dist/mcp/index.js +31815 -21499
  8. package/dist/sdk/index.js +632 -0
  9. package/dist/server/index.js +75144 -2653
  10. package/package.json +30 -6
  11. package/dashboard/dist/assets/index-BXQ39iMX.css +0 -1
  12. package/dist/cli/brains.d.ts +0 -3
  13. package/dist/cli/brains.d.ts.map +0 -1
  14. package/dist/cli/commands/agent-commands.d.ts +0 -3
  15. package/dist/cli/commands/agent-commands.d.ts.map +0 -1
  16. package/dist/cli/commands/api-key-commands.d.ts +0 -3
  17. package/dist/cli/commands/api-key-commands.d.ts.map +0 -1
  18. package/dist/cli/commands/cloud-commands.d.ts +0 -3
  19. package/dist/cli/commands/cloud-commands.d.ts.map +0 -1
  20. package/dist/cli/commands/config-serve-commands.d.ts +0 -3
  21. package/dist/cli/commands/config-serve-commands.d.ts.map +0 -1
  22. package/dist/cli/commands/dispatch.d.ts +0 -3
  23. package/dist/cli/commands/dispatch.d.ts.map +0 -1
  24. package/dist/cli/commands/machines.d.ts +0 -3
  25. package/dist/cli/commands/machines.d.ts.map +0 -1
  26. package/dist/cli/commands/mcp-hooks-commands.d.ts +0 -3
  27. package/dist/cli/commands/mcp-hooks-commands.d.ts.map +0 -1
  28. package/dist/cli/commands/plan-template-commands.d.ts +0 -3
  29. package/dist/cli/commands/plan-template-commands.d.ts.map +0 -1
  30. package/dist/cli/commands/project-commands.d.ts +0 -3
  31. package/dist/cli/commands/project-commands.d.ts.map +0 -1
  32. package/dist/cli/commands/query-commands.d.ts +0 -3
  33. package/dist/cli/commands/query-commands.d.ts.map +0 -1
  34. package/dist/cli/commands/task-commands.d.ts +0 -3
  35. package/dist/cli/commands/task-commands.d.ts.map +0 -1
  36. package/dist/cli/components/App.d.ts +0 -2
  37. package/dist/cli/components/App.d.ts.map +0 -1
  38. package/dist/cli/components/Dashboard.d.ts +0 -7
  39. package/dist/cli/components/Dashboard.d.ts.map +0 -1
  40. package/dist/cli/components/Header.d.ts +0 -8
  41. package/dist/cli/components/Header.d.ts.map +0 -1
  42. package/dist/cli/components/ProjectList.d.ts +0 -8
  43. package/dist/cli/components/ProjectList.d.ts.map +0 -1
  44. package/dist/cli/components/SearchView.d.ts +0 -10
  45. package/dist/cli/components/SearchView.d.ts.map +0 -1
  46. package/dist/cli/components/TaskDetail.d.ts +0 -7
  47. package/dist/cli/components/TaskDetail.d.ts.map +0 -1
  48. package/dist/cli/components/TaskForm.d.ts +0 -15
  49. package/dist/cli/components/TaskForm.d.ts.map +0 -1
  50. package/dist/cli/components/TaskList.d.ts +0 -8
  51. package/dist/cli/components/TaskList.d.ts.map +0 -1
  52. package/dist/cli/helpers.d.ts +0 -22
  53. package/dist/cli/helpers.d.ts.map +0 -1
  54. package/dist/cli/index.d.ts +0 -3
  55. package/dist/cli/index.d.ts.map +0 -1
  56. package/dist/db/agent-metrics.d.ts +0 -34
  57. package/dist/db/agent-metrics.d.ts.map +0 -1
  58. package/dist/db/agent-names.d.ts +0 -27
  59. package/dist/db/agent-names.d.ts.map +0 -1
  60. package/dist/db/agents.d.ts +0 -84
  61. package/dist/db/agents.d.ts.map +0 -1
  62. package/dist/db/api-keys.d.ts +0 -28
  63. package/dist/db/api-keys.d.ts.map +0 -1
  64. package/dist/db/audit.d.ts +0 -52
  65. package/dist/db/audit.d.ts.map +0 -1
  66. package/dist/db/budgets.d.ts +0 -27
  67. package/dist/db/budgets.d.ts.map +0 -1
  68. package/dist/db/builtin-templates.d.ts +0 -22
  69. package/dist/db/builtin-templates.d.ts.map +0 -1
  70. package/dist/db/checklists.d.ts +0 -13
  71. package/dist/db/checklists.d.ts.map +0 -1
  72. package/dist/db/checkpoints.d.ts +0 -55
  73. package/dist/db/checkpoints.d.ts.map +0 -1
  74. package/dist/db/comments.d.ts +0 -11
  75. package/dist/db/comments.d.ts.map +0 -1
  76. package/dist/db/cycles.d.ts +0 -78
  77. package/dist/db/cycles.d.ts.map +0 -1
  78. package/dist/db/database.d.ts +0 -12
  79. package/dist/db/database.d.ts.map +0 -1
  80. package/dist/db/dispatches.d.ts +0 -15
  81. package/dist/db/dispatches.d.ts.map +0 -1
  82. package/dist/db/file-locks.d.ts +0 -43
  83. package/dist/db/file-locks.d.ts.map +0 -1
  84. package/dist/db/handoffs.d.ts +0 -25
  85. package/dist/db/handoffs.d.ts.map +0 -1
  86. package/dist/db/kg.d.ts +0 -70
  87. package/dist/db/kg.d.ts.map +0 -1
  88. package/dist/db/locks.d.ts +0 -14
  89. package/dist/db/locks.d.ts.map +0 -1
  90. package/dist/db/machines.d.ts +0 -46
  91. package/dist/db/machines.d.ts.map +0 -1
  92. package/dist/db/migrations.d.ts +0 -2
  93. package/dist/db/migrations.d.ts.map +0 -1
  94. package/dist/db/orgs.d.ts +0 -13
  95. package/dist/db/orgs.d.ts.map +0 -1
  96. package/dist/db/patrol.d.ts +0 -35
  97. package/dist/db/patrol.d.ts.map +0 -1
  98. package/dist/db/pg-migrate.d.ts +0 -14
  99. package/dist/db/pg-migrate.d.ts.map +0 -1
  100. package/dist/db/pg-migrations.d.ts +0 -8
  101. package/dist/db/pg-migrations.d.ts.map +0 -1
  102. package/dist/db/plans.d.ts +0 -8
  103. package/dist/db/plans.d.ts.map +0 -1
  104. package/dist/db/project-agent-roles.d.ts +0 -34
  105. package/dist/db/project-agent-roles.d.ts.map +0 -1
  106. package/dist/db/projects.d.ts +0 -54
  107. package/dist/db/projects.d.ts.map +0 -1
  108. package/dist/db/schema.d.ts +0 -5
  109. package/dist/db/schema.d.ts.map +0 -1
  110. package/dist/db/sessions.d.ts +0 -8
  111. package/dist/db/sessions.d.ts.map +0 -1
  112. package/dist/db/snapshots.d.ts +0 -37
  113. package/dist/db/snapshots.d.ts.map +0 -1
  114. package/dist/db/task-claim.d.ts +0 -7
  115. package/dist/db/task-claim.d.ts.map +0 -1
  116. package/dist/db/task-commits.d.ts +0 -31
  117. package/dist/db/task-commits.d.ts.map +0 -1
  118. package/dist/db/task-crud.d.ts +0 -13
  119. package/dist/db/task-crud.d.ts.map +0 -1
  120. package/dist/db/task-files.d.ts +0 -74
  121. package/dist/db/task-files.d.ts.map +0 -1
  122. package/dist/db/task-graph.d.ts +0 -27
  123. package/dist/db/task-graph.d.ts.map +0 -1
  124. package/dist/db/task-lifecycle.d.ts +0 -81
  125. package/dist/db/task-lifecycle.d.ts.map +0 -1
  126. package/dist/db/task-lists.d.ts +0 -10
  127. package/dist/db/task-lists.d.ts.map +0 -1
  128. package/dist/db/task-relations.d.ts +0 -110
  129. package/dist/db/task-relations.d.ts.map +0 -1
  130. package/dist/db/task-relationships.d.ts +0 -36
  131. package/dist/db/task-relationships.d.ts.map +0 -1
  132. package/dist/db/task-status.d.ts +0 -65
  133. package/dist/db/task-status.d.ts.map +0 -1
  134. package/dist/db/task-workflow.d.ts +0 -7
  135. package/dist/db/task-workflow.d.ts.map +0 -1
  136. package/dist/db/tasks.d.ts +0 -11
  137. package/dist/db/tasks.d.ts.map +0 -1
  138. package/dist/db/templates.d.ts +0 -98
  139. package/dist/db/templates.d.ts.map +0 -1
  140. package/dist/db/traces.d.ts +0 -38
  141. package/dist/db/traces.d.ts.map +0 -1
  142. package/dist/db/webhooks.d.ts +0 -29
  143. package/dist/db/webhooks.d.ts.map +0 -1
  144. package/dist/index.d.ts +0 -77
  145. package/dist/index.d.ts.map +0 -1
  146. package/dist/index.js +0 -18904
  147. package/dist/lib/agent-tasks.d.ts +0 -11
  148. package/dist/lib/agent-tasks.d.ts.map +0 -1
  149. package/dist/lib/auto-assign.d.ts +0 -25
  150. package/dist/lib/auto-assign.d.ts.map +0 -1
  151. package/dist/lib/burndown.d.ts +0 -18
  152. package/dist/lib/burndown.d.ts.map +0 -1
  153. package/dist/lib/claude-tasks.d.ts +0 -20
  154. package/dist/lib/claude-tasks.d.ts.map +0 -1
  155. package/dist/lib/completion-guard.d.ts +0 -17
  156. package/dist/lib/completion-guard.d.ts.map +0 -1
  157. package/dist/lib/config.d.ts +0 -45
  158. package/dist/lib/config.d.ts.map +0 -1
  159. package/dist/lib/dispatch-formatter.d.ts +0 -21
  160. package/dist/lib/dispatch-formatter.d.ts.map +0 -1
  161. package/dist/lib/dispatch.d.ts +0 -28
  162. package/dist/lib/dispatch.d.ts.map +0 -1
  163. package/dist/lib/extract.d.ts +0 -51
  164. package/dist/lib/extract.d.ts.map +0 -1
  165. package/dist/lib/gatherer.d.ts +0 -16
  166. package/dist/lib/gatherer.d.ts.map +0 -1
  167. package/dist/lib/github.d.ts +0 -25
  168. package/dist/lib/github.d.ts.map +0 -1
  169. package/dist/lib/logger.d.ts +0 -17
  170. package/dist/lib/logger.d.ts.map +0 -1
  171. package/dist/lib/model-config.d.ts +0 -14
  172. package/dist/lib/model-config.d.ts.map +0 -1
  173. package/dist/lib/north-star.d.ts +0 -33
  174. package/dist/lib/north-star.d.ts.map +0 -1
  175. package/dist/lib/package-version.d.ts +0 -2
  176. package/dist/lib/package-version.d.ts.map +0 -1
  177. package/dist/lib/recurrence.d.ts +0 -10
  178. package/dist/lib/recurrence.d.ts.map +0 -1
  179. package/dist/lib/search.d.ts +0 -17
  180. package/dist/lib/search.d.ts.map +0 -1
  181. package/dist/lib/sync-types.d.ts +0 -16
  182. package/dist/lib/sync-types.d.ts.map +0 -1
  183. package/dist/lib/sync-utils.d.ts +0 -12
  184. package/dist/lib/sync-utils.d.ts.map +0 -1
  185. package/dist/lib/sync.d.ts +0 -9
  186. package/dist/lib/sync.d.ts.map +0 -1
  187. package/dist/lib/task-runner.d.ts +0 -101
  188. package/dist/lib/task-runner.d.ts.map +0 -1
  189. package/dist/lib/tmux.d.ts +0 -28
  190. package/dist/lib/tmux.d.ts.map +0 -1
  191. package/dist/mcp/index.d.ts +0 -3
  192. package/dist/mcp/index.d.ts.map +0 -1
  193. package/dist/mcp/token-utils.d.ts +0 -15
  194. package/dist/mcp/token-utils.d.ts.map +0 -1
  195. package/dist/mcp/tools/agents.d.ts +0 -16
  196. package/dist/mcp/tools/agents.d.ts.map +0 -1
  197. package/dist/mcp/tools/cloud.d.ts +0 -12
  198. package/dist/mcp/tools/cloud.d.ts.map +0 -1
  199. package/dist/mcp/tools/code-tools.d.ts +0 -15
  200. package/dist/mcp/tools/code-tools.d.ts.map +0 -1
  201. package/dist/mcp/tools/dispatch.d.ts +0 -9
  202. package/dist/mcp/tools/dispatch.d.ts.map +0 -1
  203. package/dist/mcp/tools/machines.d.ts +0 -8
  204. package/dist/mcp/tools/machines.d.ts.map +0 -1
  205. package/dist/mcp/tools/task-adv-tools.d.ts +0 -20
  206. package/dist/mcp/tools/task-adv-tools.d.ts.map +0 -1
  207. package/dist/mcp/tools/task-auto-tools.d.ts +0 -20
  208. package/dist/mcp/tools/task-auto-tools.d.ts.map +0 -1
  209. package/dist/mcp/tools/task-crud.d.ts +0 -20
  210. package/dist/mcp/tools/task-crud.d.ts.map +0 -1
  211. package/dist/mcp/tools/task-meta-tools.d.ts +0 -12
  212. package/dist/mcp/tools/task-meta-tools.d.ts.map +0 -1
  213. package/dist/mcp/tools/task-project-tools.d.ts +0 -20
  214. package/dist/mcp/tools/task-project-tools.d.ts.map +0 -1
  215. package/dist/mcp/tools/task-rel-tools.d.ts +0 -19
  216. package/dist/mcp/tools/task-rel-tools.d.ts.map +0 -1
  217. package/dist/mcp/tools/task-resources.d.ts +0 -13
  218. package/dist/mcp/tools/task-resources.d.ts.map +0 -1
  219. package/dist/mcp/tools/task-workflow-tools.d.ts +0 -20
  220. package/dist/mcp/tools/task-workflow-tools.d.ts.map +0 -1
  221. package/dist/mcp/tools/templates.d.ts +0 -9
  222. package/dist/mcp/tools/templates.d.ts.map +0 -1
  223. package/dist/mcp/tools/webhooks.d.ts +0 -8
  224. package/dist/mcp/tools/webhooks.d.ts.map +0 -1
  225. package/dist/sdk/client.d.ts +0 -383
  226. package/dist/sdk/client.d.ts.map +0 -1
  227. package/dist/sdk/index.d.ts +0 -14
  228. package/dist/sdk/index.d.ts.map +0 -1
  229. package/dist/sdk/types.d.ts +0 -173
  230. package/dist/sdk/types.d.ts.map +0 -1
  231. package/dist/sdk.d.ts +0 -19
  232. package/dist/sdk.d.ts.map +0 -1
  233. package/dist/server/index.d.ts +0 -9
  234. package/dist/server/index.d.ts.map +0 -1
  235. package/dist/server/routes.d.ts +0 -85
  236. package/dist/server/routes.d.ts.map +0 -1
  237. package/dist/server/serve.d.ts +0 -39
  238. package/dist/server/serve.d.ts.map +0 -1
  239. package/dist/types/index.d.ts +0 -817
  240. package/dist/types/index.d.ts.map +0 -1
@@ -1,817 +0,0 @@
1
- export declare const TASK_STATUSES: readonly ["pending", "in_progress", "completed", "failed", "cancelled"];
2
- export type TaskStatus = (typeof TASK_STATUSES)[number];
3
- export declare const TASK_PRIORITIES: readonly ["low", "medium", "high", "critical"];
4
- export type TaskPriority = (typeof TASK_PRIORITIES)[number];
5
- export declare const PLAN_STATUSES: readonly ["active", "completed", "archived"];
6
- export type PlanStatus = (typeof PLAN_STATUSES)[number];
7
- export interface ProjectSource {
8
- id: string;
9
- project_id: string;
10
- type: string;
11
- name: string;
12
- uri: string;
13
- description: string | null;
14
- metadata: Record<string, unknown>;
15
- created_at: string;
16
- updated_at: string;
17
- }
18
- export interface ProjectSourceRow {
19
- id: string;
20
- project_id: string;
21
- type: string;
22
- name: string;
23
- uri: string;
24
- description: string | null;
25
- metadata: string | null;
26
- created_at: string;
27
- updated_at: string;
28
- }
29
- export interface CreateProjectSourceInput {
30
- project_id: string;
31
- type: string;
32
- name: string;
33
- uri: string;
34
- description?: string;
35
- metadata?: Record<string, unknown>;
36
- }
37
- export interface Project {
38
- id: string;
39
- name: string;
40
- path: string;
41
- description: string | null;
42
- task_list_id: string | null;
43
- task_prefix: string | null;
44
- task_counter: number;
45
- created_at: string;
46
- updated_at: string;
47
- sources?: ProjectSource[];
48
- }
49
- export interface CreateProjectInput {
50
- name: string;
51
- path: string;
52
- description?: string;
53
- task_list_id?: string;
54
- task_prefix?: string;
55
- }
56
- export interface Org {
57
- id: string;
58
- name: string;
59
- description: string | null;
60
- metadata: Record<string, unknown>;
61
- created_at: string;
62
- updated_at: string;
63
- }
64
- export interface CreateOrgInput {
65
- name: string;
66
- description?: string;
67
- metadata?: Record<string, unknown>;
68
- }
69
- export interface Plan {
70
- id: string;
71
- project_id: string | null;
72
- task_list_id: string | null;
73
- agent_id: string | null;
74
- name: string;
75
- description: string | null;
76
- status: PlanStatus;
77
- created_at: string;
78
- updated_at: string;
79
- }
80
- export interface CreatePlanInput {
81
- name: string;
82
- project_id?: string;
83
- task_list_id?: string;
84
- agent_id?: string;
85
- description?: string;
86
- status?: PlanStatus;
87
- }
88
- export interface UpdatePlanInput {
89
- name?: string;
90
- description?: string;
91
- status?: PlanStatus;
92
- task_list_id?: string;
93
- agent_id?: string;
94
- }
95
- export interface Machine {
96
- id: string;
97
- name: string;
98
- hostname: string | null;
99
- platform: string | null;
100
- ssh_address: string | null;
101
- is_primary: boolean;
102
- last_seen_at: string;
103
- archived_at: string | null;
104
- metadata: Record<string, unknown>;
105
- created_at: string;
106
- }
107
- export interface MachineRow {
108
- id: string;
109
- name: string;
110
- hostname: string | null;
111
- platform: string | null;
112
- ssh_address: string | null;
113
- is_primary: number;
114
- last_seen_at: string;
115
- archived_at: string | null;
116
- metadata: string | null;
117
- created_at: string;
118
- }
119
- export type AgentStatus = "active" | "archived";
120
- export interface Agent {
121
- id: string;
122
- name: string;
123
- description: string | null;
124
- role: string | null;
125
- title: string | null;
126
- level: string | null;
127
- permissions: string[];
128
- reports_to: string | null;
129
- org_id: string | null;
130
- capabilities: string[];
131
- status: AgentStatus;
132
- metadata: Record<string, unknown>;
133
- created_at: string;
134
- last_seen_at: string;
135
- session_id: string | null;
136
- working_dir: string | null;
137
- active_project_id: string | null;
138
- }
139
- export interface AgentRow {
140
- id: string;
141
- name: string;
142
- description: string | null;
143
- role: string | null;
144
- title: string | null;
145
- level: string | null;
146
- permissions: string | null;
147
- capabilities: string | null;
148
- reports_to: string | null;
149
- org_id: string | null;
150
- status: string;
151
- metadata: string | null;
152
- created_at: string;
153
- last_seen_at: string;
154
- session_id: string | null;
155
- working_dir: string | null;
156
- active_project_id: string | null;
157
- }
158
- export interface RegisterAgentInput {
159
- name: string;
160
- description?: string;
161
- role?: string;
162
- title?: string;
163
- level?: string;
164
- pool?: string[];
165
- permissions?: string[];
166
- capabilities?: string[];
167
- reports_to?: string;
168
- org_id?: string;
169
- metadata?: Record<string, unknown>;
170
- session_id?: string;
171
- working_dir?: string;
172
- project_id?: string;
173
- force?: boolean;
174
- }
175
- export interface AgentConflictError {
176
- conflict: true;
177
- existing_id: string;
178
- existing_name: string;
179
- last_seen_at: string;
180
- session_hint: string | null;
181
- working_dir: string | null;
182
- message: string;
183
- suggestions?: string[];
184
- }
185
- export interface ApiKey {
186
- id: string;
187
- name: string;
188
- prefix: string;
189
- permissions: string[];
190
- created_at: string;
191
- last_used_at: string | null;
192
- expires_at: string | null;
193
- revoked_at: string | null;
194
- }
195
- export interface TaskList {
196
- id: string;
197
- project_id: string | null;
198
- slug: string;
199
- name: string;
200
- description: string | null;
201
- metadata: Record<string, unknown>;
202
- created_at: string;
203
- updated_at: string;
204
- }
205
- export interface TaskListRow {
206
- id: string;
207
- project_id: string | null;
208
- slug: string;
209
- name: string;
210
- description: string | null;
211
- metadata: string | null;
212
- created_at: string;
213
- updated_at: string;
214
- }
215
- export interface CreateTaskListInput {
216
- name: string;
217
- slug?: string;
218
- project_id?: string;
219
- description?: string;
220
- metadata?: Record<string, unknown>;
221
- }
222
- export interface UpdateTaskListInput {
223
- name?: string;
224
- description?: string;
225
- metadata?: Record<string, unknown>;
226
- }
227
- export interface Task {
228
- id: string;
229
- short_id: string | null;
230
- project_id: string | null;
231
- parent_id: string | null;
232
- plan_id: string | null;
233
- task_list_id: string | null;
234
- title: string;
235
- description: string | null;
236
- status: TaskStatus;
237
- priority: TaskPriority;
238
- agent_id: string | null;
239
- assigned_to: string | null;
240
- session_id: string | null;
241
- working_dir: string | null;
242
- tags: string[];
243
- metadata: Record<string, unknown>;
244
- version: number;
245
- locked_by: string | null;
246
- locked_at: string | null;
247
- created_at: string;
248
- updated_at: string;
249
- started_at: string | null;
250
- completed_at: string | null;
251
- due_at: string | null;
252
- estimated_minutes: number | null;
253
- actual_minutes: number | null;
254
- requires_approval: boolean;
255
- approved_by: string | null;
256
- approved_at: string | null;
257
- recurrence_rule: string | null;
258
- recurrence_parent_id: string | null;
259
- spawns_template_id: string | null;
260
- confidence: number | null;
261
- reason: string | null;
262
- spawned_from_session: string | null;
263
- assigned_by: string | null;
264
- assigned_from_project: string | null;
265
- task_type: string | null;
266
- cost_tokens: number;
267
- cost_usd: number;
268
- delegated_from: string | null;
269
- delegation_depth: number;
270
- retry_count: number;
271
- max_retries: number;
272
- retry_after: string | null;
273
- sla_minutes: number | null;
274
- runner_id: string | null;
275
- runner_started_at: string | null;
276
- runner_completed_at: string | null;
277
- current_step: string | null;
278
- total_steps: number | null;
279
- }
280
- export interface ChecklistItem {
281
- id: string;
282
- task_id: string;
283
- position: number;
284
- text: string;
285
- checked: boolean;
286
- created_at: string;
287
- updated_at: string;
288
- }
289
- export interface ChecklistItemRow {
290
- id: string;
291
- task_id: string;
292
- position: number;
293
- text: string;
294
- checked: number;
295
- created_at: string;
296
- updated_at: string;
297
- }
298
- export interface CreateChecklistItemInput {
299
- task_id: string;
300
- text: string;
301
- position?: number;
302
- }
303
- export interface TaskWithRelations extends Task {
304
- subtasks: Task[];
305
- dependencies: Task[];
306
- blocked_by: Task[];
307
- comments: TaskComment[];
308
- parent: Task | null;
309
- checklist: ChecklistItem[];
310
- }
311
- export interface CreateTaskInput {
312
- title: string;
313
- description?: string;
314
- project_id?: string;
315
- parent_id?: string;
316
- plan_id?: string;
317
- task_list_id?: string;
318
- cycle_id?: string;
319
- status?: TaskStatus;
320
- priority?: TaskPriority;
321
- agent_id?: string;
322
- assigned_to?: string;
323
- session_id?: string;
324
- working_dir?: string;
325
- tags?: string[];
326
- metadata?: Record<string, unknown>;
327
- due_at?: string;
328
- estimated_minutes?: number;
329
- confidence?: number;
330
- retry_count?: number;
331
- max_retries?: number;
332
- retry_after?: string | null;
333
- requires_approval?: boolean;
334
- recurrence_rule?: string;
335
- recurrence_parent_id?: string;
336
- spawns_template_id?: string;
337
- reason?: string;
338
- spawned_from_session?: string;
339
- assigned_by?: string;
340
- assigned_from_project?: string;
341
- task_type?: string;
342
- }
343
- export interface UpdateTaskInput {
344
- title?: string;
345
- description?: string;
346
- status?: TaskStatus;
347
- priority?: TaskPriority;
348
- project_id?: string | null;
349
- assigned_to?: string;
350
- plan_id?: string | null;
351
- task_list_id?: string;
352
- cycle_id?: string | null;
353
- tags?: string[];
354
- metadata?: Record<string, unknown>;
355
- due_at?: string | null;
356
- estimated_minutes?: number;
357
- actual_minutes?: number;
358
- completed_at?: string | null;
359
- confidence?: number | null;
360
- retry_count?: number;
361
- max_retries?: number;
362
- retry_after?: string | null;
363
- requires_approval?: boolean;
364
- approved_by?: string;
365
- recurrence_rule?: string | null;
366
- version: number;
367
- task_type?: string | null;
368
- }
369
- export interface TaskFilter {
370
- project_id?: string;
371
- parent_id?: string | null;
372
- plan_id?: string;
373
- task_list_id?: string;
374
- /** Filter to specific task IDs. When provided, only matching tasks are returned. */
375
- ids?: string[];
376
- status?: TaskStatus | TaskStatus[];
377
- priority?: TaskPriority | TaskPriority[];
378
- assigned_to?: string;
379
- agent_id?: string;
380
- session_id?: string;
381
- tags?: string[];
382
- has_recurrence?: boolean;
383
- include_subtasks?: boolean;
384
- task_type?: string | string[];
385
- limit?: number;
386
- offset?: number;
387
- /** Opaque cursor from a prior list_tasks response — stable pagination that survives concurrent mutations */
388
- cursor?: string;
389
- /** When true, include archived tasks. Default: false (archived tasks excluded) */
390
- include_archived?: boolean;
391
- }
392
- export interface TaskDependency {
393
- task_id: string;
394
- depends_on: string;
395
- external_project_id?: string | null;
396
- external_task_id?: string | null;
397
- }
398
- export interface TaskTimeLog {
399
- id: string;
400
- task_id: string;
401
- agent_id: string | null;
402
- started_at: string | null;
403
- ended_at: string | null;
404
- minutes: number;
405
- notes: string | null;
406
- created_at: string;
407
- }
408
- export interface TaskWatcher {
409
- id: string;
410
- task_id: string;
411
- agent_id: string;
412
- created_at: string;
413
- }
414
- export interface TaskWatcherRow {
415
- id: string;
416
- task_id: string;
417
- agent_id: string;
418
- created_at: string;
419
- }
420
- export interface TaskComment {
421
- id: string;
422
- task_id: string;
423
- agent_id: string | null;
424
- session_id: string | null;
425
- content: string;
426
- type: 'comment' | 'progress' | 'note';
427
- progress_pct: number | null;
428
- created_at: string;
429
- }
430
- export interface CreateCommentInput {
431
- task_id: string;
432
- content: string;
433
- agent_id?: string;
434
- session_id?: string;
435
- type?: 'comment' | 'progress' | 'note';
436
- progress_pct?: number;
437
- }
438
- export interface Session {
439
- id: string;
440
- agent_id: string | null;
441
- project_id: string | null;
442
- working_dir: string | null;
443
- started_at: string;
444
- last_activity: string;
445
- metadata: Record<string, unknown>;
446
- }
447
- export interface CreateSessionInput {
448
- agent_id?: string;
449
- project_id?: string;
450
- working_dir?: string;
451
- metadata?: Record<string, unknown>;
452
- }
453
- export interface TaskRow {
454
- id: string;
455
- short_id: string | null;
456
- project_id: string | null;
457
- parent_id: string | null;
458
- plan_id: string | null;
459
- task_list_id: string | null;
460
- title: string;
461
- description: string | null;
462
- status: string;
463
- priority: string;
464
- agent_id: string | null;
465
- assigned_to: string | null;
466
- session_id: string | null;
467
- working_dir: string | null;
468
- tags: string | null;
469
- metadata: string | null;
470
- version: number;
471
- locked_by: string | null;
472
- locked_at: string | null;
473
- created_at: string;
474
- updated_at: string;
475
- started_at: string | null;
476
- completed_at: string | null;
477
- due_at: string | null;
478
- estimated_minutes: number | null;
479
- requires_approval: number;
480
- approved_by: string | null;
481
- approved_at: string | null;
482
- recurrence_rule: string | null;
483
- recurrence_parent_id: string | null;
484
- spawns_template_id: string | null;
485
- confidence: number | null;
486
- reason: string | null;
487
- spawned_from_session: string | null;
488
- assigned_by: string | null;
489
- assigned_from_project: string | null;
490
- task_type: string | null;
491
- cost_tokens: number;
492
- cost_usd: number;
493
- delegated_from: string | null;
494
- delegation_depth: number;
495
- retry_count: number;
496
- max_retries: number;
497
- retry_after: string | null;
498
- sla_minutes: number | null;
499
- actual_minutes: number | null;
500
- runner_id: string | null;
501
- runner_started_at: string | null;
502
- runner_completed_at: string | null;
503
- current_step: string | null;
504
- total_steps: number | null;
505
- }
506
- export interface SessionRow {
507
- id: string;
508
- agent_id: string | null;
509
- project_id: string | null;
510
- working_dir: string | null;
511
- started_at: string;
512
- last_activity: string;
513
- metadata: string | null;
514
- }
515
- export interface LockResult {
516
- success: boolean;
517
- locked_by?: string;
518
- locked_at?: string;
519
- error?: string;
520
- }
521
- export interface TaskHistory {
522
- id: string;
523
- task_id: string;
524
- action: string;
525
- field: string | null;
526
- old_value: string | null;
527
- new_value: string | null;
528
- agent_id: string | null;
529
- created_at: string;
530
- }
531
- export interface Webhook {
532
- id: string;
533
- url: string;
534
- events: string[];
535
- secret: string | null;
536
- active: boolean;
537
- project_id: string | null;
538
- task_list_id: string | null;
539
- agent_id: string | null;
540
- task_id: string | null;
541
- created_at: string;
542
- }
543
- export interface CreateWebhookInput {
544
- url: string;
545
- events?: string[];
546
- secret?: string;
547
- project_id?: string;
548
- task_list_id?: string;
549
- agent_id?: string;
550
- task_id?: string;
551
- }
552
- export interface TemplateVariable {
553
- name: string;
554
- required: boolean;
555
- default?: string;
556
- description?: string;
557
- }
558
- export interface TaskTemplate {
559
- id: string;
560
- name: string;
561
- title_pattern: string;
562
- description: string | null;
563
- priority: TaskPriority;
564
- tags: string[];
565
- variables: TemplateVariable[];
566
- version: number;
567
- project_id: string | null;
568
- plan_id: string | null;
569
- metadata: Record<string, unknown>;
570
- created_at: string;
571
- }
572
- export interface CreateTemplateInput {
573
- name: string;
574
- title_pattern: string;
575
- description?: string;
576
- priority?: TaskPriority;
577
- tags?: string[];
578
- variables?: TemplateVariable[];
579
- project_id?: string;
580
- plan_id?: string;
581
- metadata?: Record<string, unknown>;
582
- tasks?: TemplateTaskInput[];
583
- }
584
- export interface TemplateTask {
585
- id: string;
586
- template_id: string;
587
- position: number;
588
- title_pattern: string;
589
- description: string | null;
590
- priority: TaskPriority;
591
- tags: string[];
592
- task_type: string | null;
593
- condition: string | null;
594
- include_template_id: string | null;
595
- depends_on_positions: number[];
596
- metadata: Record<string, unknown>;
597
- created_at: string;
598
- }
599
- export interface TemplateTaskInput {
600
- title_pattern: string;
601
- description?: string;
602
- priority?: TaskPriority;
603
- tags?: string[];
604
- task_type?: string;
605
- condition?: string;
606
- include_template_id?: string;
607
- depends_on?: number[];
608
- metadata?: Record<string, unknown>;
609
- }
610
- export interface TemplateWithTasks extends TaskTemplate {
611
- tasks: TemplateTask[];
612
- }
613
- export interface TemplateVersion {
614
- id: string;
615
- template_id: string;
616
- version: number;
617
- snapshot: string;
618
- created_at: string;
619
- }
620
- export declare class VersionConflictError extends Error {
621
- taskId: string;
622
- expectedVersion: number;
623
- actualVersion: number;
624
- static readonly code = "VERSION_CONFLICT";
625
- static readonly suggestion = "Fetch the task with get_task to get the current version before updating.";
626
- constructor(taskId: string, expectedVersion: number, actualVersion: number);
627
- }
628
- export declare class TaskNotFoundError extends Error {
629
- taskId: string;
630
- static readonly code = "TASK_NOT_FOUND";
631
- static readonly suggestion = "Verify the task ID. Use list_tasks or search_tasks to find the correct ID.";
632
- constructor(taskId: string);
633
- }
634
- export declare class ProjectNotFoundError extends Error {
635
- projectId: string;
636
- static readonly code = "PROJECT_NOT_FOUND";
637
- static readonly suggestion = "Use list_projects to see available projects.";
638
- constructor(projectId: string);
639
- }
640
- export declare class PlanNotFoundError extends Error {
641
- planId: string;
642
- static readonly code = "PLAN_NOT_FOUND";
643
- static readonly suggestion = "Use list_plans to see available plans.";
644
- constructor(planId: string);
645
- }
646
- export declare class LockError extends Error {
647
- taskId: string;
648
- lockedBy: string;
649
- static readonly code = "LOCK_ERROR";
650
- static readonly suggestion = "Wait for the lock to expire (30 min) or contact the lock holder.";
651
- constructor(taskId: string, lockedBy: string);
652
- }
653
- export declare class AgentNotFoundError extends Error {
654
- agentId: string;
655
- static readonly code = "AGENT_NOT_FOUND";
656
- static readonly suggestion = "Use register_agent to create the agent first, or list_agents to find existing ones.";
657
- constructor(agentId: string);
658
- }
659
- export declare class TaskListNotFoundError extends Error {
660
- taskListId: string;
661
- static readonly code = "TASK_LIST_NOT_FOUND";
662
- static readonly suggestion = "Use list_task_lists to see available lists.";
663
- constructor(taskListId: string);
664
- }
665
- export declare class DependencyCycleError extends Error {
666
- taskId: string;
667
- dependsOn: string;
668
- static readonly code = "DEPENDENCY_CYCLE";
669
- static readonly suggestion = "Check the dependency chain with get_task to avoid circular references.";
670
- constructor(taskId: string, dependsOn: string);
671
- }
672
- export declare class CompletionGuardError extends Error {
673
- reason: string;
674
- retryAfterSeconds?: number | undefined;
675
- static readonly code = "COMPLETION_BLOCKED";
676
- static readonly suggestion = "Wait for the cooldown period, then retry.";
677
- constructor(reason: string, retryAfterSeconds?: number | undefined);
678
- }
679
- export declare const DISPATCH_STATUSES: readonly ["pending", "sent", "failed", "cancelled"];
680
- export type DispatchStatus = (typeof DISPATCH_STATUSES)[number];
681
- /** Parsed tmux target: session:window.pane (all parts optional except window) */
682
- export interface TmuxTarget {
683
- session: string | null;
684
- window: string;
685
- pane: string | null;
686
- /** Original spec string, e.g. "main", "work:1", "work:1.0" */
687
- raw: string;
688
- }
689
- export interface Dispatch {
690
- id: string;
691
- title: string | null;
692
- target_window: string;
693
- task_ids: string[];
694
- task_list_id: string | null;
695
- /** Pre-formatted message, or null to format at send time */
696
- message: string | null;
697
- /** Delay in ms between send and Enter. null = auto-calculated */
698
- delay_ms: number | null;
699
- scheduled_at: string | null;
700
- status: DispatchStatus;
701
- error: string | null;
702
- created_at: string;
703
- sent_at: string | null;
704
- }
705
- export interface DispatchRow {
706
- id: string;
707
- title: string | null;
708
- target_window: string;
709
- task_ids: string;
710
- task_list_id: string | null;
711
- message: string | null;
712
- delay_ms: number | null;
713
- scheduled_at: string | null;
714
- status: string;
715
- error: string | null;
716
- created_at: string;
717
- sent_at: string | null;
718
- }
719
- export interface DispatchLog {
720
- id: string;
721
- dispatch_id: string;
722
- target_window: string;
723
- message: string;
724
- delay_ms: number;
725
- status: "sent" | "failed";
726
- error: string | null;
727
- created_at: string;
728
- }
729
- export interface CreateDispatchInput {
730
- title?: string;
731
- target_window: string;
732
- task_ids?: string[];
733
- task_list_id?: string;
734
- /** Pre-format the message. If omitted, formatted at send time from task_ids/task_list_id. */
735
- message?: string;
736
- /** Explicit delay in ms. If omitted, auto-calculated from message length. */
737
- delay_ms?: number;
738
- /** ISO string. If omitted, dispatch is immediate. */
739
- scheduled_at?: string;
740
- }
741
- export interface ListDispatchesFilter {
742
- status?: DispatchStatus | DispatchStatus[];
743
- limit?: number;
744
- offset?: number;
745
- }
746
- export declare class DispatchNotFoundError extends Error {
747
- dispatchId: string;
748
- static readonly code = "DISPATCH_NOT_FOUND";
749
- static readonly suggestion = "Check the dispatch ID with list_dispatches.";
750
- constructor(dispatchId: string);
751
- }
752
- /** Compact task representation returned by list endpoints */
753
- export interface TaskSummary {
754
- id: string;
755
- short_id: string | null;
756
- title: string;
757
- description: string | null;
758
- status: TaskStatus;
759
- priority: TaskPriority;
760
- project_id: string | null;
761
- plan_id: string | null;
762
- task_list_id: string | null;
763
- agent_id: string | null;
764
- assigned_to: string | null;
765
- locked_by: string | null;
766
- tags: string[];
767
- version: number;
768
- created_at: string;
769
- updated_at: string;
770
- completed_at: string | null;
771
- due_at: string | null;
772
- recurrence_rule: string | null;
773
- }
774
- /** Progress log entry for a task */
775
- export interface ProgressEntry {
776
- id: string;
777
- task_id: string;
778
- content: string;
779
- type: "comment" | "progress" | "note";
780
- progress_pct: number | null;
781
- agent_id: string | null;
782
- created_at: string;
783
- }
784
- /** Dashboard statistics */
785
- export interface DashboardStats {
786
- total_tasks: number;
787
- pending: number;
788
- in_progress: number;
789
- completed: number;
790
- failed: number;
791
- cancelled: number;
792
- projects: number;
793
- agents: number;
794
- stale_count?: number;
795
- overdue_recurring?: number;
796
- recurring_tasks?: number;
797
- }
798
- /** Task status summary response */
799
- export interface StatusSummaryResponse {
800
- pending: number;
801
- in_progress: number;
802
- completed: number;
803
- total: number;
804
- active_work: {
805
- id: string;
806
- short_id: string | null;
807
- title: string;
808
- priority: string;
809
- assigned_to: string | null;
810
- locked_by: string | null;
811
- updated_at: string;
812
- }[];
813
- next_task: TaskSummary | null;
814
- stale_count: number;
815
- overdue_recurring: number;
816
- }
817
- //# sourceMappingURL=index.d.ts.map