dsh-cloud 0.2.3__tar.gz → 0.2.4__tar.gz

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 (24) hide show
  1. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/PKG-INFO +1 -1
  2. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/pyproject.toml +1 -1
  3. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/release-manifest.json +3 -3
  4. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/wizard.py +9 -3
  5. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/LICENSE +0 -0
  6. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/README.md +0 -0
  7. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/build_backend.py +0 -0
  8. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/__init__.py +0 -0
  9. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/__main__.py +0 -0
  10. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/cli.py +0 -0
  11. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/Caddyfile +0 -0
  12. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/compose.build.yml +0 -0
  13. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/compose.postgres.yml +0 -0
  14. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/i18n/en.json +0 -0
  15. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/i18n/zh.json +0 -0
  16. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/models.curated.txt +0 -0
  17. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/models.json +0 -0
  18. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.cny.json +0 -0
  19. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.eur.json +0 -0
  20. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.gbp.json +0 -0
  21. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.hkd.json +0 -0
  22. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.jpy.json +0 -0
  23. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/config/pricing.usd.json +0 -0
  24. {dsh_cloud-0.2.3 → dsh_cloud-0.2.4}/src/dsh_cloud_cli/templates/docker-compose.yml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsh-cloud
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Safe self-host installer and lifecycle CLI for DSH Cloud Community Edition
5
5
  Requires-Python: >=3.11
6
6
  License-Expression: LicenseRef-DSH-Cloud-Community-1.0
@@ -5,7 +5,7 @@ backend-path = ["."]
5
5
 
6
6
  [project]
7
7
  name = "dsh-cloud"
8
- version = "0.2.3"
8
+ version = "0.2.4"
9
9
  description = "Safe self-host installer and lifecycle CLI for DSH Cloud Community Edition"
10
10
  requires-python = ">=3.11"
11
11
  dependencies = []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "license": "LicenseRef-DSH-Cloud-Community-1.0",
5
5
  "stackSchema": 1,
6
6
  "databaseSchema": 1,
@@ -8,8 +8,8 @@
8
8
  "minUpgradeFrom": "0.1.0",
9
9
  "harnessRuntime": "0.1.0-rc.8",
10
10
  "images": {
11
- "server": "ghcr.io/agentsdanceai/dsh-cloud-server:0.2.3",
12
- "workspace": "ghcr.io/agentsdanceai/dsh-cloud-workspace:0.2.3"
11
+ "server": "ghcr.io/agentsdanceai/dsh-cloud-server:0.2.4",
12
+ "workspace": "ghcr.io/agentsdanceai/dsh-cloud-workspace:0.2.4"
13
13
  },
14
14
  "baseImages": {
15
15
  "python": "python:3.11-slim-bookworm@sha256:2e32f7d302adc1c37428355c1e646897c0c53f4fd60b6a551245fb90ee129f91",
@@ -46,7 +46,12 @@ def should_run_wizard(parsed: dict, *, is_tty: bool, fresh_init: bool) -> bool:
46
46
  options = parsed.get("options", {})
47
47
  if options.get("json") or options.get("dryRun") or options.get("yes"):
48
48
  return False
49
- return parsed.get("command") in {"start", "init"}
49
+ if parsed.get("command") not in {"start", "init"}:
50
+ return False
51
+ # 试用模式一句不问: 那条命令的意义就是"一行装完看看长什么样", 而看的东西
52
+ # (下载、云工作台) 本来就指向官方站点, 本机根本用不到上游密钥。想在本地真
53
+ # 跑模型的人去改 .env。自部署才问 —— 没有 SMTP/OAuth 谁也注册不了第一个账号。
54
+ return str(options.get("mode", "trial")) == "selfhost"
50
55
 
51
56
 
52
57
  def apply_answers(pairs: list[tuple[str, str]], answers: dict) -> list[tuple[str, str]]:
@@ -101,9 +106,10 @@ def next_steps(*, url: str, directory: str, has_upstream_key: bool,
101
106
  "",
102
107
  ]
103
108
  if not has_upstream_key:
109
+ # 不再写成"注意/警告": 试用模式本来就不在本机跑模型 —— 下载与云工作台都
110
+ # 指向官方站点, 没有上游密钥是**正常状态**而不是出错。
104
111
  lines += [
105
- " 注意 还没有配模型上游,聊天会返回 503。把 UPSTREAM_API_KEY 填进",
106
- f" {directory}/.env 后执行 dsh-cloud up 生效。",
112
+ f" 想在本机跑模型:把 UPSTREAM_API_KEY 填进 {directory}/.env,再执行一次上面的启动命令",
107
113
  "",
108
114
  ]
109
115
  if work_domain:
File without changes
File without changes
File without changes