@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.
- package/assets/reference.json +213 -0
- package/dist/binary-DSACXL6n.js +107 -0
- package/dist/index.js +5650 -4550
- package/dist/layout/index.d.ts +31 -0
- package/dist/layout.js +43 -0
- package/dist/node/runtimes/index.d.ts +102 -0
- package/dist/node/runtimes.js +10 -0
- package/dist/prompts/index.d.ts +25 -11
- package/dist/prompts/recipes.d.ts +37 -12
- package/dist/prompts.js +12 -12
- package/dist/recipes-w68swLg4.js +2662 -0
- package/dist/rules/ast-grep-binary.d.ts +26 -0
- package/dist/rules/capabilities.d.ts +46 -6
- package/dist/rules/constraints.d.ts +132 -0
- package/dist/rules/layout.d.ts +152 -0
- package/dist/rules/platform-binary.d.ts +113 -0
- package/dist/rules/vale/binary.d.ts +35 -0
- package/dist/schemas/index.d.ts +93 -0
- package/dist/schemas/rules-create.d.ts +1 -0
- package/dist/schemas/rules-improve.d.ts +1 -0
- package/dist/schemas/rules-verify.d.ts +67 -0
- package/dist/schemas/verify-test.d.ts +22 -0
- package/dist/schemas-OhdGAhu_.js +4512 -0
- package/dist/schemas.js +65 -0
- package/dist/types/errors.d.ts +20 -0
- package/dist/verify-test-BaZPwJqC.js +34 -0
- package/package.json +31 -12
- package/dist/recipes-C_i98mTO.js +0 -6975
|
@@ -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>;
|