@goodbones/core 0.1.0-beta.10 → 0.1.0-beta.12
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/structure.d.ts.map +1 -1
- package/build/dts/domain/architecture-config.d.ts +3 -310
- package/build/dts/domain/architecture-config.d.ts.map +1 -1
- package/build/dts/domain/snapshot.d.ts +150 -18
- package/build/dts/domain/snapshot.d.ts.map +1 -1
- package/build/dts/index.d.ts +11 -14
- package/build/dts/index.d.ts.map +1 -1
- package/build/dts/infrastructure/file-system-fake.d.ts.map +1 -1
- package/build/dts/infrastructure/file-system-live.d.ts.map +1 -1
- package/build/dts/infrastructure/walk.d.ts +6 -1
- package/build/dts/infrastructure/walk.d.ts.map +1 -1
- package/build/dts/load/extension.d.ts +33 -0
- package/build/dts/load/extension.d.ts.map +1 -0
- package/build/dts/load/policy.d.ts +4 -10
- package/build/dts/load/policy.d.ts.map +1 -1
- package/build/dts/manifest/compile.d.ts +7 -2
- package/build/dts/manifest/compile.d.ts.map +1 -1
- package/build/dts/manifest/extension.d.ts +8 -0
- package/build/dts/manifest/extension.d.ts.map +1 -0
- package/build/dts/manifest/glob.d.ts +1 -0
- package/build/dts/manifest/glob.d.ts.map +1 -1
- package/build/dts/manifest/json-schema.d.ts +6 -2
- package/build/dts/manifest/json-schema.d.ts.map +1 -1
- package/build/dts/manifest/manifest.d.ts +7 -362
- package/build/dts/manifest/manifest.d.ts.map +1 -1
- package/build/dts/ports/file-system.d.ts +1 -0
- package/build/dts/ports/file-system.d.ts.map +1 -1
- package/build/dts/testing.d.ts +0 -1
- package/build/dts/testing.d.ts.map +1 -1
- package/build/esm/core/structure.js +1 -1
- package/build/esm/core/structure.js.map +1 -1
- package/build/esm/domain/architecture-config.js +3 -136
- package/build/esm/domain/architecture-config.js.map +1 -1
- package/build/esm/domain/snapshot.js +55 -15
- package/build/esm/domain/snapshot.js.map +1 -1
- package/build/esm/index.js +16 -10
- package/build/esm/index.js.map +1 -1
- package/build/esm/infrastructure/file-system-fake.js +10 -0
- package/build/esm/infrastructure/file-system-fake.js.map +1 -1
- package/build/esm/infrastructure/file-system-live.js +9 -1
- package/build/esm/infrastructure/file-system-live.js.map +1 -1
- package/build/esm/infrastructure/walk.js +50 -4
- package/build/esm/infrastructure/walk.js.map +1 -1
- package/build/esm/load/extension.js +2 -0
- package/build/esm/load/extension.js.map +1 -0
- package/build/esm/load/policy.js +43 -116
- package/build/esm/load/policy.js.map +1 -1
- package/build/esm/manifest/compile.js +3 -182
- package/build/esm/manifest/compile.js.map +1 -1
- package/build/esm/manifest/extension.js +2 -0
- package/build/esm/manifest/extension.js.map +1 -0
- package/build/esm/manifest/glob.js +3 -0
- package/build/esm/manifest/glob.js.map +1 -1
- package/build/esm/manifest/json-schema.js +45 -11
- package/build/esm/manifest/json-schema.js.map +1 -1
- package/build/esm/manifest/manifest.js +56 -172
- package/build/esm/manifest/manifest.js.map +1 -1
- package/build/esm/testing.js +0 -1
- package/build/esm/testing.js.map +1 -1
- package/package.json +1 -1
- package/schema/architecture-node.schema.json +0 -887
- package/schema/architecture.schema.json +3264 -1591
- package/schema/conformance.schema.json +291 -47
- package/src/core/structure.ts +5 -3
- package/src/domain/architecture-config.ts +3 -180
- package/src/domain/snapshot.ts +125 -25
- package/src/index.ts +51 -78
- package/src/infrastructure/file-system-fake.ts +12 -0
- package/src/infrastructure/file-system-live.ts +8 -1
- package/src/infrastructure/walk.ts +58 -3
- package/src/load/extension.ts +66 -0
- package/src/load/policy.ts +60 -175
- package/src/manifest/compile.ts +2 -213
- package/src/manifest/extension.ts +41 -0
- package/src/manifest/glob.ts +5 -0
- package/src/manifest/json-schema.ts +53 -11
- package/src/manifest/manifest.ts +82 -214
- package/src/ports/file-system.ts +3 -0
- package/src/testing.ts +0 -1
- package/build/dts/core/campaigns.d.ts +0 -141
- package/build/dts/core/campaigns.d.ts.map +0 -1
- package/build/dts/core/ledger.d.ts +0 -61
- package/build/dts/core/ledger.d.ts.map +0 -1
- package/build/dts/domain/report.d.ts +0 -16
- package/build/dts/domain/report.d.ts.map +0 -1
- package/build/dts/infrastructure/campaign-functions.d.ts +0 -7
- package/build/dts/infrastructure/campaign-functions.d.ts.map +0 -1
- package/build/dts/infrastructure/report-source-fake.d.ts +0 -4
- package/build/dts/infrastructure/report-source-fake.d.ts.map +0 -1
- package/build/dts/infrastructure/report-source-live.d.ts +0 -3
- package/build/dts/infrastructure/report-source-live.d.ts.map +0 -1
- package/build/dts/ports/campaign-predicate.d.ts +0 -24
- package/build/dts/ports/campaign-predicate.d.ts.map +0 -1
- package/build/dts/ports/report-source.d.ts +0 -14
- package/build/dts/ports/report-source.d.ts.map +0 -1
- package/build/esm/core/campaigns.js +0 -778
- package/build/esm/core/campaigns.js.map +0 -1
- package/build/esm/core/ledger.js +0 -171
- package/build/esm/core/ledger.js.map +0 -1
- package/build/esm/domain/report.js +0 -168
- package/build/esm/domain/report.js.map +0 -1
- package/build/esm/infrastructure/campaign-functions.js +0 -67
- package/build/esm/infrastructure/campaign-functions.js.map +0 -1
- package/build/esm/infrastructure/report-source-fake.js +0 -6
- package/build/esm/infrastructure/report-source-fake.js.map +0 -1
- package/build/esm/infrastructure/report-source-live.js +0 -165
- package/build/esm/infrastructure/report-source-live.js.map +0 -1
- package/build/esm/ports/campaign-predicate.js +0 -2
- package/build/esm/ports/campaign-predicate.js.map +0 -1
- package/build/esm/ports/report-source.js +0 -7
- package/build/esm/ports/report-source.js.map +0 -1
- package/src/core/campaigns.ts +0 -1056
- package/src/core/ledger.ts +0 -242
- package/src/domain/report.ts +0 -203
- package/src/infrastructure/campaign-functions.ts +0 -98
- package/src/infrastructure/report-source-fake.ts +0 -10
- package/src/infrastructure/report-source-live.ts +0 -192
- package/src/ports/campaign-predicate.ts +0 -30
- package/src/ports/report-source.ts +0 -35
package/build/dts/index.d.ts
CHANGED
|
@@ -1,38 +1,35 @@
|
|
|
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, reportSpecsOf, type TermAnswer, } from "./core/campaigns.js";
|
|
3
2
|
export { type Coverage, type CoverageFamily, type CoverageFloors, coverageOf, coverageShortfalls, fractionsOf, type Reach, reachOf, type Residue, residueOf, type Vacancy, vacancyOf, } from "./core/coverage.js";
|
|
4
3
|
export { type BindingEdge, type CompiledExportRule, compileExportRule, compileExportRules, evaluateBindingEdge, evaluateSelectedBindings, exportRulesFailingTheirProbe, exportRulesSelecting, type ExportViolation, type SelectedExportRule, } from "./core/exports.js";
|
|
5
4
|
export { type CompiledGraph, compileGraphRules, cyclesIn, EMPTY_GRAPH_RULES, evaluateGraph, type Graph, graphRulesFailingTheirProbe, hasGraphRules, heightOf, } from "./core/graph.js";
|
|
6
5
|
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";
|
|
8
6
|
export { type CompiledMemberRule, compileMemberRules, evaluateMemberSite, memberRulesFailingTheirProbe, memberRulesSelecting, } from "./core/members.js";
|
|
7
|
+
export { compilePatterns, firstFromMatch, matchesAny, type Selectable, sourcesOf, targetAllowed, type Targeted, validateTargetPatterns, } from "./core/patterns.js";
|
|
9
8
|
export { type Concentration, type ObservedEdge, type Slack, slackOf, type SlackReport, } from "./core/slack.js";
|
|
10
|
-
export { type CompiledStructure, compileStructure, EMPTY_STRUCTURE, evaluateStructure, requiredSiblingsOf, structureRulesFailingTheirProbe, } from "./core/structure.js";
|
|
9
|
+
export { type CompiledStructure, compileStructure, EMPTY_STRUCTURE, evaluateStructure, requiredSiblingsOf, siblingsOf, structureRulesFailingTheirProbe, } from "./core/structure.js";
|
|
11
10
|
export { type CompiledSurfaceRule, compileSurfaceRules, evaluateSurface, surfaceRulesFailingTheirProbe, surfaceRulesSelecting, } from "./core/surface.js";
|
|
12
|
-
export { type Allowance,
|
|
11
|
+
export { type Allowance, BindingKind, DeclarationKind, type ExportFix, type ExportRule, type GraphConfig, type GraphCycleRule, type GraphOrphanRule, type GraphReachRule, type ImportProbe, ImportProbeTarget, type ImportRule, type MemberRule, MemberSubject, PatternList, type ResolveConfig, type ResolveScope, type StructureConfig, type SurfaceRule, } from "./domain/architecture-config.js";
|
|
13
12
|
export { ConfigInvalid, ImportUnresolved, PatternInvalid, ReportUnavailable, ScopeInvalid, } from "./domain/architecture-error.js";
|
|
14
13
|
export { type Binding, type ExportSite, type MemberSite, type SourceFacts, } from "./domain/facts.js";
|
|
15
14
|
export { type ManifestLocator, type ManifestPath, type ManifestPosition, renderManifestPath, } from "./domain/manifest-location.js";
|
|
16
|
-
export { type
|
|
17
|
-
export { CONFORMANCE_MEASURES, type ConformanceMeasure, 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
|
+
export { CONFORMANCE_MEASURES, type ConformanceMeasure, decodeSnapshot, type Snapshot, SNAPSHOT_SCHEMA_ID, SNAPSHOT_VERSION, type SnapshotCampaign, type SnapshotConcentration, snapshotJsonSchema, type SnapshotObjective, type SnapshotPhase, Snapshot as SnapshotSchema, type SnapshotSector, type SnapshotSlack, type SnapshotVacancy, type SnapshotViolation, } from "./domain/snapshot.js";
|
|
18
16
|
export { fingerprintOf, formatMessage, type Violation, type ViolationKind, } from "./domain/violation.js";
|
|
19
|
-
export { loadCampaignFunctions, type LoadedCampaignFunctions, } from "./infrastructure/campaign-functions.js";
|
|
20
17
|
export { makeFileSystemLive } from "./infrastructure/file-system-live.js";
|
|
21
18
|
export { findManifestFile, formatManifestYaml, MANIFEST_FILENAMES, type ManifestFile, readManifestFile, } from "./infrastructure/manifest-file.js";
|
|
22
19
|
export { expandIncludes, type IncludedManifest, type IncludeReader, type SourceDocument, } from "./infrastructure/manifest-include.js";
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
20
|
+
export { listPackageRoots, listSourceFiles, listWorkspaceProjects, type PackagedLanguage, type PackageRoot, type WalkedLanguage, type WorkspaceProject, } from "./infrastructure/walk.js";
|
|
21
|
+
export { type ExtensionContext, type ExtensionRoute, type LoadedExtension, type PolicyExtension, } from "./load/extension.js";
|
|
25
22
|
export { type LoadedPolicy, loadPolicy, type LoadPolicyInput } from "./load/policy.js";
|
|
26
|
-
export { type LoweredRules, lowerManifest, type LowerOptions, type ProbeLanguage, } from "./manifest/compile.js";
|
|
23
|
+
export { CONVENTIONS, expandAliases, type LoweredRules, lowerManifest, type LowerOptions, type ProbeLanguage, } from "./manifest/compile.js";
|
|
27
24
|
export { type ExpandedManifest, type ExpandIssue, expandManifest, type Origin, originOf, type Substitution, } from "./manifest/expand.js";
|
|
25
|
+
export { type ManifestExtension } from "./manifest/extension.js";
|
|
26
|
+
export { anchored, type CaptureIndex, type GlobCompilation, globToRegExp, globToRegexSource, prefixed, } from "./manifest/glob.js";
|
|
28
27
|
export { type Candidate, candidatesOf, type Generalization, type InferInput, inferManifest, type InferOptions, type InferPackage, type Inferred, type InferredTarget, singularOf, } from "./manifest/infer.js";
|
|
29
|
-
export { MANIFEST_NODE_SCHEMA_ID, MANIFEST_SCHEMA_ID, manifestJsonSchema, manifestNodeJsonSchema, } from "./manifest/json-schema.js";
|
|
30
|
-
export { type
|
|
31
|
-
export { type CampaignPredicate, type CampaignPredicateInput, type CampaignSubject, type Range, } from "./ports/campaign-predicate.js";
|
|
28
|
+
export { MANIFEST_NODE_SCHEMA_ID, MANIFEST_SCHEMA_ID, manifestJsonSchema, type ManifestJsonSchemaOptions, manifestNodeJsonSchema, } from "./manifest/json-schema.js";
|
|
29
|
+
export { type DecodedManifest, decodeManifest, type DecodeManifestOptions, decodeManifestTree, globsOf, type Manifest, type ManifestNode, Manifest as ManifestSchema, SurfaceConvention, } from "./manifest/manifest.js";
|
|
32
30
|
export { type FactExtractor } from "./ports/fact-extractor.js";
|
|
33
31
|
export { type FileSystem } from "./ports/file-system.js";
|
|
34
32
|
export { type Language } from "./ports/language.js";
|
|
35
33
|
export { type DependencyKind, type ModuleResolver, type ResolvedTarget, } from "./ports/module-resolver.js";
|
|
36
|
-
export { NO_REPORTS, type ReportSource, reportSourcesOf, type ReportSpec, } from "./ports/report-source.js";
|
|
37
34
|
export { type Position, type SyntaxMatch, type SyntaxMatcher, type SyntaxTree, } from "./ports/syntax-matcher.js";
|
|
38
35
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,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,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EACvB,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,eAAe,EACpB,cAAc,EACd,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,OAAO,EACP,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,QAAQ,IAAI,cAAc,EAC1B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-fake.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/file-system-fake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D,eAAO,MAAM,kBAAkB,YACpB,QAAQ,CAAC,MAAM,CAAC,aACf,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KACzC,
|
|
1
|
+
{"version":3,"file":"file-system-fake.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/file-system-fake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D,eAAO,MAAM,kBAAkB,YACpB,QAAQ,CAAC,MAAM,CAAC,aACf,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KACzC,UAkBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-live.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/file-system-live.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAK1D,eAAO,MAAM,kBAAkB,aAAc,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"file-system-live.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/file-system-live.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAK1D,eAAO,MAAM,kBAAkB,aAAc,MAAM,KAAG,UAyBrD,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { Language } from "../ports/language.js";
|
|
2
2
|
export type WalkedLanguage = Pick<Language, "extensions" | "ignoredFiles">;
|
|
3
|
-
export declare const listSourceFiles: (repoRoot: string, roots: ReadonlyArray<string>, languages: ReadonlyArray<WalkedLanguage>) => ReadonlyArray<string>;
|
|
3
|
+
export declare const listSourceFiles: (repoRoot: string, roots: ReadonlyArray<string>, languages: ReadonlyArray<WalkedLanguage>, widened?: ReadonlyArray<string>) => ReadonlyArray<string>;
|
|
4
4
|
export type PackagedLanguage = Pick<Language, "packageMarkers" | "sourceRoots">;
|
|
5
5
|
export type PackageRoot = {
|
|
6
6
|
readonly root: string;
|
|
7
7
|
readonly source: string | null;
|
|
8
8
|
};
|
|
9
9
|
export declare const listPackageRoots: (repoRoot: string, roots: ReadonlyArray<string>, languages: ReadonlyArray<PackagedLanguage>) => ReadonlyArray<PackageRoot>;
|
|
10
|
+
export type WorkspaceProject = {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly root: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const listWorkspaceProjects: (repoRoot: string, roots: ReadonlyArray<string>) => ReadonlyArray<WorkspaceProject>;
|
|
10
15
|
//# sourceMappingURL=walk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walk.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/walk.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"walk.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/walk.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,cAAc,CAAC,CAAC;AAS3E,eAAO,MAAM,eAAe,aAChB,MAAM,SACT,aAAa,CAAC,MAAM,CAAC,aACjB,aAAa,CAAC,cAAc,CAAC,YAC/B,aAAa,CAAC,MAAM,CAAC,KAC7B,aAAa,CAAC,MAAM,CAsBtB,CAAC;AAIF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,gBAAgB,GAAG,aAAa,CAAC,CAAC;AAEhF,MAAM,MAAM,WAAW,GAAG;IAExB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAKF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SACT,aAAa,CAAC,MAAM,CAAC,aACjB,aAAa,CAAC,gBAAgB,CAAC,KACzC,aAAa,CAAC,WAAW,CAgD3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAOF,eAAO,MAAM,qBAAqB,aACtB,MAAM,SACT,aAAa,CAAC,MAAM,CAAC,KAC3B,aAAa,CAAC,gBAAgB,CAoChC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as Result from "effect/Result";
|
|
2
|
+
import type { ResolveScope } from "../domain/architecture-config.js";
|
|
3
|
+
import type { ConfigInvalid, PatternInvalid } from "../domain/architecture-error.js";
|
|
4
|
+
import type { ManifestExtension } from "../manifest/extension.js";
|
|
5
|
+
import type { Manifest } from "../manifest/manifest.js";
|
|
6
|
+
import type { FactExtractor } from "../ports/fact-extractor.js";
|
|
7
|
+
import type { FileSystem } from "../ports/file-system.js";
|
|
8
|
+
import type { Language } from "../ports/language.js";
|
|
9
|
+
import type { SyntaxMatcher } from "../ports/syntax-matcher.js";
|
|
10
|
+
export type ExtensionRoute = {
|
|
11
|
+
readonly language: Language;
|
|
12
|
+
readonly scope: ResolveScope;
|
|
13
|
+
};
|
|
14
|
+
export type ExtensionContext<Spec = unknown> = {
|
|
15
|
+
readonly spec: Spec;
|
|
16
|
+
readonly configPath: string;
|
|
17
|
+
readonly repoRoot: string;
|
|
18
|
+
readonly config: Manifest;
|
|
19
|
+
readonly languages: ReadonlyArray<Language>;
|
|
20
|
+
readonly fileSystem: FileSystem;
|
|
21
|
+
readonly extractor: FactExtractor;
|
|
22
|
+
readonly syntax: SyntaxMatcher;
|
|
23
|
+
readonly routeFor: (file: string) => ExtensionRoute | undefined;
|
|
24
|
+
readonly now: number;
|
|
25
|
+
};
|
|
26
|
+
export type LoadedExtension<Value = unknown> = {
|
|
27
|
+
readonly value: Value;
|
|
28
|
+
readonly vacuous?: ReadonlyArray<string> | undefined;
|
|
29
|
+
};
|
|
30
|
+
export type PolicyExtension<Spec = unknown, Value = unknown> = ManifestExtension<Spec> & {
|
|
31
|
+
load(context: ExtensionContext<Spec>): Result.Result<LoadedExtension<Value>, ConfigInvalid | PatternInvalid>;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","s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Q,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,KAAK,GAAG,OAAO,IAAI;IAE7C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IAItB,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG;IAGvF,IAAI,CACF,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAC9B,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC,CAAC;CAC1E,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
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";
|
|
4
3
|
import { type CompiledExportRule } from "../core/exports.js";
|
|
5
4
|
import { type CompiledGraph } from "../core/graph.js";
|
|
6
5
|
import { type CompiledImportRule } from "../core/imports.js";
|
|
7
|
-
import { type Ledger } from "../core/ledger.js";
|
|
8
6
|
import { type CompiledMemberRule } from "../core/members.js";
|
|
9
7
|
import { type CompiledStructure } from "../core/structure.js";
|
|
10
8
|
import { type CompiledSurfaceRule } from "../core/surface.js";
|
|
@@ -16,8 +14,8 @@ import type { FactExtractor } from "../ports/fact-extractor.js";
|
|
|
16
14
|
import type { FileSystem } from "../ports/file-system.js";
|
|
17
15
|
import type { Language } from "../ports/language.js";
|
|
18
16
|
import type { ModuleResolver } from "../ports/module-resolver.js";
|
|
19
|
-
import { type ReportSource } from "../ports/report-source.js";
|
|
20
17
|
import type { SyntaxMatcher } from "../ports/syntax-matcher.js";
|
|
18
|
+
import type { ExtensionRoute, PolicyExtension } from "./extension.js";
|
|
21
19
|
export type LoadedPolicy = {
|
|
22
20
|
readonly repoRoot: string;
|
|
23
21
|
readonly config: Manifest;
|
|
@@ -28,11 +26,7 @@ export type LoadedPolicy = {
|
|
|
28
26
|
readonly graph: CompiledGraph;
|
|
29
27
|
readonly adoption: LoweredRules["adoption"];
|
|
30
28
|
readonly structure: CompiledStructure;
|
|
31
|
-
readonly
|
|
32
|
-
readonly ledgers: ReadonlyMap<string, Ledger>;
|
|
33
|
-
readonly ledgerDir: string;
|
|
34
|
-
readonly functions: ReadonlyMap<string, CampaignPredicate>;
|
|
35
|
-
readonly reports: ReportSource;
|
|
29
|
+
readonly extensions: ReadonlyMap<string, unknown>;
|
|
36
30
|
readonly now: number;
|
|
37
31
|
readonly fileSystem: FileSystem;
|
|
38
32
|
readonly languages: ReadonlyArray<Language>;
|
|
@@ -40,6 +34,7 @@ export type LoadedPolicy = {
|
|
|
40
34
|
readonly resolver: ModuleResolver;
|
|
41
35
|
readonly extractor: FactExtractor;
|
|
42
36
|
readonly syntax: SyntaxMatcher;
|
|
37
|
+
readonly routeFor: (file: string) => ExtensionRoute | undefined;
|
|
43
38
|
readonly ignoreUnresolved: ReadonlyArray<RegExp>;
|
|
44
39
|
readonly notices: ReadonlyArray<string>;
|
|
45
40
|
};
|
|
@@ -50,8 +45,7 @@ export type LoadPolicyInput = {
|
|
|
50
45
|
readonly locate?: ManifestLocator | undefined;
|
|
51
46
|
readonly languages: ReadonlyArray<Language>;
|
|
52
47
|
readonly fileSystem: FileSystem;
|
|
53
|
-
readonly
|
|
54
|
-
readonly reports?: ReportSource | undefined;
|
|
48
|
+
readonly extensions?: ReadonlyArray<PolicyExtension> | undefined;
|
|
55
49
|
readonly now?: number | undefined;
|
|
56
50
|
};
|
|
57
51
|
export declare const loadPolicy: (input: LoadPolicyInput) => Result.Result<LoadedPolicy, ConfigInvalid | PatternInvalid>;
|
|
@@ -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,
|
|
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,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,aAAa,EAEb,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AA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F,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;IAIhC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAEjE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AA8GF,eAAO,MAAM,UAAU,UACd,eAAe,KACrB,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,GAAG,cAAc,CAuL5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
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";
|
|
2
2
|
import { type Substitution } from "./expand.js";
|
|
3
3
|
import { type Manifest } from "./manifest.js";
|
|
4
4
|
export type LoweredRules = {
|
|
@@ -7,7 +7,6 @@ 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>;
|
|
11
10
|
readonly adoption: {
|
|
12
11
|
readonly unrestricted: ReadonlyArray<string>;
|
|
13
12
|
readonly partial: ReadonlyArray<string>;
|
|
@@ -20,10 +19,16 @@ export type LoweredRules = {
|
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
export declare const ANY_FILE = "^.*$";
|
|
22
|
+
export declare const expandAliases: (glob: string, aliases: Readonly<Record<string, string>>) => string;
|
|
23
23
|
export type ProbeLanguage = {
|
|
24
24
|
readonly id: string;
|
|
25
25
|
readonly extensions: ReadonlyArray<string>;
|
|
26
26
|
};
|
|
27
|
+
export declare const CONVENTIONS: Readonly<Record<string, {
|
|
28
|
+
readonly source: string;
|
|
29
|
+
readonly violating: string;
|
|
30
|
+
readonly shape: string;
|
|
31
|
+
}>>;
|
|
27
32
|
export type LowerOptions = {
|
|
28
33
|
readonly substitutions?: ReadonlyArray<Substitution>;
|
|
29
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/manifest/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,
|
|
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,EAGL,KAAK,QAAQ,EAGd,MAAM,eAAe,CAAC;AAKvB,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAG5B,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
|
|
1
|
+
import type * as Result from "effect/Result";
|
|
2
|
+
import type { ManifestPath } from "../domain/manifest-location.js";
|
|
3
|
+
export type ManifestExtension<Spec = unknown> = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly manifestKeys: ReadonlyArray<string>;
|
|
6
|
+
decode(slice: Readonly<Record<string, unknown>>, describe: (path: ManifestPath, detail: string) => string): Result.Result<Spec, ReadonlyArray<string>>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../src/manifest/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAgBnE,MAAM,MAAM,iBAAiB,CAAC,IAAI,GAAG,OAAO,IAAI;IAE9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAc7C,MAAM,CACJ,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,GACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;CAC/C,CAAC"}
|
|
@@ -11,4 +11,5 @@ export declare const globToRegexSource: (glob: string, captures: CaptureIndex, o
|
|
|
11
11
|
}) => GlobCompilation;
|
|
12
12
|
export declare const anchored: (source: string) => string;
|
|
13
13
|
export declare const prefixed: (source: string) => string;
|
|
14
|
+
export declare const globToRegExp: (glob: string) => RegExp;
|
|
14
15
|
//# sourceMappingURL=glob.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AAO,CAAC;CAC9B,KACA,eAwDF,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,MAAM,KAAG,MAAuB,CAAC;AAElE,eAAO,MAAM,QAAQ,WAAY,MAAM,KAAG,MAAsB,CAAC;AAIjE,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,MACkD,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
1
2
|
export declare const MANIFEST_SCHEMA_ID = "https://dataquail.github.io/goodbones/schema/architecture.schema.json";
|
|
2
3
|
export declare const MANIFEST_NODE_SCHEMA_ID = "https://dataquail.github.io/goodbones/schema/architecture-node.schema.json";
|
|
3
4
|
type JsonValue = string | number | boolean | null | JsonObject | ReadonlyArray<JsonValue>;
|
|
4
5
|
type JsonObject = {
|
|
5
6
|
readonly [key: string]: JsonValue;
|
|
6
7
|
};
|
|
7
|
-
export
|
|
8
|
-
|
|
8
|
+
export type ManifestJsonSchemaOptions = {
|
|
9
|
+
readonly extensions?: ReadonlyArray<Schema.Struct.Fields> | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const manifestJsonSchema: (options?: ManifestJsonSchemaOptions) => JsonObject;
|
|
12
|
+
export declare const manifestNodeJsonSchema: (options?: ManifestJsonSchemaOptions) => JsonObject;
|
|
9
13
|
export {};
|
|
10
14
|
//# sourceMappingURL=json-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../src/manifest/json-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../src/manifest/json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAcxC,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;AAuGxD,MAAM,MAAM,yBAAyB,GAAG;IAMtC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACvE,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAa,yBAAyB,KAAQ,UAsC5E,CAAC;AAMF,eAAO,MAAM,sBAAsB,aAAa,yBAAyB,KAAQ,UA8BhF,CAAC"}
|