deployai 0.1.0-beta.42 → 0.1.0-beta.43

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 +34 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19173,8 +19173,8 @@ function currencyCode2(_params) {
19173
19173
  return _stringFormat(ZodCustomStringFormat, "currency_code", currencyCode, _params);
19174
19174
  }
19175
19175
  function hash(alg, params) {
19176
- const enc4 = params?.enc ?? "hex";
19177
- const format = `${alg}_${enc4}`;
19176
+ const enc5 = params?.enc ?? "hex";
19177
+ const format = `${alg}_${enc5}`;
19178
19178
  const regex = regexes_exports[format];
19179
19179
  if (!regex)
19180
19180
  throw new Error(`Unrecognized hash format: ${format}`);
@@ -21583,6 +21583,7 @@ var ARCH_NODES = [
21583
21583
  { id: "app-uptime", kind: "worker", zone: "customer", label: "Uptime app site", summary: "\u05D0\u05EA\u05E8 \u05E0\u05D9\u05D8\u05D5\u05E8 \u05D6\u05DE\u05D9\u05E0\u05D5\u05EA \u05E9\u05DC \u05DC\u05E7\u05D5\u05D7: \u05D0\u05EA\u05E8 \u05D1\u05E4\u05E0\u05D9 \u05E2\u05E6\u05DE\u05D5 (site-<slug> \u05D1\u05DE\u05E8\u05D7\u05D1 \u05D4\u05E9\u05DE\u05D5\u05EA), \u05E2\u05DD \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05E0\u05D5 \u05D1\u05DC\u05D1\u05D3, \u05E9\u05DE\u05EA\u05E2\u05D3\u05DB\u05DF \u05D1\u05DB\u05DC \u05D4\u05E2\u05DC\u05D0\u05D4 \u05E9\u05DC \u05D4\u05E9\u05E8\u05EA. Durable Object \u05E2\u05DD SQLite \u05D1\u05D0\u05D5\u05EA\u05D5 Worker \u05E9\u05D5\u05DE\u05E8 \u05D0\u05EA \u05D4\u05E0\u05D9\u05D8\u05D5\u05E8\u05D9\u05DD \u05D5\u05DE\u05E8\u05D9\u05E5 \u05D0\u05EA \u05D4\u05D1\u05D3\u05D9\u05E7\u05D5\u05EA \u05DE\u05E9\u05E2\u05D5\u05DF \u05DE\u05E2\u05D5\u05E8\u05E8 \u05DE\u05E9\u05DC\u05D5, \u05DE\u05E6\u05D9\u05D2 \u05D3\u05E3 \u05E1\u05D8\u05D8\u05D5\u05E1 \u05E6\u05D9\u05D1\u05D5\u05E8\u05D9 \u05D5\u05D3\u05E3 \u05E0\u05D9\u05D4\u05D5\u05DC \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD (\u05DB\u05E0\u05D9\u05E1\u05D4 \u05E2\u05DD DeployAI \u05D0\u05D5 \u05E1\u05D9\u05E1\u05DE\u05D4 \u05DE\u05E9\u05DC\u05D5), \u05D5\u05E9\u05D5\u05DC\u05D7 \u05DE\u05D9\u05D9\u05DC \u05D3\u05E8\u05DA \u05D4\u05D0\u05E4\u05DC\u05D9\u05E7\u05E6\u05D9\u05D4 \u05D5\u05BEwebhook \u05D7\u05EA\u05D5\u05DD. \u05D4\u05E4\u05DC\u05D8\u05E4\u05D5\u05E8\u05DE\u05D4 \u05E4\u05D5\u05E0\u05D4 \u05D0\u05DC\u05D9\u05D5 \u05D1\u05BE/__app/ \u05E2\u05DD \u05D0\u05E1\u05D9\u05DE\u05D5\u05DF \u05D7\u05EA\u05D5\u05DD \u05D1\u05DE\u05E4\u05EA\u05D7 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05D1\u05DC\u05D1\u05D3.", summaryEn: "A customer's Uptime site: a site of its own (site-<slug> in the namespace) that runs only our code, upgraded on every server deploy. A SQLite Durable Object in the same Worker keeps the monitors and runs the checks from its own alarm; it serves a public status page and the owner's admin (sign in with DeployAI or its own password), emails through the app and sends a signed webhook. The platform calls it on /__app/ with a token signed with this site's own key.", code: ["workers/app-uptime/src", "scripts/build-app-uptime.ts", "apps/web/src/server/apps.ts", "apps/web/src/server/apps-uptime.ts", "packages/shared/src/uptime.ts"], env: ["APPS_SIGNING_SECRET", "APP_TRIAL_KEYS"], decisions: ["D-556", "D-559"] },
21584
21584
  { id: "app-cron", kind: "worker", zone: "customer", label: "Cron Trigger app site", summary: "\u05D0\u05EA\u05E8 \u05EA\u05D6\u05DE\u05D5\u05DF \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05E9\u05DC \u05DC\u05E7\u05D5\u05D7: \u05D0\u05EA\u05E8 \u05D1\u05E4\u05E0\u05D9 \u05E2\u05E6\u05DE\u05D5 (site-<slug> \u05D1\u05DE\u05E8\u05D7\u05D1 \u05D4\u05E9\u05DE\u05D5\u05EA) \u05E2\u05DD \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05E0\u05D5 \u05D1\u05DC\u05D1\u05D3. Durable Object \u05E2\u05DD SQLite \u05D1\u05D0\u05D5\u05EA\u05D5 Worker \u05E9\u05D5\u05DE\u05E8 \u05D0\u05EA \u05D4\u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D5\u05DE\u05E8\u05D9\u05E5 \u05D0\u05D5\u05EA\u05DF \u05DE\u05E9\u05E2\u05D5\u05DF \u05DE\u05E2\u05D5\u05E8\u05E8 \u05DE\u05E9\u05DC\u05D5 \u05DC\u05E4\u05D9 \u05DC\u05D5\u05D7 \u05D6\u05DE\u05E0\u05D9\u05DD \u05D1\u05E9\u05E2\u05D5\u05DF \u05D9\u05E9\u05E8\u05D0\u05DC, \u05E2\u05DD \u05DE\u05D2\u05D1\u05DC\u05EA \u05D6\u05DE\u05DF \u05DC\u05DB\u05DC \u05E8\u05D9\u05E6\u05D4 (10 \u05E9\u05E0\u05D9\u05D5\u05EA, 3 \u05D0\u05D7\u05E8\u05D9 \u05E1\u05E3 \u05D4\u05E8\u05D9\u05E6\u05D5\u05EA \u05D4\u05D0\u05D9\u05D8\u05D9\u05D5\u05EA \u05E9\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9), \u05E9\u05D5\u05DE\u05E8 \u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4 \u05D5\u05E9\u05D5\u05DC\u05D7 \u05DE\u05D9\u05D9\u05DC \u05D3\u05E8\u05DA \u05D4\u05D0\u05E4\u05DC\u05D9\u05E7\u05E6\u05D9\u05D4 \u05D5\u05BEwebhook \u05D7\u05EA\u05D5\u05DD \u05D1\u05BEPro.", summaryEn: "A customer's Cron Trigger site: a site of its own (site-<slug> in the namespace) that runs only our code. A SQLite Durable Object in the same Worker keeps the jobs and runs them from its own alarm on a schedule in Israel time, with a time limit per run (10 seconds, 3 after the month's slow-run threshold), keeps their history, and emails through the app and sends a signed webhook with Pro.", code: ["workers/app-cron/src", "scripts/build-app-cron.ts", "apps/web/src/server/apps.ts", "apps/web/src/server/apps-notify.ts", "packages/shared/src/cron.ts"], decisions: ["D-567", "D-568"] },
21585
21585
  { id: "app-links", kind: "worker", zone: "customer", label: "Links app site", summary: "\u05D3\u05E3 \u05D4\u05DC\u05D9\u05E0\u05E7\u05D9\u05DD \u05E9\u05DC \u05DC\u05E7\u05D5\u05D7: \u05D0\u05EA\u05E8 \u05D1\u05E4\u05E0\u05D9 \u05E2\u05E6\u05DE\u05D5 (site-<slug> \u05D1\u05DE\u05E8\u05D7\u05D1 \u05D4\u05E9\u05DE\u05D5\u05EA) \u05E2\u05DD \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05E0\u05D5 \u05D1\u05DC\u05D1\u05D3. Durable Object \u05E2\u05DD SQLite \u05D1\u05D0\u05D5\u05EA\u05D5 Worker \u05E9\u05D5\u05DE\u05E8 \u05D0\u05EA \u05D4\u05DC\u05D9\u05E0\u05E7\u05D9\u05DD, \u05D4\u05EA\u05DE\u05D5\u05E0\u05D5\u05EA \u05D5\u05E1\u05E4\u05D9\u05E8\u05D5\u05EA \u05D9\u05D5\u05DE\u05D9\u05D5\u05EA. \u05D3\u05E3 \u05E6\u05D9\u05D1\u05D5\u05E8\u05D9 \u05E4\u05EA\u05D5\u05D7 \u05DC\u05DB\u05D5\u05DC\u05DD, \u05D5\u05DB\u05EA\u05D5\u05D1\u05EA \u05E7\u05E6\u05E8\u05D4 \u05DC\u05DB\u05DC \u05DC\u05D9\u05E0\u05E7 \u05E9\u05DE\u05E4\u05E0\u05D4 \u05DC\u05D9\u05E2\u05D3 \u05D5\u05E1\u05D5\u05E4\u05E8\u05EA \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D1\u05DC\u05D9 \u05E2\u05D5\u05D2\u05D9\u05D5\u05EA.", summaryEn: "A customer's Links page: a site of its own (site-<slug> in the namespace) running only our code. A SQLite Durable Object in the same Worker keeps the links, pictures and daily counts. The public page is open to everyone, and each link has a short address that redirects and counts the tap with no cookies." },
21586
+ { id: "app-files", kind: "worker", zone: "customer", label: "Files app site", summary: "\u05D0\u05E4\u05DC\u05D9\u05E7\u05E6\u05D9\u05D9\u05EA \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05DC \u05DC\u05E7\u05D5\u05D7: \u05D0\u05EA\u05E8 \u05D1\u05E4\u05E0\u05D9 \u05E2\u05E6\u05DE\u05D5 (site-<slug> \u05D1\u05DE\u05E8\u05D7\u05D1 \u05D4\u05E9\u05DE\u05D5\u05EA) \u05E2\u05DD \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05E0\u05D5 \u05D1\u05DC\u05D1\u05D3 \u05D5\u05D3\u05DC\u05D9 R2 \u05DE\u05E9\u05DC\u05D5. Durable Object \u05E2\u05DD SQLite \u05D1\u05D0\u05D5\u05EA\u05D5 Worker \u05E9\u05D5\u05DE\u05E8 \u05D0\u05EA \u05E8\u05E9\u05D9\u05DE\u05EA \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD, \u05D4\u05DE\u05E4\u05EA\u05D7\u05D5\u05EA \u05D5\u05D4\u05DE\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC \u05DB\u05DC \u05DE\u05D2\u05D1\u05DC\u05D4, \u05D5\u05DE\u05D5\u05D7\u05E7 \u05E7\u05D5\u05D1\u05E5 \u05D1\u05D6\u05DE\u05DF \u05D4\u05EA\u05E4\u05D5\u05D2\u05D4 \u05E9\u05DC\u05D5 \u05DE\u05E9\u05E2\u05D5\u05DF \u05DE\u05E2\u05D5\u05E8\u05E8; \u05DB\u05DC\u05DC \u05D2\u05D9\u05DC \u05E2\u05DC \u05D4\u05D3\u05DC\u05D9 \u05DE\u05D5\u05D7\u05E7 \u05E9\u05D5\u05D1 \u05D0\u05D7\u05E8\u05D9 31 \u05D9\u05D5\u05DD. \u05DB\u05DC \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D4\u05D5\u05E8\u05D3\u05D4 \u05D7\u05EA\u05D5\u05DD \u05D1\u05DE\u05E4\u05EA\u05D7 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D5\u05E0\u05D2\u05DE\u05E8 \u05D1\u05D6\u05DE\u05DF \u05E9\u05D4\u05DE\u05D1\u05E7\u05E9 \u05E7\u05D1\u05E2; \u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D9\u05D3 \u05D9\u05D5\u05E8\u05D3 \u05D5\u05DC\u05D0 \u05E0\u05E4\u05EA\u05D7 \u05DB\u05D3\u05E3.", summaryEn: "A customer's Files app: a site of its own (site-<slug> in the namespace) running only our code, with its own R2 bucket. A SQLite Durable Object in the same Worker keeps the file list, the API keys and the counter of every limit, and deletes a file at its expiry from its own alarm; an age rule on the bucket deletes again after 31 days. Every download link is signed with the site's key and ends when the caller said; a file always downloads, never opens as a page.", code: ["workers/app-files/src", "scripts/build-app-files.ts", "apps/web/src/server/apps.ts", "apps/web/src/server/apps-notify.ts", "packages/shared/src/files.ts"], decisions: ["D-958"] },
21586
21587
  { id: "dispatch", kind: "worker", zone: "cloudflare", label: "deployai-dispatch", summary: 'Worker \u05D0\u05D7\u05D3 \u05E2\u05DC */* \u05E9\u05DE\u05E0\u05EA\u05D1 \u05DB\u05DC \u05DB\u05EA\u05D5\u05D1\u05EA \u05DC\u05D0\u05EA\u05E8, \u05E1\u05D5\u05E4\u05E8 \u05D1\u05D9\u05E7\u05D5\u05E8\u05D9\u05DD, \u05DE\u05D2\u05D1\u05D9\u05DC \u05E7\u05E6\u05D1 \u05D5\u05DE\u05D5\u05E1\u05D9\u05E3 \u05D0\u05EA \u05D4\u05EA\u05D2 "\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05DD DeployAI" \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05D1\u05D7\u05D1\u05D9\u05DC\u05D4 \u05E9\u05DC\u05D4\u05DD \u05D9\u05E9 \u05EA\u05D2, \u05D0\u05E3 \u05E4\u05E2\u05DD \u05DC\u05D0 \u05DC\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9.', summaryEn: 'One Worker on */* that routes every address to its site, counts visits, limits the rate and adds the "Live with DeployAI" badge to sites whose plan has the badge, never to a temporary site.', code: ["workers/dispatch/src", "scripts/deploy-dispatch.ts"], env: ["DISPATCH_RATE_LIMIT_PERIOD", "PROBE_SECRET", "APP_GATE_SECRET"], docs: ["workers/dispatch/README.md"], decisions: ["D-087", "D-113", "D-179", "D-238", "D-245", "D-528"] },
21587
21588
  // Customer sites
21588
21589
  { id: "site", kind: "worker", zone: "customer", label: SITE, summary: "\u05D4\u05D0\u05EA\u05E8 \u05E9\u05DC \u05D4\u05DC\u05E7\u05D5\u05D7: Worker \u05DC\u05DB\u05DC \u05D0\u05EA\u05E8, \u05E2\u05DD \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05D5\u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05D5.", summaryEn: "The customer's site: a Worker per site, with its files and code.", portability: "Customer sites", decisions: ["D-113", "D-245"] },
@@ -21620,6 +21621,10 @@ var ARCH_EDGES = [
21620
21621
  { id: "web-app-links", from: "web", to: "app-links", kind: "http", label: "signed /__app/ calls" },
21621
21622
  { id: "cfapi-app-links", from: "cfapi", to: "app-links", kind: "deploy", label: "upload app bundle" },
21622
21623
  { id: "dispatcher-app-links", from: dispatchBindingId("DISPATCHER"), to: "app-links", kind: "http", label: "dispatch" },
21624
+ { id: "web-app-files", from: "web", to: "app-files", kind: "http", label: "signed /__app/ calls, owner downloads" },
21625
+ { id: "app-files-web", from: "app-files", to: "web", kind: "http", label: "paused file and limit email" },
21626
+ { id: "cfapi-app-files", from: "cfapi", to: "app-files", kind: "deploy", label: "upload app bundle, own R2 bucket" },
21627
+ { id: "dispatcher-app-files", from: dispatchBindingId("DISPATCHER"), to: "app-files", kind: "http", label: "dispatch" },
21623
21628
  { id: "app-uptime-web", from: "app-uptime", to: "web", kind: "http", label: "alert email, my sites" },
21624
21629
  { id: "cfapi-app-uptime", from: "cfapi", to: "app-uptime", kind: "deploy", label: "upload app bundle" },
21625
21630
  { id: "dispatcher-app-uptime", from: dispatchBindingId("DISPATCHER"), to: "app-uptime", kind: "http", label: "dispatch" },
@@ -22656,7 +22661,7 @@ var ASK_SOUND_STEP = { say: 'With your first question to the owner, and only onc
22656
22661
  var CHECK = { cmd: "npx deployai@latest check", say: "Fix every blocker it lists, then run it again until it shows none." };
22657
22662
  var FIRST_LOOK_MESSAGE = "first look";
22658
22663
  var FIRST_SITE_RULE = 'A site that has never been live (this folder is not linked yet, or npx deployai@latest status shows no live version) follows this, and not the rule for later changes. Right at the start, before you build, ask once, naming the site and its address when you know it: "When your site is ready, should I put it live for you? Anyone will be able to see it." The answers: Yes, put it live (recommended), or Show me first. Then go on working, and do not ask it again for this first version. Deploy twice. First, the first look: when a first version works, deploy without --live and send the owner the preview address. Make every change they ask for in the folder, without deploying. Second, when everything they asked for is done: on Yes, deploy with --live and give them the live address, with no more questions. On Show me first, deploy without it, send the preview address and ask: "Put it live, or change something first?" If nothing changed since the first look, there is nothing to build: run promote on that version instead of a second deploy. Deploy again only when a deploy failed, or the owner asks for more after the last one, and then put all of it in one deploy. Database changes still get their own yes.';
22659
- var DEPLOY_ASK_RULE = 'Once a site has been live, never deploy on your own, and never after each small edit: every deploy is a full build. Deploy only when what the owner asked for is done. Then say in short what changed and ask: "Put it live, see a preview first, or not yet?" Put it live: deploy with --live. Preview first: deploy without it and send the owner the preview address. Not yet: keep working, and the next change goes up in the same deploy. If the owner said to always put changes live, deploy with --live without asking. When deploy says the site goes live by itself, that is a setting the owner chose: do not ask about going live or a preview, deploy once the request is done, and tell the owner it is live and that Settings on the site page can make versions wait. Database changes still get their own yes.';
22664
+ var DEPLOY_ASK_RULE = 'Once a site has been live, never deploy on your own, and never after each small edit: every deploy is a full build. Deploy only when what the owner asked for is done. Then say in short what changed and ask: "Put it live, see a preview first, or not yet?" Put it live: deploy with --live. Preview first: deploy without it and send the owner the preview address. Not yet: keep working, and the next change goes up in the same deploy. If the owner said to always put changes live, deploy with --live without asking. When deploy says the site goes live by itself, that is a setting the owner chose: do not ask about going live or a preview, deploy once the request is done, and tell the owner it is live and that Settings on the site page can make versions wait. Database changes still get their own yes. A version that is only your own test (an experiment, a size or speed check, a half done feature) deploys with --hold: it stays a preview and never goes live by itself, also on a site that goes live by itself (D-961).';
22660
22665
  var LOCAL_PREVIEW_RULE = "While you build, show the site on this computer, never a deploy after each change. Start the site's own dev command (the dev script in package.json, for example npm run dev) yourself, in the background, so it keeps running while you work: in Claude Code as a background command, in another tool with its own way to run a command in the background or in a terminal of its own. Never ask the owner to open a terminal or type a command. If a local preview of this folder is already running, use it instead of starting a second one. Send the owner the local address it prints once, as a link, and say in one line that it updates by itself while you work and opens only on this computer. Check every change there yourself. To see a page at phone width, run npx deployai@latest shot <address> and look at the phone picture it saves: resizing a browser window often keeps the page at desktop width, so never judge the phone layout from the code alone (D-916). The local preview is not the hosting: it has a local test database that starts empty, and the built-in email to the owner, visitor countries, 301 redirects and the DeployAI badge work only on a deployed preview, so test those there, and the owner checks a phone there. When to deploy does not change. When the work is done, stop the local preview you started.";
22661
22666
  var GIT_HISTORY_RULE = "Keep the site's history with git in this folder: run git init if there is none, commit before you start and after each part that works, with a short message in the owner's language about what they see changed. Never commit .env files or secrets. When the owner asks to undo a change, or to bring back or remove a feature, do it from the git history yourself and tell them in one line what changed; never ask them to run git. Git brings back code, not data: rows, files and tables that were deleted stay deleted, so ask the owner before a change that removes data.";
22662
22667
  var ASK_OWNER_RULE = `When a question to the owner has set answers, use your tool's own question feature with clickable choices if it has one, for example AskUserQuestion in Claude Code, AskQuestion in Cursor, askQuestions in Copilot in VS Code, request_user_input in Codex, or ask_user_question in Grok Build. Use the owner's language, with each answer as its own choice. If your tool has no such feature, or it is refused or fails, ask the same question once in plain text and go on. Never change a mode or a setting to get it. A yes or no question has set answers too. This holds for every question, also one you think of yourself in the middle of the work: say what you have to say, then ask through the feature, never as the last line of your message. A question about going live names the site and its address when you know it, and says anyone will be able to see it, so the owner's answer is about this exact site (D-691). Open details, like a phone number or hours, stay in plain text, in one short list. How the owner wants you to work is saved in .deployai/owner-mode (D-865): on-my-own or check-with-me. If the file is missing, ask once, "How should I work?", with "On my own (recommended)": I build and choose the recommended option at every step, I stop only for money, deleting your content or your real domain, and I leave you a short list at the end; and "Check with me". Save the answer there, and change it when the owner says so. On my own: take the recommended option without asking, install the tools you need, and stop only for money, deleting the owner's content, a real domain going live or a fact you would have to invent, which you leave out and list. Every question opens with a short tag naming who asks, like "Search add-on \xB7 1 of 2" or "Move \xB7 forms", and a question with several items offers "Approve all (recommended)" first. Never ask the owner about a package, library, framework, tool, file path or size: ask about the outcome in plain words.`;
@@ -22836,7 +22841,7 @@ var CLI_MAP_NODES = [
22836
22841
  n("cmd-logout", "cli", "logout [email]", "\u05DE\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D8\u05D5\u05E7\u05DF \u05E9\u05DC \u05D7\u05E9\u05D1\u05D5\u05DF \u05D0\u05D7\u05D3 \u05D5\u05D9\u05D5\u05E6\u05D0 \u05DE\u05DE\u05E0\u05D5 \u05D1\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4, \u05D0\u05D5 \u05DE\u05DB\u05D5\u05DC\u05DD \u05E2\u05DD --all.", "Cancels the token of one account and logs it out on this computer, or every account with --all."),
22837
22842
  n("cmd-whoami", "cli", "whoami", "\u05E2\u05DD \u05D0\u05D9\u05D6\u05D4 \u05D7\u05E9\u05D1\u05D5\u05DF \u05DE\u05D7\u05D5\u05D1\u05E8\u05D9\u05DD, \u05D5\u05D0\u05D9\u05DC\u05D5 \u05D7\u05E9\u05D1\u05D5\u05E0\u05D5\u05EA \u05E0\u05D5\u05E1\u05E4\u05D9\u05DD \u05D1\u05DE\u05D7\u05E9\u05D1.", "Which account is logged in, and the other accounts on this computer."),
22838
22843
  n("cmd-link", "cli", "link [site]", "\u05DE\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05DC\u05D0\u05EA\u05E8, \u05D0\u05D5 \u05D9\u05D5\u05E6\u05E8 \u05D0\u05EA\u05E8 \u05E2\u05DD --create.", "Links the folder to a site, or makes one with --create."),
22839
- n("cmd-deploy", "cli", "deploy -m", "\u05D1\u05D5\u05D3\u05E7, \u05D0\u05D5\u05E8\u05D6 \u05D5\u05DE\u05E2\u05DC\u05D4 \u05D2\u05E8\u05E1\u05D4, \u05DE\u05D7\u05DB\u05D4 \u05DC\u05D1\u05E0\u05D9\u05D9\u05D4 \u05D5\u05DE\u05E2\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05DD --live \u05D0\u05D5 \u05E0\u05D5\u05EA\u05DF \u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4.", "Checks, packs and uploads a version, waits for the build, then puts it live with --live or gives the preview."),
22844
+ n("cmd-deploy", "cli", "deploy -m", "\u05D1\u05D5\u05D3\u05E7, \u05D0\u05D5\u05E8\u05D6 \u05D5\u05DE\u05E2\u05DC\u05D4 \u05D2\u05E8\u05E1\u05D4, \u05DE\u05D7\u05DB\u05D4 \u05DC\u05D1\u05E0\u05D9\u05D9\u05D4 \u05D5\u05DE\u05E2\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05DD --live \u05D0\u05D5 \u05E0\u05D5\u05EA\u05DF \u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4. \u05E2\u05DD --hold \u05D2\u05E8\u05E1\u05EA \u05D1\u05D3\u05D9\u05E7\u05D4 \u05E0\u05E9\u05D0\u05E8\u05EA \u05D1\u05D4\u05DE\u05EA\u05E0\u05D4 \u05D2\u05DD \u05D1\u05D0\u05EA\u05E8 \u05E9\u05E2\u05D5\u05DC\u05D4 \u05DC\u05D1\u05D3 (D-961).", "Checks, packs and uploads a version, waits for the build, then puts it live with --live or gives the preview. With --hold a test version waits, also on a site that goes live by itself (D-961)."),
22840
22845
  n("cmd-guest", "cli", "deploy --guest", "\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF, \u05E2\u05DD \u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05E9\u05DE\u05D9\u05E8\u05D4.", "A temporary site with no account, with a claim link."),
22841
22846
  n("cmd-pull", "cli", "pull", "\u05DE\u05D5\u05E8\u05D9\u05D3 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05E8\u05D9\u05E7\u05D4.", "Downloads the code of the live version into an empty folder."),
22842
22847
  n("cmd-sync", "cli", "sync", "\u05DE\u05DB\u05E0\u05D9\u05E1 \u05DC\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E9\u05DE\u05D9\u05E9\u05D4\u05D5 \u05D0\u05D7\u05E8 \u05D4\u05E2\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8, \u05D5\u05DE\u05E1\u05DE\u05DF \u05DE\u05D4 \u05E9\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD \u05E9\u05D9\u05E0\u05D5 (D-907).", "Brings in the changes someone else put live, and marks what both sides changed (D-907)."),
@@ -24311,8 +24316,8 @@ var enc = new TextEncoder();
24311
24316
 
24312
24317
  // ../shared/src/app-paused.ts
24313
24318
  var WORDS = {
24314
- he: { links: "\u05D4\u05D3\u05E3 \u05D4\u05D6\u05D4 \u05DE\u05D5\u05E9\u05D4\u05D4", uptime: "\u05D3\u05E3 \u05D4\u05E1\u05D8\u05D8\u05D5\u05E1 \u05D4\u05D6\u05D4 \u05DE\u05D5\u05E9\u05D4\u05D4", paused: "\u05D4\u05D0\u05E4\u05DC\u05D9\u05E7\u05E6\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DE\u05D5\u05E9\u05D4\u05D9\u05EA", formClosed: "\u05D4\u05D8\u05D5\u05E4\u05E1 \u05E1\u05D2\u05D5\u05E8 \u05DB\u05E8\u05D2\u05E2", reach: "\u05D0\u05E4\u05E9\u05E8 \u05DC\u05D9\u05E6\u05D5\u05E8 \u05E7\u05E9\u05E8:", phone: "\u05D8\u05DC\u05E4\u05D5\u05DF", whatsapp: "\u05D5\u05D5\u05D0\u05D8\u05E1\u05D0\u05E4", email: "\u05DE\u05D9\u05D9\u05DC", owner: "\u05E9\u05DC\u05DB\u05DD? \u05E4\u05EA\u05D7\u05D5 \u05D0\u05EA \u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4" },
24315
- en: { links: "This page is paused", uptime: "This status page is paused", paused: "This app is paused", formClosed: "This form is closed for now", reach: "You can still reach us:", phone: "Phone", whatsapp: "WhatsApp", email: "Email", owner: "Owner? Open your dashboard" }
24319
+ he: { links: "\u05D4\u05D3\u05E3 \u05D4\u05D6\u05D4 \u05DE\u05D5\u05E9\u05D4\u05D4", files: "\u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05DB\u05D0\u05DF \u05DE\u05D5\u05E9\u05D4\u05D9\u05DD \u05DB\u05E8\u05D2\u05E2", uptime: "\u05D3\u05E3 \u05D4\u05E1\u05D8\u05D8\u05D5\u05E1 \u05D4\u05D6\u05D4 \u05DE\u05D5\u05E9\u05D4\u05D4", paused: "\u05D4\u05D0\u05E4\u05DC\u05D9\u05E7\u05E6\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DE\u05D5\u05E9\u05D4\u05D9\u05EA", formClosed: "\u05D4\u05D8\u05D5\u05E4\u05E1 \u05E1\u05D2\u05D5\u05E8 \u05DB\u05E8\u05D2\u05E2", reach: "\u05D0\u05E4\u05E9\u05E8 \u05DC\u05D9\u05E6\u05D5\u05E8 \u05E7\u05E9\u05E8:", phone: "\u05D8\u05DC\u05E4\u05D5\u05DF", whatsapp: "\u05D5\u05D5\u05D0\u05D8\u05E1\u05D0\u05E4", email: "\u05DE\u05D9\u05D9\u05DC", owner: "\u05E9\u05DC\u05DB\u05DD? \u05E4\u05EA\u05D7\u05D5 \u05D0\u05EA \u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4" },
24320
+ en: { links: "This page is paused", files: "These files are paused for now", uptime: "This status page is paused", paused: "This app is paused", formClosed: "This form is closed for now", reach: "You can still reach us:", phone: "Phone", whatsapp: "WhatsApp", email: "Email", owner: "Owner? Open your dashboard" }
24316
24321
  };
24317
24322
  var PAUSED_OWNER_LINK = { he: WORDS.he.owner, en: WORDS.en.owner };
24318
24323
 
@@ -24322,6 +24327,12 @@ var enc2 = new TextEncoder();
24322
24327
  // ../shared/src/app-gate.ts
24323
24328
  var enc3 = new TextEncoder();
24324
24329
 
24330
+ // ../shared/src/files.ts
24331
+ var FILES_PART_BYTES = 20 * 1024 * 1024;
24332
+ var FILES_MIN_EXPIRY_S = 5 * 60;
24333
+ var FILES_UPLOAD_TTL_MS = 24 * 36e5;
24334
+ var enc4 = new TextEncoder();
24335
+
24325
24336
  // ../shared/src/dangerous-hosts.ts
24326
24337
  var DANGEROUS_MAX_BYTES = 64 * 1024 * 1024;
24327
24338
 
@@ -24619,6 +24630,9 @@ var M = {
24619
24630
  runDeploy: ' Run: npx deployai@latest deploy -m "<message>"',
24620
24631
  movedSlug: "The address of the site follows the old domain: {url}",
24621
24632
  autoLiveOn: "This site goes live by itself once built, as the owner set in Settings on the site page. Waiting for it to be live.",
24633
+ holdOn: "Test version: v{n} stays a preview and waits for the owner, even though this site goes live by itself.",
24634
+ holdAndLive: "--hold keeps a version waiting and --live puts it live. Pick one.",
24635
+ holdGuest: "A temporary site goes live after every build, so --hold does not apply to it.",
24622
24636
  moveOfferGranted: "Moved from /move: the site got {n} add-ons free. They wait until the move is done, and the last step offers them.",
24623
24637
  moveOfferCap: "The free add-ons for moved sites were already used on 3 sites of this account.",
24624
24638
  moveOfferOver: "The free add-ons offer for moved sites is over.",
@@ -24900,6 +24914,9 @@ var M = {
24900
24914
  runDeploy: ' \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest deploy -m "<message>"',
24901
24915
  movedSlug: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4\u05D0\u05EA\u05E8 \u05DC\u05E4\u05D9 \u05D4\u05D3\u05D5\u05DE\u05D9\u05D9\u05DF \u05D4\u05D9\u05E9\u05DF: {url}",
24902
24916
  autoLiveOn: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05D1\u05D3 \u05DB\u05E9\u05D4\u05D2\u05E8\u05E1\u05D4 \u05E0\u05D1\u05E0\u05D9\u05EA (\u05D4\u05D2\u05D3\u05E8\u05D4 \u05E9\u05DC \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD, \u05D1\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D4\u05D0\u05EA\u05E8). \u05DE\u05D7\u05DB\u05D9\u05DD \u05E9\u05D9\u05E2\u05DC\u05D4.",
24917
+ holdOn: "\u05D2\u05E8\u05E1\u05EA \u05D1\u05D3\u05D9\u05E7\u05D4: v{n} \u05E0\u05E9\u05D0\u05E8\u05EA \u05D1\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05D5\u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05D3 \u05E9\u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05D9\u05D0\u05E9\u05E8\u05D5, \u05D2\u05DD \u05D1\u05D0\u05EA\u05E8 \u05E9\u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05D1\u05D3.",
24918
+ holdAndLive: "--hold \u05DE\u05E9\u05D0\u05D9\u05E8 \u05D0\u05EA \u05D4\u05D2\u05E8\u05E1\u05D4 \u05D1\u05D4\u05DE\u05EA\u05E0\u05D4 \u05D5\u05BE--live \u05DE\u05E2\u05DC\u05D4 \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8. \u05D1\u05D7\u05E8\u05D5 \u05D0\u05D7\u05D3 \u05DE\u05D4\u05DD.",
24919
+ holdGuest: "\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05D0\u05D7\u05E8\u05D9 \u05DB\u05DC \u05D1\u05E0\u05D9\u05D9\u05D4, \u05D5\u05DC\u05DB\u05DF \u200E--hold \u05DC\u05D0 \u05D7\u05DC \u05E2\u05DC\u05D9\u05D5.",
24903
24920
  moveOfferGranted: "\u05D4\u05D0\u05EA\u05E8 \u05E2\u05D1\u05E8 \u05DE /move \u05D5\u05E7\u05D9\u05D1\u05DC {n} \u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D1\u05D7\u05D9\u05E0\u05DD. \u05D4\u05DD \u05DE\u05D7\u05DB\u05D9\u05DD \u05DC\u05E1\u05D5\u05E3 \u05D4\u05DE\u05E2\u05D1\u05E8, \u05D5\u05D4\u05E9\u05DC\u05D1 \u05D4\u05D0\u05D7\u05E8\u05D5\u05DF \u05DE\u05E6\u05D9\u05E2 \u05D0\u05D5\u05EA\u05DD.",
24904
24921
  moveOfferCap: "\u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05E2\u05D1\u05E8\u05D5 \u05DB\u05D1\u05E8 \u05E0\u05D5\u05E6\u05DC\u05D5 \u05D1 3 \u05D0\u05EA\u05E8\u05D9\u05DD \u05D1\u05D7\u05E9\u05D1\u05D5\u05DF \u05D4\u05D6\u05D4.",
24905
24922
  moveOfferOver: "\u05DE\u05D1\u05E6\u05E2 \u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05E2\u05D1\u05E8\u05D5 \u05D4\u05E1\u05EA\u05D9\u05D9\u05DD.",
@@ -25186,7 +25203,7 @@ function formatBytes(n2) {
25186
25203
  }
25187
25204
 
25188
25205
  // src/version.ts
25189
- var CLI_VERSION = "0.1.0-beta.42";
25206
+ var CLI_VERSION = "0.1.0-beta.43";
25190
25207
 
25191
25208
  // src/api.ts
25192
25209
  function apiContext(apiFlag, root) {
@@ -28950,10 +28967,12 @@ async function deployVersion(root, ctx, opts, guest) {
28950
28967
  const message = (opts.message ?? "").trim() || "update";
28951
28968
  const { archive, info, hasSql } = await prepare(root, ctx, guest ? GUEST_MAX_BYTES : Number.POSITIVE_INFINITY);
28952
28969
  const t = messages(root);
28970
+ const hold = Boolean(opts.hold);
28971
+ if (hold && (opts.live || guest)) throw new CliError(t(guest ? "holdGuest" : "holdAndLive"), 1, "usage");
28953
28972
  const wait = opts.live || opts.wait !== false;
28954
28973
  let live = Boolean(opts.live);
28955
28974
  if (!guest && hasSql) out(t("sqlBeforeUpload"));
28956
- if (!guest && wait && !live && isInteractive()) live = await askYes(t("askLiveFirst"));
28975
+ if (!guest && wait && !live && !hold && isInteractive()) live = await askYes(t("askLiveFirst"));
28957
28976
  out(t("deployTitle"));
28958
28977
  out();
28959
28978
  out(rows([[t("project"), project.name ?? project.projectId], [t("message"), message], ...info]));
@@ -28966,6 +28985,7 @@ async function deployVersion(root, ctx, opts, guest) {
28966
28985
  if (fixed && telemetryEnabled(ctx.config)) form.append("fixNote", fixed);
28967
28986
  addTool(form, ctx, opts.model);
28968
28987
  if (wait && soundWanted(ctx.config)) form.append("soundHere", live ? "live" : "preview");
28988
+ if (hold) form.append("hold", "1");
28969
28989
  form.append("archive", new Blob([new Uint8Array(archive)], { type: "application/gzip" }), "source.tar.gz");
28970
28990
  const res = await apiRequest(ctx, "/api/cli/deploy", DeployResponse, { method: "POST", form, timeoutMs: 5 * 6e4 });
28971
28991
  if (!guest) {
@@ -28989,14 +29009,15 @@ async function deployVersion(root, ctx, opts, guest) {
28989
29009
  );
28990
29010
  pageHint(res, root);
28991
29011
  out();
29012
+ if (hold) out(t("holdOn", { n: res.number }));
28992
29013
  if (!wait) {
28993
29014
  out(t("nextStep"));
28994
29015
  out(t("followBuild"));
28995
29016
  out(t("thenPromote", { n: res.number }));
28996
29017
  return;
28997
29018
  }
28998
- if (res.autoLive && !live) out(t("autoLiveOn"));
28999
- await afterBuild(root, ctx, project.projectId, res.number, { live: live || Boolean(res.autoLive), pollMs: opts.pollMs ?? 3e3, homeRetryMs: opts.pollMs });
29019
+ if (res.autoLive && !live && !hold) out(t("autoLiveOn"));
29020
+ await afterBuild(root, ctx, project.projectId, res.number, { live: live || !hold && Boolean(res.autoLive), hold, pollMs: opts.pollMs ?? 3e3, homeRetryMs: opts.pollMs });
29000
29021
  }
29001
29022
  var CREDIT_WAIT_MS = 1e4;
29002
29023
  var sleep3 = (ms2) => new Promise((r) => setTimeout(r, ms2));
@@ -29041,7 +29062,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
29041
29062
  const sqlWaits = ready && built.latest?.migrationStatus === "waiting";
29042
29063
  let approval = null;
29043
29064
  let live = o.live;
29044
- if (sqlWaits && !o.live && !isInteractive()) {
29065
+ if (sqlWaits && !o.live && (o.hold || !isInteractive())) {
29045
29066
  out(t("sqlLater", { n: n2 }));
29046
29067
  printStatus(root, ctx, projectId, built);
29047
29068
  return;
@@ -29056,7 +29077,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
29056
29077
  }
29057
29078
  live = true;
29058
29079
  }
29059
- if (ready && !live && isInteractive()) {
29080
+ if (ready && !live && !o.hold && isInteractive()) {
29060
29081
  if (built.latest?.preview) out(t("showPreview", { url: built.latest.preview }));
29061
29082
  live = await askYes(t("askLiveNow", { n: n2 }));
29062
29083
  }
@@ -30717,7 +30738,7 @@ ${AGENT_FEEDBACK_RULES.join("\n\n")}
30717
30738
  program.command("link").description("link this folder to a DeployAI project").argument("[project]", "project slug or id").option("--create <name>", "create a new project and link it").action(
30718
30739
  (project, opts, cmd) => linkCommand(root(cmd), ctx(cmd), project, opts)
30719
30740
  );
30720
- program.command("deploy").description("check, pack and upload the source, wait for the build, then put it live or print the preview address").option("-m, --message <message>", "version message", "update").option("--fixed <what>", "after a failed version: one sentence on what you changed to fix it, no code (helps us catch it for others)").option("--guest", "without login: deploy as a temporary site, deleted after the days we set unless claimed").option("--live", "put it live when the build is done; only after the owner said yes").option("--no-wait", "upload and return, without waiting for the build").option("--model <id>", "the AI model running this deploy, for example claude-opus-5-5 (sent only with telemetry on)").action((opts, cmd) => deployCommand(root(cmd), ctx(cmd), opts));
30741
+ program.command("deploy").description("check, pack and upload the source, wait for the build, then put it live or print the preview address").option("-m, --message <message>", "version message", "update").option("--fixed <what>", "after a failed version: one sentence on what you changed to fix it, no code (helps us catch it for others)").option("--guest", "without login: deploy as a temporary site, deleted after the days we set unless claimed").option("--live", "put it live when the build is done; only after the owner said yes").option("--no-wait", "upload and return, without waiting for the build").option("--hold", "a test version: it waits for the owner even when the site goes live by itself (auto live)").option("--model <id>", "the AI model running this deploy, for example claude-opus-5-5 (sent only with telemetry on)").action((opts, cmd) => deployCommand(root(cmd), ctx(cmd), opts));
30721
30742
  program.command("pull").description("download the code of the linked site's live version into this empty folder (needs login)").option("--history", "every version up to the live one as git commits, oldest first").action((opts, cmd) => pullCommand(root(cmd), ctx(cmd), opts));
30722
30743
  program.command("sync").description("bring the live site's changes into this folder before deploying, when someone else put a version live (D-907)").action((_opts, cmd) => syncCommand(root(cmd), ctx(cmd)));
30723
30744
  program.command("claim").description("print this folder's temporary site keep link again; --email mails it, with a reminder before the delete").option("--email <address>", "the owner's email for the link and the reminder").action((opts, cmd) => claimCommand(root(cmd), ctx(cmd), opts));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deployai",
3
- "version": "0.1.0-beta.42",
3
+ "version": "0.1.0-beta.43",
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",