wishforge-ide/scripts/deployment-secret-plan.ts
eust-w 0ef99b1e6d style: add Prettier and EditorConfig, format the codebase
Adds prettier 3.9.8 (exact) with a shared config (single quotes,
120 columns, trailing commas), .prettierignore, .editorconfig and the
`format` / `format:check` scripts, then formats all TypeScript,
JavaScript, CSS, JSON and YAML sources.

Purely mechanical: no behaviour change. Typecheck passes, the vitest
suite and the 74 IDE node tests produce the same results as before
(socket-binding tests still cannot run inside this sandbox).
Previously the longest source line was ~3000 characters; reviewing the
following semantic changes now produces readable diffs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:32:43 +08:00

14 lines
657 B
TypeScript

import { DeploymentSecretBroker } from '../packages/runtime/src/deployment-secrets.js';
const [tenantId, environmentId, releaseId, ...secretVersionRefs] = process.argv.slice(2);
if (!tenantId || !environmentId || !releaseId)
throw new Error('Usage: deployment-secret-plan tenant-id environment-id release-id secret-ref...');
// Read-only operator metadata inspection. It deliberately does not load provider
// credentials, call Vault, change a release or modify an environment.
const plan = await new DeploymentSecretBroker(process.env).plan({
tenantId,
environmentId,
releaseId,
secretVersionRefs,
});
console.log(JSON.stringify(plan, null, 2));