@getxflow/cli 0.18.0 → 0.19.0
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/commands/deploy.js +11 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/xflow/SKILL.md +8 -4
package/dist/commands/deploy.js
CHANGED
|
@@ -229,8 +229,18 @@ async function deployments(args) {
|
|
|
229
229
|
(0, ui_1.formatAge)(d.deployed_at ?? d.created_at),
|
|
230
230
|
// Plain text only: a padded cell with ANSI codes would skew every column after it.
|
|
231
231
|
d.comment && d.comment.length > 60 ? `${d.comment.slice(0, 59)}…` : (d.comment ?? ''),
|
|
232
|
-
|
|
232
|
+
// pages_kept === false marks a build the storage cleanup has stripped:
|
|
233
|
+
// rollback refuses it, so saying so here saves the agent a call. Older
|
|
234
|
+
// platforms omit the field, and then the column stays as it was.
|
|
235
|
+
[
|
|
236
|
+
d.is_dev ? (0, ui_1.bold)('dev') : '',
|
|
237
|
+
d.is_live ? (0, ui_1.bold)('live') : '',
|
|
238
|
+
d.pages_kept === false ? 'no pages' : '',
|
|
239
|
+
]
|
|
240
|
+
.filter(Boolean)
|
|
241
|
+
.join(' '),
|
|
233
242
|
]));
|
|
234
243
|
(0, ui_1.note)((0, ui_1.dim)(' Serve the pages of an earlier build: xflow rollback <number>'));
|
|
244
|
+
(0, ui_1.note)((0, ui_1.dim)(' Pages live for the three latest builds; "no pages" marks the rest'));
|
|
235
245
|
(0, ui_1.note)((0, ui_1.dim)(' Fetch the code of a build: xflow pull --revision <its revision> --into ../copy'));
|
|
236
246
|
}
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
|
|
4
4
|
/** Keep in sync with cli/package.json. */
|
|
5
|
-
exports.CLI_VERSION = '0.
|
|
5
|
+
exports.CLI_VERSION = '0.19.0';
|
|
6
6
|
/** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
|
|
7
7
|
exports.DEFAULT_API_URL = 'https://app.getxflow.com';
|
package/package.json
CHANGED
package/skills/xflow/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ contains the fix.
|
|
|
24
24
|
|
|
25
25
|
## Keeping these instructions current
|
|
26
26
|
|
|
27
|
-
These instructions ship with xflow CLI 0.
|
|
27
|
+
These instructions ship with xflow CLI 0.19.0. They travel inside the package, so the copy
|
|
28
28
|
you are reading can be older than the CLI answering your commands, and nothing about that
|
|
29
29
|
is visible in the text itself.
|
|
30
30
|
|
|
@@ -139,9 +139,13 @@ functions. The code of that build is a separate fetch (`xflow pull --revision N
|
|
|
139
139
|
../old-version`, kept outside the project folder); building it over the current one needs
|
|
140
140
|
`--force` and a human typing the project name, so you cannot do it on your own.
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
Pages are kept for the **three latest successful builds** plus whatever dev and live show.
|
|
143
|
+
Older versions stay in the history with `pages_kept` false: you can read what they were and
|
|
144
|
+
which revision they came from, but you cannot open or roll back to them. The history itself
|
|
145
|
+
holds the **last 30 builds** and the sources the **last 50 revisions** (a revision a live
|
|
146
|
+
version was built from is never deleted). Three builds is the whole rollback depth and on an
|
|
147
|
+
active project it is a matter of hours, so it is not a backup: keep anything you must not
|
|
148
|
+
lose in your own git repository.
|
|
145
149
|
|
|
146
150
|
**The only link you give a person is the project page**, `https://app.getxflow.com/projects/<id>`,
|
|
147
151
|
which the CLI prints for you. Refer to builds by their number ("version 481203 is built,
|