@nurix/apollo 0.4.2 → 0.4.3
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/README.md +1 -1
- package/dist/commands/init.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ The CLI owns **only** the delimited block — everything outside it is yours and
|
|
|
72
72
|
MY_OWN_SECRET=untouched
|
|
73
73
|
|
|
74
74
|
# >>> apollo:managed — do not edit by hand; the apollo CLI rewrites this block >>>
|
|
75
|
-
APOLLO_APP_KEY=
|
|
75
|
+
APOLLO_APP_KEY=018f… # opaque app id (UUID), no fixed prefix
|
|
76
76
|
EMAIL_ENDPOINT=https://…
|
|
77
77
|
EMAIL_KEY=apollo_svc_…
|
|
78
78
|
# <<< apollo:managed <<<
|
package/dist/commands/init.js
CHANGED
|
@@ -43,7 +43,9 @@ export async function runInit(options) {
|
|
|
43
43
|
}
|
|
44
44
|
const appKey = await p.password({
|
|
45
45
|
message: `Paste your APOLLO_APP_KEY (create an application in the Apollo console: ${baseUrl})`,
|
|
46
|
-
|
|
46
|
+
// The key is an opaque app id (a high-entropy UUID, no fixed prefix); the
|
|
47
|
+
// authoritative check is the server probe below, so only reject empties here.
|
|
48
|
+
validate: (value) => (value?.trim() ? undefined : "Paste your APOLLO_APP_KEY"),
|
|
47
49
|
});
|
|
48
50
|
if (p.isCancel(appKey)) {
|
|
49
51
|
p.cancel("init cancelled — nothing written.");
|