Commit Graph
8 Commits
Author SHA1 Message Date
yige 23b4124dc4 fix: using-services 先认出本 Agent 已接入的 MCP 服务端 / Recognize this Agent's own MCP servers before the catalog (#292)
## 中文

用户直接点名一个服务(如「用 xxx 这个服务」)时,这个服务常常就是本 Agent 已接入的 MCP 服务端。`using-services`
1.0.4 只讲如何查全局「应用与服务」目录,模型会先去目录和市场里找,绕一大圈才回到自己的 MCP 工具。

更新至 1.1.0:

- 描述把适用范围写在最前:本 Agent 已接入的 MCP 服务端不用本技能,按服务端 ID 用 `ToolCatalog`
检索其工具。技能目录只显示描述开头,三段描述都在 80 token 以内,能整段显示。
- 新增 Step 0:先看系统提示词里是否列出本轮可用的 MCP 服务端(较新的客户端才有,写成条件句);用
`ToolCatalog(query="<服务端 ID>")` 检索,检索不支持 `<ID>__*`
这类通配;工具名与加载方式以结果为准;不为确认接入情况去读配置文件或配置接口,因为 MCP 配置里的环境变量和请求头可能含明文凭据。
- Step 4 第 3 条改写:接入后工具注册为 `<serverId>__<工具名>`,名字不合规时模型看到的是改写后的名字,不要按习惯猜。
- 不写死加载工具的名字,也不设客户端下限:按服务端 ID 用 `ToolCatalog`
检索、按结果给出的方式加载,在现有各版本客户端上都成立。
- 同步目录元数据(描述、版本、更新日期);英文改为人工维护并刷新 `source_hash`,避免被自动翻译覆盖。

验证:中英标题数一致(15/15);`source_hash` 按 `scripts/i18n/translate.py`
的同一算法复算;`git diff --check` 通过;对改动做了语义审阅,无客户、伙伴或其他私有标识。本机没有 uv,目录与 i18n
校验以本 PR 的 CI 为准;私有词表的公开信息扫描未在本机运行。客户端 seed 将在本 PR
合入后单独更新。客户端侧配套改动(自我认知列出本轮的 MCP 服务端、`ToolCatalog` 按服务端 ID 整段命中)在
DesireCore 主仓单独提交,本技能不依赖它。

## English

When a user names a service ("use the xxx service"), it is often one of
this Agent's own MCP servers. `using-services` 1.0.4 only explained how
to search the global Apps & Services catalog, so the model searched the
catalog and marketplace first and took a long detour before reaching its
own MCP tools.

Version 1.1.0:

- The description now states the scope up front: this Agent's own MCP
servers do not need this skill; search `ToolCatalog` by the server ID
instead. The skill catalog shows only the start of a description, and
all three descriptions are under 80 tokens, so they are shown in full.
- New Step 0: check whether the system prompt lists this turn's MCP
servers (only newer clients have it, so the step is conditional); search
`ToolCatalog(query="<server ID>")`, which has no wildcard such as
`<ID>__*`; use the tool names and load method from the result; do not
read config files or config endpoints to confirm, because MCP
environment variables and headers may hold plaintext credentials.
- Step 4, item 3 rewritten: connected tools are registered as
`<serverId>__<toolName>`, and the model sees a rewritten name when that
breaks naming rules, so do not guess names.
- No hard-coded loader tool name and no minimum client version:
searching `ToolCatalog` by server ID and loading as the result says
holds on all current client versions.
- Catalog metadata synchronized (descriptions, version, date); English
is now human-maintained with a refreshed `source_hash`, so automatic
translation does not overwrite it.

Validation: heading counts match (15/15); `source_hash` recomputed with
the same algorithm as `scripts/i18n/translate.py`; `git diff --check`
passed; changes reviewed semantically with no customer, partner or other
private identifiers. uv is not installed locally, so catalog and i18n
validation rely on this PR's CI; the private-token public-information
scan was not run locally. The client seed will be updated in a separate
PR after this merges. The companion client change (self-awareness lists
this turn's MCP servers; `ToolCatalog` matches a whole server ID) goes
to the DesireCore main repository separately; this skill does not depend
on it.
2026-11-17 21:04:26 +08:00
yige 8f7953948f fix: 补齐市场静态事实并保持旧客户端兼容 (#184)
## 中文

补齐已有 owner 与已锁定上游内容可证明的许可证、技能类型和收录版本。保留 Anthropic Source Available
和其他附加条件,不把所有内容统一标为 MIT,不提升 listing-only 的安装准入。

README 保留最新的双语结构及以 manifest 为准的数量口径,增加静态目录不存访问量、下载量、评分或 Stars 的边界。

发布兼容性:**本 PR 不包含**两支团队新增的本地化字段,也不包含微信支付 `latestVersion:
1.0`;旧客户端会拒绝这些新字段,另以待发布 PR 保留,等匹配客户端发布后再合并。

验证:47 项目录校验测试、19 项 i18n 测试、5 项合集生成测试通过;完整目录/i18n/翻译新鲜度检查通过,6
个固定来源合集的生成检查通过,2 个浮动来源按既有规则明确跳过。发现并修复了生成器在 Windows 使用反斜杠造成的误报:输出改为 POSIX
路径,比较规则不放宽、不重写合集数据。

## English

Fill only license, type and listed-release facts supported by existing
owners or pinned upstream content. Preserve custom license restrictions
and acquisition eligibility. Keep the current bilingual README and
manifest-derived inventory; do not author usage analytics.

This PR deliberately excludes localized team fields and the two-part
WeChat Pay version that older clients reject. Those changes remain
pending a compatible client release.

Validation passes: 47 catalog-validator tests, 19 i18n tests, five
collection-generator tests, complete catalog and translation checks, and
generated inventory checks for six pinned collections. Two mutable
sources remain explicitly skipped. Fix Windows-generated path separators
without weakening comparison or changing declared children.
2026-09-22 01:09:03 +08:00
yige 204cd96835 docs: 更新 Control 应用市场入口与服务技能边界 (#181)
## 变更 / Changes
新增 Control 1.4.0 中英文市场安装指南及 README 应用入口,指向真正的应用数据源
desirecore/registry;同步 registering-services / using-services 到 1.0.4,明确
native-app 的对外 MCP 不可注册为内部服务。

Add bilingual marketplace documentation and update both service skills
without duplicating an App as an MCP service. Fixed native application
listing and lifecycle live in Registry; open-source implementation lives
in desirecore-agent/desirecore-cdp-mcp.

## 兼容 / Compatibility
Requires native-app-aware desktop (catalog minimum 10.0.169) and
app-install-manager >=1.4.0. Catalog publication does not upgrade the
desktop or Agent.

## 验证 / Verification
- i18n/catalog validation: 0 errors, 129 existing governance/freshness
warnings retained.
- scoped translation hash check: both skills up to date; no model API
invoked by checks.
- git diff --check passed; unrelated market entries preserved.
2026-09-19 14:21:07 +08:00
yige a205ef20f0 feat: 迁移统一目录元数据契约 (#102)
## 中文

- 为 System Agent、34 个 Builtin Skill、28 个 Pointer/Collection 条目增加 catalog
sidecar
- 覆盖 147 个 collection child,并固定可证明的来源;无法证明的内容保持 listing-only/unknown
- 增加 strict Schema、validator、collection check 与 CI 完整性门禁

## English

- Add catalog metadata sidecars for the System Agent, 34 built-in
Skills, and 28 pointer/collection entries
- Cover 147 collection children while keeping unverifiable facts
listing-only or unknown
- Add strict schemas, validators, deterministic collection checks, and
CI completeness gates

## 验证 / Verification

- Catalog validator 17/17
- Collection generator 4/4
- 63 sidecars, 147 children, zero errors
2026-08-31 04:10:49 -04:00
yige 413f2cc00b fix(skills): 统一服务图标为纯白 (#65)
## Summary / 摘要

Normalize the Configure Compute, Using Services, and Register Services
source SVG icons to pure white.

将“配置算力”、“使用服务”和“注册服务”的源 SVG 图标统一为纯白。

## Version / 版本

- Market: `1.2.16` → `1.2.17`
- Each affected skill: `1.0.2` → `1.0.3`

## Validation / 验证

- `uv run scripts/i18n/validate-i18n.py`
- `uv run scripts/i18n/translate.py --check`
- Parsed all three SVGs and asserted their only hex color is `#FFFFFF`
- `git diff --check`
2026-07-29 17:48:28 +08:00
yige 1b002e5778 强化市场校验与索引元数据
合并市场索引、分类、i18n 校验、skill-creator 工具和已修改 skill 版本号更新。
2026-07-07 21:14:31 +08:00
yige 520be85977 feat: 补全 registering-services / using-services 缺失的图标 (#34)
为两个缺 market.icon 的技能补 24×24 线性 SVG(icon: >- 折叠标量,置于 category 前,对齐仓库约定);version 1.0.0→1.0.1。其余无图标条目为 pointer entry.json,需先扩 entry schema,另行处理。
2026-06-29 17:59:16 +08:00
yige c4593cc3b0 feat: 新增 registering-services / using-services 两个元技能 (#17)
## 概要

为 Skill-first "应用与服务目录" 路线图新增两个元技能,作为 builtin 同步到用户
~/.desirecore/skills/:

- registering-services — 教 Agent 安全注册外部 HTTP/MCP 服务(riskLevel
选择、secretRef、SSRF、人类审批)
- using-services — 教 Agent 发现并调用目录服务(status/reviewStatus 过滤、HTTP/MCP
两条路径、不绕开治理)

## 改动

- skills/registering-services/{SKILL.md, SKILL.zh-CN.md}
- skills/using-services/{SKILL.md, SKILL.zh-CN.md}
- builtin-skills.json 加 2 个技能 id
- manifest.json totalSkills 22 → 24(已 rebase 到含 #18 tech-diagram 的 main)
- SKILL.zh-CN.md 采用 `<!-- locale: zh-CN -->` body 格式(移除冗余 frontmatter,对齐
docs/I18N.md 约定)

## 配套

主仓库 PR 同步引入:schema 扩展、新存储层、注册/治理路由、service-approval、http-request
治理闸门、per-service Skill 生成器、docker-app 派生 + service-health、前端徽章/治理
UI/派生服务面板。

## CLA

- [x] I have read and agree to the Contributor License Agreement
2026-05-31 15:43:16 +08:00