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.
- {chatcdn-0.1.3 → chatcdn-0.1.4}/CHANGELOG.md +5 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/PKG-INFO +5 -1
- {chatcdn-0.1.3 → chatcdn-0.1.4}/README.en.md +4 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/README.md +4 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/index.en.md +5 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/index.md +5 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/PKG-INFO +5 -1
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/SOURCES.txt +1 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/__init__.py +1 -1
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/config.py +1 -1
- chatcdn-0.1.4/tests/test_env_alias.py +27 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_version.py +1 -1
- {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/ci.yml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/deploy.yaml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/preview.yaml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/.github/workflows/publish.yml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/AGENTS.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/DEVELOP.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/LICENSE +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/MANIFEST.in +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/capability-map.en.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/capability-map.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/cli-tree.en.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/cli-tree.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/docs/interface-tree.md +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/mkdocs.yml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/pyproject.toml +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/setup.cfg +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/dependency_links.txt +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/entry_points.txt +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/requires.txt +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/ChatCDN.egg-info/top_level.txt +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/src/chatcdn/cli.py +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_cli.py +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_docs_contract.py +0 -0
- {chatcdn-0.1.3 → chatcdn-0.1.4}/tests/test_workflow_contract.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ChatCDN
|
|
3
|
-
Version: 0.1.
|
|
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
|
+
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
|
|
@@ -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()
|
|
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
|
|
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
|