deployai 0.1.0-beta.4 → 0.1.0-beta.5
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 +1 -1
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Node 20 or newer. No other setup: the CLI talks to https://deployai.co.il.
|
|
|
49
49
|
| `deployai versions` | Lists versions: number, live or not, status ("replaced by a newer upload" for one that never built), date, size, message, and a dashboard link when its SQL waits for approval. |
|
|
50
50
|
| `deployai rollback v5` | Puts version 5 back live, with no rebuild. |
|
|
51
51
|
| `deployai promote v5` | Puts version 5 live. |
|
|
52
|
-
| `deployai status` | Site state, address, live version and queue. |
|
|
52
|
+
| `deployai status` | Site state, address, live version, the newest version when it is not live yet (with the promote command once it is ready), and queue. |
|
|
53
53
|
| `deployai deploy --guest` | No login needed: puts the site live as a temporary site with a claim link. More below. |
|
|
54
54
|
| `deployai pull` | Downloads the code of the linked site's live version into this empty folder. Needs login. |
|
|
55
55
|
| `deployai claim` | Prints this folder's temporary site keep link again. `--email <address>` mails it, with a reminder before the delete. |
|
package/dist/index.js
CHANGED
|
@@ -21824,6 +21824,8 @@ var M = {
|
|
|
21824
21824
|
statusTitle: "DeployAI status",
|
|
21825
21825
|
state: "State",
|
|
21826
21826
|
liveVersion: "Live version",
|
|
21827
|
+
newestVersion: "Newest version",
|
|
21828
|
+
promoteReady: " After the owner approves the preview: npx deployai@latest promote v{n} (to put it live)",
|
|
21827
21829
|
notPublished: "not published yet",
|
|
21828
21830
|
none: "none",
|
|
21829
21831
|
buildingNow: "building now",
|
|
@@ -21989,6 +21991,8 @@ var M = {
|
|
|
21989
21991
|
statusTitle: "DeployAI status",
|
|
21990
21992
|
state: "\u05DE\u05E6\u05D1",
|
|
21991
21993
|
liveVersion: "\u05D2\u05E8\u05E1\u05D4 \u05D7\u05D9\u05D4",
|
|
21994
|
+
newestVersion: "\u05D2\u05E8\u05E1\u05D4 \u05D0\u05D7\u05E8\u05D5\u05E0\u05D4",
|
|
21995
|
+
promoteReady: " \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05D9\u05E9\u05E8 \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4: npx deployai@latest promote v{n} (\u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8)",
|
|
21992
21996
|
notPublished: "\u05E2\u05D3\u05D9\u05D9\u05DF \u05DC\u05D0 \u05D1\u05D0\u05D5\u05D5\u05D9\u05E8",
|
|
21993
21997
|
none: "\u05D0\u05D9\u05DF",
|
|
21994
21998
|
buildingNow: "\u05D1\u05D5\u05E0\u05D9\u05DD \u05E2\u05DB\u05E9\u05D9\u05D5",
|
|
@@ -22105,7 +22109,7 @@ function messages(root) {
|
|
|
22105
22109
|
}
|
|
22106
22110
|
|
|
22107
22111
|
// src/version.ts
|
|
22108
|
-
var CLI_VERSION = "0.1.0-beta.
|
|
22112
|
+
var CLI_VERSION = "0.1.0-beta.5";
|
|
22109
22113
|
|
|
22110
22114
|
// src/api.ts
|
|
22111
22115
|
function apiContext(apiFlag) {
|
|
@@ -23925,6 +23929,7 @@ async function statusCommand(root, ctx) {
|
|
|
23925
23929
|
const s = await apiRequest(ctx, `/api/cli/status?projectId=${encodeURIComponent(projectId)}`, StatusResponse);
|
|
23926
23930
|
const p = s.project;
|
|
23927
23931
|
const t = messages(root);
|
|
23932
|
+
const newer = s.latest && s.latest.number !== p.liveVersion ? s.latest : null;
|
|
23928
23933
|
out(t("statusTitle"));
|
|
23929
23934
|
out();
|
|
23930
23935
|
out(
|
|
@@ -23933,9 +23938,16 @@ async function statusCommand(root, ctx) {
|
|
|
23933
23938
|
[t("state"), stateName(p.status, root)],
|
|
23934
23939
|
[t("address"), p.url ?? t("notPublished")],
|
|
23935
23940
|
[t("liveVersion"), p.liveVersion ? `v${p.liveVersion}` : t("none")],
|
|
23941
|
+
// A newer upload than the live one: its state, so "follow the build" after deploy has something to follow.
|
|
23942
|
+
...newer ? [[t("newestVersion"), `v${newer.number} ${stateName(newer.status, root)}`]] : [],
|
|
23936
23943
|
[t("queue"), s.queue.running ? t("buildingNow") : s.queue.position > 0 ? queueText(s.queue.position, root) : t("idle")]
|
|
23937
23944
|
])
|
|
23938
23945
|
);
|
|
23946
|
+
if (newer?.status === "ready") {
|
|
23947
|
+
out();
|
|
23948
|
+
out(t("nextStep"));
|
|
23949
|
+
out(t("promoteReady", { n: newer.number }));
|
|
23950
|
+
}
|
|
23939
23951
|
if (s.latest?.migrationStatus === "waiting") {
|
|
23940
23952
|
out();
|
|
23941
23953
|
out(t("sqlWaitingLine", { url: versionsPage(ctx, projectId) }));
|