@vocoder/cli 0.13.1 → 0.13.2

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/dist/bin.mjs CHANGED
@@ -2150,14 +2150,9 @@ function validateLocalConfig(config) {
2150
2150
  if (!config.apiKey || config.apiKey.length === 0) {
2151
2151
  throw new Error("VOCODER_API_KEY is required. Set it in your .env file.");
2152
2152
  }
2153
- if (!config.apiKey.startsWith("vcp_")) {
2154
- if (config.apiKey.startsWith("vco_") || config.apiKey.startsWith("vcu_")) {
2155
- throw new Error(
2156
- "VOCODER_API_KEY must be a project-scoped key (starts with vcp_). Got an org or user key."
2157
- );
2158
- }
2153
+ if (!config.apiKey.startsWith("vca_")) {
2159
2154
  throw new Error(
2160
- "Invalid API key format. Expected a project API key starting with vcp_."
2155
+ "Invalid API key format. Expected an app API key starting with vca_."
2161
2156
  );
2162
2157
  }
2163
2158
  if (!config.apiUrl || !config.apiUrl.startsWith("http")) {
@@ -2565,7 +2560,7 @@ async function sync(options = {}) {
2565
2560
  p7.log.info(" npx @vocoder/cli init");
2566
2561
  p7.log.info("");
2567
2562
  p7.log.info(
2568
- " Or add your key to .env: VOCODER_API_KEY=vcp_..."
2563
+ " Or add your key to .env: VOCODER_API_KEY=vca_..."
2569
2564
  );
2570
2565
  p7.outro("Run `npx @vocoder/cli init` to set up your project.");
2571
2566
  return 1;