assuremind 1.1.2 → 1.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.
- package/CONTRIBUTING.md +13 -5
- package/README.md +89 -1
- package/dist/cli/index.js +2055 -410
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.mts +151 -12
- package/dist/index.d.ts +151 -12
- package/dist/index.js +49 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -2
- package/dist/index.mjs.map +1 -1
- package/docs/CLI-REFERENCE.md +104 -0
- package/docs/GETTING-STARTED.md +64 -3
- package/docs/STUDIO.md +186 -0
- package/package.json +1 -1
- package/ui/dist/assets/index-DTtYd1hD.js +837 -0
- package/ui/dist/assets/index-lOAh29q9.css +1 -0
- package/ui/dist/assuremind-logo.png +0 -0
- package/ui/dist/favicon.svg +8 -36
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-By2Hw5l2.css +0 -1
- package/ui/dist/assets/index-DaQ-JHje.js +0 -819
package/dist/index.d.mts
CHANGED
|
@@ -128,6 +128,98 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
128
128
|
activeProfile: z.ZodOptional<z.ZodString>;
|
|
129
129
|
/** Playwright device descriptor name for emulation (e.g. 'iPhone 15 Pro'). */
|
|
130
130
|
device: z.ZodOptional<z.ZodString>;
|
|
131
|
+
/**
|
|
132
|
+
* RAG (Retrieval-Augmented Generation) — semantic memory from past runs.
|
|
133
|
+
*
|
|
134
|
+
* The AI learns from every generation and healing event:
|
|
135
|
+
* - Code Corpus: retrieve similar past steps during generation
|
|
136
|
+
* - Healing Corpus: retrieve similar past fixes during self-healing
|
|
137
|
+
* - Error Catalog: track recurring error patterns for preventive generation
|
|
138
|
+
*/
|
|
139
|
+
rag: z.ZodDefault<z.ZodObject<{
|
|
140
|
+
/** Master switch for RAG memory. */
|
|
141
|
+
enabled: z.ZodBoolean;
|
|
142
|
+
/** Code Corpus — semantic retrieval of similar instruction→code mappings. */
|
|
143
|
+
codeCorpus: z.ZodObject<{
|
|
144
|
+
enabled: z.ZodBoolean;
|
|
145
|
+
maxEntries: z.ZodNumber;
|
|
146
|
+
similarityThreshold: z.ZodNumber;
|
|
147
|
+
directUseThreshold: z.ZodNumber;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
maxEntries: number;
|
|
151
|
+
similarityThreshold: number;
|
|
152
|
+
directUseThreshold: number;
|
|
153
|
+
}, {
|
|
154
|
+
enabled: boolean;
|
|
155
|
+
maxEntries: number;
|
|
156
|
+
similarityThreshold: number;
|
|
157
|
+
directUseThreshold: number;
|
|
158
|
+
}>;
|
|
159
|
+
/** Healing Corpus — retrieve similar past healing events during self-healing. */
|
|
160
|
+
healingCorpus: z.ZodObject<{
|
|
161
|
+
enabled: z.ZodBoolean;
|
|
162
|
+
maxEntries: z.ZodNumber;
|
|
163
|
+
similarityThreshold: z.ZodNumber;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
maxEntries: number;
|
|
167
|
+
similarityThreshold: number;
|
|
168
|
+
}, {
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
maxEntries: number;
|
|
171
|
+
similarityThreshold: number;
|
|
172
|
+
}>;
|
|
173
|
+
/** Error Catalog — aggregate recurring error patterns per URL. */
|
|
174
|
+
errorCatalog: z.ZodObject<{
|
|
175
|
+
enabled: z.ZodBoolean;
|
|
176
|
+
maxEntries: z.ZodNumber;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
maxEntries: number;
|
|
180
|
+
}, {
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
maxEntries: number;
|
|
183
|
+
}>;
|
|
184
|
+
/** Embedding strategy: 'tfidf' (local, free, offline). */
|
|
185
|
+
embedder: z.ZodLiteral<"tfidf">;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
codeCorpus: {
|
|
189
|
+
enabled: boolean;
|
|
190
|
+
maxEntries: number;
|
|
191
|
+
similarityThreshold: number;
|
|
192
|
+
directUseThreshold: number;
|
|
193
|
+
};
|
|
194
|
+
healingCorpus: {
|
|
195
|
+
enabled: boolean;
|
|
196
|
+
maxEntries: number;
|
|
197
|
+
similarityThreshold: number;
|
|
198
|
+
};
|
|
199
|
+
errorCatalog: {
|
|
200
|
+
enabled: boolean;
|
|
201
|
+
maxEntries: number;
|
|
202
|
+
};
|
|
203
|
+
embedder: "tfidf";
|
|
204
|
+
}, {
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
codeCorpus: {
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
maxEntries: number;
|
|
209
|
+
similarityThreshold: number;
|
|
210
|
+
directUseThreshold: number;
|
|
211
|
+
};
|
|
212
|
+
healingCorpus: {
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
maxEntries: number;
|
|
215
|
+
similarityThreshold: number;
|
|
216
|
+
};
|
|
217
|
+
errorCatalog: {
|
|
218
|
+
enabled: boolean;
|
|
219
|
+
maxEntries: number;
|
|
220
|
+
};
|
|
221
|
+
embedder: "tfidf";
|
|
222
|
+
}>>;
|
|
131
223
|
/**
|
|
132
224
|
* Playwright MCP integration for AI-sighted code generation.
|
|
133
225
|
*
|
|
@@ -208,6 +300,25 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
208
300
|
name: string;
|
|
209
301
|
headless?: boolean | undefined;
|
|
210
302
|
}[];
|
|
303
|
+
rag: {
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
codeCorpus: {
|
|
306
|
+
enabled: boolean;
|
|
307
|
+
maxEntries: number;
|
|
308
|
+
similarityThreshold: number;
|
|
309
|
+
directUseThreshold: number;
|
|
310
|
+
};
|
|
311
|
+
healingCorpus: {
|
|
312
|
+
enabled: boolean;
|
|
313
|
+
maxEntries: number;
|
|
314
|
+
similarityThreshold: number;
|
|
315
|
+
};
|
|
316
|
+
errorCatalog: {
|
|
317
|
+
enabled: boolean;
|
|
318
|
+
maxEntries: number;
|
|
319
|
+
};
|
|
320
|
+
embedder: "tfidf";
|
|
321
|
+
};
|
|
211
322
|
mcp: {
|
|
212
323
|
headless: boolean;
|
|
213
324
|
enabled: boolean;
|
|
@@ -261,6 +372,25 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
261
372
|
}[] | undefined;
|
|
262
373
|
activeProfile?: string | undefined;
|
|
263
374
|
device?: string | undefined;
|
|
375
|
+
rag?: {
|
|
376
|
+
enabled: boolean;
|
|
377
|
+
codeCorpus: {
|
|
378
|
+
enabled: boolean;
|
|
379
|
+
maxEntries: number;
|
|
380
|
+
similarityThreshold: number;
|
|
381
|
+
directUseThreshold: number;
|
|
382
|
+
};
|
|
383
|
+
healingCorpus: {
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
maxEntries: number;
|
|
386
|
+
similarityThreshold: number;
|
|
387
|
+
};
|
|
388
|
+
errorCatalog: {
|
|
389
|
+
enabled: boolean;
|
|
390
|
+
maxEntries: number;
|
|
391
|
+
};
|
|
392
|
+
embedder: "tfidf";
|
|
393
|
+
} | undefined;
|
|
264
394
|
mcp?: {
|
|
265
395
|
headless: boolean;
|
|
266
396
|
enabled: boolean;
|
|
@@ -281,7 +411,7 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
281
411
|
order: z.ZodNumber;
|
|
282
412
|
instruction: z.ZodString;
|
|
283
413
|
generatedCode: z.ZodString;
|
|
284
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
414
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
285
415
|
stepType: z.ZodDefault<z.ZodEnum<["ui", "api", "mock"]>>;
|
|
286
416
|
lastHealed: z.ZodNullable<z.ZodString>;
|
|
287
417
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -290,12 +420,13 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
290
420
|
mockResponse: z.ZodOptional<z.ZodString>;
|
|
291
421
|
mockStatus: z.ZodOptional<z.ZodNumber>;
|
|
292
422
|
runAudit: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
+
soft: z.ZodOptional<z.ZodBoolean>;
|
|
293
424
|
}, "strip", z.ZodTypeAny, {
|
|
294
425
|
id: string;
|
|
295
426
|
order: number;
|
|
296
427
|
instruction: string;
|
|
297
428
|
generatedCode: string;
|
|
298
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
429
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
299
430
|
stepType: "ui" | "api" | "mock";
|
|
300
431
|
lastHealed: string | null;
|
|
301
432
|
timeout?: number | undefined;
|
|
@@ -304,12 +435,13 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
304
435
|
mockResponse?: string | undefined;
|
|
305
436
|
mockStatus?: number | undefined;
|
|
306
437
|
runAudit?: boolean | undefined;
|
|
438
|
+
soft?: boolean | undefined;
|
|
307
439
|
}, {
|
|
308
440
|
id: string;
|
|
309
441
|
order: number;
|
|
310
442
|
instruction: string;
|
|
311
443
|
generatedCode: string;
|
|
312
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
444
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
313
445
|
lastHealed: string | null;
|
|
314
446
|
timeout?: number | undefined;
|
|
315
447
|
retries?: number | undefined;
|
|
@@ -318,6 +450,7 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
318
450
|
mockResponse?: string | undefined;
|
|
319
451
|
mockStatus?: number | undefined;
|
|
320
452
|
runAudit?: boolean | undefined;
|
|
453
|
+
soft?: boolean | undefined;
|
|
321
454
|
}>;
|
|
322
455
|
declare const TestCaseSchema: z.ZodObject<{
|
|
323
456
|
id: z.ZodString;
|
|
@@ -344,7 +477,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
344
477
|
order: z.ZodNumber;
|
|
345
478
|
instruction: z.ZodString;
|
|
346
479
|
generatedCode: z.ZodString;
|
|
347
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
480
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
348
481
|
stepType: z.ZodDefault<z.ZodEnum<["ui", "api", "mock"]>>;
|
|
349
482
|
lastHealed: z.ZodNullable<z.ZodString>;
|
|
350
483
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -353,12 +486,13 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
353
486
|
mockResponse: z.ZodOptional<z.ZodString>;
|
|
354
487
|
mockStatus: z.ZodOptional<z.ZodNumber>;
|
|
355
488
|
runAudit: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
soft: z.ZodOptional<z.ZodBoolean>;
|
|
356
490
|
}, "strip", z.ZodTypeAny, {
|
|
357
491
|
id: string;
|
|
358
492
|
order: number;
|
|
359
493
|
instruction: string;
|
|
360
494
|
generatedCode: string;
|
|
361
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
495
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
362
496
|
stepType: "ui" | "api" | "mock";
|
|
363
497
|
lastHealed: string | null;
|
|
364
498
|
timeout?: number | undefined;
|
|
@@ -367,12 +501,13 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
367
501
|
mockResponse?: string | undefined;
|
|
368
502
|
mockStatus?: number | undefined;
|
|
369
503
|
runAudit?: boolean | undefined;
|
|
504
|
+
soft?: boolean | undefined;
|
|
370
505
|
}, {
|
|
371
506
|
id: string;
|
|
372
507
|
order: number;
|
|
373
508
|
instruction: string;
|
|
374
509
|
generatedCode: string;
|
|
375
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
510
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
376
511
|
lastHealed: string | null;
|
|
377
512
|
timeout?: number | undefined;
|
|
378
513
|
retries?: number | undefined;
|
|
@@ -381,6 +516,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
381
516
|
mockResponse?: string | undefined;
|
|
382
517
|
mockStatus?: number | undefined;
|
|
383
518
|
runAudit?: boolean | undefined;
|
|
519
|
+
soft?: boolean | undefined;
|
|
384
520
|
}>, "many">;
|
|
385
521
|
caseHooks: z.ZodDefault<z.ZodObject<{
|
|
386
522
|
before: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -456,7 +592,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
456
592
|
order: number;
|
|
457
593
|
instruction: string;
|
|
458
594
|
generatedCode: string;
|
|
459
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
595
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
460
596
|
stepType: "ui" | "api" | "mock";
|
|
461
597
|
lastHealed: string | null;
|
|
462
598
|
timeout?: number | undefined;
|
|
@@ -465,6 +601,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
465
601
|
mockResponse?: string | undefined;
|
|
466
602
|
mockStatus?: number | undefined;
|
|
467
603
|
runAudit?: boolean | undefined;
|
|
604
|
+
soft?: boolean | undefined;
|
|
468
605
|
}[];
|
|
469
606
|
caseHooks: {
|
|
470
607
|
before: {
|
|
@@ -500,7 +637,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
500
637
|
order: number;
|
|
501
638
|
instruction: string;
|
|
502
639
|
generatedCode: string;
|
|
503
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
640
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
504
641
|
lastHealed: string | null;
|
|
505
642
|
timeout?: number | undefined;
|
|
506
643
|
retries?: number | undefined;
|
|
@@ -509,6 +646,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
509
646
|
mockResponse?: string | undefined;
|
|
510
647
|
mockStatus?: number | undefined;
|
|
511
648
|
runAudit?: boolean | undefined;
|
|
649
|
+
soft?: boolean | undefined;
|
|
512
650
|
}[];
|
|
513
651
|
createdAt: string;
|
|
514
652
|
updatedAt: string;
|
|
@@ -2619,21 +2757,21 @@ declare const PageContextSchema: z.ZodObject<{
|
|
|
2619
2757
|
accessibilityTree?: string | undefined;
|
|
2620
2758
|
}>;
|
|
2621
2759
|
type PageContext = z.infer<typeof PageContextSchema>;
|
|
2622
|
-
declare const GenerationStrategySchema: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
2760
|
+
declare const GenerationStrategySchema: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
2623
2761
|
type GenerationStrategy = z.infer<typeof GenerationStrategySchema>;
|
|
2624
2762
|
declare const GenerationResultSchema: z.ZodObject<{
|
|
2625
2763
|
code: z.ZodString;
|
|
2626
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
2764
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
2627
2765
|
cost: z.ZodNumber;
|
|
2628
2766
|
model: z.ZodString;
|
|
2629
2767
|
}, "strip", z.ZodTypeAny, {
|
|
2630
2768
|
code: string;
|
|
2631
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
2769
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
2632
2770
|
cost: number;
|
|
2633
2771
|
model: string;
|
|
2634
2772
|
}, {
|
|
2635
2773
|
code: string;
|
|
2636
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
2774
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
2637
2775
|
cost: number;
|
|
2638
2776
|
model: string;
|
|
2639
2777
|
}>;
|
|
@@ -2679,6 +2817,7 @@ interface AIProvider {
|
|
|
2679
2817
|
interface RouterStats {
|
|
2680
2818
|
template: number;
|
|
2681
2819
|
cache: number;
|
|
2820
|
+
rag: number;
|
|
2682
2821
|
batch: number;
|
|
2683
2822
|
fast: number;
|
|
2684
2823
|
primary: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,98 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
128
128
|
activeProfile: z.ZodOptional<z.ZodString>;
|
|
129
129
|
/** Playwright device descriptor name for emulation (e.g. 'iPhone 15 Pro'). */
|
|
130
130
|
device: z.ZodOptional<z.ZodString>;
|
|
131
|
+
/**
|
|
132
|
+
* RAG (Retrieval-Augmented Generation) — semantic memory from past runs.
|
|
133
|
+
*
|
|
134
|
+
* The AI learns from every generation and healing event:
|
|
135
|
+
* - Code Corpus: retrieve similar past steps during generation
|
|
136
|
+
* - Healing Corpus: retrieve similar past fixes during self-healing
|
|
137
|
+
* - Error Catalog: track recurring error patterns for preventive generation
|
|
138
|
+
*/
|
|
139
|
+
rag: z.ZodDefault<z.ZodObject<{
|
|
140
|
+
/** Master switch for RAG memory. */
|
|
141
|
+
enabled: z.ZodBoolean;
|
|
142
|
+
/** Code Corpus — semantic retrieval of similar instruction→code mappings. */
|
|
143
|
+
codeCorpus: z.ZodObject<{
|
|
144
|
+
enabled: z.ZodBoolean;
|
|
145
|
+
maxEntries: z.ZodNumber;
|
|
146
|
+
similarityThreshold: z.ZodNumber;
|
|
147
|
+
directUseThreshold: z.ZodNumber;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
maxEntries: number;
|
|
151
|
+
similarityThreshold: number;
|
|
152
|
+
directUseThreshold: number;
|
|
153
|
+
}, {
|
|
154
|
+
enabled: boolean;
|
|
155
|
+
maxEntries: number;
|
|
156
|
+
similarityThreshold: number;
|
|
157
|
+
directUseThreshold: number;
|
|
158
|
+
}>;
|
|
159
|
+
/** Healing Corpus — retrieve similar past healing events during self-healing. */
|
|
160
|
+
healingCorpus: z.ZodObject<{
|
|
161
|
+
enabled: z.ZodBoolean;
|
|
162
|
+
maxEntries: z.ZodNumber;
|
|
163
|
+
similarityThreshold: z.ZodNumber;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
maxEntries: number;
|
|
167
|
+
similarityThreshold: number;
|
|
168
|
+
}, {
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
maxEntries: number;
|
|
171
|
+
similarityThreshold: number;
|
|
172
|
+
}>;
|
|
173
|
+
/** Error Catalog — aggregate recurring error patterns per URL. */
|
|
174
|
+
errorCatalog: z.ZodObject<{
|
|
175
|
+
enabled: z.ZodBoolean;
|
|
176
|
+
maxEntries: z.ZodNumber;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
maxEntries: number;
|
|
180
|
+
}, {
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
maxEntries: number;
|
|
183
|
+
}>;
|
|
184
|
+
/** Embedding strategy: 'tfidf' (local, free, offline). */
|
|
185
|
+
embedder: z.ZodLiteral<"tfidf">;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
codeCorpus: {
|
|
189
|
+
enabled: boolean;
|
|
190
|
+
maxEntries: number;
|
|
191
|
+
similarityThreshold: number;
|
|
192
|
+
directUseThreshold: number;
|
|
193
|
+
};
|
|
194
|
+
healingCorpus: {
|
|
195
|
+
enabled: boolean;
|
|
196
|
+
maxEntries: number;
|
|
197
|
+
similarityThreshold: number;
|
|
198
|
+
};
|
|
199
|
+
errorCatalog: {
|
|
200
|
+
enabled: boolean;
|
|
201
|
+
maxEntries: number;
|
|
202
|
+
};
|
|
203
|
+
embedder: "tfidf";
|
|
204
|
+
}, {
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
codeCorpus: {
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
maxEntries: number;
|
|
209
|
+
similarityThreshold: number;
|
|
210
|
+
directUseThreshold: number;
|
|
211
|
+
};
|
|
212
|
+
healingCorpus: {
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
maxEntries: number;
|
|
215
|
+
similarityThreshold: number;
|
|
216
|
+
};
|
|
217
|
+
errorCatalog: {
|
|
218
|
+
enabled: boolean;
|
|
219
|
+
maxEntries: number;
|
|
220
|
+
};
|
|
221
|
+
embedder: "tfidf";
|
|
222
|
+
}>>;
|
|
131
223
|
/**
|
|
132
224
|
* Playwright MCP integration for AI-sighted code generation.
|
|
133
225
|
*
|
|
@@ -208,6 +300,25 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
208
300
|
name: string;
|
|
209
301
|
headless?: boolean | undefined;
|
|
210
302
|
}[];
|
|
303
|
+
rag: {
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
codeCorpus: {
|
|
306
|
+
enabled: boolean;
|
|
307
|
+
maxEntries: number;
|
|
308
|
+
similarityThreshold: number;
|
|
309
|
+
directUseThreshold: number;
|
|
310
|
+
};
|
|
311
|
+
healingCorpus: {
|
|
312
|
+
enabled: boolean;
|
|
313
|
+
maxEntries: number;
|
|
314
|
+
similarityThreshold: number;
|
|
315
|
+
};
|
|
316
|
+
errorCatalog: {
|
|
317
|
+
enabled: boolean;
|
|
318
|
+
maxEntries: number;
|
|
319
|
+
};
|
|
320
|
+
embedder: "tfidf";
|
|
321
|
+
};
|
|
211
322
|
mcp: {
|
|
212
323
|
headless: boolean;
|
|
213
324
|
enabled: boolean;
|
|
@@ -261,6 +372,25 @@ declare const AutotestConfigSchema: z.ZodObject<{
|
|
|
261
372
|
}[] | undefined;
|
|
262
373
|
activeProfile?: string | undefined;
|
|
263
374
|
device?: string | undefined;
|
|
375
|
+
rag?: {
|
|
376
|
+
enabled: boolean;
|
|
377
|
+
codeCorpus: {
|
|
378
|
+
enabled: boolean;
|
|
379
|
+
maxEntries: number;
|
|
380
|
+
similarityThreshold: number;
|
|
381
|
+
directUseThreshold: number;
|
|
382
|
+
};
|
|
383
|
+
healingCorpus: {
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
maxEntries: number;
|
|
386
|
+
similarityThreshold: number;
|
|
387
|
+
};
|
|
388
|
+
errorCatalog: {
|
|
389
|
+
enabled: boolean;
|
|
390
|
+
maxEntries: number;
|
|
391
|
+
};
|
|
392
|
+
embedder: "tfidf";
|
|
393
|
+
} | undefined;
|
|
264
394
|
mcp?: {
|
|
265
395
|
headless: boolean;
|
|
266
396
|
enabled: boolean;
|
|
@@ -281,7 +411,7 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
281
411
|
order: z.ZodNumber;
|
|
282
412
|
instruction: z.ZodString;
|
|
283
413
|
generatedCode: z.ZodString;
|
|
284
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
414
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
285
415
|
stepType: z.ZodDefault<z.ZodEnum<["ui", "api", "mock"]>>;
|
|
286
416
|
lastHealed: z.ZodNullable<z.ZodString>;
|
|
287
417
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -290,12 +420,13 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
290
420
|
mockResponse: z.ZodOptional<z.ZodString>;
|
|
291
421
|
mockStatus: z.ZodOptional<z.ZodNumber>;
|
|
292
422
|
runAudit: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
+
soft: z.ZodOptional<z.ZodBoolean>;
|
|
293
424
|
}, "strip", z.ZodTypeAny, {
|
|
294
425
|
id: string;
|
|
295
426
|
order: number;
|
|
296
427
|
instruction: string;
|
|
297
428
|
generatedCode: string;
|
|
298
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
429
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
299
430
|
stepType: "ui" | "api" | "mock";
|
|
300
431
|
lastHealed: string | null;
|
|
301
432
|
timeout?: number | undefined;
|
|
@@ -304,12 +435,13 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
304
435
|
mockResponse?: string | undefined;
|
|
305
436
|
mockStatus?: number | undefined;
|
|
306
437
|
runAudit?: boolean | undefined;
|
|
438
|
+
soft?: boolean | undefined;
|
|
307
439
|
}, {
|
|
308
440
|
id: string;
|
|
309
441
|
order: number;
|
|
310
442
|
instruction: string;
|
|
311
443
|
generatedCode: string;
|
|
312
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
444
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
313
445
|
lastHealed: string | null;
|
|
314
446
|
timeout?: number | undefined;
|
|
315
447
|
retries?: number | undefined;
|
|
@@ -318,6 +450,7 @@ declare const TestStepSchema: z.ZodObject<{
|
|
|
318
450
|
mockResponse?: string | undefined;
|
|
319
451
|
mockStatus?: number | undefined;
|
|
320
452
|
runAudit?: boolean | undefined;
|
|
453
|
+
soft?: boolean | undefined;
|
|
321
454
|
}>;
|
|
322
455
|
declare const TestCaseSchema: z.ZodObject<{
|
|
323
456
|
id: z.ZodString;
|
|
@@ -344,7 +477,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
344
477
|
order: z.ZodNumber;
|
|
345
478
|
instruction: z.ZodString;
|
|
346
479
|
generatedCode: z.ZodString;
|
|
347
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
480
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
348
481
|
stepType: z.ZodDefault<z.ZodEnum<["ui", "api", "mock"]>>;
|
|
349
482
|
lastHealed: z.ZodNullable<z.ZodString>;
|
|
350
483
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -353,12 +486,13 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
353
486
|
mockResponse: z.ZodOptional<z.ZodString>;
|
|
354
487
|
mockStatus: z.ZodOptional<z.ZodNumber>;
|
|
355
488
|
runAudit: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
soft: z.ZodOptional<z.ZodBoolean>;
|
|
356
490
|
}, "strip", z.ZodTypeAny, {
|
|
357
491
|
id: string;
|
|
358
492
|
order: number;
|
|
359
493
|
instruction: string;
|
|
360
494
|
generatedCode: string;
|
|
361
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
495
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
362
496
|
stepType: "ui" | "api" | "mock";
|
|
363
497
|
lastHealed: string | null;
|
|
364
498
|
timeout?: number | undefined;
|
|
@@ -367,12 +501,13 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
367
501
|
mockResponse?: string | undefined;
|
|
368
502
|
mockStatus?: number | undefined;
|
|
369
503
|
runAudit?: boolean | undefined;
|
|
504
|
+
soft?: boolean | undefined;
|
|
370
505
|
}, {
|
|
371
506
|
id: string;
|
|
372
507
|
order: number;
|
|
373
508
|
instruction: string;
|
|
374
509
|
generatedCode: string;
|
|
375
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
510
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
376
511
|
lastHealed: string | null;
|
|
377
512
|
timeout?: number | undefined;
|
|
378
513
|
retries?: number | undefined;
|
|
@@ -381,6 +516,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
381
516
|
mockResponse?: string | undefined;
|
|
382
517
|
mockStatus?: number | undefined;
|
|
383
518
|
runAudit?: boolean | undefined;
|
|
519
|
+
soft?: boolean | undefined;
|
|
384
520
|
}>, "many">;
|
|
385
521
|
caseHooks: z.ZodDefault<z.ZodObject<{
|
|
386
522
|
before: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -456,7 +592,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
456
592
|
order: number;
|
|
457
593
|
instruction: string;
|
|
458
594
|
generatedCode: string;
|
|
459
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
595
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
460
596
|
stepType: "ui" | "api" | "mock";
|
|
461
597
|
lastHealed: string | null;
|
|
462
598
|
timeout?: number | undefined;
|
|
@@ -465,6 +601,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
465
601
|
mockResponse?: string | undefined;
|
|
466
602
|
mockStatus?: number | undefined;
|
|
467
603
|
runAudit?: boolean | undefined;
|
|
604
|
+
soft?: boolean | undefined;
|
|
468
605
|
}[];
|
|
469
606
|
caseHooks: {
|
|
470
607
|
before: {
|
|
@@ -500,7 +637,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
500
637
|
order: number;
|
|
501
638
|
instruction: string;
|
|
502
639
|
generatedCode: string;
|
|
503
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
640
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
504
641
|
lastHealed: string | null;
|
|
505
642
|
timeout?: number | undefined;
|
|
506
643
|
retries?: number | undefined;
|
|
@@ -509,6 +646,7 @@ declare const TestCaseSchema: z.ZodObject<{
|
|
|
509
646
|
mockResponse?: string | undefined;
|
|
510
647
|
mockStatus?: number | undefined;
|
|
511
648
|
runAudit?: boolean | undefined;
|
|
649
|
+
soft?: boolean | undefined;
|
|
512
650
|
}[];
|
|
513
651
|
createdAt: string;
|
|
514
652
|
updatedAt: string;
|
|
@@ -2619,21 +2757,21 @@ declare const PageContextSchema: z.ZodObject<{
|
|
|
2619
2757
|
accessibilityTree?: string | undefined;
|
|
2620
2758
|
}>;
|
|
2621
2759
|
type PageContext = z.infer<typeof PageContextSchema>;
|
|
2622
|
-
declare const GenerationStrategySchema: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
2760
|
+
declare const GenerationStrategySchema: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
2623
2761
|
type GenerationStrategy = z.infer<typeof GenerationStrategySchema>;
|
|
2624
2762
|
declare const GenerationResultSchema: z.ZodObject<{
|
|
2625
2763
|
code: z.ZodString;
|
|
2626
|
-
strategy: z.ZodEnum<["template", "cache", "batch", "fast", "primary"]>;
|
|
2764
|
+
strategy: z.ZodEnum<["template", "cache", "rag", "batch", "fast", "primary", "recorder"]>;
|
|
2627
2765
|
cost: z.ZodNumber;
|
|
2628
2766
|
model: z.ZodString;
|
|
2629
2767
|
}, "strip", z.ZodTypeAny, {
|
|
2630
2768
|
code: string;
|
|
2631
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
2769
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
2632
2770
|
cost: number;
|
|
2633
2771
|
model: string;
|
|
2634
2772
|
}, {
|
|
2635
2773
|
code: string;
|
|
2636
|
-
strategy: "template" | "cache" | "batch" | "fast" | "primary";
|
|
2774
|
+
strategy: "rag" | "template" | "cache" | "batch" | "fast" | "primary" | "recorder";
|
|
2637
2775
|
cost: number;
|
|
2638
2776
|
model: string;
|
|
2639
2777
|
}>;
|
|
@@ -2679,6 +2817,7 @@ interface AIProvider {
|
|
|
2679
2817
|
interface RouterStats {
|
|
2680
2818
|
template: number;
|
|
2681
2819
|
cache: number;
|
|
2820
|
+
rag: number;
|
|
2682
2821
|
batch: number;
|
|
2683
2822
|
fast: number;
|
|
2684
2823
|
primary: number;
|