chatup 0.2.0__tar.gz → 0.2.2__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.
- chatup-0.2.2/PKG-INFO +90 -0
- chatup-0.2.2/README.md +64 -0
- {chatup-0.2.0 → chatup-0.2.2}/pyproject.toml +16 -1
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/__init__.py +1 -1
- chatup-0.2.2/src/chatup/chrome.py +21 -0
- chatup-0.2.2/src/chatup/runtime/__init__.py +27 -0
- chatup-0.2.2/src/chatup/runtime/browser.py +545 -0
- chatup-0.2.2/src/chatup/setup/chrome.py +127 -0
- chatup-0.2.2/src/chatup/setup/crs.py +334 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/elements.py +635 -6
- chatup-0.2.2/src/chatup/setup/gitea.py +494 -0
- chatup-0.2.2/src/chatup/setup/mysql.py +539 -0
- chatup-0.2.2/src/chatup/setup/nginx.py +620 -0
- chatup-0.2.2/src/chatup/setup/uv.py +195 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/cli.py +6 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/core.py +2 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/options.py +10 -1
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/render.py +19 -6
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/templates/default/en/AGENTS.md +21 -14
- chatup-0.2.2/src/chatup/setup/workspace/templates/default/en/discussion/README.md +38 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/templates/default/en/projects/README.md +14 -9
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/templates/default/zh/AGENTS.md +21 -14
- chatup-0.2.2/src/chatup/setup/workspace/templates/default/zh/discussion/README.md +38 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/templates/default/zh/projects/README.md +14 -9
- chatup-0.2.2/src/chatup.egg-info/PKG-INFO +90 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup.egg-info/SOURCES.txt +14 -0
- chatup-0.2.2/src/chatup.egg-info/requires.txt +10 -0
- chatup-0.2.2/tests/test_chrome_runtime.py +345 -0
- chatup-0.2.2/tests/test_cli_tree_docs.py +45 -0
- chatup-0.2.2/tests/test_crs_setup.py +126 -0
- chatup-0.2.2/tests/test_publish_workflow.py +21 -0
- {chatup-0.2.0 → chatup-0.2.2}/tests/test_pyproject_metadata.py +11 -0
- chatup-0.2.2/tests/test_setup_cli.py +579 -0
- {chatup-0.2.0 → chatup-0.2.2}/tests/test_version.py +2 -2
- {chatup-0.2.0 → chatup-0.2.2}/tests/test_workspace_setup.py +38 -0
- chatup-0.2.0/PKG-INFO +0 -48
- chatup-0.2.0/README.md +0 -30
- chatup-0.2.0/src/chatup/setup/chrome.py +0 -188
- chatup-0.2.0/src/chatup.egg-info/PKG-INFO +0 -48
- chatup-0.2.0/src/chatup.egg-info/requires.txt +0 -4
- chatup-0.2.0/tests/test_setup_cli.py +0 -104
- {chatup-0.2.0 → chatup-0.2.2}/LICENSE +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/setup.cfg +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/cli.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/const.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/interaction/__init__.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/interaction/command_schema.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/interaction/policy.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/interaction/warnings.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/__init__.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/assets/hermes/install.sh +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/assets/nvm.sh +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/cc_connect.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/claude.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/cli.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/codex.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/docker.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/frp.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/hermes.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/lark_cli.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/mode_prompt.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/nodejs.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/opencode.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/shell_rc.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace/__init__.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/workspace.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/setup/zsh.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/utils/__init__.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/utils/custom_logger.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup/utils/pathing.py +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup.egg-info/dependency_links.txt +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup.egg-info/entry_points.txt +0 -0
- {chatup-0.2.0 → chatup-0.2.2}/src/chatup.egg-info/top_level.txt +0 -0
chatup-0.2.2/PKG-INFO
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: chatup
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: ChatArch setup CLI extracted from ChatTool
|
|
5
|
+
Author-email: rexwzh <1073853456@qq.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Documentation, https://arch.gh.wzhecnu.cn/ChatUp/
|
|
8
|
+
Project-URL: Source, https://github.com/ChatArch/ChatUp
|
|
9
|
+
Project-URL: Issues, https://github.com/ChatArch/ChatUp/issues
|
|
10
|
+
Keywords: chatup,chatarch,setup,cli
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: click>=8.0
|
|
17
|
+
Requires-Dist: chatstyle<0.2.0,>=0.1.0
|
|
18
|
+
Requires-Dist: chatenv<0.3.0,>=0.2.0
|
|
19
|
+
Requires-Dist: colorama
|
|
20
|
+
Provides-Extra: docs
|
|
21
|
+
Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
|
|
22
|
+
Requires-Dist: mkdocs-material<10.0,>=9.5; extra == "docs"
|
|
23
|
+
Requires-Dist: mkdocs-static-i18n<2.0,>=1.3; extra == "docs"
|
|
24
|
+
Requires-Dist: mike<3.0,>=2.1; extra == "docs"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# ChatUp
|
|
28
|
+
|
|
29
|
+
ChatUp 是 ChatArch 的独立环境与工具安装 CLI。它承接原来 `chattool setup` 的职责,把常用开发环境、Agent CLI、工作区脚手架和本地服务安装整理成一级命令,例如 `chattool setup workspace` 对应 `chatup workspace`。
|
|
30
|
+
|
|
31
|
+
- 文档站:<https://arch.gh.wzhecnu.cn/ChatUp/>
|
|
32
|
+
- English README: [README.en.md](README.en.md)
|
|
33
|
+
- Source: <https://github.com/ChatArch/ChatUp>
|
|
34
|
+
|
|
35
|
+
按场景选择文档:
|
|
36
|
+
|
|
37
|
+
| 场景 | 文档 |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| 从空机器验证 ChatUp、Python runtime 和 workspace | `docs/quickstart.md` |
|
|
40
|
+
| 查看完整一级 CLI 树与 Chrome 安装/Python contract | `docs/cli-tree.md` |
|
|
41
|
+
| 查看命令分组、参数边界和服务默认路径 | `docs/commands.md` |
|
|
42
|
+
| 校对哪些 ChatArch setup 流程已经有一等命令 | `docs/capability-map.md` |
|
|
43
|
+
| 理解 `chatup workspace` 创建的目录和项目记录约定 | `docs/workspace.md` |
|
|
44
|
+
| 安装 ChatTea-compatible Gitea、ChatData-compatible MySQL、user-level NGINX 和 CRS | `docs/commands.md` |
|
|
45
|
+
|
|
46
|
+
## 快速开始
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
chatup --help
|
|
50
|
+
chatup doctor
|
|
51
|
+
chatup uv
|
|
52
|
+
chatup chrome
|
|
53
|
+
chatup workspace default ~/Playground
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
常见安装命令:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
chatup gitea --force
|
|
60
|
+
chatup mysql
|
|
61
|
+
chatup nginx
|
|
62
|
+
chatup nginx proxy-pass ./gitea-local.conf --set SERVER_NAME=gitea.local.example.invalid --set PROXY_PASS=http://127.0.0.1:3000
|
|
63
|
+
chatup crs --install-dir ~/.chatarch/crs/local --port 12392 --redis-port 6379
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## 当前能力
|
|
67
|
+
|
|
68
|
+
| 能力组 | 命令 |
|
|
69
|
+
| --- | --- |
|
|
70
|
+
| 基础运行环境 | `doctor`、`uv`、`nodejs`、`docker`、`zsh`、`chrome`、`frp` |
|
|
71
|
+
| 工作区脚手架 | `workspace` |
|
|
72
|
+
| 本地服务安装 | `gitea`、`mysql`、`nginx`、`crs` |
|
|
73
|
+
| Agent 工具链 | `cc-connect`、`claude`、`codex`、`opencode`、`hermes`、`lark-cli` |
|
|
74
|
+
|
|
75
|
+
所有新增安装项默认目录都收敛到 `~/.chatarch/...`,例如 `~/.chatarch/chrome`、`~/.chatarch/chattea`、`~/.chatarch/chatdata`、`~/.chatarch/nginx` 和 `~/.chatarch/crs/local`。更完整的能力边界见 `docs/capability-map.md`。
|
|
76
|
+
|
|
77
|
+
## 开发
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
python -m pytest -q
|
|
81
|
+
python -m build
|
|
82
|
+
python -m twine check dist/*
|
|
83
|
+
mkdocs build --strict
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
更多使用说明见文档站的 [快速开始](https://arch.gh.wzhecnu.cn/ChatUp/quickstart/)、[命令参考](https://arch.gh.wzhecnu.cn/ChatUp/commands/) 和 [CLI 能力地图](https://arch.gh.wzhecnu.cn/ChatUp/capability-map/)。
|
|
87
|
+
|
|
88
|
+
## 发布
|
|
89
|
+
|
|
90
|
+
发布由 tag 驱动。`vX.Y.Z` tag 必须与 `src/chatup/__init__.py::__version__` 一致;发布 workflow 会通过 PyPI Trusted Publishing/OIDC 构建并发布到 PyPI。
|
chatup-0.2.2/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# ChatUp
|
|
2
|
+
|
|
3
|
+
ChatUp 是 ChatArch 的独立环境与工具安装 CLI。它承接原来 `chattool setup` 的职责,把常用开发环境、Agent CLI、工作区脚手架和本地服务安装整理成一级命令,例如 `chattool setup workspace` 对应 `chatup workspace`。
|
|
4
|
+
|
|
5
|
+
- 文档站:<https://arch.gh.wzhecnu.cn/ChatUp/>
|
|
6
|
+
- English README: [README.en.md](README.en.md)
|
|
7
|
+
- Source: <https://github.com/ChatArch/ChatUp>
|
|
8
|
+
|
|
9
|
+
按场景选择文档:
|
|
10
|
+
|
|
11
|
+
| 场景 | 文档 |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| 从空机器验证 ChatUp、Python runtime 和 workspace | `docs/quickstart.md` |
|
|
14
|
+
| 查看完整一级 CLI 树与 Chrome 安装/Python contract | `docs/cli-tree.md` |
|
|
15
|
+
| 查看命令分组、参数边界和服务默认路径 | `docs/commands.md` |
|
|
16
|
+
| 校对哪些 ChatArch setup 流程已经有一等命令 | `docs/capability-map.md` |
|
|
17
|
+
| 理解 `chatup workspace` 创建的目录和项目记录约定 | `docs/workspace.md` |
|
|
18
|
+
| 安装 ChatTea-compatible Gitea、ChatData-compatible MySQL、user-level NGINX 和 CRS | `docs/commands.md` |
|
|
19
|
+
|
|
20
|
+
## 快速开始
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
chatup --help
|
|
24
|
+
chatup doctor
|
|
25
|
+
chatup uv
|
|
26
|
+
chatup chrome
|
|
27
|
+
chatup workspace default ~/Playground
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
常见安装命令:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
chatup gitea --force
|
|
34
|
+
chatup mysql
|
|
35
|
+
chatup nginx
|
|
36
|
+
chatup nginx proxy-pass ./gitea-local.conf --set SERVER_NAME=gitea.local.example.invalid --set PROXY_PASS=http://127.0.0.1:3000
|
|
37
|
+
chatup crs --install-dir ~/.chatarch/crs/local --port 12392 --redis-port 6379
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 当前能力
|
|
41
|
+
|
|
42
|
+
| 能力组 | 命令 |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| 基础运行环境 | `doctor`、`uv`、`nodejs`、`docker`、`zsh`、`chrome`、`frp` |
|
|
45
|
+
| 工作区脚手架 | `workspace` |
|
|
46
|
+
| 本地服务安装 | `gitea`、`mysql`、`nginx`、`crs` |
|
|
47
|
+
| Agent 工具链 | `cc-connect`、`claude`、`codex`、`opencode`、`hermes`、`lark-cli` |
|
|
48
|
+
|
|
49
|
+
所有新增安装项默认目录都收敛到 `~/.chatarch/...`,例如 `~/.chatarch/chrome`、`~/.chatarch/chattea`、`~/.chatarch/chatdata`、`~/.chatarch/nginx` 和 `~/.chatarch/crs/local`。更完整的能力边界见 `docs/capability-map.md`。
|
|
50
|
+
|
|
51
|
+
## 开发
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python -m pytest -q
|
|
55
|
+
python -m build
|
|
56
|
+
python -m twine check dist/*
|
|
57
|
+
mkdocs build --strict
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
更多使用说明见文档站的 [快速开始](https://arch.gh.wzhecnu.cn/ChatUp/quickstart/)、[命令参考](https://arch.gh.wzhecnu.cn/ChatUp/commands/) 和 [CLI 能力地图](https://arch.gh.wzhecnu.cn/ChatUp/capability-map/)。
|
|
61
|
+
|
|
62
|
+
## 发布
|
|
63
|
+
|
|
64
|
+
发布由 tag 驱动。`vX.Y.Z` tag 必须与 `src/chatup/__init__.py::__version__` 一致;发布 workflow 会通过 PyPI Trusted Publishing/OIDC 构建并发布到 PyPI。
|
|
@@ -7,7 +7,7 @@ name = "chatup"
|
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
description = "ChatArch setup CLI extracted from ChatTool"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
11
|
license = "MIT"
|
|
12
12
|
dependencies = [
|
|
13
13
|
"click>=8.0",
|
|
@@ -22,6 +22,19 @@ classifiers = [
|
|
|
22
22
|
"Operating System :: OS Independent",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
|
+
[project.urls]
|
|
26
|
+
Documentation = "https://arch.gh.wzhecnu.cn/ChatUp/"
|
|
27
|
+
Source = "https://github.com/ChatArch/ChatUp"
|
|
28
|
+
Issues = "https://github.com/ChatArch/ChatUp/issues"
|
|
29
|
+
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
docs = [
|
|
32
|
+
"mkdocs>=1.6,<2.0",
|
|
33
|
+
"mkdocs-material>=9.5,<10.0",
|
|
34
|
+
"mkdocs-static-i18n>=1.3,<2.0",
|
|
35
|
+
"mike>=2.1,<3.0",
|
|
36
|
+
]
|
|
37
|
+
|
|
25
38
|
[project.scripts]
|
|
26
39
|
chatup = "chatup.cli:main"
|
|
27
40
|
|
|
@@ -40,6 +53,8 @@ include-package-data = true
|
|
|
40
53
|
"assets/hermes/*.sh",
|
|
41
54
|
"workspace/templates/default/zh/*.md",
|
|
42
55
|
"workspace/templates/default/zh/projects/*.md",
|
|
56
|
+
"workspace/templates/default/zh/discussion/*.md",
|
|
43
57
|
"workspace/templates/default/en/*.md",
|
|
44
58
|
"workspace/templates/default/en/projects/*.md",
|
|
59
|
+
"workspace/templates/default/en/discussion/*.md",
|
|
45
60
|
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Public API for ChatArch-managed Chrome installations."""
|
|
2
|
+
|
|
3
|
+
from chatup.setup.chrome import (
|
|
4
|
+
ChromeInstallError,
|
|
5
|
+
ChromeInstallation,
|
|
6
|
+
DEFAULT_CHROME_HOME,
|
|
7
|
+
SUPPORTED_CFT_PLATFORMS,
|
|
8
|
+
ensure_chrome,
|
|
9
|
+
install_chrome,
|
|
10
|
+
resolve_chrome,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"ChromeInstallError",
|
|
15
|
+
"ChromeInstallation",
|
|
16
|
+
"DEFAULT_CHROME_HOME",
|
|
17
|
+
"SUPPORTED_CFT_PLATFORMS",
|
|
18
|
+
"ensure_chrome",
|
|
19
|
+
"install_chrome",
|
|
20
|
+
"resolve_chrome",
|
|
21
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from chatup.runtime.browser import (
|
|
2
|
+
BrowserRuntime,
|
|
3
|
+
BrowserRuntimeError,
|
|
4
|
+
CHROME_FOR_TESTING,
|
|
5
|
+
DEFAULT_BROWSER_HOME,
|
|
6
|
+
doctor_browser_runtime,
|
|
7
|
+
ensure_chrome_for_testing,
|
|
8
|
+
install_chrome_for_testing,
|
|
9
|
+
list_browser_runtimes,
|
|
10
|
+
normalize_cft_platform,
|
|
11
|
+
resolve_browser_runtime,
|
|
12
|
+
resolve_chrome_for_testing_download,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"BrowserRuntime",
|
|
17
|
+
"BrowserRuntimeError",
|
|
18
|
+
"CHROME_FOR_TESTING",
|
|
19
|
+
"DEFAULT_BROWSER_HOME",
|
|
20
|
+
"doctor_browser_runtime",
|
|
21
|
+
"ensure_chrome_for_testing",
|
|
22
|
+
"install_chrome_for_testing",
|
|
23
|
+
"list_browser_runtimes",
|
|
24
|
+
"normalize_cft_platform",
|
|
25
|
+
"resolve_browser_runtime",
|
|
26
|
+
"resolve_chrome_for_testing_download",
|
|
27
|
+
]
|