Metadata-Version: 2.4
Name: aidefense-cli
Version: 0.1.0
Summary: AI导论编程题的出题与答辩命令行工具（默认 Moonshot/Kimi）
Author: Sean
License-Expression: MIT
Project-URL: Homepage, https://github.com/<owner>/<repo>
Project-URL: Source, https://github.com/<owner>/<repo>
Project-URL: Issues, https://github.com/<owner>/<repo>/issues
Keywords: llm,cli,education,moonshot,kimi
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Education
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: prompt_toolkit>=3.0.43
Requires-Dist: requests>=2.31.0
Dynamic: license-file

# aidefense-cli

AI 导论编程题出题与答辩命令行工具（默认 Moonshot/Kimi）。

## Install

From PyPI (after publish):

```bash
python -m pip install aidefense-cli
```

Editable (for development):

```bash
python -m pip install -e .
```

## Quick start

Set env vars (recommended):

```bash
set AIDEF_API_KEY=sk-...
set AIDEF_API_BASE=https://api.moonshot.cn/v1
set AIDEF_MODEL=moonshot-v1-8k
```

Start REPL:

```bash
aidef
```

Inside REPL:

- `gen` 生成题目（会要求输入：主题/题型/难度）
- `code paste` 粘贴学生代码（以单独一行 `EOF` 结束）
- `output paste` 粘贴运行输出（以单独一行 `EOF` 结束）
- `defend` 发起答辩（只问 1 个深入问题）
- `say 你的回复...` 继续多轮答辩
- `export md record.md` 导出 Markdown 记录

