deployai 0.1.0-beta.18 → 0.1.0-beta.19

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21929,6 +21929,7 @@ var ENV_KEYS = {
21929
21929
  DEPLOYAI_SPACE: { scope: "own", section: "app", required: ["local", "server"], sample: { local: "dev", server: "prod" }, about: "Which entry of packages/shared/src/spaces.ts this machine runs: dev on your computer, prod on the server. Every Cloudflare name, bucket and address comes from there." },
21930
21930
  DATABASE_URL: { scope: "own", section: "app", required: ["local", "server"], sample: { local: "postgres://deployai:deployai@localhost:5434/deployai", server: "postgres://deployai:<password>@localhost:5432/deployai" }, about: "Our own Postgres: users, sites, versions, billing. Not customer data." },
21931
21931
  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" },
21932
+ 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." },
21932
21933
  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)." },
21933
21934
  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)." },
21934
21935
  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." },
@@ -22912,7 +22913,7 @@ function messages(root) {
22912
22913
  }
22913
22914
 
22914
22915
  // src/version.ts
22915
- var CLI_VERSION = "0.1.0-beta.18";
22916
+ var CLI_VERSION = "0.1.0-beta.19";
22916
22917
 
22917
22918
  // src/api.ts
22918
22919
  function apiContext(apiFlag) {
@@ -25523,7 +25524,10 @@ async function fetchSource(root, ctx, projectId, version2) {
25523
25524
  const code = (await res.clone().json().catch(() => null))?.error;
25524
25525
  throw new CliError(code === "no_source" ? t("pullNoSource") : code === "not_on_site" ? t("notOnSite") : t("notFound"), 1, "not_found");
25525
25526
  }
25526
- if (res.status === 403) throw new CliError(t("forbidden"), 1, "forbidden");
25527
+ if (res.status === 403) {
25528
+ const code = (await res.clone().json().catch(() => null))?.error;
25529
+ throw new CliError(code === "view_only" ? t("viewOnly") : t("forbidden"), 1, "forbidden");
25530
+ }
25527
25531
  if (!res.ok) throw new CliError(t("apiError", { code: `HTTP ${res.status}` }), 1, "api");
25528
25532
  const gz = Buffer.from(await res.arrayBuffer());
25529
25533
  if (gz.length > MAX_BYTES2) throw new CliError(t("pullTooLarge"), 1, "too_large");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deployai",
3
- "version": "0.1.0-beta.18",
3
+ "version": "0.1.0-beta.19",
4
4
  "description": "Check a site built with an AI editor, see what has to change, and publish it to DeployAI. Hebrew first.",
5
5
  "keywords": [
6
6
  "deployai",