@unotest/web 0.5.0 → 0.6.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/.claude/hooks/log-agent.sh +24 -0
- package/.claude/skills/{write-e2e-test.md → write-e2e-test/SKILL.md} +25 -18
- package/CHANGELOG.md +69 -0
- package/README.md +59 -84
- package/bin/unotest-web.js +10 -32
- package/dist/config/schema.d.ts +9 -9
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +25 -20
- package/dist/dsl/index.js +1 -1
- package/dist/linter-DzAzJpab.d.ts +21 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +10 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +297 -0
- package/guides/dsl-reference.md +670 -0
- package/package.json +30 -39
- package/src/mcp/prompts/agent-test-author.md +71 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BlockStatement } from '@unotest/dsl';
|
|
2
|
+
|
|
3
|
+
type LintSeverity = 'error' | 'warning' | 'info';
|
|
4
|
+
interface LintDiagnostic {
|
|
5
|
+
rule: string;
|
|
6
|
+
severity: LintSeverity;
|
|
7
|
+
message: string;
|
|
8
|
+
line: number;
|
|
9
|
+
col: number;
|
|
10
|
+
}
|
|
11
|
+
interface LintOptions {
|
|
12
|
+
/** Per-rule severity override. Default severities live with each rule. */
|
|
13
|
+
ruleSeverity?: Partial<Record<string, LintSeverity>>;
|
|
14
|
+
/** Pass through if the agent provided documented justification — e.g. a
|
|
15
|
+
* `// reason:` comment immediately above the line. The lexer doesn't
|
|
16
|
+
* preserve comments today; for v1 we accept a flag from the caller. */
|
|
17
|
+
allowDisambigByIndex?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function lintAst(ast: BlockStatement, opts?: LintOptions): LintDiagnostic[];
|
|
20
|
+
|
|
21
|
+
export { type LintDiagnostic as L, type LintOptions as a, type LintSeverity as b, lintAst as l };
|