@getxflow/cli 0.34.1 → 1.0.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/README.md +1 -1
- package/dist/api.js +21 -6
- package/dist/args.js +1 -1
- package/dist/bin.js +15 -3
- package/dist/commands/connections.js +4 -4
- package/dist/commands/db.js +27 -64
- package/dist/commands/deploy.js +170 -216
- package/dist/commands/dev.js +15 -29
- package/dist/commands/env.js +6 -3
- package/dist/commands/functions.js +27 -119
- package/dist/commands/logs.js +19 -15
- package/dist/commands/pages.js +1 -0
- package/dist/commands/projects.js +134 -190
- package/dist/commands/sources.js +218 -120
- package/dist/commands/storage.js +2 -2
- package/dist/config.js +82 -26
- package/dist/flags.js +19 -12
- package/dist/help.js +219 -216
- package/dist/limits.js +6 -6
- package/dist/session.js +167 -52
- package/dist/template.js +29 -125
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/xflow/SKILL.md +682 -739
package/dist/flags.js
CHANGED
|
@@ -21,10 +21,11 @@ const help_1 = require("./help");
|
|
|
21
21
|
* only when that command can answer without the working copy. The ones that cannot
|
|
22
22
|
* have a folder to stand in, and naming a project they cannot read would be a lie;
|
|
23
23
|
* they are listed in WORKING_COPY below, each with what it reads from that folder.
|
|
24
|
-
* `deploy` sits halfway and keeps
|
|
25
|
-
* but building a revision the platform already holds (`--revision`) does
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* `deploy` sits halfway and keeps `--project` and `--app`: sending the sources needs
|
|
25
|
+
* the folder, but building a revision the platform already holds (`--revision`) does
|
|
26
|
+
* not, and that is how the functions of a project come back. Named by id without
|
|
27
|
+
* `--revision` it refuses, in those words. `--app` names an app without its folder
|
|
28
|
+
* wherever `--project` would name the project stream.
|
|
28
29
|
* `db status` sits halfway: named by id it answers with the applied history alone,
|
|
29
30
|
* without the comparison against migrations/. `connections unlink` sits there too:
|
|
30
31
|
* by id it removes the link without the check of what reads the variables, because
|
|
@@ -43,12 +44,14 @@ exports.KNOWN = {
|
|
|
43
44
|
'org list': [],
|
|
44
45
|
'org members': [],
|
|
45
46
|
'org switch': [],
|
|
46
|
-
|
|
47
|
-
init: ['name', 'template', 'database', 'server', 'function'],
|
|
47
|
+
init: ['name', 'app', 'no-app', 'server'],
|
|
48
48
|
link: [],
|
|
49
49
|
projects: [],
|
|
50
50
|
'projects list': [],
|
|
51
51
|
'projects get': [],
|
|
52
|
+
apps: ['json', 'project'],
|
|
53
|
+
'apps list': ['json', 'project'],
|
|
54
|
+
'apps add': ['name', 'color'],
|
|
52
55
|
skills: ['refresh', 'global', 'agent', 'yes'],
|
|
53
56
|
mcp: ['show-token'],
|
|
54
57
|
'mcp install': ['show-token'],
|
|
@@ -56,7 +59,7 @@ exports.KNOWN = {
|
|
|
56
59
|
'functions list': ['project'],
|
|
57
60
|
'functions invoke': ['data', 'data-file', 'json', 'method', 'project'],
|
|
58
61
|
'functions logs': ['limit', 'project'],
|
|
59
|
-
logs: ['limit', 'project'],
|
|
62
|
+
logs: ['limit', 'project', 'app'],
|
|
60
63
|
env: ['project'],
|
|
61
64
|
'env list': ['project'],
|
|
62
65
|
'env set': ['scope'],
|
|
@@ -95,10 +98,10 @@ exports.KNOWN = {
|
|
|
95
98
|
status: [],
|
|
96
99
|
dev: [],
|
|
97
100
|
pull: ['into', 'force', 'revision'],
|
|
98
|
-
deploy: ['no-push', 'force', 'allow-removals', 'message', 'revision', 'project'],
|
|
99
|
-
publish: ['
|
|
100
|
-
rollback: ['
|
|
101
|
-
deployments: ['project'],
|
|
101
|
+
deploy: ['no-push', 'force', 'allow-removals', 'message', 'revision', 'project', 'app'],
|
|
102
|
+
publish: ['app'],
|
|
103
|
+
rollback: ['app'],
|
|
104
|
+
deployments: ['project', 'app'],
|
|
102
105
|
update: [],
|
|
103
106
|
};
|
|
104
107
|
/**
|
|
@@ -116,7 +119,10 @@ exports.KNOWN = {
|
|
|
116
119
|
exports.WORKING_COPY = {
|
|
117
120
|
pull: 'it writes the sources next to it',
|
|
118
121
|
status: 'it compares the folder with the revision on the platform',
|
|
119
|
-
dev: 'it runs the dev server of the
|
|
122
|
+
dev: 'it runs the dev server of the app folder it stands in',
|
|
123
|
+
'apps add': 'it lays the template into apps/',
|
|
124
|
+
publish: 'an app is named by its folder or by --app <id>',
|
|
125
|
+
rollback: 'an app is named by its folder or by --app <id>',
|
|
120
126
|
'db migrate': 'it applies the files of migrations/',
|
|
121
127
|
'env check': 'it looks for the variables the code of the functions reads',
|
|
122
128
|
'env set': 'it names the functions that need a deploy for the value to arrive',
|
|
@@ -131,6 +137,7 @@ const GLOBAL = new Set(['help', 'version']);
|
|
|
131
137
|
const NAMESPACES = new Set([
|
|
132
138
|
'org',
|
|
133
139
|
'projects',
|
|
140
|
+
'apps',
|
|
134
141
|
'functions',
|
|
135
142
|
'env',
|
|
136
143
|
'connections',
|