@nocobase/cli 2.1.0-alpha.3 → 2.1.0-alpha.31

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.
Files changed (182) hide show
  1. package/LICENSE.txt +107 -0
  2. package/README.md +379 -19
  3. package/README.zh-CN.md +329 -0
  4. package/bin/run.cmd +3 -0
  5. package/bin/run.js +131 -0
  6. package/dist/commands/api/resource/create.js +15 -0
  7. package/dist/commands/api/resource/destroy.js +15 -0
  8. package/dist/commands/api/resource/get.js +15 -0
  9. package/dist/commands/api/resource/index.js +20 -0
  10. package/dist/commands/api/resource/list.js +16 -0
  11. package/dist/commands/api/resource/query.js +15 -0
  12. package/dist/commands/api/resource/update.js +15 -0
  13. package/dist/commands/app/down.js +266 -0
  14. package/dist/commands/app/logs.js +98 -0
  15. package/dist/commands/app/restart.js +75 -0
  16. package/dist/commands/app/start.js +253 -0
  17. package/dist/commands/app/stop.js +99 -0
  18. package/dist/commands/app/upgrade.js +582 -0
  19. package/{src/cli.js → dist/commands/build.js} +4 -11
  20. package/dist/commands/config/delete.js +30 -0
  21. package/dist/commands/config/get.js +29 -0
  22. package/dist/commands/config/index.js +20 -0
  23. package/dist/commands/config/list.js +29 -0
  24. package/dist/commands/config/set.js +35 -0
  25. package/dist/commands/db/check.js +238 -0
  26. package/dist/commands/db/logs.js +85 -0
  27. package/dist/commands/db/ps.js +60 -0
  28. package/dist/commands/db/shared.js +96 -0
  29. package/dist/commands/db/start.js +71 -0
  30. package/dist/commands/db/stop.js +71 -0
  31. package/{templates/plugin/src/client/models/index.ts → dist/commands/dev.js} +4 -4
  32. package/{src/index.js → dist/commands/down.js} +4 -6
  33. package/{src/commands/locale/react-js-cron/index.js → dist/commands/download.js} +4 -8
  34. package/dist/commands/env/add.js +312 -0
  35. package/dist/commands/env/auth.js +55 -0
  36. package/dist/commands/env/info.js +156 -0
  37. package/dist/commands/env/list.js +50 -0
  38. package/dist/commands/env/remove.js +59 -0
  39. package/dist/commands/env/shared.js +158 -0
  40. package/dist/commands/env/update.js +67 -0
  41. package/dist/commands/env/use.js +28 -0
  42. package/dist/commands/examples/prompts-stages.js +150 -0
  43. package/dist/commands/examples/prompts-test.js +181 -0
  44. package/dist/commands/init.js +1027 -0
  45. package/dist/commands/install.js +2206 -0
  46. package/dist/commands/license/activate.js +360 -0
  47. package/dist/commands/license/env.js +94 -0
  48. package/dist/commands/license/generate-id.js +108 -0
  49. package/dist/commands/license/id.js +56 -0
  50. package/dist/commands/license/index.js +20 -0
  51. package/dist/commands/license/plugins/clean.js +101 -0
  52. package/dist/commands/license/plugins/index.js +20 -0
  53. package/dist/commands/license/plugins/list.js +50 -0
  54. package/dist/commands/license/plugins/shared.js +325 -0
  55. package/dist/commands/license/plugins/sync.js +269 -0
  56. package/dist/commands/license/shared.js +414 -0
  57. package/dist/commands/license/status.js +50 -0
  58. package/dist/commands/logs.js +12 -0
  59. package/dist/commands/plugin/disable.js +66 -0
  60. package/dist/commands/plugin/enable.js +66 -0
  61. package/dist/commands/plugin/list.js +62 -0
  62. package/dist/commands/pm/disable.js +12 -0
  63. package/dist/commands/pm/enable.js +12 -0
  64. package/dist/commands/pm/list.js +12 -0
  65. package/dist/commands/restart.js +12 -0
  66. package/dist/commands/scaffold/migration.js +38 -0
  67. package/dist/commands/scaffold/plugin.js +37 -0
  68. package/dist/commands/self/check.js +71 -0
  69. package/dist/commands/self/index.js +20 -0
  70. package/dist/commands/self/update.js +86 -0
  71. package/dist/commands/skills/check.js +69 -0
  72. package/dist/commands/skills/index.js +20 -0
  73. package/dist/commands/skills/install.js +71 -0
  74. package/dist/commands/skills/remove.js +71 -0
  75. package/dist/commands/skills/update.js +78 -0
  76. package/dist/commands/source/build.js +58 -0
  77. package/dist/commands/source/dev.js +158 -0
  78. package/dist/commands/source/download.js +866 -0
  79. package/dist/commands/source/test.js +477 -0
  80. package/dist/commands/start.js +12 -0
  81. package/dist/commands/stop.js +12 -0
  82. package/dist/commands/test.js +12 -0
  83. package/dist/commands/upgrade.js +12 -0
  84. package/dist/generated/command-registry.js +133 -0
  85. package/dist/help/runtime-help.js +23 -0
  86. package/dist/lib/api-client.js +329 -0
  87. package/dist/lib/app-health.js +126 -0
  88. package/dist/lib/app-managed-resources.js +268 -0
  89. package/dist/lib/app-runtime.js +171 -0
  90. package/dist/lib/auth-store.js +328 -0
  91. package/dist/lib/bootstrap.js +384 -0
  92. package/dist/lib/build-config.js +18 -0
  93. package/dist/lib/builtin-db.js +86 -0
  94. package/dist/lib/cli-config.js +176 -0
  95. package/dist/lib/cli-home.js +47 -0
  96. package/dist/lib/cli-locale.js +129 -0
  97. package/dist/lib/command-discovery.js +39 -0
  98. package/dist/lib/db-connection-check.js +178 -0
  99. package/dist/lib/env-auth.js +872 -0
  100. package/dist/lib/env-config.js +87 -0
  101. package/dist/lib/generated-command.js +171 -0
  102. package/dist/lib/http-request.js +49 -0
  103. package/dist/lib/naming.js +70 -0
  104. package/dist/lib/openapi.js +62 -0
  105. package/dist/lib/plugin-storage.js +127 -0
  106. package/dist/lib/post-processors.js +23 -0
  107. package/dist/lib/prompt-catalog.js +581 -0
  108. package/dist/lib/prompt-validators.js +185 -0
  109. package/dist/lib/prompt-web-ui.js +2103 -0
  110. package/dist/lib/resource-command.js +343 -0
  111. package/dist/lib/resource-request.js +104 -0
  112. package/dist/lib/run-npm.js +250 -0
  113. package/dist/lib/runtime-env-vars.js +32 -0
  114. package/dist/lib/runtime-generator.js +498 -0
  115. package/dist/lib/runtime-store.js +56 -0
  116. package/dist/lib/self-manager.js +301 -0
  117. package/dist/lib/skills-manager.js +296 -0
  118. package/dist/lib/startup-update.js +281 -0
  119. package/dist/lib/ui.js +178 -0
  120. package/dist/locale/en-US.json +339 -0
  121. package/dist/locale/zh-CN.json +339 -0
  122. package/dist/post-processors/data-modeling.js +66 -0
  123. package/dist/post-processors/data-source-manager.js +114 -0
  124. package/dist/post-processors/index.js +19 -0
  125. package/nocobase-ctl.config.json +369 -0
  126. package/package.json +95 -26
  127. package/LICENSE +0 -661
  128. package/bin/index.js +0 -39
  129. package/nocobase.conf.tpl +0 -95
  130. package/src/commands/benchmark.js +0 -73
  131. package/src/commands/build.js +0 -49
  132. package/src/commands/clean.js +0 -30
  133. package/src/commands/client.js +0 -166
  134. package/src/commands/create-nginx-conf.js +0 -37
  135. package/src/commands/create-plugin.js +0 -33
  136. package/src/commands/dev.js +0 -200
  137. package/src/commands/doc.js +0 -76
  138. package/src/commands/e2e.js +0 -265
  139. package/src/commands/global.js +0 -43
  140. package/src/commands/index.js +0 -45
  141. package/src/commands/instance-id.js +0 -47
  142. package/src/commands/locale/cronstrue.js +0 -122
  143. package/src/commands/locale/react-js-cron/en-US.json +0 -75
  144. package/src/commands/locale/react-js-cron/zh-CN.json +0 -33
  145. package/src/commands/locale/react-js-cron/zh-TW.json +0 -33
  146. package/src/commands/locale.js +0 -81
  147. package/src/commands/p-test.js +0 -88
  148. package/src/commands/perf.js +0 -63
  149. package/src/commands/pkg.js +0 -321
  150. package/src/commands/pm2.js +0 -37
  151. package/src/commands/postinstall.js +0 -88
  152. package/src/commands/start.js +0 -148
  153. package/src/commands/tar.js +0 -36
  154. package/src/commands/test-coverage.js +0 -55
  155. package/src/commands/test.js +0 -107
  156. package/src/commands/umi.js +0 -33
  157. package/src/commands/update-deps.js +0 -72
  158. package/src/commands/upgrade.js +0 -47
  159. package/src/commands/view-license-key.js +0 -44
  160. package/src/license.js +0 -76
  161. package/src/logger.js +0 -75
  162. package/src/plugin-generator.js +0 -80
  163. package/src/util.js +0 -517
  164. package/templates/bundle-status.html +0 -338
  165. package/templates/create-app-package.json +0 -39
  166. package/templates/plugin/.npmignore.tpl +0 -2
  167. package/templates/plugin/README.md.tpl +0 -1
  168. package/templates/plugin/client.d.ts +0 -2
  169. package/templates/plugin/client.js +0 -1
  170. package/templates/plugin/package.json.tpl +0 -11
  171. package/templates/plugin/server.d.ts +0 -2
  172. package/templates/plugin/server.js +0 -1
  173. package/templates/plugin/src/client/client.d.ts +0 -249
  174. package/templates/plugin/src/client/index.tsx.tpl +0 -1
  175. package/templates/plugin/src/client/locale.ts +0 -21
  176. package/templates/plugin/src/client/plugin.tsx.tpl +0 -10
  177. package/templates/plugin/src/index.ts +0 -2
  178. package/templates/plugin/src/locale/en-US.json +0 -1
  179. package/templates/plugin/src/locale/zh-CN.json +0 -1
  180. package/templates/plugin/src/server/collections/.gitkeep +0 -0
  181. package/templates/plugin/src/server/index.ts.tpl +0 -1
  182. package/templates/plugin/src/server/plugin.ts.tpl +0 -19
@@ -0,0 +1,369 @@
1
+ {
2
+ "moduleGroups": [
3
+ {
4
+ "match": ["workflow*", "@nocobase/plugin-workflow*"],
5
+ "module": "workflow"
6
+ },
7
+ {
8
+ "match": ["@nocobase/plugin-data-source-main", "@nocobase/plugin-data-source-manager"],
9
+ "module": "data-modeling"
10
+ }
11
+ ],
12
+ "modules": {
13
+ "core": {
14
+ "name": "core",
15
+ "description": "NocoBase core resource APIs.",
16
+ "include": true,
17
+ "resources": {
18
+ "includes": ["app", "pm"],
19
+ "excludes": [],
20
+ "overrides": {
21
+ "app": {
22
+ "name": "app",
23
+ "description": "Application management commands.",
24
+ "topLevel": true
25
+ },
26
+ "pm": {
27
+ "name": "pm",
28
+ "description": "Plugin manager commands.",
29
+ "topLevel": true
30
+ }
31
+ }
32
+ }
33
+ },
34
+ "acl": {
35
+ "name": "acl",
36
+ "description": "Based on roles, resources, and actions, access control can precisely manage interface configuration permissions, data operation permissions, menu access permissions, and plugin permissions.",
37
+ "include": true,
38
+ "resources": {
39
+ "includes": ["availableActions", "dataSources", "roles", "rolesResourcesScopes", "desktopRoutes"],
40
+ "excludes": [],
41
+ "overrides": {
42
+ "availableActions": {
43
+ "name": "available-actions",
44
+ "description": "List and inspect configurable ACL actions.",
45
+ "topLevel": false
46
+ },
47
+ "dataSources": {
48
+ "name": "data-sources",
49
+ "description": "Manage ACL strategies for data sources.",
50
+ "topLevel": false
51
+ },
52
+ "roles": {
53
+ "name": "roles",
54
+ "description": "Manage roles and role-level ACL settings.",
55
+ "topLevel": false
56
+ },
57
+ "rolesResourcesScopes": {
58
+ "name": "roles-resources-scopes",
59
+ "description": "Manage role resource scopes and permissions.",
60
+ "topLevel": false
61
+ },
62
+ "desktopRoutes": {
63
+ "name": "desktop-routes",
64
+ "description": "Manage desktop route permissions and visibility.",
65
+ "topLevel": false,
66
+ "operations": {
67
+ "includes": ["desktopRoutes:listAccessible"]
68
+ }
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "api-keys": {
74
+ "name": "api-keys",
75
+ "description": "Allow users to access the HTTP API with API keys.",
76
+ "include": true,
77
+ "resources": {
78
+ "includes": ["apiKeys"],
79
+ "excludes": [],
80
+ "overrides": {
81
+ "apiKeys": {
82
+ "name": "api-keys",
83
+ "description": "Manage API keys.",
84
+ "topLevel": false
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "auth": {
90
+ "name": "authenticators",
91
+ "description": "User authentication management, including password auth, SMS auth, SSO protocols, and extensible providers.",
92
+ "include": true,
93
+ "resources": {
94
+ "includes": ["authenticators"],
95
+ "excludes": [],
96
+ "overrides": {
97
+ "auth": {
98
+ "name": "auth",
99
+ "description": "Authenticate users and manage auth sessions.",
100
+ "topLevel": false
101
+ },
102
+ "authenticators": {
103
+ "name": "authenticators",
104
+ "description": "Manage authentication providers and authenticators.",
105
+ "topLevel": false
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "client": {
111
+ "name": "client",
112
+ "description": "Provide the web client interface for the NocoBase server.",
113
+ "include": true,
114
+ "resources": {
115
+ "includes": ["desktopRoutes"],
116
+ "excludes": [],
117
+ "overrides": {
118
+ "desktopRoutes": {
119
+ "name": "desktop-routes",
120
+ "description": "Manage desktop route permissions and visibility.",
121
+ "topLevel": true,
122
+ "operations": {
123
+ "excludes": ["desktopRoutes:listAccessible"]
124
+ }
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "data-modeling": {
130
+ "name": "data-modeling",
131
+ "description": "Manage data sources, collections, and database modeling resources.",
132
+ "include": true,
133
+ "resources": {
134
+ "includes": ["collections", "fields", "dbViews"],
135
+ "excludes": [],
136
+ "overrides": {
137
+ "collections": {
138
+ "name": "collections",
139
+ "description": "Manage collections and collection metadata.",
140
+ "topLevel": false,
141
+ "operations": {
142
+ "includes": [
143
+ "apply",
144
+ "collections:list",
145
+ "collections:get",
146
+ "collections:destroy",
147
+ "collections/{collectionName}/fields:list"
148
+ ]
149
+ }
150
+ },
151
+ "fields": {
152
+ "name": "fields",
153
+ "description": "Manage fields with the compact high-level modeling interface.",
154
+ "topLevel": false,
155
+ "operations": {
156
+ "includes": ["apply"]
157
+ }
158
+ },
159
+ "dbViews": {
160
+ "name": "db-views",
161
+ "description": "Inspect and query database views.",
162
+ "topLevel": false,
163
+ "operations": {
164
+ "includes": ["dbViews:list", "dbViews:get"]
165
+ }
166
+ }
167
+ }
168
+ }
169
+ },
170
+ "file-manager": {
171
+ "name": "file-manager",
172
+ "description": "Provide file storage services, file collections, and attachment fields.",
173
+ "include": true,
174
+ "resources": {
175
+ "includes": ["storages"],
176
+ "excludes": [],
177
+ "overrides": {
178
+ "storages": {
179
+ "name": "storages",
180
+ "description": "Manage storage backends and file storage settings.",
181
+ "topLevel": false
182
+ }
183
+ }
184
+ }
185
+ },
186
+ "flow-engine": {
187
+ "name": "flow-engine",
188
+ "description": "Manage flow surface composition, configuration, layout, and mutation APIs.",
189
+ "include": true,
190
+ "resources": {
191
+ "includes": ["flowSurfaces"],
192
+ "excludes": [],
193
+ "overrides": {
194
+ "flowSurfaces": {
195
+ "name": "flow-surfaces",
196
+ "description": "Compose and mutate page, tab, block, field, and action surfaces.",
197
+ "topLevel": true
198
+ }
199
+ }
200
+ }
201
+ },
202
+ "map": {
203
+ "name": "map",
204
+ "description": "Map blocks with support for AMap, Google Maps, and extensible providers.",
205
+ "include": true,
206
+ "resources": {
207
+ "includes": ["map-configuration"],
208
+ "excludes": [],
209
+ "overrides": {
210
+ "map-configuration": {
211
+ "name": "map-configuration",
212
+ "description": "Manage map provider configuration.",
213
+ "topLevel": false
214
+ }
215
+ }
216
+ }
217
+ },
218
+ "backup": {
219
+ "name": "backup",
220
+ "description": "Create, inspect, download, remove, and restore NocoBase backups.",
221
+ "include": true,
222
+ "resources": {
223
+ "includes": ["backup"],
224
+ "excludes": [],
225
+ "overrides": {
226
+ "backup": {
227
+ "name": "backup",
228
+ "description": "Manage backup and restore files.",
229
+ "topLevel": true,
230
+ "operations": {
231
+ "includes": [
232
+ "backup:list",
233
+ "backup:create",
234
+ "backup:status",
235
+ "backup:download",
236
+ "backup:remove",
237
+ "backup:restore",
238
+ "backup:restoreUpload",
239
+ "backup:restoreStatus"
240
+ ]
241
+ }
242
+ }
243
+ }
244
+ }
245
+ },
246
+ "migration": {
247
+ "name": "migration",
248
+ "description": "Create, check, execute, and inspect migration packages.",
249
+ "include": true,
250
+ "resources": {
251
+ "includes": ["migration", "migrationLog", "migrationRule", "migrationRules"],
252
+ "excludes": [],
253
+ "overrides": {
254
+ "migration": {
255
+ "name": "migration",
256
+ "description": "Manage migration files and executions.",
257
+ "topLevel": true,
258
+ "operations": {
259
+ "includes": [
260
+ "migration:list",
261
+ "migration:get",
262
+ "migration:create",
263
+ "migration:download",
264
+ "migration:remove",
265
+ "migration:check",
266
+ "migration:execute"
267
+ ]
268
+ }
269
+ },
270
+ "migrationRule": {
271
+ "name": "migration rules",
272
+ "segments": ["migration", "rules"],
273
+ "description": "Create migration rules with global user/system policies.",
274
+ "topLevel": true,
275
+ "operations": {
276
+ "includes": ["migrationRule:create"]
277
+ }
278
+ },
279
+ "migrationRules": {
280
+ "name": "migration rules",
281
+ "segments": ["migration", "rules"],
282
+ "description": "List and inspect migration rules.",
283
+ "topLevel": true,
284
+ "operations": {
285
+ "includes": ["migrationRules:list", "migrationRules:get"]
286
+ }
287
+ },
288
+ "migrationLog": {
289
+ "name": "migration logs",
290
+ "segments": ["migration", "logs"],
291
+ "description": "List, inspect, and download migration logs.",
292
+ "topLevel": true,
293
+ "operations": {
294
+ "includes": ["migrationLog:list", "migrationLog:get", "migrationLog:download"]
295
+ }
296
+ }
297
+ }
298
+ }
299
+ },
300
+ "system-settings": {
301
+ "name": "system-settings",
302
+ "description": "Adjust system title, logo, language, and other global settings.",
303
+ "include": true,
304
+ "resources": {
305
+ "includes": ["systemSettings"],
306
+ "excludes": [],
307
+ "overrides": {
308
+ "systemSettings": {
309
+ "name": "system-settings",
310
+ "description": "Manage global system settings.",
311
+ "topLevel": false
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "theme-editor": {
317
+ "name": "theme-editor",
318
+ "description": "Customize UI colors and dimensions, save themes, and switch between them.",
319
+ "include": true,
320
+ "resources": {
321
+ "includes": ["themeConfig"],
322
+ "excludes": [],
323
+ "overrides": {
324
+ "themeConfig": {
325
+ "name": "theme-config",
326
+ "description": "Manage theme configuration.",
327
+ "topLevel": false
328
+ }
329
+ }
330
+ }
331
+ },
332
+ "workflow": {
333
+ "name": "workflow",
334
+ "description": "A powerful BPM tool that provides the foundation for business automation and extensible triggers and nodes.",
335
+ "include": true,
336
+ "resources": {
337
+ "includes": ["executions", "flow_nodes", "jobs", "userWorkflowTasks", "workflows"],
338
+ "excludes": [],
339
+ "overrides": {
340
+ "executions": {
341
+ "name": "executions",
342
+ "description": "Manage workflow execution records.",
343
+ "topLevel": false
344
+ },
345
+ "flow_nodes": {
346
+ "name": "flow-nodes",
347
+ "description": "Manage workflow nodes.",
348
+ "topLevel": false
349
+ },
350
+ "jobs": {
351
+ "name": "jobs",
352
+ "description": "Manage workflow jobs.",
353
+ "topLevel": false
354
+ },
355
+ "userWorkflowTasks": {
356
+ "name": "user-workflow-tasks",
357
+ "description": "Query current user workflow tasks.",
358
+ "topLevel": false
359
+ },
360
+ "workflows": {
361
+ "name": "workflows",
362
+ "description": "Manage workflows and workflow revisions.",
363
+ "topLevel": false
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
package/package.json CHANGED
@@ -1,38 +1,107 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "2.1.0-alpha.3",
4
- "description": "",
5
- "license": "AGPL-3.0",
6
- "main": "./src/index.js",
3
+ "version": "2.1.0-alpha.31",
4
+ "description": "NocoBase Command Line Tool",
5
+ "type": "module",
6
+ "main": "dist/generated/command-registry.js",
7
+ "scripts": {
8
+ "clean": "node ./scripts/clean.mjs",
9
+ "build": "node ./scripts/build.mjs",
10
+ "test": "NB_CLI_ROOT=. TEST_ENV=server-side yarn --cwd ../../.. vitest run packages/core/cli"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "Apache-2.0",
15
+ "files": [
16
+ "bin",
17
+ "dist",
18
+ "nocobase-ctl.config.json"
19
+ ],
7
20
  "bin": {
8
- "nocobase": "./bin/index.js"
21
+ "nb": "./bin/run.js"
22
+ },
23
+ "oclif": {
24
+ "bin": "nb",
25
+ "helpOptions": {
26
+ "flagSortOrder": "none"
27
+ },
28
+ "additionalHelpFlags": [
29
+ "-h"
30
+ ],
31
+ "helpClass": "./dist/help/runtime-help.js",
32
+ "commands": {
33
+ "strategy": "explicit",
34
+ "target": "./dist/generated/command-registry.js"
35
+ },
36
+ "dirname": "nb",
37
+ "topicSeparator": " ",
38
+ "topics": {
39
+ "app": {
40
+ "description": "Manage NocoBase app runtimes: start, stop, restart, logs, and upgrades."
41
+ },
42
+ "source": {
43
+ "description": "Work with the local NocoBase source project: download, develop, build, and test."
44
+ },
45
+ "scaffold": {
46
+ "description": "Generate NocoBase plugin development scaffolds."
47
+ },
48
+ "plugin": {
49
+ "description": "Manage plugins in the selected NocoBase env."
50
+ },
51
+ "pm": {
52
+ "description": "Manage plugins in the selected NocoBase env.",
53
+ "hidden": true
54
+ },
55
+ "db": {
56
+ "description": "Manage the built-in database for the selected env."
57
+ },
58
+ "env": {
59
+ "description": "Manage NocoBase project environments, status, details, and command runtimes."
60
+ },
61
+ "license": {
62
+ "description": "Manage NocoBase commercial licensing and licensed plugins."
63
+ },
64
+ "config": {
65
+ "description": "Manage CLI configuration defaults."
66
+ },
67
+ "self": {
68
+ "description": "Inspect or update the NocoBase CLI itself."
69
+ },
70
+ "skills": {
71
+ "description": "Inspect or synchronize NocoBase AI coding skills for the current workspace."
72
+ },
73
+ "examples": {
74
+ "description": "Internal example commands for prompt and UI experiments.",
75
+ "hidden": true
76
+ },
77
+ "api": {
78
+ "description": "Work with NocoBase API."
79
+ }
80
+ }
9
81
  },
10
82
  "dependencies": {
11
- "@nocobase/app": "2.1.0-alpha.3",
12
- "@nocobase/license-kit": "^0.3.7",
13
- "@types/fs-extra": "^11.0.1",
14
- "@umijs/utils": "3.5.20",
15
- "chalk": "^4.1.1",
16
- "commander": "^9.2.0",
17
- "deepmerge": "^4.3.1",
18
- "dotenv": "^16.0.0",
19
- "execa": "^5.1.1",
20
- "fast-glob": "^3.3.1",
21
- "fs-extra": "^11.1.1",
22
- "p-all": "3.0.0",
23
- "pm2": "^6.0.5",
24
- "portfinder": "^1.0.28",
25
- "tar": "^7.4.3",
26
- "tree-kill": "^1.2.2",
27
- "tsx": "^4.19.0"
83
+ "@clack/prompts": "^0.9.1",
84
+ "@nocobase/license-kit": "^0.3.8",
85
+ "@oclif/core": "^4.10.4",
86
+ "cross-spawn": "^7.0.6",
87
+ "lodash": "^4.17.21",
88
+ "mariadb": "^2.5.6",
89
+ "mysql2": "^3.14.0",
90
+ "openapi-types": "^12.1.3",
91
+ "ora": "^8.2.0",
92
+ "pg": "^8.14.1",
93
+ "picocolors": "^1.1.1",
94
+ "tar": "^7.4.3"
28
95
  },
29
96
  "devDependencies": {
30
- "@nocobase/devtools": "2.1.0-alpha.3"
97
+ "@types/node": "^18.19.130",
98
+ "tsx": "^4.20.6",
99
+ "typescript": "^6.0.2",
100
+ "vitest": "^1.5.0"
31
101
  },
32
102
  "repository": {
33
103
  "type": "git",
34
- "url": "git+https://github.com/nocobase/nocobase.git",
35
- "directory": "packages/core/cli"
104
+ "url": "git+https://github.com/nocobase/nocobase.git"
36
105
  },
37
- "gitHead": "b4d7448b938c1c3be8b2299ad32c6cbe012dd4ea"
106
+ "gitHead": "e2bc6b461a9bfd336043069c3211c9c5b01ebcc3"
38
107
  }