@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.
- package/dist/commands/auth/index.d.ts.map +1 -1
- package/dist/commands/auth/index.js +45 -27
- package/dist/commands/auth/index.js.map +1 -1
- package/dist/commands/info/index.d.ts.map +1 -1
- package/dist/commands/info/index.js +7 -2
- package/dist/commands/info/index.js.map +1 -1
- package/dist/commands/inspect/index.d.ts.map +1 -1
- package/dist/commands/inspect/index.js +7 -2
- package/dist/commands/inspect/index.js.map +1 -1
- package/dist/commands/install/index.d.ts.map +1 -1
- package/dist/commands/install/index.js +7 -2
- package/dist/commands/install/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/src/commands/auth/index.ts +50 -32
- package/src/commands/info/index.ts +7 -2
- package/src/commands/inspect/index.ts +7 -2
- package/src/commands/install/index.ts +7 -2
- package/src/index.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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.
|
|
37
|
+
export const version = "2.1.22";
|
|
38
38
|
|
|
39
39
|
// Export types for external use
|
|
40
40
|
export type { GlobalOptions, CommandContext } from "./types";
|