Skip to content

Commit c768d0f

Browse files
committed
feat(cli): 修复 openspec ensure 并升级到 0.10.0
1 parent 079d883 commit c768d0f

18 files changed

Lines changed: 194 additions & 285 deletions

File tree

.agents/plugins/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aisee-plugin",
3-
"version": "0.9.1",
3+
"version": "0.10.0",
44
"interface": {
55
"displayName": "Aisee Plugin",
66
"description": "Aisee plugin marketplace for OpenSpec, project memory, team knowledge, and Compound Engineering workflows."

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
本项目遵循 [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) 的结构,并使用 SemVer 管理版本。
44

5-
## [Unreleased]
5+
## [0.10.0] - 2026-06-12
6+
7+
### Changed
8+
9+
- `aisee openspec ensure --json` 改为默认按当前 agent runtime 自动选择 OpenSpec `--tools`,在 Codex 下会安装或刷新项目目录内的 `.codex/skills`,不再默认走 `--tools none`
10+
- `aisee openspec ensure --json` 的初始化检测兼容新版 OpenSpec 目录结构;已有 `openspec/specs``openspec/changes` 的项目现在也能正确补装项目内 OpenSpec instructions / skills。
11+
- `aisee openspec ensure --json` 的文档、help 和 workflow 说明统一明确:`openspec config profile` 只负责全局配置对齐,项目目录写入由 `openspec init/update` 完成。
12+
- 版本治理说明收敛到 `CHANGELOG.md``docs/compatibility-policy.md``CONTRIBUTING.md`;删除 `docs/release.md`,并移除 `Unreleased` 段,避免双重维护和发布后漏改文档。
613

714
## [0.9.1] - 2026-06-11
815

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ python -m pytest
2323
python scripts/check_versions.py
2424
```
2525

26-
发布前 smoke test 见 [docs/release.md](docs/release.md)
26+
发布前最小 smoke test:
27+
28+
```bash
29+
python scripts/sync_versions.py
30+
python scripts/check_versions.py
31+
pytest -q
32+
python scripts/smoke_release.py
33+
```
2734

2835
## 设计边界
2936

@@ -94,7 +101,7 @@ python scripts/sync_versions.py
94101
python scripts/check_versions.py
95102
```
96103

97-
版本规则见 [docs/release.md](docs/release.md)
104+
版本规则见 [docs/compatibility-policy.md](docs/compatibility-policy.md),已发布版本的变更说明统一写入 [CHANGELOG.md](CHANGELOG.md)
98105

99106
## 提交规范
100107

README.en.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,20 @@ If the project has not initialized OpenSpec yet:
251251
aisee openspec ensure --json
252252
```
253253

254-
This command bridges OpenSpec initialization with conservative defaults:
254+
This command auto-selects OpenSpec tools from the current agent runtime (`codex` by default in Codex; falls back to `none` when no supported runtime is detected), ensures project-local OpenSpec instructions/skills are installed or refreshed, and aligns the global profile:
255255

256256
```text
257-
openspec init . --tools none --profile core
257+
openspec init . --tools <detected-runtime-or-none> --profile core
258258
openspec config profile core
259259
openspec update .
260260
```
261261

262+
If you only want the OpenSpec directory layout without installing OpenSpec-provided agent skills/instructions, pass:
263+
264+
```bash
265+
aisee openspec ensure --tools none --json
266+
```
267+
262268
Schema packs come from the marketplace-installed plugin. `aisee schemas list/check` only reports project-installed schema state or source-checkout development schema state; it does not install schemas automatically.
263269

264270
Check the project state again:
@@ -279,7 +285,7 @@ aisee doctor --json
279285
- [Schema Packs](docs/schema-packs.md): schema selection, app schema artifact DAG, source-map/numbering rules, and contract attachment boundaries.
280286
- [Aisee / OpenSpec / Compound Engineering Integration](docs/architecture/aisee-openspec-compound-integration.md): high-level responsibility boundaries and historical decisions.
281287
- [OpenSpec Multi-Schema Best Practices](docs/architecture/openspec-multi-schema-best-practices.md): multi-schema coexistence, conflict handling, and management rules.
282-
- [Release And Version Governance](docs/release.md): single version source, release checks, and tag rules.
288+
- [CHANGELOG.md](CHANGELOG.md): release history, shipped notes, and user-visible changes for published versions.
283289

284290
## Typical Workflow
285291

@@ -408,7 +414,7 @@ Key CLI rules:
408414
- `aisee knowledge promote-batch` only writes the local team knowledge worktree; it does not commit, push, or create PRs.
409415
- OpenSpec artifacts and `source-map.md` are formal inputs for context packs.
410416
- `bootstrap --plan` is a read-only plan and does not perform broad initialization writes.
411-
- `aisee openspec ensure` only bridges OpenSpec initialization, profile setup, and instruction file refresh. It does not replace `aisee:init`.
417+
- `aisee openspec ensure` installs or refreshes project-local OpenSpec instructions/skills and also aligns the global profile. It does not replace `aisee:init`.
412418
- `aisee knowledge query` returns only a small number of guardrails. By default it reads pack manifests and card frontmatter; `--debug` is required for matched card body excerpts.
413419

414420
### Project Memory

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,20 @@ aisee plugin inspect --json
251251
aisee openspec ensure --json
252252
```
253253

254-
该命令使用保守默认值桥接 OpenSpec 初始化
254+
该命令会按当前 agent runtime 自动选择 OpenSpec tools(Codex 默认是 `codex`;无法识别时回退到 `none`),确保 OpenSpec 的项目内 instructions / skills 已安装或已刷新,并对齐全局 profile
255255

256256
```text
257-
openspec init . --tools none --profile core
257+
openspec init . --tools <detected-runtime-or-none> --profile core
258258
openspec config profile core
259259
openspec update .
260260
```
261261

262+
如果只想创建 OpenSpec 目录而不安装 OpenSpec 提供的 agent skills / instructions,可显式传入:
263+
264+
```bash
265+
aisee openspec ensure --tools none --json
266+
```
267+
262268
Schema packs 来自 marketplace-installed plugin。`aisee schemas list/check` 只报告项目已安装 schema 状态或开发期源码 schema 状态;不会由 CLI 自动安装 schema。
263269

264270
再次检查项目状态:
@@ -279,7 +285,7 @@ aisee doctor --json
279285
- [Schema Packs](docs/schema-packs.md):说明 schema 选择、app schema artifact DAG、source-map/编号规则和契约附件边界。
280286
- [Aisee / OpenSpec / Compound Engineering 融合方案](docs/architecture/aisee-openspec-compound-integration.md):高层职责边界和历史决策快照。
281287
- [OpenSpec 多 Schema 最佳实践](docs/architecture/openspec-multi-schema-best-practices.md):多 schema 共存、冲突和管理规则。
282-
- [Release And Version Governance](docs/release.md)版本号单一事实源、发布检查和 tag 规则
288+
- [CHANGELOG.md](CHANGELOG.md)版本历史、发布说明和已发布版本的用户可见变更
283289

284290
## 典型流程
285291

@@ -407,7 +413,7 @@ CLI 关键规则:
407413
- `aisee knowledge promote-batch` 只写本地 team knowledge worktree,不自动 commit、push 或创建 PR。
408414
- OpenSpec artifacts 和 `source-map.md` 是 context pack 的正式输入。
409415
- `bootstrap --plan` 是只读计划,不做大而全初始化写入。
410-
- `aisee openspec ensure` 只桥接 OpenSpec 初始化、profile 设置和 instruction files 刷新,不替代 `aisee:init`
416+
- `aisee openspec ensure` 负责项目目录内 OpenSpec instructions / skills 的安装或刷新,并顺带对齐全局 profile;它不替代 `aisee:init`
411417
- `aisee knowledge query` 只返回少量 guardrails;默认只读 pack manifest 和 card frontmatter,`--debug` 才包含命中 card 的正文摘要。
412418

413419
### 项目记忆

aisee/memory/arch/2026-06-07-version-governance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Aisee Plugin 的版本号必须以 `pyproject.toml [project].version` 为唯一
1515
- 同步脚本:`python scripts/sync_versions.py`
1616
- 检查脚本:`python scripts/check_versions.py`
1717
- CI/本地测试:`tests/test_version_consistency.py`
18-
- 发布说明:`docs/release.md`
18+
- 发布说明:`CHANGELOG.md`
1919

2020
版本号分布文件:
2121

@@ -41,4 +41,4 @@ pytest -q
4141
- `scripts/check_versions.py`
4242
- `scripts/sync_versions.py`
4343
- `tests/test_version_consistency.py`
44-
- `docs/release.md`
44+
- `CHANGELOG.md`

docs/release.md

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

docs/workflow.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ codex plugin add aisee-plugin@aisee-plugin
2828
aisee doctor --json
2929
```
3030

31+
Boundary note: `aisee openspec ensure` is the step that writes OpenSpec instructions/skills into the current project directory and also aligns global `openspec config profile`; do not treat `config profile` itself as the project-local installation step.
32+
3133
Use `aisee:init` to audit or create:
3234

3335
- `AGENTS.md`

0 commit comments

Comments
 (0)