assuremind 1.0.2 → 1.1.1
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 +5 -4
- package/LICENSE +20 -20
- package/README.md +93 -310
- package/dist/cli/index.js +1401 -304
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.mts +59 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +43 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -3
- package/dist/index.mjs.map +1 -1
- package/docs/CLI-REFERENCE.md +18 -1
- package/docs/GETTING-STARTED.md +9 -2
- package/docs/STUDIO.md +37 -3
- package/package.json +3 -1
- package/templates/{AUTOMIND.md → ASSUREMIND.md} +31 -3
- package/templates/docs/CLI-REFERENCE.md +19 -2
- package/templates/docs/GETTING-STARTED.md +9 -3
- package/templates/docs/STUDIO.md +43 -2
- package/ui/dist/assets/index-By2Hw5l2.css +1 -0
- package/ui/dist/assets/index-DaQ-JHje.js +819 -0
- package/ui/dist/favicon.svg +36 -36
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-CdtAorWT.js +0 -819
- package/ui/dist/assets/index-KjpMCzao.css +0 -1
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var EnvironmentUrlsSchema = z.object({
|
|
|
14
14
|
});
|
|
15
15
|
var HealingConfigSchema = z.object({
|
|
16
16
|
enabled: z.boolean(),
|
|
17
|
-
maxLevel: z.number().int().min(1).max(
|
|
17
|
+
maxLevel: z.number().int().min(1).max(5),
|
|
18
18
|
dailyBudget: z.number().positive(),
|
|
19
19
|
autoPR: z.boolean()
|
|
20
20
|
});
|
|
@@ -59,7 +59,39 @@ var AutotestConfigSchema = z.object({
|
|
|
59
59
|
profiles: z.array(EnvironmentProfileSchema).default([]),
|
|
60
60
|
activeProfile: z.string().optional(),
|
|
61
61
|
/** Playwright device descriptor name for emulation (e.g. 'iPhone 15 Pro'). */
|
|
62
|
-
device: z.string().optional()
|
|
62
|
+
device: z.string().optional(),
|
|
63
|
+
/**
|
|
64
|
+
* Playwright MCP integration for AI-sighted code generation.
|
|
65
|
+
*
|
|
66
|
+
* CI/CD strategy (default):
|
|
67
|
+
* - MCP ON for code generation → AI sees real page elements → 90-95% selector accuracy
|
|
68
|
+
* - MCP OFF for test execution → runner executes pre-generated code, no MCP overhead
|
|
69
|
+
*
|
|
70
|
+
* MCP is ONLY used during generation (SmartRouter, Studio, API generate endpoints).
|
|
71
|
+
* The test runner (engine/runner.ts → code-runner.ts → AsyncFunction) never touches MCP —
|
|
72
|
+
* it simply executes the pre-generated Playwright code as-is.
|
|
73
|
+
*/
|
|
74
|
+
mcp: z.object({
|
|
75
|
+
/** Enable MCP-enhanced generation (real page snapshots for AI). ON by default. */
|
|
76
|
+
enabled: z.boolean(),
|
|
77
|
+
/** Run MCP browser in headless mode. */
|
|
78
|
+
headless: z.boolean(),
|
|
79
|
+
/** Two-phase: execute action via MCP first, then convert to script. */
|
|
80
|
+
actThenScript: z.boolean(),
|
|
81
|
+
/** Pre-run element validation using MCP snapshots. */
|
|
82
|
+
proactiveHealing: z.boolean(),
|
|
83
|
+
/** Timeout per MCP tool call in ms. */
|
|
84
|
+
actionTimeout: z.number().int().positive(),
|
|
85
|
+
/** Idle timeout before MCP browser auto-disconnects in ms. */
|
|
86
|
+
idleTimeout: z.number().int().positive()
|
|
87
|
+
}).default({
|
|
88
|
+
enabled: true,
|
|
89
|
+
headless: true,
|
|
90
|
+
actThenScript: false,
|
|
91
|
+
proactiveHealing: false,
|
|
92
|
+
actionTimeout: 15e3,
|
|
93
|
+
idleTimeout: 3e4
|
|
94
|
+
})
|
|
63
95
|
});
|
|
64
96
|
var DEFAULT_CONFIG = {
|
|
65
97
|
baseUrl: "http://localhost:3000",
|
|
@@ -92,7 +124,15 @@ var DEFAULT_CONFIG = {
|
|
|
92
124
|
json: true
|
|
93
125
|
},
|
|
94
126
|
studioPort: 4400,
|
|
95
|
-
profiles: []
|
|
127
|
+
profiles: [],
|
|
128
|
+
mcp: {
|
|
129
|
+
enabled: true,
|
|
130
|
+
headless: true,
|
|
131
|
+
actThenScript: false,
|
|
132
|
+
proactiveHealing: false,
|
|
133
|
+
actionTimeout: 15e3,
|
|
134
|
+
idleTimeout: 3e4
|
|
135
|
+
}
|
|
96
136
|
};
|
|
97
137
|
|
|
98
138
|
// src/storage/suite-store.ts
|