Skip to content

feat: 1.6.0 模型名显示、引用图标、外部技能统一管理 - #12

Merged
OpenX123 merged 14 commits into
mainfrom
fix/1.5.2-model-labels
Nov 22, 2026
Merged

OpenX123 merged 14 commits into
mainfrom
fix/1.5.2-model-labels

Conversation

@OpenX123

@OpenX123 OpenX123 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

背景

1.5.1 实机反馈与新需求:模型下拉显示原始 id;侧边栏/标题栏露出链接与路径;希望统一引入 Claude Code / Codex 技能并去重、启停。各项已在本地 dev 版由用户确认(模型名、图标),技能管理按用户授权直接发版。

修改

  1. 模型名(bugfix):1.5.1 只解析 default 别名,其余条目原样显示 adapter name(本机即原始 id)。新增 formatEngineModelName:claude-fable-5-2 → Fable 5.2,gpt-5.5-codex → GPT-5.5-Codex。
  2. 引用图标:自绘 5 个 16×16 线条图标(技能、引用会话、文件、网址、图片);侧边栏与标题栏标题在显示层解析为「图标 + 简短名称」,原始标题不变;对话与输入框的技能/会话 chip 换用同一套图标。规格 docs/ui/task-title-reference-display.md。
  3. 外部技能统一管理:规格 docs/skills-hub-spec.md。来源 ~/.claude/skills、~/.codex/skills、已安装 Claude 插件技能(~/.agents/skills 只参与去重);在 ~/.ycode/skills 自动同步 junction/symlink 指向真实路径,清单 skills-hub.json 记录受管链接,自动清理只碰受管链接;按名分组、realpath 或 SKILL.md 哈希相同合并,不同为冲突(YCode > Claude > Codex > agents,可在设置改选,存 AppSettings);设置页来源标/筛选/冲突区/立即同步/手动清理多余链接;/ 与 @ 列技能带来源标。
  4. CLI 修复:技能发现按 realpath 去重,经链接导入的技能不再重复列出。
sequenceDiagram
  participant H as Host 启动 / 设置页 / 立即同步
  participant S as skills-hub 同步(services,唯一写入者)
  participant FS as ~/.ycode/skills + skills-hub.json
  participant UI as 设置页 / Composer
  H->>S: syncHub()
  S->>S: 扫描来源 → 分组去重 → 冲突按优先级/用户选择
  S->>FS: 为胜出者建链接、清理目标消失的受管链接、写清单
  S-->>UI: onDidChangeHub(状态:来源、冲突、新发现、多余链接)
Loading

验证

  • pnpm typecheck 通过;pnpm lint 0 errors;architecture:check --changed 0 违规。
  • 改动的 15 个根 UT 文件 174 例通过;CLI build + typecheck 通过;CLI skills.test.ts 通过。adapters 全量中 33 例失败位于未改动模块(exec/shell/MCP/commands 符号链接 EPERM 等 Windows 环境),本 PR 的 CLI 改动仅 skills/index.ts。
  • 同步测试全部在临时目录运行(含 Windows junction),未读写用户真实技能目录。
  • 未执行:桌面 E2E;技能管理未经真机手动验证(用户授权直接发版)。

🤖 Generated with Claude Code

OpenX123 and others added 14 commits November 22, 2026 10:28
1.5.1 只解析 default 别名的真实名;本机 Claude adapter 对其余目录条目给出的
name 就是原始 id,下拉显示 claude-opus-5-5 等。统一经 formatEngineModelName:
Claude id → Fable 5.2,Codex id → GPT-5.5-Codex,展示名去掉 Claude 前缀。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Define display-only rules for rendering skills, referenced sessions,
paths, URLs and images in sidebar task titles as icon + short name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five 16x16 reference icons (skill, session, file, url, image) shared by
React and Lexical DOM, plus a pure parseTaskTitleDisplay that turns a
stored title into readable segments without changing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Task list rows (default, timeline, grouped) render paths, links, skills
and referenced sessions as reference icons with short labels. The list
provides a read-only taskId -> title lookup for session references.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conversation bubbles and composer mention chips draw skill and session
references with the new reference icons; file chips keep file-type icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev 实机截图:侧边栏已用图标显示,但标题栏仍露出 zcode://session/open?taskId=…。
标题栏复用 TaskTitleDisplay,title 属性用整理后的可读文本。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pure source classification, name/content dedup, conflict winner, managed
link reconciliation and manual prune candidates for the external skills hub.
Adds the skillsHubConflictChoices AppSettings field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SkillsHub is the single writer of managed links and the skills-hub.json
manifest: scans Claude, Codex (without .system), agents and installed
Claude plugin skills, links only conflict winners to their realpath
(junction on Windows), reconciles only managed links, and prunes only
confirmed link entries. Exposed through ISkillsService; the desktop
local Host syncs once on startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skills imported into ~/.zcode/skills as links were listed twice because
discovery deduped by scan path only. Dedupe by realpath and, like the
desktop skills service, report the real path when the skill directory
itself is a link inside the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings > Skills (user scope) gains the external sync panel: engine
note, new-skill notice, sync now, prune redundant links and conflict
choice; skill rows get source badges and a source filter. Composer lists
skills before commands in /, adds a Skills group to @, and shows source
badges in /, @ and $.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OpenX123 OpenX123 changed the title fix: 1.5.2 所有模型条目显示友好名称 feat: 1.6.0 模型名显示、引用图标、外部技能统一管理 Nov 22, 2026
@OpenX123
OpenX123 merged commit 47805ff into main Nov 22, 2026
4 checks passed
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