@taskless/cli 0.11.0 → 0.11.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.
@@ -0,0 +1,67 @@
1
+ import { z } from "zod";
2
+ export declare const schemaOutputSchema: z.ZodObject<{
3
+ astGrepSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4
+ tasklessRequirements: z.ZodObject<{
5
+ requiredFields: z.ZodArray<z.ZodString>;
6
+ rules: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ description: z.ZodString;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ examples: z.ZodArray<z.ZodObject<{
12
+ description: z.ZodString;
13
+ rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ export declare const verifyOutputSchema: z.ZodObject<{
17
+ engine: z.ZodLiteral<"sg">;
18
+ success: z.ZodBoolean;
19
+ ruleId: z.ZodString;
20
+ schema: z.ZodObject<{
21
+ valid: z.ZodBoolean;
22
+ errors: z.ZodArray<z.ZodString>;
23
+ notice: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ requirements: z.ZodObject<{
26
+ valid: z.ZodBoolean;
27
+ errors: z.ZodArray<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ tests: z.ZodObject<{
30
+ valid: z.ZodBoolean;
31
+ errors: z.ZodArray<z.ZodString>;
32
+ passed: z.ZodNumber;
33
+ failed: z.ZodNumber;
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>;
36
+ /**
37
+ * Vale verification output.
38
+ *
39
+ * Deliberately not squeezed into the ast-grep shape. `sg` verification is three
40
+ * layers over a rule file and its test cases; Vale verification is one question
41
+ * asked of two fixture buckets — did every `fail/` document fire, did every
42
+ * `pass/` document stay quiet. Mapping the second onto `schema`/`requirements`/
43
+ * `tests` would invent two empty layers and lose the fixture coverage, which is
44
+ * the part that catches a rule that was never really verified.
45
+ *
46
+ * `engine` is the discriminant. A consumer branches on it before reading
47
+ * anything else, and adding an engine cannot silently change the meaning of a
48
+ * field another engine already emits.
49
+ */
50
+ export declare const valeVerifyOutputSchema: z.ZodObject<{
51
+ engine: z.ZodLiteral<"vale">;
52
+ success: z.ZodBoolean;
53
+ ruleId: z.ZodString;
54
+ fixtures: z.ZodEnum<{
55
+ both: "both";
56
+ "pass-only": "pass-only";
57
+ "fail-only": "fail-only";
58
+ none: "none";
59
+ }>;
60
+ missingFailures: z.ZodArray<z.ZodString>;
61
+ unexpectedFindings: z.ZodArray<z.ZodString>;
62
+ notice: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>;
64
+ export declare const verifyErrorSchema: z.ZodObject<{
65
+ success: z.ZodLiteral<false>;
66
+ error: z.ZodString;
67
+ }, z.core.$strip>;
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ /** Output schema for `taskless verify --json` and `taskless test --json`. */
3
+ export declare const outputSchema: z.ZodObject<{
4
+ ok: z.ZodBoolean;
5
+ rules: z.ZodArray<z.ZodObject<{
6
+ engine: z.ZodEnum<{
7
+ sg: "sg";
8
+ vale: "vale";
9
+ runtime: "runtime";
10
+ }>;
11
+ ruleId: z.ZodString;
12
+ ok: z.ZodBoolean;
13
+ errors: z.ZodArray<z.ZodString>;
14
+ violations: z.ZodArray<z.ZodObject<{
15
+ constraintId: z.ZodString;
16
+ message: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ ran: z.ZodOptional<z.ZodBoolean>;
19
+ refused: z.ZodOptional<z.ZodString>;
20
+ notice: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;