@skastr0/pulsar-core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-facts.d.ts +212 -0
- package/dist/ai-facts.d.ts.map +1 -0
- package/dist/ai-facts.js +109 -0
- package/dist/ai-facts.js.map +1 -0
- package/dist/architectural-tier.d.ts +34 -0
- package/dist/architectural-tier.d.ts.map +1 -0
- package/dist/architectural-tier.js +77 -0
- package/dist/architectural-tier.js.map +1 -0
- package/dist/baseline.d.ts +2 -2
- package/dist/calibration-fingerprint.d.ts.map +1 -1
- package/dist/calibration-fingerprint.js +1 -0
- package/dist/calibration-fingerprint.js.map +1 -1
- package/dist/calibration-model.d.ts +4 -4
- package/dist/calibration-model.d.ts.map +1 -1
- package/dist/calibration-model.js +2 -0
- package/dist/calibration-model.js.map +1 -1
- package/dist/calibration-slot-values.d.ts +51 -1
- package/dist/calibration-slot-values.d.ts.map +1 -1
- package/dist/calibration.d.ts +1 -0
- package/dist/calibration.d.ts.map +1 -1
- package/dist/calibration.js +1 -0
- package/dist/calibration.js.map +1 -1
- package/dist/composite.d.ts +68 -0
- package/dist/composite.d.ts.map +1 -0
- package/dist/composite.js +94 -0
- package/dist/composite.js.map +1 -0
- package/dist/contract-freshness.d.ts +74 -0
- package/dist/contract-freshness.d.ts.map +1 -0
- package/dist/contract-freshness.js +290 -0
- package/dist/contract-freshness.js.map +1 -0
- package/dist/coverage-facts.d.ts +43 -0
- package/dist/coverage-facts.d.ts.map +1 -0
- package/dist/coverage-facts.js +82 -0
- package/dist/coverage-facts.js.map +1 -0
- package/dist/coverage-istanbul.d.ts +3 -0
- package/dist/coverage-istanbul.d.ts.map +1 -0
- package/dist/coverage-istanbul.js +20 -0
- package/dist/coverage-istanbul.js.map +1 -0
- package/dist/coverage-lcov.d.ts +7 -0
- package/dist/coverage-lcov.d.ts.map +1 -0
- package/dist/coverage-lcov.js +91 -0
- package/dist/coverage-lcov.js.map +1 -0
- package/dist/domain-construction.d.ts +139 -0
- package/dist/domain-construction.d.ts.map +1 -0
- package/dist/domain-construction.js +314 -0
- package/dist/domain-construction.js.map +1 -0
- package/dist/glossary.d.ts +5 -5
- package/dist/observer-json.d.ts +1 -0
- package/dist/observer-json.d.ts.map +1 -1
- package/dist/observer-json.js +1 -0
- package/dist/observer-json.js.map +1 -1
- package/dist/presets.d.ts +4 -0
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +27 -1
- package/dist/presets.js.map +1 -1
- package/dist/reference-data-loader.d.ts.map +1 -1
- package/dist/reference-data-loader.js +51 -0
- package/dist/reference-data-loader.js.map +1 -1
- package/dist/reference-data.d.ts +8 -0
- package/dist/reference-data.d.ts.map +1 -1
- package/dist/reference-data.js +4 -0
- package/dist/reference-data.js.map +1 -1
- package/dist/registry.js +1 -3
- package/dist/registry.js.map +1 -1
- package/dist/scoring-engine-contract.d.ts.map +1 -1
- package/dist/scoring-engine-contract.js +29 -7
- package/dist/scoring-engine-contract.js.map +1 -1
- package/dist/scoring-engine-git-paths.d.ts.map +1 -1
- package/dist/scoring-engine-git-paths.js +6 -1
- package/dist/scoring-engine-git-paths.js.map +1 -1
- package/dist/scoring-engine-observer-cache.d.ts.map +1 -1
- package/dist/scoring-engine-observer-cache.js +37 -0
- package/dist/scoring-engine-observer-cache.js.map +1 -1
- package/dist/scoring-engine-runtime.d.ts.map +1 -1
- package/dist/scoring-engine-runtime.js +2 -6
- package/dist/scoring-engine-runtime.js.map +1 -1
- package/dist/scoring-engine-score-execution.d.ts.map +1 -1
- package/dist/scoring-engine-score-execution.js +23 -3
- package/dist/scoring-engine-score-execution.js.map +1 -1
- package/dist/shared-churn-02.d.ts +33 -0
- package/dist/shared-churn-02.d.ts.map +1 -0
- package/dist/shared-churn-02.js +110 -0
- package/dist/shared-churn-02.js.map +1 -0
- package/dist/shared-cochange-01.d.ts +38 -0
- package/dist/shared-cochange-01.d.ts.map +1 -0
- package/dist/shared-cochange-01.js +148 -0
- package/dist/shared-cochange-01.js.map +1 -0
- package/dist/shared-history-commits.d.ts +8 -0
- package/dist/shared-history-commits.d.ts.map +1 -0
- package/dist/shared-history-commits.js +52 -0
- package/dist/shared-history-commits.js.map +1 -0
- package/dist/shared-signals.d.ts +2 -0
- package/dist/shared-signals.d.ts.map +1 -1
- package/dist/shared-signals.js +2 -0
- package/dist/shared-signals.js.map +1 -1
- package/dist/signal-api.d.ts +4 -1
- package/dist/signal-api.d.ts.map +1 -1
- package/dist/signal-api.js +2 -0
- package/dist/signal-api.js.map +1 -1
- package/dist/signal.d.ts +7 -0
- package/dist/signal.d.ts.map +1 -1
- package/dist/time-series-model.d.ts +1 -0
- package/dist/time-series-model.d.ts.map +1 -1
- package/dist/vector-schema.d.ts +36 -16
- package/dist/vector-schema.d.ts.map +1 -1
- package/dist/vector-schema.js +8 -0
- package/dist/vector-schema.js.map +1 -1
- package/package.json +5 -1
- package/presets/ai-slop-defense.json +6 -1
- package/presets/domain-purist.json +6 -1
- package/presets/refactor-friendly.json +6 -1
- package/presets/security-paranoid.json +6 -1
- package/presets/strict-type-safety.json +6 -1
- package/presets/velocity-first.json +6 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const DOMAIN_CONSTRUCTION_REFERENCE_DATA_KEY: "domain-construction";
|
|
3
|
+
export declare const CANONICAL_DOMAIN_CONSTRUCTION_RELATIVE_PATH: ".pulsar/domain-construction.json";
|
|
4
|
+
declare const DomainConstructionControl: Schema.Struct<{
|
|
5
|
+
intent: Schema.Literal<["controlled", "intentionally_open"]>;
|
|
6
|
+
reason: Schema.optional<typeof Schema.String>;
|
|
7
|
+
smart_constructors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
8
|
+
path: typeof Schema.String;
|
|
9
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
10
|
+
note: Schema.optional<typeof Schema.String>;
|
|
11
|
+
}>>>;
|
|
12
|
+
parsers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
13
|
+
path: typeof Schema.String;
|
|
14
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
15
|
+
note: Schema.optional<typeof Schema.String>;
|
|
16
|
+
}>>>;
|
|
17
|
+
controlled_exports: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
18
|
+
path: typeof Schema.String;
|
|
19
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
20
|
+
note: Schema.optional<typeof Schema.String>;
|
|
21
|
+
}>>>;
|
|
22
|
+
allow_public_constructor: Schema.optional<typeof Schema.Boolean>;
|
|
23
|
+
}>;
|
|
24
|
+
type DomainConstructionControl = typeof DomainConstructionControl.Type;
|
|
25
|
+
declare const DomainConstructKind: Schema.Literal<["brand", "newtype", "value-object", "opaque-type", "wrapper", "domain-primitive"]>;
|
|
26
|
+
type DomainConstructKind = typeof DomainConstructKind.Type;
|
|
27
|
+
export declare const DomainConstructionManifest: Schema.Struct<{
|
|
28
|
+
schema_version: Schema.Literal<[1]>;
|
|
29
|
+
constructs: Schema.Array$<Schema.Struct<{
|
|
30
|
+
id: typeof Schema.String;
|
|
31
|
+
symbol: typeof Schema.String;
|
|
32
|
+
kind: Schema.Literal<["brand", "newtype", "value-object", "opaque-type", "wrapper", "domain-primitive"]>;
|
|
33
|
+
declaration_path: typeof Schema.String;
|
|
34
|
+
source_hashes: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
35
|
+
control: Schema.Struct<{
|
|
36
|
+
intent: Schema.Literal<["controlled", "intentionally_open"]>;
|
|
37
|
+
reason: Schema.optional<typeof Schema.String>;
|
|
38
|
+
smart_constructors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
39
|
+
path: typeof Schema.String;
|
|
40
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
41
|
+
note: Schema.optional<typeof Schema.String>;
|
|
42
|
+
}>>>;
|
|
43
|
+
parsers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
44
|
+
path: typeof Schema.String;
|
|
45
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
46
|
+
note: Schema.optional<typeof Schema.String>;
|
|
47
|
+
}>>>;
|
|
48
|
+
controlled_exports: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
49
|
+
path: typeof Schema.String;
|
|
50
|
+
symbol: Schema.optional<typeof Schema.String>;
|
|
51
|
+
note: Schema.optional<typeof Schema.String>;
|
|
52
|
+
}>>>;
|
|
53
|
+
allow_public_constructor: Schema.optional<typeof Schema.Boolean>;
|
|
54
|
+
}>;
|
|
55
|
+
}>>;
|
|
56
|
+
}>;
|
|
57
|
+
export type DomainConstructionManifest = typeof DomainConstructionManifest.Type;
|
|
58
|
+
export type DomainConstructionFactState = "present" | "zero" | "not_configured" | "unknown" | "not_applicable";
|
|
59
|
+
export type DomainConstructionFindingKind = "uncontrolled-constructor-export" | "missing-construction-evidence" | "stale-source" | "explicitly-open-construct";
|
|
60
|
+
export interface DomainConstructionFinding {
|
|
61
|
+
readonly findingId: string;
|
|
62
|
+
readonly constructId: string;
|
|
63
|
+
readonly symbol: string;
|
|
64
|
+
readonly kind: DomainConstructionFindingKind;
|
|
65
|
+
readonly file: string;
|
|
66
|
+
readonly severity: "info" | "warn";
|
|
67
|
+
readonly weight: number;
|
|
68
|
+
readonly evidence: ReadonlyArray<string>;
|
|
69
|
+
}
|
|
70
|
+
export interface DomainConstructionEvidenceFact {
|
|
71
|
+
readonly path: string;
|
|
72
|
+
readonly symbol?: string;
|
|
73
|
+
readonly present: boolean;
|
|
74
|
+
readonly hash?: string;
|
|
75
|
+
readonly matchedSymbol: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface DomainConstructionConstructFact {
|
|
78
|
+
readonly constructId: string;
|
|
79
|
+
readonly symbol: string;
|
|
80
|
+
readonly kind: DomainConstructKind;
|
|
81
|
+
readonly declarationPath: string;
|
|
82
|
+
readonly controlIntent: DomainConstructionControl["intent"];
|
|
83
|
+
readonly reason?: string;
|
|
84
|
+
readonly sourceHashes: Readonly<Record<string, string>>;
|
|
85
|
+
readonly expectedSourceHashes: Readonly<Record<string, string>>;
|
|
86
|
+
readonly exportedDeclarationDetected: boolean;
|
|
87
|
+
readonly publicConstructorDetected: boolean;
|
|
88
|
+
readonly privateConstructorDetected: boolean;
|
|
89
|
+
readonly allowPublicConstructor: boolean;
|
|
90
|
+
readonly smartConstructors: ReadonlyArray<DomainConstructionEvidenceFact>;
|
|
91
|
+
readonly parsers: ReadonlyArray<DomainConstructionEvidenceFact>;
|
|
92
|
+
readonly controlledExports: ReadonlyArray<DomainConstructionEvidenceFact>;
|
|
93
|
+
}
|
|
94
|
+
export interface DomainConstructionFacts {
|
|
95
|
+
readonly state: DomainConstructionFactState;
|
|
96
|
+
readonly sourcePath?: string;
|
|
97
|
+
readonly checkedPaths: ReadonlyArray<string>;
|
|
98
|
+
readonly constructs: ReadonlyArray<DomainConstructionConstructFact>;
|
|
99
|
+
readonly findings: ReadonlyArray<DomainConstructionFinding>;
|
|
100
|
+
readonly sourceFingerprint: string;
|
|
101
|
+
readonly message?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare const decodeDomainConstructionManifestSync: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
|
104
|
+
readonly schema_version: 1;
|
|
105
|
+
readonly constructs: readonly {
|
|
106
|
+
readonly symbol: string;
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly kind: "brand" | "newtype" | "value-object" | "opaque-type" | "wrapper" | "domain-primitive";
|
|
109
|
+
readonly source_hashes?: {
|
|
110
|
+
readonly [x: string]: string;
|
|
111
|
+
} | undefined;
|
|
112
|
+
readonly declaration_path: string;
|
|
113
|
+
readonly control: {
|
|
114
|
+
readonly reason?: string | undefined;
|
|
115
|
+
readonly intent: "controlled" | "intentionally_open";
|
|
116
|
+
readonly smart_constructors?: readonly {
|
|
117
|
+
readonly symbol?: string | undefined;
|
|
118
|
+
readonly path: string;
|
|
119
|
+
readonly note?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
readonly parsers?: readonly {
|
|
122
|
+
readonly symbol?: string | undefined;
|
|
123
|
+
readonly path: string;
|
|
124
|
+
readonly note?: string | undefined;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
readonly controlled_exports?: readonly {
|
|
127
|
+
readonly symbol?: string | undefined;
|
|
128
|
+
readonly path: string;
|
|
129
|
+
readonly note?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
readonly allow_public_constructor?: boolean | undefined;
|
|
132
|
+
};
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
export declare const loadDomainConstructionFacts: (repoRoot: string) => Promise<DomainConstructionFacts>;
|
|
136
|
+
export declare const buildNotConfiguredDomainConstructionFacts: (checkedPaths: ReadonlyArray<string>) => DomainConstructionFacts;
|
|
137
|
+
export declare const buildUnknownDomainConstructionFacts: (checkedPaths: ReadonlyArray<string>, message: string, sourcePath?: string) => DomainConstructionFacts;
|
|
138
|
+
export {};
|
|
139
|
+
//# sourceMappingURL=domain-construction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-construction.d.ts","sourceRoot":"","sources":["../src/domain-construction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,eAAO,MAAM,sCAAsC,EAAG,qBAA8B,CAAA;AACpF,eAAO,MAAM,2CAA2C,EACtD,kCAA2C,CAAA;AAS7C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;EAO7B,CAAA;AACF,KAAK,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAA;AAEtE,QAAA,MAAM,mBAAmB,oGAOxB,CAAA;AACD,KAAK,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAY1D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,OAAO,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CAAmC,GAC9C,cAAc,aAAa,CAAC,MAAM,CAAC,EACnC,SAAS,MAAM,EACf,aAAa,MAAM,KAClB,uBAQD,CAAA"}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
5
|
+
import { Schema } from "effect";
|
|
6
|
+
export const DOMAIN_CONSTRUCTION_REFERENCE_DATA_KEY = "domain-construction";
|
|
7
|
+
export const CANONICAL_DOMAIN_CONSTRUCTION_RELATIVE_PATH = ".pulsar/domain-construction.json";
|
|
8
|
+
const DomainConstructionEvidence = Schema.Struct({
|
|
9
|
+
path: Schema.String,
|
|
10
|
+
symbol: Schema.optional(Schema.String),
|
|
11
|
+
note: Schema.optional(Schema.String),
|
|
12
|
+
});
|
|
13
|
+
const DomainConstructionControl = Schema.Struct({
|
|
14
|
+
intent: Schema.Literal("controlled", "intentionally_open"),
|
|
15
|
+
reason: Schema.optional(Schema.String),
|
|
16
|
+
smart_constructors: Schema.optional(Schema.Array(DomainConstructionEvidence)),
|
|
17
|
+
parsers: Schema.optional(Schema.Array(DomainConstructionEvidence)),
|
|
18
|
+
controlled_exports: Schema.optional(Schema.Array(DomainConstructionEvidence)),
|
|
19
|
+
allow_public_constructor: Schema.optional(Schema.Boolean),
|
|
20
|
+
});
|
|
21
|
+
const DomainConstructKind = Schema.Literal("brand", "newtype", "value-object", "opaque-type", "wrapper", "domain-primitive");
|
|
22
|
+
const DomainConstructionConstruct = Schema.Struct({
|
|
23
|
+
id: Schema.String,
|
|
24
|
+
symbol: Schema.String,
|
|
25
|
+
kind: DomainConstructKind,
|
|
26
|
+
declaration_path: Schema.String,
|
|
27
|
+
source_hashes: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.String })),
|
|
28
|
+
control: DomainConstructionControl,
|
|
29
|
+
});
|
|
30
|
+
export const DomainConstructionManifest = Schema.Struct({
|
|
31
|
+
schema_version: Schema.Literal(1),
|
|
32
|
+
constructs: Schema.Array(DomainConstructionConstruct),
|
|
33
|
+
});
|
|
34
|
+
const FINDING_WEIGHT = {
|
|
35
|
+
"uncontrolled-constructor-export": 5,
|
|
36
|
+
"missing-construction-evidence": 3,
|
|
37
|
+
"stale-source": 4,
|
|
38
|
+
"explicitly-open-construct": 0,
|
|
39
|
+
};
|
|
40
|
+
export const decodeDomainConstructionManifestSync = Schema.decodeUnknownSync(DomainConstructionManifest);
|
|
41
|
+
export const loadDomainConstructionFacts = async (repoRoot) => {
|
|
42
|
+
const checkedPaths = [CANONICAL_DOMAIN_CONSTRUCTION_RELATIVE_PATH];
|
|
43
|
+
const sourcePath = join(repoRoot, CANONICAL_DOMAIN_CONSTRUCTION_RELATIVE_PATH);
|
|
44
|
+
if (!existsSync(sourcePath))
|
|
45
|
+
return buildNotConfiguredDomainConstructionFacts(checkedPaths);
|
|
46
|
+
try {
|
|
47
|
+
const raw = await readFile(sourcePath, "utf8");
|
|
48
|
+
const parsed = JSON.parse(raw);
|
|
49
|
+
const manifest = decodeDomainConstructionManifestSync(parsed);
|
|
50
|
+
return await collectDomainConstructionFacts(repoRoot, sourcePath, checkedPaths, manifest);
|
|
51
|
+
}
|
|
52
|
+
catch (cause) {
|
|
53
|
+
return buildUnknownDomainConstructionFacts(checkedPaths, `Failed to load domain construction reference data: ${String(cause)}`, sourcePath);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export const buildNotConfiguredDomainConstructionFacts = (checkedPaths) => ({
|
|
57
|
+
state: "not_configured",
|
|
58
|
+
checkedPaths,
|
|
59
|
+
constructs: [],
|
|
60
|
+
findings: [],
|
|
61
|
+
sourceFingerprint: fingerprint({ checkedPaths, state: "not_configured" }),
|
|
62
|
+
message: "Domain construction reference data was not configured",
|
|
63
|
+
});
|
|
64
|
+
export const buildUnknownDomainConstructionFacts = (checkedPaths, message, sourcePath) => ({
|
|
65
|
+
state: "unknown",
|
|
66
|
+
...(sourcePath === undefined ? {} : { sourcePath }),
|
|
67
|
+
checkedPaths,
|
|
68
|
+
constructs: [],
|
|
69
|
+
findings: [],
|
|
70
|
+
sourceFingerprint: fingerprint({ checkedPaths, message, state: "unknown" }),
|
|
71
|
+
message,
|
|
72
|
+
});
|
|
73
|
+
const collectDomainConstructionFacts = async (repoRoot, sourcePath, checkedPaths, manifest) => {
|
|
74
|
+
const checkedPathSet = new Set(checkedPaths);
|
|
75
|
+
const constructs = [];
|
|
76
|
+
const findings = [];
|
|
77
|
+
for (const construct of manifest.constructs) {
|
|
78
|
+
const declarationPath = normalizePath(construct.declaration_path);
|
|
79
|
+
checkedPathSet.add(declarationPath);
|
|
80
|
+
const control = construct.control;
|
|
81
|
+
const smartConstructors = control.smart_constructors ?? [];
|
|
82
|
+
const parsers = control.parsers ?? [];
|
|
83
|
+
const controlledExports = control.controlled_exports ?? [];
|
|
84
|
+
for (const evidence of [...smartConstructors, ...parsers, ...controlledExports]) {
|
|
85
|
+
checkedPathSet.add(normalizePath(evidence.path));
|
|
86
|
+
}
|
|
87
|
+
const allEvidencePaths = [
|
|
88
|
+
declarationPath,
|
|
89
|
+
...smartConstructors.map((evidence) => evidence.path),
|
|
90
|
+
...parsers.map((evidence) => evidence.path),
|
|
91
|
+
...controlledExports.map((evidence) => evidence.path),
|
|
92
|
+
].map(normalizePath);
|
|
93
|
+
const sourceHashes = await currentSourceHashes(repoRoot, allEvidencePaths);
|
|
94
|
+
const expectedSourceHashes = normalizeHashRecord(construct.source_hashes ?? {});
|
|
95
|
+
const declarationContent = await readSource(repoRoot, declarationPath);
|
|
96
|
+
const declaredShape = declarationContent === undefined
|
|
97
|
+
? emptyDeclarationShape()
|
|
98
|
+
: analyzeDeclarationShape(declarationContent, construct.symbol);
|
|
99
|
+
const smartConstructorFacts = await collectEvidenceFacts(repoRoot, smartConstructors, sourceHashes);
|
|
100
|
+
const parserFacts = await collectEvidenceFacts(repoRoot, parsers, sourceHashes);
|
|
101
|
+
const controlledExportFacts = await collectEvidenceFacts(repoRoot, controlledExports, sourceHashes);
|
|
102
|
+
const allowPublicConstructor = control.allow_public_constructor === true;
|
|
103
|
+
constructs.push({
|
|
104
|
+
constructId: construct.id,
|
|
105
|
+
symbol: construct.symbol,
|
|
106
|
+
kind: construct.kind,
|
|
107
|
+
declarationPath,
|
|
108
|
+
controlIntent: control.intent,
|
|
109
|
+
...(control.reason === undefined ? {} : { reason: control.reason }),
|
|
110
|
+
sourceHashes,
|
|
111
|
+
expectedSourceHashes,
|
|
112
|
+
exportedDeclarationDetected: declaredShape.exportedDeclarationDetected,
|
|
113
|
+
publicConstructorDetected: declaredShape.publicConstructorDetected,
|
|
114
|
+
privateConstructorDetected: declaredShape.privateConstructorDetected,
|
|
115
|
+
allowPublicConstructor,
|
|
116
|
+
smartConstructors: smartConstructorFacts,
|
|
117
|
+
parsers: parserFacts,
|
|
118
|
+
controlledExports: controlledExportFacts,
|
|
119
|
+
});
|
|
120
|
+
for (const [path, expectedHash] of Object.entries(expectedSourceHashes)) {
|
|
121
|
+
const actualHash = sourceHashes[path];
|
|
122
|
+
if (actualHash === undefined) {
|
|
123
|
+
findings.push(makeFinding({
|
|
124
|
+
constructId: construct.id,
|
|
125
|
+
symbol: construct.symbol,
|
|
126
|
+
kind: "stale-source",
|
|
127
|
+
file: path,
|
|
128
|
+
evidence: ["declared domain construction source is missing"],
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
else if (actualHash !== expectedHash) {
|
|
132
|
+
findings.push(makeFinding({
|
|
133
|
+
constructId: construct.id,
|
|
134
|
+
symbol: construct.symbol,
|
|
135
|
+
kind: "stale-source",
|
|
136
|
+
file: path,
|
|
137
|
+
evidence: [
|
|
138
|
+
`expected source hash ${expectedHash}`,
|
|
139
|
+
`current source hash ${actualHash}`,
|
|
140
|
+
],
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (control.intent === "intentionally_open") {
|
|
145
|
+
findings.push(makeFinding({
|
|
146
|
+
constructId: construct.id,
|
|
147
|
+
symbol: construct.symbol,
|
|
148
|
+
kind: "explicitly-open-construct",
|
|
149
|
+
file: declarationPath,
|
|
150
|
+
evidence: [
|
|
151
|
+
control.reason ?? "construct is declared intentionally open by repo policy",
|
|
152
|
+
],
|
|
153
|
+
}));
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (declaredShape.publicConstructorDetected && !allowPublicConstructor) {
|
|
157
|
+
findings.push(makeFinding({
|
|
158
|
+
constructId: construct.id,
|
|
159
|
+
symbol: construct.symbol,
|
|
160
|
+
kind: "uncontrolled-constructor-export",
|
|
161
|
+
file: declarationPath,
|
|
162
|
+
evidence: [
|
|
163
|
+
`${construct.symbol} appears to expose a public constructor from its declaration file`,
|
|
164
|
+
],
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
if (smartConstructors.length === 0 && parsers.length === 0) {
|
|
168
|
+
findings.push(makeFinding({
|
|
169
|
+
constructId: construct.id,
|
|
170
|
+
symbol: construct.symbol,
|
|
171
|
+
kind: "missing-construction-evidence",
|
|
172
|
+
file: declarationPath,
|
|
173
|
+
evidence: [
|
|
174
|
+
"controlled construct declares no parser or smart-constructor evidence",
|
|
175
|
+
],
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
for (const evidence of [...smartConstructorFacts, ...parserFacts]) {
|
|
179
|
+
if (!evidence.present) {
|
|
180
|
+
findings.push(makeFinding({
|
|
181
|
+
constructId: construct.id,
|
|
182
|
+
symbol: construct.symbol,
|
|
183
|
+
kind: "missing-construction-evidence",
|
|
184
|
+
file: evidence.path,
|
|
185
|
+
evidence: [
|
|
186
|
+
"declared parser or smart-constructor evidence file is missing",
|
|
187
|
+
],
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
else if (!evidence.matchedSymbol) {
|
|
191
|
+
findings.push(makeFinding({
|
|
192
|
+
constructId: construct.id,
|
|
193
|
+
symbol: construct.symbol,
|
|
194
|
+
kind: "missing-construction-evidence",
|
|
195
|
+
file: evidence.path,
|
|
196
|
+
evidence: [
|
|
197
|
+
`declared parser or smart-constructor symbol ${evidence.symbol ?? "<unspecified>"} was not found`,
|
|
198
|
+
],
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
findings.sort(compareFindings);
|
|
204
|
+
const state = constructs.length === 0
|
|
205
|
+
? "not_applicable"
|
|
206
|
+
: findings.length > 0
|
|
207
|
+
? "present"
|
|
208
|
+
: "zero";
|
|
209
|
+
const sortedCheckedPaths = [...checkedPathSet].sort();
|
|
210
|
+
return {
|
|
211
|
+
state,
|
|
212
|
+
sourcePath,
|
|
213
|
+
checkedPaths: sortedCheckedPaths,
|
|
214
|
+
constructs,
|
|
215
|
+
findings,
|
|
216
|
+
sourceFingerprint: fingerprint({ constructs, findings, manifest, state }),
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
const collectEvidenceFacts = async (repoRoot, evidence, sourceHashes) => Promise.all(evidence.map(async (item) => {
|
|
220
|
+
const path = normalizePath(item.path);
|
|
221
|
+
const content = await readSource(repoRoot, path);
|
|
222
|
+
const matchedSymbol = item.symbol === undefined ||
|
|
223
|
+
(content !== undefined && symbolPattern(item.symbol).test(content));
|
|
224
|
+
return {
|
|
225
|
+
path,
|
|
226
|
+
...(item.symbol === undefined ? {} : { symbol: item.symbol }),
|
|
227
|
+
present: content !== undefined,
|
|
228
|
+
...(sourceHashes[path] === undefined ? {} : { hash: sourceHashes[path] }),
|
|
229
|
+
matchedSymbol,
|
|
230
|
+
};
|
|
231
|
+
}));
|
|
232
|
+
const currentSourceHashes = async (repoRoot, sourcePaths) => {
|
|
233
|
+
const result = {};
|
|
234
|
+
for (const sourcePath of unique(sourcePaths.map(normalizePath))) {
|
|
235
|
+
const absolutePath = safeResolve(repoRoot, sourcePath);
|
|
236
|
+
if (absolutePath === undefined || !existsSync(absolutePath))
|
|
237
|
+
continue;
|
|
238
|
+
result[sourcePath] = await fileHash(absolutePath);
|
|
239
|
+
}
|
|
240
|
+
return result;
|
|
241
|
+
};
|
|
242
|
+
const readSource = async (repoRoot, path) => {
|
|
243
|
+
const absolutePath = safeResolve(repoRoot, normalizePath(path));
|
|
244
|
+
if (absolutePath === undefined || !existsSync(absolutePath))
|
|
245
|
+
return undefined;
|
|
246
|
+
return readFile(absolutePath, "utf8");
|
|
247
|
+
};
|
|
248
|
+
const emptyDeclarationShape = () => ({
|
|
249
|
+
exportedDeclarationDetected: false,
|
|
250
|
+
publicConstructorDetected: false,
|
|
251
|
+
privateConstructorDetected: false,
|
|
252
|
+
});
|
|
253
|
+
const analyzeDeclarationShape = (content, symbol) => {
|
|
254
|
+
const escaped = escapeRegExp(symbol);
|
|
255
|
+
const exportedDeclarationDetected = new RegExp(`\\bexport\\s+(?:abstract\\s+)?(?:class|interface|type)\\s+${escaped}\\b`, "u").test(content);
|
|
256
|
+
const classDeclarationDetected = new RegExp(`\\bexport\\s+(?:abstract\\s+)?class\\s+${escaped}\\b`, "u").test(content);
|
|
257
|
+
const constructorDetected = /\bconstructor\s*\(/u.test(content);
|
|
258
|
+
const privateConstructorDetected = /\b(?:private|protected)\s+constructor\s*\(/u.test(content);
|
|
259
|
+
return {
|
|
260
|
+
exportedDeclarationDetected,
|
|
261
|
+
publicConstructorDetected: classDeclarationDetected && constructorDetected && !privateConstructorDetected,
|
|
262
|
+
privateConstructorDetected,
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
const makeFinding = (args) => ({
|
|
266
|
+
findingId: `${args.constructId}:${args.kind}:${args.file}`,
|
|
267
|
+
constructId: args.constructId,
|
|
268
|
+
symbol: args.symbol,
|
|
269
|
+
kind: args.kind,
|
|
270
|
+
file: args.file,
|
|
271
|
+
severity: args.kind === "explicitly-open-construct" ? "info" : "warn",
|
|
272
|
+
weight: FINDING_WEIGHT[args.kind],
|
|
273
|
+
evidence: args.evidence,
|
|
274
|
+
});
|
|
275
|
+
const normalizeHashRecord = (record) => Object.fromEntries(Object.entries(record).map(([path, hash]) => [normalizePath(path), hash.toLowerCase()]));
|
|
276
|
+
const safeResolve = (repoRoot, path) => {
|
|
277
|
+
const root = resolve(repoRoot);
|
|
278
|
+
const resolved = resolve(root, path);
|
|
279
|
+
const rel = relative(root, resolved);
|
|
280
|
+
return rel === "" || (!rel.startsWith("..") && !isAbsolute(rel))
|
|
281
|
+
? resolved
|
|
282
|
+
: undefined;
|
|
283
|
+
};
|
|
284
|
+
const fileHash = async (path) => sha256(await readFile(path));
|
|
285
|
+
const sha256 = (content) => createHash("sha256").update(content).digest("hex");
|
|
286
|
+
const fingerprint = (value) => sha256(stableStringify(value));
|
|
287
|
+
const stableStringify = (value) => JSON.stringify(sortJson(value));
|
|
288
|
+
const sortJson = (value) => {
|
|
289
|
+
if (Array.isArray(value))
|
|
290
|
+
return value.map(sortJson);
|
|
291
|
+
if (value !== null && typeof value === "object") {
|
|
292
|
+
return Object.fromEntries(Object.entries(value)
|
|
293
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
294
|
+
.map(([key, nested]) => [key, sortJson(nested)]));
|
|
295
|
+
}
|
|
296
|
+
return value;
|
|
297
|
+
};
|
|
298
|
+
const symbolPattern = (symbol) => new RegExp(`\\b${escapeRegExp(symbol)}\\b`, "u");
|
|
299
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
300
|
+
const normalizePath = (path) => path.replace(/\\/gu, "/");
|
|
301
|
+
const unique = (values) => [...new Set(values)];
|
|
302
|
+
const compareFindings = (left, right) => {
|
|
303
|
+
const bySeverity = severityRank(right.severity) - severityRank(left.severity);
|
|
304
|
+
if (bySeverity !== 0)
|
|
305
|
+
return bySeverity;
|
|
306
|
+
const byWeight = right.weight - left.weight;
|
|
307
|
+
if (byWeight !== 0)
|
|
308
|
+
return byWeight;
|
|
309
|
+
if (left.file !== right.file)
|
|
310
|
+
return left.file.localeCompare(right.file);
|
|
311
|
+
return left.kind.localeCompare(right.kind);
|
|
312
|
+
};
|
|
313
|
+
const severityRank = (severity) => severity === "warn" ? 1 : 0;
|
|
314
|
+
//# sourceMappingURL=domain-construction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-construction.js","sourceRoot":"","sources":["../src/domain-construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAA8B,CAAA;AACpF,MAAM,CAAC,MAAM,2CAA2C,GACtD,kCAA2C,CAAA;AAE7C,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAA;AAGF,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAClE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CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC7E,IAAI,UAAU,KAAK,CAAC;QAAE,OAAO,UAAU,CAAA;IACvC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAC3C,IAAI,QAAQ,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACxE,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,QAAyB,EAAU,EAAE,CACzD,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/glossary.d.ts
CHANGED
|
@@ -77,8 +77,8 @@ export declare const decodeGlossaryDraftSync: (u: unknown, overrideOptions?: imp
|
|
|
77
77
|
readonly include_parameter_names: boolean;
|
|
78
78
|
readonly candidate_terms: readonly {
|
|
79
79
|
readonly provenance: readonly {
|
|
80
|
-
readonly package: string;
|
|
81
80
|
readonly file: string;
|
|
81
|
+
readonly package: string;
|
|
82
82
|
readonly line?: number | undefined;
|
|
83
83
|
readonly identifier: string;
|
|
84
84
|
readonly identifier_kind: "function" | "parameter" | "class" | "interface" | "type" | "const" | "enum" | "exported-symbol";
|
|
@@ -102,14 +102,14 @@ export declare const decodeGlossary: (u: unknown, overrideOptions?: import("effe
|
|
|
102
102
|
readonly schema_version: 1;
|
|
103
103
|
readonly extracted_at_sha: string;
|
|
104
104
|
readonly terms: readonly {
|
|
105
|
-
readonly aliases: readonly string[];
|
|
106
105
|
readonly provenance: readonly {
|
|
107
|
-
readonly package: string;
|
|
108
106
|
readonly file: string;
|
|
107
|
+
readonly package: string;
|
|
109
108
|
readonly line?: number | undefined;
|
|
110
109
|
readonly identifier: string;
|
|
111
110
|
readonly identifier_kind: "function" | "parameter" | "class" | "interface" | "type" | "const" | "enum" | "exported-symbol";
|
|
112
111
|
}[];
|
|
112
|
+
readonly aliases: readonly string[];
|
|
113
113
|
readonly frequency: number;
|
|
114
114
|
readonly canonical: string;
|
|
115
115
|
}[];
|
|
@@ -120,14 +120,14 @@ export declare const decodeGlossarySync: (u: unknown, overrideOptions?: import("
|
|
|
120
120
|
readonly schema_version: 1;
|
|
121
121
|
readonly extracted_at_sha: string;
|
|
122
122
|
readonly terms: readonly {
|
|
123
|
-
readonly aliases: readonly string[];
|
|
124
123
|
readonly provenance: readonly {
|
|
125
|
-
readonly package: string;
|
|
126
124
|
readonly file: string;
|
|
125
|
+
readonly package: string;
|
|
127
126
|
readonly line?: number | undefined;
|
|
128
127
|
readonly identifier: string;
|
|
129
128
|
readonly identifier_kind: "function" | "parameter" | "class" | "interface" | "type" | "const" | "enum" | "exported-symbol";
|
|
130
129
|
}[];
|
|
130
|
+
readonly aliases: readonly string[];
|
|
131
131
|
readonly frequency: number;
|
|
132
132
|
readonly canonical: string;
|
|
133
133
|
}[];
|
package/dist/observer-json.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ export declare const ObserverOutput: Schema.Struct<{
|
|
|
277
277
|
baseConfidence: Schema.optional<typeof Schema.Number>;
|
|
278
278
|
computedAt: Schema.optional<typeof Schema.String>;
|
|
279
279
|
stale: Schema.optional<typeof Schema.Boolean>;
|
|
280
|
+
factSource: Schema.optional<Schema.Union<[Schema.Literal<["deterministic"]>, Schema.Literal<["ai_classified"]>]>>;
|
|
280
281
|
applicability: Schema.optional<Schema.Union<[Schema.Literal<["applicable"]>, Schema.Literal<["not_applicable"]>, Schema.Literal<["insufficient_evidence"]>, Schema.Literal<["failed"]>]>>;
|
|
281
282
|
}>>>;
|
|
282
283
|
runtime_profile: Schema.optional<Schema.Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer-json.d.ts","sourceRoot":"","sources":["../src/observer-json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"observer-json.d.ts","sourceRoot":"","sources":["../src/observer-json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AA2K3F,QAAA,MAAM,+BAA+B;;;;;;;;;EAmBnC,CAAA;AAEF,MAAM,MAAM,oCAAoC,GAC9C,OAAO,+BAA+B,CAAC,IAAI,CAAA;AAE7C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzB,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAE7D,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,qBAAqB,CAAA"}
|
package/dist/observer-json.js
CHANGED
|
@@ -96,6 +96,7 @@ const ObserverSignalMetadataSnapshot = Schema.Struct({
|
|
|
96
96
|
baseConfidence: Schema.optional(Schema.Number),
|
|
97
97
|
computedAt: Schema.optional(Schema.String),
|
|
98
98
|
stale: Schema.optional(Schema.Boolean),
|
|
99
|
+
factSource: Schema.optional(Schema.Union(Schema.Literal("deterministic"), Schema.Literal("ai_classified"))),
|
|
99
100
|
applicability: Schema.optional(Schema.Union(Schema.Literal("applicable"), Schema.Literal("not_applicable"), Schema.Literal("insufficient_evidence"), Schema.Literal("failed"))),
|
|
100
101
|
});
|
|
101
102
|
const ObserverRuntimeProfileSnapshot = Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer-json.js","sourceRoot":"","sources":["../src/observer-json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,yBAAyB,EAA8B,MAAM,qBAAqB,CAAA;AAE3F,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACpE,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,KAAK,CACpB,MAAM,CAAC,OAAO,CAAC,eAAe,CA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ANGED
|
@@ -3,9 +3,13 @@ import { type PulsarVector } from "./vector.js";
|
|
|
3
3
|
export interface PulsarVectorPresetSummary {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly description: string;
|
|
6
|
+
readonly presetProfileKind: string;
|
|
7
|
+
readonly activation: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const loadPulsarVectorPresets: () => Effect.Effect<ReadonlyArray<PulsarVector>, Error, never>;
|
|
8
10
|
export declare const loadPulsarVectorPresetById: (presetId: string) => Effect.Effect<PulsarVector, Error, never>;
|
|
9
11
|
export declare const summarizePulsarVectorPresets: (presets: ReadonlyArray<PulsarVector>) => ReadonlyArray<PulsarVectorPresetSummary>;
|
|
10
12
|
export declare const oneLineDescription: (vector: PulsarVector) => string;
|
|
13
|
+
export declare const formatPulsarVectorPresetProfileKind: (kind: string | undefined) => string;
|
|
14
|
+
export declare const formatPulsarVectorPresetProfileActivation: (activation: string | undefined) => string;
|
|
11
15
|
//# sourceMappingURL=presets.d.ts.map
|
package/dist/presets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAiBnE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAiBnE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,eAAO,MAAM,uBAAuB,QAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,CAe9F,CAAA;AAKJ,eAAO,MAAM,0BAA0B,GACrC,UAAU,MAAM,KACf,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,CAQvC,CAAA;AAEJ,eAAO,MAAM,4BAA4B,GACvC,SAAS,aAAa,CAAC,YAAY,CAAC,KACnC,aAAa,CAAC,yBAAyB,CAQiB,CAAA;AAE3D,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,KAAG,MAMzD,CAAA;AAED,eAAO,MAAM,mCAAmC,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,MAa9E,CAAA;AAED,eAAO,MAAM,yCAAyC,GACpD,YAAY,MAAM,GAAG,SAAS,KAC7B,MASF,CAAA"}
|