ChatIdea 0.0.1__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.
chatidea-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ChatArch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatIdea
3
+ Version: 0.0.1
4
+ Summary: Minimal Python package and CLI
5
+ Author-email: ChatArch <rex@chatarch.org>
6
+ Maintainer-email: ChatArch <rex@chatarch.org>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://github.com/ChatArch/ChatIdea
9
+ Project-URL: Repository, https://github.com/ChatArch/ChatIdea
10
+ Project-URL: Documentation, https://arch.gh.wzhecnu.cn/ChatIdea/
11
+ Keywords: chatidea,chatarch,cli
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: click>=8.0
18
+ Requires-Dist: chatstyle<0.3.0,>=0.2.0
19
+ Requires-Dist: chatenv<0.3.0,>=0.2.11
20
+ Provides-Extra: dev
21
+ Requires-Dist: build; extra == "dev"
22
+ Requires-Dist: pytest; extra == "dev"
23
+ Requires-Dist: twine; extra == "dev"
24
+ Provides-Extra: docs
25
+ Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
26
+ Requires-Dist: mkdocs-material<9.7,>=9.5; extra == "docs"
27
+ Requires-Dist: mkdocs-static-i18n<2.0,>=1.2; extra == "docs"
28
+ Requires-Dist: mike<3.0,>=2.0; extra == "docs"
29
+ Dynamic: license-file
30
+
31
+ <div align="center">
32
+ <a href="https://pypi.python.org/pypi/ChatIdea">
33
+ <img src="https://img.shields.io/pypi/v/ChatIdea.svg" alt="PyPI version" />
34
+ </a>
35
+ <a href="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml">
36
+ <img src="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml/badge.svg" alt="Tests" />
37
+ </a>
38
+ <a href="https://arch.gh.wzhecnu.cn/ChatIdea/">
39
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
40
+ </a>
41
+ </div>
42
+
43
+ <div align="center">
44
+
45
+ [英文版](README.en.md) | [简体中文](README.md)
46
+ </div>
47
+
48
+ # ChatIdea
49
+
50
+ 最小 Python 包与命令行入口。当前没有业务命令或配置字段。
51
+
52
+
53
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatIdea/>
54
+
55
+ 按场景选择文档:
56
+
57
+ | 场景 | 文档 |
58
+ | --- | --- |
59
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
60
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
61
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
62
+
63
+ ## 快速开始
64
+
65
+ ```bash
66
+ python -m pip install -e .
67
+ chatidea --help
68
+ chatidea --version
69
+ chatidea --tree
70
+ chatidea --tree-brief
71
+ python -m pytest -q
72
+ python -m build
73
+ ```
74
+
75
+ ## 当前范围
76
+
77
+ `chatidea` 只提供 `--help`、`--version`、`--tree` 和 `--tree-brief`。目前没有业务命令、配置字段或 ChatEnv provider。Python 接口目前只有 `chatidea.__version__` 和 Click 入口 `chatidea.cli.main`。
78
+
79
+ ## 目录结构
80
+
81
+ - `src/`:包源码
82
+ - `tests/code-tests/`:代码测试和历史测试迁移
83
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
84
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
85
+ - `docs/`:长期维护文档,由 mkdocs 构建
86
+
87
+ ## 开发说明
88
+
89
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,59 @@
1
+ <div align="center">
2
+ <a href="https://pypi.python.org/pypi/ChatIdea">
3
+ <img src="https://img.shields.io/pypi/v/ChatIdea.svg" alt="PyPI version" />
4
+ </a>
5
+ <a href="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml">
6
+ <img src="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml/badge.svg" alt="Tests" />
7
+ </a>
8
+ <a href="https://arch.gh.wzhecnu.cn/ChatIdea/">
9
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
10
+ </a>
11
+ </div>
12
+
13
+ <div align="center">
14
+
15
+ [英文版](README.en.md) | [简体中文](README.md)
16
+ </div>
17
+
18
+ # ChatIdea
19
+
20
+ 最小 Python 包与命令行入口。当前没有业务命令或配置字段。
21
+
22
+
23
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatIdea/>
24
+
25
+ 按场景选择文档:
26
+
27
+ | 场景 | 文档 |
28
+ | --- | --- |
29
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
30
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
31
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
32
+
33
+ ## 快速开始
34
+
35
+ ```bash
36
+ python -m pip install -e .
37
+ chatidea --help
38
+ chatidea --version
39
+ chatidea --tree
40
+ chatidea --tree-brief
41
+ python -m pytest -q
42
+ python -m build
43
+ ```
44
+
45
+ ## 当前范围
46
+
47
+ `chatidea` 只提供 `--help`、`--version`、`--tree` 和 `--tree-brief`。目前没有业务命令、配置字段或 ChatEnv provider。Python 接口目前只有 `chatidea.__version__` 和 Click 入口 `chatidea.cli.main`。
48
+
49
+ ## 目录结构
50
+
51
+ - `src/`:包源码
52
+ - `tests/code-tests/`:代码测试和历史测试迁移
53
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
54
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
55
+ - `docs/`:长期维护文档,由 mkdocs 构建
56
+
57
+ ## 开发说明
58
+
59
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ChatIdea"
7
+ dynamic = ["version"]
8
+ description = "Minimal Python package and CLI"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ dependencies = ["click>=8.0", "chatstyle>=0.2.0,<0.3.0", "chatenv>=0.2.11,<0.3.0"]
13
+ authors = [{name = "ChatArch", email = "rex@chatarch.org"}]
14
+ maintainers = [{name = "ChatArch", email = "rex@chatarch.org"}]
15
+ keywords = ["chatidea", "chatarch", "cli"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/ChatArch/ChatIdea"
23
+ Repository = "https://github.com/ChatArch/ChatIdea"
24
+ Documentation = "https://arch.gh.wzhecnu.cn/ChatIdea/"
25
+
26
+ [project.scripts]
27
+ chatidea = "chatidea.cli:main"
28
+
29
+ [project.optional-dependencies]
30
+ dev = ["build", "pytest", "twine"]
31
+ docs = ["mkdocs>=1.6,<2.0", "mkdocs-material>=9.5,<9.7", "mkdocs-static-i18n>=1.2,<2.0", "mike>=2.0,<3.0"]
32
+
33
+ [tool.setuptools.dynamic]
34
+ version = {attr = "chatidea.__version__"}
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["src"]
38
+
39
+ [tool.setuptools]
40
+ include-package-data = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatIdea
3
+ Version: 0.0.1
4
+ Summary: Minimal Python package and CLI
5
+ Author-email: ChatArch <rex@chatarch.org>
6
+ Maintainer-email: ChatArch <rex@chatarch.org>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://github.com/ChatArch/ChatIdea
9
+ Project-URL: Repository, https://github.com/ChatArch/ChatIdea
10
+ Project-URL: Documentation, https://arch.gh.wzhecnu.cn/ChatIdea/
11
+ Keywords: chatidea,chatarch,cli
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: click>=8.0
18
+ Requires-Dist: chatstyle<0.3.0,>=0.2.0
19
+ Requires-Dist: chatenv<0.3.0,>=0.2.11
20
+ Provides-Extra: dev
21
+ Requires-Dist: build; extra == "dev"
22
+ Requires-Dist: pytest; extra == "dev"
23
+ Requires-Dist: twine; extra == "dev"
24
+ Provides-Extra: docs
25
+ Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
26
+ Requires-Dist: mkdocs-material<9.7,>=9.5; extra == "docs"
27
+ Requires-Dist: mkdocs-static-i18n<2.0,>=1.2; extra == "docs"
28
+ Requires-Dist: mike<3.0,>=2.0; extra == "docs"
29
+ Dynamic: license-file
30
+
31
+ <div align="center">
32
+ <a href="https://pypi.python.org/pypi/ChatIdea">
33
+ <img src="https://img.shields.io/pypi/v/ChatIdea.svg" alt="PyPI version" />
34
+ </a>
35
+ <a href="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml">
36
+ <img src="https://github.com/ChatArch/ChatIdea/actions/workflows/ci.yml/badge.svg" alt="Tests" />
37
+ </a>
38
+ <a href="https://arch.gh.wzhecnu.cn/ChatIdea/">
39
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
40
+ </a>
41
+ </div>
42
+
43
+ <div align="center">
44
+
45
+ [英文版](README.en.md) | [简体中文](README.md)
46
+ </div>
47
+
48
+ # ChatIdea
49
+
50
+ 最小 Python 包与命令行入口。当前没有业务命令或配置字段。
51
+
52
+
53
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatIdea/>
54
+
55
+ 按场景选择文档:
56
+
57
+ | 场景 | 文档 |
58
+ | --- | --- |
59
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
60
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
61
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
62
+
63
+ ## 快速开始
64
+
65
+ ```bash
66
+ python -m pip install -e .
67
+ chatidea --help
68
+ chatidea --version
69
+ chatidea --tree
70
+ chatidea --tree-brief
71
+ python -m pytest -q
72
+ python -m build
73
+ ```
74
+
75
+ ## 当前范围
76
+
77
+ `chatidea` 只提供 `--help`、`--version`、`--tree` 和 `--tree-brief`。目前没有业务命令、配置字段或 ChatEnv provider。Python 接口目前只有 `chatidea.__version__` 和 Click 入口 `chatidea.cli.main`。
78
+
79
+ ## 目录结构
80
+
81
+ - `src/`:包源码
82
+ - `tests/code-tests/`:代码测试和历史测试迁移
83
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
84
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
85
+ - `docs/`:长期维护文档,由 mkdocs 构建
86
+
87
+ ## 开发说明
88
+
89
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,13 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/ChatIdea.egg-info/PKG-INFO
5
+ src/ChatIdea.egg-info/SOURCES.txt
6
+ src/ChatIdea.egg-info/dependency_links.txt
7
+ src/ChatIdea.egg-info/entry_points.txt
8
+ src/ChatIdea.egg-info/requires.txt
9
+ src/ChatIdea.egg-info/top_level.txt
10
+ src/chatidea/__init__.py
11
+ src/chatidea/cli.py
12
+ tests/test_cli.py
13
+ tests/test_version.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ chatidea = chatidea.cli:main
@@ -0,0 +1,14 @@
1
+ click>=8.0
2
+ chatstyle<0.3.0,>=0.2.0
3
+ chatenv<0.3.0,>=0.2.11
4
+
5
+ [dev]
6
+ build
7
+ pytest
8
+ twine
9
+
10
+ [docs]
11
+ mkdocs<2.0,>=1.6
12
+ mkdocs-material<9.7,>=9.5
13
+ mkdocs-static-i18n<2.0,>=1.2
14
+ mike<3.0,>=2.0
@@ -0,0 +1 @@
1
+ chatidea
@@ -0,0 +1,5 @@
1
+ """ChatIdea package."""
2
+
3
+ __all__ = ["__version__"]
4
+
5
+ __version__ = "0.0.1"
@@ -0,0 +1,20 @@
1
+ """CLI entrypoint for chatidea."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import click
6
+ from chatstyle import add_tree_option
7
+
8
+ from chatidea import __version__
9
+
10
+
11
+ @click.group(name="chatidea", invoke_without_command=True, no_args_is_help=True)
12
+ @click.version_option(__version__, prog_name="chatidea")
13
+ @add_tree_option(renderer_options={"root_name": "chatidea"})
14
+ def main() -> None:
15
+ """Minimal ChatIdea command line interface."""
16
+ pass
17
+
18
+
19
+ if __name__ == "__main__":
20
+ main()
@@ -0,0 +1,43 @@
1
+ from click.testing import CliRunner
2
+
3
+ from chatidea import __version__
4
+ from chatidea.cli import main
5
+
6
+
7
+ def test_version_option_reports_package_version():
8
+ result = CliRunner().invoke(main, ["--version"])
9
+
10
+ assert result.exit_code == 0
11
+ assert f"chatidea, version {__version__}" in result.output
12
+
13
+
14
+ def test_help_lists_shared_tree_options():
15
+ result = CliRunner().invoke(main, ["--help"])
16
+
17
+ assert result.exit_code == 0
18
+ assert "--tree" in result.output
19
+ assert "--tree-brief" in result.output
20
+
21
+
22
+ def test_tree_option_prints_registered_cli_tree():
23
+ result = CliRunner().invoke(main, ["--tree"])
24
+
25
+ assert result.exit_code == 0, result.output
26
+ assert result.output.startswith("chatidea\n")
27
+ assert "├── --help" in result.output
28
+ assert "├── --version" in result.output
29
+ assert "├── --tree" in result.output
30
+ assert "└── --tree-brief" in result.output
31
+
32
+
33
+ def test_tree_brief_option_prints_registered_cli_tree():
34
+ result = CliRunner().invoke(main, ["--tree-brief"])
35
+
36
+ assert result.exit_code == 0, result.output
37
+ assert result.output.startswith("chatidea\n")
38
+ assert "├── --tree" in result.output
39
+ assert "└── --tree-brief" in result.output
40
+
41
+
42
+ def test_no_demo_or_business_commands_are_registered():
43
+ assert main.commands == {}
@@ -0,0 +1,5 @@
1
+ from chatidea import __version__
2
+
3
+
4
+ def test_version_present():
5
+ assert __version__ == "0.0.1"