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/dist/index.js CHANGED
@@ -162,6 +162,44 @@ var AutotestConfigSchema = import_zod.z.object({
162
162
  activeProfile: import_zod.z.string().optional(),
163
163
  /** Playwright device descriptor name for emulation (e.g. 'iPhone 15 Pro'). */
164
164
  device: import_zod.z.string().optional(),
165
+ /**
166
+ * RAG (Retrieval-Augmented Generation) — semantic memory from past runs.
167
+ *
168
+ * The AI learns from every generation and healing event:
169
+ * - Code Corpus: retrieve similar past steps during generation
170
+ * - Healing Corpus: retrieve similar past fixes during self-healing
171
+ * - Error Catalog: track recurring error patterns for preventive generation
172
+ */
173
+ rag: import_zod.z.object({
174
+ /** Master switch for RAG memory. */
175
+ enabled: import_zod.z.boolean(),
176
+ /** Code Corpus — semantic retrieval of similar instruction→code mappings. */
177
+ codeCorpus: import_zod.z.object({
178
+ enabled: import_zod.z.boolean(),
179
+ maxEntries: import_zod.z.number().int().positive(),
180
+ similarityThreshold: import_zod.z.number().min(0).max(1),
181
+ directUseThreshold: import_zod.z.number().min(0).max(1)
182
+ }),
183
+ /** Healing Corpus — retrieve similar past healing events during self-healing. */
184
+ healingCorpus: import_zod.z.object({
185
+ enabled: import_zod.z.boolean(),
186
+ maxEntries: import_zod.z.number().int().positive(),
187
+ similarityThreshold: import_zod.z.number().min(0).max(1)
188
+ }),
189
+ /** Error Catalog — aggregate recurring error patterns per URL. */
190
+ errorCatalog: import_zod.z.object({
191
+ enabled: import_zod.z.boolean(),
192
+ maxEntries: import_zod.z.number().int().positive()
193
+ }),
194
+ /** Embedding strategy: 'tfidf' (local, free, offline). */
195
+ embedder: import_zod.z.literal("tfidf")
196
+ }).default({
197
+ enabled: true,
198
+ codeCorpus: { enabled: true, maxEntries: 500, similarityThreshold: 0.65, directUseThreshold: 0.9 },
199
+ healingCorpus: { enabled: true, maxEntries: 300, similarityThreshold: 0.6 },
200
+ errorCatalog: { enabled: true, maxEntries: 200 },
201
+ embedder: "tfidf"
202
+ }),
165
203
  /**
166
204
  * Playwright MCP integration for AI-sighted code generation.
167
205
  *
@@ -227,6 +265,13 @@ var DEFAULT_CONFIG = {
227
265
  },
228
266
  studioPort: 4400,
229
267
  profiles: [],
268
+ rag: {
269
+ enabled: true,
270
+ codeCorpus: { enabled: true, maxEntries: 500, similarityThreshold: 0.65, directUseThreshold: 0.9 },
271
+ healingCorpus: { enabled: true, maxEntries: 300, similarityThreshold: 0.6 },
272
+ errorCatalog: { enabled: true, maxEntries: 200 },
273
+ embedder: "tfidf"
274
+ },
230
275
  mcp: {
231
276
  enabled: true,
232
277
  headless: true,
@@ -249,7 +294,7 @@ var TestStepSchema = import_zod2.z.object({
249
294
  order: import_zod2.z.number().int().positive(),
250
295
  instruction: import_zod2.z.string().min(1),
251
296
  generatedCode: import_zod2.z.string(),
252
- strategy: import_zod2.z.enum(["template", "cache", "batch", "fast", "primary"]),
297
+ strategy: import_zod2.z.enum(["template", "cache", "rag", "batch", "fast", "primary", "recorder"]),
253
298
  stepType: import_zod2.z.enum(["ui", "api", "mock"]).default("ui"),
254
299
  lastHealed: import_zod2.z.string().nullable(),
255
300
  timeout: import_zod2.z.number().int().positive().optional(),
@@ -257,8 +302,10 @@ var TestStepSchema = import_zod2.z.object({
257
302
  mockUrl: import_zod2.z.string().optional(),
258
303
  mockResponse: import_zod2.z.string().optional(),
259
304
  mockStatus: import_zod2.z.number().int().optional(),
260
- runAudit: import_zod2.z.boolean().optional()
305
+ runAudit: import_zod2.z.boolean().optional(),
261
306
  // Mark this step as a Lighthouse audit checkpoint
307
+ soft: import_zod2.z.boolean().optional()
308
+ // Use expect.soft() — test continues on assertion failure
262
309
  });
263
310
  var DataSourceSchema = import_zod2.z.object({
264
311
  type: import_zod2.z.enum(["inline", "json-file", "csv-file"]),