infraweaver 0.3.3 → 0.3.4
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/README.md +1 -1
- package/dist/cli.mjs +30 -28
- package/dist/index.js +28 -26
- package/dist/internal.js +2 -2
- package/package.json +4 -4
- package/src/mcp/terraform/subprocess.ts +4 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
4
|
[](https://github.com/infraweaver-io/infraweaver-action/actions/workflows/test.yml)
|
|
5
|
-
[](package.json) <!-- x-release-please-version -->
|
|
6
6
|
|
|
7
7
|
**Infraweaver brings your Terraform up to best practice — automatically, as reviewable pull requests.**
|
|
8
8
|
|
package/dist/cli.mjs
CHANGED
|
@@ -136700,7 +136700,7 @@ import { existsSync as existsSync12, readdirSync as readdirSync6 } from "node:fs
|
|
|
136700
136700
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
136701
136701
|
import { join as join52 } from "node:path";
|
|
136702
136702
|
|
|
136703
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
136703
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/diffCoverage.js
|
|
136704
136704
|
import { isAbsolute, normalize, resolve } from "node:path";
|
|
136705
136705
|
function countLines(params) {
|
|
136706
136706
|
const content = params.content;
|
|
@@ -136991,7 +136991,7 @@ function readNumber(params) {
|
|
|
136991
136991
|
return void 0;
|
|
136992
136992
|
}
|
|
136993
136993
|
|
|
136994
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
136994
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuth.js
|
|
136995
136995
|
import { execSync } from "node:child_process";
|
|
136996
136996
|
import { createHash } from "node:crypto";
|
|
136997
136997
|
import { readFileSync, realpathSync, unlinkSync } from "node:fs";
|
|
@@ -137184,7 +137184,7 @@ function resolveEnv(mode) {
|
|
|
137184
137184
|
return { ...filterEnv(), ...mode };
|
|
137185
137185
|
}
|
|
137186
137186
|
|
|
137187
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137187
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/shell.js
|
|
137188
137188
|
import { spawnSync } from "node:child_process";
|
|
137189
137189
|
|
|
137190
137190
|
// node_modules/.pnpm/@infraweaver-io+core@0.1.0/node_modules/@infraweaver-io/core/dist/env.js
|
|
@@ -137658,7 +137658,7 @@ function getDevDependencyVersion(manifest, name) {
|
|
|
137658
137658
|
return version3;
|
|
137659
137659
|
}
|
|
137660
137660
|
|
|
137661
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137661
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/shell.js
|
|
137662
137662
|
var DEFAULT_TIMEOUT_MS = 10 * 6e4;
|
|
137663
137663
|
var DEFAULT_MAX_BUFFER = 64 * 1024 * 1024;
|
|
137664
137664
|
function $(cmd, args2, options) {
|
|
@@ -137711,16 +137711,16 @@ function $(cmd, args2, options) {
|
|
|
137711
137711
|
return stdout.trim();
|
|
137712
137712
|
}
|
|
137713
137713
|
|
|
137714
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137714
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/subprocess.js
|
|
137715
137715
|
import { spawn as nodeSpawn } from "node:child_process";
|
|
137716
137716
|
import { performance as performance3 } from "node:perf_hooks";
|
|
137717
137717
|
import { StringDecoder } from "node:string_decoder";
|
|
137718
137718
|
|
|
137719
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137719
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/activity.js
|
|
137720
137720
|
var DEFAULT_ACTIVITY_TIMEOUT_MS = 3e5;
|
|
137721
137721
|
var DEFAULT_ACTIVITY_CHECK_INTERVAL_MS = 5e3;
|
|
137722
137722
|
|
|
137723
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137723
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/exitHandler.js
|
|
137724
137724
|
import os5 from "node:os";
|
|
137725
137725
|
var handlers = /* @__PURE__ */ new Set();
|
|
137726
137726
|
var installed = false;
|
|
@@ -137746,7 +137746,7 @@ function exitWithSignal(signal) {
|
|
|
137746
137746
|
process.exit(128 + os5.constants.signals[signal]);
|
|
137747
137747
|
}
|
|
137748
137748
|
|
|
137749
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137749
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/subprocess.js
|
|
137750
137750
|
var SPAWN_TIMEOUT_CODE = "E_SPAWN_TIMEOUT";
|
|
137751
137751
|
var SPAWN_ACTIVITY_TIMEOUT_CODE = "E_SPAWN_ACTIVITY_TIMEOUT";
|
|
137752
137752
|
var SpawnTimeoutError = class extends Error {
|
|
@@ -138032,7 +138032,7 @@ ${errMsg}` : errMsg;
|
|
|
138032
138032
|
});
|
|
138033
138033
|
}
|
|
138034
138034
|
|
|
138035
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
138035
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuth.js
|
|
138036
138036
|
var gitBinary;
|
|
138037
138037
|
function hashFile(path4) {
|
|
138038
138038
|
return createHash("sha256").update(readFileSync(path4)).digest("hex");
|
|
@@ -138153,7 +138153,7 @@ async function $gitFetchWithDeepen(args2, options, label) {
|
|
|
138153
138153
|
}
|
|
138154
138154
|
}
|
|
138155
138155
|
|
|
138156
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
138156
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuthServer.js
|
|
138157
138157
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
138158
138158
|
import { writeFileSync } from "node:fs";
|
|
138159
138159
|
import { createServer } from "node:http";
|
|
@@ -138264,7 +138264,7 @@ async function startGitAuthServer(tmpdir4, options) {
|
|
|
138264
138264
|
};
|
|
138265
138265
|
}
|
|
138266
138266
|
|
|
138267
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
138267
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/costQuota.js
|
|
138268
138268
|
var CostQuotaExceededError = class extends Error {
|
|
138269
138269
|
code = "COST_QUOTA_EXCEEDED";
|
|
138270
138270
|
constructor(message) {
|
|
@@ -138333,7 +138333,7 @@ function resolveRunCostQuota(parsed2) {
|
|
|
138333
138333
|
return parsed2 === void 0 ? DEFAULT_RUN_COST_QUOTA_USD : parsed2;
|
|
138334
138334
|
}
|
|
138335
138335
|
|
|
138336
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
138336
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/tokenQuota.js
|
|
138337
138337
|
var TokenQuotaExceededError = class extends Error {
|
|
138338
138338
|
code = "TOKEN_QUOTA_EXCEEDED";
|
|
138339
138339
|
constructor(message) {
|
|
@@ -138415,7 +138415,7 @@ import { join as join12 } from "node:path";
|
|
|
138415
138415
|
import { performance as performance5 } from "node:perf_hooks";
|
|
138416
138416
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
138417
138417
|
|
|
138418
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
138418
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/catalog.js
|
|
138419
138419
|
function provider(config3) {
|
|
138420
138420
|
return config3;
|
|
138421
138421
|
}
|
|
@@ -138957,7 +138957,7 @@ function isVertexAnthropicId(vertexModelId) {
|
|
|
138957
138957
|
return /^claude-/i.test(vertexModelId.trim());
|
|
138958
138958
|
}
|
|
138959
138959
|
|
|
138960
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
138960
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/nativeFsDenies.js
|
|
138961
138961
|
var GIT_NATIVE_WRITE_DENY_OPENCODE = {
|
|
138962
138962
|
".git": "deny",
|
|
138963
138963
|
".git/*": "deny",
|
|
@@ -139006,7 +139006,7 @@ function runnerHomeWriteDenyClaude(runnerHome) {
|
|
|
139006
139006
|
return RUNNER_HOME_WRITE_TARGETS.flatMap((target) => CLAUDE_WRITE_TOOLS.map((tool2) => `${tool2}(${home}/${target})`));
|
|
139007
139007
|
}
|
|
139008
139008
|
|
|
139009
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
139009
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/glob.js
|
|
139010
139010
|
function globToRegex(glob) {
|
|
139011
139011
|
let re = "";
|
|
139012
139012
|
for (let i = 0; i < glob.length; i++) {
|
|
@@ -139038,7 +139038,7 @@ function isPathAllowed(path4, globs) {
|
|
|
139038
139038
|
return globs.some((g) => globToRegex(g).test(normalized));
|
|
139039
139039
|
}
|
|
139040
139040
|
|
|
139041
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
139041
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/writeGateSource.js
|
|
139042
139042
|
var WRITE_GATE_HELPERS_SOURCE = `
|
|
139043
139043
|
import { readFileSync, realpathSync } from "node:fs";
|
|
139044
139044
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -139323,7 +139323,7 @@ import { readFile as readFile2 } from "node:fs/promises";
|
|
|
139323
139323
|
import { execFileSync } from "node:child_process";
|
|
139324
139324
|
import { join as join3 } from "node:path";
|
|
139325
139325
|
|
|
139326
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
139326
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/usage.js
|
|
139327
139327
|
function formatCostUsd(costUsd) {
|
|
139328
139328
|
return costUsd.toFixed(4);
|
|
139329
139329
|
}
|
|
@@ -141645,7 +141645,7 @@ function formatWithLabel(label, message) {
|
|
|
141645
141645
|
return message.split("\n").map((line) => `${colored}${line}`).join("\n");
|
|
141646
141646
|
}
|
|
141647
141647
|
|
|
141648
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
141648
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/writePolicy.js
|
|
141649
141649
|
import { renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
141650
141650
|
import { join as join4 } from "node:path";
|
|
141651
141651
|
function writePolicyPath(tmpdir4, filename) {
|
|
@@ -141672,7 +141672,7 @@ import { join as join7 } from "node:path";
|
|
|
141672
141672
|
import { existsSync as existsSync4, readdirSync, readFileSync as readFileSync2, statSync } from "node:fs";
|
|
141673
141673
|
import { join as join6 } from "node:path";
|
|
141674
141674
|
|
|
141675
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
141675
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/pathSafety.js
|
|
141676
141676
|
import { realpathSync as realpathSync2 } from "node:fs";
|
|
141677
141677
|
import { basename, dirname, isAbsolute as isAbsolute2, join as join5, relative, resolve as resolve2 } from "node:path";
|
|
141678
141678
|
function realpathDeepest(target) {
|
|
@@ -151254,7 +151254,7 @@ function moduleDirExists(cwd, dir) {
|
|
|
151254
151254
|
}
|
|
151255
151255
|
}
|
|
151256
151256
|
|
|
151257
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
151257
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/progressComment.js
|
|
151258
151258
|
function parseProgressComment(raw2) {
|
|
151259
151259
|
if (!raw2?.id)
|
|
151260
151260
|
return void 0;
|
|
@@ -155792,7 +155792,7 @@ function resolveTerraformMcp(payload) {
|
|
|
155792
155792
|
// package.json
|
|
155793
155793
|
var package_default = {
|
|
155794
155794
|
name: "infraweaver",
|
|
155795
|
-
version: "0.3.
|
|
155795
|
+
version: "0.3.4",
|
|
155796
155796
|
description: "GitHub Action that remediates Terraform to best practices and opens one scoped pull request per concern.",
|
|
155797
155797
|
keywords: [
|
|
155798
155798
|
"ai-coding-agent",
|
|
@@ -155883,10 +155883,10 @@ var package_default = {
|
|
|
155883
155883
|
"@anthropic-ai/claude-code": "2.1.235",
|
|
155884
155884
|
"@biomejs/biome": "2.5.9",
|
|
155885
155885
|
"@infraweaver-io/attest": "^0.1.1",
|
|
155886
|
-
"@infraweaver-io/ci": "^0.1.
|
|
155886
|
+
"@infraweaver-io/ci": "^0.1.2",
|
|
155887
155887
|
"@infraweaver-io/core": "^0.1.0",
|
|
155888
|
-
"@infraweaver-io/models": "^0.1.
|
|
155889
|
-
"@infraweaver-io/sandbox": "^0.1.
|
|
155888
|
+
"@infraweaver-io/models": "^0.1.2",
|
|
155889
|
+
"@infraweaver-io/sandbox": "^0.1.2",
|
|
155890
155890
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
155891
155891
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
155892
155892
|
"@octokit/rest": "^22.0.1",
|
|
@@ -199663,7 +199663,9 @@ function run(cmd, args2, cwd, extraEnv) {
|
|
|
199663
199663
|
// plugin) can't exfiltrate credentials. `extraEnv` re-admits only the named vars.
|
|
199664
199664
|
env: resolveEnv(extraEnv ?? "restricted"),
|
|
199665
199665
|
stdio: ["ignore", "pipe", "pipe"],
|
|
199666
|
-
|
|
199666
|
+
// one shared definition of the output cap: big `terraform show -json` /
|
|
199667
|
+
// scanner SARIF output far exceeds node's 1 MiB spawnSync default.
|
|
199668
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
199667
199669
|
timeout: SUBPROCESS_TIMEOUT_MS
|
|
199668
199670
|
});
|
|
199669
199671
|
if (result.error) {
|
|
@@ -205367,7 +205369,7 @@ function createChangeImpactArtifact(params) {
|
|
|
205367
205369
|
};
|
|
205368
205370
|
}
|
|
205369
205371
|
|
|
205370
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
205372
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/rangeDiff.js
|
|
205371
205373
|
function computeIncrementalDiff(params) {
|
|
205372
205374
|
const exec = params.exec ?? $;
|
|
205373
205375
|
try {
|
|
@@ -224206,7 +224208,7 @@ function buildLocalTools(ctx) {
|
|
|
224206
224208
|
];
|
|
224207
224209
|
}
|
|
224208
224210
|
function cliVersion() {
|
|
224209
|
-
const raw2 = "0.3.
|
|
224211
|
+
const raw2 = "0.3.4";
|
|
224210
224212
|
if (raw2 !== void 0 && /^\d+\.\d+\.\d+$/.test(raw2)) {
|
|
224211
224213
|
return raw2;
|
|
224212
224214
|
}
|
|
@@ -224399,7 +224401,7 @@ async function runVerifyEvidenceCli2(params) {
|
|
|
224399
224401
|
}
|
|
224400
224402
|
|
|
224401
224403
|
// src/cli.ts
|
|
224402
|
-
var VERSION10 = "0.3.
|
|
224404
|
+
var VERSION10 = "0.3.4";
|
|
224403
224405
|
var bin = basename5(process.argv[1] || "");
|
|
224404
224406
|
var PROG = bin === "pf" || bin === PRODUCT_SLUG ? bin : PRODUCT_SLUG;
|
|
224405
224407
|
var rawArgs = process.argv.slice(2);
|
package/dist/index.js
CHANGED
|
@@ -135084,7 +135084,7 @@ import { existsSync as existsSync12, readdirSync as readdirSync6 } from "node:fs
|
|
|
135084
135084
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
135085
135085
|
import { join as join52 } from "node:path";
|
|
135086
135086
|
|
|
135087
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
135087
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/diffCoverage.js
|
|
135088
135088
|
import { isAbsolute, normalize, resolve } from "node:path";
|
|
135089
135089
|
function countLines(params) {
|
|
135090
135090
|
const content = params.content;
|
|
@@ -135375,7 +135375,7 @@ function readNumber(params) {
|
|
|
135375
135375
|
return void 0;
|
|
135376
135376
|
}
|
|
135377
135377
|
|
|
135378
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
135378
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuth.js
|
|
135379
135379
|
import { execSync } from "node:child_process";
|
|
135380
135380
|
import { createHash } from "node:crypto";
|
|
135381
135381
|
import { readFileSync, realpathSync, unlinkSync } from "node:fs";
|
|
@@ -135568,7 +135568,7 @@ function resolveEnv(mode) {
|
|
|
135568
135568
|
return { ...filterEnv(), ...mode };
|
|
135569
135569
|
}
|
|
135570
135570
|
|
|
135571
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
135571
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/shell.js
|
|
135572
135572
|
import { spawnSync } from "node:child_process";
|
|
135573
135573
|
|
|
135574
135574
|
// node_modules/.pnpm/@infraweaver-io+core@0.1.0/node_modules/@infraweaver-io/core/dist/env.js
|
|
@@ -136042,7 +136042,7 @@ function getDevDependencyVersion(manifest, name) {
|
|
|
136042
136042
|
return version3;
|
|
136043
136043
|
}
|
|
136044
136044
|
|
|
136045
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
136045
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/shell.js
|
|
136046
136046
|
var DEFAULT_TIMEOUT_MS = 10 * 6e4;
|
|
136047
136047
|
var DEFAULT_MAX_BUFFER = 64 * 1024 * 1024;
|
|
136048
136048
|
function $(cmd, args2, options) {
|
|
@@ -136095,16 +136095,16 @@ function $(cmd, args2, options) {
|
|
|
136095
136095
|
return stdout.trim();
|
|
136096
136096
|
}
|
|
136097
136097
|
|
|
136098
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
136098
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/subprocess.js
|
|
136099
136099
|
import { spawn as nodeSpawn } from "node:child_process";
|
|
136100
136100
|
import { performance as performance3 } from "node:perf_hooks";
|
|
136101
136101
|
import { StringDecoder } from "node:string_decoder";
|
|
136102
136102
|
|
|
136103
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
136103
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/activity.js
|
|
136104
136104
|
var DEFAULT_ACTIVITY_TIMEOUT_MS = 3e5;
|
|
136105
136105
|
var DEFAULT_ACTIVITY_CHECK_INTERVAL_MS = 5e3;
|
|
136106
136106
|
|
|
136107
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
136107
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/exitHandler.js
|
|
136108
136108
|
import os from "node:os";
|
|
136109
136109
|
var handlers = /* @__PURE__ */ new Set();
|
|
136110
136110
|
var installed = false;
|
|
@@ -136130,7 +136130,7 @@ function exitWithSignal(signal) {
|
|
|
136130
136130
|
process.exit(128 + os.constants.signals[signal]);
|
|
136131
136131
|
}
|
|
136132
136132
|
|
|
136133
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
136133
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/subprocess.js
|
|
136134
136134
|
var SPAWN_TIMEOUT_CODE = "E_SPAWN_TIMEOUT";
|
|
136135
136135
|
var SPAWN_ACTIVITY_TIMEOUT_CODE = "E_SPAWN_ACTIVITY_TIMEOUT";
|
|
136136
136136
|
var SpawnTimeoutError = class extends Error {
|
|
@@ -136416,7 +136416,7 @@ ${errMsg}` : errMsg;
|
|
|
136416
136416
|
});
|
|
136417
136417
|
}
|
|
136418
136418
|
|
|
136419
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
136419
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuth.js
|
|
136420
136420
|
var gitBinary;
|
|
136421
136421
|
function hashFile(path4) {
|
|
136422
136422
|
return createHash("sha256").update(readFileSync(path4)).digest("hex");
|
|
@@ -136537,7 +136537,7 @@ async function $gitFetchWithDeepen(args2, options, label) {
|
|
|
136537
136537
|
}
|
|
136538
136538
|
}
|
|
136539
136539
|
|
|
136540
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
136540
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/gitAuthServer.js
|
|
136541
136541
|
import { randomUUID } from "node:crypto";
|
|
136542
136542
|
import { writeFileSync } from "node:fs";
|
|
136543
136543
|
import { createServer } from "node:http";
|
|
@@ -136648,7 +136648,7 @@ async function startGitAuthServer(tmpdir3, options) {
|
|
|
136648
136648
|
};
|
|
136649
136649
|
}
|
|
136650
136650
|
|
|
136651
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
136651
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/costQuota.js
|
|
136652
136652
|
var CostQuotaExceededError = class extends Error {
|
|
136653
136653
|
code = "COST_QUOTA_EXCEEDED";
|
|
136654
136654
|
constructor(message) {
|
|
@@ -136717,7 +136717,7 @@ function resolveRunCostQuota(parsed2) {
|
|
|
136717
136717
|
return parsed2 === void 0 ? DEFAULT_RUN_COST_QUOTA_USD : parsed2;
|
|
136718
136718
|
}
|
|
136719
136719
|
|
|
136720
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
136720
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/tokenQuota.js
|
|
136721
136721
|
var TokenQuotaExceededError = class extends Error {
|
|
136722
136722
|
code = "TOKEN_QUOTA_EXCEEDED";
|
|
136723
136723
|
constructor(message) {
|
|
@@ -136799,7 +136799,7 @@ import { join as join12 } from "node:path";
|
|
|
136799
136799
|
import { performance as performance5 } from "node:perf_hooks";
|
|
136800
136800
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
136801
136801
|
|
|
136802
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
136802
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/catalog.js
|
|
136803
136803
|
function provider(config3) {
|
|
136804
136804
|
return config3;
|
|
136805
136805
|
}
|
|
@@ -137341,7 +137341,7 @@ function isVertexAnthropicId(vertexModelId) {
|
|
|
137341
137341
|
return /^claude-/i.test(vertexModelId.trim());
|
|
137342
137342
|
}
|
|
137343
137343
|
|
|
137344
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137344
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/nativeFsDenies.js
|
|
137345
137345
|
var GIT_NATIVE_WRITE_DENY_OPENCODE = {
|
|
137346
137346
|
".git": "deny",
|
|
137347
137347
|
".git/*": "deny",
|
|
@@ -137390,7 +137390,7 @@ function runnerHomeWriteDenyClaude(runnerHome) {
|
|
|
137390
137390
|
return RUNNER_HOME_WRITE_TARGETS.flatMap((target) => CLAUDE_WRITE_TOOLS.map((tool2) => `${tool2}(${home}/${target})`));
|
|
137391
137391
|
}
|
|
137392
137392
|
|
|
137393
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137393
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/glob.js
|
|
137394
137394
|
function globToRegex(glob) {
|
|
137395
137395
|
let re = "";
|
|
137396
137396
|
for (let i = 0; i < glob.length; i++) {
|
|
@@ -137422,7 +137422,7 @@ function isPathAllowed(path4, globs) {
|
|
|
137422
137422
|
return globs.some((g) => globToRegex(g).test(normalized));
|
|
137423
137423
|
}
|
|
137424
137424
|
|
|
137425
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
137425
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/writeGateSource.js
|
|
137426
137426
|
var WRITE_GATE_HELPERS_SOURCE = `
|
|
137427
137427
|
import { readFileSync, realpathSync } from "node:fs";
|
|
137428
137428
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -137748,7 +137748,7 @@ import { readFile as readFile2 } from "node:fs/promises";
|
|
|
137748
137748
|
import { execFileSync } from "node:child_process";
|
|
137749
137749
|
import { join as join3 } from "node:path";
|
|
137750
137750
|
|
|
137751
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
137751
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/usage.js
|
|
137752
137752
|
function formatCostUsd(costUsd) {
|
|
137753
137753
|
return costUsd.toFixed(4);
|
|
137754
137754
|
}
|
|
@@ -141409,7 +141409,7 @@ function formatWithLabel(label, message) {
|
|
|
141409
141409
|
return message.split("\n").map((line) => `${colored}${line}`).join("\n");
|
|
141410
141410
|
}
|
|
141411
141411
|
|
|
141412
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
141412
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/writePolicy.js
|
|
141413
141413
|
import { renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
141414
141414
|
import { join as join4 } from "node:path";
|
|
141415
141415
|
function writePolicyPath(tmpdir3, filename) {
|
|
@@ -141436,7 +141436,7 @@ import { join as join7 } from "node:path";
|
|
|
141436
141436
|
import { existsSync as existsSync4, readdirSync, readFileSync as readFileSync2, statSync } from "node:fs";
|
|
141437
141437
|
import { join as join6 } from "node:path";
|
|
141438
141438
|
|
|
141439
|
-
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.
|
|
141439
|
+
// node_modules/.pnpm/@infraweaver-io+sandbox@0.1.2/node_modules/@infraweaver-io/sandbox/dist/pathSafety.js
|
|
141440
141440
|
import { realpathSync as realpathSync2 } from "node:fs";
|
|
141441
141441
|
import { basename, dirname, isAbsolute as isAbsolute2, join as join5, relative, resolve as resolve2 } from "node:path";
|
|
141442
141442
|
function realpathDeepest(target) {
|
|
@@ -151018,7 +151018,7 @@ function moduleDirExists(cwd, dir) {
|
|
|
151018
151018
|
}
|
|
151019
151019
|
}
|
|
151020
151020
|
|
|
151021
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
151021
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/progressComment.js
|
|
151022
151022
|
function parseProgressComment(raw2) {
|
|
151023
151023
|
if (!raw2?.id)
|
|
151024
151024
|
return void 0;
|
|
@@ -155556,7 +155556,7 @@ function resolveTerraformMcp(payload) {
|
|
|
155556
155556
|
// package.json
|
|
155557
155557
|
var package_default = {
|
|
155558
155558
|
name: "infraweaver",
|
|
155559
|
-
version: "0.3.
|
|
155559
|
+
version: "0.3.4",
|
|
155560
155560
|
description: "GitHub Action that remediates Terraform to best practices and opens one scoped pull request per concern.",
|
|
155561
155561
|
keywords: [
|
|
155562
155562
|
"ai-coding-agent",
|
|
@@ -155647,10 +155647,10 @@ var package_default = {
|
|
|
155647
155647
|
"@anthropic-ai/claude-code": "2.1.235",
|
|
155648
155648
|
"@biomejs/biome": "2.5.9",
|
|
155649
155649
|
"@infraweaver-io/attest": "^0.1.1",
|
|
155650
|
-
"@infraweaver-io/ci": "^0.1.
|
|
155650
|
+
"@infraweaver-io/ci": "^0.1.2",
|
|
155651
155651
|
"@infraweaver-io/core": "^0.1.0",
|
|
155652
|
-
"@infraweaver-io/models": "^0.1.
|
|
155653
|
-
"@infraweaver-io/sandbox": "^0.1.
|
|
155652
|
+
"@infraweaver-io/models": "^0.1.2",
|
|
155653
|
+
"@infraweaver-io/sandbox": "^0.1.2",
|
|
155654
155654
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
155655
155655
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
155656
155656
|
"@octokit/rest": "^22.0.1",
|
|
@@ -199427,7 +199427,9 @@ function run(cmd, args2, cwd, extraEnv) {
|
|
|
199427
199427
|
// plugin) can't exfiltrate credentials. `extraEnv` re-admits only the named vars.
|
|
199428
199428
|
env: resolveEnv(extraEnv ?? "restricted"),
|
|
199429
199429
|
stdio: ["ignore", "pipe", "pipe"],
|
|
199430
|
-
|
|
199430
|
+
// one shared definition of the output cap: big `terraform show -json` /
|
|
199431
|
+
// scanner SARIF output far exceeds node's 1 MiB spawnSync default.
|
|
199432
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
199431
199433
|
timeout: SUBPROCESS_TIMEOUT_MS
|
|
199432
199434
|
});
|
|
199433
199435
|
if (result.error) {
|
|
@@ -205131,7 +205133,7 @@ function createChangeImpactArtifact(params) {
|
|
|
205131
205133
|
};
|
|
205132
205134
|
}
|
|
205133
205135
|
|
|
205134
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
205136
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/rangeDiff.js
|
|
205135
205137
|
function computeIncrementalDiff(params) {
|
|
205136
205138
|
const exec = params.exec ?? $;
|
|
205137
205139
|
try {
|
package/dist/internal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __dirnameFn } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __dirnameFn(__filename);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/@infraweaver-io+ci@0.1.
|
|
3
|
+
// node_modules/.pnpm/@infraweaver-io+ci@0.1.2/node_modules/@infraweaver-io/ci/dist/progressComment.js
|
|
4
4
|
async function getProgressComment(ctx, comment) {
|
|
5
5
|
const result = await (comment.type === "review" ? ctx.octokit.rest.pulls.getReviewComment({
|
|
6
6
|
owner: ctx.owner,
|
|
@@ -110,7 +110,7 @@ function isValidTimeString(input) {
|
|
|
110
110
|
return parseTimeString(input) !== null;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@infraweaver-io+models@0.1.
|
|
113
|
+
// node_modules/.pnpm/@infraweaver-io+models@0.1.2/node_modules/@infraweaver-io/models/dist/catalog.js
|
|
114
114
|
function provider(config) {
|
|
115
115
|
return config;
|
|
116
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infraweaver",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "GitHub Action that remediates Terraform to best practices and opens one scoped pull request per concern.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-coding-agent",
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"@anthropic-ai/claude-code": "2.1.235",
|
|
92
92
|
"@biomejs/biome": "2.5.9",
|
|
93
93
|
"@infraweaver-io/attest": "^0.1.1",
|
|
94
|
-
"@infraweaver-io/ci": "^0.1.
|
|
94
|
+
"@infraweaver-io/ci": "^0.1.2",
|
|
95
95
|
"@infraweaver-io/core": "^0.1.0",
|
|
96
|
-
"@infraweaver-io/models": "^0.1.
|
|
97
|
-
"@infraweaver-io/sandbox": "^0.1.
|
|
96
|
+
"@infraweaver-io/models": "^0.1.2",
|
|
97
|
+
"@infraweaver-io/sandbox": "^0.1.2",
|
|
98
98
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
99
99
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
100
100
|
"@octokit/rest": "^22.0.1",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { resolveEnv } from "@infraweaver-io/core/secrets";
|
|
3
|
+
import { DEFAULT_MAX_BUFFER } from "@infraweaver-io/sandbox/shell";
|
|
3
4
|
import { log } from "#app/utils/cli";
|
|
4
5
|
|
|
5
6
|
export type RunResult = { status: number; stdout: string; stderr: string; missing: boolean };
|
|
@@ -38,7 +39,9 @@ export function run(
|
|
|
38
39
|
// plugin) can't exfiltrate credentials. `extraEnv` re-admits only the named vars.
|
|
39
40
|
env: resolveEnv(extraEnv ?? "restricted") as NodeJS.ProcessEnv,
|
|
40
41
|
stdio: ["ignore", "pipe", "pipe"],
|
|
41
|
-
|
|
42
|
+
// one shared definition of the output cap: big `terraform show -json` /
|
|
43
|
+
// scanner SARIF output far exceeds node's 1 MiB spawnSync default.
|
|
44
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
42
45
|
timeout: SUBPROCESS_TIMEOUT_MS,
|
|
43
46
|
});
|
|
44
47
|
if (result.error) {
|