@gadicc/loom 1.25.0 → 1.26.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.
- package/README.md +4 -3
- package/esm/src/cli/mod.d.ts +5 -0
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +59 -142
- package/esm/src/cli/releaseCredentials.d.ts +32 -0
- package/esm/src/cli/releaseCredentials.d.ts.map +1 -0
- package/esm/src/cli/releaseCredentials.js +388 -0
- package/esm/src/cli/releaseTrust.d.ts +39 -0
- package/esm/src/cli/releaseTrust.d.ts.map +1 -0
- package/esm/src/cli/releaseTrust.js +125 -0
- package/esm/src/cli/releaseTrustCommand.d.ts +18 -0
- package/esm/src/cli/releaseTrustCommand.d.ts.map +1 -0
- package/esm/src/cli/releaseTrustCommand.js +142 -0
- package/package.json +2 -2
- package/script/src/cli/mod.d.ts +5 -0
- package/script/src/cli/mod.d.ts.map +1 -1
- package/script/src/cli/mod.js +59 -142
- package/script/src/cli/releaseCredentials.d.ts +32 -0
- package/script/src/cli/releaseCredentials.d.ts.map +1 -0
- package/script/src/cli/releaseCredentials.js +392 -0
- package/script/src/cli/releaseTrust.d.ts +39 -0
- package/script/src/cli/releaseTrust.d.ts.map +1 -0
- package/script/src/cli/releaseTrust.js +130 -0
- package/script/src/cli/releaseTrustCommand.d.ts +18 -0
- package/script/src/cli/releaseTrustCommand.d.ts.map +1 -0
- package/script/src/cli/releaseTrustCommand.js +145 -0
- package/skills/loom-db/SKILL.md +17 -9
package/README.md
CHANGED
|
@@ -209,9 +209,10 @@ documented in [`docs/project-tooling.md`](docs/project-tooling.md).
|
|
|
209
209
|
env vars, and the absence of DB env vars in Development.
|
|
210
210
|
- `loom db release setup-github` creates/updates the GitHub `production`
|
|
211
211
|
environment for staged Vercel releases: it stores `VERCEL_ORG_ID` and
|
|
212
|
-
`VERCEL_PROJECT_ID`,
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
`VERCEL_PROJECT_ID`, and saves a bounded project-scoped Vercel token as the
|
|
213
|
+
GitHub `VERCEL_TOKEN` environment secret. Reruns preserve an existing secret;
|
|
214
|
+
use `--rotate-token` for explicit replacement or `--token-scope team` only for
|
|
215
|
+
compatibility. Its branch policy and the release checks use
|
|
215
216
|
`features.db.config.release.productionBranch` from `loom.json`, defaulting to
|
|
216
217
|
`main`. See [release configuration](docs/network-checks.md) for other
|
|
217
218
|
production branches and matching app-owned workflow/Vercel settings.
|
package/esm/src/cli/mod.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type VercelReleaseTokenScope } from "./releaseCredentials.js";
|
|
1
2
|
import { type ProjectTooling } from "./projectTooling.js";
|
|
2
3
|
export declare const DEFAULT_LOOM_RANGE = "^1.0.0";
|
|
3
4
|
export declare const LOOM_DEPENDENCY = "@gadicc/loom";
|
|
@@ -292,7 +293,11 @@ type GithubVercelReleaseSetupOptions = {
|
|
|
292
293
|
env?: Record<string, string | undefined>;
|
|
293
294
|
environment?: string;
|
|
294
295
|
io?: CliOutput;
|
|
296
|
+
now?: () => Date;
|
|
297
|
+
rotateToken?: boolean;
|
|
298
|
+
tokenExpiryDays?: number | string;
|
|
295
299
|
tokenName?: string;
|
|
300
|
+
tokenScope?: VercelReleaseTokenScope | string;
|
|
296
301
|
};
|
|
297
302
|
type GithubMigrationCredentialSetupOptions = {
|
|
298
303
|
commandRunner?: CommandRunner;
|
package/esm/src/cli/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"AAgCA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AAuBjC,OAAO,EAUL,KAAK,cAAc,EAMpB,MAAM,qBAAqB,CAAC;AAE7B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;IACP,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBAiBP;AAipBD,wBAAsB,MAAM,CAC1B,IAAI,MAAwB,EAC5B,EAAE,GAAE,SAGH,mBA6KF"}
|
package/esm/src/cli/mod.js
CHANGED
|
@@ -8,6 +8,8 @@ import process from "node:process";
|
|
|
8
8
|
import { parseArgs } from "node:util";
|
|
9
9
|
import { filesR2PolicyIssues, parseWranglerR2Cors, r2CorsMatchesPolicy, } from "./filesR2Policy.js";
|
|
10
10
|
import { resolveProductionBranch, } from "./releaseConfig.js";
|
|
11
|
+
import { configureGithubVercelReleaseCredential, } from "./releaseCredentials.js";
|
|
12
|
+
import { runGithubReleaseTrustCommand } from "./releaseTrustCommand.js";
|
|
11
13
|
import { DEFAULT_API_KEY_AUDIT_RETENTION } from "../apiKeys/retention.js";
|
|
12
14
|
import { checkProjectSkills, getProjectSkillStatus, LOOM_EXTERNAL_SKILLS_GITIGNORE_LINE, removeLegacyNextSkillLink, setProjectSkillDisabled, syncExternalProjectSkills, syncInstalledPackageSkills, } from "./projectSkills.js";
|
|
13
15
|
import { resolveMigrationEnvironment, resolveMigrationEnvironmentFromEnvFile, verifyMigrationConnection, verifyMigrationConnectionFromEnvFile, } from "./migrationEnv.js";
|
|
@@ -6433,62 +6435,6 @@ async function hasProductionPushDbMigrationWorkflow(cwd, productionBranch) {
|
|
|
6433
6435
|
}
|
|
6434
6436
|
return false;
|
|
6435
6437
|
}
|
|
6436
|
-
function findStringPropertyDeep(value, propertyName) {
|
|
6437
|
-
if (typeof value !== "object" || value === null) {
|
|
6438
|
-
return null;
|
|
6439
|
-
}
|
|
6440
|
-
if (!Array.isArray(value) &&
|
|
6441
|
-
typeof value[propertyName] === "string") {
|
|
6442
|
-
return value[propertyName];
|
|
6443
|
-
}
|
|
6444
|
-
const children = Array.isArray(value)
|
|
6445
|
-
? value
|
|
6446
|
-
: Object.values(value);
|
|
6447
|
-
for (const child of children) {
|
|
6448
|
-
const found = findStringPropertyDeep(child, propertyName);
|
|
6449
|
-
if (found) {
|
|
6450
|
-
return found;
|
|
6451
|
-
}
|
|
6452
|
-
}
|
|
6453
|
-
return null;
|
|
6454
|
-
}
|
|
6455
|
-
function parseJsonFromCommandOutput(text) {
|
|
6456
|
-
const trimmed = text.trim();
|
|
6457
|
-
if (!trimmed) {
|
|
6458
|
-
return null;
|
|
6459
|
-
}
|
|
6460
|
-
try {
|
|
6461
|
-
return JSON.parse(trimmed);
|
|
6462
|
-
}
|
|
6463
|
-
catch {
|
|
6464
|
-
// Some CLIs print progress lines before JSON even with --format json.
|
|
6465
|
-
}
|
|
6466
|
-
const starts = [trimmed.indexOf("{"), trimmed.indexOf("[")]
|
|
6467
|
-
.filter((index) => index >= 0)
|
|
6468
|
-
.sort((a, b) => a - b);
|
|
6469
|
-
for (const start of starts) {
|
|
6470
|
-
const close = trimmed[start] === "{" ? "}" : "]";
|
|
6471
|
-
const end = trimmed.lastIndexOf(close);
|
|
6472
|
-
if (end <= start) {
|
|
6473
|
-
continue;
|
|
6474
|
-
}
|
|
6475
|
-
try {
|
|
6476
|
-
return JSON.parse(trimmed.slice(start, end + 1));
|
|
6477
|
-
}
|
|
6478
|
-
catch {
|
|
6479
|
-
// Try the next JSON-looking range.
|
|
6480
|
-
}
|
|
6481
|
-
}
|
|
6482
|
-
return null;
|
|
6483
|
-
}
|
|
6484
|
-
function parseVercelCreatedToken(text) {
|
|
6485
|
-
const parsed = parseJsonFromCommandOutput(text);
|
|
6486
|
-
if (!parsed) {
|
|
6487
|
-
return null;
|
|
6488
|
-
}
|
|
6489
|
-
return findStringPropertyDeep(parsed, "bearerToken") ??
|
|
6490
|
-
findStringPropertyDeep(parsed, "token");
|
|
6491
|
-
}
|
|
6492
6438
|
function getProjectSlug(cwd, packageJson, manifest) {
|
|
6493
6439
|
return sanitizeVercelResourceName(manifest?.project?.name ?? packageJson.name ?? basename(cwd));
|
|
6494
6440
|
}
|
|
@@ -6739,7 +6685,7 @@ function createGithubReleaseConfigCheckStep(state, context) {
|
|
|
6739
6685
|
return networkCheckResult("warning", "GitHub CLI is not available, so Loom could not inspect GitHub Actions secrets and variables.", {
|
|
6740
6686
|
suggestions: [
|
|
6741
6687
|
"Install and authenticate `gh`, then rerun `loom check --network`.",
|
|
6742
|
-
"After `gh` is available, run `loom db release setup-github` from the project root to create a
|
|
6688
|
+
"After `gh` is available, run `loom db release setup-github` from the project root to create a bounded project-scoped Vercel token and store the required GitHub release configuration.",
|
|
6743
6689
|
`Set production release config with \`gh secret set VERCEL_TOKEN --env ${PRODUCTION_GITHUB_ENVIRONMENT}\`, \`gh variable set VERCEL_ORG_ID --env ${PRODUCTION_GITHUB_ENVIRONMENT} --body ${state.vercelOrgId}\`, and \`gh variable set VERCEL_PROJECT_ID --env ${PRODUCTION_GITHUB_ENVIRONMENT} --body ${state.vercelProjectId}\`.`,
|
|
6744
6690
|
],
|
|
6745
6691
|
warnings: [
|
|
@@ -6771,7 +6717,7 @@ function createGithubReleaseConfigCheckStep(state, context) {
|
|
|
6771
6717
|
for (const secretName of REQUIRED_GITHUB_VERCEL_SECRET_NAMES) {
|
|
6772
6718
|
if (!collectionHasName(secretName, environmentSecrets, repoSecrets)) {
|
|
6773
6719
|
issues.push(`GitHub Actions is missing required production secret: ${secretName}.`);
|
|
6774
|
-
suggestions.add("Run `loom db release setup-github` from the project root to create
|
|
6720
|
+
suggestions.add("Run `loom db release setup-github` from the project root to create or preserve the bounded project-scoped Vercel release credential and store the required GitHub configuration.");
|
|
6775
6721
|
suggestions.add(`Run \`gh secret set ${secretName} --env ${PRODUCTION_GITHUB_ENVIRONMENT}\` from the project root.`);
|
|
6776
6722
|
suggestions.add(`If GitHub reports that the ${PRODUCTION_GITHUB_ENVIRONMENT} environment does not exist, create it with \`gh api --method PUT repos/:owner/:repo/environments/${PRODUCTION_GITHUB_ENVIRONMENT}\`, then rerun the secret command.`);
|
|
6777
6723
|
}
|
|
@@ -6795,7 +6741,7 @@ function createGithubReleaseConfigCheckStep(state, context) {
|
|
|
6795
6741
|
else {
|
|
6796
6742
|
issues.push(`GitHub Actions is missing required production variable: ${name}.`);
|
|
6797
6743
|
}
|
|
6798
|
-
suggestions.add("Run `loom db release setup-github` from the project root to create
|
|
6744
|
+
suggestions.add("Run `loom db release setup-github` from the project root to create or preserve the bounded project-scoped Vercel release credential and store the required GitHub configuration.");
|
|
6799
6745
|
suggestions.add(`Run \`gh variable set ${name} --env ${PRODUCTION_GITHUB_ENVIRONMENT} --body ${expectedValues[name]}\` from the project root.`);
|
|
6800
6746
|
}
|
|
6801
6747
|
for (const staleSecret of STALE_GITHUB_RELEASE_SECRET_NAMES) {
|
|
@@ -7553,10 +7499,6 @@ export async function setupGithubVercelRelease(cwd, options = {}) {
|
|
|
7553
7499
|
const commandRunner = options.commandRunner ?? defaultCommandRunner;
|
|
7554
7500
|
const env = options.env ?? process.env;
|
|
7555
7501
|
const environment = options.environment ?? PRODUCTION_GITHUB_ENVIRONMENT;
|
|
7556
|
-
const io = options.io ?? {
|
|
7557
|
-
err: (line) => console.error(line),
|
|
7558
|
-
out: (line) => console.log(line),
|
|
7559
|
-
};
|
|
7560
7502
|
const { packageJson } = await readProjectPackageJson(cwd);
|
|
7561
7503
|
const manifestText = await readTextIfExists(join(cwd, "loom.json"));
|
|
7562
7504
|
const manifest = manifestText
|
|
@@ -7577,89 +7519,24 @@ export async function setupGithubVercelRelease(cwd, options = {}) {
|
|
|
7577
7519
|
}
|
|
7578
7520
|
const tokenName = options.tokenName ??
|
|
7579
7521
|
getDefaultVercelGithubTokenName(cwd, packageJson, manifest);
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
"api",
|
|
7583
|
-
"--method",
|
|
7584
|
-
"PUT",
|
|
7585
|
-
`repos/:owner/:repo/environments/${environment}`,
|
|
7586
|
-
"--input",
|
|
7587
|
-
"-",
|
|
7588
|
-
], {
|
|
7522
|
+
return await configureGithubVercelReleaseCredential({
|
|
7523
|
+
commandRunner,
|
|
7589
7524
|
cwd,
|
|
7590
7525
|
env,
|
|
7591
|
-
input: JSON.stringify({
|
|
7592
|
-
deployment_branch_policy: {
|
|
7593
|
-
custom_branch_policies: true,
|
|
7594
|
-
protected_branches: false,
|
|
7595
|
-
},
|
|
7596
|
-
}),
|
|
7597
|
-
stdio: "pipe",
|
|
7598
|
-
});
|
|
7599
|
-
const branchPoliciesResult = await requireCommand(`List GitHub ${environment} deployment branches`, commandRunner, "gh", [
|
|
7600
|
-
"api",
|
|
7601
|
-
`repos/:owner/:repo/environments/${environment}/deployment-branch-policies`,
|
|
7602
|
-
], { cwd, env, stdio: "pipe" });
|
|
7603
|
-
const branchPolicies = parseJson(branchPoliciesResult.stdout || "{}", "GitHub deployment branch policies");
|
|
7604
|
-
if (!branchPolicies.branch_policies?.some((policy) => policy.name === productionBranch)) {
|
|
7605
|
-
await requireCommand(`Allow ${productionBranch} to deploy to GitHub ${environment}`, commandRunner, "gh", [
|
|
7606
|
-
"api",
|
|
7607
|
-
"--method",
|
|
7608
|
-
"POST",
|
|
7609
|
-
`repos/:owner/:repo/environments/${environment}/deployment-branch-policies`,
|
|
7610
|
-
"--input",
|
|
7611
|
-
"-",
|
|
7612
|
-
], {
|
|
7613
|
-
cwd,
|
|
7614
|
-
env,
|
|
7615
|
-
input: JSON.stringify({ name: productionBranch, type: "branch" }),
|
|
7616
|
-
stdio: "pipe",
|
|
7617
|
-
});
|
|
7618
|
-
}
|
|
7619
|
-
notes.push(`Ensured GitHub environment \`${environment}\` exists and allows the ${productionBranch} release branch; existing branch policies are preserved.`);
|
|
7620
|
-
await requireCommand("Set GitHub VERCEL_ORG_ID variable", commandRunner, "gh", [
|
|
7621
|
-
"variable",
|
|
7622
|
-
"set",
|
|
7623
|
-
"VERCEL_ORG_ID",
|
|
7624
|
-
"--env",
|
|
7625
7526
|
environment,
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
notes.push("Set GitHub Vercel project ID variables.");
|
|
7639
|
-
io.out(`Creating Vercel token \`${tokenName}\` scoped to this team...`);
|
|
7640
|
-
const tokenResult = await requireCommand("Create Vercel authentication token", commandRunner, vercelCli.command, [
|
|
7641
|
-
"api",
|
|
7642
|
-
`/v3/user/tokens?teamId=${encodeURIComponent(vercelLink.orgId)}`,
|
|
7643
|
-
"--method",
|
|
7644
|
-
"POST",
|
|
7645
|
-
"--input",
|
|
7646
|
-
"-",
|
|
7647
|
-
"--raw",
|
|
7648
|
-
], {
|
|
7649
|
-
cwd,
|
|
7650
|
-
env,
|
|
7651
|
-
input: JSON.stringify({
|
|
7652
|
-
name: tokenName,
|
|
7653
|
-
}),
|
|
7654
|
-
stdio: "pipe",
|
|
7527
|
+
githubCommand: githubCli.command,
|
|
7528
|
+
hasTokenOverrides: options.tokenExpiryDays !== undefined ||
|
|
7529
|
+
options.tokenName !== undefined || options.tokenScope !== undefined,
|
|
7530
|
+
now: options.now,
|
|
7531
|
+
orgId: vercelLink.orgId,
|
|
7532
|
+
productionBranch,
|
|
7533
|
+
projectId: vercelLink.projectId,
|
|
7534
|
+
rotateToken: options.rotateToken ?? false,
|
|
7535
|
+
tokenExpiryDays: options.tokenExpiryDays,
|
|
7536
|
+
tokenName,
|
|
7537
|
+
tokenScope: options.tokenScope,
|
|
7538
|
+
vercelCommand: vercelCli.command,
|
|
7655
7539
|
});
|
|
7656
|
-
const token = parseVercelCreatedToken(tokenResult.stdout);
|
|
7657
|
-
if (!token) {
|
|
7658
|
-
throw new Error("Vercel token was created, but Loom could not find a token value in the CLI JSON output. Open the Vercel dashboard token page and set `gh secret set VERCEL_TOKEN --env production` manually.");
|
|
7659
|
-
}
|
|
7660
|
-
await requireCommand("Set GitHub VERCEL_TOKEN secret", commandRunner, "gh", ["secret", "set", "VERCEL_TOKEN", "--env", environment], { cwd, env, input: token, stdio: "pipe" });
|
|
7661
|
-
notes.push("Stored the new Vercel token as GitHub secret `VERCEL_TOKEN`.");
|
|
7662
|
-
return { notes };
|
|
7663
7540
|
}
|
|
7664
7541
|
async function applyJobsFeature(cwd, framework, manifest, activate) {
|
|
7665
7542
|
const changedFiles = [];
|
|
@@ -10756,6 +10633,9 @@ function printHelp({ out }) {
|
|
|
10756
10633
|
out(" db migrations verify-env Validate migration URL precedence and role metadata without printing credentials. Add --connect for a live access preflight.");
|
|
10757
10634
|
out(" db migrations setup-github Store an existing direct migration URL as a protected GitHub Environment secret.");
|
|
10758
10635
|
out(" db release setup-github Create/update GitHub production release config for staged Vercel deploys.");
|
|
10636
|
+
out(" db release trust-plan <workflow> <plan> Plan exact Vercel Trusted Sources for a GitHub release workflow.");
|
|
10637
|
+
out(" db release trust-apply <plan> <approval-sha256> Apply a reviewed Trusted Sources plan.");
|
|
10638
|
+
out(" db release trust-check <plan> Verify the reviewed Trusted Sources plan is active.");
|
|
10759
10639
|
out(" db release prepare-build-env <env> <metadata> <policy> <manifest> Prepare metadata-backed placeholders for an external Vercel build.");
|
|
10760
10640
|
out(" db release verify-build-env <output> <manifest> Reject build-only placeholders in a deployable Vercel artifact.");
|
|
10761
10641
|
out(" dev local Enable local Loom development using a managed pnpm override or Deno link.");
|
|
@@ -10786,6 +10666,9 @@ function printHelp({ out }) {
|
|
|
10786
10666
|
out(" --configure-secrets Ask Vercel to prompt securely for missing R2 credentials; never replaces existing credentials.");
|
|
10787
10667
|
out(" --repair Apply declared non-secret Files provider drift; never deletes resources or rotates credentials.");
|
|
10788
10668
|
out(" --token-name <name> Override the Vercel token name for `loom db release setup-github`.");
|
|
10669
|
+
out(" --rotate-token Explicitly replace an existing GitHub VERCEL_TOKEN; the old Vercel token remains active.");
|
|
10670
|
+
out(" --token-scope project|team Vercel release token scope (default project; team is compatibility mode).");
|
|
10671
|
+
out(" --token-expiry-days <days> Vercel release token lifetime (default 90).");
|
|
10789
10672
|
out(" --environment <name> GitHub Environment for migration credential setup (default production).");
|
|
10790
10673
|
out(" --env-file <path> Preserved env snapshot for `db migrations verify-env`; process values take precedence.");
|
|
10791
10674
|
out(" --connect Authenticate and check migration database identity and schema privileges.");
|
|
@@ -11361,7 +11244,10 @@ async function runDbRelease(cwd, command, args, io, options) {
|
|
|
11361
11244
|
const result = await setupGithubVercelRelease(cwd, {
|
|
11362
11245
|
environment: options.environment,
|
|
11363
11246
|
io,
|
|
11247
|
+
rotateToken: options.rotateToken,
|
|
11248
|
+
tokenExpiryDays: options.tokenExpiryDays,
|
|
11364
11249
|
tokenName: options.tokenName,
|
|
11250
|
+
tokenScope: options.tokenScope,
|
|
11365
11251
|
});
|
|
11366
11252
|
for (const note of result.notes) {
|
|
11367
11253
|
io.out(`Note: ${note}`);
|
|
@@ -11369,6 +11255,31 @@ async function runDbRelease(cwd, command, args, io, options) {
|
|
|
11369
11255
|
io.out("Next step: run `loom check --production --network` to verify the release configuration.");
|
|
11370
11256
|
return 0;
|
|
11371
11257
|
}
|
|
11258
|
+
case "trust-plan":
|
|
11259
|
+
case "trust-apply":
|
|
11260
|
+
case "trust-check": {
|
|
11261
|
+
const vercelCli = await detectVercelCliCommand(cwd, defaultCommandRunner, process.env);
|
|
11262
|
+
if (!vercelCli.command) {
|
|
11263
|
+
throw new Error("Vercel CLI is not available. Install it or make `vercel`/`vc` available on PATH.");
|
|
11264
|
+
}
|
|
11265
|
+
const action = command === "trust-plan"
|
|
11266
|
+
? "plan"
|
|
11267
|
+
: command === "trust-apply"
|
|
11268
|
+
? "apply"
|
|
11269
|
+
: "check";
|
|
11270
|
+
const notes = await runGithubReleaseTrustCommand(action, args, {
|
|
11271
|
+
commandRunner: defaultCommandRunner,
|
|
11272
|
+
cwd,
|
|
11273
|
+
env: process.env,
|
|
11274
|
+
environment: action === "plan"
|
|
11275
|
+
? options.environment ?? PRODUCTION_GITHUB_ENVIRONMENT
|
|
11276
|
+
: options.environment,
|
|
11277
|
+
vercelCli: vercelCli.command,
|
|
11278
|
+
});
|
|
11279
|
+
for (const note of notes)
|
|
11280
|
+
io.out(`Note: ${note}`);
|
|
11281
|
+
return 0;
|
|
11282
|
+
}
|
|
11372
11283
|
default:
|
|
11373
11284
|
io.err(`Unknown release subcommand: ${command}`);
|
|
11374
11285
|
io.err("Run `loom --help` for usage.");
|
|
@@ -11613,6 +11524,9 @@ export async function runCli(args = process.argv.slice(2), io = {
|
|
|
11613
11524
|
"strict-skills": { type: "boolean" },
|
|
11614
11525
|
"shared-bucket": { type: "string" },
|
|
11615
11526
|
"token-name": { type: "string" },
|
|
11527
|
+
"token-expiry-days": { type: "string" },
|
|
11528
|
+
"token-scope": { type: "string" },
|
|
11529
|
+
"rotate-token": { type: "boolean" },
|
|
11616
11530
|
version: { type: "string" },
|
|
11617
11531
|
},
|
|
11618
11532
|
});
|
|
@@ -11699,6 +11613,9 @@ export async function runCli(args = process.argv.slice(2), io = {
|
|
|
11699
11613
|
plan: parsed.values.plan,
|
|
11700
11614
|
region: parsed.values.region,
|
|
11701
11615
|
tokenName: parsed.values["token-name"],
|
|
11616
|
+
tokenScope: parsed.values["token-scope"],
|
|
11617
|
+
tokenExpiryDays: parsed.values["token-expiry-days"],
|
|
11618
|
+
rotateToken: parsed.values["rotate-token"],
|
|
11702
11619
|
});
|
|
11703
11620
|
case "dev":
|
|
11704
11621
|
return await runDev(cwd, arg1, arg2, io, {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CommandRunner } from "./mod.js";
|
|
2
|
+
export declare const DEFAULT_VERCEL_TOKEN_EXPIRY_DAYS = 90;
|
|
3
|
+
export declare const VERCEL_TOKEN_EXPIRY_VARIABLE = "LOOM_VERCEL_TOKEN_EXPIRES_AT";
|
|
4
|
+
export declare const VERCEL_TOKEN_ID_VARIABLE = "LOOM_VERCEL_TOKEN_ID";
|
|
5
|
+
export declare const VERCEL_TOKEN_SCOPE_VARIABLE = "LOOM_VERCEL_TOKEN_SCOPE";
|
|
6
|
+
export type VercelReleaseTokenScope = "project" | "team";
|
|
7
|
+
type ReleaseCredentialSetupOptions = {
|
|
8
|
+
commandRunner: CommandRunner;
|
|
9
|
+
cwd: string;
|
|
10
|
+
env: Record<string, string | undefined>;
|
|
11
|
+
environment: string;
|
|
12
|
+
githubCommand: string;
|
|
13
|
+
hasTokenOverrides: boolean;
|
|
14
|
+
now?: () => Date;
|
|
15
|
+
orgId: string;
|
|
16
|
+
productionBranch: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
rotateToken: boolean;
|
|
19
|
+
tokenExpiryDays?: number | string;
|
|
20
|
+
tokenName: string;
|
|
21
|
+
tokenScope?: string;
|
|
22
|
+
vercelCommand: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Audits GitHub release protections and installs a bounded Vercel credential
|
|
26
|
+
* without exposing token values in arguments or provider failures.
|
|
27
|
+
*/
|
|
28
|
+
export declare function configureGithubVercelReleaseCredential(options: ReleaseCredentialSetupOptions): Promise<{
|
|
29
|
+
notes: string[];
|
|
30
|
+
}>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=releaseCredentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releaseCredentials.d.ts","sourceRoot":"","sources":["../../../src/src/cli/releaseCredentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,gCAAgC,KAAK,CAAC;AACnD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,CAAC;AAEzD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AA+eF;;;GAGG;AACH,wBAAsB,sCAAsC,CAC1D,OAAO,EAAE,6BAA6B;;GAuHvC"}
|