Skip to content

feat(core): 收敛配置与导出唯一路径 - #7

Merged
UltimeLam merged 4 commits into
mainfrom
feat/unified-pipeline
Nov 12, 2026
Merged

UltimeLam merged 4 commits into
mainfrom
feat/unified-pipeline

Conversation

@UltimeLam

Copy link
Copy Markdown
Contributor

Summary

  • 新增 src/tools/pipeline.ts:resolveThemeConfig 合并默认值并校验,exportTheme 一次派生并统一返回 artifacts / diagnostics;默认配置与自定义配置走同一条出口。
  • selection / derivation / THEME_DEFAULTS 从 core/studio 下沉到 tools;@ultime/core/studio 继续 re-export,公开名字不变。
  • CLI build / inspect 改走 pipeline,可直接读 selection / derivation;默认 seed 改用代码默认值,不再单独读 theme.example.json。
  • bin 改为 ultime-core,ultime 保留为过渡别名。
  • 新增 parity 测试:同一配置在 CLI / 库 API / core/studio 下产物逐字节一致;theme.example.json 解析后与默认 seed 等价。

Test plan

  • pnpm check(格式 / 类型 / 守卫 / 产物同源 / checks / cycles)
  • pnpm test(103 passed)
  • pnpm build(attw / publint 通过)
  • 根仓 pnpm ai-docs:check / docs:check / project-docs:check / references:check

发布注意

  • 发布前需把 @ultime/cli 更新到 0.2.0、@ultime/studio 更新到 0.3.0 并刷新 lockfile,再重建测试。
  • UltimeConfig 只增字段(selection / derivation),旧配置继续可读。

新增 tools/pipeline:resolveThemeConfig 合并默认值并校验,exportTheme 一次派生并
统一返回 artifacts / diagnostics;默认配置与自定义配置走同一条出口。
selection / derivation / 默认值从 core/studio 下沉到 tools,studio 只保留定义并
re-export,公开名字不变;CLI 的 build / inspect 改走 pipeline,可直接读
selection / derivation,bin 改为 ultime-core(ultime 为过渡别名)。

新增 parity 测试:CLI / 库 API / core/studio 默认导出逐字节一致,
theme.example.json 解析后与默认 seed 等价。
移除旧 ultime bin,不做兼容;0.10.0 承载该破坏性变更。
@UltimeLam
UltimeLam merged commit c25c504 into main Nov 12, 2026
2 checks passed
@UltimeLam
UltimeLam deleted the feat/unified-pipeline branch November 12, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant