@getxflow/cli 1.0.6 → 1.0.7

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.
@@ -141,6 +141,8 @@ async function whoami() {
141
141
  const pkg = me.billing.package_title ? `, ${me.billing.package_title}` : '';
142
142
  (0, ui_1.out)('');
143
143
  (0, ui_1.out)(`Plan: ${me.billing.plan_title}${pkg}${SUBSCRIPTION_STATE[me.billing.status] ?? ''}`);
144
+ if (me.billing.functions_stopped)
145
+ (0, ui_1.warn)(me.billing.functions_stopped);
144
146
  }
145
147
  if (me.quotas) {
146
148
  (0, ui_1.out)('');
@@ -148,7 +148,13 @@ function moveLine(move) {
148
148
  return move.finished_at ? `${move.note} (${(0, ui_1.formatAge)(move.finished_at)})` : move.note;
149
149
  }
150
150
  function printDatabases(databases, total, truncated) {
151
- (0, ui_1.table)(databases.map((database) => [database.name, database.id, database.schema ?? '-', serverLabel(database.server)]));
151
+ (0, ui_1.table)(databases.map((database) => [
152
+ database.name,
153
+ database.id,
154
+ database.schema ?? '-',
155
+ serverLabel(database.server),
156
+ typeof database.bytes === 'number' ? (0, ui_1.formatBytes)(database.bytes) : '',
157
+ ]));
152
158
  if (truncated)
153
159
  (0, ui_1.note)((0, ui_1.dim)(` Shown ${databases.length} of ${total}`));
154
160
  for (const database of databases) {
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 = '1.0.6';
5
+ exports.CLI_VERSION = '1.0.7';
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
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@getxflow/cli",
3
- "version": "1.0.6",
4
- "description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
5
- "license": "UNLICENSED",
6
- "engines": {
7
- "node": ">=20"
8
- },
9
- "bin": {
10
- "xflow": "dist/bin.js"
11
- },
12
- "files": [
13
- "dist",
14
- "skills"
15
- ],
16
- "scripts": {
17
- "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
18
- "build": "npm run clean && tsc -p tsconfig.json",
19
- "prepublishOnly": "npm run build"
20
- },
21
- "publishConfig": {
22
- "access": "public"
23
- }
24
- }
1
+ {
2
+ "name": "@getxflow/cli",
3
+ "version": "1.0.7",
4
+ "description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
5
+ "license": "UNLICENSED",
6
+ "engines": {
7
+ "node": ">=20"
8
+ },
9
+ "bin": {
10
+ "xflow": "dist/bin.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "skills"
15
+ ],
16
+ "scripts": {
17
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
18
+ "build": "npm run clean && tsc -p tsconfig.json",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ }
24
+ }
@@ -23,7 +23,7 @@ contains the fix.
23
23
 
24
24
  ## Keeping these instructions current
25
25
 
26
- These instructions ship with xflow CLI 1.0.6, so the copy you are reading can be older than
26
+ These instructions ship with xflow CLI 1.0.7, so the copy you are reading can be older than
27
27
  the CLI answering your commands.
28
28
 
29
29
  When the CLI says this file does not match it, run `xflow skills --refresh` and then **read
@@ -59,7 +59,8 @@ the error points away from the cause. The sections below carry the details.
59
59
  7. When `xflow db migrate` answers `db_write_locked`, or an INSERT or CREATE TABLE in a
60
60
  function fails with `permission denied` (42501), the database is over its plan size and
61
61
  Postgres itself refuses. Reads, updates and deletes keep working, so the fix is a migration
62
- that deletes data, never a rewrite of the SQL. Write comes back within the hour.
62
+ that deletes data, never a rewrite of the SQL. Write comes back within the hour. The limit
63
+ is shared by the organization: `xflow db list` shows the size of each project database.
63
64
  8. Heavy media does not travel with the sources. Photos, video and PDFs go up with
64
65
  `xflow storage push`, not into the repository: the archive is capped at 10 MB.
65
66