@intentius/chant 0.38.0 → 0.41.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/dist/apply.d.ts +171 -0
- package/dist/apply.d.ts.map +1 -0
- package/dist/build.d.ts +21 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/run-client.d.ts.map +1 -1
- package/dist/cli/handlers/search.d.ts +30 -1
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/plugins.d.ts +20 -0
- package/dist/cli/plugins.d.ts.map +1 -1
- package/dist/codegen/naming.d.ts +48 -1
- package/dist/codegen/naming.d.ts.map +1 -1
- package/dist/codegen/registry.d.ts +23 -0
- package/dist/codegen/registry.d.ts.map +1 -0
- package/dist/codegen/validate.d.ts +31 -0
- package/dist/codegen/validate.d.ts.map +1 -1
- package/dist/components/sandbox/driver.d.ts.map +1 -1
- package/dist/composite.d.ts +23 -4
- package/dist/composite.d.ts.map +1 -1
- package/dist/deep-observation.d.ts +11 -0
- package/dist/deep-observation.d.ts.map +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/sandbox/driver.d.ts.map +1 -1
- package/dist/graph-declared.d.ts.map +1 -1
- package/dist/graph-ir.d.ts +17 -3
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-refs.d.ts +24 -0
- package/dist/graph-refs.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kubectl-context.d.ts.map +1 -1
- package/dist/lexicon-config.d.ts +61 -0
- package/dist/lexicon-config.d.ts.map +1 -0
- package/dist/lexicon.d.ts +19 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/deep-diff.d.ts +11 -0
- package/dist/lifecycle/deep-diff.d.ts.map +1 -1
- package/dist/lifecycle/digest.d.ts.map +1 -1
- package/dist/lifecycle/identity.d.ts +52 -0
- package/dist/lifecycle/identity.d.ts.map +1 -0
- package/dist/lifecycle/observe.d.ts +5 -0
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/replay.d.ts.map +1 -1
- package/dist/lifecycle/types.d.ts +30 -0
- package/dist/lifecycle/types.d.ts.map +1 -1
- package/dist/managed-fields.d.ts +11 -0
- package/dist/managed-fields.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apply.test.ts +169 -0
- package/src/apply.ts +249 -0
- package/src/build.ts +24 -0
- package/src/cli/commands/build.ts +10 -0
- package/src/cli/commands/check-lexicon.ts +20 -1
- package/src/cli/commands/doctor.test.ts +45 -0
- package/src/cli/commands/doctor.ts +40 -0
- package/src/cli/handlers/lifecycle.ts +10 -0
- package/src/cli/handlers/run-client.ts +3 -1
- package/src/cli/handlers/search-kind.test.ts +45 -0
- package/src/cli/handlers/search.ts +102 -4
- package/src/cli/main.ts +32 -10
- package/src/cli/param-flag-scope.test.ts +69 -0
- package/src/cli/plugins.test.ts +33 -1
- package/src/cli/plugins.ts +55 -0
- package/src/codegen/naming.test.ts +129 -0
- package/src/codegen/naming.ts +72 -1
- package/src/codegen/registry.test.ts +56 -0
- package/src/codegen/registry.ts +69 -0
- package/src/codegen/validate.test.ts +86 -0
- package/src/codegen/validate.ts +74 -0
- package/src/components/SPRAWL-VALIDATION.md +5 -5
- package/src/components/sandbox/driver.test.ts +27 -0
- package/src/components/sandbox/driver.ts +12 -0
- package/src/composite.ts +33 -4
- package/src/deep-observation.ts +11 -0
- package/src/discovery/index.ts +59 -0
- package/src/discovery/params-cjs-warning.test.ts +75 -0
- package/src/discovery/sandbox/driver.test.ts +34 -0
- package/src/discovery/sandbox/driver.ts +19 -0
- package/src/graph-declared.test.ts +86 -0
- package/src/graph-declared.ts +14 -2
- package/src/graph-ir.ts +32 -8
- package/src/graph-refs.test.ts +56 -0
- package/src/graph-refs.ts +37 -1
- package/src/index.ts +1 -0
- package/src/kubectl-context.ts +4 -1
- package/src/lexicon-config.test.ts +111 -0
- package/src/lexicon-config.ts +92 -0
- package/src/lexicon.ts +20 -0
- package/src/lifecycle/deep-diff.test.ts +48 -1
- package/src/lifecycle/deep-diff.ts +16 -0
- package/src/lifecycle/digest.test.ts +81 -0
- package/src/lifecycle/digest.ts +34 -3
- package/src/lifecycle/identity.test.ts +39 -0
- package/src/lifecycle/identity.ts +61 -0
- package/src/lifecycle/observe.test.ts +75 -1
- package/src/lifecycle/observe.ts +28 -2
- package/src/lifecycle/replay.test.ts +251 -0
- package/src/lifecycle/replay.ts +67 -19
- package/src/lifecycle/types.ts +26 -0
- package/src/managed-fields.test.ts +50 -0
- package/src/managed-fields.ts +25 -6
- package/src/meta/peer-deps.test.ts +111 -14
package/dist/apply.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The apply contract (#1446) — what a lexicon's applier is allowed to mean.
|
|
3
|
+
*
|
|
4
|
+
* The peer of `./observation.ts`, and it exists for the same reason on the other
|
|
5
|
+
* side of the lifecycle.
|
|
6
|
+
*
|
|
7
|
+
* The read path had two ways to return nothing for a declared entity and no way
|
|
8
|
+
* to tell them apart — "the provider says it is absent" versus "I never looked"
|
|
9
|
+
* — and the second was classifying as `create`. #1089 made that a tri-state and
|
|
10
|
+
* #1201 built a conformance suite so a lexicon could not pass by returning a
|
|
11
|
+
* well-shaped result that still proposed a create.
|
|
12
|
+
*
|
|
13
|
+
* The write path had the identical hole. An applier could skip a resource and
|
|
14
|
+
* report nothing:
|
|
15
|
+
*
|
|
16
|
+
* const mapper = MAPPERS[r.kind];
|
|
17
|
+
* if (!mapper) {
|
|
18
|
+
* console.log(`skip: no mapper for kind ${r.kind}`);
|
|
19
|
+
* continue; // never appears in `applied`, or anywhere
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* A caller receiving `{ applied: [...] }` could not distinguish a complete apply
|
|
23
|
+
* from one that dropped half the manifest, and `ApplyOp` had nothing to gate on.
|
|
24
|
+
* A `console.log` on stdout is not a signal in a result, the same way a warn on
|
|
25
|
+
* stderr was not a signal in a change set (#1447 was the concrete bug; #1457
|
|
26
|
+
* found the same shape in two more appliers).
|
|
27
|
+
*
|
|
28
|
+
* The contract is a tri-state, per resource in the plan:
|
|
29
|
+
*
|
|
30
|
+
* - **APPLIED** — the provider was called and converged. Carries the action
|
|
31
|
+
* (`created` / `updated` / `unchanged`) and the physical id when resolved.
|
|
32
|
+
* - **PRUNED** — owned, no longer declared, deleted.
|
|
33
|
+
* - **NOT-ATTEMPTED** — carrying a total {@link NotAttemptedReason}. Never
|
|
34
|
+
* silent, never inferred from absence.
|
|
35
|
+
*
|
|
36
|
+
* The three are **disjoint and total**: every resource the applier was given
|
|
37
|
+
* appears in exactly one. That is the assertion the conformance suite exists to
|
|
38
|
+
* make, and the one the gcp skip failed.
|
|
39
|
+
*
|
|
40
|
+
* Compatibility: an applier may keep returning its own shape. The envelope is
|
|
41
|
+
* discriminated by its literal `apply: "v1"` field, the same mechanism
|
|
42
|
+
* `observation: "v1"` uses, so an un-migrated applier normalizes to "everything
|
|
43
|
+
* I was handed, I attempted" and nothing breaks. Reporting NOT-ATTEMPTED
|
|
44
|
+
* requires the envelope — which is the point: you cannot claim the guarantee
|
|
45
|
+
* without adopting the shape that can express its absence.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Why a resource in the plan was not attempted. Total: an applier that skips a
|
|
49
|
+
* resource must pick one of these, and consumers may switch exhaustively.
|
|
50
|
+
*
|
|
51
|
+
* - `unsupported-kind` — the lexicon has no mapper/writer for this type. The
|
|
52
|
+
* resource is declared and simply was not written.
|
|
53
|
+
* - `no-credentials` — no usable credentials/authorization for the target.
|
|
54
|
+
* - `no-binding` — the environment resolves to no concrete target (no cluster
|
|
55
|
+
* context, no subscription, no resource group, no endpoint).
|
|
56
|
+
* - `dependency-failed` — an upstream resource in the same run failed, so this
|
|
57
|
+
* one was never reached. Distinct from a failure of its own.
|
|
58
|
+
* - `filtered` — reached but deliberately withheld by a caller-requested scope.
|
|
59
|
+
* - `not-prunable` — an owned orphan of a kind the applier cannot enumerate or
|
|
60
|
+
* delete. The prune-side shape: not "there was nothing to prune" but "I could
|
|
61
|
+
* not look for anything to prune here".
|
|
62
|
+
*/
|
|
63
|
+
export type NotAttemptedReason = "unsupported-kind" | "no-credentials" | "no-binding" | "dependency-failed" | "filtered" | "not-prunable";
|
|
64
|
+
/** Every legal {@link NotAttemptedReason}, for validation and conformance checks. */
|
|
65
|
+
export declare const NOT_ATTEMPTED_REASONS: readonly NotAttemptedReason[];
|
|
66
|
+
/** True when `value` is a legal {@link NotAttemptedReason}. */
|
|
67
|
+
export declare function isNotAttemptedReason(value: unknown): value is NotAttemptedReason;
|
|
68
|
+
/** What an apply did to a resource that it did reach. */
|
|
69
|
+
export type AppliedAction = "created" | "updated" | "unchanged";
|
|
70
|
+
/** Every legal {@link AppliedAction}. */
|
|
71
|
+
export declare const APPLIED_ACTIONS: readonly AppliedAction[];
|
|
72
|
+
/** How a resource is named across appliers whose native vocabularies differ. */
|
|
73
|
+
export interface ApplyRef {
|
|
74
|
+
/**
|
|
75
|
+
* The provider's own type name — a CNRM `kind`, an ARM `type`, a
|
|
76
|
+
* CloudFormation resource type, a Fly entity class. Kept verbatim rather than
|
|
77
|
+
* normalized into a chant vocabulary, so an applier stays true to its target.
|
|
78
|
+
*/
|
|
79
|
+
kind: string;
|
|
80
|
+
/** The resource's name within its scope. */
|
|
81
|
+
name: string;
|
|
82
|
+
}
|
|
83
|
+
/** APPLIED — the provider was called and the resource converged. */
|
|
84
|
+
export interface AppliedResource extends ApplyRef {
|
|
85
|
+
action: AppliedAction;
|
|
86
|
+
/** Provider-assigned identifier, when the response carried one. */
|
|
87
|
+
physicalId?: string;
|
|
88
|
+
}
|
|
89
|
+
/** PRUNED — owned, no longer declared, deleted. */
|
|
90
|
+
export interface PrunedResource extends ApplyRef {
|
|
91
|
+
/**
|
|
92
|
+
* False when the delete was a no-op because the resource was already gone.
|
|
93
|
+
* Still PRUNED: the applier looked, decided, and acted.
|
|
94
|
+
*/
|
|
95
|
+
deleted: boolean;
|
|
96
|
+
}
|
|
97
|
+
/** NOT-ATTEMPTED — no provider call was made, and why. */
|
|
98
|
+
export interface NotAttemptedResource extends ApplyRef {
|
|
99
|
+
reason: NotAttemptedReason;
|
|
100
|
+
/** Detail for the operator: the status and body, the missing binding, the unsupported kind. */
|
|
101
|
+
detail?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The apply envelope. Explicitly versioned: `apply: "v1"`, which discriminates
|
|
105
|
+
* it from an applier's own return shape.
|
|
106
|
+
*/
|
|
107
|
+
export interface ApplyResult {
|
|
108
|
+
/** Discriminant + wire version. */
|
|
109
|
+
readonly apply: "v1";
|
|
110
|
+
applied: AppliedResource[];
|
|
111
|
+
pruned?: PrunedResource[];
|
|
112
|
+
/** Omit or leave empty when everything in the plan was attempted. */
|
|
113
|
+
notAttempted?: NotAttemptedResource[];
|
|
114
|
+
}
|
|
115
|
+
/** Normalized form every consumer works with. All three arrays always present. */
|
|
116
|
+
export interface NormalizedApply {
|
|
117
|
+
applied: AppliedResource[];
|
|
118
|
+
pruned: PrunedResource[];
|
|
119
|
+
notAttempted: NotAttemptedResource[];
|
|
120
|
+
}
|
|
121
|
+
/** True when `value` is the versioned {@link ApplyResult} envelope. */
|
|
122
|
+
export declare function isApplyResult(value: unknown): value is ApplyResult;
|
|
123
|
+
/**
|
|
124
|
+
* Build an {@link ApplyResult}. Appliers use this rather than writing the
|
|
125
|
+
* discriminant by hand.
|
|
126
|
+
*/
|
|
127
|
+
export declare function applyResult(applied: AppliedResource[], pruned?: PrunedResource[], notAttempted?: NotAttemptedResource[]): ApplyResult;
|
|
128
|
+
/**
|
|
129
|
+
* Normalize an applier's return value.
|
|
130
|
+
*
|
|
131
|
+
* A non-envelope value normalizes to "everything I was handed, I attempted" —
|
|
132
|
+
* an empty `notAttempted`. That is the compatibility path, and it is also
|
|
133
|
+
* exactly the claim an un-migrated applier is implicitly making, so nothing is
|
|
134
|
+
* invented on its behalf.
|
|
135
|
+
*
|
|
136
|
+
* `undefined` normalizes to three empty arrays. An applier that means "I applied
|
|
137
|
+
* nothing because I could not" must say so with {@link notAttemptedAll} rather
|
|
138
|
+
* than returning nothing, for the same reason `unobservedAll` exists on the read
|
|
139
|
+
* side.
|
|
140
|
+
*/
|
|
141
|
+
export declare function normalizeApply(value: ApplyResult | Partial<NormalizedApply> | undefined): NormalizedApply;
|
|
142
|
+
/**
|
|
143
|
+
* Mark every named resource NOT-ATTEMPTED with one reason — the whole-run
|
|
144
|
+
* failure case (no credentials, no binding, the transport never came up). Core
|
|
145
|
+
* applies this when an applier throws, so a thrown apply degrades to an honest
|
|
146
|
+
* "did not attempt" per resource instead of an empty result that reads as a
|
|
147
|
+
* successful no-op.
|
|
148
|
+
*/
|
|
149
|
+
export declare function notAttemptedAll(refs: Iterable<ApplyRef>, reason: NotAttemptedReason, detail?: string): NotAttemptedResource[];
|
|
150
|
+
/** A resource's identity within one apply, for disjointness checks. */
|
|
151
|
+
export declare function applyRefKey(ref: ApplyRef): string;
|
|
152
|
+
/**
|
|
153
|
+
* Every resource that appears in more than one bucket. Empty is the contract;
|
|
154
|
+
* a non-empty result means the applier both wrote and skipped the same
|
|
155
|
+
* resource, which is not a state that can be true.
|
|
156
|
+
*
|
|
157
|
+
* Pruned is checked against the other two but not against itself: an applier
|
|
158
|
+
* may legitimately apply a resource and prune a different, same-named one only
|
|
159
|
+
* if their kinds differ, and {@link applyRefKey} already separates those.
|
|
160
|
+
*/
|
|
161
|
+
export declare function overlappingRefs(result: NormalizedApply): string[];
|
|
162
|
+
/**
|
|
163
|
+
* Resources in `plan` that the result accounts for in no bucket — the silent
|
|
164
|
+
* drop this contract exists to make impossible.
|
|
165
|
+
*
|
|
166
|
+
* The conformance suite's central assertion. Before #1447, gcp's applier failed
|
|
167
|
+
* exactly this: an unmapped kind was in the plan, in no bucket, and the result
|
|
168
|
+
* looked complete.
|
|
169
|
+
*/
|
|
170
|
+
export declare function unaccountedRefs(plan: Iterable<ApplyRef>, result: NormalizedApply): string[];
|
|
171
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../src/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,UAAU,GACV,cAAc,CAAC;AAEnB,qFAAqF;AACrF,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAO9D,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAEhF;AAED,yDAAyD;AACzD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEhE,yCAAyC;AACzC,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAAwC,CAAC;AAE7F,gFAAgF;AAChF,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,MAAM,EAAE,aAAa,CAAC;IACtB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mDAAmD;AACnD,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C;;;OAGG;IACH,OAAO,EAAE,OAAO,C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,GAAG,MAAM,EAAE,CAYjE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,CAM3F"}
|
package/dist/build.d.ts
CHANGED
|
@@ -94,6 +94,13 @@ export interface BuildOptions {
|
|
|
94
94
|
* `options.plugins.map(p => p.name)`.
|
|
95
95
|
*/
|
|
96
96
|
lexicons?: readonly string[];
|
|
97
|
+
/**
|
|
98
|
+
* chant #1442 — lexicon name → the version of the plugin that served it.
|
|
99
|
+
* Recorded on {@link BuildResult.lexiconVersions} so a build digest can say
|
|
100
|
+
* WHAT interpreted the declarations, not only what was declared. The CLI
|
|
101
|
+
* populates this from `options.plugins`; `build()` only carries it.
|
|
102
|
+
*/
|
|
103
|
+
lexiconVersions?: Readonly<Record<string, string>>;
|
|
97
104
|
/**
|
|
98
105
|
* chant #1045 Phase 2 — opt-in: run-fallback files (or, when {@link fold}
|
|
99
106
|
* isn't set, every file) execute together, isolated, in one sandboxed
|
|
@@ -136,6 +143,20 @@ export interface BuildResult {
|
|
|
136
143
|
* {@link BuildOptions.fold} was set.
|
|
137
144
|
*/
|
|
138
145
|
foldDecisions: FoldDecision[];
|
|
146
|
+
/**
|
|
147
|
+
* chant #1442 — lexicon name → the version of the plugin that served this
|
|
148
|
+
* build, passed through verbatim from {@link BuildOptions.lexiconVersions}.
|
|
149
|
+
*
|
|
150
|
+
* The other half of what a build digest needs. `hashProps` fingerprints the
|
|
151
|
+
* declaration; this records what turned it into output. A lexicon is a
|
|
152
|
+
* generated artifact pinned to an upstream spec, so a bump can change
|
|
153
|
+
* emitted output with no source change at all — and without this the two
|
|
154
|
+
* builds are indistinguishable.
|
|
155
|
+
*
|
|
156
|
+
* Empty when the caller supplied no plugins (`build()` used as a library,
|
|
157
|
+
* and most tests).
|
|
158
|
+
*/
|
|
159
|
+
lexiconVersions: Record<string, string>;
|
|
139
160
|
/**
|
|
140
161
|
* This build's resolved build-time parameters (#1064) — the build
|
|
141
162
|
* provenance record for `params.<name>` values, alongside the existing
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,cAAc,EAAiC,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AAIlE,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAmB,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAKvF;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CACb,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CACtD,CAAC;IACF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,wEAAwE;IACxE,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC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C,GAChC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CActC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,aAAa,EAAE,CAuEjB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,aAAa,EAAE,CA+FjB;AA6ED;;;;;;;GAOG;AACH,wBAAsB,KAAK,CACzB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,UAAU,EAAE,EACzB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CAWtB;AA2KD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,sBAAsB,EAC5B,WAAW,EAAE,UAAU,EAAE,EACzB,KAAK,SAAsB,EAC3B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CAgBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAYnD;;GAEG;AACH,MAAM,WA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AAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAub9E;AAiDD;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAItD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GACxC,MAAM,IAAI,CAmCZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAiDD;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAiDD;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAwkBpE;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAmDzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoSvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAqDlD;;GAEG;AACH,wBAAsB,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CAExD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,WAAW,CAAC,EAAE,MAAM,GACnB,aAAa,CAkBf"}
|
|
@@ -100,7 +100,7 @@ declare function explain(terms: Term[], matches: IRNode[], ir: GraphIR, byId: Ma
|
|
|
100
100
|
*/
|
|
101
101
|
declare function availableAttrs(terms: Term[], ir: GraphIR): void;
|
|
102
102
|
declare function describeTerm(t: Term): string;
|
|
103
|
-
interface Term {
|
|
103
|
+
export interface Term {
|
|
104
104
|
kind: "word" | "kind" | "tag" | "attr" | "edge";
|
|
105
105
|
/** `!term` — the node must NOT satisfy this (#1280). */
|
|
106
106
|
negated?: boolean;
|
|
@@ -109,7 +109,36 @@ interface Term {
|
|
|
109
109
|
/** For edge terms: the direction and the sub-predicate matched at the far end. */
|
|
110
110
|
dir?: "out" | "in";
|
|
111
111
|
sub?: Term;
|
|
112
|
+
/**
|
|
113
|
+
* For kind terms: the kinds this term actually means, resolved against the
|
|
114
|
+
* graph (see {@link resolveKindTerms}). Absent when nothing resolved it, in
|
|
115
|
+
* which case the substring rule applies unchanged.
|
|
116
|
+
*/
|
|
117
|
+
kinds?: Set<string>;
|
|
112
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Decide which kinds a `kind:` term means, given what is in the graph.
|
|
121
|
+
*
|
|
122
|
+
* `kind:` is documented as a substring, and substrings of a CloudFormation type
|
|
123
|
+
* cross kind boundaries: `kind:EC2::VPC` also matches
|
|
124
|
+
* `AWS::EC2::VPCGatewayAttachment`, and `kind:EC2::Subnet` also matches
|
|
125
|
+
* `AWS::EC2::SubnetRouteTableAssociation`. An estate with 6 VPCs answers 9, and
|
|
126
|
+
* the caller has no reason to suspect the number they were given.
|
|
127
|
+
*
|
|
128
|
+
* That cost real answers. Asked how many VPCs have no instances, agents named
|
|
129
|
+
* the right VPCs and reported "9 VPCs in the estate" beside them; the grader
|
|
130
|
+
* failed the answer for contradicting the estate, which it did.
|
|
131
|
+
*
|
|
132
|
+
* So: a term that lines up with `::` boundaries means those kinds and only
|
|
133
|
+
* those. `EC2::VPC` is the last two segments of `AWS::EC2::VPC` and is not any
|
|
134
|
+
* run of segments in `AWS::EC2::VPCGatewayAttachment`, because
|
|
135
|
+
* `VPCGatewayAttachment` is not `VPC`.
|
|
136
|
+
*
|
|
137
|
+
* Substring is kept as the fallback, so `kind:Gateway` still finds both
|
|
138
|
+
* `InternetGateway` and `VPCGatewayAttachment` — a genuine substring search
|
|
139
|
+
* that no segment rule would serve. Most specific wins; nothing else changes.
|
|
140
|
+
*/
|
|
141
|
+
export declare function resolveKindTerms(terms: Term[], nodes: IRNode[]): void;
|
|
113
142
|
declare function parseQuery(query: string): Term[];
|
|
114
143
|
declare function matchTerm(n: IRNode, t: Term, ir?: GraphIR, byId?: Map<string, IRNode>): boolean;
|
|
115
144
|
declare function formatRow(n: IRNode, show: string[]): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuD,KAAK,OAAO,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuD,KAAK,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAY7H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgOpE;AAYD;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;GAaG;AACH,iBAA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,GAAG,CAAC,MAAM,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAiBrE;AA2CD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,CA+CzC;AAeD,iBAAS,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAmCxF;AAED,iBAAS,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CA2BpD;AAED,wCAAwC;AACxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;CAAmI,CAAC"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA2E9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAiRpD;AAmiBD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
package/dist/cli/plugins.d.ts
CHANGED
|
@@ -6,6 +6,26 @@ import { type LexiconPlugin } from "../lexicon.js";
|
|
|
6
6
|
* LexiconPlugin export. Falls back to wrapping a raw Serializer export.
|
|
7
7
|
*/
|
|
8
8
|
export declare function loadPlugin(lexiconName: string): Promise<LexiconPlugin>;
|
|
9
|
+
/**
|
|
10
|
+
* The installed version of each named lexicon package (chant #1442).
|
|
11
|
+
*
|
|
12
|
+
* A `LexiconPlugin` does not carry its own version — `LexiconManifest` does,
|
|
13
|
+
* but that is an artifact type describing generated output, not something the
|
|
14
|
+
* plugin object exposes. The version wanted here is a property of the
|
|
15
|
+
* *installed package*, so it is read from the package's own `package.json`.
|
|
16
|
+
*
|
|
17
|
+
* Resolved by walking up from the package's entry point rather than resolving
|
|
18
|
+
* `<pkg>/package.json` directly: lexicon packages declare an `exports` map
|
|
19
|
+
* that does not include `./package.json`, so the direct specifier is blocked
|
|
20
|
+
* by Node. `./manifest` (→ `dist/manifest.json`) is not used either — it is a
|
|
21
|
+
* `prepack` build artifact, absent in a monorepo dev tree, and its absence
|
|
22
|
+
* once read as four unrelated bugs (#1367).
|
|
23
|
+
*
|
|
24
|
+
* A lexicon whose version cannot be determined is omitted rather than
|
|
25
|
+
* recorded as `"unknown"`: a digest that says nothing is honest, one that
|
|
26
|
+
* says `unknown` compares unequal to itself across builds.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveLexiconVersions(lexiconNames: readonly string[]): Record<string, string>;
|
|
9
29
|
/**
|
|
10
30
|
* Load plugins for all detected lexicon names.
|
|
11
31
|
* Calls `init()` on each plugin if present.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/cli/plugins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/cli/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CA6B5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+B9F;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CA6BlF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnF"}
|
package/dist/codegen/naming.d.ts
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Collision-free naming strategy for TypeScript class names.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* 6-phase algorithm:
|
|
5
5
|
* 1. Priority names (backward compatibility)
|
|
6
|
+
* 1a. Reserved names — names this lexicon has already published (chant #1459)
|
|
6
7
|
* 2. Priority aliases (additional short names)
|
|
7
8
|
* 3. Short names (last segment of type)
|
|
8
9
|
* 4. Collision resolution (service-prefixed)
|
|
9
10
|
* 5. Property type aliases (globally unique defs)
|
|
11
|
+
*
|
|
12
|
+
* ## Why phase 1a exists
|
|
13
|
+
*
|
|
14
|
+
* Phases 3 and 4 assign a short name to whoever asks first and service-qualify
|
|
15
|
+
* everyone after. Membership of that contest is the whole input set, so a
|
|
16
|
+
* resource's name was a function of its NEIGHBOURS: removing
|
|
17
|
+
* `AWS::Athena::Session` upstream freed `Session`, and `AWS::Macie::Session`
|
|
18
|
+
* silently changed from `MacieSession` to `Session` — a breaking rename for a
|
|
19
|
+
* resource whose schema had not moved. Adding a resource does the same in
|
|
20
|
+
* reverse: `AWS::QuickSight::Space` appearing renamed `AWS::SageMaker::Space`
|
|
21
|
+
* from `Space` to `SageMakerSpace`.
|
|
22
|
+
*
|
|
23
|
+
* Worse, it is reversible. These are read-only registry types that come and go,
|
|
24
|
+
* so a name could flip back on the next upgrade and break consumers again.
|
|
25
|
+
*
|
|
26
|
+
* Reserved names invert the bias: a name that has already shipped belongs to
|
|
27
|
+
* the type that shipped it, and a newcomer colliding with it gets qualified
|
|
28
|
+
* instead. A published name then changes only when its own type disappears,
|
|
29
|
+
* which is a genuine breaking change rather than an incidental one.
|
|
10
30
|
*/
|
|
11
31
|
/**
|
|
12
32
|
* Minimal input required by the naming strategy — avoids coupling
|
|
@@ -35,7 +55,34 @@ export interface NamingConfig {
|
|
|
35
55
|
shortName: (typeName: string) => string;
|
|
36
56
|
/** Extract the service name from a type name (e.g. "Vendor::Service::Resource" → "Service"). */
|
|
37
57
|
serviceName: (typeName: string) => string;
|
|
58
|
+
/**
|
|
59
|
+
* chant #1459 — spec type name → the TypeScript name this lexicon has
|
|
60
|
+
* already published for it, normally read from the committed
|
|
61
|
+
* `surface.snapshot.json` via {@link reservedNamesFromSnapshot}.
|
|
62
|
+
*
|
|
63
|
+
* Claimed before short names are contested, so a shipped name is not taken
|
|
64
|
+
* away from its owner by an unrelated upstream change. Omit for a lexicon
|
|
65
|
+
* with no published surface yet; an entry for a type that is no longer in
|
|
66
|
+
* the input is ignored, so a removed type frees its name for reuse.
|
|
67
|
+
*/
|
|
68
|
+
reservedNames?: Record<string, string>;
|
|
38
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* The names a lexicon has already published, read from a committed surface
|
|
72
|
+
* snapshot (chant #1459).
|
|
73
|
+
*
|
|
74
|
+
* The snapshot is keyed by TypeScript name with the spec type inside, which is
|
|
75
|
+
* exactly the mapping phase 1a needs, inverted. Only `resource` entries are
|
|
76
|
+
* reserved: property-type names are derived from their owning resource's name
|
|
77
|
+
* (phase 5), so pinning the resource pins them, and reserving them separately
|
|
78
|
+
* would freeze aliases that are meant to follow their parent.
|
|
79
|
+
*/
|
|
80
|
+
export declare function reservedNamesFromSnapshot(snapshot: {
|
|
81
|
+
entries?: Record<string, {
|
|
82
|
+
kind?: string;
|
|
83
|
+
resourceType?: string;
|
|
84
|
+
}>;
|
|
85
|
+
} | undefined): Record<string, string>;
|
|
39
86
|
export declare class NamingStrategy {
|
|
40
87
|
private config;
|
|
41
88
|
private assigned;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C,yDAAyD;IACzD,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChE,+DAA+D;IAC/D,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,+FAA+F;IAC/F,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,gGAAgG;IAChG,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,SAAS,GAC3F,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASxB;AAED,qBAAa,cAAc;IAMW,OAAO,CAAC,MAAM;IALlD,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,gBAAgB,CAA0C;gBAEtD,OAAO,EAAE,WAAW,EAAE,EAAU,MAAM,EAAE,YAAY;IA+HhE,gDAAgD;IAChD,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI7C,8CAA8C;IAC9C,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IAInC,sDAAsD;IACtD,cAAc,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;IAcpC,8CAA8C;IAC9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;CAGvE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAG5E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Thrown when neither copy of the registry exists — carries the fix. */
|
|
2
|
+
export declare class LexiconRegistryMissingError extends Error {
|
|
3
|
+
readonly lexicon: string;
|
|
4
|
+
constructor(lexicon: string);
|
|
5
|
+
}
|
|
6
|
+
/** One entry in a lexicon's generated registry. */
|
|
7
|
+
export interface LexiconRegistryEntry {
|
|
8
|
+
resourceType: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Read a lexicon's generated registry, dev copy first.
|
|
14
|
+
*
|
|
15
|
+
* `pkgDir` is the lexicon PACKAGE directory (the one holding `src/` and
|
|
16
|
+
* `dist/`) — callers pass an `import.meta.dirname`-derived path, so this stays
|
|
17
|
+
* free of assumptions about where it is imported from. Throws
|
|
18
|
+
* {@link LexiconRegistryMissingError} when neither copy exists, rather than
|
|
19
|
+
* returning an empty map that reads downstream as a lexicon with no resource
|
|
20
|
+
* types at all.
|
|
21
|
+
*/
|
|
22
|
+
export declare function loadLexiconRegistry(pkgDir: string, lexicon: string): Record<string, LexiconRegistryEntry>;
|
|
23
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/codegen/registry.ts"],"names":[],"mappings":"AA2BA,yEAAyE;AACzE,qBAAa,2BAA4B,SAAQ,KAAK;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM;gBAAf,OAAO,EAAE,MAAM;CAQrC;AAED,mDAAmD;AACnD,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAYzG"}
|
|
@@ -14,6 +14,11 @@ export interface ValidateResult {
|
|
|
14
14
|
success: boolean;
|
|
15
15
|
checks: ValidateCheck[];
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Set by the publish workflow to arm the release-time surface gate
|
|
19
|
+
* (chant #1473). Absent in ordinary CI, where upstream drift is expected.
|
|
20
|
+
*/
|
|
21
|
+
export declare const RELEASE_GATE_ENV = "CHANT_RELEASE_GATE";
|
|
17
22
|
export interface LexiconValidationConfig {
|
|
18
23
|
/** Filename of the lexicon JSON (e.g. "lexicon-mydom.json") */
|
|
19
24
|
lexiconJsonFilename: string;
|
|
@@ -29,6 +34,32 @@ export interface LexiconValidationConfig {
|
|
|
29
34
|
requiredNamesMatchSubstring?: boolean;
|
|
30
35
|
/** Base path of the lexicon package */
|
|
31
36
|
basePath: string;
|
|
37
|
+
/**
|
|
38
|
+
* chant #1473 — this lexicon's release is gated on the generated API
|
|
39
|
+
* matching the committed `surface.snapshot.json`.
|
|
40
|
+
*
|
|
41
|
+
* Two conditions, both required. The lexicon opts in here, AND
|
|
42
|
+
* {@link RELEASE_GATE_ENV} is set — which the publish workflow does and
|
|
43
|
+
* ordinary CI does not.
|
|
44
|
+
*
|
|
45
|
+
* The env half is not caution, it is correctness. `validate` runs on every
|
|
46
|
+
* PR, and the upstream a lexicon generates from can move at any time: the
|
|
47
|
+
* CloudFormation archive republishes schemas several times a day, and some
|
|
48
|
+
* of those edits do change the surface. A hard surface check on every PR
|
|
49
|
+
* would turn any unrelated change red the moment upstream moved, which is
|
|
50
|
+
* the same trap the spec pin fell into one level down. Drift between
|
|
51
|
+
* releases is expected and is what the scheduled lexicon-upgrade job exists
|
|
52
|
+
* to report (#1423).
|
|
53
|
+
*
|
|
54
|
+
* What must never happen is *publishing* a surface nobody reviewed. That is
|
|
55
|
+
* a release-time property, so it is checked at release time.
|
|
56
|
+
*
|
|
57
|
+
* Opt-in per lexicon because k8s and azure are currently adrift from their
|
|
58
|
+
* own baselines (393 and 483 entries, #1475).
|
|
59
|
+
*/
|
|
60
|
+
checkSurfaceSnapshot?: boolean;
|
|
61
|
+
/** Environment to read {@link RELEASE_GATE_ENV} from. Defaults to `process.env`; overridden in tests. */
|
|
62
|
+
env?: NodeJS.ProcessEnv;
|
|
32
63
|
/** Path to the generated directory (defaults to basePath/src/generated) */
|
|
33
64
|
generatedDir?: string;
|
|
34
65
|
/** Coverage thresholds (optional) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/codegen/validate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/codegen/validate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGvF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yEAAyE;IACzE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,yGAAyG;IACzG,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAED;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,CAqJvG;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAWlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/components/sandbox/driver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/components/sandbox/driver.ts"],"names":[],"mappings":"AAuCA,MAAM,WAAW,8BAA8B;IAC7C,+EAA+E;IAC/E,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B;AAOD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,8BAA8B,GAAG,MAAM,CAsE7F"}
|
package/dist/composite.d.ts
CHANGED
|
@@ -4,13 +4,32 @@ import { type Declarable } from "./declarable.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const COMPOSITE_MARKER: unique symbol;
|
|
6
6
|
/**
|
|
7
|
-
* A record of named
|
|
7
|
+
* A record of named members produced by a composite factory.
|
|
8
|
+
*
|
|
9
|
+
* What a consumer reads off `instance.members`. Deliberately narrow: every
|
|
10
|
+
* value here is a real Declarable, so `.entityType` and friends resolve without
|
|
11
|
+
* narrowing. What a factory may RETURN is wider — see
|
|
12
|
+
* {@link CompositeFactoryMembers}.
|
|
8
13
|
*/
|
|
9
14
|
export type CompositeMembers = Record<string, Declarable>;
|
|
15
|
+
/**
|
|
16
|
+
* What a factory is allowed to RETURN — {@link CompositeMembers} plus
|
|
17
|
+
* `undefined`, used only as the generic constraint.
|
|
18
|
+
*
|
|
19
|
+
* A member produced by a conditional spread (`...(cond ? { policy } : {})`) is
|
|
20
|
+
* typed optional, and an optional property is not assignable to a
|
|
21
|
+
* required-value record. Widening the constraint lets such a factory typecheck;
|
|
22
|
+
* widening `CompositeMembers` itself would make every member possibly-undefined
|
|
23
|
+
* for everyone reading `instance.members`, which is a worse trade.
|
|
24
|
+
*
|
|
25
|
+
* The key is absent at runtime rather than present-and-undefined, so nothing
|
|
26
|
+
* reaches the validation in `Composite` below.
|
|
27
|
+
*/
|
|
28
|
+
export type CompositeFactoryMembers = Record<string, Declarable | CompositeInstance<any> | undefined> | CompositeInstance<any>;
|
|
10
29
|
/**
|
|
11
30
|
* The result of instantiating a composite — contains the marker and expanded members.
|
|
12
31
|
*/
|
|
13
|
-
export interface CompositeInstance<M extends
|
|
32
|
+
export interface CompositeInstance<M extends CompositeFactoryMembers = CompositeMembers> {
|
|
14
33
|
readonly [COMPOSITE_MARKER]: true;
|
|
15
34
|
readonly members: M;
|
|
16
35
|
readonly _definition: CompositeDefinition<any, M>;
|
|
@@ -18,7 +37,7 @@ export interface CompositeInstance<M extends CompositeMembers = CompositeMembers
|
|
|
18
37
|
/**
|
|
19
38
|
* A composite definition: a callable that produces a CompositeInstance.
|
|
20
39
|
*/
|
|
21
|
-
export interface CompositeDefinition<P, M extends
|
|
40
|
+
export interface CompositeDefinition<P, M extends CompositeFactoryMembers = CompositeMembers> {
|
|
22
41
|
(props: P): CompositeInstance<M> & M;
|
|
23
42
|
readonly compositeName: string;
|
|
24
43
|
readonly _id: symbol;
|
|
@@ -50,7 +69,7 @@ export declare class CompositeRegistry {
|
|
|
50
69
|
* export const storage = SecureStorage({ name: "data" });
|
|
51
70
|
* ```
|
|
52
71
|
*/
|
|
53
|
-
export declare function Composite<P, M extends
|
|
72
|
+
export declare function Composite<P, M extends CompositeFactoryMembers = CompositeMembers>(factory: (props: P) => M, name?: string): CompositeDefinition<P, M>;
|
|
54
73
|
/**
|
|
55
74
|
* Expands a CompositeInstance into a flat Map of prefixed entity names to Declarables.
|
|
56
75
|
* Handles nested composites recursively.
|
package/dist/composite.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../src/composite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAG7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAAgC,CAAC;AAE9D
|
|
1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D;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,eAAuC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,cAAc,eAA0C,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAClD,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,EAClC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAM1B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,EAC9C,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,EAC/D,KAAK,EAAE,CAAC,EACR,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,CAAC,CAEH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7D,IAAI,EAAE,CAAC,EACP,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GACrB,CAAC,CAqBH"}
|
|
@@ -54,6 +54,17 @@ export interface DeepResourceObservation {
|
|
|
54
54
|
physicalId?: string;
|
|
55
55
|
/** The normalized live property tree. JSON-safe. */
|
|
56
56
|
properties: Record<string, unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* Path → the field manager that owns it, where the substrate records one
|
|
59
|
+
* (#1189). Additive to the v1 envelope: a lexicon with no per-field ownership
|
|
60
|
+
* omits it, and every consumer behaves exactly as before.
|
|
61
|
+
*
|
|
62
|
+
* Only Kubernetes has this — the API server maintains `managedFields`
|
|
63
|
+
* server-side. It is the difference between "this field is foreign" and
|
|
64
|
+
* "`hpa-controller` owns `spec.replicas`", which are the same category and
|
|
65
|
+
* very different answers to an operator.
|
|
66
|
+
*/
|
|
67
|
+
fieldOwners?: Record<string, string>;
|
|
57
68
|
}
|
|
58
69
|
/**
|
|
59
70
|
* The deep observation envelope. Explicitly versioned and discriminated by
|