intention-coding 0.3.2 → 0.3.5
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/config.d.ts +1 -0
- package/dist/index.js +7598 -8747
- package/dist/services/claude-code/index.d.ts +12 -12
- package/dist/services/code-generator/index.d.ts +29 -84
- package/dist/services/code-generator/stages/execution-stage.d.ts +95 -0
- package/dist/services/code-generator/stages/ideation-stage.d.ts +33 -0
- package/dist/services/code-generator/stages/optimization-stage.d.ts +46 -0
- package/dist/services/code-generator/stages/planning-stage.d.ts +33 -0
- package/dist/services/code-generator/stages/research-stage.d.ts +35 -0
- package/dist/services/code-generator/stages/review-stage.d.ts +33 -0
- package/dist/services/code-generator/types.d.ts +232 -0
- package/dist/services/code-generator/utils/instruction-executor.d.ts +69 -0
- package/dist/services/code-generator/workflow-manager.d.ts +46 -0
- package/dist/services/image-analysis/analyzer.d.ts +62 -0
- package/dist/services/image-analysis/index.d.ts +74 -27
- package/dist/services/image-analysis/types.d.ts +175 -143
- package/dist/services/image-converter/converter.d.ts +20 -65
- package/dist/services/image-converter/index.d.ts +28 -96
- package/dist/services/image-converter/types.d.ts +61 -0
- package/dist/services/integrated-generator/index.d.ts +24 -24
- package/dist/services/requirement-analyzer/core/document-generator.d.ts +36 -0
- package/dist/services/requirement-analyzer/core/intelligent-analyzer.d.ts +35 -0
- package/dist/services/requirement-analyzer/core/project-analyzer.d.ts +36 -0
- package/dist/services/requirement-analyzer/core/requirement-analyzer-service.d.ts +30 -0
- package/dist/services/requirement-analyzer/core/template-selector.d.ts +35 -0
- package/dist/services/requirement-analyzer/core/types.d.ts +83 -0
- package/dist/services/requirement-analyzer/index.d.ts +57 -215
- package/dist/services/requirement-analyzer/prompt/intelligent-requirement-analysis.d.ts +1 -0
- package/dist/services/requirement-analyzer/utils/file-reader.d.ts +8 -0
- package/dist/utils/openai.d.ts +3 -0
- package/package.json +4 -2
- package/dist/services/code-generator/database-manager.d.ts +0 -65
- package/dist/services/code-generator/enhanced-tools.d.ts +0 -392
- package/dist/services/code-generator/export-excel.d.ts +0 -21
- package/dist/services/code-generator/task-queue.d.ts +0 -114
- package/dist/services/image-analysis/config.d.ts +0 -14
- package/dist/services/image-analysis/factory.d.ts +0 -33
- package/dist/services/image-analysis/image-analysis.d.ts +0 -36
- package/dist/services/image-analysis/image-encoder.d.ts +0 -20
- package/dist/services/image-analysis/image-validator.d.ts +0 -30
- package/dist/services/image-analysis/tools.d.ts +0 -55
- package/dist/services/index.d.ts +0 -0
- package/dist/services/requirement-analyzer/prompt/enhanced-feature-extraction.d.ts +0 -1
- package/dist/services/requirement-analyzer/prompt/fallback-document.d.ts +0 -1
- package/dist/services/requirement-analyzer/prompt/feature-dependency-analysis.d.ts +0 -1
- package/dist/services/requirement-analyzer/prompt/feature-extraction.d.ts +0 -2
|
@@ -1,392 +0,0 @@
|
|
|
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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "cancelled" | undefined;
|
|
151
|
-
project_name?: string | undefined;
|
|
152
|
-
priority?: "medium" | "low" | "high" | "critical" | undefined;
|
|
153
|
-
assignee?: string | undefined;
|
|
154
|
-
}, {
|
|
155
|
-
status?: "pending" | "completed" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "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" | "in_progress" | "failed" | "cancelled" | undefined;
|
|
348
|
-
project_name?: string | undefined;
|
|
349
|
-
priority?: "medium" | "low" | "high" | "critical" | undefined;
|
|
350
|
-
assignee?: string | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
status?: "pending" | "completed" | "in_progress" | "failed" | "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
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface ImageAnalysisConfig {
|
|
2
|
-
prompt?: string;
|
|
3
|
-
temperature?: number;
|
|
4
|
-
imagePath?: string;
|
|
5
|
-
maxTokens?: number;
|
|
6
|
-
systemPrompt?: string;
|
|
7
|
-
baseUrl?: string;
|
|
8
|
-
apiKey?: string;
|
|
9
|
-
supportedFormats?: string[];
|
|
10
|
-
maxFileSize?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const MODEL_NAME = "moonshot-v1-128k-vision-preview";
|
|
13
|
-
export declare const DEFAULT_CONFIG: ImageAnalysisConfig;
|
|
14
|
-
export declare function createConfig(baseConfig?: Partial<ImageAnalysisConfig>): ImageAnalysisConfig;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ImageAnalysisService } from './image-analysis';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new instance of the ImageAnalysisService
|
|
4
|
-
*
|
|
5
|
-
* Note: Configuration is now handled by the unified OpenAI service
|
|
6
|
-
*
|
|
7
|
-
* @param config - Legacy parameter (ignored, kept for backward compatibility)
|
|
8
|
-
* @returns A new ImageAnalysisService instance
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const service = createImageAnalysisService();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function createImageAnalysisService(config?: any): ImageAnalysisService;
|
|
16
|
-
/**
|
|
17
|
-
* Default singleton instance of the ImageAnalysisService
|
|
18
|
-
*
|
|
19
|
-
* This instance uses the default configuration or environment variables.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import { imageAnalysisService } from 'src/services/image-analysis';
|
|
24
|
-
*
|
|
25
|
-
* const result = await imageAnalysisService.analyzeImage({
|
|
26
|
-
* imagePath: '/path/to/image.jpg',
|
|
27
|
-
* prompt: 'Describe this image',
|
|
28
|
-
* maxTokens: 4000,
|
|
29
|
-
* temperature: 0.7
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare const imageAnalysisService: ImageAnalysisService;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ImageAnalysisParams, ImageAnalysisResult } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Service for analyzing images using the unified OpenAI service
|
|
4
|
-
*/
|
|
5
|
-
export declare class ImageAnalysisService {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a new instance of the ImageAnalysisService
|
|
8
|
-
*/
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Analyzes an image using the moonshot-vision model
|
|
12
|
-
*
|
|
13
|
-
* @param params - Parameters for the image analysis
|
|
14
|
-
* @param params.imagePath - Absolute path to the local image file
|
|
15
|
-
* @param params.prompt - The prompt describing what to analyze in the image
|
|
16
|
-
* @param params.maxTokens - Maximum tokens to generate (default: 4000)
|
|
17
|
-
* @param params.temperature - Temperature for generation (default: 0.7)
|
|
18
|
-
* @param params.systemPrompt - Optional system prompt to set behavior
|
|
19
|
-
* @returns Analysis result with content, usage statistics, and metadata
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* const result = await imageAnalysisService.analyzeImage({
|
|
24
|
-
* imagePath: '/path/to/image.jpg',
|
|
25
|
-
* prompt: 'Describe this image in detail',
|
|
26
|
-
* maxTokens: 4000,
|
|
27
|
-
* temperature: 0.7
|
|
28
|
-
* });
|
|
29
|
-
*
|
|
30
|
-
* console.log(result.content);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @throws {ImageAnalysisError} If the image cannot be analyzed
|
|
34
|
-
*/
|
|
35
|
-
analyzeImage(params: ImageAnalysisParams): Promise<ImageAnalysisResult>;
|
|
36
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility class for encoding images to base64
|
|
3
|
-
*/
|
|
4
|
-
export declare class ImageEncoder {
|
|
5
|
-
/**
|
|
6
|
-
* Encodes an image file to base64 with data URI scheme
|
|
7
|
-
*
|
|
8
|
-
* @param imagePath - Absolute path to the image file
|
|
9
|
-
* @returns Base64 encoded image with data URI scheme
|
|
10
|
-
* @throws ImageAnalysisError if the file cannot be encoded
|
|
11
|
-
*/
|
|
12
|
-
static encodeImageToBase64(imagePath: string): Promise<string>;
|
|
13
|
-
/**
|
|
14
|
-
* Streams a file to base64 string for memory efficiency
|
|
15
|
-
*
|
|
16
|
-
* @param filePath - Path to the file
|
|
17
|
-
* @returns Base64 encoded string
|
|
18
|
-
*/
|
|
19
|
-
private static streamToBase64;
|
|
20
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ImageFileInfo } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Utility class for validating image files
|
|
4
|
-
*/
|
|
5
|
-
export declare class ImageValidator {
|
|
6
|
-
static readonly SUPPORTED_FORMATS: string[];
|
|
7
|
-
static readonly MAX_FILE_SIZE: number;
|
|
8
|
-
/**
|
|
9
|
-
* Validates an image file
|
|
10
|
-
*
|
|
11
|
-
* @param imagePath - Absolute path to the image file
|
|
12
|
-
* @returns Information about the image file
|
|
13
|
-
* @throws ImageAnalysisError if the file is invalid
|
|
14
|
-
*/
|
|
15
|
-
static validateImage(imagePath: string): Promise<ImageFileInfo>;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if the image format is supported
|
|
18
|
-
*
|
|
19
|
-
* @param format - Image format (extension)
|
|
20
|
-
* @returns True if the format is supported
|
|
21
|
-
*/
|
|
22
|
-
static isFormatSupported(format: string): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Gets the MIME type for an image format
|
|
25
|
-
*
|
|
26
|
-
* @param format - Image format (extension)
|
|
27
|
-
* @returns MIME type string
|
|
28
|
-
*/
|
|
29
|
-
static getMimeType(format: string): string;
|
|
30
|
-
}
|