Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/blast/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const DEFAULT_IGNORE_DIRS = new Set([
'.cache',
'coverage',
'.wrangler',
'.claude',
]);

// Matches: import X from '...', import { X } from '...', import '...', export ... from '...', require('...')
Expand Down
12 changes: 8 additions & 4 deletions packages/cli/src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ export async function loginCommand(options: CLIOptions, args: string[]): Promise
} else {
console.log('Not logged in.');
console.log('');
console.log('Usage: charter login --key sb_live_xxx');
console.log('Usage: charter login --key ea_xxx');
console.log(' charter login --key sb_live_xxx');
console.log(' charter login --key sb_test_xxx');
console.log('');
console.log('Get your API key from the Stackbilt dashboard.');
console.log('Get your API key from auth.stackbilt.dev (ea_) or the Stackbilt dashboard (sb_).');
}
return EXIT_CODE.SUCCESS;
}

if (!key.startsWith('sb_live_') && !key.startsWith('sb_test_')) {
throw new CLIError('Invalid API key format. Keys must start with sb_live_ or sb_test_.');
const VALID_PREFIXES = ['ea_', 'sb_live_', 'sb_test_'];
if (!VALID_PREFIXES.some((p) => key.startsWith(p))) {
throw new CLIError(
`Invalid API key format. Keys must start with one of: ${VALID_PREFIXES.join(', ')}.`
);
}

const baseUrl = getFlag(args, '--url');
Expand Down
Loading