@intentius/chant 0.124.37 → 0.124.39
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/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +1 -0
- package/dist/cli/handlers/graph.js +5 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +2 -1
- package/dist/cli/handlers/scenario.d.ts.map +1 -1
- package/dist/cli/handlers/scenario.js +1 -0
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/handlers/search.js +3 -1
- package/dist/lifecycle/observe.d.ts +3 -0
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/observe.js +1 -1
- package/dist/wave-runtime.mjs +189 -189
- package/dist/workspace/ci-builds.d.ts +12 -1
- package/dist/workspace/ci-builds.d.ts.map +1 -1
- package/dist/workspace/ci-builds.js +26 -0
- package/dist/workspace/ci-green-cli.js +1 -1
- package/dist/workspace/ci-green-forge.d.ts +3 -1
- package/dist/workspace/ci-green-forge.d.ts.map +1 -1
- package/dist/workspace/ci-green-forge.js +20 -2
- package/dist/workspace/ci-green-workflow.d.ts +6 -4
- package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
- package/dist/workspace/ci-green-workflow.js +26 -8
- package/package.json +1 -1
- package/src/cli/handlers/components.ts +1 -0
- package/src/cli/handlers/graph.test.ts +17 -0
- package/src/cli/handlers/graph.ts +4 -1
- package/src/cli/handlers/lifecycle.ts +2 -1
- package/src/cli/handlers/scenario.ts +1 -0
- package/src/cli/handlers/search.ts +3 -1
- package/src/lifecycle/observe.test.ts +14 -1
- package/src/lifecycle/observe.ts +4 -1
- package/src/workspace/ci-builds.e2e.test.ts +7 -2
- package/src/workspace/ci-builds.test.ts +46 -1
- package/src/workspace/ci-builds.ts +25 -1
- package/src/workspace/ci-green-builds.test.ts +26 -0
- package/src/workspace/ci-green-cli.ts +1 -1
- package/src/workspace/ci-green-forge.test.ts +31 -0
- package/src/workspace/ci-green-forge.ts +21 -3
- package/src/workspace/ci-green-workflow.test.ts +4 -4
- package/src/workspace/ci-green-workflow.ts +22 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/components.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,4BAA4B,CAAC;AAKnE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+GrF;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiH9E;AA6DD;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;6EAQ6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,CAMzD;AAuGD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/components.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,4BAA4B,CAAC;AAKnE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+GrF;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiH9E;AA6DD;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;6EAQ6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,CAMzD;AAuGD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoT9E;AAED,kEAAkE;AAClE,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM/E"}
|
|
@@ -499,6 +499,7 @@ export async function runComponentsStatus(ctx) {
|
|
|
499
499
|
return 1;
|
|
500
500
|
const buildResult = await build(resolve(args.src ?? config.sourceDir ?? "."), targetSerializers, undefined, {
|
|
501
501
|
buildParams: statusParams,
|
|
502
|
+
config: config,
|
|
502
503
|
});
|
|
503
504
|
// Which deployed stack(s) to read the change set from (behold#100).
|
|
504
505
|
//
|
|
@@ -241,7 +241,10 @@ async function runGraphLive(ctx, format) {
|
|
|
241
241
|
// declared entity. Without this the built estate carried them but the graph
|
|
242
242
|
// build here didn't, and the overlay called every one of them foreign.
|
|
243
243
|
const buildRoots = collectBuildRootContributors(plugins, config, projectPath);
|
|
244
|
-
const buildResult = await build(resolve(args.src ?? config.sourceDir ?? "."), plugins.map((p) => p.serializer), undefined,
|
|
244
|
+
const buildResult = await build(resolve(args.src ?? config.sourceDir ?? "."), plugins.map((p) => p.serializer), undefined,
|
|
245
|
+
// #4252: the serializers read lexicon settings from config (gcp.project
|
|
246
|
+
// becomes each resource's project annotation, which the live read takes).
|
|
247
|
+
{ buildParams: liveBuildParams, buildRoots, config: config });
|
|
245
248
|
if (buildResult.errors.length > 0) {
|
|
246
249
|
console.error(formatError({ message: "Build failed — fix errors before graphing live state" }));
|
|
247
250
|
return 1;
|
|
@@ -317,6 +320,7 @@ async function runGraphLive(ctx, format) {
|
|
|
317
320
|
else {
|
|
318
321
|
const observeResult = await observeResources(environment, observing, buildResult, {
|
|
319
322
|
owned: true,
|
|
323
|
+
config: config,
|
|
320
324
|
stacks: [...stacks],
|
|
321
325
|
// `--namespace <ns>` (#1629): where to read entities that declare no
|
|
322
326
|
// namespace. One project declaring the GitOps binding and another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAE9E;AAED;;cAEc;AACd,UAAU,WAAW;IACnB;iDAC6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;0CACsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb;;;6DAGyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE,CAMxF;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyH/E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4C3E;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B/E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+L3E;AA+sBD;;;;;;;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C,CAyR3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA2L/E;AAsBD;;GAEG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB1E;AAgBD;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmE7E;AAiCD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM9E;AAkBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8D/E"}
|
|
@@ -117,7 +117,7 @@ export async function runLifecycleSnapshot(ctx) {
|
|
|
117
117
|
const buildRoots = collectBuildRootContributors(targetPlugins, config, projectPath);
|
|
118
118
|
for (const target of targets) {
|
|
119
119
|
const label = target.stack ? `stack "${target.stack}"` : "project";
|
|
120
|
-
const buildResult = await build(target.root, targetSerializers, undefined, { buildParams: declaredParams, buildRoots });
|
|
120
|
+
const buildResult = await build(target.root, targetSerializers, undefined, { buildParams: declaredParams, buildRoots, config: config });
|
|
121
121
|
if (buildResult.errors.length > 0) {
|
|
122
122
|
console.error(formatError({ message: `Build failed for ${label} — fix errors before taking a snapshot` }));
|
|
123
123
|
anyHardError = true;
|
|
@@ -1062,6 +1062,7 @@ export async function runLifecyclePlan(ctx) {
|
|
|
1062
1062
|
const buildResult = await build(resolveBuildRoot(args, config), targetSerializers, undefined, {
|
|
1063
1063
|
buildParams: declaredParams,
|
|
1064
1064
|
buildRoots: collectBuildRootContributors(plugins, config, resolve(".")),
|
|
1065
|
+
config: config,
|
|
1065
1066
|
});
|
|
1066
1067
|
if (buildResult.errors.length > 0) {
|
|
1067
1068
|
console.error(formatError({ message: "Build failed — fix errors before planning" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenario.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/scenario.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"scenario.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/scenario.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE3E;AA2OD,0FAA0F;AAC1F,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7E"}
|
|
@@ -58,6 +58,7 @@ export async function runScenarioCheck(ctx) {
|
|
|
58
58
|
const buildResult = await build(resolveBuildRoot(args, config), serializers, undefined, {
|
|
59
59
|
buildParams: declaredParams,
|
|
60
60
|
buildRoots: collectBuildRootContributors(plugins, config, resolve(".")),
|
|
61
|
+
config: config,
|
|
61
62
|
});
|
|
62
63
|
if (buildResult.errors.length > 0) {
|
|
63
64
|
console.error(formatError({ message: "Build failed — fix errors before checking scenarios" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0E,KAAK,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAQhJ,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,2BA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CA+BpD;AAED,wCAAwC;AACxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAA2L,CAAC"}
|
|
@@ -126,7 +126,9 @@ export async function runSearch(ctx) {
|
|
|
126
126
|
return 1;
|
|
127
127
|
}
|
|
128
128
|
const plugins = ctx.plugins.length > 0 ? ctx.plugins : await loadPlugins(await resolveProjectLexicons(projectPath));
|
|
129
|
-
const buildResult = await build(resolve(args.src ?? config.sourceDir ?? "."), plugins.map((p) => p.serializer)
|
|
129
|
+
const buildResult = await build(resolve(args.src ?? config.sourceDir ?? "."), plugins.map((p) => p.serializer), undefined, {
|
|
130
|
+
config: config,
|
|
131
|
+
});
|
|
130
132
|
if (buildResult.errors.length > 0) {
|
|
131
133
|
console.error(formatError({ message: "Build failed — fix errors before searching live state" }));
|
|
132
134
|
return 1;
|
|
@@ -67,6 +67,9 @@ export declare function observeResources(environment: string, plugins: Observati
|
|
|
67
67
|
* Passed through to every lexicon's `describeResources`; one that has no
|
|
68
68
|
* namespace-like scope ignores it. */
|
|
69
69
|
namespace?: string;
|
|
70
|
+
/** The project configuration, handed to a stack's scoped build so its
|
|
71
|
+
* serializers see lexicon settings such as gcp's `gcp.project` (#4252). */
|
|
72
|
+
config?: Record<string, unknown>;
|
|
70
73
|
}): Promise<ObserveResult>;
|
|
71
74
|
/**
|
|
72
75
|
* Ask a lexicon what exists of the kinds it manages, beyond what is declared
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../src/lifecycle/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAYn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AAC;CACpB;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,kBAAkB,EAC1B,IAAI,EAAE;IACJ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IAC9E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC3C,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE,GACA,OAAO,CAAC,qBAAqB,CAAC,CA0ChC"}
|
|
@@ -65,7 +65,7 @@ export async function observeResources(environment, plugins, buildResult, opts)
|
|
|
65
65
|
const key = resolvePath(src);
|
|
66
66
|
let r = scopedBuildCache.get(key);
|
|
67
67
|
if (!r) {
|
|
68
|
-
r = await buildProject(key, serializers);
|
|
68
|
+
r = await buildProject(key, serializers, undefined, opts?.config ? { config: opts.config } : undefined);
|
|
69
69
|
scopedBuildCache.set(key, r);
|
|
70
70
|
}
|
|
71
71
|
return r;
|