Repository navigation
feat(core): 收敛配置与导出唯一路径 - #7
Merged
Merged
Conversation
新增 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 承载该破坏性变更。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/tools/pipeline.ts:resolveThemeConfig合并默认值并校验,exportTheme一次派生并统一返回 artifacts / diagnostics;默认配置与自定义配置走同一条出口。selection/derivation/THEME_DEFAULTS从core/studio下沉到tools;@ultime/core/studio继续 re-export,公开名字不变。build/inspect改走 pipeline,可直接读selection/derivation;默认 seed 改用代码默认值,不再单独读theme.example.json。ultime-core,ultime保留为过渡别名。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),旧配置继续可读。