deployai 0.1.0-beta.8 → 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.
- package/dist/index.js +11 -6
- 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.
|
|
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",
|
|
@@ -23739,6 +23742,8 @@ async function deployVersion(root, ctx, opts, guest) {
|
|
|
23739
23742
|
const form = new FormData();
|
|
23740
23743
|
form.append("projectId", project.projectId);
|
|
23741
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);
|
|
23742
23747
|
form.append("archive", new Blob([new Uint8Array(archive)], { type: "application/gzip" }), "source.tar.gz");
|
|
23743
23748
|
const res = await apiRequest(ctx, "/api/cli/deploy", DeployResponse, { method: "POST", form, timeoutMs: 5 * 6e4 });
|
|
23744
23749
|
out();
|
|
@@ -24065,7 +24070,7 @@ async function statusCommand(root, ctx) {
|
|
|
24065
24070
|
for (const line of s.latest.logTail.split("\n")) out(` ${line}`);
|
|
24066
24071
|
}
|
|
24067
24072
|
out();
|
|
24068
|
-
out(t("buildFixHint"));
|
|
24073
|
+
out(t(telemetryEnabled(ctx.config) ? "buildFixHint" : "buildFixHintNoNote"));
|
|
24069
24074
|
}
|
|
24070
24075
|
|
|
24071
24076
|
// src/commands/start.ts
|
|
@@ -24340,7 +24345,7 @@ function buildProgram() {
|
|
|
24340
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(
|
|
24341
24346
|
(project, opts, cmd) => linkCommand(root(cmd), ctx(cmd), project, opts)
|
|
24342
24347
|
);
|
|
24343
|
-
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));
|
|
24344
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)));
|
|
24345
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));
|
|
24346
24351
|
program.command("versions").description("list versions").action((_opts, cmd) => versionsCommand(root(cmd), ctx(cmd)));
|