deployai 0.1.0-beta.7 → 0.1.0-beta.9

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 +17 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21888,7 +21888,8 @@ var M = {
21888
21888
  envNoKey: "This site has no variable with that name. See them: npx deployai@latest env list",
21889
21889
  buildFailed: "The build of v{n} failed. The live site did not change.",
21890
21890
  buildLogTail: "End of the build log:",
21891
- buildFixHint: 'Fix the error above, then run: npx deployai@latest check, then npx deployai@latest deploy -m "<message>"',
21891
+ buildFixHint: 'Fix the error above, then run: npx deployai@latest check, then npx deployai@latest deploy -m "<message>" --fixed "<one sentence: what you changed, no code>"',
21892
+ buildFixHintNoNote: 'Fix the error above, then run: npx deployai@latest check, then npx deployai@latest deploy -m "<message>"',
21892
21893
  linkedTo: "Linked to {name} ({slug}).",
21893
21894
  loginTitle: "DeployAI login",
21894
21895
  browserOpened: "Opened the browser. Approve the code there.",
@@ -22059,7 +22060,8 @@ var M = {
22059
22060
  envNoKey: "\u05DC\u05D0\u05EA\u05E8 \u05D0\u05D9\u05DF \u05DE\u05E9\u05EA\u05E0\u05D4 \u05D1\u05E9\u05DD \u05D4\u05D6\u05D4. \u05DC\u05E8\u05E9\u05D9\u05DE\u05D4: npx deployai@latest env list",
22060
22061
  buildFailed: "\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E9\u05DC v{n} \u05E0\u05DB\u05E9\u05DC\u05D4. \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D9 \u05DC\u05D0 \u05D4\u05E9\u05EA\u05E0\u05D4.",
22061
22062
  buildLogTail: "\u05E1\u05D5\u05E3 \u05D9\u05D5\u05DE\u05DF \u05D4\u05D1\u05E0\u05D9\u05D9\u05D4:",
22062
- buildFixHint: '\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D2\u05D9\u05D0\u05D4 \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check, \u05D5\u05D0\u05D7\u05E8\u05D9\u05D5 npx deployai@latest deploy -m "<message>"',
22063
+ buildFixHint: '\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D2\u05D9\u05D0\u05D4 \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check, \u05D5\u05D0\u05D7\u05E8\u05D9\u05D5 npx deployai@latest deploy -m "<message>" --fixed "<one sentence: what you changed, no code>"',
22064
+ buildFixHintNoNote: '\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D2\u05D9\u05D0\u05D4 \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check, \u05D5\u05D0\u05D7\u05E8\u05D9\u05D5 npx deployai@latest deploy -m "<message>"',
22063
22065
  linkedTo: "\u05DE\u05D7\u05D5\u05D1\u05E8 \u05DC {name} ({slug}).",
22064
22066
  loginTitle: "DeployAI login",
22065
22067
  browserOpened: "\u05D4\u05D3\u05E4\u05D3\u05E4\u05DF \u05E0\u05E4\u05EA\u05D7. \u05D0\u05E9\u05E8\u05D5 \u05E9\u05DD \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3.",
@@ -22156,7 +22158,7 @@ function messages(root) {
22156
22158
  }
22157
22159
 
22158
22160
  // src/version.ts
22159
- var CLI_VERSION = "0.1.0-beta.7";
22161
+ var CLI_VERSION = "0.1.0-beta.9";
22160
22162
 
22161
22163
  // src/api.ts
22162
22164
  function apiContext(apiFlag) {
@@ -22319,7 +22321,8 @@ var TELEMETRY_SENT = [
22319
22321
  "Linked project id, detected framework and version",
22320
22322
  "After each check: compatible or not, blocker and warning codes (for example fs_write)",
22321
22323
  "OS, architecture and Node version (in the request header)",
22322
- "Your user id, only after login (from the login token)"
22324
+ "Your user id, only after login (from the login token)",
22325
+ "After a failed version, the one sentence you pass with deploy --fixed (what you changed, no code)"
22323
22326
  ];
22324
22327
  var TELEMETRY_NEVER_SENT = [
22325
22328
  "Source code or file contents",
@@ -23009,6 +23012,8 @@ This project is published with DeployAI.
23009
23012
 
23010
23013
  Always explain to the user in simple words, in the language they write to you in. The user may not read English.
23011
23014
 
23015
+ When you install or set something up, say what it does for the site, not the package name. Say "installing the site runtime" or "setting up a local test database", not "installing the Cloudflare adapter" or "installing wrangler".
23016
+
23012
23017
  Before you write code or change the plan, compare it with these rules. If something in it does not fit, say what and propose the change.
23013
23018
 
23014
23019
  ## Build with
@@ -23025,6 +23030,10 @@ To start from working code, see the samples: npx deployai@latest samples
23025
23030
  - native binary modules
23026
23031
  - DeployAI or any cloud credentials in source code
23027
23032
 
23033
+ ## Do not run
23034
+
23035
+ - wrangler commands that need a Cloudflare account (login, deploy, d1 create, r2 bucket create). Wrangler is installed only for local development. The user does not need a Cloudflare account: DeployAI creates the database and storage and publishes the site, with: npx deployai@latest deploy
23036
+
23028
23037
  ## Keep existing data
23029
23038
 
23030
23039
  ${KEEP_DATA_RULES.join("\n")}
@@ -23733,6 +23742,8 @@ async function deployVersion(root, ctx, opts, guest) {
23733
23742
  const form = new FormData();
23734
23743
  form.append("projectId", project.projectId);
23735
23744
  form.append("message", message);
23745
+ const fixed = (opts.fixed ?? "").replace(/\s+/g, " ").trim().slice(0, 300);
23746
+ if (fixed && telemetryEnabled(ctx.config)) form.append("fixNote", fixed);
23736
23747
  form.append("archive", new Blob([new Uint8Array(archive)], { type: "application/gzip" }), "source.tar.gz");
23737
23748
  const res = await apiRequest(ctx, "/api/cli/deploy", DeployResponse, { method: "POST", form, timeoutMs: 5 * 6e4 });
23738
23749
  out();
@@ -24059,7 +24070,7 @@ async function statusCommand(root, ctx) {
24059
24070
  for (const line of s.latest.logTail.split("\n")) out(` ${line}`);
24060
24071
  }
24061
24072
  out();
24062
- out(t("buildFixHint"));
24073
+ out(t(telemetryEnabled(ctx.config) ? "buildFixHint" : "buildFixHintNoNote"));
24063
24074
  }
24064
24075
 
24065
24076
  // src/commands/start.ts
@@ -24334,7 +24345,7 @@ function buildProgram() {
24334
24345
  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(
24335
24346
  (project, opts, cmd) => linkCommand(root(cmd), ctx(cmd), project, opts)
24336
24347
  );
24337
- program.command("deploy").description("check, pack and upload the source, then print the preview address").option("-m, --message <message>", "version message", "update").option("--guest", "without login: deploy as a temporary site, deleted after the days we set unless claimed").action((opts, cmd) => deployCommand(root(cmd), ctx(cmd), opts));
24348
+ program.command("deploy").description("check, pack and upload the source, then 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").action((opts, cmd) => deployCommand(root(cmd), ctx(cmd), opts));
24338
24349
  program.command("pull").description("download the code of the linked site's live version into this empty folder (needs login)").action((_opts, cmd) => pullCommand(root(cmd), ctx(cmd)));
24339
24350
  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));
24340
24351
  program.command("versions").description("list versions").action((_opts, cmd) => versionsCommand(root(cmd), ctx(cmd)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deployai",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.0-beta.9",
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",