Commit Graph
4 Commits
Author SHA1 Message Date
yige 39370aba29 fix(skill): make skill initialization safe on Windows pipes (#421)
## Summary
- Keep the caller's stdout encoding and escape only characters it cannot
represent. This prevents the normal skill initializer command from
aborting on legacy-encoded Windows pipes and preserves Unicode output on
UTF-8 streams.
- Write all generated skill templates as UTF-8 so the localized content
does not depend on the machine locale.
- Exercise the actual CLI with CP1252 and UTF-8 output in the i18n
validation workflow, including a non-ASCII destination, generated
localized files, and duplicate-directory errors.

## Validation
- Reproduced UnicodeEncodeError with the unmodified CLI and CP1252
stdout; both focused regression tests pass on the change.
- Catalog and i18n validation passed with zero errors; translation
freshness and `git diff --check` passed.
- No new dependencies or metadata changes. A native installed-app
confirmation still belongs to the consuming product after syncing the
bundled Market seed.
2026-12-02 11:39:40 +08:00
yige 1b002e5778 强化市场校验与索引元数据
合并市场索引、分类、i18n 校验、skill-creator 工具和已修改 skill 版本号更新。
2026-07-07 21:14:31 +08:00
124608760 eab5c824a5 fix: replace hardcoded ~/.desirecore paths with ${DESIRECORE_ROOT} variable (#16)
## Summary

- 将所有技能文件中的硬编码 `~/.desirecore/` 和 `$HOME/.desirecore/` 路径替换为
`${DESIRECORE_ROOT}/` 变量
- 递增 manifest.json version 至 1.2.1

## Why

dev 模式下 `DESIRECORE_HOME=~/.desirecore-dev`,硬编码路径导致技能读取错误的端口文件和目录。主仓库的
`variable-substitutor.ts` 会在运行时将 `${DESIRECORE_ROOT}` 替换为实际根目录。

## Test plan

- [ ] `npm run dev` 启动后触发任意技能,确认端口路径解析为
`~/.desirecore-dev/agent-service.port`
- [ ] prod 模式确认路径为 `~/.desirecore/agent-service.port`

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-05-29 15:36:19 +08:00
张馨元 f94d34468a feat: 添加 skill-creator 内置技能
适配 DesireCore 系统的技能创建器,兼容 Claude Code 基础格式:
- SKILL.md: 完整 frontmatter + L0/L1/L2 分层内容
- init_skill.py: 支持 --format basic|desirecore
- quick_validate.py: 移除白名单限制,改 Schema 校验
- package_skill.py: 新增 --install API 安装模式
- references/desirecore-format.md: 完整字段参考
2026-04-03 21:24:34 +08:00