Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ffe1060
chore(refactor): 新增依赖边界守卫(deps:graph / deps:check ratchet)
error2913 Oct 22, 2026
2f5fd19
refactor(registry): 注册装配从「工具/命令实现」中剥离,消除两组注册环
error2913 Oct 22, 2026
069c044
refactor(logger): logger 去掉对 config 的依赖,拆掉 config ↔ logger 二元环
error2913 Oct 22, 2026
13eb467
refactor(config): ext 与正则配置下沉为叶子模块,拆掉 config ↔ configs 环
error2913 Oct 22, 2026
9585443
chore(refactor): 依赖守卫加固(环规模 ratchet / 新入环 / 动态 import 基线)
error2913 Oct 22, 2026
8c58661
test(cmd): 单测改用 registerSubCommands(),并把子命令注册从装配函数中拆出
error2913 Oct 22, 2026
4279846
chore(refactor): 守卫 v3 —— 冻结已删边、收紧 update、跨层规则不再豁免同模块
error2913 Oct 22, 2026
fe82dd6
test(refactor): 补装配入口/幂等/logger provider/正则回退回归用例,并清理死代码
error2913 Oct 22, 2026
7b64f74
fix(refactor): 守卫 v3 的 retiredEdges 剔除当前存在的边,避免 allow-grow 后死循环
error2913 Oct 22, 2026
2cccaa7
feat(core): 新增宿主端口 HostSeam(storage/clock/fetch 可注入),迁移首批 5 个存储消费方
error2913 Oct 22, 2026
3d5fd64
refactor(core): 存储访问全量收口到宿主端口(迁移剩余 18 个文件)
error2913 Oct 22, 2026
3441b0e
refactor(utils): revive / TypeDescriptor 抽成叶子模块
error2913 Oct 22, 2026
b5ce5f3
refactor(config): 配置「解析」与「应用」分离,config 层退出全部依赖环(Phase 2b)
error2913 Oct 22, 2026
0849bb0
refactor(tool): 统一工具执行器,三处调用合一(Phase 3.1)
error2913 Oct 22, 2026
4463498
refactor(utils): 渲染标签与通用工具下沉叶子模块,17 环被打散(Phase 3.6 + 3.11)
error2913 Oct 22, 2026
1e41da7
refactor(agent): 引入 Agent 解析端口与 AuxLlm 端口,14 环拆成 5/3/2(Phase 3.4)
error2913 Oct 22, 2026
8f91176
refactor(prompt): 记忆数据源端口 + 渲染工具下沉,剩余环收敛到 1 个(Phase 3 收尾)
error2913 Oct 22, 2026
bd3c2a4
chore(ci): 版本号单一事实源校验 + 回写脚本,CI 增加 version:check(Phase 4.1)
error2913 Oct 22, 2026
c37dfc5
fix(config): 修复配置预热绕过 getCache 导致模型配置应用钩子不触发(评审 P0)
error2913 Oct 22, 2026
2a6efac
refactor(session): 会话拆为 setting/rhythm/persistence/inbox/outbox(Phase…
error2913 Oct 23, 2026
1a99d37
refactor(context): 窗口策略与名册下沉叶子模块(Phase 3.2 第一步)
error2913 Oct 23, 2026
0ef9f06
chore(cleanup): 删除死文件与失效配置项(Phase 4.7 第一节)
error2913 Oct 23, 2026
516b884
refactor(context): 归档/结算/窗口移出下沉 archiver 叶子模块(Phase 3.2 第二步)
error2913 Oct 23, 2026
d955462
refactor(ports): judge/timer 双向登记 + 会话解析端口,依赖环归零(Phase 3.5)
error2913 Oct 23, 2026
7dd4dbe
chore(changelog): changelog 数据化——45 个版本数据文件 + 生成式聚合索引(Phase 4.2)
error2913 Oct 23, 2026
d8f0764
ci(workflows): 抽出可复用 _check.yml,PR 与 release 共用同一套门禁(Phase 4.5)
error2913 Oct 23, 2026
268e6cd
chore(config): 默认值生成物加 --check 校验,接入 CI(Phase 4.3)
error2913 Oct 23, 2026
1180576
refactor(mcp): 服务器配置/错误映射下沉 mcp/config 模块(Phase 3.12 第一步)
error2913 Oct 23, 2026
fd42b04
refactor(model): ModelEntry 拆到 model/entry.ts(Phase 3.8 第一步)
error2913 Oct 23, 2026
6330754
refactor(pipeline): 去重/配对状态机下沉 pipeline/dedup 模块(Phase 3.9 第一步)
error2913 Oct 23, 2026
588ea58
refactor(image): URL 健康判定与接收适配下沉叶子模块(Phase 3.10 第一步)
error2913 Oct 23, 2026
192cade
docs(site): 文档清单单一事实源 + CI 校验(Phase 4.6)
error2913 Oct 23, 2026
a9fae40
refactor(mcp): 会话层拆到 mcp/client,mcp.ts 只留工具注册(Phase 3.12 完成)
error2913 Oct 23, 2026
1bd2535
refactor(memory): 打分/召回策略纯函数下沉 memory/v2/scoring(Phase 3.7 第一步)
error2913 Oct 23, 2026
0a4ca42
refactor(model): 余额三家供应商判定收敛为单一表(Phase 3.13)
error2913 Oct 23, 2026
bb0fa43
test(harness): 测试 seal 桩与配置统一到 scripts/harness/seal-env.cjs(Phase 4.4)
error2913 Oct 23, 2026
7880e3d
chore(cleanup): 移除 package.json 模板遗留字段(Phase 4.7 第二节)
error2913 Oct 23, 2026
4dc4413
refactor(pipeline): 事件分发 / inbound 段渲染 / 端点解析下沉,pipeline.ts 861 → 439…
error2913 Oct 23, 2026
5cf3931
refactor(model): 注册表候选解析下沉 model/registry_ops(Phase 3.8 完成)
error2913 Oct 23, 2026
21e222c
refactor(memory): 巩固/观察同步/淘汰下沉 memory/v2/consolidation(Phase 3.7 第二步)
error2913 Oct 23, 2026
9c4f4f5
refactor(memory): 心智模型服务下沉 memory/v2/mental_models(Phase 3.7 第三步)
error2913 Oct 23, 2026
b3ae288
refactor(image): URL 健康处置与发送取值下沉(Phase 3.10 第二步)
error2913 Oct 23, 2026
4962dec
refactor(model): 协议方言合法值单一来源;清理本地陈旧 build/(Phase 3.13 + 4.7 收尾)
error2913 Oct 23, 2026
83a49c8
refactor(memory): 反思簇下沉 memory/v2/reflection(Phase 3.7 第四步)
error2913 Oct 23, 2026
73ec008
fix(refactor): 终审 P0/P1 修复——归档运行时按 host 归属、Docs CI 依赖、门禁与文档校正
error2913 Oct 23, 2026
e9f3906
refactor(image): 识图链路下沉 resource/image_text(Phase 3.10 第三步)
error2913 Oct 23, 2026
ad94cb2
docs: 按重构后架构完整重写知识库(结构自洽、模块逐章讲解)
error2913 Oct 24, 2026
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
65 changes: 65 additions & 0 deletions .github/workflows/_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 可复用质量门禁(workflow_call):PR 检查与 release 共用同一套步骤,避免两处漂移。
# 调用方:build-check.yml(push/PR)、release.yml(verify 前的 check 任务)。
name: Check

on:
workflow_call:

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm ci

# 版本号单一事实源:meta.ts 的 VERSION 必须与 header.txt / package(.json|lock) / changelog / sealpack 一致
- name: Version single source
run: npm run version:check

# changelog 数据文件 ↔ 聚合索引一致(新增版本后运行 npm run changelog:gen)
- name: Changelog index
run: npm run changelog:check

# 默认值生成物(domain/defaults.ts → default_data.ts)与源一致(改动后运行 npm run domain:gen)
- name: Domain defaults
run: npm run domain:check

- name: Lint
run: npm run lint

# 必须直跑 tsconfig(npx tsc --noEmit),不要加 --strict:
# 命令行 --strict 会覆盖 tsconfig 的严格选项,实测会把「联合类型未收窄」
# (Property 'error' does not exist)这类错误静默吞掉 ——
# 同一份代码 tsconfig 直跑 exit=2,换成 `--strict` 后 exit=0,类型门禁形同失效。
# tsconfig 已启用 noImplicitReturns / noUnusedLocals 等;如需更严,请改 tsconfig 而非命令行覆盖。
- name: Type check
run: npx tsc --noEmit

- name: Unit tests
run: npm run test:unit

# 依赖边界 ratchet:只拦"新增环 / 新增跨层依赖",基线见 scripts/deps-baseline.json。
# 重构期间改善后可用 npm run deps:update 收紧基线(需在 PR 说明原因)。
- name: Dependency boundaries
run: npm run deps:check

- name: Build and validate package
run: npm run package:check

- name: Smoke test
run: npm run smoke

- name: Check status
if: failure()
run: |
echo "Check failed. Please check the errors above."
exit 1
41 changes: 2 additions & 39 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,6 @@ on:
branches: [main]

jobs:
# 质量门禁统一在 _check.yml(release.yml 复用同一份,避免两处步骤漂移)
check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

# 必须直跑 tsconfig(npx tsc --noEmit),不要加 --strict:
# 命令行 --strict 会覆盖 tsconfig 的严格选项,实测会把「联合类型未收窄」
# (Property 'error' does not exist)这类错误静默吞掉 ——
# 同一份代码 tsconfig 直跑 exit=2,换成 `--strict` 后 exit=0,类型门禁形同失效。
# tsconfig 已启用 noImplicitReturns / noUnusedLocals 等;如需更严,请改 tsconfig 而非命令行覆盖。
- name: Type check
run: npx tsc --noEmit

- name: Unit tests
run: npm run test:unit

- name: Build and validate package
run: npm run package:check

- name: Smoke test
run: npm run smoke

- name: Check status
if: failure()
run: |
echo "Check failed. Please check the errors above."
exit 1
uses: ./.github/workflows/_check.yml
8 changes: 8 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
with:
node-version: '20'

# docs:manifest / docs:build 由 node 脚本执行,需要安装依赖
- name: Install Node dependencies
run: npm ci

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -56,6 +60,10 @@ jobs:
working-directory: docs-site
run: python verify_slugify_against_github.py

# 文档清单单一事实源:docs-site/manifest.js ↔ docs/ ccdocs/ 磁盘 ↔ mkdocs nav 三者一致
- name: Verify docs manifest
run: npm run docs:manifest

- name: Build site (strict) and check links
run: npm run docs:build

Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ env:
SEALPACK_SERVER: https://repo.sealdice.com/

jobs:
# 质量门禁复用 _check.yml(与 build-check 同一份):lint / tsc / unit / deps / package:check / smoke
check:
uses: ./.github/workflows/_check.yml

verify:
needs: check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -33,22 +38,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

# 与 build-check 一致:直跑 tsconfig,不加 --strict(命令行覆盖会让部分类型错误被静默吞掉)
- name: Type check
run: npx tsc --noEmit

- name: Unit tests
run: npm run test:unit

- name: Build and validate package
run: npm run package:check

- name: Smoke test
run: npm run smoke

- name: Verify tag, version and changelog
if: startsWith(github.ref, 'refs/tags/')
shell: bash
Expand Down Expand Up @@ -140,7 +129,7 @@ jobs:
with:
name: release-assets-${{ github.run_id }}

- name: Generate release notes from changelog.ts
- name: Generate release notes from changelog data file
shell: bash
run: |
version="${GITHUB_REF_NAME#v}"
Expand Down
Loading
Loading