deployai 0.1.0-beta.41 → 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 +151 -20
  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)."),
@@ -23232,8 +23237,8 @@ function addPageTags(site, page3, path) {
23232
23237
  for (const text2 of page3.events) if (!site.events.some((x) => x.text === text2)) site.events.push({ text: text2, page: path });
23233
23238
  for (const v of page3.verification) if (!site.verification.some((x) => x.service === v.service && x.value === v.value)) site.verification.push({ ...v, page: path });
23234
23239
  for (const f of page3.forms) {
23235
- const same2 = site.forms.some((x) => x.id === f.id && x.action === f.action && x.classes === f.classes);
23236
- if (!same2 && site.forms.length < FORMS_KEPT) site.forms.push({ ...f, page: path });
23240
+ const same3 = site.forms.some((x) => x.id === f.id && x.action === f.action && x.classes === f.classes);
23241
+ if (!same3 && site.forms.length < FORMS_KEPT) site.forms.push({ ...f, page: path });
23237
23242
  }
23238
23243
  }
23239
23244
  function addBrowserRequests(site, urls, siteUrl) {
@@ -23476,7 +23481,80 @@ function moveQuestions(r) {
23476
23481
  function dashboardParts(r) {
23477
23482
  return [...r.forms.length ? ["forms"] : [], ...r.pages.some((p) => p.type === "post") ? ["blog"] : []];
23478
23483
  }
23484
+ var SAME_AS_QUESTION = { serverPixel: /conversions api|server.?side|server pixel/i, thankYou: /thank.?you/i, verificationFile: /search console/i };
23485
+ var GROUP_ORDER = ["notPossible", "partly", "replaced", "moved"];
23486
+ function moveWaiting(r, answers) {
23487
+ const keys = moveQuestions(r);
23488
+ const rows2 = r.features.map((f) => {
23489
+ const [prefix, state] = FEATURE_STATES.find(([s]) => f.status.toLowerCase().startsWith(s)) ?? ["", "partly"];
23490
+ return { name: f.name.replace(/\s*\(tags\.json\)/gi, "").trim(), state, detail: f.status.slice(prefix.length).trim() || null, note: f.note ?? null };
23491
+ });
23492
+ const askedBy = (row2) => keys.find((k) => SAME_AS_QUESTION[k].test(row2.name));
23493
+ const waiting = (row2) => row2.state === "needsYou" || row2.state === "outside";
23494
+ const questions = keys.map((key2) => ({ key: key2, answer: answers[key2] ?? null, note: rows2.find((row2) => waiting(row2) && askedBy(row2) === key2)?.note ?? null }));
23495
+ const todo = rows2.filter((row2) => waiting(row2) && !askedBy(row2));
23496
+ const listed = [...r.outside.map((o) => o.host), ...r.tags.map((t) => TAG_CATALOG.find((c) => c.key === t.key)?.name ?? t.key)].map((s) => s.toLowerCase());
23497
+ const elsewhere = (row2) => row2.state === "moved" && listed.some((s) => row2.name.toLowerCase().includes(s));
23498
+ const groups = GROUP_ORDER.map((state) => ({ state, rows: rows2.filter((row2) => row2.state === state && !elsewhere(row2)) })).filter((g) => g.rows.length);
23499
+ return { questions, todo, count: questions.filter((q) => !q.answer).length + todo.length, groups };
23500
+ }
23501
+ var same = (a) => (b) => a.key === b.key && sameTagId(a.key, a.id, b.id);
23502
+ function planLineFor(features, names) {
23503
+ const want = names.filter((n2) => n2 && n2.length > 2).map((n2) => n2.toLowerCase());
23504
+ for (const f of features ?? []) {
23505
+ const name = f.name.toLowerCase();
23506
+ if (!want.some((w) => name.includes(w))) continue;
23507
+ const [prefix, state] = FEATURE_STATES.find(([st]) => f.status.toLowerCase().startsWith(st)) ?? ["", "partly"];
23508
+ return { state, detail: f.status.slice(prefix.length).trim() || null, note: f.note ?? null };
23509
+ }
23510
+ return null;
23511
+ }
23479
23512
  var tagRowKey = (t) => `${t.key}|${t.id ?? ""}`;
23513
+ function tagRows(r, opts = {}) {
23514
+ const rows2 = [];
23515
+ for (const t of r.tags) {
23516
+ const entry = TAG_CATALOG.find((c) => c.key === t.key);
23517
+ if (!entry) continue;
23518
+ const removed = r.verify?.removed.some((x) => [t.id ?? "", t.key, entry.name].some((w) => w && x.toLowerCase() === w.toLowerCase()));
23519
+ const plan = planLineFor(r.features, [entry.name, t.key]);
23520
+ const replaced = plan?.state === "replaced" && !r.verify?.seen.some(same(t));
23521
+ const inPages = t.source === "page";
23522
+ const onLive = opts.live?.some(same(t));
23523
+ const status = replaced ? "replaced" : removed ? "removed" : opts.live && !onLive && inPages ? "missing" : opts.confirmed?.[tagRowKey(t)] ? "confirmed" : onLive ? "live" : r.verify?.fired?.some(same(t)) ? "fired" : r.verify?.seen.some(same(t)) ? "preview" : r.verify && inPages ? "missing" : t.source === "container" ? "container" : t.source === "browser" ? "browser" : "found";
23524
+ rows2.push({ key: t.key, name: entry.name, kind: entry.kind, id: t.id, source: t.source, pages: t.pages, pageCount: t.pageCount, domainLocked: Boolean(entry.domainLocked), checkUrl: entry.checkUrl ?? null, status, ...status === "replaced" ? { replacedBy: plan?.detail ?? null } : {} });
23525
+ }
23526
+ const order = ["missing", "found", "container", "browser", "preview", "fired", "live", "confirmed", "replaced", "removed"];
23527
+ return rows2.sort((a, b) => order.indexOf(a.status) - order.indexOf(b.status) || a.name.localeCompare(b.name));
23528
+ }
23529
+ function pageOpened(v, path) {
23530
+ if (!v) return null;
23531
+ const trim = (p) => p.replace(/\/+$/, "");
23532
+ if (v.pageFindings) return !v.pageFindings.some((f) => trim(f.path) === trim(path));
23533
+ return v.pageProblems === 0 ? true : null;
23534
+ }
23535
+ function selfChecks(r, opts = {}) {
23536
+ const confirmed = opts.confirmed ?? {};
23537
+ const out2 = [];
23538
+ const add = (c) => {
23539
+ if (!out2.some((x) => x.key === c.key)) out2.push({ ...c, done: confirmed[c.key] ?? null });
23540
+ };
23541
+ if (!r.verify) return out2;
23542
+ const rows2 = tagRows(r, opts);
23543
+ const kept = (t) => ["preview", "fired", "live", "confirmed"].includes(t.status);
23544
+ for (const t of rows2) {
23545
+ if (t.status === "replaced") add({ key: `self|replaced|${tagRowKey(t)}`, kind: "replaced", name: t.name, detail: t.replacedBy ?? null, checkUrl: null });
23546
+ else if (kept(t) && t.checkUrl && t.key !== "ua") add({ key: tagRowKey(t), kind: "arrive", name: t.name, detail: t.id, checkUrl: t.checkUrl });
23547
+ else if (kept(t) && (t.kind === "chat" || t.kind === "calls")) add({ key: `self|tap|${tagRowKey(t)}`, kind: "tap", name: t.name, detail: t.id, checkUrl: null });
23548
+ }
23549
+ if (r.forms.some((f) => f.id !== "commentform") || (r.kit?.forms.length ?? 0) > 0) add({ key: "self|form", kind: "form", name: r.kit?.forms[0]?.label ?? "", detail: null, checkUrl: null });
23550
+ for (const o of r.outside) {
23551
+ if (outsideService(o.host)) continue;
23552
+ const plan = planLineFor(r.features, [o.host]);
23553
+ add({ key: `self|outside|${o.host}`, kind: "outside", name: o.host, detail: plan ? [plan.detail, plan.note].filter(Boolean).join(". ") || null : null, checkUrl: null });
23554
+ }
23555
+ for (const p of r.kit?.pages ?? []) if (pageOpened(r.verify, p.path) === null) add({ key: `self|page|${p.path}`, kind: "page", name: p.path, detail: p.title, checkUrl: null });
23556
+ return out2;
23557
+ }
23480
23558
 
23481
23559
  // ../shared/src/env-scopes.ts
23482
23560
  var ENV_KEYS = {
@@ -23670,6 +23748,7 @@ var KEEP_DATA_RULES = [
23670
23748
  "Never delete the old database, files or storage service."
23671
23749
  ];
23672
23750
  var AGENT_POINTER = "Read DEPLOYAI.md before your first answer and before you write code, change the plan or add a dependency: this project is published with DeployAI.";
23751
+ var SITE_COPY_RULE = "Words on the site: write each language from what a visitor must know, the way a native writer of that language says it, never word for word from another language. Read each page alone in its own language: if it sounds translated, rewrite it. Keep one term for each thing in every language (when .deployai/glossary.md exists, use its terms and add new ones to it), and dates, prices, phone numbers and addresses in the local form of that language. Never reword text the owner wrote without asking. When you wrote a language you are not sure of, or a legal page, say in one line that a native speaker should read it.";
23673
23752
  var FOLDER_READY_RULE = `This folder is already set up. When the owner has not asked for anything yet, say only, in their language: "The folder is set up and ready. What do you want to change?" Add the site's name when .deployai/project.json has it. If the folder has no site files yet, ask instead: "The folder is set up and ready. What do you want to build?" Never ask them for a start line, a command or an id. While the folder holds a site, never offer a sample or a new start: go on with that site.`;
23674
23753
 
23675
23754
  // ../shared/src/deployai-md.ts
@@ -23723,6 +23802,10 @@ ${ASK_OWNER_RULE}
23723
23802
 
23724
23803
  Never stop building for an account, a plan or a limit. Build what the owner asks; say once, in one plain line, what going live will need, and ask about it only at the deploy step.
23725
23804
 
23805
+ ## Words on the site
23806
+
23807
+ ${SITE_COPY_RULE}
23808
+
23726
23809
  ## A site's first version
23727
23810
 
23728
23811
  ${FIRST_SITE_RULE}
@@ -23759,7 +23842,8 @@ var DEPLOYAI_LATER_RULES = [
23759
23842
  { has: "deployai@latest feedback", text: AGENT_FEEDBACK_RULES.join(" ") },
23760
23843
  { has: "never been live", text: FIRST_SITE_RULE },
23761
23844
  { has: "local preview", text: LOCAL_PREVIEW_RULE },
23762
- { has: "git history", text: GIT_HISTORY_RULE }
23845
+ { has: "git history", text: GIT_HISTORY_RULE },
23846
+ { has: "never word for word", text: SITE_COPY_RULE }
23763
23847
  ];
23764
23848
  function parseLaterRules(json2) {
23765
23849
  try {
@@ -24232,8 +24316,8 @@ var enc = new TextEncoder();
24232
24316
 
24233
24317
  // ../shared/src/app-paused.ts
24234
24318
  var WORDS = {
24235
- 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" },
24236
- 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" }
24237
24321
  };
24238
24322
  var PAUSED_OWNER_LINK = { he: WORDS.he.owner, en: WORDS.en.owner };
24239
24323
 
@@ -24243,6 +24327,12 @@ var enc2 = new TextEncoder();
24243
24327
  // ../shared/src/app-gate.ts
24244
24328
  var enc3 = new TextEncoder();
24245
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
+
24246
24336
  // ../shared/src/dangerous-hosts.ts
24247
24337
  var DANGEROUS_MAX_BYTES = 64 * 1024 * 1024;
24248
24338
 
@@ -24540,6 +24630,9 @@ var M = {
24540
24630
  runDeploy: ' Run: npx deployai@latest deploy -m "<message>"',
24541
24631
  movedSlug: "The address of the site follows the old domain: {url}",
24542
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.",
24543
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.",
24544
24637
  moveOfferCap: "The free add-ons for moved sites were already used on 3 sites of this account.",
24545
24638
  moveOfferOver: "The free add-ons offer for moved sites is over.",
@@ -24821,6 +24914,9 @@ var M = {
24821
24914
  runDeploy: ' \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest deploy -m "<message>"',
24822
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}",
24823
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.",
24824
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.",
24825
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.",
24826
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.",
@@ -25107,7 +25203,7 @@ function formatBytes(n2) {
25107
25203
  }
25108
25204
 
25109
25205
  // src/version.ts
25110
- var CLI_VERSION = "0.1.0-beta.41";
25206
+ var CLI_VERSION = "0.1.0-beta.43";
25111
25207
 
25112
25208
  // src/api.ts
25113
25209
  function apiContext(apiFlag, root) {
@@ -27386,7 +27482,38 @@ async function sendReport(root, ctx, host, open2, verify) {
27386
27482
  const browser = firstTime ? openBrowser(url2) : false;
27387
27483
  out();
27388
27484
  out(`Move report for the owner${browser ? " (opened in the browser)" : ""}: ${url2}`);
27389
- if (firstTime) out("Give the owner this link in one line. It lists what we found and what will move, and it updates by itself.");
27485
+ if (firstTime) out("Give the owner this link in one line. It only shows what we found and what moved, and it updates by itself: anything that needs the owner, you ask in the chat.");
27486
+ if (open2 === "verify") for (const line of reportAsksLines(report2)) out(line);
27487
+ }
27488
+ var ASK_WORDS = {
27489
+ serverPixel: "Does the site send conversions to Meta or Google from the server?",
27490
+ thankYou: "Does a page open after sending the form, and what is its address?",
27491
+ verificationFile: "Was the site verified in Google Search Console with a file, and what is its name?"
27492
+ };
27493
+ function reportAsksLines(report2) {
27494
+ const tries = selfChecks(report2).map((c) => {
27495
+ const id = c.detail ? ` (${c.detail})` : "";
27496
+ switch (c.kind) {
27497
+ case "replaced":
27498
+ return `${c.name}: now ${c.detail ?? "ours"}. Try that it does the same job on the preview.`;
27499
+ case "arrive":
27500
+ return `${c.name}${id}: open the preview, then see the visit arrive in ${c.name}.`;
27501
+ case "form":
27502
+ return "The form: send one test message from the preview and see it arrive by email and in the dashboard, Messages.";
27503
+ case "tap":
27504
+ return `${c.name}${id}: tap it once on a phone and see the chat or call open with the right number.`;
27505
+ case "outside":
27506
+ return `${c.name}: a service our checks do not cover. See that its part of the page works on the preview.`;
27507
+ case "page":
27508
+ return `${c.name}: open this address on the preview.`;
27509
+ }
27510
+ });
27511
+ const waiting = moveWaiting(report2, report2.answers ?? {});
27512
+ const asks = [...waiting.todo.map((f) => `${f.name}${f.note ? `: ${f.note}` : ""}`), ...waiting.questions.filter((q) => !q.answer).map((q) => `${ASK_WORDS[q.key]} npx deployai@latest migrate tags --answer ${q.key}=yes|no|unsure`)];
27513
+ const lines = [];
27514
+ if (tries.length) lines.push("", `The report lists ${tries.length} things for the owner to try on the preview. In the same message as the link, name each in plain words, one short line each, and say they tick them on the site's Move tab:`, ...tries.map((x) => ` ${x}`));
27515
+ if (asks.length) lines.push("", "The report says these wait for the owner. Ask about each in the chat now, so nothing on the report is new to them:", ...asks.map((x) => ` ${x}`));
27516
+ return lines;
27390
27517
  }
27391
27518
  async function migrateScanCommand(root, raw, opts = {}) {
27392
27519
  const source = normalizeSourceUrl(raw);
@@ -28365,7 +28492,7 @@ function filesOf(gz) {
28365
28492
  }
28366
28493
  return map2;
28367
28494
  }
28368
- var same = (a, b) => a === void 0 && b === void 0 || a !== void 0 && b !== void 0 && a.equals(b);
28495
+ var same2 = (a, b) => a === void 0 && b === void 0 || a !== void 0 && b !== void 0 && a.equals(b);
28369
28496
  var isBinary = (b) => !!b && b.subarray(0, 8e3).includes(0);
28370
28497
  function migrationNumber(path) {
28371
28498
  const m = /(^|\/)migrations\/(\d+)[_-][^/]*\.sql$/i.exec(path);
@@ -28440,8 +28567,8 @@ async function syncCommand(root, ctx) {
28440
28567
  const b = baseFiles.get(path);
28441
28568
  const l = liveFiles.get(path);
28442
28569
  const o = ourFiles.get(path);
28443
- if (same(o, l) || same(l, b)) continue;
28444
- if (same(o, b)) {
28570
+ if (same2(o, l) || same2(l, b)) continue;
28571
+ if (same2(o, b)) {
28445
28572
  write(path, l);
28446
28573
  taken++;
28447
28574
  continue;
@@ -28840,10 +28967,12 @@ async function deployVersion(root, ctx, opts, guest) {
28840
28967
  const message = (opts.message ?? "").trim() || "update";
28841
28968
  const { archive, info, hasSql } = await prepare(root, ctx, guest ? GUEST_MAX_BYTES : Number.POSITIVE_INFINITY);
28842
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");
28843
28972
  const wait = opts.live || opts.wait !== false;
28844
28973
  let live = Boolean(opts.live);
28845
28974
  if (!guest && hasSql) out(t("sqlBeforeUpload"));
28846
- if (!guest && wait && !live && isInteractive()) live = await askYes(t("askLiveFirst"));
28975
+ if (!guest && wait && !live && !hold && isInteractive()) live = await askYes(t("askLiveFirst"));
28847
28976
  out(t("deployTitle"));
28848
28977
  out();
28849
28978
  out(rows([[t("project"), project.name ?? project.projectId], [t("message"), message], ...info]));
@@ -28856,6 +28985,7 @@ async function deployVersion(root, ctx, opts, guest) {
28856
28985
  if (fixed && telemetryEnabled(ctx.config)) form.append("fixNote", fixed);
28857
28986
  addTool(form, ctx, opts.model);
28858
28987
  if (wait && soundWanted(ctx.config)) form.append("soundHere", live ? "live" : "preview");
28988
+ if (hold) form.append("hold", "1");
28859
28989
  form.append("archive", new Blob([new Uint8Array(archive)], { type: "application/gzip" }), "source.tar.gz");
28860
28990
  const res = await apiRequest(ctx, "/api/cli/deploy", DeployResponse, { method: "POST", form, timeoutMs: 5 * 6e4 });
28861
28991
  if (!guest) {
@@ -28879,14 +29009,15 @@ async function deployVersion(root, ctx, opts, guest) {
28879
29009
  );
28880
29010
  pageHint(res, root);
28881
29011
  out();
29012
+ if (hold) out(t("holdOn", { n: res.number }));
28882
29013
  if (!wait) {
28883
29014
  out(t("nextStep"));
28884
29015
  out(t("followBuild"));
28885
29016
  out(t("thenPromote", { n: res.number }));
28886
29017
  return;
28887
29018
  }
28888
- if (res.autoLive && !live) out(t("autoLiveOn"));
28889
- 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 });
28890
29021
  }
28891
29022
  var CREDIT_WAIT_MS = 1e4;
28892
29023
  var sleep3 = (ms2) => new Promise((r) => setTimeout(r, ms2));
@@ -28931,7 +29062,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
28931
29062
  const sqlWaits = ready && built.latest?.migrationStatus === "waiting";
28932
29063
  let approval = null;
28933
29064
  let live = o.live;
28934
- if (sqlWaits && !o.live && !isInteractive()) {
29065
+ if (sqlWaits && !o.live && (o.hold || !isInteractive())) {
28935
29066
  out(t("sqlLater", { n: n2 }));
28936
29067
  printStatus(root, ctx, projectId, built);
28937
29068
  return;
@@ -28946,7 +29077,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
28946
29077
  }
28947
29078
  live = true;
28948
29079
  }
28949
- if (ready && !live && isInteractive()) {
29080
+ if (ready && !live && !o.hold && isInteractive()) {
28950
29081
  if (built.latest?.preview) out(t("showPreview", { url: built.latest.preview }));
28951
29082
  live = await askYes(t("askLiveNow", { n: n2 }));
28952
29083
  }
@@ -30607,7 +30738,7 @@ ${AGENT_FEEDBACK_RULES.join("\n\n")}
30607
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(
30608
30739
  (project, opts, cmd) => linkCommand(root(cmd), ctx(cmd), project, opts)
30609
30740
  );
30610
- 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));
30611
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));
30612
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)));
30613
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.41",
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",