@hailstails/hone 0.1.0-pre.8 → 1.0.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/ADOPTING.md +2 -2
- package/CHANGELOG.md +12 -0
- package/MIGRATING.md +1 -1
- package/README.md +13 -11
- package/api/audit.js +0 -1
- package/api/testing.js +8 -9
- package/chunks/chunk-5X2BR42Y.js +117 -0
- package/chunks/{chunk-NRXSM7BY.js → chunk-LHVFZMXD.js} +10 -7
- package/chunks/{chunk-5LCLBXP7.js → chunk-NILRE23T.js} +1 -1
- package/chunks/{chunk-P3NLETF5.js → chunk-OKQHVZLO.js} +1 -1
- package/chunks/{chunk-POZL7G62.js → chunk-OVEQ37JQ.js} +40 -37
- package/chunks/chunk-RNXPEK2U.js +77 -0
- package/chunks/{chunk-XXLMIBLS.js → chunk-XE6RNNZB.js} +162 -143
- package/chunks/{chunk-WPRR2MPJ.js → chunk-YL6WR3QW.js} +5 -5
- package/core/check/tool-command.js +20 -20
- package/mechanisms/audit/CD-1/any-cast.js +0 -1
- package/mechanisms/audit/CD-10/throws-in-tests.js +0 -1
- package/mechanisms/audit/CD-14/class-syntax.js +0 -1
- package/mechanisms/audit/CD-15/loops.js +0 -1
- package/mechanisms/audit/CD-17/clock-sources.js +0 -1
- package/mechanisms/audit/CD-19/import-boundaries.js +2 -3
- package/mechanisms/audit/CD-2/cast-expressions.js +0 -1
- package/mechanisms/audit/CD-23/export-test-sibling.js +0 -1
- package/mechanisms/audit/CD-25/dependency-isolation.js +0 -1
- package/mechanisms/audit/CD-26/module-mocking.js +0 -1
- package/mechanisms/audit/CD-27/test-body-logic.js +0 -1
- package/mechanisms/audit/CD-3/compiler-overrides.js +2 -861
- package/mechanisms/audit/CD-43/boolean-signatures.js +0 -1
- package/mechanisms/audit/CD-44/parameter-mutation.js +0 -1
- package/mechanisms/audit/CD-47/hermetic-git-spawns.js +0 -1
- package/mechanisms/audit/CD-5/comments-directives.js +3 -4
- package/mechanisms/audit/CD-6/identifier-names.js +0 -1
- package/mechanisms/audit/CD-7/categorical-paths.js +0 -1
- package/mechanisms/audit/CD-7a/factory-return-types.js +0 -1
- package/mechanisms/audit/CD-8/switch-defaults.js +0 -1
- package/mechanisms/audit/runner/runner.js +31 -27
- package/mechanisms/eslint/CD-1/cd1/cd1.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-10/cd10/cd10.eslint-plugin.js +0 -2
- package/mechanisms/eslint/CD-14/cd14/cd14.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-2/cd2/cd2.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-27/cd27/cd27.eslint-plugin.js +0 -2
- package/mechanisms/eslint/CD-40/cd40/cd40.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-41/cd41/cd41.eslint-plugin.js +0 -2
- package/mechanisms/eslint/CD-42/cd42/cd42.eslint-plugin.js +0 -2
- package/mechanisms/eslint/CD-44/cd44/cd44.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-6/cd6/cd6.eslint-plugin.js +0 -1
- package/mechanisms/eslint/CD-7/cd7/cd7.eslint-plugin.js +0 -2
- package/mechanisms/eslint/runner/README.md +1 -1
- package/mechanisms/eslint/runner/runner.js +58 -2532
- package/package.json +6 -2
- package/THIRD-PARTY-NOTICES.md +0 -354
- package/chunks/chunk-MYX7GAVM.js +0 -73
- package/chunks/chunk-NCDYOPHG.js +0 -19832
- package/chunks/chunk-NZLE2WMY.js +0 -35
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {
|
|
2
|
+
repoPathSchema,
|
|
3
|
+
snippetSchema
|
|
4
|
+
} from "./chunk-LHVFZMXD.js";
|
|
5
|
+
import {
|
|
6
|
+
clauseAddressObjectSchema
|
|
7
|
+
} from "./chunk-5X2BR42Y.js";
|
|
8
|
+
|
|
9
|
+
// core/mechanism-port/runner-result-schema.ts
|
|
10
|
+
import { z as z3 } from "zod";
|
|
11
|
+
|
|
12
|
+
// core/values/anchor-schema.ts
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
var anchorSchema = z.object({
|
|
15
|
+
line: z.number().int().min(1),
|
|
16
|
+
column: z.number().int().min(0)
|
|
17
|
+
}).readonly();
|
|
18
|
+
|
|
19
|
+
// core/mechanism-port/runner-failure-schema.ts
|
|
20
|
+
import { z as z2 } from "zod";
|
|
21
|
+
var peerKindSchema = z2.enum(["required", "optional"]);
|
|
22
|
+
var unavailablePeerSchema = z2.object({ packageName: z2.string(), peer: peerKindSchema, supported: z2.string(), found: z2.string() }).readonly();
|
|
23
|
+
var runnerFailureSchema = z2.discriminatedUnion("kind", [
|
|
24
|
+
z2.object({ kind: z2.literal("piece-invalid"), pieceRoot: z2.string(), detail: z2.string() }).readonly(),
|
|
25
|
+
z2.object({ kind: z2.literal("tool-failed"), detail: z2.string() }).readonly(),
|
|
26
|
+
z2.object({ kind: z2.literal("file-unreadable"), file: repoPathSchema, detail: z2.string() }).readonly(),
|
|
27
|
+
z2.object({ kind: z2.literal("plugin-conflict"), detail: z2.string() }).readonly(),
|
|
28
|
+
z2.object({ kind: z2.literal("team-config-unloadable"), detail: z2.string() }).readonly(),
|
|
29
|
+
z2.object({ kind: z2.literal("runner-invalid-output"), detail: z2.string() }).readonly(),
|
|
30
|
+
z2.object({ kind: z2.literal("file-unparseable"), file: repoPathSchema, detail: z2.string() }).readonly(),
|
|
31
|
+
z2.object({
|
|
32
|
+
kind: z2.literal("toolchain-unavailable"),
|
|
33
|
+
peers: z2.tuple([unavailablePeerSchema], unavailablePeerSchema).readonly()
|
|
34
|
+
}).readonly(),
|
|
35
|
+
z2.object({
|
|
36
|
+
kind: z2.literal("toolchain-shadowed"),
|
|
37
|
+
packageName: z2.string(),
|
|
38
|
+
location: z2.string(),
|
|
39
|
+
installRoot: z2.string()
|
|
40
|
+
}).readonly()
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
// core/mechanism-port/runner-result-schema.ts
|
|
44
|
+
var nativeExceptionKindSchema = z3.enum([
|
|
45
|
+
"ignore",
|
|
46
|
+
"config-override",
|
|
47
|
+
"suppression-entry",
|
|
48
|
+
"inline-disable",
|
|
49
|
+
"inline-rule-config",
|
|
50
|
+
"command-line-option"
|
|
51
|
+
]);
|
|
52
|
+
var hitSchema = z3.object({
|
|
53
|
+
clause: clauseAddressObjectSchema,
|
|
54
|
+
file: repoPathSchema,
|
|
55
|
+
anchor: anchorSchema,
|
|
56
|
+
snippet: snippetSchema
|
|
57
|
+
}).readonly();
|
|
58
|
+
var caseVerdictSchema = z3.object({
|
|
59
|
+
caseName: z3.string(),
|
|
60
|
+
flaggedLines: z3.array(z3.number().int().min(1)).readonly()
|
|
61
|
+
}).readonly();
|
|
62
|
+
var projectionWriteSchema = z3.object({
|
|
63
|
+
path: repoPathSchema,
|
|
64
|
+
effect: z3.enum(["written", "unchanged", "removed", "left-in-place"])
|
|
65
|
+
}).readonly();
|
|
66
|
+
var runnerResultSchema = (request) => z3.union([
|
|
67
|
+
z3.object({ outcome: z3.literal("ok"), value: request.value }).readonly(),
|
|
68
|
+
z3.object({ outcome: z3.literal("failed"), error: runnerFailureSchema }).readonly()
|
|
69
|
+
]);
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
nativeExceptionKindSchema,
|
|
73
|
+
hitSchema,
|
|
74
|
+
caseVerdictSchema,
|
|
75
|
+
projectionWriteSchema,
|
|
76
|
+
runnerResultSchema
|
|
77
|
+
};
|