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

Function missingCommandMessage

scripts/web-env/shared.ts:60–78  ·  view source on GitHub ↗
(command: string, args: string[])

Source from the content-addressed store, hash-verified

58 'Install 1Password CLI (`op`). On macOS with Homebrew: `brew install 1password-cli`.',
59 `Linux and manual install options: ${ONE_PASSWORD_CLI_DOCS}`,
60 'After installing, verify with `op --version`, then sign in with `op signin`.',
61 ];
62}
63
64function missingCommandMessage(command: string, args: string[]): string | undefined {
65 if (command === 'op') {
66 return [
67 '1Password CLI (`op`) is not installed or is not on PATH.',
68 ...onePasswordInstallInstructions(),
69 `Verify access with \`op account list --format=json\`, then \`op vault get "${VAULT}" --account ${ONE_PASSWORD_ACCOUNT_URL} --format=json\`.`,
70 ].join('\n');
71 }
72
73 if (command === 'pnpm' && args[0] === 'exec' && args[1] === 'vercel') {
74 return [
75 'Vercel access checks require pnpm, but `pnpm` is not installed or is not on PATH.',
76 'Install pnpm with Corepack (`corepack enable`) or enter the repo dev shell.',
77 'Run `pnpm install --frozen-lockfile` in the checkout, then verify access with `pnpm exec vercel whoami --scope kilocode --format=json`.',
78 ].join('\n');
79 }
80
81 return undefined;

Callers 1

runFunction · 0.85

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected