Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .agents/rules/GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ trigger: always_on

---

## Spec 协议(任务跟踪 CSV 驱动)

当工作区存在 `issues.csv` 时,视其为任务跟踪文件(单一事实源),并遵循:

1. 读取 `issues.csv` 并只锁定一个原子任务。
2. 将任务状态从“未开始”改为“进行中”,再开始开发。
3. 修改完成后运行最小充分验证,并记录证据。
4. 自审通过后将状态改为“已完成”。
5. 若验证失败,先修复或回退,不得静默降级。

模板参考:

- 优先:`.ling/spec/templates/driver-prompt.md`
- 其次:`~/.ling/spec/templates/driver-prompt.md`(若已启用全局 Spec Profile)

---

## 请求分类器(第 1 步)

**在执行任何动作前,先对请求分类:**
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: CI

on:
push:
branches: [main]
pull_request:

jobs:
Expand All @@ -20,20 +19,16 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}

- name: Setup Bun
run: |
npm install --global bun@1.3.9
bun --version
cache: npm

- name: Install dependencies
run: bun install
run: npm ci

- name: Run tests
run: bun run test
run: npm test

- name: CI end-to-end verify
run: bun run ci:verify
run: npm run ci:verify

- name: Health check
run: bun run health-check
run: npm run health-check
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@

## [Unreleased]

## [ling-1.1.1] - 2026-03-14

### 新增

- Spec 项目级工作区初始化与诊断:新增 `ling spec init` / `ling spec doctor`,在工作区落盘 `.ling/spec` 资产与 `issues.csv` 校验。
- Spec Profiles 资产:全局与项目级均包含 `profiles/`,并纳入完整性校验与回退语义。
- Spec 资产分支拉取:`ling spec init --branch <name>` 支持从指定分支的 `.spec/` 拉取 templates/references/profiles。

### 变更

- Spec 状态判定强化:`ling spec status` 增加文件级完整性校验,且在 `state.json` 缺失但检测到残留 artifacts 时返回 `broken` 并给出修复提示。
- CI 改为 npm:CI 矩阵不再依赖 bun,统一使用 `npm ci/test/run` 执行验证。

## [ling-1.1.0] - 2026-03-13

### 新增
Expand Down Expand Up @@ -67,7 +80,8 @@

本项目在 Ling 重启前的 2.x/3.x 版本记录已冻结,不再维护。

[Unreleased]: https://github.com/MisonL/Ling/compare/ling-1.1.0...HEAD
[Unreleased]: https://github.com/MisonL/Ling/compare/ling-1.1.1...HEAD
[ling-1.1.1]: https://github.com/MisonL/Ling/releases/tag/ling-1.1.1
[ling-1.1.0]: https://github.com/MisonL/Ling/releases/tag/ling-1.1.0
[ling-1.0.2]: https://github.com/MisonL/Ling/releases/tag/ling-1.0.2
[ling-1.0.1]: https://github.com/MisonL/Ling/releases/tag/ling-1.0.1
Expand Down
1 change: 1 addition & 0 deletions bin/core/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class RuleGenerator {
agentsMd += `1. Managed resources are synchronized under \`.agents/skills\`.\n`;
agentsMd += `2. Do not rename managed skill folders manually.\n`;
agentsMd += `3. Use \`ling doctor --target codex --fix\` to recover missing managed artifacts.\n`;
agentsMd += `4. If \`issues.csv\` exists, treat it as the task tracking source of truth and keep at most one task in \`进行中\`.\n`;

// 3. Generate risk controls
let lingRules = `# Ling Risk Controls (Codex Managed)\n\n`;
Expand Down
Loading