@nocobase/cli 2.1.0-beta.20 → 2.1.0-beta.21

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 (42) hide show
  1. package/README.md +4 -4
  2. package/README.zh-CN.md +2 -2
  3. package/bin/run.js +15 -0
  4. package/dist/commands/db/shared.js +19 -5
  5. package/dist/commands/dev.js +8 -1
  6. package/dist/commands/down.js +10 -6
  7. package/dist/commands/env/add.js +14 -34
  8. package/dist/commands/env/auth.js +6 -13
  9. package/dist/commands/env/list.js +10 -15
  10. package/dist/commands/env/remove.js +4 -10
  11. package/dist/commands/env/update.js +7 -13
  12. package/dist/commands/env/use.js +5 -13
  13. package/dist/commands/init.js +190 -62
  14. package/dist/commands/install.js +65 -26
  15. package/dist/commands/logs.js +8 -1
  16. package/dist/commands/pm/list.js +8 -1
  17. package/dist/commands/ps.js +18 -15
  18. package/dist/commands/self/check.js +1 -1
  19. package/dist/commands/self/update.js +13 -3
  20. package/dist/commands/skills/check.js +11 -5
  21. package/dist/commands/skills/index.js +1 -1
  22. package/dist/commands/skills/install.js +20 -7
  23. package/dist/commands/skills/update.js +20 -7
  24. package/dist/commands/start.js +8 -1
  25. package/dist/commands/stop.js +8 -1
  26. package/dist/commands/upgrade.js +12 -1
  27. package/dist/lib/api-client.js +3 -2
  28. package/dist/lib/app-runtime.js +16 -5
  29. package/dist/lib/auth-store.js +159 -43
  30. package/dist/lib/bootstrap.js +13 -12
  31. package/dist/lib/cli-home.js +33 -2
  32. package/dist/lib/env-auth.js +3 -3
  33. package/dist/lib/generated-command.js +10 -2
  34. package/dist/lib/http-request.js +49 -0
  35. package/dist/lib/resource-command.js +10 -2
  36. package/dist/lib/runtime-generator.js +1 -1
  37. package/dist/lib/self-manager.js +1 -1
  38. package/dist/lib/skills-manager.js +140 -73
  39. package/dist/lib/startup-update.js +203 -0
  40. package/dist/locale/en-US.json +4 -1
  41. package/dist/locale/zh-CN.json +4 -1
  42. package/package.json +2 -2
@@ -73,6 +73,8 @@
73
73
  },
74
74
  "scope": {
75
75
  "message": "Where should this connection be saved?",
76
+ "autoLabel": "Auto",
77
+ "autoHint": "project if this repo already has .nocobase, otherwise global",
76
78
  "projectLabel": "Project",
77
79
  "projectHint": ".nocobase in this repo",
78
80
  "globalLabel": "Global",
@@ -268,7 +270,7 @@
268
270
  },
269
271
  "init": {
270
272
  "validation": {
271
- "envExists": "Env \"{{envName}}\" already exists in this workspace. Choose another env name."
273
+ "envExists": "Env \"{{envName}}\" already exists. Choose another env name."
272
274
  },
273
275
  "messages": {
274
276
  "title": "Set Up Your NocoBase AI Workspace",
@@ -276,6 +278,7 @@
276
278
  "appNameEnvHelp": "Use `nb init --yes --env <envName>` to continue.",
277
279
  "resumeEnvRequired": "Env name is required when resuming setup.",
278
280
  "resumeEnvHelp": "Use `nb init --resume --env <envName>` to continue.",
281
+ "resumeAfterInstallFailure": "Resume this setup with:\n {{command}}",
279
282
  "uiOpening": "A local setup form will open in your browser. That form needs a person to fill it in. If you are using an AI agent, do not stop this process while the CLI waits for the submission.",
280
283
  "uiReady": "Local setup form is ready.",
281
284
  "uiReadyHelp": "If your browser does not open automatically, copy the URL below into your browser to continue. Keep this terminal session running while the CLI waits for the submission.",
@@ -73,6 +73,8 @@
73
73
  },
74
74
  "scope": {
75
75
  "message": "这个连接要保存到哪里?",
76
+ "autoLabel": "自动",
77
+ "autoHint": "当前仓库已有 .nocobase 时保存到项目内,否则保存到全局",
76
78
  "projectLabel": "项目内",
77
79
  "projectHint": "保存在当前仓库的 .nocobase 中",
78
80
  "globalLabel": "全局",
@@ -268,7 +270,7 @@
268
270
  },
269
271
  "init": {
270
272
  "validation": {
271
- "envExists": "Env \"{{envName}}\" 已存在于当前 workspace 中,请换一个 env name。"
273
+ "envExists": "Env \"{{envName}}\" 已存在,请换一个 env name。"
272
274
  },
273
275
  "messages": {
274
276
  "title": "初始化你的 NocoBase AI 工作区",
@@ -276,6 +278,7 @@
276
278
  "appNameEnvHelp": "请使用 `nb init --yes --env <envName>` 继续。",
277
279
  "resumeEnvRequired": "恢复安装时必须提供 Env name。",
278
280
  "resumeEnvHelp": "请使用 `nb init --resume --env <envName>` 继续。",
281
+ "resumeAfterInstallFailure": "继续这次初始化请执行:\n {{command}}",
279
282
  "uiOpening": "本地 setup 表单即将在浏览器中打开。这个表单需要等待人工填写。如果你正在使用 AI agent,请不要停止当前进程,CLI 会继续等待表单提交结果。",
280
283
  "uiReady": "本地 setup 表单已就绪。",
281
284
  "uiReadyHelp": "如果没有自动打开浏览器,请复制下面的地址到浏览器中继续。CLI 会继续等待表单提交,请保持当前终端会话继续运行。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "2.1.0-beta.20",
3
+ "version": "2.1.0-beta.21",
4
4
  "description": "NocoBase Command Line Tool",
5
5
  "type": "module",
6
6
  "main": "dist/generated/command-registry.js",
@@ -68,5 +68,5 @@
68
68
  "type": "git",
69
69
  "url": "git+https://github.com/nocobase/nocobase.git"
70
70
  },
71
- "gitHead": "5515f27380c0c5410f7d1e5e5858364fcd838e5e"
71
+ "gitHead": "324bd82f33fca58e98711688a17ceb65c186b65e"
72
72
  }