@intentius/chant 0.19.1 → 0.21.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.
Files changed (164) hide show
  1. package/dist/build-params.d.ts +108 -0
  2. package/dist/build-params.d.ts.map +1 -0
  3. package/dist/build.d.ts +79 -1
  4. package/dist/build.d.ts.map +1 -1
  5. package/dist/cli/commands/build.d.ts +31 -0
  6. package/dist/cli/commands/build.d.ts.map +1 -1
  7. package/dist/cli/commands/check-lexicon-examples.d.ts +41 -0
  8. package/dist/cli/commands/check-lexicon-examples.d.ts.map +1 -0
  9. package/dist/cli/commands/check-lexicon-intrinsics.d.ts +71 -0
  10. package/dist/cli/commands/check-lexicon-intrinsics.d.ts.map +1 -0
  11. package/dist/cli/commands/check-lexicon.d.ts +1 -1
  12. package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
  13. package/dist/cli/commands/lint.d.ts +27 -0
  14. package/dist/cli/commands/lint.d.ts.map +1 -1
  15. package/dist/cli/handlers/build.d.ts.map +1 -1
  16. package/dist/cli/handlers/components.d.ts.map +1 -1
  17. package/dist/cli/handlers/lint.d.ts.map +1 -1
  18. package/dist/cli/handlers/run-client.d.ts +1 -1
  19. package/dist/cli/handlers/run-client.d.ts.map +1 -1
  20. package/dist/cli/handlers/run.d.ts.map +1 -1
  21. package/dist/cli/main.d.ts.map +1 -1
  22. package/dist/cli/plugins.d.ts +16 -0
  23. package/dist/cli/plugins.d.ts.map +1 -1
  24. package/dist/cli/registry.d.ts +10 -0
  25. package/dist/cli/registry.d.ts.map +1 -1
  26. package/dist/codegen/docs-sections.d.ts.map +1 -1
  27. package/dist/codegen/docs-types.d.ts +2 -0
  28. package/dist/codegen/docs-types.d.ts.map +1 -1
  29. package/dist/components/cli-support.d.ts +12 -5
  30. package/dist/components/cli-support.d.ts.map +1 -1
  31. package/dist/components/discover.d.ts +62 -7
  32. package/dist/components/discover.d.ts.map +1 -1
  33. package/dist/components/sandbox/driver.d.ts +12 -0
  34. package/dist/components/sandbox/driver.d.ts.map +1 -0
  35. package/dist/components/sandbox/run.d.ts +42 -0
  36. package/dist/components/sandbox/run.d.ts.map +1 -0
  37. package/dist/composite.d.ts +5 -0
  38. package/dist/composite.d.ts.map +1 -1
  39. package/dist/config.d.ts +71 -0
  40. package/dist/config.d.ts.map +1 -1
  41. package/dist/declarable.d.ts +16 -0
  42. package/dist/declarable.d.ts.map +1 -1
  43. package/dist/discovery/collect.d.ts.map +1 -1
  44. package/dist/discovery/entity-wire-codec.d.ts +166 -0
  45. package/dist/discovery/entity-wire-codec.d.ts.map +1 -0
  46. package/dist/discovery/entity-wire.d.ts +50 -0
  47. package/dist/discovery/entity-wire.d.ts.map +1 -0
  48. package/dist/discovery/fold-import.d.ts +239 -0
  49. package/dist/discovery/fold-import.d.ts.map +1 -0
  50. package/dist/discovery/index.d.ts +74 -1
  51. package/dist/discovery/index.d.ts.map +1 -1
  52. package/dist/discovery/sandbox/bundle.d.ts +18 -0
  53. package/dist/discovery/sandbox/bundle.d.ts.map +1 -0
  54. package/dist/discovery/sandbox/child-errors.d.ts +15 -0
  55. package/dist/discovery/sandbox/child-errors.d.ts.map +1 -0
  56. package/dist/discovery/sandbox/driver.d.ts +13 -0
  57. package/dist/discovery/sandbox/driver.d.ts.map +1 -0
  58. package/dist/discovery/sandbox/run.d.ts +69 -0
  59. package/dist/discovery/sandbox/run.d.ts.map +1 -0
  60. package/dist/errors.d.ts +9 -1
  61. package/dist/errors.d.ts.map +1 -1
  62. package/dist/fold/fold.d.ts +299 -0
  63. package/dist/fold/fold.d.ts.map +1 -0
  64. package/dist/fold/foldable-helpers.d.ts +121 -0
  65. package/dist/fold/foldable-helpers.d.ts.map +1 -0
  66. package/dist/fold/subset.d.ts +134 -0
  67. package/dist/fold/subset.d.ts.map +1 -0
  68. package/dist/index.d.ts +2 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/lexicon-output.d.ts +7 -2
  71. package/dist/lexicon-output.d.ts.map +1 -1
  72. package/dist/lexicon-schema.d.ts +4 -2
  73. package/dist/lexicon-schema.d.ts.map +1 -1
  74. package/dist/lexicon.d.ts +131 -1
  75. package/dist/lexicon.d.ts.map +1 -1
  76. package/dist/lifecycle/release-ledger.d.ts +11 -0
  77. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  78. package/dist/lint/component-checks.d.ts +7 -1
  79. package/dist/lint/component-checks.d.ts.map +1 -1
  80. package/dist/lint/rules/evl001-non-literal-expression.d.ts.map +1 -1
  81. package/dist/lint/rules/evl003-dynamic-property-access.d.ts.map +1 -1
  82. package/dist/params.d.ts +60 -0
  83. package/dist/params.d.ts.map +1 -0
  84. package/dist/provenance.d.ts +21 -0
  85. package/dist/provenance.d.ts.map +1 -1
  86. package/dist/runtime.d.ts +10 -1
  87. package/dist/runtime.d.ts.map +1 -1
  88. package/package.json +2 -1
  89. package/src/build-params.test.ts +144 -0
  90. package/src/build-params.ts +207 -0
  91. package/src/build.test.ts +38 -0
  92. package/src/build.ts +144 -7
  93. package/src/cli/commands/build.test.ts +220 -2
  94. package/src/cli/commands/build.ts +111 -3
  95. package/src/cli/commands/check-lexicon-examples.test.ts +92 -0
  96. package/src/cli/commands/check-lexicon-examples.ts +103 -0
  97. package/src/cli/commands/check-lexicon-intrinsics.test.ts +179 -0
  98. package/src/cli/commands/check-lexicon-intrinsics.ts +348 -0
  99. package/src/cli/commands/check-lexicon.test.ts +34 -0
  100. package/src/cli/commands/check-lexicon.ts +137 -1
  101. package/src/cli/commands/lint.ts +31 -3
  102. package/src/cli/commands/onboard.ts +1 -1
  103. package/src/cli/component-security-boundary.test.ts +170 -0
  104. package/src/cli/handlers/build.ts +24 -3
  105. package/src/cli/handlers/components.ts +9 -2
  106. package/src/cli/handlers/dev.ts +1 -1
  107. package/src/cli/handlers/graph.ts +7 -5
  108. package/src/cli/handlers/lifecycle.ts +2 -2
  109. package/src/cli/handlers/lint.ts +2 -0
  110. package/src/cli/handlers/misc.ts +2 -2
  111. package/src/cli/handlers/run-client.ts +1 -1
  112. package/src/cli/handlers/run.ts +20 -5
  113. package/src/cli/main.test.ts +22 -0
  114. package/src/cli/main.ts +39 -0
  115. package/src/cli/plugins.ts +20 -4
  116. package/src/cli/registry.ts +10 -0
  117. package/src/cli/security-boundary.test.ts +135 -0
  118. package/src/codegen/docs-sections.test.ts +67 -0
  119. package/src/codegen/docs-sections.ts +7 -3
  120. package/src/codegen/docs-types.ts +2 -0
  121. package/src/components/cli-support.ts +22 -10
  122. package/src/components/discover.ts +127 -25
  123. package/src/components/sandbox/driver.ts +114 -0
  124. package/src/components/sandbox/run.test.ts +185 -0
  125. package/src/components/sandbox/run.ts +177 -0
  126. package/src/composite.test.ts +21 -0
  127. package/src/composite.ts +20 -1
  128. package/src/config.ts +81 -0
  129. package/src/declarable.ts +20 -0
  130. package/src/discovery/collect.ts +17 -3
  131. package/src/discovery/entity-wire-codec.ts +487 -0
  132. package/src/discovery/entity-wire.test.ts +240 -0
  133. package/src/discovery/entity-wire.ts +67 -0
  134. package/src/discovery/fold-import.test.ts +1598 -0
  135. package/src/discovery/fold-import.ts +1998 -0
  136. package/src/discovery/index.test.ts +191 -1
  137. package/src/discovery/index.ts +242 -1
  138. package/src/discovery/sandbox/bundle.ts +218 -0
  139. package/src/discovery/sandbox/child-errors.ts +65 -0
  140. package/src/discovery/sandbox/driver.ts +147 -0
  141. package/src/discovery/sandbox/run.test.ts +179 -0
  142. package/src/discovery/sandbox/run.ts +196 -0
  143. package/src/errors.ts +9 -1
  144. package/src/fold/fold.test.ts +812 -0
  145. package/src/fold/fold.ts +805 -0
  146. package/src/fold/foldable-helpers.ts +171 -0
  147. package/src/fold/subset-doc-parity.test.ts +210 -0
  148. package/src/fold/subset.test.ts +352 -0
  149. package/src/fold/subset.ts +383 -0
  150. package/src/index.ts +2 -0
  151. package/src/lexicon-output.ts +7 -2
  152. package/src/lexicon-schema.test.ts +57 -0
  153. package/src/lexicon-schema.ts +8 -1
  154. package/src/lexicon.ts +132 -1
  155. package/src/lifecycle/git.test.ts +10 -5
  156. package/src/lifecycle/release-ledger.test.ts +28 -0
  157. package/src/lifecycle/release-ledger.ts +11 -0
  158. package/src/lint/component-checks.ts +8 -1
  159. package/src/lint/rules/evl001-non-literal-expression.ts +26 -110
  160. package/src/lint/rules/evl003-dynamic-property-access.ts +11 -2
  161. package/src/params.test.ts +22 -0
  162. package/src/params.ts +66 -0
  163. package/src/provenance.ts +22 -0
  164. package/src/runtime.ts +11 -2
@@ -0,0 +1,108 @@
1
+ import type { BuildParamProvenance } from "./provenance.js";
2
+ /**
3
+ * Build-time parameter declaration + resolution (chant #1064, follow-up to
4
+ * epic #1019's fold work — see issue #1064's "DECISION: option 1" comment).
5
+ *
6
+ * A build-time parameter is declared in `chant.config.ts`'s `buildParams`
7
+ * (name, type, optional `default`/`enum`/`env` mapping), supplied to `chant
8
+ * build` (a `--param name=value` flag, a `--params-file` JSON file, or a
9
+ * declared `env` var), and referenced from source as `params.<name>` (see
10
+ * ./params.ts) — never as an ambient `process.env` read. This module owns
11
+ * declaration + precedence + validation; ./params.ts is the plain runtime
12
+ * object source references; ../discovery/fold-import.ts is what makes a
13
+ * `params.<name>` reference fold to a literal instead of a symbolic node.
14
+ *
15
+ * This is NOT the deploy-time `Parameter` class (`lexicons/aws/src/parameter.ts`)
16
+ * — that resolves when a CloudFormation stack deploys; this resolves before
17
+ * the template is even synthesized, so its value can change which resources
18
+ * are produced at all. See ./params.ts's module doc for the full distinction.
19
+ */
20
+ /** A build-time parameter's resolved (and declared-default/enum) value — always a scalar. */
21
+ export type BuildParamValue = string | number | boolean;
22
+ /**
23
+ * One declared build-time parameter (`chant.config.ts`'s `buildParams.<name>`).
24
+ */
25
+ export interface BuildParamDef {
26
+ /** The value's declared type — supplied strings (CLI flags, env vars, JSON-file strings) are coerced to it. */
27
+ type: "string" | "number" | "boolean";
28
+ /** Value used when no `--param`/`--params-file`/declared `env` var supplies one. Omit to require an explicit value every build. */
29
+ default?: BuildParamValue;
30
+ /**
31
+ * Allowed values — a resolved value outside this list is a build error
32
+ * naming the parameter (never a thrown error from user source). Replaces
33
+ * the hand-written `if (!VALID.includes(raw)) throw ...` pattern loomster's
34
+ * `params.ts` files used before migrating to this mechanism.
35
+ */
36
+ enum?: readonly BuildParamValue[];
37
+ /**
38
+ * Opt-in, EXPLICITLY declared environment-variable fallback — e.g. `env:
39
+ * "LOOM_TIER"`. This is the only place an env var may feed a build-time
40
+ * parameter: reading `process.env` directly from project source is never
41
+ * supported (see ./params.ts's module doc and ../fold/fold.ts's pointed
42
+ * error for a bare `process` reference). Consulted only when no
43
+ * `--param`/`--params-file` value was supplied for this parameter.
44
+ */
45
+ env?: string;
46
+ /**
47
+ * Set `false` to make an unresolved value NOT a build error: `params.<name>`
48
+ * is simply omitted (reads as plain JS `undefined` — a normal, un-erroring
49
+ * property access on an object missing that key), instead of the default
50
+ * behavior of requiring every declared parameter to resolve to something.
51
+ * For a value that is genuinely optional with no meaningful default (an ARN
52
+ * that references an existing resource only on some deploys, a CIDR
53
+ * override, a JSON blob) — the same "unset means the composite decides"
54
+ * shape a hand-written `process.env.X || undefined` used to express.
55
+ * Default `true` (a declared parameter must resolve to a value).
56
+ */
57
+ required?: boolean;
58
+ /** Human-readable description, surfaced in error messages and docs generation. */
59
+ description?: string;
60
+ }
61
+ /** A project's full set of declared build-time parameters, keyed by name. */
62
+ export type BuildParamsConfig = Record<string, BuildParamDef>;
63
+ /** Raw, not-yet-validated inputs {@link resolveBuildParams} resolves against a project's declared {@link BuildParamsConfig}. */
64
+ export interface BuildParamsInput {
65
+ /** `--param name=value` flags, repeated — highest precedence. */
66
+ cli?: Record<string, string>;
67
+ /** Parsed contents of a `--params-file` JSON file — second precedence. */
68
+ fromFile?: Record<string, unknown>;
69
+ /** The process environment, consulted only for a parameter that declares an `env` mapping, and only once `cli`/`fromFile` have no value for it. */
70
+ env?: Record<string, string | undefined>;
71
+ }
72
+ /** Result of resolving a project's declared parameters against one build invocation's inputs. */
73
+ export interface BuildParamsResolution {
74
+ /** Every successfully resolved parameter — see {@link BuildParamProvenance}. Empty when the project declares none. */
75
+ provenance: BuildParamProvenance[];
76
+ /**
77
+ * Validation failures, each naming the offending parameter — an unknown
78
+ * `--param`/`--params-file` key, a missing required value, a type mismatch,
79
+ * or a value outside a declared `enum`. Reported by the CLI as a build
80
+ * error (chant #1064's acceptance criterion: "not a thrown error inside
81
+ * user source"); never thrown from here.
82
+ */
83
+ errors: string[];
84
+ }
85
+ /**
86
+ * Resolve a project's declared build-time parameters against one build's
87
+ * supplied inputs. Precedence per parameter, most to least specific:
88
+ * `cli` (`--param name=value`) > `fromFile` (`--params-file`) > the
89
+ * parameter's own declared `env` mapping (only if set) > `def.default`.
90
+ *
91
+ * A parameter with no declared `default` and no value from any source is a
92
+ * build error, not a silently-`undefined` value — a build-time parameter
93
+ * exists specifically so a project never has an invisible dependency on
94
+ * ambient state; leaving one unresolved would just reintroduce that under a
95
+ * different name. Every failure is collected (not thrown), each naming the
96
+ * offending parameter, so a single invocation reports every problem at once.
97
+ *
98
+ * The one opt-out is `def.required: false` — for a parameter that is
99
+ * genuinely optional with no meaningful default (an ARN that only applies to
100
+ * a reference-existing deploy, a CIDR override), an unresolved value is
101
+ * simply omitted from `provenance`/`params` rather than an error; source
102
+ * reads it as plain `undefined`, same as before migrating off
103
+ * `process.env.X || undefined`.
104
+ */
105
+ export declare function resolveBuildParams(defs: BuildParamsConfig | undefined, input: BuildParamsInput): BuildParamsResolution;
106
+ /** Project the resolved provenance records down to a plain `{ name: value }` map — what actually gets bound to `params.<name>` (see ./params.ts). */
107
+ export declare function buildParamValues(provenance: readonly BuildParamProvenance[]): Record<string, BuildParamValue>;
108
+ //# sourceMappingURL=build-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-params.d.ts","sourceRoot":"","sources":["../src/build-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;;;;;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U,EAAE,SAAS,oBAAoB,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAE7G"}
package/dist/build.d.ts CHANGED
@@ -1,8 +1,13 @@
1
1
  import type { Declarable } from "./declarable.js";
2
2
  import type { Serializer, SerializerResult } from "./serializer.js";
3
3
  import type { OwnershipMarker } from "./ownership.js";
4
- import type { DiscoveryError, BuildError } from "./errors.js";
4
+ import type { BuildError } from "./errors.js";
5
+ import type { IntrinsicDef } from "./lexicon.js";
6
+ import type { BuildParamProvenance } from "./provenance.js";
7
+ import { DiscoveryError } from "./errors.js";
5
8
  import { LexiconOutput } from "./lexicon-output.js";
9
+ import { type FoldDecision } from "./discovery/index.js";
10
+ import { type DiscoveredEntitiesJson } from "./discovery/entity-wire.js";
6
11
  /**
7
12
  * Build manifest describing cross-lexicon outputs and deployment order
8
13
  */
@@ -68,6 +73,41 @@ export interface BuildOptions {
68
73
  * {@link SerializeContext} so a dialect can read its lexicon-scoped settings.
69
74
  */
70
75
  config?: Record<string, unknown>;
76
+ /**
77
+ * chant #1022 (epic #1019) — opt-in: fold source modules statically
78
+ * instead of importing/running them, falling back to run per-file for
79
+ * anything the folder can't represent. Default `false` (unchanged
80
+ * behavior). See {@link DiscoveryOptions.fold} in `./discovery/index`.
81
+ */
82
+ fold?: boolean;
83
+ /**
84
+ * chant #1039 — lexicon-registered intrinsic tags (e.g. AWS's `Sub`) to
85
+ * recognize while folding. Passed straight through to
86
+ * {@link DiscoveryOptions.intrinsics}; ignored unless {@link fold} is set.
87
+ * The CLI populates this from `options.plugins.flatMap(p => p.intrinsics?.() ?? [])`.
88
+ */
89
+ intrinsics?: IntrinsicDef[];
90
+ /**
91
+ * chant #1045 Phase 2 — opt-in: run-fallback files (or, when {@link fold}
92
+ * isn't set, every file) execute together, isolated, in one sandboxed
93
+ * child process instead of in-process. Passed straight through to
94
+ * {@link DiscoveryOptions.sandbox} in `./discovery/index`. Default `false`
95
+ * (unchanged behavior/performance).
96
+ */
97
+ sandbox?: boolean;
98
+ /**
99
+ * chant #1064 — this build's resolved build-time parameter values (see
100
+ * ./build-params.ts's `resolveBuildParams`, driven by the CLI's
101
+ * `--param`/`--params-file`/declared `env` mapping/`chant.config.ts`
102
+ * `buildParams` defaults). Threaded through to `discover()`, which
103
+ * populates `./params.ts`'s shared `params` object before any project file
104
+ * is imported or folded, and into the fold session so a `params.<name>`
105
+ * reference resolves to a literal. Passed through verbatim onto
106
+ * {@link BuildResult.buildParams} — `build()` itself does no
107
+ * declaration/validation (that's the CLI/config layer's job); it only
108
+ * carries the already-resolved records for provenance.
109
+ */
110
+ buildParams?: BuildParamProvenance[];
71
111
  }
72
112
  export interface BuildResult {
73
113
  /** Map of lexicon name to serialized output (string or multi-file result) */
@@ -84,6 +124,19 @@ export interface BuildResult {
84
124
  manifest: BuildManifest;
85
125
  /** Number of source files processed */
86
126
  sourceFileCount: number;
127
+ /**
128
+ * Per-file fold-vs-run decisions (#1022). Empty unless
129
+ * {@link BuildOptions.fold} was set.
130
+ */
131
+ foldDecisions: FoldDecision[];
132
+ /**
133
+ * This build's resolved build-time parameters (#1064) — the build
134
+ * provenance record for `params.<name>` values, alongside the existing
135
+ * entity-level provenance (./provenance.ts). Passed through verbatim from
136
+ * {@link BuildOptions.buildParams}; empty when the project declares/
137
+ * supplies none.
138
+ */
139
+ buildParams: BuildParamProvenance[];
87
140
  }
88
141
  /**
89
142
  * Partitions entities by their lexicon field.
@@ -117,4 +170,29 @@ export declare function detectCrossLexiconRefs(entities: Map<string, Declarable>
117
170
  * @returns BuildResult with outputs, entities, warnings, and errors
118
171
  */
119
172
  export declare function build(path: string, serializers: Serializer[], parentBuildStack?: Set<string>, options?: BuildOptions): Promise<BuildResult>;
173
+ /**
174
+ * chant #1045 (Phase 1) — build directly from a JSON-encoded discovery
175
+ * result (see {@link discoverEntitySetJson} in `./discovery/entity-wire.ts`)
176
+ * instead of pointing `build()` at a directory.
177
+ *
178
+ * Decodes the wire entity set back into a live entities map — see
179
+ * `decodeEntitySet`'s doc for why the decoded entities are functionally
180
+ * indistinguishable from what `discover()` produces in-process (real
181
+ * `AttrRef` instances, whole-entity identity preserved by reference, not by
182
+ * clone) — then runs the exact same post-discovery pipeline `build()` uses
183
+ * ({@link buildFromDiscoveryResult}), so partitioning, output detection,
184
+ * serialization, and the manifest are the SAME code path, not a fork of it.
185
+ *
186
+ * Dependencies aren't part of the wire format: unlike entities, a dependency
187
+ * graph is plain name-to-name data with no identity problem, so it's cheaper
188
+ * and more honest to recompute it from the decoded entities via the same
189
+ * `buildDependencyGraph()` `discover()` itself uses than to carry a second,
190
+ * redundant wire shape across the boundary.
191
+ *
192
+ * @param label - Used only to seed circular-nested-stack detection; a JSON
193
+ * entity set has no single source directory the way a `build(path, …)`
194
+ * call does. Inert today — child projects (`nestedStack()`) aren't
195
+ * supported by the JSON boundary yet (see `discovery/entity-wire.ts`).
196
+ */
197
+ export declare function buildFromEntitiesJson(json: DiscoveredEntitiesJson, serializers: Serializer[], label?: string, parentBuildStack?: Set<string>, options?: BuildOptions): Promise<BuildResult>;
120
198
  //# sourceMappingURL=build.d.ts.map
@@ -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,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AAOlE;;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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AK,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,CAUtB;AA0KD;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -22,6 +22,35 @@ export interface BuildOptions {
22
22
  * policy can branch on environment.
23
23
  */
24
24
  env?: string;
25
+ /**
26
+ * chant #1022 (epic #1019) — opt-in: fold source modules statically
27
+ * instead of importing/running them (`chant build --fold`). Falls back to
28
+ * run per-file for anything the folder can't represent. Merged with the
29
+ * project's `chant.config.ts` `build.fold` via {@link resolveFoldEnabled}
30
+ * — this flag, when true, always wins for the invocation.
31
+ */
32
+ fold?: boolean;
33
+ /**
34
+ * chant #1045 Phase 2 — opt-in: run-fallback source files (or, without
35
+ * `fold`, every file) execute together, isolated, in one sandboxed child
36
+ * process (`chant build --sandbox`). Merged with the project's
37
+ * `chant.config.ts` `build.sandbox` via {@link resolveSandboxEnabled} —
38
+ * this flag, when true, always wins for the invocation.
39
+ */
40
+ sandbox?: boolean;
41
+ /**
42
+ * chant #1064 — `--param name=value` flags (repeatable), parsed to a flat
43
+ * `{ name: value }` record of raw (unvalidated) strings. Highest
44
+ * precedence in {@link resolveBuildParams}'s resolution against the
45
+ * project's declared `chant.config.ts` `buildParams`.
46
+ */
47
+ params?: Record<string, string>;
48
+ /**
49
+ * chant #1064 — `--params-file <path>`: a JSON file of `{ "name": value }`
50
+ * build-time parameter values, read and parsed here. Second precedence,
51
+ * after {@link params}.
52
+ */
53
+ paramsFile?: string;
25
54
  }
26
55
  /**
27
56
  * Resolve the output format for `chant build`.
@@ -49,6 +78,8 @@ export interface BuildResult {
49
78
  errors: string[];
50
79
  /** Warning messages */
51
80
  warnings: string[];
81
+ /** This build's resolved build-time parameters (#1064) — see `BuildResult.buildParams` (../../build.ts). Empty when the project declares/supplies none. */
82
+ buildParams?: import("../../provenance.js").BuildParamProvenance[];
52
83
  }
53
84
  /**
54
85
  * Execute the build command
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AASnD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAoB/C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACt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EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAoB/C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,2JAA2J;IAC3J,WAAW,CAAC,EAAE,OAAO,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;CACjE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CA2V9E;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"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * "Every shipped example builds" (chant #1067).
3
+ *
4
+ * `check-lexicon.ts`'s existing example checks only count directories
5
+ * ("At least 1 example", "At least 3 examples", "At least 5 examples with
6
+ * tests") — nothing ever tries to build one. `lexicons/aws/examples/core-concepts`
7
+ * shipped with a discovery-time error (two files independently exporting a
8
+ * top-level `dataBucket`) and `chant dev check-lexicon lexicons/aws` still
9
+ * reported "All tier-1 checks passed," because none of its 29 checks touch
10
+ * build output. This module closes that gap directly: for every non-empty
11
+ * `examples/<name>/src/` directory, run the same discover-and-serialize
12
+ * pipeline `chant build` runs and report whether it produced output with no
13
+ * structural error.
14
+ *
15
+ * Scope, deliberately: "builds" here means discovery + serialization
16
+ * succeed (no `DiscoveryError`/`BuildError`, real output produced) — the
17
+ * same thing a `Duplicate export name` failure blocks. It does not
18
+ * additionally require the output to pass every post-synth/lint check
19
+ * (WAW0xx and friends). Those are a separate, already-gated contract
20
+ * (`chant lint`, the post-synth pipeline) with their own severity model and
21
+ * their own CI step; several existing AWS examples (docs-snippets,
22
+ * lambda-api, lambda-s3, shared-alb) currently fail one or more post-synth
23
+ * checks for reasons unrelated to this issue (e.g. WAW042, a TLS-only
24
+ * bucket policy check added after those examples were written). Folding
25
+ * that axis into "does it build" would fail this new check for all of them
26
+ * on its very first run, for defects this issue never set out to fix.
27
+ * Tracked separately; not silently absorbed here.
28
+ */
29
+ export interface ExampleBuildResult {
30
+ example: string;
31
+ ok: boolean;
32
+ detail?: string;
33
+ }
34
+ /**
35
+ * Build every non-empty example under `<lexiconDir>/examples/*\/src` and
36
+ * report per-example pass/fail. Returns `[]` when the lexicon has no
37
+ * `examples/` directory at all (a separate tier-1 check already covers
38
+ * that).
39
+ */
40
+ export declare function checkExamplesBuild(lexiconDir: string): Promise<ExampleBuildResult[]>;
41
+ //# sourceMappingURL=check-lexicon-examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-lexicon-examples.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-examples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AASH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsD1F"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Static audit of a lexicon's intrinsic registrations (chant #1067).
3
+ *
4
+ * `check-lexicon.ts`'s original 29 checks are all existence/count assertions
5
+ * — they never look at whether a registration is actually *correct*.
6
+ * Foldability (`IntrinsicDef.isTag`, ../../lexicon.ts) is the sharpest case:
7
+ * it drives both `chant build --fold` (which registered tags it recognizes)
8
+ * and the generated per-lexicon intrinsics doc page (its "Folds?" column,
9
+ * via `intrinsicFolds()`), so a wrong value doesn't just mislead a reader —
10
+ * it silently changes what `--fold` does. #1039 shipped with the flag wrong
11
+ * in both directions at once (aws's `Sub` missing `isTag` entirely; gitlab's
12
+ * `reference()` claiming `isTag: true` for a plain call) and neither was
13
+ * caught by anything until someone measured fold coverage by hand.
14
+ *
15
+ * This module answers two questions per registered intrinsic, purely by
16
+ * parsing source (no execution, no `chant generate` required first):
17
+ *
18
+ * 1. Is `name` actually exported from the package's public entry
19
+ * (`src/index.ts`)? A registration that names something the package
20
+ * doesn't export is documenting a function that doesn't exist.
21
+ * 2. Does the exported declaration's own shape agree with `isTag`? A tagged
22
+ * template is a function whose first parameter is typed
23
+ * `TemplateStringsArray` — the only shape `fold()` ever recognizes as a
24
+ * tag (see ../../fold/fold.ts). Anything else (a plain function, a class,
25
+ * a const object/proxy) cannot be invoked as `` Name`...` `` and must be
26
+ * `isTag: false`.
27
+ *
28
+ * chant #1044 adds a third question, for the same reason the first two
29
+ * exist: `foldsAsCall` opts an intrinsic's PLAIN-CALL form into folding, so
30
+ * declaring it on something authored as a tagged template claims a form that
31
+ * cannot be called that way. The two flags are mutually exclusive, and a
32
+ * registration setting both is a failure here rather than a silently ignored
33
+ * field.
34
+ */
35
+ export interface IntrinsicAuditItem {
36
+ name: string;
37
+ /** The `isTag` value as registered in `src/plugin.ts`'s `intrinsics()`. */
38
+ declaredIsTag: boolean | undefined;
39
+ /** The `foldsAsCall` opt-in as registered in `src/plugin.ts` (chant #1044); `undefined` when absent, which means "not opted in". */
40
+ declaredFoldsAsCall: boolean | undefined;
41
+ /** Whether `name` resolves to a real export of `src/index.ts`. */
42
+ exported: boolean;
43
+ /**
44
+ * Whether the resolved declaration is genuinely authored as a tagged
45
+ * template (first parameter typed `TemplateStringsArray`). `undefined`
46
+ * when the declaration couldn't be located or its shape can't be
47
+ * determined statically — treated as a failure, not a pass, since a
48
+ * foldability claim that can't be verified is exactly the unvalidated
49
+ * state #1067 is closing.
50
+ */
51
+ actualIsTag: boolean | undefined;
52
+ /** True only when exported AND the authored shape matches `declaredIsTag`. */
53
+ ok: boolean;
54
+ detail?: string;
55
+ /**
56
+ * chant #1044 — false only when `foldsAsCall: true` is registered on
57
+ * something authored as a tagged template. Tracked separately from
58
+ * {@link ok} so the two failures report as the two different registration
59
+ * mistakes they are, rather than one message covering both.
60
+ */
61
+ callFormOk: boolean;
62
+ callFormDetail?: string;
63
+ }
64
+ /**
65
+ * Audit every intrinsic a lexicon registers in `src/plugin.ts` against
66
+ * `src/index.ts`'s real export surface and each export's authored shape.
67
+ * Returns `[]` for a lexicon with no `intrinsics()` method, or one that
68
+ * registers none — nothing to audit either way.
69
+ */
70
+ export declare function auditIntrinsics(lexiconDir: string): IntrinsicAuditItem[];
71
+ //# sourceMappingURL=check-lexicon-intrinsics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-lexicon-intrinsics.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-intrinsics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAQH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,oIAAoI;IACpI,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,kEAAkE;IAClE,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,8EAA8E;IAC9E,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA2MD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAqExE"}
@@ -11,7 +11,7 @@ export interface CheckResult {
11
11
  /**
12
12
  * Run all completeness checks against a lexicon directory.
13
13
  */
14
- export declare function checkLexicon(dir: string): CheckResult;
14
+ export declare function checkLexicon(dir: string): Promise<CheckResult>;
15
15
  /**
16
16
  * Print the check result as a colored table or JSON.
17
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAKA,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,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAiSrD;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAmDzE"}
1
+ {"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAOA,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,CAuapE;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAmDzE"}
@@ -6,6 +6,26 @@ export declare function isLintRule(value: unknown): value is LintRule;
6
6
  /**
7
7
  * Load custom lint rules from plugin files.
8
8
  * Each plugin file is dynamically imported and all exports conforming to LintRule are collected.
9
+ *
10
+ * chant #1051 — this (and `loadLocalRules`, `../../lint/rule-loader.ts`, for
11
+ * `.chant/rules/*.ts`) is unconditional project-source `import()` with no
12
+ * `--sandbox` equivalent, the same class of gap #1051 closes for
13
+ * `discoverComponents`. Deliberately NOT sandboxed here, and not a "decide by
14
+ * omission": a `LintRule` is not a one-shot data producer like `Component`/
15
+ * `Declarable` — its `check(context)` is a function the rule engine invokes
16
+ * inline, once per linted file, for the whole `chant lint` run. There is no
17
+ * cheap "collect once, JSON-serialize the result, hand it back" shape the way
18
+ * there is for a `Component` (plain JSON) or an entity (a wire codec) —
19
+ * `check` has to keep running as live JS in whichever process calls it. A
20
+ * shallow fix that sandboxed only the *import* step (mirroring
21
+ * `discoverComponents`) would give a false sense of safety: it would close
22
+ * off "malicious top-level module code" but leave `check()`'s own executable
23
+ * body — the dominant part of a rule's attack surface, since it runs for
24
+ * every file, every lint invocation — entirely unsandboxed regardless. A real
25
+ * fix needs either the AST/`ts.SourceFile` itself to cross the sandbox
26
+ * boundary or the whole custom-rule evaluation to run inside the child; both
27
+ * are materially harder, separate design problems from this issue's `Component`
28
+ * fix and are tracked separately (chant #1052).
9
29
  */
10
30
  export declare function loadPluginRules(plugins: string[], configDir: string): Promise<Map<string, LintRule>>;
11
31
  /**
@@ -20,6 +40,13 @@ export interface LintOptions {
20
40
  format: "stylish" | "json" | "sarif";
21
41
  /** Rules to use (defaults to all) */
22
42
  rules?: LintRule[];
43
+ /**
44
+ * chant #1051 — opt-in: discover `*.component.ts` files (for the COMP*
45
+ * composition checks) in a sandboxed child process instead of the CLI's
46
+ * own process (`chant lint --sandbox`). See `discoverComponents`'s
47
+ * `sandbox` option (../../components/discover.ts).
48
+ */
49
+ sandbox?: boolean;
23
50
  }
24
51
  /**
25
52
  * Lint command result
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;AAkBzE;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAW5D;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EAAE,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAmBhC;AAgDD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,oBAAoB;IACpB,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACrC,qCAAqC;IACrC,KAAK,CAAC,EAAE,QAAQ,EAAE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CAAqC;IACrC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AA0PD;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA6I3E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAIxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,GACtC,MAAM,IAAI,CAiCZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkDlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkEnE"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAqDlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoFnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/components.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuErF;AAyCD;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;6EAQ6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,CAiBzD;AAwCD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuN9E;AAED,kEAAkE;AAClE,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM/E"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/components.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4ErF;AAyCD;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;6EAQ6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,CAiBzD;AAwCD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyN9E;AAED,kEAAkE;AAClE,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,wBAAsB,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+BlE"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,wBAAsB,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiClE"}
@@ -30,7 +30,7 @@ export interface WorkflowHandleRaw {
30
30
  result(): Promise<unknown>;
31
31
  describe(): Promise<WorkflowExecutionDescription>;
32
32
  fetchHistory(): Promise<WorkflowHistoryRaw>;
33
- signal(signalName: string): Promise<void>;
33
+ signal(signalName: string, ...args: unknown[]): Promise<void>;
34
34
  cancel(): Promise<void>;
35
35
  }
36
36
  export interface WorkflowExecutionDescription {
@@ -1 +1 @@
1
- {"version":3,"file":"run-client.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run-client.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,GAAG;QAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE;QACV,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;KAC1D,CAAC;I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;;;;;;;;;GAYG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAchE;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA2E1E;AAkOD;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiFrE;AAuLD,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE"}
@@ -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;AAsB9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAyMpD;AA2XD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAsB9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAqNpD;AAsZD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
@@ -16,6 +16,22 @@ export declare function loadPlugins(lexiconNames: string[]): Promise<LexiconPlug
16
16
  *
17
17
  * Reads `lexicons` from `chant.config.ts` / `chant.config.json` if present.
18
18
  * Falls back to source-file detection via `detectLexicons()`.
19
+ *
20
+ * chant #1045 Phase 2 — this used to fall back to a full `discover()` call
21
+ * just to read its `sourceFiles` list, which imports and RUNS every project
22
+ * source file to collect entities that are then discarded here. That ran
23
+ * unconditionally, on every command that reaches this function without an
24
+ * explicit `chant.config.ts` `lexicons` list (`build`, `lint`, `doctor`,
25
+ * `import`, `graph`, the MCP server — effectively the whole CLI), with no
26
+ * `--fold`/`--sandbox` involved at all: a project could omit `lexicons` and
27
+ * every file would execute here, in the CLI's own process, before the
28
+ * caller's OWN (possibly folded, possibly sandboxed) build ever ran. Fixed
29
+ * by using `findInfraFiles()` alone — the pure directory walk `discover()`
30
+ * itself starts from, no import, no execution — since `detectLexicons()` is
31
+ * already a plain text/regex scan over file contents (`../detectLexicon.ts`)
32
+ * that never needed live module exports to begin with. This is strictly
33
+ * better than routing the detection through the sandbox: it removes the
34
+ * execution entirely rather than containing it, at no bundling/spawn cost.
19
35
  */
20
36
  export declare function resolveProjectLexicons(projectPath: string): Promise<string[]>;
21
37
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/cli/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CA6B5E;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CA6BlF;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnF"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/cli/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CA6B5E;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CA6BlF;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnF"}
@@ -135,6 +135,8 @@ export interface ParsedArgs {
135
135
  runId?: string;
136
136
  /** `chant components release record --actor <name>` (#568) — who/what triggered the deploy. */
137
137
  actor?: string;
138
+ /** `--approver <name>` (#1035) — who approved a gated change. Supplied to `chant run signal` (rides the gate signal payload into workflow history) and to `chant components release` (recorded on the release ledger). Optional; absent for ungated changes. */
139
+ approver?: string;
138
140
  /** `chant components status <env> --compare-to <env>` (#568) — a second environment to cross-check the same component's recorded digest against. */
139
141
  compareTo?: string;
140
142
  /** `chant run --components <name> --env <env> --no-release-record` (#597) — opt out of auto-emitting a release-ledger record after a successful component deploy. Default (flag omitted): recording is ON. Also settable project-wide via `chant.config.ts`'s `release.autoRecord: false`. */
@@ -143,6 +145,14 @@ export interface ParsedArgs {
143
145
  dumpOutputs?: string;
144
146
  /** `chant run --components <name> --seed-outputs <file>` (repeatable) — before the run, load each JSON outputs file (as written by `--dump-outputs`) and seed cross-component/cross-stack resolution with it, so a `stackOutput()`/`@<dep>.publish.*` reference to a component that ran in an earlier job resolves. */
145
147
  seedOutputs?: string[];
148
+ /** `chant build --fold` (#1022/#1023, epic #1019) — opt-in: fold source modules statically instead of importing/running them; folds resource constructors and composite factory calls, falling back to run per-file for anything the folder can't represent (a cross-file-only reference, a re-export, `export default`, …). Also settable project-wide via `chant.config.ts`'s `build.fold: true`; the flag always wins when set. Default (flag omitted): the existing run path, unchanged. */
149
+ fold?: boolean;
150
+ /** `chant build --sandbox` (#1045 Phase 2) — opt-in: run-fallback source files (or every file, without `--fold`) execute together, isolated, in one sandboxed child process instead of in-process. Also settable project-wide via `chant.config.ts`'s `build.sandbox: true`; the flag always wins when set. Default (flag omitted): in-process execution, unchanged. */
151
+ sandbox?: boolean;
152
+ /** `chant build --param name=value` (#1064) — repeatable. Bound to `params.<name>` (`@intentius/chant/params`) for source to reference, after validation against `chant.config.ts`'s declared `buildParams`. Highest precedence over `--params-file`/a declared `env` mapping/the declared `default`. */
153
+ param?: string[];
154
+ /** `chant build --params-file <path>` (#1064) — a JSON file of `{ "name": value }` build-time parameter values. Second precedence, after `--param`. */
155
+ paramsFile?: string;
146
156
  }
147
157
  /**
148
158
  * Declarative command definition for the CLI registry.
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;I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