@getxflow/cli 1.8.0 → 1.8.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 CHANGED
@@ -40,8 +40,7 @@ const QUOTA_ORDER = [
40
40
  'functions',
41
41
  'schedules',
42
42
  'people',
43
- 'database_mb',
44
- 'files_mb',
43
+ 'space_mb',
45
44
  'function_minutes',
46
45
  'db_hours',
47
46
  'builds',
@@ -52,8 +51,7 @@ const QUOTA_LABELS = {
52
51
  functions: 'Cloud functions',
53
52
  schedules: 'Schedules',
54
53
  people: 'People',
55
- database_mb: 'Database',
56
- files_mb: 'Files',
54
+ space_mb: 'Space (databases and files together)',
57
55
  function_minutes: 'Function minutes',
58
56
  db_hours: 'Database hours',
59
57
  builds: 'Builds this month',
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.8.0';
5
+ exports.CLI_VERSION = '1.8.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getxflow/cli",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {
@@ -28,7 +28,7 @@ instead of guessing; give the person https://docs.getxflow.com when they ask how
28
28
 
29
29
  ## Keeping these instructions current
30
30
 
31
- These instructions ship with xflow CLI 1.8.0, so the copy you are reading can be older than
31
+ These instructions ship with xflow CLI 1.8.1, so the copy you are reading can be older than
32
32
  the CLI answering your commands.
33
33
 
34
34
  When the CLI says this file does not match it, run `xflow skills --refresh` and then **read
@@ -62,8 +62,8 @@ the error points away from the cause. The sections below carry the details.
62
62
  6. An already applied migration is never re-run, and `xflow db migrate` refuses a
63
63
  name it already holds with different content. A schema change is always a new file.
64
64
  7. When `xflow db migrate` answers `db_write_locked`, or an INSERT or CREATE TABLE in a
65
- function fails with `database size limit ... reached` (53100), the database is over its plan
66
- size and Postgres itself refuses. Reads, updates and deletes keep working, so the fix is deleting data
65
+ function fails with `database size limit ... reached` (53100), the organization's space
66
+ (databases and files together) is full and Postgres itself refuses. Reads, updates and deletes keep working, so the fix is deleting data
67
67
  (`xflow db exec` or a migration), never a rewrite of the SQL. Write comes back within the hour. The limit
68
68
  is shared by the organization: `xflow db list` shows the size of each project database.
69
69
  8. Heavy media does not travel with the sources. Photos, video and PDFs go up with
@@ -114,10 +114,13 @@ One folder per project, apps in subfolders:
114
114
  ## Plan limits
115
115
 
116
116
  The organization runs on a plan with limits: apps, active connections, people in the
117
- organization, database and file storage, function minutes, builds per month and at once, how often
117
+ organization, space shared by databases and files, function minutes, builds per month and at once, how often
118
118
  schedules may run, and which access levels an app may have. The number of functions, schedules
119
119
  and projects is not capped; at most 15 new projects a day (UTC) per organization, deleted ones count. Most are finite; a plan
120
120
  may leave one uncapped, and then `whoami` prints `no limit` instead of a ceiling.
121
+ A paid plan comes in packages (Start S/M/L, Business M/L/XL): the package sets the space,
122
+ database hours and function minutes, the plan sets the rest. More space is a bigger package
123
+ chosen by a person in «Тариф» (Plan); there is no separate purchase of space.
121
124
  `xflow whoami` prints every one of them next to what is used, and the rights of your own key
122
125
  with them: destroying data (a migration or `db exec`), deleting files from storage, moving a database and
123
126
  linking a connected account each need a right. Reading it before a long task turns a refusal
@@ -615,7 +618,8 @@ key to the frontend.
615
618
 
616
619
  - A name already taken in that folder is refused before the link is issued; `overwrite: true`
617
620
  replaces the bytes and keeps the address.
618
- - 200 MB per file and the storage quota of the organization, checked again on `confirm`.
621
+ - 200 MB per file and the organization's space (databases and files together), checked again
622
+ on `confirm`.
619
623
  - Confirm only after the PUT has finished, and send on the PUT exactly the `Content-Type` you
620
624
  named: the link is signed for it, a different or missing type gets 403.
621
625
  - Assets only: pages, scripts and executables (`html`, `js`, `exe`, …) are refused with