deployai 0.1.0-beta.39 → 0.1.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,7 +32,7 @@ pnpm dlx deployai check
32
32
  npm i -g deployai
33
33
  ```
34
34
 
35
- Node 20 or newer. No other setup: the CLI talks to https://deployai.co.il.
35
+ Node.js 22.12 or newer. No other setup: the CLI talks to https://deployai.co.il.
36
36
 
37
37
  It stays up to date by itself. `npx deployai@latest` always runs the newest version. An installed copy checks npm at most once an hour, installs a newer version once into `~/.deployai/cli`, and runs every command on it. Set `DEPLOYAI_NO_UPDATE=1` to stay on the installed version; `CI` does the same.
38
38
 
package/dist/index.js CHANGED
@@ -22679,7 +22679,7 @@ var TAGS_SEEN = { cmd: "npx deployai@latest migrate tags --requests <file>", say
22679
22679
  var PLAN_SHOW = "Then show the owner the plan as one chat message, never as the file, a table or one long paragraph, since a long table breaks in a terminal: Moves as it is, with a count and at most three names. Changes, one short line for each Replaced with row. Needs you, one short line for each Needs me or Not possible row. End with the link it printed, for the full list. Do not use a plan mode: it changes the owner's setting.";
22680
22680
  var REPORT_SAY = "Once .deployai/migration/plan.md is written, with its features as one table (| Feature | Status | Note |) and a row for each tag and connection in tags.json: this adds it to the owner's move report and prints the link.";
22681
22681
  var MOVE_REPORT = { cmd: "npx deployai@latest migrate report", say: `${REPORT_SAY} ${PLAN_SHOW} Then ask: "Go ahead with this plan?" The answers: Go ahead and put it live when it is ready (recommended), Go ahead and show me first, or Change something. Say that the old site and its domain do not change either way. If .deployai/owner-mode says on-my-own, do not ask (D-928): show the plan, say in one line that you go on and the owner sees the preview before anything goes live, and go on as if they chose to see it first.` };
22682
- var TAGS_FIRED = { cmd: "npx deployai@latest migrate tags --requests <file> --fired", say: "Open the preview, save the outside addresses your browser asks for to a file and run this: it shows which tags really fired there. Tags on the preview are real: a test form send shows up as a real lead in the owner's Google and Meta accounts, so send at most one, and tell the owner first." };
22682
+ var TAGS_FIRED = { cmd: "npx deployai@latest migrate tags --requests <file> --fired", say: "Tracking tags are paused on the preview and stay in its code (D-944), so verify still finds them: skip this step unless the owner turned on Tracking tags on this address on the Domains page of the site. Then open the preview, save the outside addresses your browser asks for to a file and run this: it shows which tags really fired there. Tags that run on the preview are real: a test form send shows up as a real lead in the owner's Google and Meta accounts, so send at most one, and tell the owner first." };
22683
22683
  var SEND_PREVIEW = { say: 'Send the owner the preview address and, in short lines with no table, what changed from the plan and what still needs them. Ask: "Put it live now, or change something first?" Make all their changes first and put them in one deploy, never one deploy for each change.' };
22684
22684
  var AFTER_LIVE = { say: "Only after it is live: tell the owner, in one short message, that the site is live, that their old site and email did not change, that Google keeps showing the old site until the domain is connected, and that they can connect their domain whenever they are ready, as a separate step, from Site addresses on the site's page. Do not explain DNS, do not change DNS and do not start that step in this chat. Then go on with the next step." };
22685
22685
  var MOVE_SPEED = { cmd: "npx deployai@latest speed <address>", say: "Run it on the old site's home page and on the preview's home page, at phone width, and on one page of each other kind when they are built differently. The new site must score at least what the old one does, and aim for 90 or more. Fix the biggest items it lists: image sizes and formats, fonts, scripts that block the page, layout shifts. In a move that keeps the site exactly as it is, every fix keeps file names, fonts and scripts as they are: images only get lighter at the same path and size (D-866). Never drop or delay a tag, pixel or form to raise the score: loading tags later is the Performance add-on's job. One round only: make all the fixes, deploy once, run it and migrate verify once more, and go on whatever the score is then. Never start a second round. If the preview cannot be measured, measure the live address once right after it goes live instead. Tell the owner in one line the old and the new phone score, and when it is under 90, that the Performance add-on can raise it." };
@@ -23365,6 +23365,10 @@ function dnsServices(records) {
23365
23365
  return [...found];
23366
23366
  }
23367
23367
 
23368
+ // ../shared/src/paused-tags.ts
23369
+ var PAUSED_TAG_KINDS = ["tagmanager", "analytics", "ads", "recording"];
23370
+ var PAUSED = TAG_CATALOG.filter((t) => PAUSED_TAG_KINDS.includes(t.kind));
23371
+
23368
23372
  // ../shared/src/move-report.ts
23369
23373
  var text = (max) => external_exports.string().max(max);
23370
23374
  var page = text(300);
@@ -24510,6 +24514,7 @@ var M = {
24510
24514
  startTitle: "DeployAI start",
24511
24515
  startNewFolder: "This folder already has files, so the new site is in a new folder: {dir}",
24512
24516
  startUpdateFolder: "This folder holds other files, so the site's live code is in a new folder: {dir}. Nothing here changed.",
24517
+ nodeTooOld: "Your Node.js is version {have}, and DeployAI needs {need} or newer. Install the LTS version from nodejs.org, open a new terminal and run the command again. How: {url}",
24513
24518
  startDownloaded: "Downloaded the {key} sample: {n} files.",
24514
24519
  startInstalled: "Installed its packages (npm install).",
24515
24520
  startBrief: "Wrote the owner's details to {file} (kept out of git and never uploaded).",
@@ -24789,6 +24794,7 @@ var M = {
24789
24794
  startTitle: "DeployAI start",
24790
24795
  startNewFolder: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DB\u05D1\u05E8 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD, \u05D0\u05D6 \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D3\u05E9 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D7\u05D3\u05E9\u05D4: {dir}",
24791
24796
  startUpdateFolder: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD \u05D0\u05D7\u05E8\u05D9\u05DD, \u05D0\u05D6 \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05E0\u05DE\u05E6\u05D0 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D7\u05D3\u05E9\u05D4: {dir}. \u05DC\u05D0 \u05E9\u05D9\u05E0\u05D9\u05E0\u05D5 \u05DB\u05D0\u05DF \u05DB\u05DC\u05D5\u05DD.",
24797
+ nodeTooOld: "\u05D2\u05E8\u05E1\u05EA \u05D4\u05BENode.js \u05E9\u05DC\u05DB\u05DD \u05D4\u05D9\u05D0 {have}, \u05D5\u05BEDeployAI \u05E6\u05E8\u05D9\u05DA \u05D2\u05E8\u05E1\u05D4 {need} \u05D5\u05DE\u05E2\u05DC\u05D4. \u05DE\u05EA\u05E7\u05D9\u05E0\u05D9\u05DD \u05D0\u05EA \u05D2\u05E8\u05E1\u05EA \u05D4\u05BELTS \u05DE\u05BEnodejs.org, \u05E4\u05D5\u05EA\u05D7\u05D9\u05DD \u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05D7\u05D3\u05E9 \u05D5\u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05E4\u05E7\u05D5\u05D3\u05D4. \u05D0\u05D9\u05DA \u05E2\u05D5\u05E9\u05D9\u05DD \u05D0\u05EA \u05D6\u05D4: {url}",
24792
24798
  startDownloaded: "\u05D4\u05D3\u05D5\u05D2\u05DE\u05D4 {key} \u05D4\u05D5\u05E8\u05D3\u05D4: {n} \u05E7\u05D1\u05E6\u05D9\u05DD.",
24793
24799
  startInstalled: "\u05D4\u05D7\u05D1\u05D9\u05DC\u05D5\u05EA \u05E9\u05DC\u05D4 \u05D4\u05D5\u05EA\u05E7\u05E0\u05D5 (npm install).",
24794
24800
  startBrief: "\u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05E9\u05DC \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05E0\u05DB\u05EA\u05D1\u05D5 \u05DC {file} (\u05DC\u05D0 \u05E0\u05DB\u05E0\u05E1\u05D9\u05DD \u05DC\u05BEgit \u05D5\u05DC\u05D0 \u05E2\u05D5\u05DC\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8).",
@@ -25099,7 +25105,7 @@ function formatBytes(n2) {
25099
25105
  }
25100
25106
 
25101
25107
  // src/version.ts
25102
- var CLI_VERSION = "0.1.0-beta.39";
25108
+ var CLI_VERSION = "0.1.0-beta.40";
25103
25109
 
25104
25110
  // src/api.ts
25105
25111
  function apiContext(apiFlag, root) {
@@ -30724,6 +30730,21 @@ async function main(argv = process.argv) {
30724
30730
  }
30725
30731
  }
30726
30732
 
30733
+ // src/node-version.ts
30734
+ var MIN_NODE = "22.12";
30735
+ function nodeVersion(version2) {
30736
+ const m = /^v?(\d+)\.(\d+)/.exec(version2);
30737
+ return m ? [Number(m[1]), Number(m[2])] : null;
30738
+ }
30739
+ function nodeTooOld(version2, min = MIN_NODE) {
30740
+ const have = nodeVersion(version2);
30741
+ const need = nodeVersion(min);
30742
+ return have !== null && (have[0] < need[0] || have[0] === need[0] && have[1] < need[1]);
30743
+ }
30744
+ function nodeGuideUrl(lang, base = API_BASE_DEFAULT) {
30745
+ return `${base}${lang === "he" ? "" : "/en"}/guides/install-nodejs`;
30746
+ }
30747
+
30727
30748
  // src/update.ts
30728
30749
  import { spawnSync as spawnSync6 } from "child_process";
30729
30750
  import { existsSync as existsSync23, mkdirSync as mkdirSync15, readdirSync as readdirSync8, readFileSync as readFileSync18, rmSync as rmSync7, writeFileSync as writeFileSync21 } from "fs";
@@ -30842,6 +30863,12 @@ for (const stream of [process.stdout, process.stderr]) {
30842
30863
  });
30843
30864
  }
30844
30865
  async function start() {
30866
+ if (nodeTooOld(process.version)) {
30867
+ const lang = cliLang(process.cwd());
30868
+ process.stderr.write(`${messages(process.cwd())("nodeTooOld", { have: process.version, need: MIN_NODE, url: nodeGuideUrl(lang) })}
30869
+ `);
30870
+ process.exit(1);
30871
+ }
30845
30872
  const args = process.argv.slice(2);
30846
30873
  const newest = await versionToRun(CLI_VERSION, args).catch(() => null);
30847
30874
  const code = newest ? runVersion(newest, args) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deployai",
3
- "version": "0.1.0-beta.39",
3
+ "version": "0.1.0-beta.40",
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",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "engines": {
38
- "node": ">=20"
38
+ "node": ">=22.12.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "commander": "15.0.0"