intention-coding 0.1.0 → 0.2.0

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 (45) hide show
  1. package/README.md +262 -0
  2. package/dist/config.d.ts +1 -0
  3. package/dist/db/file-storage.d.ts +255 -0
  4. package/dist/index.cjs +10825 -4643
  5. package/dist/index.js +10805 -4634
  6. package/dist/services/api-test/add-tasks-to-plan.d.ts +97 -0
  7. package/dist/services/api-test/api-test.d.ts +86 -0
  8. package/dist/services/api-test/batch-update-task-summaries.d.ts +61 -0
  9. package/dist/services/api-test/execute-test-plan.d.ts +21 -0
  10. package/dist/services/api-test/export-test-results.d.ts +21 -0
  11. package/dist/services/api-test/get-test-plans.d.ts +21 -0
  12. package/dist/services/api-test/index.d.ts +285 -0
  13. package/dist/services/api-test/test-plan.d.ts +119 -0
  14. package/dist/services/api-test/update-task.d.ts +147 -0
  15. package/dist/services/change-summarizer/index.d.ts +39 -0
  16. package/dist/services/claude-code/index.d.ts +200 -0
  17. package/dist/services/code-generator/database-manager.d.ts +65 -0
  18. package/dist/services/code-generator/enhanced-tools.d.ts +392 -0
  19. package/dist/services/code-generator/export-excel.d.ts +21 -0
  20. package/dist/services/code-generator/index.d.ts +102 -0
  21. package/dist/services/code-generator/task-queue.d.ts +114 -0
  22. package/dist/services/integrated-generator/index.d.ts +107 -0
  23. package/dist/services/openai-service.d.ts +29 -0
  24. package/dist/services/pdf2md/index.d.ts +74 -0
  25. package/dist/services/project-template/index.d.ts +51 -0
  26. package/dist/services/requirement-analyzer/auto-trigger.d.ts +1 -0
  27. package/dist/services/requirement-analyzer/index.d.ts +311 -0
  28. package/dist/services/velocity-template/index.d.ts +334 -0
  29. package/dist/services/world2md/index.d.ts +69 -0
  30. package/dist/utils/common.d.ts +1 -1
  31. package/package.json +12 -3
  32. package/dist/prompt/tech.d.ts +0 -1
  33. package/dist/schemas/intent-recognizer.d.ts +0 -33
  34. package/dist/schemas/types.d.ts +0 -34
  35. package/dist/schemas/word2md.d.ts +0 -34
  36. package/dist/tools/architecture-designer.d.ts +0 -12
  37. package/dist/tools/export-final-document.d.ts +0 -7
  38. package/dist/tools/index.d.ts +0 -6
  39. package/dist/tools/intent-recognizer.d.ts +0 -15
  40. package/dist/tools/requirement-clarifier.d.ts +0 -15
  41. package/dist/tools/requirement-manager.d.ts +0 -18
  42. package/dist/tools/utils.d.ts +0 -0
  43. package/dist/tools/view-requirements-status.d.ts +0 -7
  44. package/dist/tools/word2md.d.ts +0 -36
  45. package/dist/utils/mcp-server.d.ts +0 -28
@@ -0,0 +1,392 @@
1
+ import { z } from 'zod';
2
+ export declare const AddTaskToQueueParams: z.ZodObject<{
3
+ task_title: z.ZodString;
4
+ task_description: z.ZodString;
5
+ project_name: z.ZodString;
6
+ programming_language: z.ZodOptional<z.ZodString>;
7
+ framework: z.ZodOptional<z.ZodString>;
8
+ feature_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["new_feature", "bug_fix", "refactor", "enhancement", "documentation"]>>>;
9
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>>;
10
+ user_story: z.ZodOptional<z.ZodString>;
11
+ acceptance_criteria: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
12
+ technical_requirements: z.ZodOptional<z.ZodString>;
13
+ test_requirements: z.ZodOptional<z.ZodString>;
14
+ custom_context: z.ZodOptional<z.ZodString>;
15
+ dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
16
+ assignee: z.ZodOptional<z.ZodString>;
17
+ estimated_hours: z.ZodOptional<z.ZodNumber>;
18
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
19
+ parent_task_id: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ project_name: string;
22
+ priority: "medium" | "low" | "high" | "critical";
23
+ dependencies: string[];
24
+ tags: string[];
25
+ task_title: string;
26
+ task_description: string;
27
+ feature_type: "new_feature" | "bug_fix" | "refactor" | "enhancement" | "documentation";
28
+ acceptance_criteria: string[];
29
+ assignee?: string | undefined;
30
+ framework?: string | undefined;
31
+ programming_language?: string | undefined;
32
+ user_story?: string | undefined;
33
+ technical_requirements?: string | undefined;
34
+ test_requirements?: string | undefined;
35
+ custom_context?: string | undefined;
36
+ estimated_hours?: number | undefined;
37
+ parent_task_id?: string | undefined;
38
+ }, {
39
+ project_name: string;
40
+ task_title: string;
41
+ task_description: string;
42
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
43
+ dependencies?: string[] | undefined;
44
+ assignee?: string | undefined;
45
+ tags?: string[] | undefined;
46
+ framework?: string | undefined;
47
+ programming_language?: string | undefined;
48
+ feature_type?: "new_feature" | "bug_fix" | "refactor" | "enhancement" | "documentation" | undefined;
49
+ user_story?: string | undefined;
50
+ acceptance_criteria?: string[] | undefined;
51
+ technical_requirements?: string | undefined;
52
+ test_requirements?: string | undefined;
53
+ custom_context?: string | undefined;
54
+ estimated_hours?: number | undefined;
55
+ parent_task_id?: string | undefined;
56
+ }>;
57
+ export declare const CreateIterationParams: z.ZodObject<{
58
+ task_id: z.ZodString;
59
+ description: z.ZodString;
60
+ changes: z.ZodArray<z.ZodString, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ description: string;
63
+ task_id: string;
64
+ changes: string[];
65
+ }, {
66
+ description: string;
67
+ task_id: string;
68
+ changes: string[];
69
+ }>;
70
+ export declare const UpdateTaskParams: z.ZodObject<{
71
+ task_id: z.ZodString;
72
+ updates: z.ZodObject<{
73
+ title: z.ZodOptional<z.ZodString>;
74
+ description: z.ZodOptional<z.ZodString>;
75
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
76
+ status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
77
+ assignee: z.ZodOptional<z.ZodString>;
78
+ estimated_hours: z.ZodOptional<z.ZodNumber>;
79
+ actual_hours: z.ZodOptional<z.ZodNumber>;
80
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ technical_requirements: z.ZodOptional<z.ZodString>;
82
+ test_requirements: z.ZodOptional<z.ZodString>;
83
+ custom_context: z.ZodOptional<z.ZodString>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
86
+ description?: string | undefined;
87
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
88
+ title?: string | undefined;
89
+ assignee?: string | undefined;
90
+ tags?: string[] | undefined;
91
+ technical_requirements?: string | undefined;
92
+ test_requirements?: string | undefined;
93
+ custom_context?: string | undefined;
94
+ estimated_hours?: number | undefined;
95
+ actual_hours?: number | undefined;
96
+ }, {
97
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
98
+ description?: string | undefined;
99
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
100
+ title?: string | undefined;
101
+ assignee?: string | undefined;
102
+ tags?: string[] | undefined;
103
+ technical_requirements?: string | undefined;
104
+ test_requirements?: string | undefined;
105
+ custom_context?: string | undefined;
106
+ estimated_hours?: number | undefined;
107
+ actual_hours?: number | undefined;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ task_id: string;
111
+ updates: {
112
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
113
+ description?: string | undefined;
114
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
115
+ title?: string | undefined;
116
+ assignee?: string | undefined;
117
+ tags?: string[] | undefined;
118
+ technical_requirements?: string | undefined;
119
+ test_requirements?: string | undefined;
120
+ custom_context?: string | undefined;
121
+ estimated_hours?: number | undefined;
122
+ actual_hours?: number | undefined;
123
+ };
124
+ }, {
125
+ task_id: string;
126
+ updates: {
127
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
128
+ description?: string | undefined;
129
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
130
+ title?: string | undefined;
131
+ assignee?: string | undefined;
132
+ tags?: string[] | undefined;
133
+ technical_requirements?: string | undefined;
134
+ test_requirements?: string | undefined;
135
+ custom_context?: string | undefined;
136
+ estimated_hours?: number | undefined;
137
+ actual_hours?: number | undefined;
138
+ };
139
+ }>;
140
+ export declare const QueueQueryParams: z.ZodObject<{
141
+ status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
142
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
143
+ assignee: z.ZodOptional<z.ZodString>;
144
+ project_name: z.ZodOptional<z.ZodString>;
145
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
146
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ limit: number;
149
+ offset: number;
150
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
151
+ project_name?: string | undefined;
152
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
153
+ assignee?: string | undefined;
154
+ }, {
155
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
156
+ project_name?: string | undefined;
157
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
158
+ assignee?: string | undefined;
159
+ limit?: number | undefined;
160
+ offset?: number | undefined;
161
+ }>;
162
+ export declare const BatchOperationParams: z.ZodObject<{
163
+ task_ids: z.ZodArray<z.ZodString, "many">;
164
+ operation: z.ZodEnum<["cancel", "retry", "delete", "update_priority"]>;
165
+ operation_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ task_ids: string[];
168
+ operation: "delete" | "cancel" | "retry" | "update_priority";
169
+ operation_params?: Record<string, any> | undefined;
170
+ }, {
171
+ task_ids: string[];
172
+ operation: "delete" | "cancel" | "retry" | "update_priority";
173
+ operation_params?: Record<string, any> | undefined;
174
+ }>;
175
+ export declare const addTaskToQueueTool: {
176
+ name: string;
177
+ description: string;
178
+ parameters: z.ZodObject<{
179
+ task_title: z.ZodString;
180
+ task_description: z.ZodString;
181
+ project_name: z.ZodString;
182
+ programming_language: z.ZodOptional<z.ZodString>;
183
+ framework: z.ZodOptional<z.ZodString>;
184
+ feature_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["new_feature", "bug_fix", "refactor", "enhancement", "documentation"]>>>;
185
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>>;
186
+ user_story: z.ZodOptional<z.ZodString>;
187
+ acceptance_criteria: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
188
+ technical_requirements: z.ZodOptional<z.ZodString>;
189
+ test_requirements: z.ZodOptional<z.ZodString>;
190
+ custom_context: z.ZodOptional<z.ZodString>;
191
+ dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
192
+ assignee: z.ZodOptional<z.ZodString>;
193
+ estimated_hours: z.ZodOptional<z.ZodNumber>;
194
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
195
+ parent_task_id: z.ZodOptional<z.ZodString>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ project_name: string;
198
+ priority: "medium" | "low" | "high" | "critical";
199
+ dependencies: string[];
200
+ tags: string[];
201
+ task_title: string;
202
+ task_description: string;
203
+ feature_type: "new_feature" | "bug_fix" | "refactor" | "enhancement" | "documentation";
204
+ acceptance_criteria: string[];
205
+ assignee?: string | undefined;
206
+ framework?: string | undefined;
207
+ programming_language?: string | undefined;
208
+ user_story?: string | undefined;
209
+ technical_requirements?: string | undefined;
210
+ test_requirements?: string | undefined;
211
+ custom_context?: string | undefined;
212
+ estimated_hours?: number | undefined;
213
+ parent_task_id?: string | undefined;
214
+ }, {
215
+ project_name: string;
216
+ task_title: string;
217
+ task_description: string;
218
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
219
+ dependencies?: string[] | undefined;
220
+ assignee?: string | undefined;
221
+ tags?: string[] | undefined;
222
+ framework?: string | undefined;
223
+ programming_language?: string | undefined;
224
+ feature_type?: "new_feature" | "bug_fix" | "refactor" | "enhancement" | "documentation" | undefined;
225
+ user_story?: string | undefined;
226
+ acceptance_criteria?: string[] | undefined;
227
+ technical_requirements?: string | undefined;
228
+ test_requirements?: string | undefined;
229
+ custom_context?: string | undefined;
230
+ estimated_hours?: number | undefined;
231
+ parent_task_id?: string | undefined;
232
+ }>;
233
+ execute: (args: z.infer<typeof AddTaskToQueueParams>) => Promise<string>;
234
+ };
235
+ export declare const createIterationTool: {
236
+ name: string;
237
+ description: string;
238
+ parameters: z.ZodObject<{
239
+ task_id: z.ZodString;
240
+ description: z.ZodString;
241
+ changes: z.ZodArray<z.ZodString, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ description: string;
244
+ task_id: string;
245
+ changes: string[];
246
+ }, {
247
+ description: string;
248
+ task_id: string;
249
+ changes: string[];
250
+ }>;
251
+ execute: (args: z.infer<typeof CreateIterationParams>) => Promise<string>;
252
+ };
253
+ export declare const updateTaskTool: {
254
+ name: string;
255
+ description: string;
256
+ parameters: z.ZodObject<{
257
+ task_id: z.ZodString;
258
+ updates: z.ZodObject<{
259
+ title: z.ZodOptional<z.ZodString>;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
262
+ status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
263
+ assignee: z.ZodOptional<z.ZodString>;
264
+ estimated_hours: z.ZodOptional<z.ZodNumber>;
265
+ actual_hours: z.ZodOptional<z.ZodNumber>;
266
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
267
+ technical_requirements: z.ZodOptional<z.ZodString>;
268
+ test_requirements: z.ZodOptional<z.ZodString>;
269
+ custom_context: z.ZodOptional<z.ZodString>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
272
+ description?: string | undefined;
273
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
274
+ title?: string | undefined;
275
+ assignee?: string | undefined;
276
+ tags?: string[] | undefined;
277
+ technical_requirements?: string | undefined;
278
+ test_requirements?: string | undefined;
279
+ custom_context?: string | undefined;
280
+ estimated_hours?: number | undefined;
281
+ actual_hours?: number | undefined;
282
+ }, {
283
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
284
+ description?: string | undefined;
285
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
286
+ title?: string | undefined;
287
+ assignee?: string | undefined;
288
+ tags?: string[] | undefined;
289
+ technical_requirements?: string | undefined;
290
+ test_requirements?: string | undefined;
291
+ custom_context?: string | undefined;
292
+ estimated_hours?: number | undefined;
293
+ actual_hours?: number | undefined;
294
+ }>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ task_id: string;
297
+ updates: {
298
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
299
+ description?: string | undefined;
300
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
301
+ title?: string | undefined;
302
+ assignee?: string | undefined;
303
+ tags?: string[] | undefined;
304
+ technical_requirements?: string | undefined;
305
+ test_requirements?: string | undefined;
306
+ custom_context?: string | undefined;
307
+ estimated_hours?: number | undefined;
308
+ actual_hours?: number | undefined;
309
+ };
310
+ }, {
311
+ task_id: string;
312
+ updates: {
313
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
314
+ description?: string | undefined;
315
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
316
+ title?: string | undefined;
317
+ assignee?: string | undefined;
318
+ tags?: string[] | undefined;
319
+ technical_requirements?: string | undefined;
320
+ test_requirements?: string | undefined;
321
+ custom_context?: string | undefined;
322
+ estimated_hours?: number | undefined;
323
+ actual_hours?: number | undefined;
324
+ };
325
+ }>;
326
+ execute: (args: z.infer<typeof UpdateTaskParams>) => Promise<string>;
327
+ };
328
+ export declare const getQueueStatusTool: {
329
+ name: string;
330
+ description: string;
331
+ parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
332
+ execute: () => Promise<string>;
333
+ };
334
+ export declare const queryTasksTool: {
335
+ name: string;
336
+ description: string;
337
+ parameters: z.ZodObject<{
338
+ status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
339
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
340
+ assignee: z.ZodOptional<z.ZodString>;
341
+ project_name: z.ZodOptional<z.ZodString>;
342
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
343
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ limit: number;
346
+ offset: number;
347
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
348
+ project_name?: string | undefined;
349
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
350
+ assignee?: string | undefined;
351
+ }, {
352
+ status?: "pending" | "completed" | "failed" | "in_progress" | "cancelled" | undefined;
353
+ project_name?: string | undefined;
354
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
355
+ assignee?: string | undefined;
356
+ limit?: number | undefined;
357
+ offset?: number | undefined;
358
+ }>;
359
+ execute: (args: z.infer<typeof QueueQueryParams>) => Promise<string>;
360
+ };
361
+ export declare const batchOperationTool: {
362
+ name: string;
363
+ description: string;
364
+ parameters: z.ZodObject<{
365
+ task_ids: z.ZodArray<z.ZodString, "many">;
366
+ operation: z.ZodEnum<["cancel", "retry", "delete", "update_priority"]>;
367
+ operation_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ task_ids: string[];
370
+ operation: "delete" | "cancel" | "retry" | "update_priority";
371
+ operation_params?: Record<string, any> | undefined;
372
+ }, {
373
+ task_ids: string[];
374
+ operation: "delete" | "cancel" | "retry" | "update_priority";
375
+ operation_params?: Record<string, any> | undefined;
376
+ }>;
377
+ execute: (args: z.infer<typeof BatchOperationParams>) => Promise<string>;
378
+ };
379
+ export declare const getTaskDetailTool: {
380
+ name: string;
381
+ description: string;
382
+ parameters: z.ZodObject<{
383
+ task_id: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ task_id: string;
386
+ }, {
387
+ task_id: string;
388
+ }>;
389
+ execute: (args: {
390
+ task_id: string;
391
+ }) => Promise<string>;
392
+ };
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const ExportCodeSessionParams: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ uuid: string;
6
+ }, {
7
+ uuid: string;
8
+ }>;
9
+ export type ExportCodeSessionRequest = z.infer<typeof ExportCodeSessionParams>;
10
+ export declare const exportCodeSessionTool: {
11
+ name: string;
12
+ description: string;
13
+ parameters: z.ZodObject<{
14
+ uuid: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ uuid: string;
17
+ }, {
18
+ uuid: string;
19
+ }>;
20
+ execute: (params: ExportCodeSessionRequest) => Promise<string>;
21
+ };
@@ -0,0 +1,102 @@
1
+ import { z } from 'zod';
2
+ export declare const CodeGeneratorParams: z.ZodObject<{
3
+ task_title: z.ZodString;
4
+ task_description: z.ZodString;
5
+ project_name: z.ZodOptional<z.ZodString>;
6
+ programming_language: z.ZodOptional<z.ZodString>;
7
+ framework: z.ZodOptional<z.ZodString>;
8
+ feature_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["new_feature", "bug_fix", "refactor", "enhancement"]>>>;
9
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>>;
10
+ user_story: z.ZodOptional<z.ZodString>;
11
+ acceptance_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ technical_requirements: z.ZodOptional<z.ZodString>;
13
+ test_requirements: z.ZodOptional<z.ZodString>;
14
+ custom_context: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ priority: "medium" | "low" | "high" | "critical";
17
+ task_title: string;
18
+ task_description: string;
19
+ feature_type: "new_feature" | "bug_fix" | "refactor" | "enhancement";
20
+ project_name?: string | undefined;
21
+ framework?: string | undefined;
22
+ programming_language?: string | undefined;
23
+ user_story?: string | undefined;
24
+ acceptance_criteria?: string[] | undefined;
25
+ technical_requirements?: string | undefined;
26
+ test_requirements?: string | undefined;
27
+ custom_context?: string | undefined;
28
+ }, {
29
+ task_title: string;
30
+ task_description: string;
31
+ project_name?: string | undefined;
32
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
33
+ framework?: string | undefined;
34
+ programming_language?: string | undefined;
35
+ feature_type?: "new_feature" | "bug_fix" | "refactor" | "enhancement" | undefined;
36
+ user_story?: string | undefined;
37
+ acceptance_criteria?: string[] | undefined;
38
+ technical_requirements?: string | undefined;
39
+ test_requirements?: string | undefined;
40
+ custom_context?: string | undefined;
41
+ }>;
42
+ export interface CodeGeneratorParams {
43
+ task_title: string;
44
+ task_description: string;
45
+ project_name?: string;
46
+ programming_language?: string;
47
+ framework?: string;
48
+ feature_type?: 'new_feature' | 'bug_fix' | 'refactor' | 'enhancement';
49
+ priority?: 'low' | 'medium' | 'high' | 'critical';
50
+ user_story?: string;
51
+ acceptance_criteria?: string[];
52
+ technical_requirements?: string;
53
+ test_requirements?: string;
54
+ custom_context?: string;
55
+ }
56
+ export declare const codeGeneratorTool: {
57
+ name: string;
58
+ description: string;
59
+ parameters: z.ZodObject<{
60
+ task_title: z.ZodString;
61
+ task_description: z.ZodString;
62
+ project_name: z.ZodOptional<z.ZodString>;
63
+ programming_language: z.ZodOptional<z.ZodString>;
64
+ framework: z.ZodOptional<z.ZodString>;
65
+ feature_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["new_feature", "bug_fix", "refactor", "enhancement"]>>>;
66
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>>;
67
+ user_story: z.ZodOptional<z.ZodString>;
68
+ acceptance_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ technical_requirements: z.ZodOptional<z.ZodString>;
70
+ test_requirements: z.ZodOptional<z.ZodString>;
71
+ custom_context: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ priority: "medium" | "low" | "high" | "critical";
74
+ task_title: string;
75
+ task_description: string;
76
+ feature_type: "new_feature" | "bug_fix" | "refactor" | "enhancement";
77
+ project_name?: string | undefined;
78
+ framework?: string | undefined;
79
+ programming_language?: string | undefined;
80
+ user_story?: string | undefined;
81
+ acceptance_criteria?: string[] | undefined;
82
+ technical_requirements?: string | undefined;
83
+ test_requirements?: string | undefined;
84
+ custom_context?: string | undefined;
85
+ }, {
86
+ task_title: string;
87
+ task_description: string;
88
+ project_name?: string | undefined;
89
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
90
+ framework?: string | undefined;
91
+ programming_language?: string | undefined;
92
+ feature_type?: "new_feature" | "bug_fix" | "refactor" | "enhancement" | undefined;
93
+ user_story?: string | undefined;
94
+ acceptance_criteria?: string[] | undefined;
95
+ technical_requirements?: string | undefined;
96
+ test_requirements?: string | undefined;
97
+ custom_context?: string | undefined;
98
+ }>;
99
+ execute: (args: CodeGeneratorParams) => Promise<string>;
100
+ };
101
+ export { getCodeSessionsTool, getCodeSessionDetailTool } from './database-manager';
102
+ export { exportCodeSessionTool } from './export-excel';
@@ -0,0 +1,114 @@
1
+ export declare enum TaskStatus {
2
+ PENDING = "pending",
3
+ IN_PROGRESS = "in_progress",
4
+ COMPLETED = "completed",
5
+ FAILED = "failed",
6
+ CANCELLED = "cancelled"
7
+ }
8
+ export declare enum TaskPriority {
9
+ LOW = "low",
10
+ MEDIUM = "medium",
11
+ HIGH = "high",
12
+ CRITICAL = "critical"
13
+ }
14
+ export declare enum TaskType {
15
+ NEW_FEATURE = "new_feature",
16
+ BUG_FIX = "bug_fix",
17
+ REFACTOR = "refactor",
18
+ ENHANCEMENT = "enhancement",
19
+ DOCUMENTATION = "documentation"
20
+ }
21
+ export interface TaskItem {
22
+ id: string;
23
+ title: string;
24
+ description: string;
25
+ type: TaskType;
26
+ priority: TaskPriority;
27
+ status: TaskStatus;
28
+ projectName: string;
29
+ programmingLanguage?: string;
30
+ framework?: string;
31
+ userStory?: string;
32
+ acceptanceCriteria: string[];
33
+ technicalRequirements?: string;
34
+ testRequirements?: string;
35
+ customContext?: string;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ startedAt?: string;
39
+ completedAt?: string;
40
+ sessionDir?: string;
41
+ parentTaskId?: string;
42
+ childTaskIds: string[];
43
+ version: number;
44
+ iterationHistory: TaskIteration[];
45
+ dependencies: string[];
46
+ assignee?: string;
47
+ estimatedHours?: number;
48
+ actualHours?: number;
49
+ tags: string[];
50
+ attachments: string[];
51
+ }
52
+ export interface TaskIteration {
53
+ version: number;
54
+ description: string;
55
+ changes: string[];
56
+ createdAt: string;
57
+ completedAt?: string;
58
+ status: TaskStatus;
59
+ sessionDir?: string;
60
+ notes?: string;
61
+ }
62
+ export interface QueueConfig {
63
+ maxConcurrentTasks: number;
64
+ maxRetries: number;
65
+ retryDelay: number;
66
+ priorityWeights: {
67
+ [key in TaskPriority]: number;
68
+ };
69
+ }
70
+ export declare class TaskQueueManager {
71
+ private tasks;
72
+ private runningTasks;
73
+ private config;
74
+ private storageDir;
75
+ private isProcessing;
76
+ constructor(config?: QueueConfig);
77
+ private initializeStorage;
78
+ private loadTasks;
79
+ private saveTasks;
80
+ addTask(taskData: Omit<TaskItem, 'id' | 'createdAt' | 'updatedAt' | 'version' | 'iterationHistory' | 'childTaskIds'>): Promise<string>;
81
+ updateTask(taskId: string, updates: Partial<TaskItem>): Promise<boolean>;
82
+ createIteration(taskId: string, description: string, changes: string[]): Promise<boolean>;
83
+ getTask(taskId: string): TaskItem | undefined;
84
+ getAllTasks(): TaskItem[];
85
+ getQueueStatus(): {
86
+ total: number;
87
+ running: number;
88
+ pending: number;
89
+ completed: number;
90
+ failed: number;
91
+ cancelled: number;
92
+ isProcessing: boolean;
93
+ config: QueueConfig;
94
+ };
95
+ private sortTasksByPriority;
96
+ private checkDependencies;
97
+ processQueue(): Promise<void>;
98
+ private executeTask;
99
+ private simulateTaskExecution;
100
+ cancelTask(taskId: string): Promise<boolean>;
101
+ retryTask(taskId: string): Promise<boolean>;
102
+ cleanupCompletedTasks(olderThanDays?: number): Promise<number>;
103
+ private generateTaskId;
104
+ getTaskStatistics(): {
105
+ total: number;
106
+ byStatus: Record<TaskStatus, number>;
107
+ byPriority: Record<TaskPriority, number>;
108
+ byType: Record<TaskType, number>;
109
+ completedToday: number;
110
+ completedThisWeek: number;
111
+ completedThisMonth: number;
112
+ };
113
+ }
114
+ export declare const globalTaskQueue: TaskQueueManager;