@r_masseater/fu4 0.3.9 → 0.4.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/README.md +7 -6
- package/dist/{app-BkrdDFcT.mjs → app-aXU9Rkpj.mjs} +2 -2
- package/dist/{app-BkrdDFcT.mjs.map → app-aXU9Rkpj.mjs.map} +1 -1
- package/dist/{cli-SlvFBz0A.mjs → cli-B17QwUrj.mjs} +3 -3
- package/dist/{cli-SlvFBz0A.mjs.map → cli-B17QwUrj.mjs.map} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/define-Dvnt_9zv.mjs +6 -0
- package/dist/define-Dvnt_9zv.mjs.map +1 -0
- package/dist/{index-DM3Q3-YV.d.mts → index-BJIbqoE-.d.mts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -2
- package/dist/presets.d.mts +2 -1
- package/dist/presets.mjs +455 -2000
- package/dist/presets.mjs.map +1 -1
- package/dist/rules.d.mts +295 -0
- package/dist/rules.mjs +1 -0
- package/dist/{source-CLFOyvUG.mjs → source-Cnghop8O.mjs} +2 -5
- package/dist/source-Cnghop8O.mjs.map +1 -0
- package/dist/vite.d.mts +1 -1
- package/dist/workflow-rule-C1TJLS9H.mjs +1592 -0
- package/dist/workflow-rule-C1TJLS9H.mjs.map +1 -0
- package/package.json +8 -4
- package/skills/apply-fu4-presets/SKILL.md +6 -2
- package/skills/lint-workflows/SKILL.md +6 -0
- package/dist/source-CLFOyvUG.mjs.map +0 -1
package/dist/rules.d.mts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { _ as YamlNode, c as Position, d as Rule, f as RuleContext, m as Source } from "./index-BJIbqoE-.mjs";
|
|
2
|
+
import { Option, Result } from "effect";
|
|
3
|
+
interface Pair {
|
|
4
|
+
readonly key: YamlNode;
|
|
5
|
+
readonly value: YamlNode;
|
|
6
|
+
}
|
|
7
|
+
interface Text extends Position {
|
|
8
|
+
readonly value: string;
|
|
9
|
+
readonly quoted: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const pairsOf: (node: YamlNode) => readonly Pair[];
|
|
12
|
+
export declare const keysOf: (node: YamlNode) => readonly string[];
|
|
13
|
+
export declare const valueAt: (key: string) => (node: YamlNode) => Option.Option<YamlNode>;
|
|
14
|
+
export declare const textOf: (node: YamlNode) => Text;
|
|
15
|
+
interface Bool extends Position {
|
|
16
|
+
readonly value: boolean;
|
|
17
|
+
readonly expression?: Text;
|
|
18
|
+
}
|
|
19
|
+
interface Int {
|
|
20
|
+
readonly value: number;
|
|
21
|
+
readonly expression?: Text;
|
|
22
|
+
}
|
|
23
|
+
interface Float {
|
|
24
|
+
readonly value: number;
|
|
25
|
+
readonly expression?: Text;
|
|
26
|
+
}
|
|
27
|
+
interface EventFilter {
|
|
28
|
+
readonly name: Text;
|
|
29
|
+
readonly values: readonly Text[];
|
|
30
|
+
}
|
|
31
|
+
interface WebhookEvent extends Position {
|
|
32
|
+
readonly type: "webhook";
|
|
33
|
+
readonly hook: Text;
|
|
34
|
+
readonly types: readonly Text[];
|
|
35
|
+
readonly branches?: EventFilter;
|
|
36
|
+
readonly branchesIgnore?: EventFilter;
|
|
37
|
+
readonly tags?: EventFilter;
|
|
38
|
+
readonly tagsIgnore?: EventFilter;
|
|
39
|
+
readonly paths?: EventFilter;
|
|
40
|
+
readonly pathsIgnore?: EventFilter;
|
|
41
|
+
readonly workflows: readonly Text[];
|
|
42
|
+
}
|
|
43
|
+
interface ScheduleEntry {
|
|
44
|
+
readonly cron: Text;
|
|
45
|
+
readonly timezone?: Text;
|
|
46
|
+
}
|
|
47
|
+
interface ScheduleEvent {
|
|
48
|
+
readonly type: "schedule";
|
|
49
|
+
readonly schedules: readonly ScheduleEntry[];
|
|
50
|
+
}
|
|
51
|
+
type DispatchInputType = "none" | "string" | "number" | "boolean" | "choice" | "environment";
|
|
52
|
+
interface DispatchInput {
|
|
53
|
+
readonly name: Text;
|
|
54
|
+
readonly description?: Text;
|
|
55
|
+
readonly required?: Bool;
|
|
56
|
+
readonly default?: Text;
|
|
57
|
+
readonly kind: DispatchInputType;
|
|
58
|
+
readonly options: readonly Text[];
|
|
59
|
+
}
|
|
60
|
+
interface WorkflowDispatchEvent extends Position {
|
|
61
|
+
readonly type: "workflow_dispatch";
|
|
62
|
+
readonly inputs: Readonly<Record<string, DispatchInput>>;
|
|
63
|
+
}
|
|
64
|
+
interface RepositoryDispatchEvent {
|
|
65
|
+
readonly type: "repository_dispatch";
|
|
66
|
+
readonly types: readonly Text[];
|
|
67
|
+
}
|
|
68
|
+
type CallInputType = "invalid" | "boolean" | "number" | "string";
|
|
69
|
+
interface CallEventInput {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly name: Text;
|
|
72
|
+
readonly description?: Text;
|
|
73
|
+
readonly default?: Text;
|
|
74
|
+
readonly required?: Bool;
|
|
75
|
+
readonly kind: CallInputType;
|
|
76
|
+
}
|
|
77
|
+
interface CallEventSecret {
|
|
78
|
+
readonly name: Text;
|
|
79
|
+
readonly description?: Text;
|
|
80
|
+
readonly required?: Bool;
|
|
81
|
+
}
|
|
82
|
+
interface CallEventOutput {
|
|
83
|
+
readonly name: Text;
|
|
84
|
+
readonly description?: Text;
|
|
85
|
+
readonly value?: Text;
|
|
86
|
+
}
|
|
87
|
+
interface WorkflowCallEvent extends Position {
|
|
88
|
+
readonly type: "workflow_call";
|
|
89
|
+
readonly inputs: readonly CallEventInput[];
|
|
90
|
+
readonly secrets?: Readonly<Record<string, CallEventSecret>>;
|
|
91
|
+
readonly outputs: Readonly<Record<string, CallEventOutput>>;
|
|
92
|
+
}
|
|
93
|
+
interface ImageVersionEvent {
|
|
94
|
+
readonly type: "image_version";
|
|
95
|
+
readonly names: readonly Text[];
|
|
96
|
+
readonly versions: readonly Text[];
|
|
97
|
+
}
|
|
98
|
+
type Event = WebhookEvent | ScheduleEvent | WorkflowDispatchEvent | RepositoryDispatchEvent | WorkflowCallEvent | ImageVersionEvent;
|
|
99
|
+
interface PermissionScope {
|
|
100
|
+
readonly name: Text;
|
|
101
|
+
readonly value: Text;
|
|
102
|
+
}
|
|
103
|
+
interface Permissions {
|
|
104
|
+
readonly all?: Text;
|
|
105
|
+
readonly scopes: Readonly<Record<string, PermissionScope>>;
|
|
106
|
+
}
|
|
107
|
+
interface DefaultsRun {
|
|
108
|
+
readonly shell?: Text;
|
|
109
|
+
readonly workingDirectory?: Text;
|
|
110
|
+
}
|
|
111
|
+
interface Defaults {
|
|
112
|
+
readonly run?: DefaultsRun;
|
|
113
|
+
}
|
|
114
|
+
interface Concurrency {
|
|
115
|
+
readonly group?: Text;
|
|
116
|
+
readonly cancelInProgress?: Bool;
|
|
117
|
+
}
|
|
118
|
+
interface Environment {
|
|
119
|
+
readonly name?: Text;
|
|
120
|
+
readonly url?: Text;
|
|
121
|
+
readonly deployment?: Bool;
|
|
122
|
+
}
|
|
123
|
+
interface ExecRun {
|
|
124
|
+
readonly type: "run";
|
|
125
|
+
readonly run?: Text;
|
|
126
|
+
readonly shell?: Text;
|
|
127
|
+
readonly workingDirectory?: Text;
|
|
128
|
+
readonly runPosition?: Position;
|
|
129
|
+
}
|
|
130
|
+
interface Input {
|
|
131
|
+
readonly name: Text;
|
|
132
|
+
readonly value: Text;
|
|
133
|
+
}
|
|
134
|
+
interface ExecAction {
|
|
135
|
+
readonly type: "action";
|
|
136
|
+
readonly uses?: Text;
|
|
137
|
+
readonly inputs?: Readonly<Record<string, Input>>;
|
|
138
|
+
readonly entrypoint?: Text;
|
|
139
|
+
readonly args?: Text;
|
|
140
|
+
}
|
|
141
|
+
type Exec = ExecAction | ExecRun;
|
|
142
|
+
type RawValue = (Position & {
|
|
143
|
+
readonly type: "object";
|
|
144
|
+
readonly props: Readonly<Record<string, RawValue>>;
|
|
145
|
+
}) | (Position & {
|
|
146
|
+
readonly type: "array";
|
|
147
|
+
readonly elems: readonly RawValue[];
|
|
148
|
+
}) | (Position & {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly value: string;
|
|
151
|
+
});
|
|
152
|
+
interface MatrixRow {
|
|
153
|
+
readonly name?: Text;
|
|
154
|
+
readonly values: readonly RawValue[];
|
|
155
|
+
readonly expression?: Text;
|
|
156
|
+
}
|
|
157
|
+
interface MatrixAssign {
|
|
158
|
+
readonly key: Text;
|
|
159
|
+
readonly value: RawValue;
|
|
160
|
+
}
|
|
161
|
+
interface MatrixCombination {
|
|
162
|
+
readonly assigns: Readonly<Record<string, MatrixAssign>>;
|
|
163
|
+
readonly expression?: Text;
|
|
164
|
+
}
|
|
165
|
+
interface MatrixCombinations {
|
|
166
|
+
readonly combinations: readonly MatrixCombination[];
|
|
167
|
+
readonly expression?: Text;
|
|
168
|
+
}
|
|
169
|
+
interface Matrix extends Position {
|
|
170
|
+
readonly rows: Readonly<Record<string, MatrixRow>>;
|
|
171
|
+
readonly include?: MatrixCombinations;
|
|
172
|
+
readonly exclude?: MatrixCombinations;
|
|
173
|
+
readonly expression?: Text;
|
|
174
|
+
}
|
|
175
|
+
interface Strategy {
|
|
176
|
+
readonly matrix?: Matrix;
|
|
177
|
+
readonly failFast?: Bool;
|
|
178
|
+
readonly maxParallel?: Int;
|
|
179
|
+
}
|
|
180
|
+
interface EnvVar {
|
|
181
|
+
readonly name: Text;
|
|
182
|
+
readonly value: Text;
|
|
183
|
+
}
|
|
184
|
+
interface Env {
|
|
185
|
+
readonly vars: Readonly<Record<string, EnvVar>>;
|
|
186
|
+
readonly expression?: Text;
|
|
187
|
+
}
|
|
188
|
+
interface Step {
|
|
189
|
+
readonly id?: Text;
|
|
190
|
+
readonly condition?: Text;
|
|
191
|
+
readonly name?: Text;
|
|
192
|
+
readonly exec?: Exec;
|
|
193
|
+
readonly env?: Env;
|
|
194
|
+
readonly continueOnError?: Bool;
|
|
195
|
+
readonly timeoutMinutes?: Float;
|
|
196
|
+
}
|
|
197
|
+
interface Credentials {
|
|
198
|
+
readonly username?: Text;
|
|
199
|
+
readonly password?: Text;
|
|
200
|
+
readonly expression?: Text;
|
|
201
|
+
}
|
|
202
|
+
interface Container {
|
|
203
|
+
readonly image?: Text;
|
|
204
|
+
readonly credentials?: Credentials;
|
|
205
|
+
readonly env?: Env;
|
|
206
|
+
readonly ports: readonly Text[];
|
|
207
|
+
readonly volumes: readonly Text[];
|
|
208
|
+
readonly options?: Text;
|
|
209
|
+
}
|
|
210
|
+
interface Service {
|
|
211
|
+
readonly name: Text;
|
|
212
|
+
readonly container: Container;
|
|
213
|
+
}
|
|
214
|
+
interface Services {
|
|
215
|
+
readonly value: Readonly<Record<string, Service>>;
|
|
216
|
+
readonly expression?: Text;
|
|
217
|
+
}
|
|
218
|
+
interface Runner {
|
|
219
|
+
readonly labels: readonly Text[];
|
|
220
|
+
readonly labelsExpression?: Text;
|
|
221
|
+
readonly group?: Text;
|
|
222
|
+
}
|
|
223
|
+
interface CallValue {
|
|
224
|
+
readonly name: Text;
|
|
225
|
+
readonly value: Text;
|
|
226
|
+
}
|
|
227
|
+
interface WorkflowCall {
|
|
228
|
+
readonly uses?: Text;
|
|
229
|
+
readonly inputs: Readonly<Record<string, CallValue>>;
|
|
230
|
+
readonly secrets: Readonly<Record<string, CallValue>>;
|
|
231
|
+
readonly inheritSecrets: boolean;
|
|
232
|
+
}
|
|
233
|
+
interface Snapshot {
|
|
234
|
+
readonly imageName?: Text;
|
|
235
|
+
readonly version?: Text;
|
|
236
|
+
readonly condition?: Text;
|
|
237
|
+
}
|
|
238
|
+
interface Job extends Position {
|
|
239
|
+
readonly id: Text;
|
|
240
|
+
readonly name?: Text;
|
|
241
|
+
readonly needs: readonly Text[];
|
|
242
|
+
readonly runsOn?: Runner;
|
|
243
|
+
readonly permissions?: Permissions;
|
|
244
|
+
readonly environment?: Environment;
|
|
245
|
+
readonly concurrency?: Concurrency;
|
|
246
|
+
readonly outputs: Readonly<Record<string, Text>>;
|
|
247
|
+
readonly env?: Env;
|
|
248
|
+
readonly defaults?: Defaults;
|
|
249
|
+
readonly condition?: Text;
|
|
250
|
+
readonly steps?: readonly Step[];
|
|
251
|
+
readonly timeoutMinutes?: Float;
|
|
252
|
+
readonly strategy?: Strategy;
|
|
253
|
+
readonly continueOnError?: Bool;
|
|
254
|
+
readonly container?: Container;
|
|
255
|
+
readonly services?: Services;
|
|
256
|
+
readonly workflowCall?: WorkflowCall;
|
|
257
|
+
readonly snapshot?: Snapshot;
|
|
258
|
+
}
|
|
259
|
+
interface Workflow {
|
|
260
|
+
readonly name?: Text;
|
|
261
|
+
readonly runName?: Text;
|
|
262
|
+
readonly on?: readonly Event[];
|
|
263
|
+
readonly permissions?: Permissions;
|
|
264
|
+
readonly env?: Env;
|
|
265
|
+
readonly defaults?: Defaults;
|
|
266
|
+
readonly concurrency?: Concurrency;
|
|
267
|
+
readonly jobs?: Readonly<Record<string, Job>>;
|
|
268
|
+
}
|
|
269
|
+
interface Problem extends Position {
|
|
270
|
+
readonly message: string;
|
|
271
|
+
}
|
|
272
|
+
interface ParsedWorkflow {
|
|
273
|
+
readonly workflow?: Workflow;
|
|
274
|
+
readonly errors: readonly Problem[];
|
|
275
|
+
}
|
|
276
|
+
export declare const workflowOf: (source: Source) => ParsedWorkflow;
|
|
277
|
+
interface Visitor {
|
|
278
|
+
readonly workflowPre: (workflow: Workflow) => void;
|
|
279
|
+
readonly jobPre: (job: Job) => void;
|
|
280
|
+
readonly step: (step: Step) => void;
|
|
281
|
+
readonly jobPost: (job: Job) => void;
|
|
282
|
+
readonly workflowPost: (workflow: Workflow) => void;
|
|
283
|
+
}
|
|
284
|
+
export declare const NOOP: Visitor;
|
|
285
|
+
type Fail = (at: Position, message: string) => void;
|
|
286
|
+
interface WorkflowRule {
|
|
287
|
+
readonly description: string;
|
|
288
|
+
readonly docs?: string | undefined;
|
|
289
|
+
readonly visitor: (fail: Fail, context: RuleContext) => Visitor;
|
|
290
|
+
}
|
|
291
|
+
export declare const workflowRule: (rule: WorkflowRule) => Rule;
|
|
292
|
+
export declare const runOf: (step: Step) => Option.Option<ExecRun>;
|
|
293
|
+
export declare const actionOf: (step: Step) => Option.Option<ExecAction>;
|
|
294
|
+
export type { Concurrency, Event, ExecAction, ExecRun, Fail, Job, Pair, Step, Text, Visitor, Workflow, WorkflowRule };
|
|
295
|
+
//# sourceMappingURL=rules.d.mts.map
|
package/dist/rules.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as NOOP, c as actionOf, p as keysOf, m as pairsOf, l as runOf, g as textOf, _ as valueAt, i as workflowOf, r as workflowRule } from "./workflow-rule-C1TJLS9H.mjs";
|
|
@@ -20,9 +20,6 @@ const spanText = (words) => (blob, encoding) => (spansAt, unit) => {
|
|
|
20
20
|
};
|
|
21
21
|
return (index) => Option.getOrElse(Option.fromNullishOr(cache.get(index)), () => read(index));
|
|
22
22
|
};
|
|
23
|
-
// src/entities/rule/model/define.ts
|
|
24
|
-
const defineRule = (rule) => rule;
|
|
25
|
-
const definePlugin = (plugin) => plugin;
|
|
26
23
|
String.replaceAll("\\", "/");
|
|
27
24
|
const segments = (path) => String.split(path, "/");
|
|
28
25
|
const baseName = (path) => pipe(segments(path), Array$1.filter(String.isNonEmpty), Array$1.last, Option.getOrElse(() => ""));
|
|
@@ -253,6 +250,6 @@ const sourceOf = (view) => {
|
|
|
253
250
|
positionOf: positionIn(view.text)
|
|
254
251
|
};
|
|
255
252
|
};
|
|
256
|
-
export { afterPrefix as a,
|
|
253
|
+
export { afterPrefix as a, INPUT_KINDS as i, sourceOf as n, baseName as o, sourceView as r, lineStartsOf as t };
|
|
257
254
|
|
|
258
|
-
//# sourceMappingURL=source-
|
|
255
|
+
//# sourceMappingURL=source-Cnghop8O.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-Cnghop8O.mjs","names":["EMPTY","Rec","Str","Arr","Arr","Str"],"sources":["../../lint-host/src/shared/lib/words.ts","../../path-kit/src/entities/path/model/path.ts","../src/shared/config/types.ts","../src/shared/native/source.ts","../src/entities/source/model/source.ts"],"sourcesContent":["import { Option, Record as Rec, pipe } from \"effect\";\n\nexport const WORD = 4;\nexport const STRING_WORDS = 2;\nconst EMPTY = 0;\nconst LENGTH = 1;\n\nexport const aligned = (buffer: Uint8Array): Uint8Array =>\n Option.match(\n Option.liftPredicate(buffer, ({ byteOffset }) => byteOffset % WORD === EMPTY),\n {\n onNone: () => Uint8Array.from(buffer),\n onSome: (value) => value,\n },\n );\n\nexport const wordAt =\n (words: Uint32Array) =>\n (index: number): number =>\n words[index] ?? EMPTY;\n\nexport const fieldsOf =\n (header: Uint32Array) =>\n <Name extends string>(fields: Readonly<Record<Name, number>>): Readonly<Record<Name, number>> =>\n pipe(\n fields,\n Rec.map((index) => wordAt(header)(index)),\n );\n\nexport const wordsOf =\n (buffer: Uint8Array) =>\n (at: number, count: number): Uint32Array =>\n new Uint32Array(buffer.buffer, buffer.byteOffset + at * WORD, count);\n\nexport const spanText =\n (words: Uint32Array) =>\n (blob: Uint8Array, encoding: string) =>\n (spansAt: number, unit: number): ((index: number) => string) => {\n const decoder = new TextDecoder(encoding);\n const cache = new Map<number, string>();\n const read = (index: number): string => {\n const at = spansAt + index * STRING_WORDS;\n const offset = wordAt(words)(at) * unit;\n const value = decoder.decode(\n blob.subarray(offset, offset + wordAt(words)(at + LENGTH) * unit),\n );\n cache.set(index, value);\n return value;\n };\n return (index) => Option.getOrElse(Option.fromNullishOr(cache.get(index)), () => read(index));\n };\n","import { Array as Arr, Option, String as Str, pipe } from \"effect\";\n\nexport const SEPARATOR = \"/\";\n\nconst ROOT = \".\";\nconst EXTENSION = \".\";\nconst BACKSLASH = \"\\\\\";\nconst NONE = 0;\nconst ONE = 1;\n\nexport const toPosix = Str.replaceAll(BACKSLASH, SEPARATOR);\n\nexport const segments = (path: string): Arr.NonEmptyReadonlyArray<string> =>\n Str.split(path, SEPARATOR);\n\nexport const joinAll = (parts: readonly string[]): string => Arr.join(parts, SEPARATOR);\n\nexport const join =\n (directory: string) =>\n (name: string): string =>\n Arr.join(Arr.filter([directory, name], Str.isNonEmpty), SEPARATOR);\n\nexport const parent = (path: string): string => joinAll(Arr.dropRight(segments(path), ONE));\n\nexport const ancestors = (path: string): readonly string[] => {\n const parts = Arr.dropRight(segments(path), ONE);\n return pipe(\n Arr.range(NONE, parts.length),\n Arr.reverse,\n Arr.map((count) => joinAll(Arr.take(parts, count))),\n );\n};\n\nexport const baseName = (path: string): string =>\n pipe(\n segments(path),\n Arr.filter(Str.isNonEmpty),\n Arr.last,\n Option.getOrElse(() => \"\"),\n );\n\nexport const stem = (name: string): string =>\n pipe(\n Str.split(name, EXTENSION),\n Arr.head,\n Option.getOrElse(() => name),\n );\n\nexport const afterPrefix =\n (prefix: string) =>\n (text: string): Option.Option<string> =>\n pipe(Option.liftPredicate(text, Str.startsWith(prefix)), Option.map(Str.slice(prefix.length)));\n\nexport const isWithin =\n (directory: string) =>\n (path: string): boolean =>\n Str.isEmpty(directory) ||\n path === directory ||\n Str.startsWith(`${directory}${SEPARATOR}`)(path);\n\nexport const isInside =\n (directory: string) =>\n (path: string): boolean =>\n path !== directory && (directory === ROOT || isWithin(directory)(path));\n\nexport const below =\n (directory: string) =>\n (path: string): Option.Option<string> =>\n pipe(\n Option.liftPredicate(path, () => Str.isEmpty(directory)),\n Option.orElse(() => afterPrefix(`${directory}${SEPARATOR}`)(path)),\n );\n\nexport const relativeTo =\n (root: string) =>\n (file: string): Option.Option<string> =>\n below(toPosix(root))(toPosix(file));\n","import type { RuleEntry, RuleOptions, Severity } from \"@masseater.dev/lint-host\";\nimport type { Effect, Option } from \"effect\";\n\nexport type { RuleEntry, RuleOptions, Severity } from \"@masseater.dev/lint-host\";\n\nexport interface Position {\n readonly line: number;\n readonly column: number;\n}\n\nexport type YamlKind = \"scalar\" | \"sequence\" | \"mapping\" | \"alias\";\n\nexport type YamlStyle = \"plain\" | \"single-quoted\" | \"double-quoted\" | \"literal\" | \"folded\";\n\nexport interface YamlNode {\n readonly id: number;\n readonly kind: YamlKind;\n readonly tag: string;\n readonly value: string;\n readonly style: YamlStyle;\n readonly line: number;\n readonly column: number;\n readonly children: readonly YamlNode[];\n}\n\nexport interface SyntaxNode {\n readonly id: number;\n readonly type: string;\n readonly named: boolean;\n readonly isError: boolean;\n readonly isMissing: boolean;\n readonly isExtra: boolean;\n readonly start: number;\n readonly end: number;\n readonly field: string | undefined;\n readonly parent: SyntaxNode | undefined;\n readonly children: readonly SyntaxNode[];\n readonly namedChildren: readonly SyntaxNode[];\n readonly text: string;\n}\n\nexport interface ParseError {\n readonly line: number;\n readonly column: number;\n readonly message: string;\n}\n\nexport interface Source {\n readonly text: string;\n readonly yaml: YamlNode | undefined;\n readonly syntax: SyntaxNode | undefined;\n readonly errors: readonly ParseError[];\n readonly lines: readonly string[];\n readonly positionOf: (offset: number) => Position;\n}\n\nexport const INPUT_KINDS = [\"workflow\", \"action\", \"dependabot\", \"pre-commit\"] as const;\nexport type InputKind = (typeof INPUT_KINDS)[number];\n\nexport type ScriptLanguage = \"bash\" | \"powershell\";\n\nexport interface Report {\n readonly message: string;\n readonly line: number;\n readonly column: number;\n readonly length?: number;\n readonly detail?: string;\n readonly rule?: string;\n}\n\nexport interface Project {\n readonly root: string;\n readonly exists: (path: string) => boolean;\n readonly read: (path: string) => Option.Option<string>;\n readonly parse: (path: string) => Option.Option<Source>;\n}\n\nexport interface RuleContext {\n readonly filename: string;\n readonly kind: InputKind;\n readonly source: Source;\n readonly options: RuleOptions;\n readonly settings: Readonly<Record<string, unknown>>;\n readonly project: Project;\n readonly parseScript: (language: ScriptLanguage, text: string) => Source;\n readonly report: (report: Report) => void;\n}\n\nexport interface Rule {\n readonly meta: {\n readonly description: string;\n readonly kinds?: readonly InputKind[];\n readonly docs?: string | undefined;\n };\n readonly check: (context: RuleContext) => void | Effect.Effect<void>;\n}\n\nexport interface Plugin {\n readonly rules: Readonly<Record<string, Rule>>;\n}\n\nexport interface Override {\n readonly files: readonly string[];\n readonly rules: Readonly<Record<string, RuleEntry>>;\n}\n\nexport interface Fu4Config {\n readonly extends?: readonly Fu4Config[];\n readonly plugins?: Readonly<Record<string, Plugin>>;\n readonly rules?: Readonly<Record<string, RuleEntry>>;\n readonly settings?: Readonly<Record<string, unknown>>;\n readonly overrides?: readonly Override[];\n readonly ignores?: readonly string[];\n}\n\nexport interface Diagnostic {\n readonly path: string;\n readonly line: number;\n readonly column: number;\n readonly length?: number;\n readonly rule: string;\n readonly message: string;\n readonly detail?: string;\n readonly severity: Exclude<Severity, \"off\">;\n}\n","import {\n STRING_WORDS,\n WORD,\n aligned,\n fieldsOf,\n spanText,\n wordAt,\n wordsOf,\n} from \"@masseater.dev/lint-host\";\nimport { Option } from \"effect\";\n\nconst EMPTY = 0;\nconst START = 0;\nexport const NONE = 4_294_967_295;\nexport const HEADER_WORDS = 8;\nexport const SEMANTIC_WORDS = 8;\nexport const CONCRETE_WORDS = 8;\nexport const ERROR_WORDS = 3;\n\nexport const HEADER = {\n version: 0,\n semanticCount: 1,\n semanticRoot: 2,\n concreteCount: 3,\n concreteRoot: 4,\n childCount: 5,\n errorCount: 6,\n stringCount: 7,\n} as const;\n\nexport const SEMANTIC = {\n kind: 0,\n tag: 1,\n value: 2,\n style: 3,\n line: 4,\n column: 5,\n childStart: 6,\n childCount: 7,\n} as const;\n\nexport const CONCRETE = {\n kind: 0,\n flags: 1,\n start: 2,\n end: 3,\n field: 4,\n parent: 5,\n childStart: 6,\n childCount: 7,\n} as const;\n\nexport const FLAG = { named: 1, error: 2, missing: 4, extra: 8 } as const;\n\nexport interface SourceView {\n readonly semanticCount: number;\n readonly semanticRoot: Option.Option<number>;\n readonly concreteCount: number;\n readonly concreteRoot: Option.Option<number>;\n readonly errorCount: number;\n readonly semantic: (id: number, field: number) => number;\n readonly concrete: (id: number, field: number) => number;\n readonly child: (index: number) => number;\n readonly error: (index: number, field: number) => number;\n readonly stringAt: (index: number) => string;\n readonly text: string;\n}\n\nconst UTF16 = \"utf-16le\";\n\nconst rootOf = (value: number): Option.Option<number> =>\n Option.liftPredicate(value, (id) => id !== NONE);\n\ninterface Layout {\n readonly semanticCount: number;\n readonly concreteCount: number;\n readonly errorCount: number;\n readonly semanticAt: number;\n readonly concreteAt: number;\n readonly childAt: number;\n readonly errorAt: number;\n readonly spanAt: number;\n readonly blobAt: number;\n}\n\nconst layoutOf = (header: Uint32Array): Layout => {\n const fields = fieldsOf(header)(HEADER);\n const { semanticCount, concreteCount, errorCount } = fields;\n const semanticAt = HEADER_WORDS;\n const concreteAt = semanticAt + semanticCount * SEMANTIC_WORDS;\n const childAt = concreteAt + concreteCount * CONCRETE_WORDS;\n const errorAt = childAt + fields.childCount;\n const spanAt = errorAt + errorCount * ERROR_WORDS;\n const blobAt = (spanAt + fields.stringCount * STRING_WORDS) * WORD;\n return {\n semanticCount,\n concreteCount,\n errorCount,\n semanticAt,\n concreteAt,\n childAt,\n errorAt,\n spanAt,\n blobAt,\n };\n};\n\nexport const sourceView = (raw: Uint8Array): SourceView => {\n const buffer = aligned(raw);\n const header = wordsOf(buffer)(START, HEADER_WORDS);\n const layout = layoutOf(header);\n const words = wordsOf(buffer)(START, layout.blobAt / WORD);\n const stringAt = spanText(words)(buffer.subarray(layout.blobAt), UTF16)(\n layout.spanAt,\n STRING_WORDS,\n );\n return {\n semanticCount: layout.semanticCount,\n semanticRoot: rootOf(wordAt(header)(HEADER.semanticRoot)),\n concreteCount: layout.concreteCount,\n concreteRoot: rootOf(wordAt(header)(HEADER.concreteRoot)),\n errorCount: layout.errorCount,\n semantic: (id, field) => wordAt(words)(layout.semanticAt + id * SEMANTIC_WORDS + field),\n concrete: (id, field) => wordAt(words)(layout.concreteAt + id * CONCRETE_WORDS + field),\n child: (index) => wordAt(words)(layout.childAt + index),\n error: (index, field) => wordAt(words)(layout.errorAt + index * ERROR_WORDS + field),\n stringAt,\n text: stringAt(EMPTY),\n };\n};\n","import { Array as Arr, Option, String as Str, pipe } from \"effect\";\n\nimport type {\n ParseError,\n Position,\n Source,\n SyntaxNode,\n YamlKind,\n YamlNode,\n YamlStyle,\n} from \"#/shared/config/index.ts\";\nimport { CONCRETE, FLAG, NONE, SEMANTIC } from \"#/shared/native/index.ts\";\nimport type { SourceView } from \"#/shared/native/index.ts\";\n\nconst FIRST = 1;\nconst FIRST_LINE = 0;\nconst HALF = 2;\nconst BIT = 2;\nconst SET = 1;\nconst ERROR_FIELD = { line: 0, column: 1, message: 2 } as const;\nconst LINE_BREAK = /\\r\\n|\\r|\\n/u;\nconst NEWLINES = /\\n/gu;\n\nconst KINDS: readonly YamlKind[] = [\"scalar\", \"sequence\", \"mapping\", \"alias\"];\nconst STYLES: readonly YamlStyle[] = [\n \"plain\",\n \"single-quoted\",\n \"double-quoted\",\n \"literal\",\n \"folded\",\n];\n\nconst pick = <Value>(values: readonly Value[], index: number, fallback: Value): Value =>\n pipe(\n Arr.get(values, index),\n Option.getOrElse(() => fallback),\n );\n\nconst lazy = <Value>(make: () => Value): (() => Value) => {\n let made: Option.Option<Value> = Option.none();\n return () =>\n pipe(\n made,\n Option.getOrElse(() => {\n const value = make();\n made = Option.some(value);\n return value;\n }),\n );\n};\n\nconst memo = <Node>(make: (id: number) => Node): ((id: number) => Node) => {\n const made = new Map<number, Node>();\n return (id) => made.getOrInsertComputed(id, () => make(id));\n};\n\nconst times = <Value>(count: number, make: (index: number) => Value): readonly Value[] =>\n Array.from({ length: count }, (_empty, index) => make(index));\n\nconst childrenOf =\n <Node>(view: SourceView, at: (id: number) => Node) =>\n (start: number, count: number): readonly Node[] =>\n times(count, (offset) => at(view.child(start + offset)));\n\nconst yamlTree = (view: SourceView): ((id: number) => YamlNode) => {\n const at: (id: number) => YamlNode = memo((id) => {\n const field = (name: keyof typeof SEMANTIC): number => view.semantic(id, SEMANTIC[name]);\n const children = lazy(() => childrenOf(view, at)(field(\"childStart\"), field(\"childCount\")));\n return {\n id,\n kind: pick(KINDS, field(\"kind\"), \"scalar\"),\n tag: view.stringAt(field(\"tag\")),\n value: view.stringAt(field(\"value\")),\n style: pick(STYLES, field(\"style\"), \"plain\"),\n line: field(\"line\"),\n column: field(\"column\"),\n get children(): readonly YamlNode[] {\n return children();\n },\n };\n });\n return at;\n};\n\nconst hasFlag = (flags: number, flag: number): boolean => Math.floor(flags / flag) % BIT === SET;\n\nconst present = (index: number): Option.Option<number> =>\n Option.liftPredicate(index, (value) => value !== NONE);\n\nconst syntaxNode =\n (view: SourceView, at: (id: number) => SyntaxNode) =>\n (id: number): SyntaxNode => {\n const field = (name: keyof typeof CONCRETE): number => view.concrete(id, CONCRETE[name]);\n const flags = field(\"flags\");\n const start = field(\"start\");\n const end = field(\"end\");\n const children = lazy(() => childrenOf(view, at)(field(\"childStart\"), field(\"childCount\")));\n return {\n id,\n type: view.stringAt(field(\"kind\")),\n named: hasFlag(flags, FLAG.named),\n isError: hasFlag(flags, FLAG.error),\n isMissing: hasFlag(flags, FLAG.missing),\n isExtra: hasFlag(flags, FLAG.extra),\n start,\n end,\n field: pipe(present(field(\"field\")), Option.map(view.stringAt), Option.getOrUndefined),\n get parent(): SyntaxNode | undefined {\n return pipe(present(field(\"parent\")), Option.map(at), Option.getOrUndefined);\n },\n get children(): readonly SyntaxNode[] {\n return children();\n },\n get namedChildren(): readonly SyntaxNode[] {\n return pipe(\n children(),\n Arr.filter((child) => child.named),\n );\n },\n get text(): string {\n return Str.slice(start, end)(view.text);\n },\n };\n };\n\nconst syntaxTree = (view: SourceView): ((id: number) => SyntaxNode) => {\n const at: (id: number) => SyntaxNode = memo((id) => syntaxNode(view, at)(id));\n return at;\n};\n\nexport const lineStartsOf = (text: string): readonly number[] => [\n FIRST_LINE,\n ...Array.from(Str.matchAll(NEWLINES)(text), (match) => (match.index ?? FIRST_LINE) + FIRST),\n];\n\nconst lineAt = (starts: readonly number[], offset: number): number => {\n let low = FIRST_LINE;\n let high = starts.length - FIRST;\n while (low < high) {\n const middle = Math.ceil((low + high) / HALF);\n if ((starts[middle] ?? FIRST_LINE) <= offset) {\n low = middle;\n } else {\n high = middle - FIRST;\n }\n }\n return low;\n};\n\nconst positionIn = (text: string): ((offset: number) => Position) => {\n const starts = lineStartsOf(text);\n return (offset) => {\n const line = lineAt(starts, offset);\n return { line: line + FIRST, column: offset - (starts[line] ?? FIRST_LINE) + FIRST };\n };\n};\n\nconst errorsOf = (view: SourceView): readonly ParseError[] =>\n times(view.errorCount, (index) => ({\n line: view.error(index, ERROR_FIELD.line),\n column: view.error(index, ERROR_FIELD.column),\n message: view.stringAt(view.error(index, ERROR_FIELD.message)),\n }));\n\nexport const sourceOf = (view: SourceView): Source => {\n const yaml = yamlTree(view);\n const syntax = syntaxTree(view);\n const lines = lazy(() => Str.split(LINE_BREAK)(view.text));\n return {\n text: view.text,\n yaml: pipe(view.semanticRoot, Option.map(yaml), Option.getOrUndefined),\n syntax: pipe(view.concreteRoot, Option.map(syntax), Option.getOrUndefined),\n errors: errorsOf(view),\n get lines(): readonly string[] {\n return lines();\n },\n positionOf: positionIn(view.text),\n };\n};\n"],"mappings":";AAIA,MAAMA,UAAQ;AACd,MAAM,SAAS;AAEf,MAAa,WAAW,WACtB,OAAO,MACL,OAAO,cAAc,SAAS,EAAE,iBAAiB,aAAA,MAAsBA,OAAK,GAC5E;CACE,cAAc,WAAW,KAAK,MAAM;CACpC,SAAS,UAAU;AACrB,CACF;AAEF,MAAa,UACV,WACA,UACC,MAAM,UAAUA;AAEpB,MAAa,YACV,YACqB,WACpB,KACE,QACAC,OAAI,KAAK,UAAU,OAAO,MAAM,CAAC,CAAC,KAAK,CAAC,CAC1C;AAEJ,MAAa,WACV,YACA,IAAY,UACX,IAAI,YAAY,OAAO,QAAQ,OAAO,aAAa,KAAA,GAAW,KAAK;AAEvE,MAAa,YACV,WACA,MAAkB,cAClB,SAAiB,SAA8C;CAC9D,MAAM,UAAU,IAAI,YAAY,QAAQ;CACxC,MAAM,wBAAQ,IAAI,IAAoB;CACtC,MAAM,QAAQ,UAA0B;EACtC,MAAM,KAAK,UAAU,QAAA;EACrB,MAAM,SAAS,OAAO,KAAK,CAAC,CAAC,EAAE,IAAI;EACnC,MAAM,QAAQ,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