Skip to content

Commit d36100e

Browse files
committed
chore: final root hygiene and drop openspec from VCS
Remove root build_mcp wrappers, stop tracking openspec and the duplicate projects/python_kb tree, slim repo-root config/ to keys+README, and move the LSP troubleshooting note under docs/. Update CI, packaging, and docs to match the cleaned layout.
1 parent 8c82566 commit d36100e

90 files changed

Lines changed: 45 additions & 11971 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ jobs:
3838
run: uv run pytest -q
3939

4040
- name: Compile Python modules
41-
run: uv run python -m compileall -q Analyze.py api core services utils pure_auto_codeql tools
41+
run: uv run python -m compileall -q Analyze.py pure_auto_codeql
4242

43-
- name: Validate OpenSpec
44-
run: uv run openspec validate --all --strict
4543

4644
- name: Check diff whitespace
4745
run: git diff --check

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ tmp/
5555
output/
5656
results/
5757

58-
# 案例工作区:默认忽略,仅跟踪模板与内置 KB
58+
# 案例工作区:默认忽略,仅跟踪模板
5959
projects/*
6060
!projects/README.md
6161
!projects/case-template/
6262
!projects/case-template/**
63-
!projects/python_kb/
64-
!projects/python_kb/**
6563

6664
# OS
6765
.DS_Store
6866
Thumbs.db
6967
.projects/
7068
*.zip
71-
utils/lsp
69+
70+
# OpenSpec local workspace (not versioned)
71+
openspec/

AGENTS.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
<!-- OPENSPEC:START -->
2-
# OpenSpec Instructions
1+
# Agent notes
32

4-
These instructions are for AI assistants working in this project.
3+
Runtime application code lives under `pure_auto_codeql/`.
54

6-
Always open `@/openspec/AGENTS.md` when the request:
7-
- Mentions planning or proposals (words like proposal, spec, change, plan)
8-
- Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
9-
- Sounds ambiguous and you need the authoritative spec before coding
5+
- Prefer: `from pure_auto_codeql.configuration import get_llm_config, LLMRole`
6+
- Prefer: `from pure_auto_codeql.utils...`, `pure_auto_codeql.services...`, etc.
7+
- User secrets: repo-root `config/keys.toml` (template: `config/keys.example.toml`)
8+
- CLI: `uv run pure-auto-codeql ...` or `python Analyze.py ...`
9+
- API: `uvicorn pure_auto_codeql.api.server:app`
1010

11-
Use `@/openspec/AGENTS.md` to learn:
12-
- How to create and apply change proposals
13-
- Spec format and conventions
14-
- Project structure and guidelines
15-
16-
Keep this managed block so 'openspec update' can refresh the instructions.
17-
18-
<!-- OPENSPEC:END -->
11+
See `docs/package_architecture.md` for the package layout.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ PureAutoCodeQL/
265265
│ ├── information/ prompts/ services/ tools/ utils/
266266
│ ├── configuration.py paths.py
267267
│ └── …
268-
├── config/ # keys.toml / keys.example.toml / 配置说明
269-
├── tools/mcp_ripgrep/ # Node MCP 工具(构建脚本仍指向此处)
268+
├── config/ # keys.example.toml + 本地 keys.toml(不入库)
269+
├── tools/mcp_ripgrep/ # Node MCP 工具
270270
├── docs/ resources/ scripts/ docker/
271-
├── projects/ examples/ openspec/ test/
271+
├── projects/case-template/ examples/ test/
272272
└── README / pyproject.toml / …
273273
```
274274

@@ -285,14 +285,15 @@ PureAutoCodeQL/
285285
| [docs/path_selection_run_guide.md](docs/path_selection_run_guide.md) | 路径精选模块运行说明 |
286286
| [docs/extra_input_files_simple.md](docs/extra_input_files_simple.md) | `inputs/` 额外上下文文件 |
287287
| [docs/cpp/CPP_TWO_STEP_BUILD_GUIDE.md](docs/cpp/CPP_TWO_STEP_BUILD_GUIDE.md) | C/C++ 两步走建库策略 |
288+
| [docs/codeql_lsp_troubleshooting.md](docs/codeql_lsp_troubleshooting.md) | CodeQL LSP 启动问题排查 |
288289
| [docs/archive/](docs/archive/) | 历史设计方案、诊断笔记和阶段性总结 |
289290

290291
## 测试
291292

292293
```bash
293294
uv run pytest -q
294295
uv lock --check
295-
uv run python -m compileall -q Analyze.py pure_auto_codeql config
296+
uv run python -m compileall -q Analyze.py pure_auto_codeql
296297
```
297298

298299
## 配置导入约定

build_mcp.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

build_mcp.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
"""Legacy script shim for the configuration CLI.
22
33
Runtime application code should import configuration helpers from
4-
`pure_auto_codeql.configuration`. The `config/` package remains available for
5-
legacy `from config import ...` imports, and this root-level file is kept so
6-
`python config.py ...` continues to launch the configuration CLI.
4+
`pure_auto_codeql.configuration`. User keys live in repo-root `config/keys.toml`.
5+
This file only keeps `python config.py ...` working.
76
"""
87

9-
from config import * # noqa: F401, F403
10-
118
if __name__ == "__main__":
12-
from config.cli import main
9+
from pure_auto_codeql.config.cli import main
1310

1411
main()

config/__init__.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

config/__main__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/cli.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)