@intentius/chant-lexicon-terraform 0.124.6 → 0.124.7
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/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/dist/pin/forge.d.ts +6 -0
- package/dist/pin/forge.d.ts.map +1 -1
- package/dist/pin/rollout.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/pin/bundle.test.ts +2 -0
- package/src/pin/forge.ts +6 -0
- package/src/pin/rollout.ts +6 -1
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "b83b2011c764b57415372daca954f972506e9d4171fcacf27575808e59430396",
|
|
5
5
|
"meta.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
6
6
|
"types/index.d.ts": "022927e6a7b351cc4cf52d5f973f60ccd140e5810e17b32fb8868965aa1db161",
|
|
7
7
|
"rules/plan-before-apply.ts": "31b1b3176799fd365b2583fe3947edd187c2a863e3dc0094ed9e91ece2464c99",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"rules/tf045.ts": "760b1f4f385fbe7a86897efe3078fdeac11bcc9bfb806285d63db50488174b7b",
|
|
57
57
|
"skills/chant-terraform.md": "d9ca7b7c28aed0038ce775a3491150298492eed2858fd3651ed9bfca0e577ae8"
|
|
58
58
|
},
|
|
59
|
-
"composite": "
|
|
59
|
+
"composite": "9caa5409fefa500f16dd481ea92e3914ff5e8412f1e5e42458fac4b6990bdfbd"
|
|
60
60
|
}
|
package/dist/manifest.json
CHANGED
package/dist/pin/forge.d.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
* (#2550) opens its pull request: `gh pr list --head`, `gh pr create`, and
|
|
7
7
|
* `gh api` for the commit's check runs and statuses. A test, or a caller with
|
|
8
8
|
* its own forge client, passes a {@link PinForge} instead.
|
|
9
|
+
*
|
|
10
|
+
* None of those calls names a host. The rollout's default runner hands `gh`
|
|
11
|
+
* the job's forge or `origin`'s host (core's `ghHostEnv`, #3798), so a GitHub
|
|
12
|
+
* Enterprise Server checkout is answered by its own instance. `gh pr` speaks
|
|
13
|
+
* GraphQL, which Forgejo does not serve, so a rollout on Forgejo passes its
|
|
14
|
+
* own {@link PinForge}.
|
|
9
15
|
*/
|
|
10
16
|
import type { CommandRunner } from "@intentius/chant/op/activities/propose-upgrade";
|
|
11
17
|
/** A wave's pull request, as the forge reports it. */
|
package/dist/pin/forge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge.d.ts","sourceRoot":"","sources":["../../src/pin/forge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"forge.d.ts","sourceRoot":"","sources":["../../src/pin/forge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAEpF,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,QAAQ;IACvB,6EAA6E;IAC7E,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChE,8CAA8C;IAC9C,iBAAiB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvG,2CAA2C;IAC3C,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;CACtD;AAgBD,mDAAmD;AACnD,wBAAgB,UAAU,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAiCrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollout.d.ts","sourceRoot":"","sources":["../../src/pin/rollout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"rollout.d.ts","sourceRoot":"","sources":["../../src/pin/rollout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAY,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE3F,OAAO,EAAuD,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIpD,6FAA6F;AAC7F,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,KAAK,aAAa,CAAC;AAE7F,M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ACR,aAAa,CAAC;AAElB,MAAM,WAAW,aAAc,SAAQ,OAAO;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IACrE,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AA+BD,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvE;AA4GD,4GAA4G;AAC5G,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuJzF;AAcD,+CAA+C;AAC/C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG,MAAM,CAWlF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-terraform",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@intentius/chant": "^0.124.
|
|
70
|
+
"@intentius/chant": "^0.124.7",
|
|
71
71
|
"typescript": "^5.9.3",
|
|
72
72
|
"zod": "^4.3.6"
|
|
73
73
|
},
|
package/src/pin/bundle.test.ts
CHANGED
|
@@ -46,6 +46,8 @@ describe("the pin bundle", () => {
|
|
|
46
46
|
"lexicons/terraform/src/pin/source.ts",
|
|
47
47
|
"lexicons/terraform/src/pin/waves.ts",
|
|
48
48
|
"packages/core/src/components/layers.ts",
|
|
49
|
+
// The host a `gh` call goes to (#3798): node built-ins only.
|
|
50
|
+
"packages/core/src/op/activities/gh-host.ts",
|
|
49
51
|
]);
|
|
50
52
|
const bytes = result.outputFiles.reduce((n, f) => n + f.contents.byteLength, 0);
|
|
51
53
|
expect(bytes).toBeLessThan(BUDGET_BYTES);
|
package/src/pin/forge.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
* (#2550) opens its pull request: `gh pr list --head`, `gh pr create`, and
|
|
7
7
|
* `gh api` for the commit's check runs and statuses. A test, or a caller with
|
|
8
8
|
* its own forge client, passes a {@link PinForge} instead.
|
|
9
|
+
*
|
|
10
|
+
* None of those calls names a host. The rollout's default runner hands `gh`
|
|
11
|
+
* the job's forge or `origin`'s host (core's `ghHostEnv`, #3798), so a GitHub
|
|
12
|
+
* Enterprise Server checkout is answered by its own instance. `gh pr` speaks
|
|
13
|
+
* GraphQL, which Forgejo does not serve, so a rollout on Forgejo passes its
|
|
14
|
+
* own {@link PinForge}.
|
|
9
15
|
*/
|
|
10
16
|
|
|
11
17
|
import type { CommandRunner } from "@intentius/chant/op/activities/propose-upgrade";
|
package/src/pin/rollout.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { join, posix } from "node:path";
|
|
|
43
43
|
import { promisify } from "node:util";
|
|
44
44
|
import type { Hcl2Json } from "@intentius/chant/terraform/hcl2json";
|
|
45
45
|
import type { CommandRunner } from "@intentius/chant/op/activities/propose-upgrade";
|
|
46
|
+
import { ghHostEnv } from "@intentius/chant/op/activities/gh-host";
|
|
46
47
|
import { editPins, type PinCallResult, type PinEditResult, type PinRequest } from "./edit";
|
|
47
48
|
import { checkPinRequest, moduleOf } from "./source";
|
|
48
49
|
import { planPinWaves, restrictWaves, terragruntDependencies, type PinRoot, type PinWave } from "./waves";
|
|
@@ -133,7 +134,11 @@ export interface PinRolloutResult extends PinRequest {
|
|
|
133
134
|
summary: string;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
// `gh pr list/create` and `gh api repos/{owner}/{repo}/...` name no host, so
|
|
138
|
+
// a `gh` call is told the job's forge or `origin`'s host (core's `ghHostEnv`,
|
|
139
|
+
// #3780, #3798): a GitHub Enterprise Server checkout is not sent to github.com.
|
|
140
|
+
const defaultRun: CommandRunner = async (bin, args, cwd) =>
|
|
141
|
+
(await execFileAsync(bin, args, { cwd, maxBuffer: 64 * 1024 * 1024, ...(bin === "gh" ? { env: await ghHostEnv(process.env, cwd) } : {}) })).stdout;
|
|
137
142
|
|
|
138
143
|
const SKIP_DIRS = new Set([".git", ".terraform", ".terragrunt-cache", "node_modules"]);
|
|
139
144
|
|