@intentius/chant-lexicon-terraform 0.124.86 → 0.124.88
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/action-ops.d.ts.map +1 -1
- package/dist/action-ops.js +3 -1
- package/dist/chant-floors.d.ts +30 -0
- package/dist/chant-floors.d.ts.map +1 -0
- package/dist/chant-floors.js +29 -0
- package/dist/components/capability-plugin.d.ts +15 -1
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/capability-plugin.js +13 -5
- package/dist/components/compose-group.d.ts +5 -1
- package/dist/components/compose-group.d.ts.map +1 -1
- package/dist/components/compose-group.js +7 -4
- package/dist/engine-timings.d.ts +249 -0
- package/dist/engine-timings.d.ts.map +1 -0
- package/dist/engine-timings.js +569 -0
- package/dist/integrity.json +2 -2
- package/dist/live-roots.d.ts +93 -0
- package/dist/live-roots.d.ts.map +1 -0
- package/dist/live-roots.js +206 -0
- package/dist/manifest.json +1 -1
- package/dist/migration-history.d.ts +105 -0
- package/dist/migration-history.d.ts.map +1 -0
- package/dist/migration-history.js +159 -0
- package/dist/module-catalog/index.d.ts +1 -0
- package/dist/module-catalog/index.d.ts.map +1 -1
- package/dist/module-catalog/index.js +3 -1
- package/dist/op/activities/live-detect.d.ts +15 -0
- package/dist/op/activities/live-detect.d.ts.map +1 -1
- package/dist/op/activities/live-detect.js +94 -0
- package/dist/op/activities/terraform.d.ts +1 -65
- package/dist/op/activities/terraform.d.ts.map +1 -1
- package/dist/op/activities/terraform.js +4 -54
- package/dist/op/command-hook.d.ts +88 -0
- package/dist/op/command-hook.d.ts.map +1 -0
- package/dist/op/command-hook.js +115 -0
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +1 -0
- package/dist/state/exec.d.ts +23 -0
- package/dist/state/exec.d.ts.map +1 -1
- package/dist/state/exec.js +38 -0
- package/dist/state-ops.d.ts.map +1 -1
- package/dist/state-ops.js +3 -1
- package/dist/terragrunt/index.d.ts +3 -1
- package/dist/terragrunt/index.d.ts.map +1 -1
- package/dist/terragrunt/index.js +3 -1
- package/dist/terragrunt/place.d.ts +27 -0
- package/dist/terragrunt/place.d.ts.map +1 -0
- package/dist/terragrunt/place.js +52 -0
- package/package.json +2 -2
- package/src/action-ops.ts +3 -1
- package/src/chant-floors.ts +32 -0
- package/src/components/capability-plugin.ts +27 -6
- package/src/components/compose-group.test.ts +29 -0
- package/src/components/compose-group.ts +12 -5
- package/src/components/terraform-apply-command-hook.test.ts +43 -0
- package/src/engine-timings.test.ts +203 -0
- package/src/engine-timings.ts +718 -0
- package/src/live-roots.test.ts +80 -0
- package/src/live-roots.ts +244 -0
- package/src/migration-history.test.ts +83 -0
- package/src/migration-history.ts +199 -0
- package/src/module-catalog/index.ts +4 -1
- package/src/op/activities/live-detect.ts +87 -0
- package/src/op/activities/terraform.ts +12 -111
- package/src/op/command-hook.ts +182 -0
- package/src/registry/index.ts +1 -0
- package/src/state/engine-env.test.ts +18 -0
- package/src/state/exec.ts +38 -0
- package/src/state-ops.ts +3 -1
- package/src/terragrunt/index.ts +3 -1
- package/src/terragrunt/place.test.ts +42 -0
- package/src/terragrunt/place.ts +75 -0
|
@@ -729,71 +729,7 @@ export declare function __resetChoudoufuVersionCheckForTests(): void;
|
|
|
729
729
|
* plan document with no digest, which is what an older dev build prints.
|
|
730
730
|
*/
|
|
731
731
|
export declare function choudoufuWavesVersionRefusal(versionOutput: string): string | undefined;
|
|
732
|
-
|
|
733
|
-
* One engine command as a product's {@link TerraformCommandHook} sees it
|
|
734
|
-
* before it runs (chant#4865).
|
|
735
|
-
*/
|
|
736
|
-
export interface TerraformCommand {
|
|
737
|
-
/** The step's root the command runs for. */
|
|
738
|
-
root: string;
|
|
739
|
-
/** The upstream root whose state the command reads for `root`'s `reads`, when it runs for one. */
|
|
740
|
-
upstream?: string;
|
|
741
|
-
/** The step method that runs it: `plan`, `run` (the apply) or `outputs`. */
|
|
742
|
-
method: string;
|
|
743
|
-
/** The binary, as the command line names it. */
|
|
744
|
-
binary: string;
|
|
745
|
-
/** The subcommand, the first argument that is not a flag: `init`, `plan`, `show`, `apply`, `output`, `workspace`, `live-plan-set`. */
|
|
746
|
-
name: string;
|
|
747
|
-
/** The arguments after the binary, unquoted. */
|
|
748
|
-
args: string[];
|
|
749
|
-
/** The command line as the shell runs it. */
|
|
750
|
-
line: string;
|
|
751
|
-
/** The directory it runs in. */
|
|
752
|
-
cwd: string;
|
|
753
|
-
/** The variables chant sets for it over the job's environment, such as `TF_IN_AUTOMATION`, `TF_WORKSPACE` and the run hook's `processEnv`. */
|
|
754
|
-
env: Record<string, string>;
|
|
755
|
-
}
|
|
756
|
-
/** How a {@link TerraformCommand} came out, for the hook's `after` (chant#4865). */
|
|
757
|
-
export interface TerraformCommandResult {
|
|
758
|
-
/** The exit code; null when the command did not exit on its own (a signal, an abort, a spawn failure). */
|
|
759
|
-
code: number | null;
|
|
760
|
-
/** How long it ran, in seconds. */
|
|
761
|
-
seconds: number;
|
|
762
|
-
stdout: string;
|
|
763
|
-
stderr: string;
|
|
764
|
-
}
|
|
765
|
-
/** What a {@link TerraformCommandHook} answers for one command (chant#4865). */
|
|
766
|
-
export interface TerraformCommandRun {
|
|
767
|
-
/** Variables laid over the command's own, such as a span receiver's exporter or a trace parent. */
|
|
768
|
-
env?: Record<string, string>;
|
|
769
|
-
/** Called once the command ends, on a failure too, before the step reads its result. */
|
|
770
|
-
after?: (result: TerraformCommandResult) => void | Promise<void>;
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* A product's hook around each engine command a `terraform-apply` step runs
|
|
774
|
-
* for a root (chant#4865), `terraformApplyCapabilityWith({ onCommand })`:
|
|
775
|
-
* called before the command with what it is, and its answer's `after` once
|
|
776
|
-
* it ends. terragucci times each root's plan and apply with it and sets its
|
|
777
|
-
* span receiver's variables, as its own runs of the binary did.
|
|
778
|
-
*/
|
|
779
|
-
export type TerraformCommandHook = (command: TerraformCommand) => TerraformCommandRun | void | Promise<TerraformCommandRun | void>;
|
|
780
|
-
/** The hook, and the root and method it is for, that the commands run in an async call see (chant#4865). */
|
|
781
|
-
interface CommandScope {
|
|
782
|
-
hook: TerraformCommandHook;
|
|
783
|
-
root: string;
|
|
784
|
-
upstream?: string;
|
|
785
|
-
method: string;
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* Run `fn` with every engine command it runs going through `hook`, as
|
|
789
|
-
* commands for `scope.root` (chant#4865). Inside another scope, a field this
|
|
790
|
-
* one leaves out (`upstream`) is not kept from the outer.
|
|
791
|
-
*/
|
|
792
|
-
export declare function withTerraformCommandHook<T>(hook: TerraformCommandHook | undefined, scope: Omit<CommandScope, "hook">, fn: () => Promise<T>): Promise<T>;
|
|
793
|
-
/** Run `fn` with the commands it runs marked as a read of `upstream`'s state for the scope's root (chant#4865). Outside a scope, `fn` as it is. */
|
|
794
|
-
export declare function asUpstreamCommands<T>(upstream: string, fn: () => Promise<T>): Promise<T>;
|
|
795
|
-
/** The words of a command line the builders here wrote: plain words, and `quoteArg`'s single-quoted ones. */
|
|
796
|
-
export declare function commandWords(line: string): string[];
|
|
732
|
+
export { asUpstreamCommands, commandWords, withTerraformCommandHook, type TerraformCommand, type TerraformCommandHook, type TerraformCommandResult, type TerraformCommandRun, } from "../command-hook.js";
|
|
797
733
|
/**
|
|
798
734
|
* `terraform init` in the named root, with the root's `backendConfigFiles` and
|
|
799
735
|
* `backendConfig` supplied as `-backend-config` flags. Uses the longInfra profile: init downloads
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAaH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC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F,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAkB9H;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAkBhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CA8C/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,EAC5B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAuBnC"}
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
* module load (`ensureChoudoufuVersion`) and refuses a binary older than
|
|
39
39
|
* {@link MIN_CHOUDOUFU_VERSION}.
|
|
40
40
|
*/
|
|
41
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
42
41
|
import { exec } from "node:child_process";
|
|
43
42
|
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
44
43
|
import { tmpdir } from "node:os";
|
|
@@ -50,6 +49,7 @@ import { liveReadKey, memoLiveRead } from "@intentius/chant/live-read-session";
|
|
|
50
49
|
import { terraformPlanDigest } from "../../plan-digest.js";
|
|
51
50
|
import { choudoufuSetPlanParts, plannerForBinary, terraformChangeSetPart } from "../../change-set.js";
|
|
52
51
|
import { detectLiveEstate } from "./live-detect.js";
|
|
52
|
+
import { commandWords, currentCommandScope, scopedCommand } from "../command-hook.js";
|
|
53
53
|
import { backendConfigValues } from "../../backend-config.js";
|
|
54
54
|
import { lockTimeoutArgs } from "../../lock-timeout.js";
|
|
55
55
|
import { coneArgs, readPlanCone } from "../../cone.js";
|
|
@@ -539,55 +539,7 @@ async function resolveRoot(args, signal) {
|
|
|
539
539
|
projectRoot,
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
|
|
543
|
-
* The command scope of the step call that runs the engine (chant#4865). An
|
|
544
|
-
* async-local store, so each root a wave runs at once (chant#4864) sees its
|
|
545
|
-
* own, and the activities need no hook argument threaded through.
|
|
546
|
-
*/
|
|
547
|
-
const commandScope = new AsyncLocalStorage();
|
|
548
|
-
/**
|
|
549
|
-
* Run `fn` with every engine command it runs going through `hook`, as
|
|
550
|
-
* commands for `scope.root` (chant#4865). Inside another scope, a field this
|
|
551
|
-
* one leaves out (`upstream`) is not kept from the outer.
|
|
552
|
-
*/
|
|
553
|
-
export function withTerraformCommandHook(hook, scope, fn) {
|
|
554
|
-
if (!hook)
|
|
555
|
-
return fn();
|
|
556
|
-
return commandScope.run({ hook, ...scope }, fn);
|
|
557
|
-
}
|
|
558
|
-
/** Run `fn` with the commands it runs marked as a read of `upstream`'s state for the scope's root (chant#4865). Outside a scope, `fn` as it is. */
|
|
559
|
-
export function asUpstreamCommands(upstream, fn) {
|
|
560
|
-
const scope = commandScope.getStore();
|
|
561
|
-
return scope ? commandScope.run({ ...scope, upstream }, fn) : fn();
|
|
562
|
-
}
|
|
563
|
-
/** The words of a command line the builders here wrote: plain words, and `quoteArg`'s single-quoted ones. */
|
|
564
|
-
export function commandWords(line) {
|
|
565
|
-
const words = [];
|
|
566
|
-
let word;
|
|
567
|
-
for (let i = 0; i < line.length; i++) {
|
|
568
|
-
const c = line[i];
|
|
569
|
-
if (c === " ") {
|
|
570
|
-
if (word !== undefined)
|
|
571
|
-
words.push(word);
|
|
572
|
-
word = undefined;
|
|
573
|
-
}
|
|
574
|
-
else if (c === "'") {
|
|
575
|
-
const end = line.indexOf("'", i + 1);
|
|
576
|
-
const stop = end < 0 ? line.length : end;
|
|
577
|
-
word = (word ?? "") + line.slice(i + 1, stop);
|
|
578
|
-
i = stop;
|
|
579
|
-
}
|
|
580
|
-
else if (c === "\\" && i + 1 < line.length) {
|
|
581
|
-
word = (word ?? "") + line[++i];
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
word = (word ?? "") + c;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
if (word !== undefined)
|
|
588
|
-
words.push(word);
|
|
589
|
-
return words;
|
|
590
|
-
}
|
|
542
|
+
export { asUpstreamCommands, commandWords, withTerraformCommandHook, } from "../command-hook.js";
|
|
591
543
|
/** Run `cmd` in `dir`, forwarding the signal so an abort kills the child. */
|
|
592
544
|
function runPlain(cmd, dir, env, signal, unset = []) {
|
|
593
545
|
const merged = { ...process.env, ...env };
|
|
@@ -601,15 +553,13 @@ function runPlain(cmd, dir, env, signal, unset = []) {
|
|
|
601
553
|
* less `unset`, and its `after` with the exit code, time and output.
|
|
602
554
|
*/
|
|
603
555
|
async function run(cmd, dir, env, signal, unset = []) {
|
|
604
|
-
const scope =
|
|
556
|
+
const scope = currentCommandScope();
|
|
605
557
|
if (!scope)
|
|
606
558
|
return runPlain(cmd, dir, env, signal, unset);
|
|
607
559
|
const words = commandWords(cmd);
|
|
608
560
|
const args = words.slice(1);
|
|
609
561
|
const command = {
|
|
610
|
-
|
|
611
|
-
...(scope.upstream !== undefined ? { upstream: scope.upstream } : {}),
|
|
612
|
-
method: scope.method,
|
|
562
|
+
...scopedCommand(scope),
|
|
613
563
|
binary: words[0] ?? "",
|
|
614
564
|
name: args.find((a) => !a.startsWith("-")) ?? "",
|
|
615
565
|
args,
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { BinaryExec } from "../state/exec.js";
|
|
2
|
+
/**
|
|
3
|
+
* One engine command as a product's {@link TerraformCommandHook} sees it
|
|
4
|
+
* before it runs (chant#4865).
|
|
5
|
+
*/
|
|
6
|
+
export interface TerraformCommand {
|
|
7
|
+
/** The step's root the command runs for. */
|
|
8
|
+
root: string;
|
|
9
|
+
/** The upstream root whose state the command reads for `root`'s `reads`, when it runs for one. */
|
|
10
|
+
upstream?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The roots a composed group's command runs for (chant#4887): a group's
|
|
13
|
+
* plan and apply run one engine command for all its members, in the
|
|
14
|
+
* composed directory. `root` is then the first of them.
|
|
15
|
+
*/
|
|
16
|
+
members?: string[];
|
|
17
|
+
/** The step method that runs it: `plan`, `run` (the apply) or `outputs`. */
|
|
18
|
+
method: string;
|
|
19
|
+
/** The binary, as the command line names it. */
|
|
20
|
+
binary: string;
|
|
21
|
+
/** The subcommand, the first argument that is not a flag: `init`, `plan`, `show`, `apply`, `output`, `workspace`, `live-plan-set`. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** The arguments after the binary, unquoted. */
|
|
24
|
+
args: string[];
|
|
25
|
+
/** The command line as the shell runs it. */
|
|
26
|
+
line: string;
|
|
27
|
+
/** The directory it runs in. */
|
|
28
|
+
cwd: string;
|
|
29
|
+
/** The variables chant sets for it over the job's environment, such as `TF_IN_AUTOMATION`, `TF_WORKSPACE` and the run hook's `processEnv`. */
|
|
30
|
+
env: Record<string, string>;
|
|
31
|
+
}
|
|
32
|
+
/** How a {@link TerraformCommand} came out, for the hook's `after` (chant#4865). */
|
|
33
|
+
export interface TerraformCommandResult {
|
|
34
|
+
/** The exit code; null when the command did not exit on its own (a signal, an abort, a spawn failure). */
|
|
35
|
+
code: number | null;
|
|
36
|
+
/** How long it ran, in seconds. */
|
|
37
|
+
seconds: number;
|
|
38
|
+
stdout: string;
|
|
39
|
+
stderr: string;
|
|
40
|
+
}
|
|
41
|
+
/** What a {@link TerraformCommandHook} answers for one command (chant#4865). */
|
|
42
|
+
export interface TerraformCommandRun {
|
|
43
|
+
/** Variables laid over the command's own, such as a span receiver's exporter or a trace parent. */
|
|
44
|
+
env?: Record<string, string>;
|
|
45
|
+
/** Called once the command ends, on a failure too, before the step reads its result. */
|
|
46
|
+
after?: (result: TerraformCommandResult) => void | Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A product's hook around each engine command a `terraform-apply` step runs
|
|
50
|
+
* for a root (chant#4865), `terraformApplyCapabilityWith({ onCommand })`:
|
|
51
|
+
* called before the command with what it is, and its answer's `after` once
|
|
52
|
+
* it ends. terragucci times each root's plan and apply with it and sets its
|
|
53
|
+
* span receiver's variables, as its own runs of the binary did.
|
|
54
|
+
*/
|
|
55
|
+
export type TerraformCommandHook = (command: TerraformCommand) => TerraformCommandRun | void | Promise<TerraformCommandRun | void>;
|
|
56
|
+
/** The hook, and the root and method it is for, that the commands run in an async call see (chant#4865). */
|
|
57
|
+
export interface CommandScope {
|
|
58
|
+
hook: TerraformCommandHook;
|
|
59
|
+
root: string;
|
|
60
|
+
upstream?: string;
|
|
61
|
+
/** The members of a composed group, for its commands (chant#4887). */
|
|
62
|
+
members?: string[];
|
|
63
|
+
method: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Run `fn` with every engine command it runs going through `hook`, as
|
|
67
|
+
* commands for `scope.root` (chant#4865). Inside another scope, a field this
|
|
68
|
+
* one leaves out (`upstream`, `members`) is not kept from the outer.
|
|
69
|
+
*/
|
|
70
|
+
export declare function withTerraformCommandHook<T>(hook: TerraformCommandHook | undefined, scope: Omit<CommandScope, "hook">, fn: () => Promise<T>): Promise<T>;
|
|
71
|
+
/** Run `fn` with the commands it runs marked as a read of `upstream`'s state for the scope's root (chant#4865). Outside a scope, `fn` as it is. */
|
|
72
|
+
export declare function asUpstreamCommands<T>(upstream: string, fn: () => Promise<T>): Promise<T>;
|
|
73
|
+
/** The scope the current async call runs in, or undefined outside one. */
|
|
74
|
+
export declare function currentCommandScope(): CommandScope | undefined;
|
|
75
|
+
/** The fields of a {@link TerraformCommand} that come from the scope. */
|
|
76
|
+
export declare function scopedCommand(scope: CommandScope): Pick<TerraformCommand, "root" | "upstream" | "members" | "method">;
|
|
77
|
+
/**
|
|
78
|
+
* `exec` with each run going through the command hook of the step call it
|
|
79
|
+
* runs in (chant#4887), as the activities' own commands do: a composed
|
|
80
|
+
* group's `init`, `plan`, `show` and `apply`, and the `version` its estate
|
|
81
|
+
* check asks. The hook sees the variables the run sets over the job's
|
|
82
|
+
* environment, its variables are laid over the run's, and its `after` gets
|
|
83
|
+
* the exit code, time and output. Outside a scope, `exec` as it is.
|
|
84
|
+
*/
|
|
85
|
+
export declare function hookedBinaryExec(exec: BinaryExec): BinaryExec;
|
|
86
|
+
/** The words of a command line the builders here wrote: plain words, and `quoteArg`'s single-quoted ones. */
|
|
87
|
+
export declare function commandWords(line: string): string[];
|
|
88
|
+
//# sourceMappingURL=command-hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-hook.d.ts","sourceRoot":"","sources":["../../src/op/command-hook.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAO,MAAM,eAAe,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,sIAAsI;IACtI,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,8IAA8I;IAC9I,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAED,oFA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E,wBAAgB,mBAAmB,IAAI,YAAY,GAAG,SAAS,CAE9D;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC,CAOrH;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CA6B7D;AAKD,6GAA6G;AAC7G,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAqBnD"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hook a product puts around each engine command `terraform-apply`
|
|
3
|
+
* runs (chant#4865), and the async-local scope that carries it to the
|
|
4
|
+
* activities that run the binary. Kept apart from
|
|
5
|
+
* `./activities/terraform.ts` so the composed group's runs
|
|
6
|
+
* (`../components/compose-group.ts`, through `BinaryExec`) and the engine
|
|
7
|
+
* timings (`../engine-timings.ts`) read the same scope (chant#4887).
|
|
8
|
+
*/
|
|
9
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
10
|
+
/**
|
|
11
|
+
* The command scope of the step call that runs the engine (chant#4865). An
|
|
12
|
+
* async-local store, so each root a wave runs at once (chant#4864) sees its
|
|
13
|
+
* own, and the activities need no hook argument threaded through.
|
|
14
|
+
*/
|
|
15
|
+
const commandScope = new AsyncLocalStorage();
|
|
16
|
+
/**
|
|
17
|
+
* Run `fn` with every engine command it runs going through `hook`, as
|
|
18
|
+
* commands for `scope.root` (chant#4865). Inside another scope, a field this
|
|
19
|
+
* one leaves out (`upstream`, `members`) is not kept from the outer.
|
|
20
|
+
*/
|
|
21
|
+
export function withTerraformCommandHook(hook, scope, fn) {
|
|
22
|
+
if (!hook)
|
|
23
|
+
return fn();
|
|
24
|
+
return commandScope.run({ hook, ...scope }, fn);
|
|
25
|
+
}
|
|
26
|
+
/** Run `fn` with the commands it runs marked as a read of `upstream`'s state for the scope's root (chant#4865). Outside a scope, `fn` as it is. */
|
|
27
|
+
export function asUpstreamCommands(upstream, fn) {
|
|
28
|
+
const scope = commandScope.getStore();
|
|
29
|
+
return scope ? commandScope.run({ ...scope, upstream }, fn) : fn();
|
|
30
|
+
}
|
|
31
|
+
/** The scope the current async call runs in, or undefined outside one. */
|
|
32
|
+
export function currentCommandScope() {
|
|
33
|
+
return commandScope.getStore();
|
|
34
|
+
}
|
|
35
|
+
/** The fields of a {@link TerraformCommand} that come from the scope. */
|
|
36
|
+
export function scopedCommand(scope) {
|
|
37
|
+
return {
|
|
38
|
+
root: scope.root,
|
|
39
|
+
...(scope.upstream !== undefined ? { upstream: scope.upstream } : {}),
|
|
40
|
+
...(scope.members !== undefined ? { members: [...scope.members] } : {}),
|
|
41
|
+
method: scope.method,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* `exec` with each run going through the command hook of the step call it
|
|
46
|
+
* runs in (chant#4887), as the activities' own commands do: a composed
|
|
47
|
+
* group's `init`, `plan`, `show` and `apply`, and the `version` its estate
|
|
48
|
+
* check asks. The hook sees the variables the run sets over the job's
|
|
49
|
+
* environment, its variables are laid over the run's, and its `after` gets
|
|
50
|
+
* the exit code, time and output. Outside a scope, `exec` as it is.
|
|
51
|
+
*/
|
|
52
|
+
export function hookedBinaryExec(exec) {
|
|
53
|
+
return async (binary, args, dir, env, io) => {
|
|
54
|
+
const scope = commandScope.getStore();
|
|
55
|
+
if (!scope)
|
|
56
|
+
return exec(binary, args, dir, env, io);
|
|
57
|
+
const own = { TF_IN_AUTOMATION: "1" };
|
|
58
|
+
for (const [k, v] of Object.entries(env))
|
|
59
|
+
if (v !== undefined && process.env[k] !== v)
|
|
60
|
+
own[k] = v;
|
|
61
|
+
const command = {
|
|
62
|
+
...scopedCommand(scope),
|
|
63
|
+
binary,
|
|
64
|
+
name: args.find((a) => !a.startsWith("-")) ?? "",
|
|
65
|
+
args: [...args],
|
|
66
|
+
line: [binary, `-chdir=${dir}`, ...args].map((w) => (/^[\w@%+=:,./-]+$/.test(w) ? w : quoteWord(w))).join(" "),
|
|
67
|
+
cwd: dir,
|
|
68
|
+
env: own,
|
|
69
|
+
};
|
|
70
|
+
const given = (await scope.hook(command)) ?? {};
|
|
71
|
+
const start = performance.now();
|
|
72
|
+
let ran;
|
|
73
|
+
try {
|
|
74
|
+
ran = await exec(binary, args, dir, given.env ? { ...env, ...given.env } : env, io);
|
|
75
|
+
}
|
|
76
|
+
catch (err) {
|
|
77
|
+
await given.after?.({ code: null, seconds: (performance.now() - start) / 1000, stdout: "", stderr: err instanceof Error ? err.message : String(err) });
|
|
78
|
+
throw err;
|
|
79
|
+
}
|
|
80
|
+
// `out` holds stdout and stderr together, as they came; stderr alone is what is left once stdout is taken out of it.
|
|
81
|
+
const stderr = ran.out.startsWith(ran.stdout) ? ran.out.slice(ran.stdout.length) : ran.out;
|
|
82
|
+
await given.after?.({ code: ran.code, seconds: (performance.now() - start) / 1000, stdout: ran.stdout, stderr });
|
|
83
|
+
return ran;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** A word single-quoted for a shell, as `quoteArg` writes it. */
|
|
87
|
+
const quoteWord = (w) => `'${w.replace(/'/g, `'\\''`)}'`;
|
|
88
|
+
/** The words of a command line the builders here wrote: plain words, and `quoteArg`'s single-quoted ones. */
|
|
89
|
+
export function commandWords(line) {
|
|
90
|
+
const words = [];
|
|
91
|
+
let word;
|
|
92
|
+
for (let i = 0; i < line.length; i++) {
|
|
93
|
+
const c = line[i];
|
|
94
|
+
if (c === " ") {
|
|
95
|
+
if (word !== undefined)
|
|
96
|
+
words.push(word);
|
|
97
|
+
word = undefined;
|
|
98
|
+
}
|
|
99
|
+
else if (c === "'") {
|
|
100
|
+
const end = line.indexOf("'", i + 1);
|
|
101
|
+
const stop = end < 0 ? line.length : end;
|
|
102
|
+
word = (word ?? "") + line.slice(i + 1, stop);
|
|
103
|
+
i = stop;
|
|
104
|
+
}
|
|
105
|
+
else if (c === "\\" && i + 1 < line.length) {
|
|
106
|
+
word = (word ?? "") + line[++i];
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
word = (word ?? "") + c;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (word !== undefined)
|
|
113
|
+
words.push(word);
|
|
114
|
+
return words;
|
|
115
|
+
}
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ export * from "./source-forms.js";
|
|
|
28
28
|
export * from "./proxies.js";
|
|
29
29
|
export { moduleConsumers, isLocalSource, type ModuleConsumer } from "../pin/consumers.js";
|
|
30
30
|
export { usedSources, type UsedSource, type UnreadSource, type UsedSourcesOptions } from "../used-sources.js";
|
|
31
|
+
export { MODULE_CONSUMERS_FLOOR, USED_SOURCES_FLOOR } from "../chant-floors.js";
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/registry/index.js
CHANGED
|
@@ -28,3 +28,4 @@ export * from "./source-forms.js";
|
|
|
28
28
|
export * from "./proxies.js";
|
|
29
29
|
export { moduleConsumers, isLocalSource } from "../pin/consumers.js";
|
|
30
30
|
export { usedSources } from "../used-sources.js";
|
|
31
|
+
export { MODULE_CONSUMERS_FLOOR, USED_SOURCES_FLOOR } from "../chant-floors.js";
|
package/dist/state/exec.d.ts
CHANGED
|
@@ -12,6 +12,29 @@ export interface BinaryIo {
|
|
|
12
12
|
export type BinaryExec = (binary: string, args: string[], dir: string, env: NodeJS.ProcessEnv, io?: BinaryIo) => Promise<Ran>;
|
|
13
13
|
/** The binary run with `-chdir=<dir>` and `TF_IN_AUTOMATION=1`. */
|
|
14
14
|
export declare const runBinary: BinaryExec;
|
|
15
|
+
/**
|
|
16
|
+
* `env` without the forge's tokens, for the engine (chant#4910): the
|
|
17
|
+
* providers, modules and external data sources the binary runs are the
|
|
18
|
+
* change's own code, and none of it needs the forge's API. Left out: chant's
|
|
19
|
+
* {@link FORGE_TOKEN_VARS}, the product's own token variables (`tokens`,
|
|
20
|
+
* such as terragucci's `TG_TOKEN` and `TG_MERGE_TOKEN`), and any other
|
|
21
|
+
* variable holding the same value as one of them (GitLab's `GITLAB_TOKEN`
|
|
22
|
+
* set from the product's, or a variable a product's `token_env` names). A
|
|
23
|
+
* variable whose name starts with `TF_` is passed as set, so a backend
|
|
24
|
+
* password or a `TF_VAR_` given to the binary on purpose still reaches it.
|
|
25
|
+
*
|
|
26
|
+
* Lifted from terragucci's `binaryEnv` (binary-env.ts).
|
|
27
|
+
*/
|
|
28
|
+
export declare function engineEnv(env: NodeJS.ProcessEnv, tokens?: readonly string[]): NodeJS.ProcessEnv;
|
|
29
|
+
/**
|
|
30
|
+
* {@link runBinary} with the forge's tokens left out of the binary's
|
|
31
|
+
* environment ({@link engineEnv}), `tokens` naming the product's own
|
|
32
|
+
* (chant#4910). A product that ran the binary through its own wrapper over
|
|
33
|
+
* `runBinary` passes this one wherever a `BinaryExec` is taken. `runBinary`
|
|
34
|
+
* itself still passes the environment as given, since a project's provider
|
|
35
|
+
* may read a forge token on purpose (the GitHub provider reads `GITHUB_TOKEN`).
|
|
36
|
+
*/
|
|
37
|
+
export declare function tokenlessBinaryExec(tokens?: readonly string[], exec?: BinaryExec): BinaryExec;
|
|
15
38
|
/** A state file as `state pull` prints it (format version 4); only what a run touches is named. */
|
|
16
39
|
export interface StateFile {
|
|
17
40
|
version: number;
|
package/dist/state/exec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/state/exec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"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,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,wEAAwE;AACxE,eAAO,MAAM,SAAS,MAAO,MAAM,iBAAU,MAAgE,CAAC;AAE9G,yEAAyE;AACzE,wBAAsB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAc9I"}
|
package/dist/state/exec.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* `BinaryExec`, `runBinary`, `StateFile`, `StateResource` and `pullState`.
|
|
7
7
|
*/
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
|
+
import { FORGE_TOKEN_VARS } from "@intentius/chant/ci-handover";
|
|
9
10
|
/** The binary run with `-chdir=<dir>` and `TF_IN_AUTOMATION=1`. */
|
|
10
11
|
export const runBinary = (binary, args, dir, env, io) => new Promise((done) => {
|
|
11
12
|
const child = spawn(binary, [`-chdir=${dir}`, ...args], { env: { ...env, TF_IN_AUTOMATION: "1" }, stdio: ["ignore", "pipe", "pipe"] });
|
|
@@ -55,6 +56,43 @@ export const runBinary = (binary, args, dir, env, io) => new Promise((done) => {
|
|
|
55
56
|
done({ code: code ?? 1, stdout, out });
|
|
56
57
|
});
|
|
57
58
|
});
|
|
59
|
+
/**
|
|
60
|
+
* `env` without the forge's tokens, for the engine (chant#4910): the
|
|
61
|
+
* providers, modules and external data sources the binary runs are the
|
|
62
|
+
* change's own code, and none of it needs the forge's API. Left out: chant's
|
|
63
|
+
* {@link FORGE_TOKEN_VARS}, the product's own token variables (`tokens`,
|
|
64
|
+
* such as terragucci's `TG_TOKEN` and `TG_MERGE_TOKEN`), and any other
|
|
65
|
+
* variable holding the same value as one of them (GitLab's `GITLAB_TOKEN`
|
|
66
|
+
* set from the product's, or a variable a product's `token_env` names). A
|
|
67
|
+
* variable whose name starts with `TF_` is passed as set, so a backend
|
|
68
|
+
* password or a `TF_VAR_` given to the binary on purpose still reaches it.
|
|
69
|
+
*
|
|
70
|
+
* Lifted from terragucci's `binaryEnv` (binary-env.ts).
|
|
71
|
+
*/
|
|
72
|
+
export function engineEnv(env, tokens = []) {
|
|
73
|
+
const names = new Set([...FORGE_TOKEN_VARS, ...tokens]);
|
|
74
|
+
const secrets = new Set([...names].map((n) => env[n]).filter((v) => typeof v === "string" && v.length > 0));
|
|
75
|
+
const out = {};
|
|
76
|
+
for (const [k, v] of Object.entries(env)) {
|
|
77
|
+
if (names.has(k))
|
|
78
|
+
continue;
|
|
79
|
+
if (v !== undefined && secrets.has(v) && !k.startsWith("TF_"))
|
|
80
|
+
continue;
|
|
81
|
+
out[k] = v;
|
|
82
|
+
}
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* {@link runBinary} with the forge's tokens left out of the binary's
|
|
87
|
+
* environment ({@link engineEnv}), `tokens` naming the product's own
|
|
88
|
+
* (chant#4910). A product that ran the binary through its own wrapper over
|
|
89
|
+
* `runBinary` passes this one wherever a `BinaryExec` is taken. `runBinary`
|
|
90
|
+
* itself still passes the environment as given, since a project's provider
|
|
91
|
+
* may read a forge token on purpose (the GitHub provider reads `GITHUB_TOKEN`).
|
|
92
|
+
*/
|
|
93
|
+
export function tokenlessBinaryExec(tokens = [], exec = runBinary) {
|
|
94
|
+
return (binary, args, dir, env, io) => exec(binary, args, dir, engineEnv(env, tokens), io);
|
|
95
|
+
}
|
|
58
96
|
/** The last lines of the binary's output, on one line, for an error. */
|
|
59
97
|
export const lastLines = (s, n = 4) => s.trim().split("\n").slice(-n).join(" ").slice(0, 400);
|
|
60
98
|
/** A root's state as `state pull` gives it, or null when it has none. */
|
package/dist/state-ops.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-ops.d.ts","sourceRoot":"","sources":["../src/state-ops.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,wCAAwC,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAsB,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AACzH,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAwC,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACrI,OAAO,EAAoE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGvL,OAAO,EAA6D,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9G,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"state-ops.d.ts","sourceRoot":"","sources":["../src/state-ops.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,wCAAwC,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAsB,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AACzH,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAwC,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACrI,OAAO,EAAoE,KAAK,e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CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC9B;AAuBD,eAAO,MAAM,8BAA8B,EAAE,UAAU,CAAC,oBAAoB,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAgBzG,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,kBAAkB,EAAE;IAAE,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAqB5F,CAAC;AAQF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAiBnG,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,4BAA4B;UAnE6C,MAAM;QAAM,MAAM;;WAkBrB,MAAM,EAAE;;UA6BnB,MAAM;gBAAc,MAAM;GAoB0C,CAAC"}
|
package/dist/state-ops.js
CHANGED
|
@@ -49,6 +49,7 @@ import { lastLines, runBinary } from "./state/exec.js";
|
|
|
49
49
|
import { gitlabStore, shownUrl } from "./state/gitlab.js";
|
|
50
50
|
import { stateStore } from "./state/store.js";
|
|
51
51
|
import { gitlabVersionSource, stateVersionSource } from "./state/versions.js";
|
|
52
|
+
import { actorFromEnv } from "@intentius/chant/actor";
|
|
52
53
|
/** The ops the gated requests of this module wait at, one per kind, as terragucci named them. */
|
|
53
54
|
export const STATE_OPS = {
|
|
54
55
|
unlock: "tf-unlock",
|
|
@@ -273,7 +274,8 @@ export async function terraformStateUnlock(input) {
|
|
|
273
274
|
return releaseStateLock({ ...input, subject: input.root, lock });
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
|
-
|
|
277
|
+
/** Who asks when the caller names nobody: core's actor fallback (#4911). */
|
|
278
|
+
const actorOf = (env) => actorFromEnv(env);
|
|
277
279
|
const dirOf = (cwd, input) => input.dir ?? join(cwd ?? process.cwd(), input.root);
|
|
278
280
|
async function gatedRun(op, input, kind, fields, act, attachment) {
|
|
279
281
|
const cwd = input.cwd ?? process.cwd();
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Terragrunt units as roots (#3414). `./units`, `./wave` and `./mocks` are pure and
|
|
3
3
|
* bundle without TypeScript; `./run` spawns `terragrunt`. `./affected` picks
|
|
4
4
|
* the units a git range touches (#3415). `./capability` is `terragrunt-apply`,
|
|
5
|
-
* the units as an op wave's step (#4842).
|
|
5
|
+
* the units as an op wave's step (#4842). `./place` is where a unit's binary runs
|
|
6
|
+
* as Terragrunt prepares it (#4910).
|
|
6
7
|
*/
|
|
7
8
|
export * from "./units.js";
|
|
8
9
|
export * from "./wave.js";
|
|
@@ -10,4 +11,5 @@ export * from "./mocks.js";
|
|
|
10
11
|
export * from "./run.js";
|
|
11
12
|
export * from "./affected.js";
|
|
12
13
|
export * from "./capability.js";
|
|
14
|
+
export * from "./place.js";
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/terragrunt/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/terragrunt/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|