MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / assignmentValue

Function assignmentValue

scripts/web-env/index.ts:131–141  ·  view source on GitHub ↗
(content: string, name: string)

Source from the content-addressed store, hash-verified

129 const sensitive = await askSensitivity(options.name);
130 const repoRoot = findRepoRoot();
131 const tempDirectory = mkdtempSync(path.join(os.tmpdir(), 'kilo-web-env-'));
132
133 try {
134 const vaultEnvironments = sensitive
135 ? environments.filter(
136 (environment): environment is VaultEnvironment => environment !== 'development'
137 )
138 : [];
139 console.log(`Checking Vercel${vaultEnvironments.length > 0 ? ' and 1Password' : ''} access...`);
140 const { contexts, missingProjects } = resolveVercelContexts(tempDirectory);
141 if (contexts.length === 0) throw new Error('None of the Vercel projects exist.');
142 const vault = vaultEnvironments.length > 0 ? resolveVault() : undefined;
143 const values = await collectValues(options, environments);
144 const defaults = options.only

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected