@goodbones/core 0.1.0-beta.6 → 0.1.0-beta.8
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 +140 -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/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 +11 -3
- 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 +732 -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/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 +7 -1
- 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 +57 -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 +1006 -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/facts.ts +9 -4
- 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 +74 -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 +66 -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
|
@@ -3,12 +3,13 @@ export declare const SNAPSHOT_SCHEMA_ID = "https://dataquail.github.io/goodbones
|
|
|
3
3
|
export declare const SNAPSHOT_VERSION = 1;
|
|
4
4
|
export declare const SnapshotViolation: Schema.Struct<{
|
|
5
5
|
readonly fingerprint: Schema.String;
|
|
6
|
-
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph"]>;
|
|
6
|
+
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph", "campaign"]>;
|
|
7
7
|
readonly ruleName: Schema.String;
|
|
8
8
|
readonly file: Schema.String;
|
|
9
9
|
readonly subject: Schema.NullOr<Schema.String>;
|
|
10
10
|
readonly message: Schema.String;
|
|
11
11
|
readonly baselined: Schema.Boolean;
|
|
12
|
+
readonly ledgered: Schema.Boolean;
|
|
12
13
|
}>;
|
|
13
14
|
export declare const SnapshotSlack: Schema.Struct<{
|
|
14
15
|
readonly node: Schema.String;
|
|
@@ -28,6 +29,22 @@ export declare const SnapshotVacancy: Schema.Struct<{
|
|
|
28
29
|
readonly node: Schema.String;
|
|
29
30
|
readonly allowances: Schema.Finite;
|
|
30
31
|
}>;
|
|
32
|
+
export declare const SnapshotCampaign: Schema.Struct<{
|
|
33
|
+
readonly id: Schema.String;
|
|
34
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly owner: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly initial: Schema.Finite;
|
|
37
|
+
readonly allowed: Schema.Finite;
|
|
38
|
+
readonly count: Schema.Finite;
|
|
39
|
+
readonly fixed: Schema.Finite;
|
|
40
|
+
readonly progress: Schema.Finite;
|
|
41
|
+
readonly lastProgress: Schema.String;
|
|
42
|
+
readonly regressions: Schema.Finite;
|
|
43
|
+
readonly stalled: Schema.Boolean;
|
|
44
|
+
readonly complete: Schema.Boolean;
|
|
45
|
+
readonly onComplete: Schema.Literals<readonly ["keep", "remove"]>;
|
|
46
|
+
readonly ledgered: Schema.Boolean;
|
|
47
|
+
}>;
|
|
31
48
|
export declare const Snapshot: Schema.Struct<{
|
|
32
49
|
readonly version: Schema.Literal<1>;
|
|
33
50
|
readonly manifest: Schema.Struct<{
|
|
@@ -52,12 +69,13 @@ export declare const Snapshot: Schema.Struct<{
|
|
|
52
69
|
}>>;
|
|
53
70
|
readonly violations: Schema.$Array<Schema.Struct<{
|
|
54
71
|
readonly fingerprint: Schema.String;
|
|
55
|
-
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph"]>;
|
|
72
|
+
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph", "campaign"]>;
|
|
56
73
|
readonly ruleName: Schema.String;
|
|
57
74
|
readonly file: Schema.String;
|
|
58
75
|
readonly subject: Schema.NullOr<Schema.String>;
|
|
59
76
|
readonly message: Schema.String;
|
|
60
77
|
readonly baselined: Schema.Boolean;
|
|
78
|
+
readonly ledgered: Schema.Boolean;
|
|
61
79
|
}>>;
|
|
62
80
|
readonly unresolved: Schema.$Array<Schema.Struct<{
|
|
63
81
|
readonly file: Schema.String;
|
|
@@ -87,12 +105,29 @@ export declare const Snapshot: Schema.Struct<{
|
|
|
87
105
|
readonly unrestricted: Schema.$Array<Schema.String>;
|
|
88
106
|
readonly partial: Schema.$Array<Schema.String>;
|
|
89
107
|
}>;
|
|
108
|
+
readonly campaigns: Schema.$Array<Schema.Struct<{
|
|
109
|
+
readonly id: Schema.String;
|
|
110
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
111
|
+
readonly owner: Schema.optionalKey<Schema.String>;
|
|
112
|
+
readonly initial: Schema.Finite;
|
|
113
|
+
readonly allowed: Schema.Finite;
|
|
114
|
+
readonly count: Schema.Finite;
|
|
115
|
+
readonly fixed: Schema.Finite;
|
|
116
|
+
readonly progress: Schema.Finite;
|
|
117
|
+
readonly lastProgress: Schema.String;
|
|
118
|
+
readonly regressions: Schema.Finite;
|
|
119
|
+
readonly stalled: Schema.Boolean;
|
|
120
|
+
readonly complete: Schema.Boolean;
|
|
121
|
+
readonly onComplete: Schema.Literals<readonly ["keep", "remove"]>;
|
|
122
|
+
readonly ledgered: Schema.Boolean;
|
|
123
|
+
}>>;
|
|
90
124
|
}>;
|
|
91
125
|
export type Snapshot = typeof Snapshot.Type;
|
|
92
126
|
export type SnapshotViolation = typeof SnapshotViolation.Type;
|
|
93
127
|
export type SnapshotSlack = typeof SnapshotSlack.Type;
|
|
94
128
|
export type SnapshotConcentration = typeof SnapshotConcentration.Type;
|
|
95
129
|
export type SnapshotVacancy = typeof SnapshotVacancy.Type;
|
|
130
|
+
export type SnapshotCampaign = typeof SnapshotCampaign.Type;
|
|
96
131
|
export declare const decodeSnapshot: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Result").Result<Schema.Struct.ReadonlySide<{
|
|
97
132
|
readonly version: Schema.Literal<1>;
|
|
98
133
|
readonly manifest: Schema.Struct<{
|
|
@@ -117,12 +152,13 @@ export declare const decodeSnapshot: (input: unknown, options?: import("effect/S
|
|
|
117
152
|
}>>;
|
|
118
153
|
readonly violations: Schema.$Array<Schema.Struct<{
|
|
119
154
|
readonly fingerprint: Schema.String;
|
|
120
|
-
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph"]>;
|
|
155
|
+
readonly kind: Schema.Literals<readonly ["import", "export", "structure", "member", "surface", "graph", "campaign"]>;
|
|
121
156
|
readonly ruleName: Schema.String;
|
|
122
157
|
readonly file: Schema.String;
|
|
123
158
|
readonly subject: Schema.NullOr<Schema.String>;
|
|
124
159
|
readonly message: Schema.String;
|
|
125
160
|
readonly baselined: Schema.Boolean;
|
|
161
|
+
readonly ledgered: Schema.Boolean;
|
|
126
162
|
}>>;
|
|
127
163
|
readonly unresolved: Schema.$Array<Schema.Struct<{
|
|
128
164
|
readonly file: Schema.String;
|
|
@@ -152,6 +188,22 @@ export declare const decodeSnapshot: (input: unknown, options?: import("effect/S
|
|
|
152
188
|
readonly unrestricted: Schema.$Array<Schema.String>;
|
|
153
189
|
readonly partial: Schema.$Array<Schema.String>;
|
|
154
190
|
}>;
|
|
191
|
+
readonly campaigns: Schema.$Array<Schema.Struct<{
|
|
192
|
+
readonly id: Schema.String;
|
|
193
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
194
|
+
readonly owner: Schema.optionalKey<Schema.String>;
|
|
195
|
+
readonly initial: Schema.Finite;
|
|
196
|
+
readonly allowed: Schema.Finite;
|
|
197
|
+
readonly count: Schema.Finite;
|
|
198
|
+
readonly fixed: Schema.Finite;
|
|
199
|
+
readonly progress: Schema.Finite;
|
|
200
|
+
readonly lastProgress: Schema.String;
|
|
201
|
+
readonly regressions: Schema.Finite;
|
|
202
|
+
readonly stalled: Schema.Boolean;
|
|
203
|
+
readonly complete: Schema.Boolean;
|
|
204
|
+
readonly onComplete: Schema.Literals<readonly ["keep", "remove"]>;
|
|
205
|
+
readonly ledgered: Schema.Boolean;
|
|
206
|
+
}>>;
|
|
155
207
|
}, "Type">, Schema.SchemaError>;
|
|
156
208
|
type JsonValue = string | number | boolean | null | JsonObject | ReadonlyArray<JsonValue>;
|
|
157
209
|
type JsonObject = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/domain/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAiBxC,eAAO,MAAM,kBAAkB,yEACyC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/domain/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAiBxC,eAAO,MAAM,kBAAkB,yEACyC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAgClC,eAAO,MAAM,iBAAiB;;;;;;;;;EAkB5B,CAAC;AASH,eAAO,MAAM,aAAa;;;;;;EAmBxB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAMhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;EAM1B,CAAC;AAIH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAsC3B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AACtD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAK5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAGzB,CAAC;AAEH,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAC1F,KAAK,UAAU,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAIxD,eAAO,MAAM,kBAAkB,QAAO,UAcrC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ViolationKind = "import" | "export" | "structure" | "member" | "surface" | "graph";
|
|
1
|
+
export type ViolationKind = "import" | "export" | "structure" | "member" | "surface" | "graph" | "campaign";
|
|
2
2
|
export type Violation = {
|
|
3
3
|
readonly kind: ViolationKind;
|
|
4
4
|
readonly ruleName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"violation.d.ts","sourceRoot":"","sources":["../../../src/domain/violation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"violation.d.ts","sourceRoot":"","sources":["../../../src/domain/violation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GACvB,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAElF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAItB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,eAAO,MAAM,aAAa,cAAe,SAAS,KAAG,MACoC,CAAC;AAI1F,eAAO,MAAM,aAAa,cAAe,SAAS,KAAG,MACyC,CAAC"}
|
package/build/dts/index.d.ts
CHANGED
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
export { type Baseline, type BaselineFilter, baselineOf, decodeBaseline, EMPTY_BASELINE, makeBaselineFilter, serializeBaseline, staleEntriesOf, unbaselined, } from "./core/baseline.js";
|
|
2
|
+
export { type CampaignHit, type CampaignInput, campaignsFailingTheirProbe, campaignsSelecting, compileCampaignRule, compileCampaignRules, type CompiledCampaign, type CompiledDetector, evaluateCampaign, evaluateCampaigns, explainCampaign, type FailedProbe, leafTermsOf, matchKeyOf, probeInputOf, type TermAnswer, } from "./core/campaigns.js";
|
|
2
3
|
export { type Coverage, type CoverageFamily, type CoverageFloors, coverageOf, coverageShortfalls, fractionsOf, type Reach, reachOf, type Residue, residueOf, type Vacancy, vacancyOf, } from "./core/coverage.js";
|
|
3
4
|
export { type BindingEdge, type CompiledExportRule, compileExportRule, compileExportRules, evaluateBindingEdge, evaluateSelectedBindings, exportRulesFailingTheirProbe, exportRulesSelecting, type ExportViolation, type SelectedExportRule, } from "./core/exports.js";
|
|
4
5
|
export { type CompiledGraph, compileGraphRules, cyclesIn, EMPTY_GRAPH_RULES, evaluateGraph, type Graph, graphRulesFailingTheirProbe, hasGraphRules, heightOf, } from "./core/graph.js";
|
|
5
6
|
export { type CompiledImportRule, compileImportRule, compileImportRules, evaluateImportEdge, evaluateResolvedEdge, evaluateSelectedEdge, type ImportEdge, probeTargetOf, rulesFailingTheirProbe, rulesSelecting, type SelectedRule, } from "./core/imports.js";
|
|
7
|
+
export { allowed, decodeLedger, EMPTY_LEDGER, entryOf, isComplete, isStalled, type Ledger, ledgerArithmeticHolds, ledgerOf, Ledger as LedgerSchema, newEntriesOf, progressOf, pruned, reconcile, type Reconciliation, type Regression, type RegressionRecord, serializeLedger, staleEntriesOf as staleLedgerEntriesOf, } from "./core/ledger.js";
|
|
6
8
|
export { type CompiledMemberRule, compileMemberRules, evaluateMemberSite, memberRulesFailingTheirProbe, memberRulesSelecting, } from "./core/members.js";
|
|
7
9
|
export { type Concentration, type ObservedEdge, type Slack, slackOf, type SlackReport, } from "./core/slack.js";
|
|
8
10
|
export { type CompiledStructure, compileStructure, EMPTY_STRUCTURE, evaluateStructure, requiredSiblingsOf, structureRulesFailingTheirProbe, } from "./core/structure.js";
|
|
9
11
|
export { type CompiledSurfaceRule, compileSurfaceRules, evaluateSurface, surfaceRulesFailingTheirProbe, surfaceRulesSelecting, } from "./core/surface.js";
|
|
10
|
-
export { type Allowance, type BindingKind, type DeclarationKind, type ExportFix, type ExportRule, type GraphConfig, type GraphCycleRule, type GraphOrphanRule, type GraphReachRule, type ImportProbe, type ImportProbeTarget, type ImportRule, type MemberRule, type MemberSubject, type ResolveConfig, type ResolveScope, type StructureConfig, type SurfaceRule, } from "./domain/architecture-config.js";
|
|
12
|
+
export { type Allowance, type BindingKind, type CampaignProbe, type CampaignRule, type CampaignUnit, type DeclarationKind, type Detector, type ExportFix, type ExportRule, type GraphConfig, type GraphCycleRule, type GraphOrphanRule, type GraphReachRule, type ImportProbe, type ImportProbeTarget, type ImportRule, type MemberRule, type MemberSubject, type ProbeDiagnostic, type ResolveConfig, type ResolveScope, type StructureConfig, type SurfaceRule, } from "./domain/architecture-config.js";
|
|
11
13
|
export { ConfigInvalid, ImportUnresolved, PatternInvalid, ScopeInvalid, } from "./domain/architecture-error.js";
|
|
12
14
|
export { type Binding, type ExportSite, type MemberSite, type SourceFacts, } from "./domain/facts.js";
|
|
13
15
|
export { type ManifestLocator, type ManifestPath, type ManifestPosition, renderManifestPath, } from "./domain/manifest-location.js";
|
|
14
|
-
export {
|
|
16
|
+
export { type Diagnostic, indexByFile, parseReport, type ParseReportOptions, type ReportFormat, } from "./domain/report.js";
|
|
17
|
+
export { decodeSnapshot, type Snapshot, SNAPSHOT_SCHEMA_ID, SNAPSHOT_VERSION, type SnapshotCampaign, type SnapshotConcentration, snapshotJsonSchema, Snapshot as SnapshotSchema, type SnapshotSlack, type SnapshotVacancy, type SnapshotViolation, } from "./domain/snapshot.js";
|
|
15
18
|
export { fingerprintOf, formatMessage, type Violation, type ViolationKind, } from "./domain/violation.js";
|
|
19
|
+
export { loadCampaignFunctions, type LoadedCampaignFunctions, } from "./infrastructure/campaign-functions.js";
|
|
16
20
|
export { makeFileSystemLive } from "./infrastructure/file-system-live.js";
|
|
17
21
|
export { findManifestFile, formatManifestYaml, MANIFEST_FILENAMES, type ManifestFile, readManifestFile, } from "./infrastructure/manifest-file.js";
|
|
18
22
|
export { expandIncludes, type IncludedManifest, type IncludeReader, type SourceDocument, } from "./infrastructure/manifest-include.js";
|
|
23
|
+
export { makeReportSourceLive } from "./infrastructure/report-source-live.js";
|
|
19
24
|
export { listPackageRoots, listSourceFiles, type PackagedLanguage, type PackageRoot, type WalkedLanguage, } from "./infrastructure/walk.js";
|
|
20
25
|
export { type LoadedPolicy, loadPolicy, type LoadPolicyInput } from "./load/policy.js";
|
|
21
26
|
export { type LoweredRules, lowerManifest, type LowerOptions, type ProbeLanguage, } from "./manifest/compile.js";
|
|
22
27
|
export { type ExpandedManifest, type ExpandIssue, expandManifest, type Origin, originOf, type Substitution, } from "./manifest/expand.js";
|
|
23
28
|
export { type Candidate, candidatesOf, type Generalization, type InferInput, inferManifest, type InferOptions, type InferPackage, type Inferred, type InferredTarget, singularOf, } from "./manifest/infer.js";
|
|
24
29
|
export { MANIFEST_NODE_SCHEMA_ID, MANIFEST_SCHEMA_ID, manifestJsonSchema, manifestNodeJsonSchema, } from "./manifest/json-schema.js";
|
|
25
|
-
export { type DecodedManifest, decodeManifest, type DecodeManifestOptions, type Manifest, type ManifestNode, Manifest as ManifestSchema, } from "./manifest/manifest.js";
|
|
30
|
+
export { type CampaignSpec, type DecodedManifest, decodeManifest, type DecodeManifestOptions, DEFAULT_LEDGER_DIR, type DetectorSpec, durationMs, type Manifest, type ManifestNode, Manifest as ManifestSchema, } from "./manifest/manifest.js";
|
|
31
|
+
export { type CampaignPredicate, type CampaignPredicateInput, type CampaignSubject, type Range, } from "./ports/campaign-predicate.js";
|
|
26
32
|
export { type FactExtractor } from "./ports/fact-extractor.js";
|
|
27
33
|
export { type FileSystem } from "./ports/file-system.js";
|
|
28
34
|
export { type Language } from "./ports/language.js";
|
|
29
35
|
export { type DependencyKind, type ModuleResolver, type ResolvedTarget, } from "./ports/module-resolver.js";
|
|
36
|
+
export { NO_REPORTS, type ReportSource, type ReportSpec } from "./ports/report-source.js";
|
|
37
|
+
export { type Position, type SyntaxMatch, type SyntaxMatcher, type SyntaxTree, } from "./ports/syntax-matcher.js";
|
|
30
38
|
//# sourceMappingURL=index.d.ts.map
|
package/build/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,KAAK,KAAK,EACV,OAAO,EACP,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,OAAO,EACZ,SAAS,GACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,iB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
1
|
+
import type { CampaignPredicate } from "../ports/campaign-predicate.js";
|
|
2
|
+
export type LoadedCampaignFunctions = {
|
|
3
|
+
readonly functions: ReadonlyMap<string, CampaignPredicate>;
|
|
4
|
+
readonly manifest: unknown;
|
|
5
|
+
};
|
|
6
|
+
export declare const loadCampaignFunctions: (manifestPath: string, rawManifest: unknown) => Promise<LoadedCampaignFunctions>;
|
|
7
|
+
//# sourceMappingURL=campaign-functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign-functions.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/campaign-functions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAcxE,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAE3D,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC;AAWF,eAAO,MAAM,qBAAqB,iBAClB,MAAM,eACP,OAAO,KACnB,OAAO,CAAC,uBAAuB,CA6DjC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Diagnostic } from "../domain/report.js";
|
|
2
|
+
import type { ReportSource } from "../ports/report-source.js";
|
|
3
|
+
export declare const makeReportSourceFake: (staged: Readonly<Record<string, ReadonlyArray<Omit<Diagnostic, "file">>>>) => ReportSource;
|
|
4
|
+
//# sourceMappingURL=report-source-fake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-source-fake.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/report-source-fake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,WACvB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,KACxE,YAED,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-source-live.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/report-source-live.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,2BAA2B,CAAC;AA6C1E,eAAO,MAAM,oBAAoB,aAAc,MAAM,KAAG,YAevD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SyntaxMatcher } from "../ports/syntax-matcher.js";
|
|
2
|
+
export type StagedMatch = {
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly captures?: Readonly<Record<string, string>>;
|
|
5
|
+
readonly anchor?: string | null;
|
|
6
|
+
readonly line?: number;
|
|
7
|
+
readonly rule?: unknown;
|
|
8
|
+
};
|
|
9
|
+
export declare const makeSyntaxMatcherFake: (staged: Readonly<Record<string, ReadonlyArray<StagedMatch>>>, extensions?: ReadonlyArray<string> | null) => SyntaxMatcher;
|
|
10
|
+
//# sourceMappingURL=syntax-matcher-fake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntax-matcher-fake.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/syntax-matcher-fake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO7E,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AASF,eAAO,MAAM,qBAAqB,WACxB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,eAChD,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,KACvC,aAyBD,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as Result from "effect/Result";
|
|
2
2
|
import { type BaselineFilter } from "../core/baseline.js";
|
|
3
|
+
import { type CampaignPredicate, type CompiledCampaign } from "../core/campaigns.js";
|
|
3
4
|
import { type CompiledExportRule } from "../core/exports.js";
|
|
4
5
|
import { type CompiledGraph } from "../core/graph.js";
|
|
5
6
|
import { type CompiledImportRule } from "../core/imports.js";
|
|
7
|
+
import { type Ledger } from "../core/ledger.js";
|
|
6
8
|
import { type CompiledMemberRule } from "../core/members.js";
|
|
7
9
|
import { type CompiledStructure } from "../core/structure.js";
|
|
8
10
|
import { type CompiledSurfaceRule } from "../core/surface.js";
|
|
@@ -14,6 +16,8 @@ import type { FactExtractor } from "../ports/fact-extractor.js";
|
|
|
14
16
|
import type { FileSystem } from "../ports/file-system.js";
|
|
15
17
|
import type { Language } from "../ports/language.js";
|
|
16
18
|
import type { ModuleResolver } from "../ports/module-resolver.js";
|
|
19
|
+
import { type ReportSource } from "../ports/report-source.js";
|
|
20
|
+
import type { SyntaxMatcher } from "../ports/syntax-matcher.js";
|
|
17
21
|
export type LoadedPolicy = {
|
|
18
22
|
readonly repoRoot: string;
|
|
19
23
|
readonly config: Manifest;
|
|
@@ -24,11 +28,18 @@ export type LoadedPolicy = {
|
|
|
24
28
|
readonly graph: CompiledGraph;
|
|
25
29
|
readonly adoption: LoweredRules["adoption"];
|
|
26
30
|
readonly structure: CompiledStructure;
|
|
31
|
+
readonly campaignRules: ReadonlyArray<CompiledCampaign>;
|
|
32
|
+
readonly ledgers: ReadonlyMap<string, Ledger>;
|
|
33
|
+
readonly ledgerDir: string;
|
|
34
|
+
readonly functions: ReadonlyMap<string, CampaignPredicate>;
|
|
35
|
+
readonly reports: ReportSource;
|
|
36
|
+
readonly now: number;
|
|
27
37
|
readonly fileSystem: FileSystem;
|
|
28
38
|
readonly languages: ReadonlyArray<Language>;
|
|
29
39
|
readonly baseline: BaselineFilter;
|
|
30
40
|
readonly resolver: ModuleResolver;
|
|
31
41
|
readonly extractor: FactExtractor;
|
|
42
|
+
readonly syntax: SyntaxMatcher;
|
|
32
43
|
readonly ignoreUnresolved: ReadonlyArray<RegExp>;
|
|
33
44
|
readonly notices: ReadonlyArray<string>;
|
|
34
45
|
};
|
|
@@ -39,6 +50,9 @@ export type LoadPolicyInput = {
|
|
|
39
50
|
readonly locate?: ManifestLocator | undefined;
|
|
40
51
|
readonly languages: ReadonlyArray<Language>;
|
|
41
52
|
readonly fileSystem: FileSystem;
|
|
53
|
+
readonly functions?: ReadonlyMap<string, CampaignPredicate> | undefined;
|
|
54
|
+
readonly reports?: ReportSource | undefined;
|
|
55
|
+
readonly now?: number | undefined;
|
|
42
56
|
};
|
|
43
57
|
export declare const loadPolicy: (input: LoadPolicyInput) => Result.Result<LoadedPolicy, ConfigInvalid | PatternInvalid>;
|
|
44
58
|
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../src/load/policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,oBAAoB,CAAC;AAC5B,O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QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAGhC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAG5C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAElC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAGlC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAGlC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEjD,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAG5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAG3B,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAGhC,QAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAIxE,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAE5C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAwKF,eAAO,MAAM,UAAU,UACd,eAAe,KACrB,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,GAAG,cAAc,CAmO5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ExportRule, type GraphConfig, type ImportRule, type MemberRule, type StructureFolder, type StructureNaming, type StructureParity, type StructureRoot, type SurfaceRule } from "../domain/architecture-config.js";
|
|
1
|
+
import { type CampaignRule, type ExportRule, type GraphConfig, type ImportRule, type MemberRule, type StructureFolder, type StructureNaming, type StructureParity, type StructureRoot, type SurfaceRule } from "../domain/architecture-config.js";
|
|
2
2
|
import { type Substitution } from "./expand.js";
|
|
3
3
|
import { type Manifest } from "./manifest.js";
|
|
4
4
|
export type LoweredRules = {
|
|
@@ -7,6 +7,7 @@ export type LoweredRules = {
|
|
|
7
7
|
readonly members: ReadonlyArray<MemberRule>;
|
|
8
8
|
readonly surface: ReadonlyArray<SurfaceRule>;
|
|
9
9
|
readonly graph: GraphConfig;
|
|
10
|
+
readonly campaigns: ReadonlyArray<CampaignRule>;
|
|
10
11
|
readonly adoption: {
|
|
11
12
|
readonly unrestricted: ReadonlyArray<string>;
|
|
12
13
|
readonly partial: ReadonlyArray<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/manifest/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/manifest/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,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AO,MAAM,aAAa,aACd,QAAQ,cACP,aAAa,CAAC,aAAa,CAAC,YAC9B,YAAY,KACpB,YAmvBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../src/manifest/json-schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,kBAAkB,0EAC0C,CAAC;AAI1E,eAAO,MAAM,uBAAuB,+EAC0C,CAAC;AAE/E,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAC1F,KAAK,UAAU,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../src/manifest/json-schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,kBAAkB,0EAC0C,CAAC;AAI1E,eAAO,MAAM,uBAAuB,+EAC0C,CAAC;AAE/E,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAC1F,KAAK,UAAU,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AA6ExD,eAAO,MAAM,kBAAkB,QAAO,UA+BrC,CAAC;AAMF,eAAO,MAAM,sBAAsB,QAAO,UA8BzC,CAAC"}
|