@codmir/sdk 0.1.1 → 0.1.2
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/README.md +63 -7
- package/dist/browser/index.cjs +24 -2
- package/dist/browser/index.js +1 -1
- package/dist/{chunk-T7OAAOG2.js → chunk-4W5YK72Y.js} +44 -2
- package/dist/council/index.cjs +2064 -0
- package/dist/council/index.js +2016 -0
- package/dist/index.cjs +40 -2
- package/dist/index.js +1 -1
- package/dist/nextjs/index.cjs +24 -2
- package/dist/nextjs/index.js +1 -1
- package/dist/overseer/index.cjs +44 -2
- package/dist/overseer/index.js +9 -1
- package/dist/react-native/index.cjs +24 -2
- package/dist/react-native/index.js +1 -1
- package/dist/serverless/index.cjs +1260 -0
- package/dist/serverless/index.js +1213 -0
- package/package.json +18 -3
- package/dist/browser/index.d.cts +0 -47
- package/dist/browser/index.d.ts +0 -47
- package/dist/client.d.cts +0 -52
- package/dist/client.d.ts +0 -52
- package/dist/index-BlgYnCLd.d.cts +0 -171
- package/dist/index-BlgYnCLd.d.ts +0 -171
- package/dist/index.d.cts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/nextjs/index.d.cts +0 -77
- package/dist/nextjs/index.d.ts +0 -77
- package/dist/overseer/index.d.cts +0 -1
- package/dist/overseer/index.d.ts +0 -1
- package/dist/react-native/index.d.cts +0 -95
- package/dist/react-native/index.d.ts +0 -95
- package/dist/replay/index.d.cts +0 -206
- package/dist/replay/index.d.ts +0 -206
- package/dist/types.d.cts +0 -281
- package/dist/types.d.ts +0 -281
package/dist/types.d.cts
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
interface CodmirClientConfig {
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
baseUrl?: string;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
headers?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
interface CodmirError {
|
|
10
|
-
code: string;
|
|
11
|
-
message: string;
|
|
12
|
-
details?: Record<string, unknown>;
|
|
13
|
-
statusCode?: number;
|
|
14
|
-
}
|
|
15
|
-
declare class CodmirApiError extends Error {
|
|
16
|
-
code: string;
|
|
17
|
-
statusCode?: number | undefined;
|
|
18
|
-
details?: Record<string, unknown> | undefined;
|
|
19
|
-
constructor(code: string, message: string, statusCode?: number | undefined, details?: Record<string, unknown> | undefined);
|
|
20
|
-
}
|
|
21
|
-
interface User {
|
|
22
|
-
id: string;
|
|
23
|
-
email: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
avatar?: string;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
}
|
|
28
|
-
interface ApiResponse<T> {
|
|
29
|
-
data: T;
|
|
30
|
-
success: boolean;
|
|
31
|
-
error?: CodmirError;
|
|
32
|
-
}
|
|
33
|
-
interface PaginatedResponse<T> {
|
|
34
|
-
data: T[];
|
|
35
|
-
pagination: {
|
|
36
|
-
total: number;
|
|
37
|
-
page: number;
|
|
38
|
-
pageSize: number;
|
|
39
|
-
totalPages: number;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
interface Project {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
slug: string;
|
|
46
|
-
description?: string;
|
|
47
|
-
organizationId: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
}
|
|
51
|
-
interface CreateProjectInput {
|
|
52
|
-
name: string;
|
|
53
|
-
slug?: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
organizationId: string;
|
|
56
|
-
}
|
|
57
|
-
type TicketStatus = "open" | "in_progress" | "review" | "done" | "closed";
|
|
58
|
-
type TicketPriority = "low" | "medium" | "high" | "critical";
|
|
59
|
-
type TicketType = "bug" | "feature" | "task" | "improvement" | "epic";
|
|
60
|
-
interface Ticket {
|
|
61
|
-
id: string;
|
|
62
|
-
title: string;
|
|
63
|
-
description?: string;
|
|
64
|
-
status: TicketStatus;
|
|
65
|
-
priority: TicketPriority;
|
|
66
|
-
type: TicketType;
|
|
67
|
-
projectId: string;
|
|
68
|
-
assigneeId?: string;
|
|
69
|
-
reporterId: string;
|
|
70
|
-
labels?: string[];
|
|
71
|
-
dueDate?: string;
|
|
72
|
-
createdAt: string;
|
|
73
|
-
updatedAt: string;
|
|
74
|
-
}
|
|
75
|
-
interface CreateTicketInput {
|
|
76
|
-
title: string;
|
|
77
|
-
description?: string;
|
|
78
|
-
status?: TicketStatus;
|
|
79
|
-
priority?: TicketPriority;
|
|
80
|
-
type?: TicketType;
|
|
81
|
-
projectId: string;
|
|
82
|
-
assigneeId?: string;
|
|
83
|
-
labels?: string[];
|
|
84
|
-
dueDate?: string;
|
|
85
|
-
}
|
|
86
|
-
interface UpdateTicketInput {
|
|
87
|
-
title?: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
status?: TicketStatus;
|
|
90
|
-
priority?: TicketPriority;
|
|
91
|
-
type?: TicketType;
|
|
92
|
-
assigneeId?: string;
|
|
93
|
-
labels?: string[];
|
|
94
|
-
dueDate?: string;
|
|
95
|
-
}
|
|
96
|
-
type TestCasePriority = "low" | "medium" | "high" | "critical";
|
|
97
|
-
type TestCaseStatus = "draft" | "active" | "deprecated";
|
|
98
|
-
interface TestCaseStep {
|
|
99
|
-
order: number;
|
|
100
|
-
action: string;
|
|
101
|
-
expectedResult: string;
|
|
102
|
-
}
|
|
103
|
-
interface TestCase {
|
|
104
|
-
id: string;
|
|
105
|
-
title: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
steps: TestCaseStep[];
|
|
108
|
-
priority: TestCasePriority;
|
|
109
|
-
status: TestCaseStatus;
|
|
110
|
-
projectId: string;
|
|
111
|
-
ticketId?: string;
|
|
112
|
-
createdAt: string;
|
|
113
|
-
updatedAt: string;
|
|
114
|
-
}
|
|
115
|
-
interface CreateTestCaseInput {
|
|
116
|
-
title: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
steps: TestCaseStep[];
|
|
119
|
-
priority?: TestCasePriority;
|
|
120
|
-
projectId: string;
|
|
121
|
-
ticketId?: string;
|
|
122
|
-
}
|
|
123
|
-
interface UpdateTestCaseInput {
|
|
124
|
-
title?: string;
|
|
125
|
-
description?: string;
|
|
126
|
-
steps?: TestCaseStep[];
|
|
127
|
-
priority?: TestCasePriority;
|
|
128
|
-
status?: TestCaseStatus;
|
|
129
|
-
}
|
|
130
|
-
interface TestCaseTemplate {
|
|
131
|
-
id: string;
|
|
132
|
-
name: string;
|
|
133
|
-
description?: string;
|
|
134
|
-
steps: TestCaseStep[];
|
|
135
|
-
}
|
|
136
|
-
interface TestRunSummaryInput {
|
|
137
|
-
projectId: string;
|
|
138
|
-
testRunId: string;
|
|
139
|
-
totalTests: number;
|
|
140
|
-
passed: number;
|
|
141
|
-
failed: number;
|
|
142
|
-
skipped: number;
|
|
143
|
-
duration: number;
|
|
144
|
-
coverage?: number;
|
|
145
|
-
failedTests?: TestRunRecord[];
|
|
146
|
-
artifacts?: TestRunArtifact[];
|
|
147
|
-
}
|
|
148
|
-
interface TestRunRecord {
|
|
149
|
-
name: string;
|
|
150
|
-
error?: string;
|
|
151
|
-
duration?: number;
|
|
152
|
-
}
|
|
153
|
-
interface TestRunArtifact {
|
|
154
|
-
name: string;
|
|
155
|
-
url: string;
|
|
156
|
-
type: "screenshot" | "video" | "log" | "report";
|
|
157
|
-
}
|
|
158
|
-
interface CoverageInsightRequest {
|
|
159
|
-
projectId: string;
|
|
160
|
-
coverage: number;
|
|
161
|
-
uncoveredLines?: number;
|
|
162
|
-
uncoveredBranches?: number;
|
|
163
|
-
files?: Array<{
|
|
164
|
-
path: string;
|
|
165
|
-
coverage: number;
|
|
166
|
-
uncoveredLines?: number[];
|
|
167
|
-
}>;
|
|
168
|
-
}
|
|
169
|
-
interface CoverageInsight {
|
|
170
|
-
summary: string;
|
|
171
|
-
riskAreas: string[];
|
|
172
|
-
suggestions: CoverageSuggestedTest[];
|
|
173
|
-
featureBreakdown?: CoverageFeatureBreakdown[];
|
|
174
|
-
}
|
|
175
|
-
interface CoverageFeatureBreakdown {
|
|
176
|
-
feature: string;
|
|
177
|
-
coverage: number;
|
|
178
|
-
risk: "low" | "medium" | "high";
|
|
179
|
-
}
|
|
180
|
-
interface CoverageSuggestedTest {
|
|
181
|
-
title: string;
|
|
182
|
-
description: string;
|
|
183
|
-
priority: TestCasePriority;
|
|
184
|
-
targetFile?: string;
|
|
185
|
-
}
|
|
186
|
-
type AgentTaskType = "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
187
|
-
type AgentTaskStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
188
|
-
interface AgentTask {
|
|
189
|
-
id: string;
|
|
190
|
-
type: AgentTaskType;
|
|
191
|
-
status: AgentTaskStatus;
|
|
192
|
-
prompt: string;
|
|
193
|
-
context?: Record<string, unknown>;
|
|
194
|
-
result?: AgentTaskResult;
|
|
195
|
-
projectId?: string;
|
|
196
|
-
createdAt: string;
|
|
197
|
-
updatedAt: string;
|
|
198
|
-
completedAt?: string;
|
|
199
|
-
}
|
|
200
|
-
interface AgentTaskResult {
|
|
201
|
-
success: boolean;
|
|
202
|
-
output?: string;
|
|
203
|
-
artifacts?: Array<{
|
|
204
|
-
type: "file" | "diff" | "suggestion";
|
|
205
|
-
path?: string;
|
|
206
|
-
content: string;
|
|
207
|
-
}>;
|
|
208
|
-
error?: string;
|
|
209
|
-
tokensUsed?: number;
|
|
210
|
-
duration?: number;
|
|
211
|
-
}
|
|
212
|
-
interface CreateAgentTaskInput {
|
|
213
|
-
type: AgentTaskType;
|
|
214
|
-
prompt: string;
|
|
215
|
-
context?: Record<string, unknown>;
|
|
216
|
-
projectId?: string;
|
|
217
|
-
}
|
|
218
|
-
interface RunTaskInput {
|
|
219
|
-
taskId: string;
|
|
220
|
-
options?: {
|
|
221
|
-
model?: string;
|
|
222
|
-
maxTokens?: number;
|
|
223
|
-
temperature?: number;
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
interface TaskExecution {
|
|
227
|
-
taskId: string;
|
|
228
|
-
status: AgentTaskStatus;
|
|
229
|
-
progress?: number;
|
|
230
|
-
currentStep?: string;
|
|
231
|
-
logs?: string[];
|
|
232
|
-
}
|
|
233
|
-
declare const CreateTicketSchema: z.ZodObject<{
|
|
234
|
-
title: z.ZodString;
|
|
235
|
-
description: z.ZodOptional<z.ZodString>;
|
|
236
|
-
status: z.ZodOptional<z.ZodEnum<["open", "in_progress", "review", "done", "closed"]>>;
|
|
237
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
238
|
-
type: z.ZodOptional<z.ZodEnum<["bug", "feature", "task", "improvement", "epic"]>>;
|
|
239
|
-
projectId: z.ZodString;
|
|
240
|
-
assigneeId: z.ZodOptional<z.ZodString>;
|
|
241
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
dueDate: z.ZodOptional<z.ZodString>;
|
|
243
|
-
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
projectId: string;
|
|
245
|
-
title: string;
|
|
246
|
-
status?: "done" | "open" | "in_progress" | "review" | "closed" | undefined;
|
|
247
|
-
description?: string | undefined;
|
|
248
|
-
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
249
|
-
type?: "bug" | "feature" | "task" | "improvement" | "epic" | undefined;
|
|
250
|
-
assigneeId?: string | undefined;
|
|
251
|
-
labels?: string[] | undefined;
|
|
252
|
-
dueDate?: string | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
projectId: string;
|
|
255
|
-
title: string;
|
|
256
|
-
status?: "done" | "open" | "in_progress" | "review" | "closed" | undefined;
|
|
257
|
-
description?: string | undefined;
|
|
258
|
-
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
259
|
-
type?: "bug" | "feature" | "task" | "improvement" | "epic" | undefined;
|
|
260
|
-
assigneeId?: string | undefined;
|
|
261
|
-
labels?: string[] | undefined;
|
|
262
|
-
dueDate?: string | undefined;
|
|
263
|
-
}>;
|
|
264
|
-
declare const CreateAgentTaskSchema: z.ZodObject<{
|
|
265
|
-
type: z.ZodEnum<["code_review", "bug_fix", "feature_implementation", "refactor", "documentation", "test_generation", "analysis", "custom"]>;
|
|
266
|
-
prompt: z.ZodString;
|
|
267
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
268
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
269
|
-
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
type: "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
271
|
-
prompt: string;
|
|
272
|
-
projectId?: string | undefined;
|
|
273
|
-
context?: Record<string, unknown> | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
type: "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
276
|
-
prompt: string;
|
|
277
|
-
projectId?: string | undefined;
|
|
278
|
-
context?: Record<string, unknown> | undefined;
|
|
279
|
-
}>;
|
|
280
|
-
|
|
281
|
-
export { type AgentTask, type AgentTaskResult, type AgentTaskStatus, type AgentTaskType, type ApiResponse, CodmirApiError, type CodmirClientConfig, type CodmirError, type CoverageFeatureBreakdown, type CoverageInsight, type CoverageInsightRequest, type CoverageSuggestedTest, type CreateAgentTaskInput, CreateAgentTaskSchema, type CreateProjectInput, type CreateTestCaseInput, type CreateTicketInput, CreateTicketSchema, type PaginatedResponse, type Project, type RunTaskInput, type TaskExecution, type TestCase, type TestCasePriority, type TestCaseStatus, type TestCaseStep, type TestCaseTemplate, type TestRunArtifact, type TestRunRecord, type TestRunSummaryInput, type Ticket, type TicketPriority, type TicketStatus, type TicketType, type UpdateTestCaseInput, type UpdateTicketInput, type User };
|
package/dist/types.d.ts
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
interface CodmirClientConfig {
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
baseUrl?: string;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
headers?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
interface CodmirError {
|
|
10
|
-
code: string;
|
|
11
|
-
message: string;
|
|
12
|
-
details?: Record<string, unknown>;
|
|
13
|
-
statusCode?: number;
|
|
14
|
-
}
|
|
15
|
-
declare class CodmirApiError extends Error {
|
|
16
|
-
code: string;
|
|
17
|
-
statusCode?: number | undefined;
|
|
18
|
-
details?: Record<string, unknown> | undefined;
|
|
19
|
-
constructor(code: string, message: string, statusCode?: number | undefined, details?: Record<string, unknown> | undefined);
|
|
20
|
-
}
|
|
21
|
-
interface User {
|
|
22
|
-
id: string;
|
|
23
|
-
email: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
avatar?: string;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
}
|
|
28
|
-
interface ApiResponse<T> {
|
|
29
|
-
data: T;
|
|
30
|
-
success: boolean;
|
|
31
|
-
error?: CodmirError;
|
|
32
|
-
}
|
|
33
|
-
interface PaginatedResponse<T> {
|
|
34
|
-
data: T[];
|
|
35
|
-
pagination: {
|
|
36
|
-
total: number;
|
|
37
|
-
page: number;
|
|
38
|
-
pageSize: number;
|
|
39
|
-
totalPages: number;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
interface Project {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
slug: string;
|
|
46
|
-
description?: string;
|
|
47
|
-
organizationId: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
}
|
|
51
|
-
interface CreateProjectInput {
|
|
52
|
-
name: string;
|
|
53
|
-
slug?: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
organizationId: string;
|
|
56
|
-
}
|
|
57
|
-
type TicketStatus = "open" | "in_progress" | "review" | "done" | "closed";
|
|
58
|
-
type TicketPriority = "low" | "medium" | "high" | "critical";
|
|
59
|
-
type TicketType = "bug" | "feature" | "task" | "improvement" | "epic";
|
|
60
|
-
interface Ticket {
|
|
61
|
-
id: string;
|
|
62
|
-
title: string;
|
|
63
|
-
description?: string;
|
|
64
|
-
status: TicketStatus;
|
|
65
|
-
priority: TicketPriority;
|
|
66
|
-
type: TicketType;
|
|
67
|
-
projectId: string;
|
|
68
|
-
assigneeId?: string;
|
|
69
|
-
reporterId: string;
|
|
70
|
-
labels?: string[];
|
|
71
|
-
dueDate?: string;
|
|
72
|
-
createdAt: string;
|
|
73
|
-
updatedAt: string;
|
|
74
|
-
}
|
|
75
|
-
interface CreateTicketInput {
|
|
76
|
-
title: string;
|
|
77
|
-
description?: string;
|
|
78
|
-
status?: TicketStatus;
|
|
79
|
-
priority?: TicketPriority;
|
|
80
|
-
type?: TicketType;
|
|
81
|
-
projectId: string;
|
|
82
|
-
assigneeId?: string;
|
|
83
|
-
labels?: string[];
|
|
84
|
-
dueDate?: string;
|
|
85
|
-
}
|
|
86
|
-
interface UpdateTicketInput {
|
|
87
|
-
title?: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
status?: TicketStatus;
|
|
90
|
-
priority?: TicketPriority;
|
|
91
|
-
type?: TicketType;
|
|
92
|
-
assigneeId?: string;
|
|
93
|
-
labels?: string[];
|
|
94
|
-
dueDate?: string;
|
|
95
|
-
}
|
|
96
|
-
type TestCasePriority = "low" | "medium" | "high" | "critical";
|
|
97
|
-
type TestCaseStatus = "draft" | "active" | "deprecated";
|
|
98
|
-
interface TestCaseStep {
|
|
99
|
-
order: number;
|
|
100
|
-
action: string;
|
|
101
|
-
expectedResult: string;
|
|
102
|
-
}
|
|
103
|
-
interface TestCase {
|
|
104
|
-
id: string;
|
|
105
|
-
title: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
steps: TestCaseStep[];
|
|
108
|
-
priority: TestCasePriority;
|
|
109
|
-
status: TestCaseStatus;
|
|
110
|
-
projectId: string;
|
|
111
|
-
ticketId?: string;
|
|
112
|
-
createdAt: string;
|
|
113
|
-
updatedAt: string;
|
|
114
|
-
}
|
|
115
|
-
interface CreateTestCaseInput {
|
|
116
|
-
title: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
steps: TestCaseStep[];
|
|
119
|
-
priority?: TestCasePriority;
|
|
120
|
-
projectId: string;
|
|
121
|
-
ticketId?: string;
|
|
122
|
-
}
|
|
123
|
-
interface UpdateTestCaseInput {
|
|
124
|
-
title?: string;
|
|
125
|
-
description?: string;
|
|
126
|
-
steps?: TestCaseStep[];
|
|
127
|
-
priority?: TestCasePriority;
|
|
128
|
-
status?: TestCaseStatus;
|
|
129
|
-
}
|
|
130
|
-
interface TestCaseTemplate {
|
|
131
|
-
id: string;
|
|
132
|
-
name: string;
|
|
133
|
-
description?: string;
|
|
134
|
-
steps: TestCaseStep[];
|
|
135
|
-
}
|
|
136
|
-
interface TestRunSummaryInput {
|
|
137
|
-
projectId: string;
|
|
138
|
-
testRunId: string;
|
|
139
|
-
totalTests: number;
|
|
140
|
-
passed: number;
|
|
141
|
-
failed: number;
|
|
142
|
-
skipped: number;
|
|
143
|
-
duration: number;
|
|
144
|
-
coverage?: number;
|
|
145
|
-
failedTests?: TestRunRecord[];
|
|
146
|
-
artifacts?: TestRunArtifact[];
|
|
147
|
-
}
|
|
148
|
-
interface TestRunRecord {
|
|
149
|
-
name: string;
|
|
150
|
-
error?: string;
|
|
151
|
-
duration?: number;
|
|
152
|
-
}
|
|
153
|
-
interface TestRunArtifact {
|
|
154
|
-
name: string;
|
|
155
|
-
url: string;
|
|
156
|
-
type: "screenshot" | "video" | "log" | "report";
|
|
157
|
-
}
|
|
158
|
-
interface CoverageInsightRequest {
|
|
159
|
-
projectId: string;
|
|
160
|
-
coverage: number;
|
|
161
|
-
uncoveredLines?: number;
|
|
162
|
-
uncoveredBranches?: number;
|
|
163
|
-
files?: Array<{
|
|
164
|
-
path: string;
|
|
165
|
-
coverage: number;
|
|
166
|
-
uncoveredLines?: number[];
|
|
167
|
-
}>;
|
|
168
|
-
}
|
|
169
|
-
interface CoverageInsight {
|
|
170
|
-
summary: string;
|
|
171
|
-
riskAreas: string[];
|
|
172
|
-
suggestions: CoverageSuggestedTest[];
|
|
173
|
-
featureBreakdown?: CoverageFeatureBreakdown[];
|
|
174
|
-
}
|
|
175
|
-
interface CoverageFeatureBreakdown {
|
|
176
|
-
feature: string;
|
|
177
|
-
coverage: number;
|
|
178
|
-
risk: "low" | "medium" | "high";
|
|
179
|
-
}
|
|
180
|
-
interface CoverageSuggestedTest {
|
|
181
|
-
title: string;
|
|
182
|
-
description: string;
|
|
183
|
-
priority: TestCasePriority;
|
|
184
|
-
targetFile?: string;
|
|
185
|
-
}
|
|
186
|
-
type AgentTaskType = "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
187
|
-
type AgentTaskStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
188
|
-
interface AgentTask {
|
|
189
|
-
id: string;
|
|
190
|
-
type: AgentTaskType;
|
|
191
|
-
status: AgentTaskStatus;
|
|
192
|
-
prompt: string;
|
|
193
|
-
context?: Record<string, unknown>;
|
|
194
|
-
result?: AgentTaskResult;
|
|
195
|
-
projectId?: string;
|
|
196
|
-
createdAt: string;
|
|
197
|
-
updatedAt: string;
|
|
198
|
-
completedAt?: string;
|
|
199
|
-
}
|
|
200
|
-
interface AgentTaskResult {
|
|
201
|
-
success: boolean;
|
|
202
|
-
output?: string;
|
|
203
|
-
artifacts?: Array<{
|
|
204
|
-
type: "file" | "diff" | "suggestion";
|
|
205
|
-
path?: string;
|
|
206
|
-
content: string;
|
|
207
|
-
}>;
|
|
208
|
-
error?: string;
|
|
209
|
-
tokensUsed?: number;
|
|
210
|
-
duration?: number;
|
|
211
|
-
}
|
|
212
|
-
interface CreateAgentTaskInput {
|
|
213
|
-
type: AgentTaskType;
|
|
214
|
-
prompt: string;
|
|
215
|
-
context?: Record<string, unknown>;
|
|
216
|
-
projectId?: string;
|
|
217
|
-
}
|
|
218
|
-
interface RunTaskInput {
|
|
219
|
-
taskId: string;
|
|
220
|
-
options?: {
|
|
221
|
-
model?: string;
|
|
222
|
-
maxTokens?: number;
|
|
223
|
-
temperature?: number;
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
interface TaskExecution {
|
|
227
|
-
taskId: string;
|
|
228
|
-
status: AgentTaskStatus;
|
|
229
|
-
progress?: number;
|
|
230
|
-
currentStep?: string;
|
|
231
|
-
logs?: string[];
|
|
232
|
-
}
|
|
233
|
-
declare const CreateTicketSchema: z.ZodObject<{
|
|
234
|
-
title: z.ZodString;
|
|
235
|
-
description: z.ZodOptional<z.ZodString>;
|
|
236
|
-
status: z.ZodOptional<z.ZodEnum<["open", "in_progress", "review", "done", "closed"]>>;
|
|
237
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
238
|
-
type: z.ZodOptional<z.ZodEnum<["bug", "feature", "task", "improvement", "epic"]>>;
|
|
239
|
-
projectId: z.ZodString;
|
|
240
|
-
assigneeId: z.ZodOptional<z.ZodString>;
|
|
241
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
dueDate: z.ZodOptional<z.ZodString>;
|
|
243
|
-
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
projectId: string;
|
|
245
|
-
title: string;
|
|
246
|
-
status?: "done" | "open" | "in_progress" | "review" | "closed" | undefined;
|
|
247
|
-
description?: string | undefined;
|
|
248
|
-
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
249
|
-
type?: "bug" | "feature" | "task" | "improvement" | "epic" | undefined;
|
|
250
|
-
assigneeId?: string | undefined;
|
|
251
|
-
labels?: string[] | undefined;
|
|
252
|
-
dueDate?: string | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
projectId: string;
|
|
255
|
-
title: string;
|
|
256
|
-
status?: "done" | "open" | "in_progress" | "review" | "closed" | undefined;
|
|
257
|
-
description?: string | undefined;
|
|
258
|
-
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
259
|
-
type?: "bug" | "feature" | "task" | "improvement" | "epic" | undefined;
|
|
260
|
-
assigneeId?: string | undefined;
|
|
261
|
-
labels?: string[] | undefined;
|
|
262
|
-
dueDate?: string | undefined;
|
|
263
|
-
}>;
|
|
264
|
-
declare const CreateAgentTaskSchema: z.ZodObject<{
|
|
265
|
-
type: z.ZodEnum<["code_review", "bug_fix", "feature_implementation", "refactor", "documentation", "test_generation", "analysis", "custom"]>;
|
|
266
|
-
prompt: z.ZodString;
|
|
267
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
268
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
269
|
-
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
type: "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
271
|
-
prompt: string;
|
|
272
|
-
projectId?: string | undefined;
|
|
273
|
-
context?: Record<string, unknown> | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
type: "code_review" | "bug_fix" | "feature_implementation" | "refactor" | "documentation" | "test_generation" | "analysis" | "custom";
|
|
276
|
-
prompt: string;
|
|
277
|
-
projectId?: string | undefined;
|
|
278
|
-
context?: Record<string, unknown> | undefined;
|
|
279
|
-
}>;
|
|
280
|
-
|
|
281
|
-
export { type AgentTask, type AgentTaskResult, type AgentTaskStatus, type AgentTaskType, type ApiResponse, CodmirApiError, type CodmirClientConfig, type CodmirError, type CoverageFeatureBreakdown, type CoverageInsight, type CoverageInsightRequest, type CoverageSuggestedTest, type CreateAgentTaskInput, CreateAgentTaskSchema, type CreateProjectInput, type CreateTestCaseInput, type CreateTicketInput, CreateTicketSchema, type PaginatedResponse, type Project, type RunTaskInput, type TaskExecution, type TestCase, type TestCasePriority, type TestCaseStatus, type TestCaseStep, type TestCaseTemplate, type TestRunArtifact, type TestRunRecord, type TestRunSummaryInput, type Ticket, type TicketPriority, type TicketStatus, type TicketType, type UpdateTestCaseInput, type UpdateTicketInput, type User };
|