@bett3r-dev/blueprint-schema 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/build/cjs/apply-design.d.ts +22 -0
- package/build/cjs/apply-design.d.ts.map +1 -0
- package/build/cjs/apply-design.js +206 -0
- package/build/cjs/apply-design.js.map +1 -0
- package/build/cjs/apply-overrides.d.ts +11 -0
- package/build/cjs/apply-overrides.d.ts.map +1 -0
- package/build/cjs/apply-overrides.js +240 -0
- package/build/cjs/apply-overrides.js.map +1 -0
- package/build/cjs/convergence.d.ts +15 -0
- package/build/cjs/convergence.d.ts.map +1 -0
- package/build/cjs/convergence.js +28 -0
- package/build/cjs/convergence.js.map +1 -0
- package/build/cjs/design.d.ts +85 -0
- package/build/cjs/design.d.ts.map +1 -0
- package/build/cjs/design.js +51 -0
- package/build/cjs/design.js.map +1 -0
- package/build/cjs/diagnostics.d.ts +74 -0
- package/build/cjs/diagnostics.d.ts.map +1 -0
- package/build/cjs/diagnostics.js +16 -0
- package/build/cjs/diagnostics.js.map +1 -0
- package/build/cjs/edges.d.ts +17 -0
- package/build/cjs/edges.d.ts.map +1 -0
- package/build/cjs/edges.js +21 -0
- package/build/cjs/edges.js.map +1 -0
- package/build/cjs/entry-points.d.ts +17 -0
- package/build/cjs/entry-points.d.ts.map +1 -0
- package/build/cjs/entry-points.js +58 -0
- package/build/cjs/entry-points.js.map +1 -0
- package/build/cjs/find-orphan-nodes.d.ts +5 -0
- package/build/cjs/find-orphan-nodes.d.ts.map +1 -0
- package/build/cjs/find-orphan-nodes.js +14 -0
- package/build/cjs/find-orphan-nodes.js.map +1 -0
- package/build/cjs/flow-traversal.d.ts +24 -0
- package/build/cjs/flow-traversal.d.ts.map +1 -0
- package/build/cjs/flow-traversal.js +102 -0
- package/build/cjs/flow-traversal.js.map +1 -0
- package/build/cjs/graph.d.ts +19 -0
- package/build/cjs/graph.d.ts.map +1 -0
- package/build/cjs/graph.js +32 -0
- package/build/cjs/graph.js.map +1 -0
- package/build/cjs/handler-scope.d.ts +27 -0
- package/build/cjs/handler-scope.d.ts.map +1 -0
- package/build/cjs/handler-scope.js +54 -0
- package/build/cjs/handler-scope.js.map +1 -0
- package/build/cjs/index.d.ts +27 -0
- package/build/cjs/index.d.ts.map +1 -0
- package/build/cjs/index.js +43 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/map-links.d.ts +12 -0
- package/build/cjs/map-links.d.ts.map +1 -0
- package/build/cjs/map-links.js +59 -0
- package/build/cjs/map-links.js.map +1 -0
- package/build/cjs/map-structure.d.ts +110 -0
- package/build/cjs/map-structure.d.ts.map +1 -0
- package/build/cjs/map-structure.js +54 -0
- package/build/cjs/map-structure.js.map +1 -0
- package/build/cjs/map-vocabulary.d.ts +53 -0
- package/build/cjs/map-vocabulary.d.ts.map +1 -0
- package/build/cjs/map-vocabulary.js +156 -0
- package/build/cjs/map-vocabulary.js.map +1 -0
- package/build/cjs/nodes.d.ts +39 -0
- package/build/cjs/nodes.d.ts.map +1 -0
- package/build/cjs/nodes.js +31 -0
- package/build/cjs/nodes.js.map +1 -0
- package/build/cjs/op-chain.d.ts +18 -0
- package/build/cjs/op-chain.d.ts.map +1 -0
- package/build/cjs/op-chain.js +42 -0
- package/build/cjs/op-chain.js.map +1 -0
- package/build/cjs/ops.d.ts +158 -0
- package/build/cjs/ops.d.ts.map +1 -0
- package/build/cjs/ops.js +11 -0
- package/build/cjs/ops.js.map +1 -0
- package/build/cjs/organisation.d.ts +10 -0
- package/build/cjs/organisation.d.ts.map +1 -0
- package/build/cjs/organisation.js +21 -0
- package/build/cjs/organisation.js.map +1 -0
- package/build/cjs/overrides.d.ts +74 -0
- package/build/cjs/overrides.d.ts.map +1 -0
- package/build/cjs/overrides.js +20 -0
- package/build/cjs/overrides.js.map +1 -0
- package/build/cjs/reachability.d.ts +27 -0
- package/build/cjs/reachability.d.ts.map +1 -0
- package/build/cjs/reachability.js +218 -0
- package/build/cjs/reachability.js.map +1 -0
- package/build/cjs/reality-check.d.ts +42 -0
- package/build/cjs/reality-check.d.ts.map +1 -0
- package/build/cjs/reality-check.js +191 -0
- package/build/cjs/reality-check.js.map +1 -0
- package/build/cjs/replication.d.ts +7 -0
- package/build/cjs/replication.d.ts.map +1 -0
- package/build/cjs/replication.js +19 -0
- package/build/cjs/replication.js.map +1 -0
- package/build/cjs/retention.d.ts +11 -0
- package/build/cjs/retention.d.ts.map +1 -0
- package/build/cjs/retention.js +22 -0
- package/build/cjs/retention.js.map +1 -0
- package/build/cjs/session.d.ts +45 -0
- package/build/cjs/session.d.ts.map +1 -0
- package/build/cjs/session.js +55 -0
- package/build/cjs/session.js.map +1 -0
- package/build/cjs/topology.d.ts +12 -0
- package/build/cjs/topology.d.ts.map +1 -0
- package/build/cjs/topology.js +48 -0
- package/build/cjs/topology.js.map +1 -0
- package/build/cjs/validate-design.d.ts +22 -0
- package/build/cjs/validate-design.d.ts.map +1 -0
- package/build/cjs/validate-design.js +576 -0
- package/build/cjs/validate-design.js.map +1 -0
- package/build/esm/apply-design.d.ts +22 -0
- package/build/esm/apply-design.d.ts.map +1 -0
- package/build/esm/apply-design.js +202 -0
- package/build/esm/apply-design.js.map +1 -0
- package/build/esm/apply-overrides.d.ts +11 -0
- package/build/esm/apply-overrides.d.ts.map +1 -0
- package/build/esm/apply-overrides.js +235 -0
- package/build/esm/apply-overrides.js.map +1 -0
- package/build/esm/convergence.d.ts +15 -0
- package/build/esm/convergence.d.ts.map +1 -0
- package/build/esm/convergence.js +25 -0
- package/build/esm/convergence.js.map +1 -0
- package/build/esm/design.d.ts +85 -0
- package/build/esm/design.d.ts.map +1 -0
- package/build/esm/design.js +43 -0
- package/build/esm/design.js.map +1 -0
- package/build/esm/diagnostics.d.ts +74 -0
- package/build/esm/diagnostics.d.ts.map +1 -0
- package/build/esm/diagnostics.js +13 -0
- package/build/esm/diagnostics.js.map +1 -0
- package/build/esm/edges.d.ts +17 -0
- package/build/esm/edges.d.ts.map +1 -0
- package/build/esm/edges.js +18 -0
- package/build/esm/edges.js.map +1 -0
- package/build/esm/entry-points.d.ts +17 -0
- package/build/esm/entry-points.d.ts.map +1 -0
- package/build/esm/entry-points.js +52 -0
- package/build/esm/entry-points.js.map +1 -0
- package/build/esm/find-orphan-nodes.d.ts +5 -0
- package/build/esm/find-orphan-nodes.d.ts.map +1 -0
- package/build/esm/find-orphan-nodes.js +11 -0
- package/build/esm/find-orphan-nodes.js.map +1 -0
- package/build/esm/flow-traversal.d.ts +24 -0
- package/build/esm/flow-traversal.d.ts.map +1 -0
- package/build/esm/flow-traversal.js +96 -0
- package/build/esm/flow-traversal.js.map +1 -0
- package/build/esm/graph.d.ts +19 -0
- package/build/esm/graph.d.ts.map +1 -0
- package/build/esm/graph.js +26 -0
- package/build/esm/graph.js.map +1 -0
- package/build/esm/handler-scope.d.ts +27 -0
- package/build/esm/handler-scope.d.ts.map +1 -0
- package/build/esm/handler-scope.js +49 -0
- package/build/esm/handler-scope.js.map +1 -0
- package/build/esm/index.d.ts +27 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +27 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/map-links.d.ts +12 -0
- package/build/esm/map-links.d.ts.map +1 -0
- package/build/esm/map-links.js +56 -0
- package/build/esm/map-links.js.map +1 -0
- package/build/esm/map-structure.d.ts +110 -0
- package/build/esm/map-structure.d.ts.map +1 -0
- package/build/esm/map-structure.js +46 -0
- package/build/esm/map-structure.js.map +1 -0
- package/build/esm/map-vocabulary.d.ts +53 -0
- package/build/esm/map-vocabulary.d.ts.map +1 -0
- package/build/esm/map-vocabulary.js +146 -0
- package/build/esm/map-vocabulary.js.map +1 -0
- package/build/esm/nodes.d.ts +39 -0
- package/build/esm/nodes.d.ts.map +1 -0
- package/build/esm/nodes.js +28 -0
- package/build/esm/nodes.js.map +1 -0
- package/build/esm/op-chain.d.ts +18 -0
- package/build/esm/op-chain.d.ts.map +1 -0
- package/build/esm/op-chain.js +36 -0
- package/build/esm/op-chain.js.map +1 -0
- package/build/esm/ops.d.ts +158 -0
- package/build/esm/ops.d.ts.map +1 -0
- package/build/esm/ops.js +7 -0
- package/build/esm/ops.js.map +1 -0
- package/build/esm/organisation.d.ts +10 -0
- package/build/esm/organisation.d.ts.map +1 -0
- package/build/esm/organisation.js +16 -0
- package/build/esm/organisation.js.map +1 -0
- package/build/esm/overrides.d.ts +74 -0
- package/build/esm/overrides.d.ts.map +1 -0
- package/build/esm/overrides.js +15 -0
- package/build/esm/overrides.js.map +1 -0
- package/build/esm/package.json +1 -0
- package/build/esm/reachability.d.ts +27 -0
- package/build/esm/reachability.d.ts.map +1 -0
- package/build/esm/reachability.js +212 -0
- package/build/esm/reachability.js.map +1 -0
- package/build/esm/reality-check.d.ts +42 -0
- package/build/esm/reality-check.d.ts.map +1 -0
- package/build/esm/reality-check.js +185 -0
- package/build/esm/reality-check.js.map +1 -0
- package/build/esm/replication.d.ts +7 -0
- package/build/esm/replication.d.ts.map +1 -0
- package/build/esm/replication.js +15 -0
- package/build/esm/replication.js.map +1 -0
- package/build/esm/retention.d.ts +11 -0
- package/build/esm/retention.d.ts.map +1 -0
- package/build/esm/retention.js +17 -0
- package/build/esm/retention.js.map +1 -0
- package/build/esm/session.d.ts +45 -0
- package/build/esm/session.d.ts.map +1 -0
- package/build/esm/session.js +49 -0
- package/build/esm/session.js.map +1 -0
- package/build/esm/topology.d.ts +12 -0
- package/build/esm/topology.d.ts.map +1 -0
- package/build/esm/topology.js +43 -0
- package/build/esm/topology.js.map +1 -0
- package/build/esm/validate-design.d.ts +22 -0
- package/build/esm/validate-design.d.ts.map +1 -0
- package/build/esm/validate-design.js +572 -0
- package/build/esm/validate-design.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +37 -0
- package/schema/map.schema.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-vocabulary.js","sourceRoot":"","sources":["../../src/map-vocabulary.ts"],"names":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AAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACzB,IAAK,CAAC,gBAAgB,CAAE,IAAI,CAAE,EAAG,CAAC;YAChC,UAAU,CAAC,IAAI,CAAE,SAAS,CAAE,gBAAgB,EAAE,SAAU,KAAM,eAAe,EAAE,IAAI,CAAE,CAAE,CAAC;YACxF,OAAO;QACT,CAAC;QACD,IAAK,IAAI,KAAK,SAAS;YAAG,OAAO;QACjC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC7B,IAAK,CAAC,eAAe,CAAE,MAAM,CAAE,EAAG,CAAC;YACjC,UAAU,CAAC,IAAI,CAAE,SAAS,CAAE,eAAe,EAAE,SAAU,KAAM,iBAAiB,EAAE,MAAM,CAAE,CAAE,CAAC;QAC7F,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,EAAE,EAAE,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QACtD,UAAU;QACV,UAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type NodeSource = {
|
|
2
|
+
file: string;
|
|
3
|
+
line: number;
|
|
4
|
+
};
|
|
5
|
+
export type NodeMeta = {
|
|
6
|
+
source: NodeSource;
|
|
7
|
+
};
|
|
8
|
+
export type Origin = 'extracted' | 'manual' | 'human' | 'ai' | 'derived';
|
|
9
|
+
export type DesignAuthor = 'human' | 'ai';
|
|
10
|
+
export type DesignStatus = 'proposed' | 'modified' | 'removed' | 'satisfied';
|
|
11
|
+
export type UiKind = 'end-user' | 'back-office';
|
|
12
|
+
export type NodeType = 'aggregate' | 'system' | 'command' | 'event' | 'policy' | 'read-model' | 'external-system' | 'datastore' | 'cache' | 'ui' | 'postgres-view';
|
|
13
|
+
export declare const NODE_TYPES: readonly NodeType[];
|
|
14
|
+
export declare const NODE_ABBREV: Record<NodeType, string>;
|
|
15
|
+
export declare const NODE_TYPE_BY_ABBREV: Readonly<Record<string, NodeType>>;
|
|
16
|
+
export type ReadModelQuery = {
|
|
17
|
+
route: string;
|
|
18
|
+
source: NodeSource;
|
|
19
|
+
};
|
|
20
|
+
export type ReadModelSearchIndex = {
|
|
21
|
+
engine: string;
|
|
22
|
+
source: NodeSource;
|
|
23
|
+
};
|
|
24
|
+
export type BlueprintNode = {
|
|
25
|
+
id: string;
|
|
26
|
+
type: NodeType;
|
|
27
|
+
label: string;
|
|
28
|
+
subdomain: string;
|
|
29
|
+
resourceKey?: string;
|
|
30
|
+
queries?: ReadModelQuery[];
|
|
31
|
+
searchIndexes?: ReadModelSearchIndex[];
|
|
32
|
+
meta?: NodeMeta;
|
|
33
|
+
uiKind?: UiKind;
|
|
34
|
+
origin?: Origin;
|
|
35
|
+
status?: DesignStatus;
|
|
36
|
+
previousLabel?: string;
|
|
37
|
+
note?: string;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/nodes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAE7E,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAChB,WAAW,GACX,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,iBAAiB,GACjB,WAAW,GACX,OAAO,GACP,IAAI,GACJ,eAAe,CAAC;AAEpB,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,EAYhC,CAAC;AAEX,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAYhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAElE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_TYPE_BY_ABBREV = exports.NODE_ABBREV = exports.NODE_TYPES = void 0;
|
|
4
|
+
exports.NODE_TYPES = [
|
|
5
|
+
'aggregate',
|
|
6
|
+
'system',
|
|
7
|
+
'command',
|
|
8
|
+
'event',
|
|
9
|
+
'policy',
|
|
10
|
+
'read-model',
|
|
11
|
+
'external-system',
|
|
12
|
+
'datastore',
|
|
13
|
+
'cache',
|
|
14
|
+
'ui',
|
|
15
|
+
'postgres-view'
|
|
16
|
+
];
|
|
17
|
+
exports.NODE_ABBREV = {
|
|
18
|
+
'aggregate': 'agg',
|
|
19
|
+
'system': 'sys',
|
|
20
|
+
'command': 'cmd',
|
|
21
|
+
'event': 'evt',
|
|
22
|
+
'policy': 'pol',
|
|
23
|
+
'read-model': 'rm',
|
|
24
|
+
'external-system': 'ext',
|
|
25
|
+
'datastore': 'tbl',
|
|
26
|
+
'cache': 'cache',
|
|
27
|
+
'ui': 'ui',
|
|
28
|
+
'postgres-view': 'view'
|
|
29
|
+
};
|
|
30
|
+
exports.NODE_TYPE_BY_ABBREV = Object.fromEntries(exports.NODE_TYPES.map(type => [exports.NODE_ABBREV[type], type]));
|
|
31
|
+
//# sourceMappingURL=nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/nodes.ts"],"names":[],"mappings":";;;AA8Ba,QAAA,UAAU,GAAwB;IAC7C,WAAW;IACX,QAAQ;IACR,SAAS;IACT,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,IAAI;IACJ,eAAe;CACP,CAAC;AAEE,QAAA,WAAW,GAA6B;IACnD,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE,IAAI;IAClB,iBAAiB,EAAE,KAAK;IACxB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,IAAI;IACV,eAAe,EAAE,MAAM;CACxB,CAAC;AAEW,QAAA,mBAAmB,GAAuC,MAAM,CAAC,WAAW,CACvF,kBAAU,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,CAAC,CAAE,mBAAW,CAAE,IAAI,CAAE,EAAE,IAAI,CAAE,CAAE,CACxD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Op } from './ops.js';
|
|
2
|
+
export declare const OP_CHAIN_DOMAIN = "blueprint-ops-chain";
|
|
3
|
+
export declare const OP_CHAIN_VERSION = "v1";
|
|
4
|
+
export declare const OP_CHAIN_GENESIS = "b369ef2317f5bd6bd22ddd3ebce94632849a553fa19d0b756a23745546627639";
|
|
5
|
+
export type ChainedOp = Op & {
|
|
6
|
+
prevHash: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function isChainedOp(op: Op): op is ChainedOp;
|
|
9
|
+
export declare function canonicalJson(value: unknown): string;
|
|
10
|
+
export declare function opChainPreimage(op: ChainedOp): string;
|
|
11
|
+
export type ChainBreakOpPayload = {
|
|
12
|
+
firstBrokenSeq: number;
|
|
13
|
+
opsAfterBreak: number;
|
|
14
|
+
reason: 'prev-hash-mismatch' | 'prev-hash-missing';
|
|
15
|
+
chainStartSeq?: number;
|
|
16
|
+
unattributedThroughSeq?: number;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=op-chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"op-chain.d.ts","sourceRoot":"","sources":["../../src/op-chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAEnC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,gBAAgB,qEACuC,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,EAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,wBAAgB,WAAW,CAAE,EAAE,EAAE,EAAE,GAAI,EAAE,IAAI,SAAS,CAErD;AAED,wBAAgB,aAAa,CAAE,KAAK,EAAE,OAAO,GAAI,MAAM,CAEtD;AAWD,wBAAgB,eAAe,CAAE,EAAE,EAAE,SAAS,GAAI,MAAM,CAcvD;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,oBAAoB,GAAG,mBAAmB,CAAC;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OP_CHAIN_GENESIS = exports.OP_CHAIN_VERSION = exports.OP_CHAIN_DOMAIN = void 0;
|
|
4
|
+
exports.isChainedOp = isChainedOp;
|
|
5
|
+
exports.canonicalJson = canonicalJson;
|
|
6
|
+
exports.opChainPreimage = opChainPreimage;
|
|
7
|
+
exports.OP_CHAIN_DOMAIN = 'blueprint-ops-chain';
|
|
8
|
+
exports.OP_CHAIN_VERSION = 'v1';
|
|
9
|
+
exports.OP_CHAIN_GENESIS = 'b369ef2317f5bd6bd22ddd3ebce94632849a553fa19d0b756a23745546627639';
|
|
10
|
+
function isChainedOp(op) {
|
|
11
|
+
return typeof op.prevHash === 'string' && op.prevHash.length > 0;
|
|
12
|
+
}
|
|
13
|
+
function canonicalJson(value) {
|
|
14
|
+
return JSON.stringify(sortDeep(value));
|
|
15
|
+
}
|
|
16
|
+
function sortDeep(value) {
|
|
17
|
+
if (Array.isArray(value))
|
|
18
|
+
return value.map(sortDeep);
|
|
19
|
+
if (value === null || typeof value !== 'object')
|
|
20
|
+
return value;
|
|
21
|
+
const source = value;
|
|
22
|
+
const sorted = {};
|
|
23
|
+
for (const key of Object.keys(source).sort())
|
|
24
|
+
sorted[key] = sortDeep(source[key]);
|
|
25
|
+
return sorted;
|
|
26
|
+
}
|
|
27
|
+
function opChainPreimage(op) {
|
|
28
|
+
return [
|
|
29
|
+
exports.OP_CHAIN_DOMAIN,
|
|
30
|
+
exports.OP_CHAIN_VERSION,
|
|
31
|
+
op.prevHash,
|
|
32
|
+
String(op.seq),
|
|
33
|
+
op.ts,
|
|
34
|
+
op.author,
|
|
35
|
+
op.class,
|
|
36
|
+
op.verb,
|
|
37
|
+
op.writerSha,
|
|
38
|
+
op.writerId,
|
|
39
|
+
canonicalJson(op.payload)
|
|
40
|
+
].join('\0');
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=op-chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"op-chain.js","sourceRoot":"","sources":["../../src/op-chain.ts"],"names":[],"mappings":";;;AAWA,kCAEC;AAED,sCAEC;AAWD,0CAcC;AAxCY,QAAA,eAAe,GAAG,qBAAqB,CAAC;AAExC,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAExB,QAAA,gBAAgB,GAC3B,kEAAkE,CAAC;AAIrE,SAAgB,WAAW,CAAE,EAAM;IACjC,OAAO,OAAO,EAAE,CAAC,QAAQ,KAAK,QAAQ,IAAI,EAAE,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,aAAa,CAAE,KAAc;IAC3C,OAAO,IAAI,CAAC,SAAS,CAAE,QAAQ,CAAE,KAAK,CAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,QAAQ,CAAE,KAAc;IAC/B,IAAK,KAAK,CAAC,OAAO,CAAE,KAAK,CAAE;QAAE,OAAO,KAAK,CAAC,GAAG,CAAE,QAAQ,CAAE,CAAC;IAC1D,IAAK,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAG,OAAO,KAAK,CAAC;IAChE,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,MAAM,MAAM,GAA4B,EAAE,CAAC;IAC3C,KAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAE,MAAM,CAAE,CAAC,IAAI,EAAE;QAAE,MAAM,CAAE,GAAG,CAAE,GAAG,QAAQ,CAAE,MAAM,CAAE,GAAG,CAAE,CAAC,CAAC;IAC1F,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAE,EAAa;IAC5C,OAAO;QACL,uBAAe;QACf,wBAAgB;QAChB,EAAE,CAAC,QAAQ;QACX,MAAM,CAAE,EAAE,CAAC,GAAG,CAAE;QAChB,EAAE,CAAC,EAAE;QACL,EAAE,CAAC,MAAM;QACT,EAAE,CAAC,KAAK;QACR,EAAE,CAAC,IAAI;QACP,EAAE,CAAC,SAAS;QACZ,EAAE,CAAC,QAAQ;QACX,aAAa,CAAE,EAAE,CAAC,OAAO,CAAE;KAC5B,CAAC,IAAI,CAAE,IAAI,CAAE,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { HandlerScopeIssue } from './diagnostics.js';
|
|
2
|
+
import { StrandingReport } from './reachability.js';
|
|
3
|
+
import { VerbSubject } from './reality-check.js';
|
|
4
|
+
import { DesignAuthor, DesignStatus } from './nodes.js';
|
|
5
|
+
import type { MapEntryId, MapForkStatus, MapLink, MapWithdrawal } from './map-structure.js';
|
|
6
|
+
import { DesignComment, ModifyEntry, ProposedEdge, ProposedNode, RemoveEntry, ResolveEntry } from './design.js';
|
|
7
|
+
export type OpsSchemaVersion = 1;
|
|
8
|
+
export declare const BLUEPRINT_OPS_FILENAME = "ops.jsonl";
|
|
9
|
+
export type OpClass = 'semantic' | 'layout' | 'operational';
|
|
10
|
+
export type OpVerb = 'propose' | 'modify' | 'remove' | 'comment' | 'resolve' | 'reclassify' | 'position' | 'lock-takeover' | 'anchor-attach' | 'anchor-detach' | 'session-freeze' | 'session-reopen' | 'pr-link' | 'pr-merged' | 'pr-closed' | 'undo' | 'map-ground' | 'map-post' | 'map-strike' | 'map-choose' | 'map-link' | 'map-unlink';
|
|
11
|
+
export type MapOpVerb = Extract<OpVerb, `map-${string}`>;
|
|
12
|
+
export type StrandingOpDiagnostic = {
|
|
13
|
+
strandedProposals?: StrandingReport;
|
|
14
|
+
};
|
|
15
|
+
export type ProposeOpPayload = StrandingOpDiagnostic & {
|
|
16
|
+
nodes: ProposedNode[];
|
|
17
|
+
edges: ProposedEdge[];
|
|
18
|
+
};
|
|
19
|
+
export type ModifyOpPayload = {
|
|
20
|
+
entries: ModifyEntry[];
|
|
21
|
+
};
|
|
22
|
+
export type RemoveOpPayload = StrandingOpDiagnostic & {
|
|
23
|
+
entries: RemoveEntry[];
|
|
24
|
+
};
|
|
25
|
+
export type CommentOpPayload = {
|
|
26
|
+
entries: DesignComment[];
|
|
27
|
+
};
|
|
28
|
+
export type ResolveOpPayload = {
|
|
29
|
+
entries: ResolveEntry[];
|
|
30
|
+
};
|
|
31
|
+
export type OperationalOpVerb = 'reality-moved' | 'scope' | 'chain-break';
|
|
32
|
+
export type ScopeOpPayload = {
|
|
33
|
+
saved: Array<{
|
|
34
|
+
name: string;
|
|
35
|
+
subdomains: string[];
|
|
36
|
+
text: string;
|
|
37
|
+
all?: boolean;
|
|
38
|
+
design?: {
|
|
39
|
+
authors: readonly DesignAuthor[];
|
|
40
|
+
statuses: readonly DesignStatus[];
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
removed: string[];
|
|
44
|
+
};
|
|
45
|
+
export type RealityMovedOpPayload = {
|
|
46
|
+
note: string;
|
|
47
|
+
satisfied: number;
|
|
48
|
+
stale: number;
|
|
49
|
+
staleVerbs: Array<{
|
|
50
|
+
path: string;
|
|
51
|
+
reason: string;
|
|
52
|
+
subject?: VerbSubject;
|
|
53
|
+
}>;
|
|
54
|
+
degraded?: number;
|
|
55
|
+
degradedScopes?: Array<{
|
|
56
|
+
path: string;
|
|
57
|
+
handlerId: string;
|
|
58
|
+
issue: HandlerScopeIssue;
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
export type LockTakeoverOpPayload = {
|
|
62
|
+
pid: number;
|
|
63
|
+
writerId: string;
|
|
64
|
+
heldForMs: number;
|
|
65
|
+
reason: 'holder-dead' | 'stale';
|
|
66
|
+
};
|
|
67
|
+
export type AnchorAttachOpPayload = {
|
|
68
|
+
sessionId: string;
|
|
69
|
+
realityProvider: string;
|
|
70
|
+
realitySha: string;
|
|
71
|
+
realityAt: string;
|
|
72
|
+
repoPath: string;
|
|
73
|
+
previousProvider?: string;
|
|
74
|
+
previousRealitySha?: string;
|
|
75
|
+
};
|
|
76
|
+
export type AnchorDetachObservation = 'recorded' | 'inferred';
|
|
77
|
+
export type AnchorDetachOpPayload = {
|
|
78
|
+
sessionId: string;
|
|
79
|
+
realityProvider: string;
|
|
80
|
+
reason: string;
|
|
81
|
+
detachedAt: string;
|
|
82
|
+
observed: AnchorDetachObservation;
|
|
83
|
+
};
|
|
84
|
+
export type SessionReopenOpPayload = {
|
|
85
|
+
actor: string;
|
|
86
|
+
reason: string;
|
|
87
|
+
};
|
|
88
|
+
export type PullRequestProvider = 'github' | 'stub';
|
|
89
|
+
export type PrLinkOpPayload = {
|
|
90
|
+
ref: string;
|
|
91
|
+
provider: PullRequestProvider;
|
|
92
|
+
url: string;
|
|
93
|
+
actor: string;
|
|
94
|
+
};
|
|
95
|
+
export type PrMergedOpPayload = {
|
|
96
|
+
ref: string;
|
|
97
|
+
mergeCommitSha: string;
|
|
98
|
+
mergedAt: string;
|
|
99
|
+
};
|
|
100
|
+
export type PrClosedOpPayload = {
|
|
101
|
+
ref: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const UNDOABLE_OP_VERBS: readonly ["propose", "modify", "remove", "comment", "map-post", "map-choose", "map-link", "map-unlink"];
|
|
104
|
+
export type UndoableOpVerb = (typeof UNDOABLE_OP_VERBS)[number];
|
|
105
|
+
export type UndoFold = 'design' | 'map';
|
|
106
|
+
export type DesignUndoableOpVerb = Exclude<UndoableOpVerb, MapUndoableOpVerb>;
|
|
107
|
+
export type MapUndoableOpVerb = 'map-post' | 'map-choose' | 'map-link' | 'map-unlink';
|
|
108
|
+
export declare function isUndoableOpVerb(verb: unknown): verb is UndoableOpVerb;
|
|
109
|
+
export type UndoWithdrawal = {
|
|
110
|
+
nodes?: ProposedNode[];
|
|
111
|
+
edges?: ProposedEdge[];
|
|
112
|
+
modify?: ModifyEntry[];
|
|
113
|
+
comments?: DesignComment[];
|
|
114
|
+
remove?: RemoveEntry[];
|
|
115
|
+
};
|
|
116
|
+
export type DesignUndoOpPayload = {
|
|
117
|
+
fold?: 'design';
|
|
118
|
+
undoes: number;
|
|
119
|
+
undoneVerb: DesignUndoableOpVerb;
|
|
120
|
+
withdraw: UndoWithdrawal;
|
|
121
|
+
};
|
|
122
|
+
export type MapPostUndoOpPayload = {
|
|
123
|
+
fold: 'map';
|
|
124
|
+
undoes: number;
|
|
125
|
+
undoneVerb: 'map-post';
|
|
126
|
+
withdraw: MapWithdrawal;
|
|
127
|
+
};
|
|
128
|
+
export type MapChooseUndoOpPayload = {
|
|
129
|
+
fold: 'map';
|
|
130
|
+
undoes: number;
|
|
131
|
+
undoneVerb: 'map-choose';
|
|
132
|
+
restore: MapStatusRestore;
|
|
133
|
+
};
|
|
134
|
+
export type MapStatusRestore = {
|
|
135
|
+
id: MapEntryId;
|
|
136
|
+
status: MapForkStatus;
|
|
137
|
+
};
|
|
138
|
+
export type MapLinkUndoOpPayload = {
|
|
139
|
+
fold: 'map';
|
|
140
|
+
undoes: number;
|
|
141
|
+
undoneVerb: 'map-link' | 'map-unlink';
|
|
142
|
+
link: MapLink;
|
|
143
|
+
changed?: false;
|
|
144
|
+
};
|
|
145
|
+
export type MapUndoOpPayload = MapPostUndoOpPayload | MapChooseUndoOpPayload | MapLinkUndoOpPayload;
|
|
146
|
+
export type UndoOpPayload = DesignUndoOpPayload | MapUndoOpPayload;
|
|
147
|
+
export type Op = {
|
|
148
|
+
seq: number;
|
|
149
|
+
ts: string;
|
|
150
|
+
author: DesignAuthor | 'system';
|
|
151
|
+
class: OpClass;
|
|
152
|
+
verb: OpVerb | OperationalOpVerb;
|
|
153
|
+
payload: unknown;
|
|
154
|
+
writerSha: string;
|
|
155
|
+
writerId: string;
|
|
156
|
+
prevHash?: string;
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../src/ops.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAEjC,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE5D,MAAM,MAAM,MAAM,GACd,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,GACZ,UAAU,GACV,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,WAAW,GACX,WAAW,GACX,MAAM,GACN,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,YAAY,CAAC;AAEjB,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,OAAQ,MAAO,EAAE,CAAC,CAAC;AAE3D,MAAM,MA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CACzB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,YAAY,CAAC;IACzB,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,EAAE,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAEpG,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;AAEnE,MAAM,MAAM,EAAE,GAAG;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/build/cjs/ops.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNDOABLE_OP_VERBS = exports.BLUEPRINT_OPS_FILENAME = void 0;
|
|
4
|
+
exports.isUndoableOpVerb = isUndoableOpVerb;
|
|
5
|
+
exports.BLUEPRINT_OPS_FILENAME = 'ops.jsonl';
|
|
6
|
+
exports.UNDOABLE_OP_VERBS = ['propose', 'modify', 'remove', 'comment', 'map-post', 'map-choose', 'map-link', 'map-unlink'];
|
|
7
|
+
function isUndoableOpVerb(verb) {
|
|
8
|
+
return typeof verb === 'string'
|
|
9
|
+
&& exports.UNDOABLE_OP_VERBS.includes(verb);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ops.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../../src/ops.ts"],"names":[],"mappings":";;;AA0JA,4CAGC;AA7IY,QAAA,sBAAsB,GAAG,WAAW,CAAC;AAgIrC,QAAA,iBAAiB,GAAG,CAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAW,CAAC;AAU3I,SAAgB,gBAAgB,CAAE,IAAa;IAC7C,OAAO,OAAO,IAAI,KAAK,QAAQ;WACxB,yBAAwC,CAAC,QAAQ,CAAE,IAAI,CAAE,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type OrgId = string;
|
|
2
|
+
export declare const DEFAULT_ORG: OrgId;
|
|
3
|
+
export type OrgScope = {
|
|
4
|
+
boundOrg: OrgId;
|
|
5
|
+
};
|
|
6
|
+
export declare class UnscopedOrgError extends Error {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare function orgScope(boundOrg: OrgId): OrgScope;
|
|
10
|
+
//# sourceMappingURL=organisation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation.d.ts","sourceRoot":"","sources":["../../src/organisation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,eAAO,MAAM,WAAW,EAAE,KAAkB,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,KAAK;;CAU1C;AAED,wBAAgB,QAAQ,CAAE,QAAQ,EAAE,KAAK,GAAI,QAAQ,CAGpD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnscopedOrgError = exports.DEFAULT_ORG = void 0;
|
|
4
|
+
exports.orgScope = orgScope;
|
|
5
|
+
exports.DEFAULT_ORG = 'personal';
|
|
6
|
+
class UnscopedOrgError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('refusing an unscoped access: no bound org. An access with no org would read every org in ' +
|
|
9
|
+
'the store, which is not a broad query but a tenancy failure — and its result is ' +
|
|
10
|
+
'indistinguishable from a correct one. Bind the org from injected configuration ' +
|
|
11
|
+
'(DEFAULT_ORG locally; a hosted substrate must supply one and refuse without it).');
|
|
12
|
+
this.name = 'UnscopedOrgError';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.UnscopedOrgError = UnscopedOrgError;
|
|
16
|
+
function orgScope(boundOrg) {
|
|
17
|
+
if (!boundOrg || boundOrg.trim() === '')
|
|
18
|
+
throw new UnscopedOrgError();
|
|
19
|
+
return { boundOrg };
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=organisation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation.js","sourceRoot":"","sources":["../../src/organisation.ts"],"names":[],"mappings":";;;AAoBA,4BAGC;AArBY,QAAA,WAAW,GAAU,UAAU,CAAC;AAM7C,MAAa,gBAAiB,SAAQ,KAAK;IACzC;QACE,KAAK,CACH,2FAA2F;YAC3F,kFAAkF;YAClF,iFAAiF;YACjF,kFAAkF,CACnF,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAVD,4CAUC;AAED,SAAgB,QAAQ,CAAE,QAAe;IACvC,IAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE;QAAG,MAAM,IAAI,gBAAgB,EAAE,CAAC;IACxE,OAAO,EAAE,QAAQ,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EdgeKind } from './edges.js';
|
|
2
|
+
import { DesignAuthor, NodeType } from './nodes.js';
|
|
3
|
+
export type OverridesSchemaVersion = 1;
|
|
4
|
+
export declare const OVERRIDES_SCHEMA_VERSION = 1;
|
|
5
|
+
export declare const BLUEPRINT_OVERRIDES_FILENAME = ".blueprint.overrides.json";
|
|
6
|
+
export type ManualNode = {
|
|
7
|
+
id?: string;
|
|
8
|
+
type: NodeType;
|
|
9
|
+
label: string;
|
|
10
|
+
subdomain: string;
|
|
11
|
+
resourceKey?: string;
|
|
12
|
+
author?: DesignAuthor;
|
|
13
|
+
note?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ManualEdge = {
|
|
16
|
+
from: string;
|
|
17
|
+
to: string;
|
|
18
|
+
kind: EdgeKind;
|
|
19
|
+
author?: DesignAuthor;
|
|
20
|
+
note?: string;
|
|
21
|
+
handlers?: string[];
|
|
22
|
+
};
|
|
23
|
+
export type NodePatch = {
|
|
24
|
+
id: string;
|
|
25
|
+
set: Partial<{
|
|
26
|
+
label: string;
|
|
27
|
+
subdomain: string;
|
|
28
|
+
resourceKey: string;
|
|
29
|
+
}>;
|
|
30
|
+
note?: string;
|
|
31
|
+
};
|
|
32
|
+
export type Suppression = {
|
|
33
|
+
type: 'node';
|
|
34
|
+
id: string;
|
|
35
|
+
note?: string;
|
|
36
|
+
} | {
|
|
37
|
+
type: 'edge';
|
|
38
|
+
from: string;
|
|
39
|
+
to: string;
|
|
40
|
+
edgeKind: EdgeKind;
|
|
41
|
+
note?: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'unresolved-edge';
|
|
44
|
+
anchorId: string;
|
|
45
|
+
targetName: string;
|
|
46
|
+
edgeKind: EdgeKind;
|
|
47
|
+
note?: string;
|
|
48
|
+
};
|
|
49
|
+
export type BlueprintOverrides = {
|
|
50
|
+
schemaVersion: OverridesSchemaVersion;
|
|
51
|
+
add?: {
|
|
52
|
+
nodes?: ManualNode[];
|
|
53
|
+
edges?: ManualEdge[];
|
|
54
|
+
};
|
|
55
|
+
patch?: {
|
|
56
|
+
nodes?: NodePatch[];
|
|
57
|
+
};
|
|
58
|
+
suppress?: Suppression[];
|
|
59
|
+
};
|
|
60
|
+
export declare function emptyOverrides(): BlueprintOverrides;
|
|
61
|
+
export type OverridesReadFailure = {
|
|
62
|
+
ok: false;
|
|
63
|
+
reason: 'not-a-document';
|
|
64
|
+
} | {
|
|
65
|
+
ok: false;
|
|
66
|
+
reason: 'wrong-version';
|
|
67
|
+
observed: unknown;
|
|
68
|
+
};
|
|
69
|
+
export type OverridesRead = {
|
|
70
|
+
ok: true;
|
|
71
|
+
overrides: BlueprintOverrides;
|
|
72
|
+
} | OverridesReadFailure;
|
|
73
|
+
export declare function readOverrides(parsed: unknown): OverridesRead;
|
|
74
|
+
//# sourceMappingURL=overrides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../src/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAEvC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,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EAAE,CAAC;KACtB,CAAC;IACF,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B,CAAC;AAEF,wBAAgB,cAAc,IAAI,kBAAkB,CAEnD;AAED,MAAM,MAAM,oBAAoB,GAC5B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GACvC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,kBAAkB,CAAA;CAAE,GAAG,oBAAoB,CAAC;AAE/F,wBAAgB,aAAa,CAAE,MAAM,EAAE,OAAO,GAAI,aAAa,CAO9D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BLUEPRINT_OVERRIDES_FILENAME = exports.OVERRIDES_SCHEMA_VERSION = void 0;
|
|
4
|
+
exports.emptyOverrides = emptyOverrides;
|
|
5
|
+
exports.readOverrides = readOverrides;
|
|
6
|
+
exports.OVERRIDES_SCHEMA_VERSION = 1;
|
|
7
|
+
exports.BLUEPRINT_OVERRIDES_FILENAME = '.blueprint.overrides.json';
|
|
8
|
+
function emptyOverrides() {
|
|
9
|
+
return { schemaVersion: 1 };
|
|
10
|
+
}
|
|
11
|
+
function readOverrides(parsed) {
|
|
12
|
+
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
13
|
+
return { ok: false, reason: 'not-a-document' };
|
|
14
|
+
}
|
|
15
|
+
const observed = parsed.schemaVersion;
|
|
16
|
+
if (observed !== exports.OVERRIDES_SCHEMA_VERSION)
|
|
17
|
+
return { ok: false, reason: 'wrong-version', observed };
|
|
18
|
+
return { ok: true, overrides: parsed };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=overrides.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../src/overrides.ts"],"names":[],"mappings":";;;AA6DA,wCAEC;AAQD,sCAOC;AAzEY,QAAA,wBAAwB,GAAG,CAAC,CAAC;AAE7B,QAAA,4BAA4B,GAAG,2BAA2B,CAAC;AAsDxE,SAAgB,cAAc;IAC5B,OAAO,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;AAC9B,CAAC;AAQD,SAAgB,aAAa,CAAE,MAAe;IAC5C,IAAK,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAE,MAAM,CAAE,EAAG,CAAC;QAC/E,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IACjD,CAAC;IACD,MAAM,QAAQ,GAAK,MAAuC,CAAC,aAAa,CAAC;IACzE,IAAK,QAAQ,KAAK,gCAAwB;QAAG,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC;IACrG,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAA4B,EAAE,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EdgeKind } from './edges.js';
|
|
2
|
+
import { DesignFile } from './design.js';
|
|
3
|
+
import { PromotionOptions } from './entry-points.js';
|
|
4
|
+
import { BlueprintGraph } from './graph.js';
|
|
5
|
+
export declare const CAUSAL_KINDS: ReadonlySet<EdgeKind>;
|
|
6
|
+
export type StrandReason = 'SYSTEM_WITHOUT_COMMAND_HANDLER' | 'CROSS_SUBDOMAIN_ENTRY_POINT_ONLY' | 'POLICY_HOP_WITHOUT_CAUSES_MIRROR' | 'NO_PATH_FROM_ANY_ROOT';
|
|
7
|
+
export type StrandFrontier = {
|
|
8
|
+
id: string;
|
|
9
|
+
reason: StrandReason;
|
|
10
|
+
hint?: string;
|
|
11
|
+
};
|
|
12
|
+
export type StrandDownstream = {
|
|
13
|
+
id: string;
|
|
14
|
+
downstreamOf: string;
|
|
15
|
+
};
|
|
16
|
+
export type StrandingReport = {
|
|
17
|
+
frontier: readonly StrandFrontier[];
|
|
18
|
+
downstream: readonly StrandDownstream[];
|
|
19
|
+
};
|
|
20
|
+
export type StrandingFailure = {
|
|
21
|
+
code: string;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const strandingFailure: (cause: unknown) => StrandingFailure;
|
|
25
|
+
export declare const drawableIds: (graph: BlueprintGraph, options?: PromotionOptions) => ReadonlySet<string>;
|
|
26
|
+
export declare const findStrandedProposals: (graph: BlueprintGraph, design: DesignFile, options?: PromotionOptions) => StrandingReport;
|
|
27
|
+
//# sourceMappingURL=reachability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reachability.d.ts","sourceRoot":"","sources":["../../src/reachability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAwC,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAK5C,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,QAAQ,CAI5C,CAAC;AAEJ,MAAM,MAAM,YAAY,GACpB,gCAAgC,GAChC,kCAAkC,GAClC,kCAAkC,GAClC,uBAAuB,CAAC;AAE5B,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM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