@enactprotocol/cli 2.1.21 → 2.1.22

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.
@@ -161,11 +161,16 @@ async function installFromRegistry(
161
161
  config.registry?.url ??
162
162
  "https://siikwkfgsmouioodghho.supabase.co/functions/v1";
163
163
 
164
- // Get auth token - try stored JWT first (for private tools), then fall back to config
164
+ // Get auth token - try stored JWT first (for private tools), then fall back to config/env/anon
165
165
  const { getValidToken } = await import("../auth/index.js");
166
166
  let authToken: string | undefined = (await getValidToken()) ?? undefined;
167
167
  if (!authToken) {
168
- authToken = config.registry?.authToken;
168
+ authToken = config.registry?.authToken ?? process.env.ENACT_AUTH_TOKEN;
169
+ }
170
+ // Fall back to anon key for unauthenticated public access
171
+ if (!authToken && registryUrl.includes("siikwkfgsmouioodghho.supabase.co")) {
172
+ authToken =
173
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNpaWt3a2Znc21vdWlvb2RnaGhvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ2MTkzMzksImV4cCI6MjA4MDE5NTMzOX0.kxnx6-IPFhmGx6rzNx36vbyhFMFZKP_jFqaDbKnJ_E0";
169
174
  }
170
175
 
171
176
  const client = createApiClient({
package/src/index.ts CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  } from "./commands";
35
35
  import { error, formatError } from "./utils";
36
36
 
37
- export const version = "2.1.21";
37
+ export const version = "2.1.22";
38
38
 
39
39
  // Export types for external use
40
40
  export type { GlobalOptions, CommandContext } from "./types";