ChatCDN 0.1.3__tar.gz → 0.1.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 (36) hide show
  1. {chatcdn-0.1.3 → chatcdn-0.1.4}/CHANGELOG.md +5 -0
  2. {chatcdn-0.1.3 → chatcdn-0.1.4}/PKG-INFO +5 -1
  3. {chatcdn-0.1.3 → chatcdn-0.1.4}/README.en.md +4 -0
  4. {chatcdn-0.1.3 → chatcdn-0.1.4}/README.md +4 -0
  5. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/index.en.md +5 -0
  6. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/index.md +5 -0
  7. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/PKG-INFO +5 -1
  8. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/SOURCES.txt +1 -0
  9. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/__init__.py +1 -1
  10. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/config.py +1 -1
  11. chatcdn-0.1.4/tests/test_env_alias.py +27 -0
  12. {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_version.py +1 -1
  13. {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/ci.yml +0 -0
  14. {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/deploy.yaml +0 -0
  15. {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/preview.yaml +0 -0
  16. {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/publish.yml +0 -0
  17. {chatcdn-0.1.3 → chatcdn-0.1.4}/AGENTS.md +0 -0
  18. {chatcdn-0.1.3 → chatcdn-0.1.4}/DEVELOP.md +0 -0
  19. {chatcdn-0.1.3 → chatcdn-0.1.4}/LICENSE +0 -0
  20. {chatcdn-0.1.3 → chatcdn-0.1.4}/MANIFEST.in +0 -0
  21. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/capability-map.en.md +0 -0
  22. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/capability-map.md +0 -0
  23. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/cli-tree.en.md +0 -0
  24. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/cli-tree.md +0 -0
  25. {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/interface-tree.md +0 -0
  26. {chatcdn-0.1.3 → chatcdn-0.1.4}/mkdocs.yml +0 -0
  27. {chatcdn-0.1.3 → chatcdn-0.1.4}/pyproject.toml +0 -0
  28. {chatcdn-0.1.3 → chatcdn-0.1.4}/setup.cfg +0 -0
  29. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/dependency_links.txt +0 -0
  30. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/entry_points.txt +0 -0
  31. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/requires.txt +0 -0
  32. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/top_level.txt +0 -0
  33. {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/cli.py +0 -0
  34. {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_cli.py +0 -0
  35. {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_docs_contract.py +0 -0
  36. {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_workflow_contract.py +0 -0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 - 2026-12-01
4
+
5
+ - 新增 ChatEnv 类型别名 `cdn`,与 `chatcdn` 共用原 `Chatcdn` profile 目录;不新增可执行命令。
6
+ - 验证真实 ChatEnv status/cat/test/new 调度以及既有配置字节不变。
7
+
3
8
  ## 0.1.3 - 2026-08-21
4
9
 
5
10
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ChatCDN
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: ChatArch CDN tooling package.
5
5
  Author-email: ChatArch <rex@chatarch.org>
6
6
  License-Expression: MIT
@@ -59,6 +59,10 @@ ChatArch CDN tooling package.
59
59
  | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
60
60
  | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
61
61
 
62
+ ## ChatEnv 类型别名
63
+
64
+ 使用 `chatenv status -t cdn` 或 `chatenv cat -t cdn` 选择配置。`cdn` 与原别名 `chatcdn` 共用既有 `Chatcdn` profile 目录,不创建第二套配置,也不改变可执行命令名。
65
+
62
66
  ## 快速开始
63
67
 
64
68
  ```bash
@@ -30,6 +30,10 @@ Choose documentation by scenario:
30
30
  | Check first-class capabilities and current boundaries | `docs/capability-map.en.md` |
31
31
  | Call package behavior directly from Python | `docs/interface-tree.md` |
32
32
 
33
+ ## ChatEnv type alias
34
+
35
+ Use `chatenv status -t cdn` or `chatenv cat -t cdn` to select configuration. `cdn` and the existing `chatcdn` aliases share the original `Chatcdn` profile namespace. No second configuration store or executable command is created.
36
+
33
37
  ## Quick Start
34
38
 
35
39
  ```bash
@@ -30,6 +30,10 @@ ChatArch CDN tooling package.
30
30
  | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
31
31
  | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
32
32
 
33
+ ## ChatEnv 类型别名
34
+
35
+ 使用 `chatenv status -t cdn` 或 `chatenv cat -t cdn` 选择配置。`cdn` 与原别名 `chatcdn` 共用既有 `Chatcdn` profile 目录,不创建第二套配置,也不改变可执行命令名。
36
+
33
37
  ## 快速开始
34
38
 
35
39
  ```bash
@@ -1,5 +1,10 @@
1
1
  # ChatCDN Docs
2
2
 
3
+ ## ChatEnv type alias
4
+
5
+ Use `chatenv status -t cdn` or `chatenv cat -t cdn` to select configuration. `cdn` and the existing `chatcdn` aliases share the original `Chatcdn` profile namespace. No second configuration store or executable command is created.
6
+
7
+
3
8
  ChatCDN is a ChatArch Python package. This documentation site should hold long-lived usage notes, a command map, a capability map, and Python interface entry points. After scaffolding, replace placeholders with behavior that is actually implemented, explored, or planned for this package.
4
9
 
5
10
  Site entry: <https://arch.gh.wzhecnu.cn/ChatCDN/en/>
@@ -1,5 +1,10 @@
1
1
  # ChatCDN 文档
2
2
 
3
+ ## ChatEnv 类型别名
4
+
5
+ 使用 `chatenv status -t cdn` 或 `chatenv cat -t cdn` 选择配置。`cdn` 与原别名 `chatcdn` 共用既有 `Chatcdn` profile 目录,不创建第二套配置,也不改变可执行命令名。
6
+
7
+
3
8
  ChatCDN 是 ChatArch 系列 Python 包。这个文档站提供长期维护的使用说明、CLI 树、能力地图和 Python 接口入口。生成模板后,请把占位说明替换为当前包已经实现、探索过或计划中的真实内容。
4
9
 
5
10
  站点入口:<https://arch.gh.wzhecnu.cn/ChatCDN/>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ChatCDN
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: ChatArch CDN tooling package.
5
5
  Author-email: ChatArch <rex@chatarch.org>
6
6
  License-Expression: MIT
@@ -59,6 +59,10 @@ ChatArch CDN tooling package.
59
59
  | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
60
60
  | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
61
61
 
62
+ ## ChatEnv 类型别名
63
+
64
+ 使用 `chatenv status -t cdn` 或 `chatenv cat -t cdn` 选择配置。`cdn` 与原别名 `chatcdn` 共用既有 `Chatcdn` profile 目录,不创建第二套配置,也不改变可执行命令名。
65
+
62
66
  ## 快速开始
63
67
 
64
68
  ```bash
@@ -29,5 +29,6 @@ src/chatcdn/cli.py
29
29
  src/chatcdn/config.py
30
30
  tests/test_cli.py
31
31
  tests/test_docs_contract.py
32
+ tests/test_env_alias.py
32
33
  tests/test_version.py
33
34
  tests/test_workflow_contract.py
@@ -2,4 +2,4 @@
2
2
 
3
3
  __all__ = ["__version__"]
4
4
 
5
- __version__ = "0.1.3"
5
+ __version__ = "0.1.4"
@@ -7,7 +7,7 @@ class ChatcdnConfig(BaseEnvConfig):
7
7
  "ChatCDN ChatEnv configuration."
8
8
 
9
9
  _title = "ChatCDN Configuration"
10
- _aliases = ["chatcdn"]
10
+ _aliases = ["chatcdn", "cdn"]
11
11
  _storage_dir = "Chatcdn"
12
12
 
13
13
  @classmethod
@@ -0,0 +1,27 @@
1
+ """The short ENV alias uses the existing provider and storage namespace."""
2
+ from click.testing import CliRunner
3
+ from chatenv import BaseEnvConfig, EnvStore
4
+ import chatenv.cli as cli_module
5
+ from chatenv.cli import cli
6
+ from chatcdn.config import ChatcdnConfig
7
+
8
+
9
+ def test_cdn_alias_dispatches_to_existing_namespace(tmp_path, monkeypatch):
10
+ monkeypatch.setattr(BaseEnvConfig, "_registry", [ChatcdnConfig])
11
+ monkeypatch.setattr(cli_module, "load_config_providers", lambda: None)
12
+ home = tmp_path / "arch"
13
+ store = EnvStore(home / "envs")
14
+ store.save_active(ChatcdnConfig, {"CHATCDN_API_KEY": "DUMMY_CDN_CANARY"})
15
+ before = store.active_path(ChatcdnConfig).read_bytes()
16
+ runner = CliRunner()
17
+ for alias in ("cdn", "chatcdn"):
18
+ for args in (["status", "-t", alias], ["cat", "-t", alias], ["test", "-t", alias, "-I"]):
19
+ result = runner.invoke(cli, ["--home", str(home), *args])
20
+ assert result.exit_code == 0, result.output
21
+ assert "DUMMY_CDN_CANARY" not in result.output
22
+ created = runner.invoke(cli, ["--home", str(home), "new", "short", "-t", "cdn", "-I", "--yes"])
23
+ assert created.exit_code == 0, created.output
24
+ assert store.profile_path(ChatcdnConfig, "short").parent.name == "Chatcdn"
25
+ assert store.profile_path(ChatcdnConfig, "short").exists()
26
+ assert store.active_path(ChatcdnConfig).read_bytes() == before
27
+ assert not (home / "envs" / "cdn").exists()
@@ -2,4 +2,4 @@ from chatcdn import __version__
2
2
 
3
3
 
4
4
  def test_version_present():
5
- assert __version__ == "0.1.3"
5
+ assert __version__ == "0.1.4"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes