@getxflow/cli 0.20.0 → 0.20.1
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/limits.js +4 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/xflow/SKILL.md +9 -4
package/dist/limits.js
CHANGED
|
@@ -62,6 +62,10 @@ function sizeLabel(mb) {
|
|
|
62
62
|
return `${Number.isInteger(gb) ? String(gb) : gb.toFixed(1)} GB`;
|
|
63
63
|
}
|
|
64
64
|
function quotaValue(key, use) {
|
|
65
|
+
// null is a plan feature, not a missing number: the plan does not cap this.
|
|
66
|
+
if (use.limit === null) {
|
|
67
|
+
return key.endsWith('_mb') ? `${sizeLabel(use.used)} used, no limit` : `${use.used} used, no limit`;
|
|
68
|
+
}
|
|
65
69
|
// Same unit on both sides: "0.2 of 15 GB", not "245 of 15360".
|
|
66
70
|
if (key.endsWith('_mb')) {
|
|
67
71
|
const used = use.limit >= 1000 ? (use.used / 1000).toFixed(1) : String(use.used);
|
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.20.
|
|
5
|
+
exports.CLI_VERSION = '0.20.1';
|
|
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
|
@@ -22,7 +22,7 @@ contains the fix.
|
|
|
22
22
|
|
|
23
23
|
## Keeping these instructions current
|
|
24
24
|
|
|
25
|
-
These instructions ship with xflow CLI 0.20.
|
|
25
|
+
These instructions ship with xflow CLI 0.20.1, so the copy you are reading can be older than
|
|
26
26
|
the CLI answering your commands.
|
|
27
27
|
|
|
28
28
|
When the CLI says this file does not match it, run `xflow skills --refresh` and then **read
|
|
@@ -60,10 +60,11 @@ the error points away from the cause. The sections below carry the details.
|
|
|
60
60
|
|
|
61
61
|
## Plan limits
|
|
62
62
|
|
|
63
|
-
The organization runs on a plan with
|
|
63
|
+
The organization runs on a plan with limits: projects, databases, functions, active
|
|
64
64
|
connections, seats, database and file storage, function minutes, builds per month and at
|
|
65
|
-
once, schedules and how often they may run.
|
|
66
|
-
|
|
65
|
+
once, schedules and how often they may run. Most are finite; a plan may leave one uncapped,
|
|
66
|
+
and then `whoami` prints `no limit` instead of a ceiling. `xflow whoami` prints every one of
|
|
67
|
+
them next to what is used, and the rights of your own key with them: destroying data in a migration,
|
|
67
68
|
deleting files from storage and linking a connected account each need a right that is off by
|
|
68
69
|
default. Reading it before a long task turns a refusal halfway through the work into a
|
|
69
70
|
sentence said before it starts.
|
|
@@ -150,6 +151,10 @@ Build setup:
|
|
|
150
151
|
- Heavy media does not belong in the sources at all: the archive is capped at 10 MB and
|
|
151
152
|
the built application at 15 MB unpacked. Upload it with `xflow storage push` instead
|
|
152
153
|
and refer to the addresses it prints, see **File storage**.
|
|
154
|
+
- Every file in the project is named with latin letters, digits, spaces and `. - _ ~`.
|
|
155
|
+
A name outside that set does not survive unpacking in the build sandbox, so `Größe.png`
|
|
156
|
+
and `логотип.png` break the build the same way. This is about the file name, not its
|
|
157
|
+
contents: interface text stays in whatever language the application speaks.
|
|
153
158
|
|
|
154
159
|
Platform contract, checked across all of `src/`:
|
|
155
160
|
|