deployai 0.1.0-beta.45 → 0.1.0-beta.46
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/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23631,6 +23631,7 @@ var ENV_KEYS = {
|
|
|
23631
23631
|
BETTER_AUTH_SECRET: { scope: "own", section: "app", required: ["server"], sample: { local: "change-me-to-a-long-random-string", server: "" }, about: "Signs login sessions and our own links; changing it logs everyone out. 32 characters or more in production: openssl rand -base64 48" },
|
|
23632
23632
|
APP_SHOTS_SITES: { scope: "local", section: "app", about: "The demo app sites whose product page screenshots are taken again with each new app version (D-609): uptime:<siteId>:<host>,cron:<siteId>:<host>. Unset: no automatic screenshots; pnpm apps:shots still works by hand." },
|
|
23633
23633
|
DEV_SUPERADMIN_PASSWORD: { scope: "local", section: "app", about: "The superadmin password after every local wipe. Without it the one in apps/web/local-logins.md is kept (D-100)." },
|
|
23634
|
+
POSTHOG_PROJECT_KEY: { scope: "own", section: "app", about: "PostHog project key (phc_..., EU cloud) for session replay on our own sign up, move and pay pages, Israel only (D-999). Read by the server at request time, so no rebuild. A separate project for dev and prod. Empty records nothing." },
|
|
23634
23635
|
NEXT_PUBLIC_SUPPORT_WHATSAPP: { scope: "same", section: "app", about: "The WhatsApp number people reach us on, digits with the country code (972...). Empty shows only the email (D-237)." },
|
|
23635
23636
|
OPENAI_APPS_CHALLENGE: { scope: "server", section: "app", about: "The domain check token from the OpenAI platform portal (Plugins, domain verification), served as plain text at /.well-known/openai-apps-challenge (D-474). Unset: that page is a 404." },
|
|
23636
23637
|
TUNNEL_ORIGIN_CERT: { scope: "local", section: "app", about: "The cloudflared login certificate pnpm dev:public checks. Default ~/.cloudflared/cert.pem." },
|
|
@@ -25500,7 +25501,7 @@ function formatBytes(n2) {
|
|
|
25500
25501
|
}
|
|
25501
25502
|
|
|
25502
25503
|
// src/version.ts
|
|
25503
|
-
var CLI_VERSION = "0.1.0-beta.
|
|
25504
|
+
var CLI_VERSION = "0.1.0-beta.46";
|
|
25504
25505
|
|
|
25505
25506
|
// src/api.ts
|
|
25506
25507
|
function apiContext(apiFlag, root) {
|
|
@@ -30120,6 +30121,10 @@ function linkedProjectId2(root) {
|
|
|
30120
30121
|
if (!id) throw new CliError("This folder is not linked to a DeployAI site. Run: npx deployai@latest login, then npx deployai@latest link", 1, "not_linked");
|
|
30121
30122
|
return id;
|
|
30122
30123
|
}
|
|
30124
|
+
function requireSiteCode(root) {
|
|
30125
|
+
if (filesIn(root).length) return;
|
|
30126
|
+
throw new CliError("This folder has no site code yet, so an add-on has nothing to change. Run: npx deployai@latest pull, then run this command again. If pull says the site has no version yet, build the site and deploy it first, then add the add-ons.", 1, "empty_folder");
|
|
30127
|
+
}
|
|
30123
30128
|
var STATUS_WORDS = { todo: "not started", served: "in progress", done: "done", failed: "failed", skipped: "skipped" };
|
|
30124
30129
|
async function addonsCommand(root, ctx) {
|
|
30125
30130
|
requireToken(ctx);
|
|
@@ -30168,6 +30173,7 @@ async function addonsRunCommand(root, ctx, opts = {}) {
|
|
|
30168
30173
|
out(r.addons.some((a) => a.owned) ? "Every add-on of this site is done or skipped. To run one again: npx deployai@latest addon run <name>" : "This site has no add-ons yet. See them: npx deployai@latest addons");
|
|
30169
30174
|
return;
|
|
30170
30175
|
}
|
|
30176
|
+
requireSiteCode(root);
|
|
30171
30177
|
const all = opts.all === true || !opts.oneByOne && readProject(root)?.addonsAll === true;
|
|
30172
30178
|
if (!order && r.picked && !r.agreed && todo.length > 1 && (opts.all || !all)) {
|
|
30173
30179
|
const stamps = readStamps(root);
|
|
@@ -30243,6 +30249,7 @@ function printAddon(root, a) {
|
|
|
30243
30249
|
async function addonNextCommand(root, ctx) {
|
|
30244
30250
|
requireToken(ctx);
|
|
30245
30251
|
const projectId = linkedProjectId2(root);
|
|
30252
|
+
requireSiteCode(root);
|
|
30246
30253
|
try {
|
|
30247
30254
|
printAddon(root, await apiRequest(ctx, "/api/cli/addons/next", AddonServe, { method: "POST", body: { projectId } }));
|
|
30248
30255
|
} catch (e3) {
|
|
@@ -30256,6 +30263,7 @@ async function addonNextCommand(root, ctx) {
|
|
|
30256
30263
|
async function addonRunCommand(root, ctx, key2) {
|
|
30257
30264
|
requireToken(ctx);
|
|
30258
30265
|
const projectId = linkedProjectId2(root);
|
|
30266
|
+
requireSiteCode(root);
|
|
30259
30267
|
printAddon(root, await apiRequest(ctx, `/api/cli/addons/${encodeURIComponent(key2.trim().toLowerCase())}?projectId=${encodeURIComponent(projectId)}`, AddonServe));
|
|
30260
30268
|
}
|
|
30261
30269
|
async function addonDoneCommand(root, ctx, runId, opts) {
|