@goodbones/core 0.1.0-beta.7 → 0.1.0-beta.9
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/build/dts/core/campaigns.d.ts +141 -0
- package/build/dts/core/campaigns.d.ts.map +1 -0
- package/build/dts/core/ledger.d.ts +61 -0
- package/build/dts/core/ledger.d.ts.map +1 -0
- package/build/dts/core/structure.d.ts +1 -0
- package/build/dts/core/structure.d.ts.map +1 -1
- package/build/dts/domain/architecture-config.d.ts +309 -1
- package/build/dts/domain/architecture-config.d.ts.map +1 -1
- package/build/dts/domain/architecture-error.d.ts +8 -0
- package/build/dts/domain/architecture-error.d.ts.map +1 -1
- package/build/dts/domain/facts.d.ts +1 -0
- package/build/dts/domain/facts.d.ts.map +1 -1
- package/build/dts/domain/report.d.ts +15 -0
- package/build/dts/domain/report.d.ts.map +1 -0
- package/build/dts/domain/snapshot.d.ts +55 -3
- package/build/dts/domain/snapshot.d.ts.map +1 -1
- package/build/dts/domain/violation.d.ts +1 -1
- package/build/dts/domain/violation.d.ts.map +1 -1
- package/build/dts/index.d.ts +12 -4
- package/build/dts/index.d.ts.map +1 -1
- package/build/dts/infrastructure/campaign-functions.d.ts +7 -0
- package/build/dts/infrastructure/campaign-functions.d.ts.map +1 -0
- package/build/dts/infrastructure/report-source-fake.d.ts +4 -0
- package/build/dts/infrastructure/report-source-fake.d.ts.map +1 -0
- package/build/dts/infrastructure/report-source-live.d.ts +3 -0
- package/build/dts/infrastructure/report-source-live.d.ts.map +1 -0
- package/build/dts/infrastructure/syntax-matcher-fake.d.ts +10 -0
- package/build/dts/infrastructure/syntax-matcher-fake.d.ts.map +1 -0
- package/build/dts/load/policy.d.ts +14 -0
- package/build/dts/load/policy.d.ts.map +1 -1
- package/build/dts/manifest/compile.d.ts +2 -1
- package/build/dts/manifest/compile.d.ts.map +1 -1
- package/build/dts/manifest/json-schema.d.ts.map +1 -1
- package/build/dts/manifest/manifest.d.ts +362 -0
- package/build/dts/manifest/manifest.d.ts.map +1 -1
- package/build/dts/ports/campaign-predicate.d.ts +24 -0
- package/build/dts/ports/campaign-predicate.d.ts.map +1 -0
- package/build/dts/ports/language.d.ts +2 -0
- package/build/dts/ports/language.d.ts.map +1 -1
- package/build/dts/ports/report-source.d.ts +12 -0
- package/build/dts/ports/report-source.d.ts.map +1 -0
- package/build/dts/ports/syntax-matcher.d.ts +21 -0
- package/build/dts/ports/syntax-matcher.d.ts.map +1 -0
- package/build/dts/testing.d.ts +2 -0
- package/build/dts/testing.d.ts.map +1 -1
- package/build/esm/core/campaigns.js +778 -0
- package/build/esm/core/campaigns.js.map +1 -0
- package/build/esm/core/ledger.js +171 -0
- package/build/esm/core/ledger.js.map +1 -0
- package/build/esm/core/structure.js +5 -2
- package/build/esm/core/structure.js.map +1 -1
- package/build/esm/domain/architecture-config.js +133 -1
- package/build/esm/domain/architecture-config.js.map +1 -1
- package/build/esm/domain/architecture-error.js +27 -0
- package/build/esm/domain/architecture-error.js.map +1 -1
- package/build/esm/domain/report.js +151 -0
- package/build/esm/domain/report.js.map +1 -0
- package/build/esm/domain/snapshot.js +21 -0
- package/build/esm/domain/snapshot.js.map +1 -1
- package/build/esm/domain/violation.js.map +1 -1
- package/build/esm/index.js +8 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/infrastructure/campaign-functions.js +67 -0
- package/build/esm/infrastructure/campaign-functions.js.map +1 -0
- package/build/esm/infrastructure/report-source-fake.js +6 -0
- package/build/esm/infrastructure/report-source-fake.js.map +1 -0
- package/build/esm/infrastructure/report-source-live.js +74 -0
- package/build/esm/infrastructure/report-source-live.js.map +1 -0
- package/build/esm/infrastructure/syntax-matcher-fake.js +33 -0
- package/build/esm/infrastructure/syntax-matcher-fake.js.map +1 -0
- package/build/esm/load/policy.js +121 -1
- package/build/esm/load/policy.js.map +1 -1
- package/build/esm/manifest/compile.js +186 -1
- package/build/esm/manifest/compile.js.map +1 -1
- package/build/esm/manifest/json-schema.js +7 -3
- package/build/esm/manifest/json-schema.js.map +1 -1
- package/build/esm/manifest/manifest.js +148 -1
- package/build/esm/manifest/manifest.js.map +1 -1
- package/build/esm/ports/campaign-predicate.js +2 -0
- package/build/esm/ports/campaign-predicate.js.map +1 -0
- package/build/esm/ports/report-source.js +2 -0
- package/build/esm/ports/report-source.js.map +1 -0
- package/build/esm/ports/syntax-matcher.js +12 -0
- package/build/esm/ports/syntax-matcher.js.map +1 -0
- package/build/esm/testing.js +2 -0
- package/build/esm/testing.js.map +1 -1
- package/package.json +1 -1
- package/schema/architecture-node.schema.json +843 -0
- package/schema/architecture.schema.json +1253 -0
- package/schema/conformance.schema.json +118 -3
- package/src/core/campaigns.ts +1056 -0
- package/src/core/ledger.ts +242 -0
- package/src/core/structure.ts +10 -5
- package/src/domain/architecture-config.ts +178 -1
- package/src/domain/architecture-error.ts +30 -0
- package/src/domain/facts.ts +5 -0
- package/src/domain/report.ts +186 -0
- package/src/domain/snapshot.ts +52 -0
- package/src/domain/violation.ts +4 -1
- package/src/index.ts +76 -0
- package/src/infrastructure/campaign-functions.ts +98 -0
- package/src/infrastructure/report-source-fake.ts +10 -0
- package/src/infrastructure/report-source-live.ts +80 -0
- package/src/infrastructure/syntax-matcher-fake.ts +51 -0
- package/src/load/policy.ts +187 -1
- package/src/manifest/compile.ts +221 -0
- package/src/manifest/json-schema.ts +7 -3
- package/src/manifest/manifest.ts +192 -1
- package/src/ports/campaign-predicate.ts +30 -0
- package/src/ports/language.ts +6 -0
- package/src/ports/report-source.ts +21 -0
- package/src/ports/syntax-matcher.ts +42 -0
- package/src/testing.ts +2 -0
|
@@ -123,6 +123,236 @@ declare const Limits: Schema.Struct<{
|
|
|
123
123
|
readonly graph: Schema.optionalKey<Schema.Finite>;
|
|
124
124
|
}>>;
|
|
125
125
|
}>;
|
|
126
|
+
declare const PathTerm: Schema.Struct<{
|
|
127
|
+
readonly file: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
128
|
+
readonly fileNot: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
129
|
+
readonly subject: Schema.optionalKey<Schema.Finite>;
|
|
130
|
+
readonly convention: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["kebab-case", "camelCase", "PascalCase", "snake_case"]>, Schema.Struct<{
|
|
131
|
+
readonly regex: Schema.String;
|
|
132
|
+
}>]>>;
|
|
133
|
+
}>;
|
|
134
|
+
declare const ImportsTerm: Schema.Struct<{
|
|
135
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
136
|
+
readonly external: Schema.String;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly builtin: Schema.String;
|
|
139
|
+
}>]>;
|
|
140
|
+
readonly symbols: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
141
|
+
}>;
|
|
142
|
+
declare const ExportsTerm: Schema.Struct<{
|
|
143
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
144
|
+
readonly kinds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["named", "default", "namespace"]>>>;
|
|
145
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
146
|
+
readonly reexport: Schema.optionalKey<Schema.Boolean>;
|
|
147
|
+
}>;
|
|
148
|
+
declare const MembersTerm: Schema.Struct<{
|
|
149
|
+
readonly subject: Schema.Literals<readonly ["members", "calls"]>;
|
|
150
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
151
|
+
readonly in: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
152
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
153
|
+
}>;
|
|
154
|
+
declare const ContentTerm: Schema.Struct<{
|
|
155
|
+
readonly regex: Schema.String;
|
|
156
|
+
}>;
|
|
157
|
+
declare const SyntaxTerm: Schema.Struct<{
|
|
158
|
+
readonly pattern: Schema.optionalKey<Schema.Unknown>;
|
|
159
|
+
readonly kind: Schema.optionalKey<Schema.Unknown>;
|
|
160
|
+
readonly regex: Schema.optionalKey<Schema.Unknown>;
|
|
161
|
+
readonly nthChild: Schema.optionalKey<Schema.Unknown>;
|
|
162
|
+
readonly inside: Schema.optionalKey<Schema.Unknown>;
|
|
163
|
+
readonly has: Schema.optionalKey<Schema.Unknown>;
|
|
164
|
+
readonly precedes: Schema.optionalKey<Schema.Unknown>;
|
|
165
|
+
readonly follows: Schema.optionalKey<Schema.Unknown>;
|
|
166
|
+
readonly all: Schema.optionalKey<Schema.Unknown>;
|
|
167
|
+
readonly any: Schema.optionalKey<Schema.Unknown>;
|
|
168
|
+
readonly not: Schema.optionalKey<Schema.Unknown>;
|
|
169
|
+
readonly where: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
170
|
+
readonly regex: Schema.optionalKey<Schema.String>;
|
|
171
|
+
readonly binding: Schema.optionalKey<Schema.Struct<{
|
|
172
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
173
|
+
readonly external: Schema.String;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly builtin: Schema.String;
|
|
176
|
+
}>]>;
|
|
177
|
+
readonly member: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
178
|
+
}>>;
|
|
179
|
+
}>>>;
|
|
180
|
+
}>;
|
|
181
|
+
declare const ReportTerm: Schema.Struct<{
|
|
182
|
+
readonly command: Schema.optionalKey<Schema.String>;
|
|
183
|
+
readonly file: Schema.optionalKey<Schema.String>;
|
|
184
|
+
readonly format: Schema.Literals<readonly ["tsc", "eslint", "oxlint", "regex"]>;
|
|
185
|
+
readonly pattern: Schema.optionalKey<Schema.String>;
|
|
186
|
+
readonly codes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
187
|
+
readonly codesNot: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
188
|
+
}>;
|
|
189
|
+
export type DetectorSpec = {
|
|
190
|
+
readonly all: ReadonlyArray<DetectorSpec>;
|
|
191
|
+
} | {
|
|
192
|
+
readonly any: ReadonlyArray<DetectorSpec>;
|
|
193
|
+
} | {
|
|
194
|
+
readonly not: DetectorSpec;
|
|
195
|
+
} | {
|
|
196
|
+
readonly path: typeof PathTerm.Type;
|
|
197
|
+
} | {
|
|
198
|
+
readonly imports: typeof ImportsTerm.Type;
|
|
199
|
+
} | {
|
|
200
|
+
readonly exports: typeof ExportsTerm.Type;
|
|
201
|
+
} | {
|
|
202
|
+
readonly members: typeof MembersTerm.Type;
|
|
203
|
+
} | {
|
|
204
|
+
readonly requires: ReadonlyArray<string>;
|
|
205
|
+
} | {
|
|
206
|
+
readonly content: typeof ContentTerm.Type;
|
|
207
|
+
} | {
|
|
208
|
+
readonly syntax: typeof SyntaxTerm.Type;
|
|
209
|
+
} | {
|
|
210
|
+
readonly report: typeof ReportTerm.Type;
|
|
211
|
+
} | {
|
|
212
|
+
readonly fn: string;
|
|
213
|
+
};
|
|
214
|
+
declare const CampaignProbe: Schema.Struct<{
|
|
215
|
+
readonly path: Schema.String;
|
|
216
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
217
|
+
readonly edges: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
218
|
+
readonly external: Schema.String;
|
|
219
|
+
}>, Schema.Struct<{
|
|
220
|
+
readonly builtin: Schema.String;
|
|
221
|
+
}>]>>>;
|
|
222
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
223
|
+
readonly report: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
224
|
+
readonly line: Schema.Finite;
|
|
225
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
226
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
227
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
228
|
+
}>>>;
|
|
229
|
+
}>;
|
|
230
|
+
declare const Campaign: Schema.Struct<{
|
|
231
|
+
readonly id: Schema.String;
|
|
232
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
233
|
+
readonly why: Schema.String;
|
|
234
|
+
readonly how: Schema.String;
|
|
235
|
+
readonly owner: Schema.optionalKey<Schema.String>;
|
|
236
|
+
readonly scope: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
237
|
+
readonly unit: Schema.Literals<readonly ["file", "declaration", "match"]>;
|
|
238
|
+
readonly detect: Schema.Union<readonly [Schema.Struct<{
|
|
239
|
+
readonly all: Schema.$Array<Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>>;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
readonly any: Schema.$Array<Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>>;
|
|
242
|
+
}>, Schema.Struct<{
|
|
243
|
+
readonly not: Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
readonly path: Schema.Struct<{
|
|
246
|
+
readonly file: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
247
|
+
readonly fileNot: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
248
|
+
readonly subject: Schema.optionalKey<Schema.Finite>;
|
|
249
|
+
readonly convention: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["kebab-case", "camelCase", "PascalCase", "snake_case"]>, Schema.Struct<{
|
|
250
|
+
readonly regex: Schema.String;
|
|
251
|
+
}>]>>;
|
|
252
|
+
}>;
|
|
253
|
+
}>, Schema.Struct<{
|
|
254
|
+
readonly imports: Schema.Struct<{
|
|
255
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
256
|
+
readonly external: Schema.String;
|
|
257
|
+
}>, Schema.Struct<{
|
|
258
|
+
readonly builtin: Schema.String;
|
|
259
|
+
}>]>;
|
|
260
|
+
readonly symbols: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
261
|
+
}>;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly exports: Schema.Struct<{
|
|
264
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
265
|
+
readonly kinds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["named", "default", "namespace"]>>>;
|
|
266
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
267
|
+
readonly reexport: Schema.optionalKey<Schema.Boolean>;
|
|
268
|
+
}>;
|
|
269
|
+
}>, Schema.Struct<{
|
|
270
|
+
readonly members: Schema.Struct<{
|
|
271
|
+
readonly subject: Schema.Literals<readonly ["members", "calls"]>;
|
|
272
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
273
|
+
readonly in: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
274
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
275
|
+
}>;
|
|
276
|
+
}>, Schema.Struct<{
|
|
277
|
+
readonly requires: Schema.$Array<Schema.String>;
|
|
278
|
+
}>, Schema.Struct<{
|
|
279
|
+
readonly content: Schema.Struct<{
|
|
280
|
+
readonly regex: Schema.String;
|
|
281
|
+
}>;
|
|
282
|
+
}>, Schema.Struct<{
|
|
283
|
+
readonly syntax: Schema.Struct<{
|
|
284
|
+
readonly pattern: Schema.optionalKey<Schema.Unknown>;
|
|
285
|
+
readonly kind: Schema.optionalKey<Schema.Unknown>;
|
|
286
|
+
readonly regex: Schema.optionalKey<Schema.Unknown>;
|
|
287
|
+
readonly nthChild: Schema.optionalKey<Schema.Unknown>;
|
|
288
|
+
readonly inside: Schema.optionalKey<Schema.Unknown>;
|
|
289
|
+
readonly has: Schema.optionalKey<Schema.Unknown>;
|
|
290
|
+
readonly precedes: Schema.optionalKey<Schema.Unknown>;
|
|
291
|
+
readonly follows: Schema.optionalKey<Schema.Unknown>;
|
|
292
|
+
readonly all: Schema.optionalKey<Schema.Unknown>;
|
|
293
|
+
readonly any: Schema.optionalKey<Schema.Unknown>;
|
|
294
|
+
readonly not: Schema.optionalKey<Schema.Unknown>;
|
|
295
|
+
readonly where: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
296
|
+
readonly regex: Schema.optionalKey<Schema.String>;
|
|
297
|
+
readonly binding: Schema.optionalKey<Schema.Struct<{
|
|
298
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
299
|
+
readonly external: Schema.String;
|
|
300
|
+
}>, Schema.Struct<{
|
|
301
|
+
readonly builtin: Schema.String;
|
|
302
|
+
}>]>;
|
|
303
|
+
readonly member: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
304
|
+
}>>;
|
|
305
|
+
}>>>;
|
|
306
|
+
}>;
|
|
307
|
+
}>, Schema.Struct<{
|
|
308
|
+
readonly report: Schema.Struct<{
|
|
309
|
+
readonly command: Schema.optionalKey<Schema.String>;
|
|
310
|
+
readonly file: Schema.optionalKey<Schema.String>;
|
|
311
|
+
readonly format: Schema.Literals<readonly ["tsc", "eslint", "oxlint", "regex"]>;
|
|
312
|
+
readonly pattern: Schema.optionalKey<Schema.String>;
|
|
313
|
+
readonly codes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
314
|
+
readonly codesNot: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
315
|
+
}>;
|
|
316
|
+
}>, Schema.Struct<{
|
|
317
|
+
readonly fn: Schema.String;
|
|
318
|
+
}>]>;
|
|
319
|
+
readonly probes: Schema.Struct<{
|
|
320
|
+
readonly fires: Schema.$Array<Schema.Struct<{
|
|
321
|
+
readonly path: Schema.String;
|
|
322
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
323
|
+
readonly edges: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
324
|
+
readonly external: Schema.String;
|
|
325
|
+
}>, Schema.Struct<{
|
|
326
|
+
readonly builtin: Schema.String;
|
|
327
|
+
}>]>>>;
|
|
328
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
329
|
+
readonly report: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
330
|
+
readonly line: Schema.Finite;
|
|
331
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
332
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
333
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
334
|
+
}>>>;
|
|
335
|
+
}>>;
|
|
336
|
+
readonly ignores: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
337
|
+
readonly path: Schema.String;
|
|
338
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
339
|
+
readonly edges: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
340
|
+
readonly external: Schema.String;
|
|
341
|
+
}>, Schema.Struct<{
|
|
342
|
+
readonly builtin: Schema.String;
|
|
343
|
+
}>]>>>;
|
|
344
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
345
|
+
readonly report: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
346
|
+
readonly line: Schema.Finite;
|
|
347
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
348
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
349
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
350
|
+
}>>>;
|
|
351
|
+
}>>>;
|
|
352
|
+
}>;
|
|
353
|
+
readonly staleAfter: Schema.String;
|
|
354
|
+
readonly onComplete: Schema.optionalKey<Schema.Literals<readonly ["keep", "remove"]>>;
|
|
355
|
+
}>;
|
|
126
356
|
export declare const Manifest: Schema.Struct<{
|
|
127
357
|
readonly resolve: Schema.Struct<{
|
|
128
358
|
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
@@ -188,6 +418,133 @@ export declare const Manifest: Schema.Struct<{
|
|
|
188
418
|
readonly graph: Schema.optionalKey<Schema.Finite>;
|
|
189
419
|
}>>;
|
|
190
420
|
}>>;
|
|
421
|
+
readonly campaigns: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
422
|
+
readonly id: Schema.String;
|
|
423
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
424
|
+
readonly why: Schema.String;
|
|
425
|
+
readonly how: Schema.String;
|
|
426
|
+
readonly owner: Schema.optionalKey<Schema.String>;
|
|
427
|
+
readonly scope: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
428
|
+
readonly unit: Schema.Literals<readonly ["file", "declaration", "match"]>;
|
|
429
|
+
readonly detect: Schema.Union<readonly [Schema.Struct<{
|
|
430
|
+
readonly all: Schema.$Array<Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>>;
|
|
431
|
+
}>, Schema.Struct<{
|
|
432
|
+
readonly any: Schema.$Array<Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>>;
|
|
433
|
+
}>, Schema.Struct<{
|
|
434
|
+
readonly not: Schema.suspend<Schema.Codec<DetectorSpec, DetectorSpec, never, never>>;
|
|
435
|
+
}>, Schema.Struct<{
|
|
436
|
+
readonly path: Schema.Struct<{
|
|
437
|
+
readonly file: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
438
|
+
readonly fileNot: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
439
|
+
readonly subject: Schema.optionalKey<Schema.Finite>;
|
|
440
|
+
readonly convention: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["kebab-case", "camelCase", "PascalCase", "snake_case"]>, Schema.Struct<{
|
|
441
|
+
readonly regex: Schema.String;
|
|
442
|
+
}>]>>;
|
|
443
|
+
}>;
|
|
444
|
+
}>, Schema.Struct<{
|
|
445
|
+
readonly imports: Schema.Struct<{
|
|
446
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
447
|
+
readonly external: Schema.String;
|
|
448
|
+
}>, Schema.Struct<{
|
|
449
|
+
readonly builtin: Schema.String;
|
|
450
|
+
}>]>;
|
|
451
|
+
readonly symbols: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
452
|
+
}>;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly exports: Schema.Struct<{
|
|
455
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
456
|
+
readonly kinds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["named", "default", "namespace"]>>>;
|
|
457
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
458
|
+
readonly reexport: Schema.optionalKey<Schema.Boolean>;
|
|
459
|
+
}>;
|
|
460
|
+
}>, Schema.Struct<{
|
|
461
|
+
readonly members: Schema.Struct<{
|
|
462
|
+
readonly subject: Schema.Literals<readonly ["members", "calls"]>;
|
|
463
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
464
|
+
readonly in: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
465
|
+
readonly declares: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["function", "class", "variable", "type", "interface", "enum", "expression", "other"]>>>;
|
|
466
|
+
}>;
|
|
467
|
+
}>, Schema.Struct<{
|
|
468
|
+
readonly requires: Schema.$Array<Schema.String>;
|
|
469
|
+
}>, Schema.Struct<{
|
|
470
|
+
readonly content: Schema.Struct<{
|
|
471
|
+
readonly regex: Schema.String;
|
|
472
|
+
}>;
|
|
473
|
+
}>, Schema.Struct<{
|
|
474
|
+
readonly syntax: Schema.Struct<{
|
|
475
|
+
readonly pattern: Schema.optionalKey<Schema.Unknown>;
|
|
476
|
+
readonly kind: Schema.optionalKey<Schema.Unknown>;
|
|
477
|
+
readonly regex: Schema.optionalKey<Schema.Unknown>;
|
|
478
|
+
readonly nthChild: Schema.optionalKey<Schema.Unknown>;
|
|
479
|
+
readonly inside: Schema.optionalKey<Schema.Unknown>;
|
|
480
|
+
readonly has: Schema.optionalKey<Schema.Unknown>;
|
|
481
|
+
readonly precedes: Schema.optionalKey<Schema.Unknown>;
|
|
482
|
+
readonly follows: Schema.optionalKey<Schema.Unknown>;
|
|
483
|
+
readonly all: Schema.optionalKey<Schema.Unknown>;
|
|
484
|
+
readonly any: Schema.optionalKey<Schema.Unknown>;
|
|
485
|
+
readonly not: Schema.optionalKey<Schema.Unknown>;
|
|
486
|
+
readonly where: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
487
|
+
readonly regex: Schema.optionalKey<Schema.String>;
|
|
488
|
+
readonly binding: Schema.optionalKey<Schema.Struct<{
|
|
489
|
+
readonly resolves: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
490
|
+
readonly external: Schema.String;
|
|
491
|
+
}>, Schema.Struct<{
|
|
492
|
+
readonly builtin: Schema.String;
|
|
493
|
+
}>]>;
|
|
494
|
+
readonly member: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
495
|
+
}>>;
|
|
496
|
+
}>>>;
|
|
497
|
+
}>;
|
|
498
|
+
}>, Schema.Struct<{
|
|
499
|
+
readonly report: Schema.Struct<{
|
|
500
|
+
readonly command: Schema.optionalKey<Schema.String>;
|
|
501
|
+
readonly file: Schema.optionalKey<Schema.String>;
|
|
502
|
+
readonly format: Schema.Literals<readonly ["tsc", "eslint", "oxlint", "regex"]>;
|
|
503
|
+
readonly pattern: Schema.optionalKey<Schema.String>;
|
|
504
|
+
readonly codes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
505
|
+
readonly codesNot: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
506
|
+
}>;
|
|
507
|
+
}>, Schema.Struct<{
|
|
508
|
+
readonly fn: Schema.String;
|
|
509
|
+
}>]>;
|
|
510
|
+
readonly probes: Schema.Struct<{
|
|
511
|
+
readonly fires: Schema.$Array<Schema.Struct<{
|
|
512
|
+
readonly path: Schema.String;
|
|
513
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
514
|
+
readonly edges: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
515
|
+
readonly external: Schema.String;
|
|
516
|
+
}>, Schema.Struct<{
|
|
517
|
+
readonly builtin: Schema.String;
|
|
518
|
+
}>]>>>;
|
|
519
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
520
|
+
readonly report: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
521
|
+
readonly line: Schema.Finite;
|
|
522
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
523
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
524
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
525
|
+
}>>>;
|
|
526
|
+
}>>;
|
|
527
|
+
readonly ignores: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
528
|
+
readonly path: Schema.String;
|
|
529
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
530
|
+
readonly edges: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
531
|
+
readonly external: Schema.String;
|
|
532
|
+
}>, Schema.Struct<{
|
|
533
|
+
readonly builtin: Schema.String;
|
|
534
|
+
}>]>>>;
|
|
535
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
536
|
+
readonly report: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
537
|
+
readonly line: Schema.Finite;
|
|
538
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
539
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
540
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
541
|
+
}>>>;
|
|
542
|
+
}>>>;
|
|
543
|
+
}>;
|
|
544
|
+
readonly staleAfter: Schema.String;
|
|
545
|
+
readonly onComplete: Schema.optionalKey<Schema.Literals<readonly ["keep", "remove"]>>;
|
|
546
|
+
}>>>;
|
|
547
|
+
readonly ledger: Schema.optionalKey<Schema.String>;
|
|
191
548
|
readonly aliases: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
192
549
|
readonly tree: Schema.$Record<Schema.String, Schema.Codec<ManifestNode, ManifestNode, never, never>>;
|
|
193
550
|
}>;
|
|
@@ -200,6 +557,11 @@ export type GraphSpec = typeof Graph.Type;
|
|
|
200
557
|
export type LimitsSpec = typeof Limits.Type;
|
|
201
558
|
export type NamingSpec = typeof Naming.Type;
|
|
202
559
|
export type ExportRestriction = typeof ExportRestriction.Type;
|
|
560
|
+
export type CampaignSpec = typeof Campaign.Type;
|
|
561
|
+
export type CampaignProbeSpec = typeof CampaignProbe.Type;
|
|
562
|
+
export type SyntaxTermSpec = typeof SyntaxTerm.Type;
|
|
563
|
+
export declare const DEFAULT_LEDGER_DIR = ".architecture-campaigns";
|
|
564
|
+
export declare const durationMs: (duration: string) => number;
|
|
203
565
|
export declare const globsOf: (globs: string | ReadonlyArray<string>) => ReadonlyArray<string>;
|
|
204
566
|
export type DecodedManifest = {
|
|
205
567
|
readonly manifest: Manifest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/manifest/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAA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C,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEpD,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAG5D,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,MAG7C,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,KAAG,aAAa,CAAC,MAAM,CACvC,CAAC;AAS9C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAG5B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAGxC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACrD,CAAC;AAmGF,MAAM,MAAM,qBAAqB,GAAG;IAGlC,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC/C,CAAC;AA+CF,eAAO,MAAM,cAAc,eACb,MAAM,SACX,OAAO,YACL,qBAAqB,KAC7B,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAuC9C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SourceFacts } from "../domain/facts.js";
|
|
2
|
+
import type { SyntaxTree } from "./syntax-matcher.js";
|
|
3
|
+
export type Range = {
|
|
4
|
+
readonly start: {
|
|
5
|
+
readonly line: number;
|
|
6
|
+
readonly column: number;
|
|
7
|
+
};
|
|
8
|
+
readonly end: {
|
|
9
|
+
readonly line: number;
|
|
10
|
+
readonly column: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type CampaignPredicateInput = {
|
|
14
|
+
readonly file: string;
|
|
15
|
+
readonly text: string;
|
|
16
|
+
readonly facts: SourceFacts;
|
|
17
|
+
readonly syntax: SyntaxTree | null;
|
|
18
|
+
};
|
|
19
|
+
export type CampaignSubject = {
|
|
20
|
+
readonly subject: string;
|
|
21
|
+
readonly range?: Range;
|
|
22
|
+
};
|
|
23
|
+
export type CampaignPredicate = (input: CampaignPredicateInput) => boolean | ReadonlyArray<CampaignSubject>;
|
|
24
|
+
//# sourceMappingURL=campaign-predicate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign-predicate.d.ts","sourceRoot":"","sources":["../../../src/ports/campaign-predicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUtD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,QAAQ,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAE5B,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,KAAK,EAAE,sBAAsB,KAC1B,OAAO,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { ExportFix, ResolveScope } from "../domain/architecture-config.js";
|
|
|
3
3
|
import type { ScopeInvalid } from "../domain/architecture-error.js";
|
|
4
4
|
import type { FactExtractor } from "./fact-extractor.js";
|
|
5
5
|
import type { ModuleResolver } from "./module-resolver.js";
|
|
6
|
+
import type { SyntaxMatcher } from "./syntax-matcher.js";
|
|
6
7
|
export type Language = {
|
|
7
8
|
readonly id: string;
|
|
8
9
|
readonly extensions: ReadonlyArray<string>;
|
|
@@ -11,6 +12,7 @@ export type Language = {
|
|
|
11
12
|
readonly sourceRoots: ReadonlyArray<string>;
|
|
12
13
|
readonly extractor: FactExtractor;
|
|
13
14
|
readonly fixes: ReadonlyArray<ExportFix>;
|
|
15
|
+
readonly syntax?: SyntaxMatcher;
|
|
14
16
|
readonly makeResolver: (repoRoot: string, scope: ResolveScope) => Result.Result<ModuleResolver, ScopeInvalid>;
|
|
15
17
|
};
|
|
16
18
|
//# sourceMappingURL=language.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../src/ports/language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../src/ports/language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAUzD,MAAM,MAAM,QAAQ,GAAG;IAErB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAG3C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAM7C,QAAQ,CAAC,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAK/C,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAG5C,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAIlC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAKzC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAKhC,QAAQ,CAAC,YAAY,EAAE,CACrB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,YAAY,KAChB,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;CAClD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Diagnostic, ReportFormat } from "../domain/report.js";
|
|
2
|
+
export type ReportSpec = {
|
|
3
|
+
readonly command?: string | undefined;
|
|
4
|
+
readonly file?: string | undefined;
|
|
5
|
+
readonly format: ReportFormat;
|
|
6
|
+
readonly pattern?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type ReportSource = {
|
|
9
|
+
readonly diagnosticsOf: (spec: ReportSpec, file: string) => ReadonlyArray<Diagnostic>;
|
|
10
|
+
};
|
|
11
|
+
export declare const NO_REPORTS: ReportSource;
|
|
12
|
+
//# sourceMappingURL=report-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-source.d.ts","sourceRoot":"","sources":["../../../src/ports/report-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIpE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAE9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAMF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,aAAa,CAAC,UAAU,CAAC,CAAC;CACvF,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,YAA0C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type Position = {
|
|
2
|
+
readonly line: number;
|
|
3
|
+
readonly column: number;
|
|
4
|
+
};
|
|
5
|
+
export type SyntaxMatch = {
|
|
6
|
+
readonly text: string;
|
|
7
|
+
readonly captures: ReadonlyMap<string, string>;
|
|
8
|
+
readonly range: {
|
|
9
|
+
readonly start: Position;
|
|
10
|
+
readonly end: Position;
|
|
11
|
+
};
|
|
12
|
+
readonly anchor: string | null;
|
|
13
|
+
};
|
|
14
|
+
export type SyntaxTree = {
|
|
15
|
+
readonly findAll: (rule: unknown) => ReadonlyArray<SyntaxMatch>;
|
|
16
|
+
readonly anchorAt: (position: Position) => string | null;
|
|
17
|
+
};
|
|
18
|
+
export type SyntaxMatcher = {
|
|
19
|
+
readonly parse: (file: string, text: string) => SyntaxTree | null;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=syntax-matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntax-matcher.d.ts","sourceRoot":"","sources":["../../../src/ports/syntax-matcher.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,QAAQ,GAAG;IAErB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAA;KAAE,CAAC;IAGrE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IAGvB,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,aAAa,CAAC,WAAW,CAAC,CAAC;IAIhE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,MAAM,GAAG,IAAI,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAG1B,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,UAAU,GAAG,IAAI,CAAC;CACnE,CAAC"}
|
package/build/dts/testing.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { makeFactExtractorFake } from "./infrastructure/fact-extractor-fake.js";
|
|
2
2
|
export { makeFileSystemFake } from "./infrastructure/file-system-fake.js";
|
|
3
3
|
export { makeModuleResolverFake } from "./infrastructure/module-resolver-fake.js";
|
|
4
|
+
export { makeReportSourceFake } from "./infrastructure/report-source-fake.js";
|
|
5
|
+
export { makeSyntaxMatcherFake, type StagedMatch } from "./infrastructure/syntax-matcher-fake.js";
|
|
4
6
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/testing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/testing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,KAAK,WAAW,EAAE,MAAM,yCAAyC,CAAC"}
|