Commit Graph
100 Commits
Author SHA1 Message Date
yige 5835ed8f14 chore(invoice-organizer): 1.2.0 —— pin 到内容仓库合并提交,声明最低客户端 10.0.180 (#235)
- 三处 pin 改为 3188fbec(desirecore-agent/invoice-organizer#12 的合并提交)
- latestVersion / release.version 改为 1.2.0
- entry.json 与 compatibility 新增 requiredClientVersion: 10.0.180,与内容仓库 agent.json 同值
2026-10-28 23:01:33 +08:00
yige 50882f17ff fix(mail-operations): 按 v10.0.180 起的邮件服务行为更新技能说明(1.2.0) (#233)
- save_to 可保存任意 JSON 响应;超过输出上限时的提示与做法;messages/fetch 拿不到完整结果时改读本地缓存
- 等待上限 20 分钟,失败按请求是否送达区分;写操作失败后先核对再决定是否重试
- IMAP 其他文件夹的 id 带文件夹键,folder 只对带键 id 起核对作用;改动类操作只认本地缓存;新错误码
- IMAP 补拉只取摘要,附件 id 为 part:<n>;/api/sync 支持 imap,syncInterval 按分钟
- required_client_version 提到 10.0.180,删掉两句已过时的旧客户端说明
2026-10-28 22:37:35 +08:00
yige 1ced701714 fix: 上游巡检允许已审查暂缓覆盖集合新增子技能 (#230)
## Why

`upstream-health-hold.json` could only cover `upstream-path-change` and
`outdated`. When the upstream head of a held collection adds children
that `children` does not declare, the `new-skill` finding stays
actionable even after maintainers have reviewed those children and
decided not to declare them, so the tracking issue (#213) can never
close. `skills/marketingskills` is in this state today: its two new
upstream children were reviewed in the 2026-10-27 round (#227), but
nothing can hold the finding.

## What changes

- `new-skill` is now a holdable status (`HOLDABLE =
("upstream-path-change", "new-skill", "outdated")`).
- A hold that lists `new-skill` also checks the undeclared children:
- the set of undeclared child paths at branch head must equal the set at
the reviewed `head`; otherwise `stale-hold: undeclared children changed
since <head> (added …; removed …)`;
- the staleness diff adds those undeclared child paths to the installed
scope (declared children plus root `LICENSE*`/`NOTICE*`/`COPYING*`), so
any change inside them gives `stale-hold: upstream changed within the
installed scope or undeclared children since <head>`;
- a network error while listing children at the reviewed head is
`unreachable`, not a stale hold.
- Holds without `new-skill` compare the same scope and keep every
existing message. The only wording change for them is the validation
error for an unholdable status, which now lists `new-skill` among the
holdable statuses.
- The discovery filter moves into `undeclared_children()`, which the
`new-skill` finding and the hold check share, so both always agree on
what is undeclared.
- The checker docstring, the tracking-issue guidance in
`.github/workflows/upstream-health.yml`, `README.md` and
`README.zh-CN.md` describe the extended hold.

## Tests

New cases in `scripts/catalog/test_check_upstream_health.py`:

- a valid `new-skill` hold is reported as `held`, and stays held after
an unrelated upstream change;
- a newly added undeclared child, and later the removal of the reviewed
ones, make the hold stale;
- a content change inside a held undeclared child makes the hold stale;
- an `outdated`-only hold on a collection still ignores changes to
undeclared children (existing behaviour);
- a network error while listing children at the reviewed head stays
`unreachable`.

The validation test now accepts `new-skill` and still rejects broken,
`unreachable`, `unpinned`, `held`, `stale-hold` and `ok`.

## Validation

- `scripts/i18n/test_validate_i18n.py`: 19 tests pass.
- `scripts/catalog/test_validate_catalog_metadata.py`: 51 tests pass.
- `scripts/catalog/test_collection_generator.py`: 10 tests pass.
- `scripts/catalog/test_check_upstream_health.py`: 47 tests pass (5
new).
- `validate_catalog_metadata.py --require-complete` and
`validate-i18n.py`: 0 errors, 103 existing warnings. `translate.py
--check`, `actionlint` and `git diff --check` are clean.
- Live run on `marketingskills` (entry and hold as on `main`, in a
scratch copy, not committed):
- with `new-skill` added to the 2026-10-27 hold, the result is
`stale-hold`, because upstream has since moved from `17772c7` to
`0cd9b3a` and changed declared children. The same hold without
`new-skill` is also stale, so this is not caused by the new check. The
two undeclared children are unchanged between those heads.
- with the reviewed head set to a commit whose tree equals the current
head, `new-skill` and `outdated` are both `held` and the summary reports
`actionable: false`.

## Follow-up

After this lands, the `marketingskills` hold can add `new-skill` to its
`statuses`. Its reviewed head needs a fresh review first, because
upstream has changed declared children since `17772c7`.

The pre-publication sensitive-token scan was run privately by the
maintainer and passed.

Refs #213.
2026-10-28 20:08:36 +08:00
yige c8626c758e fix: 视频导演指针更新到已审查的 4652b1d (#231)
## 中文

把 `agent/video-director` 的固定提交从 `84787c1` 更新到
`4652b1d`(desirecore-agent/video-director#12 的合并提交)。2026-10-26
的上游巡检把该条目标为 `gone`,原因是上游仓库为私有;仓库现已公开,2026-10-28 复查时它变为对这个新提交的
`outdated`。

已审查的改动共 5
个文件,均为文字说明:口播时间依据分为实测、估算与未知;报告同步前须实际听取最终编码;换源后保留用户冻结的整行外观与位置;NOTICE
补充上述改编说明。没有新增外部服务、凭据、工具授权或网络访问,`LICENSE` 未变,`agent.json` 仍为
0.2.0,因此目录文案与外部依赖披露保持不变。

`entry.json` 与 catalog sidecar 同步更新:内容引用、审查引用、审查与观察日期;`reviewedBy` 改为
`Market upstream maintenance`,因为本次审查覆盖仓库内容,未做运行时验证。manifest 版本为 1.5.19。

验证:4 个单元测试套件共 122 个测试通过;`validate_catalog_metadata.py
--require-complete` 与 `validate-i18n.py` 均为 0 错误、103 个警告(与 `main` 相同,无
video-director 相关项);`translate.py --check`、`gen-collection-children.py
--check`、`git diff --check` 通过;匿名运行 `check_upstream_health.py
video-director` 为 `ok`。未在客户端执行安装或运行。

## English

Repin `agent/video-director` from `84787c1` to `4652b1d`, the merge
commit of desirecore-agent/video-director#12. The 2026-10-26
upstream-health report listed the entry as `gone` because the upstream
repository was private. It is now public, and the 2026-10-28 check then
reported it as `outdated` against this head.

The reviewed change touches five files, all text: narration timing
provenance (measured, estimated, unknown), listening to the final encode
before claiming synchronisation, keeping user-frozen lines intact across
source revisions, and a NOTICE paragraph describing these adaptations.
It adds no external service, credential, tool grant or network access,
leaves `LICENSE` unchanged and keeps `agent.json` at 0.2.0, so the
listing text and dependency disclosures stay as they are.

`entry.json` and the catalog sidecar move together: content ref,
reviewed ref, and review and observation dates. `reviewedBy` becomes
`Market upstream maintenance`, because this review covered repository
content, not a runtime run. The manifest goes to 1.5.19.

Validation: 122 tests across the four unit suites pass.
`validate_catalog_metadata.py --require-complete` and `validate-i18n.py`
each report 0 errors and 103 warnings, the same as `main`, none for
video-director. `translate.py --check`, `gen-collection-children.py
--check` and `git diff --check` pass. An anonymous
`check_upstream_health.py video-director` run reports `ok`. No client
installation or run was performed.

Refs #213.
2026-10-28 19:53:49 +08:00
yige 4a4fbea7fd fix: 同步上游健康巡检 #213 两轮已审查的市场引用 (#227)
## Summary

This PR remediates the #213 upstream-health findings in two reviewed
rounds. Each installed-scope diff was reviewed: the source path or the
declared child paths, together with the root LICENSE/NOTICE/COPYING
files. Each entry was then repinned or put on a reviewed hold. Per-entry
decisions and compare links are in
`docs/upstream-health-213-remediation.md`, which covers the first review
and then the "Follow-up review (2026-10-27)" section.

- **Round 1 (2026-10-19):** 28 reported entries.
- **Round 2 (2026-10-27, squash-merged from #228):** the upstream
changes that landed after round 1.

#222 is now on `main`, and this branch has been updated with `main`.

## Changes

- **Repins.** Round 1 repinned 24 pointers. Round 2 repinned 16, some of
them again:
- Round 1: agent-reach, anatomy, archify, blog-chart, blog-repurpose,
brainstorming, dingtalk-cli, follow-builders, humanizer,
humanlayer-skills, impeccable, larksuite-cli, last30days,
mattpocock-skills, planning-with-files(-zh), redbookskills,
reverse-engineer-anything, systematic-debugging, taste-skill,
translate-book, video-use, wechatpay-skills, wecom-cli.
- Round 2: archify, banana, brainstorming, dingtalk-cli,
follow-builders, frontend-slides, himalaya, impeccable, larksuite-cli,
last30days, mattpocock-skills, planning-with-files(-zh), redbookskills,
reverse-engineer-anything, taste-skill.
- For each repin, `entry.json` and the catalog sidecar stay in sync:
refs, compliance, review timestamps, observed versions, license evidence
and compatibility requirements.
- **Three new collection children** with reviewed zh-CN/en-US summaries:
- `rpi` (humanlayer-skills): explicit invocation only. A real summary
replaces the upstream text, which only said to invoke it by name.
- `chief-of-staff` (mattpocock-skills): from upstream's in-progress
folder, manual invocation only.
- `wecomcli-pptx` (wecom-cli): needs the separately installed wecom-cli.
- **License.**
- archify: upstream relicensed from MIT to Apache-2.0. The earlier MIT
grants remain upstream in LICENSE-MIT and NOTICE.
  - humanlayer-skills: MIT license evidence and review dates recorded.
- **External-dependency disclosures**, following the repository policy:
  - brainstorming: visual-companion logo telemetry.
  - planning-with-files: automatic hooks and their Python 3 requirement.
  - archify: an opt-in global-rules edit.
  - taste-skill: public image APIs and CDN resources.
  - wechatpay-skills: knowledge-base sync.
  - banana: Python 3.11+, Gemini billing and data retention.
- himalaya: the separate CLI and mail credentials, and sending without
built-in confirmation.
  - frontend-slides: the Playwright/Chromium download.
- impeccable: the optional OpenAI image fallback and SHA-256-pinned
downloads.
  - last30days: Bright Data and the other optional providers.
  - reverse-engineer-anything: tooling and the authorization gates.
- Updated summaries for the dingtalk-cli and mattpocock-skills children.
- Unsupported domain and tool counts are removed from the dingtalk-cli
summary.
- **Reviewed holds** (`upstream-health-hold.json`):
- `geo-optimizer`: upstream moved the workflow outside the installed
subtree, so the new layout would install broken.
- `nuwa-skill`: SKILL.md recommends the author's other projects whenever
a request goes beyond the skill's scope.
- `agent-reach`: 1.6.0 defaults to an anti-detection browser that copies
site cookies from a connected Chrome.
- `wecom-cli`: new wecomcli-sheet content is adapted without attribution
from the source-available xlsx skill in anthropics/skills, while the
repository declares MIT.
- `marketingskills`: a referral promotion and paid "Verified Partner"
placements in agent-facing content. This hold went stale again on
2026-10-28; see below.
- **Manifest** goes to 1.5.18; #226 took 1.5.17 on `main`, and inventory
counts follow `main`. watch is left alone because #221 already pins it
on `main`.

## Review decisions worth a second look

- **archify proactive mode.** It edits the agent's global rules file
only after explicit user consent, and the edit is reversible. Disclosed
rather than held.
- **wechatpay-skills knowledge-base sync.** The sync can overwrite
installed files from the official CDN. This behavior predates this PR;
disclosed rather than held.
- **agent-reach and wecom-cli holds.** Both are judgment calls. The
review notes list what a later bump would need to disclose.
- **reverse-engineer-anything version.** Its upstream `metadata.version`
revision is recorded as an opaque version.

## Validation

Run on 2026-10-28 on this branch after merging `main` (`7a3ea30`, which
includes #226):

- Unit tests: 122 pass. By suite: i18n 19, catalog-metadata 51,
collection generator 10, upstream health 42.
- Validators: `validate_catalog_metadata.py --require-complete`,
`validate-i18n.py` and `translate.py --check` pass with 0 errors.
Warnings go from 105 on `main` to 103, and none are new.
- Collections: `gen-collection-children.py --check` reproduces all ten
pinned collections, including aws-agent-toolkit from #226.
- `git diff --check` is clean.
- Sensitive-token scan: passed for both rounds (run privately by the
maintainer). The `main` merge and the manifest bump add only generic
text.

Each round was also checked online against its reviewed heads; see the
remediation record. Third-party programs and live account services were
not executed.

## Not clean as of 2026-10-28

The online check on this branch covered 113 entries, and nothing is
broken. One transient TLS failure passed when rechecked individually.
Five `held` findings cover four holds: geo-optimizer counts twice,
nuwa-skill, agent-reach and wecom-cli once each. Still actionable:

- **marketingskills:** upstream moved again (`0cd9b3a`), so its hold is
`stale-hold`. The two undeclared children are still reported as
`new-skill`.
- **reverse-engineer-anything:** `outdated` against a newer head
(`40b9c03`).
- **agent/video-director:** `outdated` against a newer head (`4652b1d`).
It was added on `main` by #225.
- **aws-agent-toolkit:** `outdated` against a newer head (`655a323`). It
was added on `main` by #226.

These newer heads are not reviewed here. #213 stays open for the next
round.

Refs #213.
2026-10-28 11:23:49 +08:00
yige ef978c21a2 fix: 上游巡检收窄集合对比范围并支持已审查暂缓 (#222)
Collections install only their declared children: the client copies each
selected child path at the pinned ref. Yet `outdated` compared the whole
upstream repository, so CLI sources, end-to-end tests and changesets
forced repins. Compare the declared child paths plus root license/notice
files instead; undeclared upstream skills are still reported as
`new-skill`.

A pin kept on purpose after review was reported again every week, so the
tracking issue could never close. A reviewed `upstream-health-hold.json`
beside `entry.json` now reports its listed
`upstream-path-change`/`outdated` findings as `held` (not actionable)
while the pin and the installed-scope content at the reviewed upstream
head are unchanged. Otherwise the findings return with an actionable
`stale-hold`. Broken, unreachable, `new-skill` and `unpinned` findings
cannot be held. CI tests require every hold to be well-formed and to
match its entry's `source.ref`. A network error while checking a
reviewed head stays `unreachable`.

`outdated` rows in the tracking issue now link to the GitHub compare
view. The summary JSON reports the held count, and the closing comment
mentions remaining holds. Both READMEs document the comparison scope,
the hold format and the links.

Validation: 42 upstream-health, 10 collection-generator, 51
catalog-metadata and 19 i18n tests pass. Catalog metadata, i18n (0
errors, 106 existing warnings) and translation-freshness checks pass.
actionlint and `git diff --check` are clean. A live run over 111 entries
reports no broken or unknown entries, and humanlayer-skills is no longer
`outdated`. A temporary geo-optimizer hold turned both of its findings
into `held` with `actionable: false`; it is not committed.

Refs #213.
2026-10-28 10:49:03 +08:00
yige 1b9e82d95d fix(office): 修复独立技能的 Python 依赖入口 (#229)
为 pptx 与 xlsx 提供标准库启动器,使用已准备的受管 XML 依赖,保留目标退出码并避免失败后重放编辑。

同步双语说明、目录版本和固定启动器合同测试。

Refs desirecore/desirecore#5335
2026-10-28 10:24:31 +08:00
yige aa6a1a6348 feat: watch 指针更新到 1.1.2 并改为可安装 / pin watch to 1.1.2 and make it installable (#221)
## 中文

把 `watch` 的 pointer 从 `0fd13b7`(1.1.0)移到 `4fa94ac`(1.1.2,desirecore-agent/watch-video-skill#3 的合并提交),并改为可安装。1.1.1 在 `requires.bins` 中声明 `ffmpeg`、`ffprobe`、`python3` 等命令行程序,1.1.2 去掉只有 URL 输入才需要的 `yt-dlp`。补齐可安装所需的证据:MIT 许可证(仓库根目录 `LICENSE`)、按 `4fa94ac` 的审查记录(yi-ge,2026-10-24)、上游为 DesireCore 官方组织。合入 #225 后 manifest 版本为 1.5.15。

验证:validate-i18n 与 validate_catalog_metadata --require-complete 均 0 errors / 105 warnings,translate --check、git diff --check 通过,check_upstream_health watch 为 ok;远端 validate、translate、CodeQL 通过。Copilot 因额度不足未审查。

## English

Move the `watch` pointer from `0fd13b7` (1.1.0) to `4fa94ac` (1.1.2, the merge commit of desirecore-agent/watch-video-skill#3) and make it installable. 1.1.1 declares command-line programs such as `ffmpeg`, `ffprobe`, and `python3` in `requires.bins`; 1.1.2 drops `yt-dlp`, which only URL inputs need. Adds the evidence required for installation: MIT license (`LICENSE` at the repository root), a review bound to `4fa94ac` (yi-ge, 2026-10-24), and an upstream in the DesireCore official organization. After merging #225 the manifest version is 1.5.15.

Validation: validate-i18n and validate_catalog_metadata --require-complete each report 0 errors / 105 warnings; translate --check, git diff --check pass; check_upstream_health watch is ok; remote validate, translate, and CodeQL pass. Copilot could not review because of insufficient quota.
2026-10-27 14:00:21 +08:00
yige c5dc76b5de 收录视频导演的固定源码 / List source-pinned Video Director (#225)
新增视频导演的固定Git来源目录指针,关联已合并的独立Agent内容。使用现有Agent pointer和catalog
sidecar,不复制Agent实现、不改上游UUID或客户端Schema。中英发现文案说明需单独安装视频创作和准备算力,模型/可选媒体许可及费用另计;保留自主原创场景和人工锁。

-
固定来源:desirecore-agent/video-director,版本0.2.0、完整已合并提交84787c1172954d30c4d607d860444d4e2a710ec7。
- totalAgents从8更新为9,目录版本1.5.14,paired README同步;不加入使用量或本机健康数据。
-
验证:完整目录/i18n/翻译新鲜度离线校验通过,工作树/路径/Git与PR文本公共信息边界扫描通过。客户端安装、权限、运行和生产部署不是目录声明的事实。

---

Adds a pinned Git pointer for Video Director using the existing Agent
and catalog metadata contracts. The upstream UUID and implementation
stay unchanged. Discovery text discloses the separate Video Creation
app, compute prerequisites, and model/media licensing and costs.
Autonomous scenes and human locks remain supported.

Pins merged source84787c11/version0.2.0, updates the file-derived Agent
count and catalog version, and keeps both READMEs aligned. Offline
catalog, localization and translation-freshness checks pass, with a
clean public-information scan. No client installation, permission grant
or production deployment is implied.
2026-10-25 16:54:44 +08:00
yige 0679dcd8f2 fix(web-access): 外部浏览器登录态按隔离 Profile 如实描述 / describe external login state as the isolated profile (#224)
## 变更 / Changes


web-access「两个浏览器」对比表中,外部浏览器一栏的「登录态」写着「就是用户本人的登录态,无需导入」。这与同一技能的其他描述矛盾:compatibility
字段、L3-external 定义、`BrowserExternalLaunch` 说明都写明外部浏览器运行在 DesireCore 隔离外部
Profile 中,客户端 `BrowserExternalProbe` 返回的 `launchCommand` 与
`BrowserExternalLaunch` 实际使用的也是 DesireCore 专属的
`--user-data-dir`。外部浏览器里的登录态来自用户在这个隔离 Profile 中的手工登录,不是日常使用的浏览器
Profile。Agent 加载技能后若照这一行回答,会对用户作出错误承诺。

- 中英两份正文改为与技能其他段落一致的口径(只改这一行;「用户能看到吗」一行描述的是可见窗口与随时接管,仍然成立,未改)。
- 版本 3.7.0 → 3.7.1(`SKILL.md` 与
`catalog-metadata.v1.json`),让已安装的内置副本能收到更新。
- 两个 locale 都是 `translated_by: human`:中文源与英文译文已人工同步,`source_hash` 按
`scripts/i18n/translate.py` 的 `compute_source_hash` 刷新。

In the two-browser comparison table, the external column said the login
state is "literally the user's own session — nothing to import". That
contradicts the rest of the skill: the compatibility field, the
L3-external definition and the `BrowserExternalLaunch` row all describe
a DesireCore-isolated external profile, and the client's Probe
`launchCommand` and `BrowserExternalLaunch` use a DesireCore-specific
`--user-data-dir`. The external login state is whatever the user signed
into manually in that isolated profile, not their everyday browser
profile.

- Both locales now match the wording used elsewhere in the skill (only
this row; the visibility row still holds and is unchanged).
- Version 3.7.0 → 3.7.1 in `SKILL.md` and `catalog-metadata.v1.json` so
installed built-in copies receive the fix.
- Both locales are human translations: they were synchronized manually
and `source_hash` was refreshed with `compute_source_hash` from
`scripts/i18n/translate.py`.

## 验证 / Validation

- `validate-i18n.py`:0 error(106 条既有 warning,与本改动无关)
- `validate_catalog_metadata.py --require-complete`:0 error
- `translate.py --check skills/web-access`:en-US human-locked,无过期;全仓
`--check` 无 stale
- 改动只含通用措辞,不涉及任何组织或客户信息

Validation: `validate-i18n.py` and `validate_catalog_metadata.py
--require-complete` report 0 errors (106 pre-existing warnings);
`translate.py --check` reports no stale locale. The change contains
generic wording only.

主仓内置种子将在本 PR 合入后通过 `npm run sync-market` 同步。
The main repository's built-in seed will be refreshed with `npm run
sync-market` after this merges.
2026-10-24 21:08:27 +08:00
yige a514b55b68 feat: 收录应用开发发布技能与双语示例 (#214)
## 中文

新增按需调用的内置技能 `app-developer`(应用开发与发布):中英正文、sidecar、MIT 许可、静态与服务两个通用工作台示例,以及作者接口与分发参考,并登记进 `builtin-skills.json`。作者管理优先使用 AppManage 的有限动作,执行前须通过 `authoring_capabilities` 确认 `app-authoring-v1`,能力不可用时停止受影响的操作;外部 Node/Docker 运行时、托管、Git 服务与数据库的条款和可能费用已在发现文案、compatibility 与正文披露。另将 dev-environment-setup 探测参考中的三处用户 home 示例改为通用路径。

与 #220、#212 合入后的 main 解决 manifest 冲突:技能总数 144,市场版本 1.5.13。验证:catalog 与 i18n 校验 0 errors / 106 warnings(含新技能尚未 ref-bound review 的治理提醒),translate --check 与 git diff --check 通过;远端 validate、translate、CodeQL 通过。Copilot 因额度用尽未能审查。

## English

Add the on-demand builtin `app-developer` skill (application development and publishing): English/Chinese bodies, sidecar, MIT license, static and service workbench examples, plus authoring-interface and distribution references, registered in `builtin-skills.json`. Authoring prefers AppManage's finite actions and must confirm `app-authoring-v1` through `authoring_capabilities` first, stopping affected operations when the capability is unavailable. External Node/Docker runtime, hosting, Git service and database terms and possible costs are disclosed. Three user-home examples in the dev-environment-setup probe reference are neutralized.

The manifest conflict with main after #220 and #212 is resolved: 144 skills, market version 1.5.13. Catalog and i18n validation report 0 errors with 106 warnings (including the new skill's pending ref-bound review notice); translate --check and git diff --check pass; remote validate, translate and CodeQL passed. Copilot could not review because of its quota limit.
2026-10-18 17:53:37 +08:00
yige e8fb262399 feat: 为通用助手市场条目配置透明头像 (#219)
通用助手源仓 PR #2 已发布 1.0.1 的透明头像。本 PR 给 system/repository/listing-only
展示条目增加相同的自包含 `assets/avatar.webp` 与
`avatar.image.path`,更新版本、目录日期和双语更新日志;离线或尚未加载本地 Agent 的市场也能取图,保留字符/渐变回落。

验证:i18n、严格 catalog metadata
完整覆盖、翻译新鲜度均通过(零错误、105条既有警告);头像与源仓字节一致,512×512、真实alpha,现有运行时透明策略通过。完整公开工作树与协作元数据扫描及语义核读通过,零敏感匹配。主仓
market.zip 后续由正式同步脚本生成,不手改ZIP。

General Assistant source PR #2 published its transparent avatar in
1.0.1. This adds the same self-contained image and avatar reference to
the system/repository/listing-only market entry, updates its
version/catalog date and bilingual changelog, and retains the
character/gradient fallback.

Validation: i18n, complete strict catalog metadata and translation
freshness pass with zero errors and 105 existing warnings. The image is
byte-identical to the source avatar, is 512×512 with genuine alpha, and
passes the runtime transparency policy. Full public-tree and
collaboration metadata scanning and semantic review passed. The client
market ZIP will be generated only by the official sync script.

Source: https://github.com/desirecore/agent-general-assistant/pull/2
2026-10-15 23:06:38 +08:00
yige c9c8c564aa feat: 新增内置通用助手 / list built-in General Assistant (#216)
## 中文
新增通用助手的双语展示条目,主文件明确声明 system/repository,sidecar 使用
listing-only。市场展示内置状态,更新复用 Agent 仓库合并;客户端负责离线安装与默认手动多会话。


独立公开源仓库:[agent-general-assistant](https://github.com/desirecore/agent-general-assistant),初始内容已通过
PR #1 合入 main。客户端实现:desirecore/desirecore#4814。

验证:i18n 与 catalog metadata 均 0 errors(105
条既有条目警告),翻译新鲜度与公开内容检查通过;客户端已从真实 main 生成种子,真实 bundle verification 通过。

## English
Add the bilingual General Assistant listing with explicit
system/repository policies and listing-only availability. The client
owns offline provisioning and manual multi-session defaults; updates use
the agent repository merge flow.

The public source repository is available on main. Client integration:
desirecore/desirecore#4814. i18n/catalog validation passed with 0 errors
and 105 existing warnings, alongside translation freshness and
publication checks. The real main-based seed and bundle verification
passed.
2026-10-14 08:28:38 -07:00
yige 13c72eba29 feat: 创建与更新技能支持独立长期指令 (#211)
创建与更新技能增加可选 instructions 字符串:普通 Markdown
全文、省略保留、字符串整体替换、空字符串清空。内容归属明确为人格、原则、长期指令与技能方法;既有 AgentFS
直接编辑遵循实际权限与审批。create-agent 2.8.0 / update-agent 3.4.0 的最低客户端为
10.0.179,双语正文与 sidecar 同步。

Add optional plain-Markdown instructions to Agent creation and update
guidance, including preserve/replace/clear semantics and clear content
ownership. Existing direct AgentFS editing retains its permission and
approval rules. Both localized bodies and catalog sidecars require
DesireCore 10.0.179.

验证 / Validation:目录与 i18n 校验 0 errors;严格 sidecar 全覆盖检查 0
errors(既有证据警告保留);双语由人工同步并按真实 source body 计算 freshness
hash。依据用户明确授权,本次以全树凭据形状扫描、Git/PR 元数据扫描与客户中立性人工审阅代替缺失的私有敏感词表检查;凭据形状扫描 740
文件无命中,不声称执行私有词表匹配。
2026-10-07 21:03:40 -07:00
yige 8f6aa67c96 feat(manage-teams): expose complete team repository operations (#210)
团队仓库能力补齐后,manage-teams 的原有说明仍要求用户在 UI 配置远程,并缺少安装、升级与发布重试入口。同步中英文动作和流程、修正
set_member_source 自动解析语义,将技能增版为 1.4.0;最低客户端 10.0.178,旧客户端不应加载新增动作。

Updates the bilingual manage-teams contract for all team repository
actions, remote destination configuration, exact release tags and
same-version retries, complete archiving and protected member updates.
Bumps the Skill to 1.4.0 with a 10.0.178 client floor so older tool ABIs
cannot load the new actions.

Validation: i18n/schema/catalog checks passed with 105 pre-existing
governance/provenance warnings; reviewed human translations and
refreshed their source hash. New content uses generic roles and
examples. No customer, tenant, credential or runtime fixture data is
introduced.

Related: desirecore/desirecore#1490. Client implementation:
https://github.com/desirecore/desirecore/pull/4362. Do not infer release
availability from this Skill PR.

The authorized alternative pre-publication check passed: full working
tree including hidden files, changed paths, branch and commit metadata,
and this PR text were scanned for credential shapes and manually
reviewed for customer-neutral content. No private token list was
supplied or recorded.
2026-10-06 09:44:51 -07:00
yige 362f800bd2 feat(mail-operations): 补充标记为垃圾邮件 / 不是垃圾邮件接口(1.1.0) (#208)
## 变更 / Changes

mail-operations 1.0.6 → 1.1.0:补充客户端新增的「标记为垃圾邮件 / 不是垃圾邮件」接口。
Adds the client's new mark-as-junk / not-junk endpoints to
mail-operations (1.0.6 → 1.1.0).

- 「单封邮件操作」表新增两行:Gmail、IMAP 用 `POST …/{id}/spam`、`…/not-spam`,Outlook 用
`POST /outlook/message/spam?id=`、`…/not-spam?id=`。
  Two rows in the single-message table.
- 补充使用说明:返回 `result: {id, folder}`;Outlook、IMAP 移动后 `id` 会变;IMAP
没有垃圾邮件文件夹时返回 409
`imap_spam_folder_not_found`,不要重试;「不是垃圾邮件」一次一封;移回收件箱不触发规则。
Usage notes: new id after Outlook/IMAP moves, 409 when an IMAP account
has no junk folder, Not junk one at a time, no rule re-trigger.
- `market.required_client_version` 与 sidecar 的
`compatibility.requiredClientVersion` 同步改为
`10.0.178`。内置技能同步会按它拦截,旧客户端继续使用 1.0.6,不会拿到调用后返回 404 的接口说明。
  Client gate raised to 10.0.178 so older clients keep 1.0.6.
- 中文是源语言;英文译文(`translated_by: human`)已人工同步,`source_hash` 用
`translate.py` 的 `compute_source_hash` 重新计算。
zh-CN source and human en-US translation updated together; `source_hash`
recomputed with the repository's own function.

## 合并时机 / Merge timing

客户端实现在 desirecore/desirecore#4205,它依赖 desirecore/desirecore#4195。**请在
#4205 合入、确认随 10.0.178 发布之后再合并本 PR。** 如果实际发布的版本号不是 10.0.178,先把两处
`required_client_version` 改成实际版本再合并。合并后,客户端仓库需要运行 `npm run sync-market`
刷新内置的 `market.zip`。

The client side is desirecore/desirecore#4205 (depends on #4195). Merge
this after #4205 lands and ships in 10.0.178; adjust both version gates
if the release number differs. Afterwards regenerate the client's
bundled `market.zip` with `npm run sync-market`.

## 校验 / Checks

- `validate-i18n.py`:0 error,123 warning(与改动前相同;mail-operations 的两条
license / review evidence 警告原来就有)。
- `validate_catalog_metadata.py --require-complete`:0 error。
- `translate.py --check skills/mail-operations`:en-US 为
human-locked,与源一致。
-
公开信息检查:改动内容只有通用的接口说明,不含任何租户、客户或合作方信息。**未用私有敏感词清单做全量扫描**:本次没有拿到这份清单,合并前请维护者补跑一次。
Public-information review: generic API text only. The private-token scan
was not run because the token list was not available; please run it
before merging.
2026-10-06 13:22:17 +08:00
yige 26a3a4a82a fix: 修复上游健康巡检并同步已审查的市场引用 (#207)
Upstream health checks could select a different branch ending in `main`,
index internal skills or lowercase reference documents, treat a valid
pinned path as broken after an upstream move, and close the tracking
issue while unpinned or unknown entries remained. Resolve exact refs and
tracked filenames, compare the installed snapshot, and drive issue
decisions from structured results.

Refresh 26 reviewed pointers, pin DingTalk and Matt Pocock collections,
remove the deleted merge-conflict skill, and add the six new public
children with reviewed translations. Synchronize sidecars, observed
release facts, license evidence and external dependency disclosures.
Identical-tree Agent pins and their versions remain unchanged. The
per-entry review is recorded in
`docs/upstream-health-189-remediation.md`.

Validation: 99 unit tests pass; all nine pinned collections reproduce;
catalog/i18n and translation-freshness checks pass; online health checks
all 41 external entries with zero broken, actionable or unknown results.
Existing catalog warnings decrease from 123 to 105 with no new warning
groups. Python/workflow shell syntax and whitespace checks pass.

Closes #189.
2026-10-05 23:13:13 +08:00
yige 0dcf2aed3b feat(market): 启用团队本地化说明与原始版本
## 中文

启用两支审查团队的中英文完整介绍与隐私说明,保留微信支付上游原始版本 `1.0`,市场版本更新为 `1.5.9`。

解决标书介绍与最新 main 的冲突,保留成员默认收纳说明和用户选择优先的行为。同步条目与 canonical 目录的本地化描述,补齐模型服务配置、可用性、处理授权、条款与费用责任,以及前提不满足时停止相关外部调用的规则。

标书团队 `0.2.3` 引用已合并的 [上游 #7](https://github.com/desirecore-agent/biao-shu-lian-he-shen-cha/pull/7),合同团队 `0.1.40` 引用已合并的 [上游 #51](https://github.com/desirecore-agent/contract-review-team/pull/51)。source、provenance 与 reviewedRef 对齐;成员版本、头像与 `requiredClientVersion: 10.0.178` 保持一致。

本地化字段和原始版本格式所依赖的 desirecore/desirecore#3183 已包含于正式 [v10.0.177](https://github.com/desirecore/desirecore/releases/tag/v10.0.177)。团队自身的 10.0.178 安装要求继续有效。Schema 保持闭集,并明确记录两个分支的本地扩展来源。

验证:84 个市场单元测试通过;完整目录与 i18n、翻译及生成合集新鲜度检查通过,0 错误、123 个既有告警。新增测试覆盖两种 Schema 分支的字段边界和未知属性拒绝。上游静态检查与 11 项收集器回归通过;18 次真实模型回合包含 15 个前提缺失的停止案例和 3 个全部前提确认的正向案例。模型回合验证请求意图和停止信号,未执行完整 Agent Service、市场安装、真实合同或 DOCX 验收。

此前审查意见已处理;Copilot 账户审查额度用尽,最终改动采用人工复核,并遵循仓库已有的检查门禁。

## English

Enable localized full descriptions and privacy disclosures for both review teams, preserve WeChat Pay's original release identifier `1.0`, and advance the Market to `1.5.9`.

Resolve the tender-description conflict against current main while retaining nested member display and user preference precedence. Align entry and canonical localized descriptions, disclose model-service prerequisites and operator responsibilities, and stop affected external calls when prerequisites fail.

Point Tender `0.2.3` and Contract `0.1.40` to the merged revisions from [upstream #7](https://github.com/desirecore-agent/biao-shu-lian-he-shen-cha/pull/7) and [upstream #51](https://github.com/desirecore-agent/contract-review-team/pull/51), keeping source, provenance and reviewed refs aligned. Preserve members, avatars and the separate `10.0.178` installation requirement. The catalog-format dependency shipped in stable v10.0.177; the closed schema documents its deliberate local i18n extension.

Validation: 84 Market unit tests and full catalog/i18n, translation and collection freshness checks pass; zero errors and 123 existing warnings. Upstream static checks and 11 collector regressions pass. Eighteen live model turns include 15 blocked prerequisite cases and three positive controls with all prerequisites confirmed. These turns check request intent and stopping signals; full Agent Service integration, marketplace installation, real-contract acceptance and DOCX acceptance were not performed.

Earlier review findings are addressed. Copilot's account quota is exhausted, so final changes received manual review under the repository's existing check policy.
2026-10-04 07:20:32 -07:00
yige a7411ab07c fix(web-access): 开发者工具类动作指向 BrowserDevtools,兼容拆分前的客户端(3.4.5) (#206)
desirecore/desirecore#3899 把 BrowserAct 的 21 个开发者工具类动作拆到独立工具 BrowserDevtools,它不随本技能注入。技能在工具表后说明:需要时先 DiscoverTools(query="select:BrowserDevtools") 加载,参数与 BrowserAct 相同;查不到说明客户端早于拆分,同样的 action 与参数在 BrowserAct 上调用。写法不依赖客户端版本,所以不设 required_client_version,也不把 BrowserDevtools 加进 provides.tools。

references/browser-tools.md 新增 BrowserDevtools 一节,cdp.raw 的已知边界、错误处理与调用链路同步更新。技能版本 3.4.5,sidecar 的 release.version 与 catalogUpdatedAt 同步,i18n source_hash 重算。

English: Point web-access's developer-tool actions at BrowserDevtools, the
tool split out of BrowserAct in desirecore/desirecore#3899. The skill loads
it on demand through DiscoverTools and falls back to the same action on
BrowserAct for clients that predate the split, so no client version floor
is needed. Bump to 3.4.5 with synced sidecar metadata and a recomputed i18n
source hash.

验证 / Validation: i18n validation and catalog metadata checks report zero
errors (existing repository warnings remain); translation freshness check
passes.
2026-10-03 23:27:59 -07:00
yige 9bd9f6dfdb feat(market): 更新团队发布指针与兼容门槛 (#205)
更新标书联合审查与合同审查团队的已审核发布指针,分别对应 0.2.2 和 0.1.39,并补充成员默认收纳、用户显示偏好优先的说明。

两条 entry 与目录元数据统一要求 DesireCore 10.0.178 或更新且支持 `team.json.memberDisplay`
的客户端。目录可提前发布;10.0.177(包括仍标为该版本的开发构建)会在市场安装前提示升级。该版本下限不表示兼容客户端已经发布。

同时将 Market 版本提升到 1.5.8,更新目录日期及两个 Agent
管理技能的目录更新时间。成员名册、成员锁版本和头像映射保持与上游发布一致。

验证:完整目录和 i18n 校验零错误、无新增警告;翻译新鲜度检查通过;最新团队配置通过当前 schema 校验,旧版 schema
拒绝该字段;安装版本门控确认拦截 10.0.177。

English: Update the reviewed Tender Review Team and Contract Review Team
pointers to 0.2.2 and 0.1.39. Document the nested member display default
and explicit user preferences. Set the client installation floor to
10.0.178 with memberDisplay support so older clients receive an upgrade
notice before importing incompatible manifests. This floor does not
claim that a compatible release is already available. Bump the catalog
to 1.5.8 and correct catalog timestamps. Catalog, localization,
source-manifest and version-gate checks pass with no new warnings.
2026-10-03 06:34:53 -07:00
yige bdda7aba89 feat: document asynchronous avatars for created agents (#204)
创建和更新智能体的中英文技能现在说明自动异步头像:默认透明真人,显式外貌/风格/背景要求优先;用户图片优先,删除或关闭可取消任务。旧客户端按实际工具
Schema 使用,图像服务条款、额度与费用明确披露。

The bilingual creation/update skills document automatic asynchronous
avatars, user customization, image precedence, cancellation,
older-client schema detection, and image-provider prerequisites and
costs.

验证 / Validation: focused i18n validation and translation freshness
passed; catalog validation has zero errors (existing repository warnings
remain).
2026-10-03 04:19:19 -07:00
yige 7ce79c5cc9 feat: 为两个市场团队及全部成员发布透明头像 (#203)
## Summary

Publish transparent portraits for both marketplace teams and all 11
roster members. Team cards use the supervisor portrait; a separate
`member-avatars.v1.json` sidecar supplies member images without changing
the strict `entry.json` member contract accepted by older clients. The
two catalog pointers now reference the merged team releases and their
updated member locks.

为市场中的两个团队和全部 11 位成员发布透明人像。团队卡片复用组长形象,成员图片由独立 sidecar
提供,旧客户端仍可读取原有团队条目。团队指针更新至已合并的团队版本与成员锁文件。

## Validation

- Catalog metadata validation: 0 errors (123 existing warnings)
- i18n validation: 0 errors (123 existing warnings)
- Translation freshness: passed
- Image assets: all 11 member portraits and 2 team portraits are
transparent WebP files
2026-09-30 18:13:27 +08:00
yige 81aa0cf450 Add transparent portrait avatars for market digital employees (#202)
The catalog previously showed opaque icons or text fallbacks for the
seven digital employees, and source-pointer installs could still get
different avatars. This updates every catalog card to a 512×512
transparent portrait, bumps the listed releases, and pins the six source
repositories to commits that include the matching AgentFS avatar.

Validation: `validate_catalog_metadata.py --require-complete` (0
errors), `validate-i18n.py` (0 errors), and `translate.py --check`. All
seven WebP files have an alpha channel with fully transparent pixels and
are below 50 KB each.
2026-09-30 15:53:13 +08:00
yige daa95424e7 chore(invoice-organizer): 1.1.1 —— pin 到内容仓库合并提交 (#201)
三处 ref 改为内容仓库 9dd9af4b(desirecore-agent/invoice-organizer#8),latestVersion 与 release.version 改为 1.1.1。
2026-09-30 10:27:09 +08:00
yige 4804ce364c chore(invoice-organizer): 1.1.0 —— pin 到内容仓库合并提交 (#200)
三处 ref 改为内容仓库 3e5a530f(desirecore-agent/invoice-organizer#7),latestVersion 与 release.version 改为 1.1.0。
2026-09-30 09:55:26 +08:00
yige e3d3fe2eda chore(invoice-organizer): 1.0.9 —— pin 到内容仓库合并提交 (#199)
三处 ref 改为内容仓库 fc02a348(desirecore-agent/invoice-organizer#6),latestVersion 与 release.version 改为 1.0.9。
2026-09-30 09:29:36 +08:00
yige d176e84a96 chore(invoice-organizer): 1.0.8 —— pin 到内容仓库合并提交 (#198)
三处 ref 改为内容仓库 0796408b(desirecore-agent/invoice-organizer#5),latestVersion 与 release.version 改为 1.0.8。
2026-09-29 23:24:46 +08:00
yige 2ef4f9ada3 chore(invoice-organizer): 1.0.7 —— pin 到内容仓库合并提交 (#197)
三处 ref pin 到
[desirecore-agent/invoice-organizer#4](https://github.com/desirecore-agent/invoice-organizer/pull/4)
的合并提交 `27c1896036e9a8988aa4d112ab7092d4dee75cda`,`latestVersion` /
`release.version` 升到 1.0.7。

Pins the invoice-organizer pointer entry to content commit `27c1896`
(1.0.7).

1.0.7 修正 1.0.6 真机验证暴露的三个行为问题:换用目录只 `add` 不设主目录导致 Plan
与增量自动化写进旧目录;模型中途自行收工;自写脚本直连邮件服务打错端口。内容仓库 PR 经独立子代理两轮审查,结论可合并。校验器 0
error。

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-09-29 08:09:39 -04:00
yige 40bd2dc1cf chore(invoice-organizer): 1.0.6 —— pin 到内容仓库合并提交 (#196)
## 改动 / Changes

- `entry.json` 与 `catalog-metadata.v1.json` 的三处 ref pin 到
[desirecore-agent/invoice-organizer#3](https://github.com/desirecore-agent/invoice-organizer/pull/3)
的合并提交 `53b8a745bd008ab8be4833e28724db6b0801976f`
- `latestVersion` / `release.version` 1.0.5 → 1.0.6

Pins the invoice-organizer pointer entry to content commit `53b8a74`
(1.0.6).

## 1.0.6 内容 / What's in 1.0.6

1.0.5 在开发实例从零整理真实邮箱只入账 51 张(应约 67 张),逐封对照本地缓存后定位到:列候选直接拿
`messages/fetch`
的翻页结果(按序号窗口取会漏一类发票邮件)、按信头日期停翻、下载前按文件名预筛掉航空电子行程单、每封只下一个载体。1.0.6:

- 列候选改为两步:先把本地缓存补齐到覆盖整个时间段(Gmail 用放宽一天的服务端日期查询翻到底;IMAP 收件箱 / Outlook
每页后重数「晚于起始日期的邮件数」G,`offset` 达到 G 之后连续两页不增长才停;IMAP 自定义文件夹不走缓存),再按日期搜缓存、按
`total` 翻到底
- 候选邮件的附件全部下载,不按文件名预判、不挑载体;判定阶梯新增否定条挡住行程明细
- 旧客户端(列表响应只剩「省略 1 行」)逐级降 `limit`,读不了的记入待处理;失败计数与「判为非发票」分开
- 内容仓库 PR 经独立子代理五轮审查(高 5 / 中 12 / 低若干,全部处理),第五轮结论可合并

## 验证 / Verification

- `validate_catalog_metadata.py --require-complete`:0 error
- `agent.json` 用 dev 的 `validateAgentConfig` 实跑 `success: true`

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-09-29 07:21:27 -04:00
yige 149174e127 chore(invoice-organizer): 1.0.5 —— pin 到内容仓库合并提交 (#195)
## 改动 / Changes

- `entry.json` 与 `catalog-metadata.v1.json` 的三处 ref pin 到
[desirecore-agent/invoice-organizer#2](https://github.com/desirecore-agent/invoice-organizer/pull/2)
的合并提交 `b2e6d69f0df2345e282ceea424afce0b9345d97f`
- `latestVersion` / `release.version` 1.0.4 → 1.0.5
- `compatibility.requirements` 的 runtime 一条补上 XML 解析与系统自带解压工具(unzip /
python3 / bsdtar),与 Agent 的 USAGE 口径一致

Pins the invoice-organizer pointer entry to content commit `b2e6d69`
(1.0.5) and syncs the runtime requirement text with the Agent's USAGE.

## 1.0.5 内容 / What's in 1.0.5

- 收下 `.zip` / `.xml` 附件:12306 把铁路电子客票打成 zip 发,此前整封邮件被跳过(真实邮箱实测漏 8 张);zip
只经技能自带的 `unpack-zip.sh` 解包,附件名与条目名不进命令行,四种模式 × 9
个用例(含命令注入、输出伪造、符号链接、加密、压缩炸弹、GBK 名、macOS 元数据)实测
- 数电票 XML 作为优先级最高的载体;「电子发票(铁路电子客票)」按 8 张真票重写并新增 D 族键表
- 识别红字发票(`InIssuType`、备注、`RedEInvoice`、负数合计),台账成对标出已红冲 / 部分红冲
- 下载失败与解不开的内层压缩包落盘到 `ledger.json#unprocessed`;附件逐个下载;不把整理流程委派给别的 Agent
- 内容仓库 PR 经独立子代理三轮审查(高 1 / 中 9 / 低若干,全部处理),第三轮结论「可以合并」

## 验证 / Verification

- `validate_catalog_metadata.py --require-complete`:0 error(agents=7)
- 新增文本无真实邮箱、税号、发票号码或公司名

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-09-29 05:40:51 -04:00
yige 74184056c4 fix(mail-operations): 按现行邮件服务路由修正技能文档(1.0.6) (#194)
## 背景 / Background

发票整理 Agent 在隔离开发实例里真机整理 QQ 邮箱时,按内置技能 `mail-operations` 的写法调用 IMAP
附件下载,拿到 400 `Missing required parameters`:技能写的请求体是 `{email, uid, folder,
partId}`,而 `POST /imap/attachment` 从 2026-03 创建起就只认 `{email, messageId,
attachmentId, folder?}`。顺着这一处,对照 desirecore origin/dev(`c1e2c5ac0`)的
`lib/mail-service/` 与 `MailOperations` 工具把整份技能逐条核对了一遍。

While a real-mailbox run of the invoice agent was downloading QQ Mail
attachments, the builtin `mail-operations` skill's IMAP attachment body
(`{email, uid, folder, partId}`) returned 400; the route has always
taken `{email, messageId, attachmentId, folder?}`. This PR re-audits the
whole skill against the current mail service routes.

## 改动 / Changes

共修正 27 处不一致:会直接导致调用失败 9 处、会误导能力判断 10 处、措辞 8 处。主要有:

- **调用入口**:改为 `MailOperations`(path 带 `/api`,capability
由工具注入);原文的固定端口、「无需认证」、`curl -k` 都不成立
- **附件**:body 字段更正;必须带 `save_to` 落盘(不带会被工具拒绝返回),回执给出路径、字节数、SHA-256
- **参数位置**:`messages/fetch`、`/sync`、IMAP 草稿发送的 `email`(以及 `/sync` 的
`provider`)放查询串;IMAP 草稿收件人是逗号分隔的 `to` / `cc`,更新草稿会换成新 uid
- **folder**:IMAP 单封操作要用 `GET /imap/folders` 返回的服务器路径,列表里的归一化值会 500
- **规则**:operator 是 `matches_regex`(未知 operator 恒为 false
且创建时不校验);`archive` / `move_to_folder` / `forward_to` / `star` 是空操作
- **搜索**:三个 provider 都支持,只查本地缓存、`q` 只匹配主题;Gmail 全文检索改用 `messages/fetch`
的 `query`
- **IMAP 仅收信账户**:`allowUnverifiedSmtp`、`smtp_verification_failed`、409
`smtp_unverified`、`verify-smtp`(失败也返回 200)
- **离线队列**:不会自动入队或处理,只改本地,`processed` 计数不代表执行
- 响应字段名(`toRecipients`、`bodyPreview` 等)、同步状态文件、`/imap/test` 返回形态等措辞修正
- 版本 1.0.6;新增 `market.required_client_version: 10.0.148` 与 sidecar
`compatibility.requiredClientVersion`——`MailOperations`(10.0.95)、`save_to`
与 Outlook/IMAP search(10.0.146)、`imap:<uid>` / fetch `offset` / folder
归一化(10.0.148)分版本上线,旧客户端按新文档操作会静默失败,门控让它们保留旧版

## 验证 / Verification

- 写补丁与审查由两个独立子代理完成:审查方对 9 处致命项全部、另外 13 处抽查逐条对照代码行,均成立;审查意见(最低客户端版本、IMAP
更新草稿换 uid、`/sync` 参数、Gmail 远程检索、`verify-smtp` 返回形态、离线队列计数、响应示例矛盾)已全部采纳
- 各项最低版本用 `git tag --contains` 对照发布 tag 复核
- `translate.py --check`:en-US human-locked 且 hash 新鲜(`source_hash` 按
`compute_source_hash` 重算)
- `validate-i18n`:0 error,123 warning(与 main 基线相同)
- `validate_catalog_metadata --require-complete`:0 error
- `git diff --check` 通过;新增行只有 `example.com` 占位地址,无真实邮箱、姓名、公司名或长数字编号

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-09-29 05:07:39 -04:00
yige d2125e5b2a fix: 修正 video-use 根目录来源路径 (#193)
## Summary / 摘要

- Omit `source.path` and `provenance.content.path` for the upstream
repository root. The DesireCore resolver treats an absent path as the
root and rejects `.` as an unsafe path segment.
- Keep the item `listing-only` until ref-bound governance review
evidence and platform/setup validation are complete.

- 上游来源指向仓库根目录时省略 `source.path` 和 `provenance.content.path`。DesireCore 在
path 缺省时按仓库根目录解析,并会拒绝 `.` 路径段。
- 在补齐固定版本的治理审查证据并完成平台/安装验证前,继续将条目标记为仅供发现。

## Validation / 校验

- `uv run scripts/i18n/validate-i18n.py skills/video-use` — passed with
0 errors (existing catalog warnings remain).
- `uv run scripts/catalog/validate_catalog_metadata.py
--require-complete` — passed with 0 errors.
- `uv run scripts/i18n/translate.py --check` — passed.
- `git diff --check` — passed.
2026-09-29 04:56:49 -04:00
yige 0e279fd811 feat: 添加 video-use 视频剪辑技能入口 (#192)
## Summary / 摘要

- Add a pinned Market pointer for the upstream `browser-use/video-use`
skill, with English and Chinese discovery text.
- Add catalog metadata for its MIT license, source provenance,
Python/ffmpeg prerequisites, and ElevenLabs Scribe API key and
usage-cost requirement.
- Keep the listing discovery-only until installation and governance
review are completed.
- Add the entry to Market statistics. No upstream skill code is
vendored.

- 新增固定到上游提交的 `browser-use/video-use` 市场入口及中英文介绍。
- 补充 MIT 许可、来源、Python/ffmpeg 前置条件,以及 ElevenLabs Scribe 密钥和可能产生的 API 费用。
- 完成安装与治理审查前,条目标记为仅供发现。
- 更新 Market 条目统计,不复制上游技能代码。

## Validation / 校验

- `uv run scripts/i18n/validate-i18n.py skills/video-use` — passed with
0 errors (existing catalog warnings remain).
- `uv run scripts/catalog/validate_catalog_metadata.py
--require-complete` — passed with 0 errors.
- `uv run scripts/i18n/translate.py --check` — passed.
- `git diff --check` — passed.
2026-09-29 04:19:49 -04:00
yige 0d0e745ef0 chore(invoice-organizer): 1.0.4 —— pin 到内容仓库合并提交 (#191)
发票整理助手内容仓库 desirecore-agent/invoice-organizer#1 已合并为 553ce87。
三处 ref 同步 pin 到该提交;latestVersion 与 release.version 升到 1.0.4;
reviewedAt 两处与各时间戳更新到 2026-09-29,保持结构化形态。
校验器 0 error,agents=7。

1.0.4:同票多载体先读 OFD、补两族 OFD 标引键名、航空电子行程单按计税依据拆分
(民航发展基金记入新增的 otherCharges)、必印字段为空不算通过且多轮只补全不清空。
2026-09-29 04:05:13 -04: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 5dcf5c2087 docs: split and expand English and Chinese market READMEs (#183)
Split the market documentation into synchronized English and Simplified Chinese READMEs. Expand getting started, catalog contracts, localization, contribution and validation guidance, security boundaries, and licensing. Replace stale inventory snapshots with authoritative references.
2026-09-19 21:20:35 +08:00
yige eb4aa627c6 docs: 同步 README Agent 与 Team 统计 (#182)
## 概述

同步 README 市场摘要与实际目录及 `manifest.json`:

- Agent:5 → 7,补充 `mimo-model-quota-monitor`、`tender-review-assistant`
- Team:1 → 2,补充 `biao-shu-lian-he-shen-cha`
- 将单数 `Team` 调整为复数 `Teams`

## 验证

- `uv run --quiet scripts/catalog/test_validate_catalog_metadata.py`(47
tests passed)
- `uv run --quiet scripts/catalog/validate_catalog_metadata.py
--require-complete`(0 errors)
- README 摘要名称与目录逐项比对通过
2026-09-19 19:43:29 +08:00
yigeandyige afa4be0aaa Pin tender-review team evidence-delivery release (#162)
Update the published team pointer to the reviewed team revision that
locks Lead and Evidence 0.1.1. Preview wording remains until
clean-install end-to-end acceptance is complete.

---------

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-19 19:16:49 +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 0897028856 release: contract review team 0.1.36
## Why\nPublish the intake-gate scope fix through the official market
pointer.\n\n## Changes\n- point team entry and catalog metadata to team
release 0.1.36\n- update contract-intake member to 1.0.6\n- preserve
tracked DOCX, parallel risk/jurisdiction, and human-review
disclosures\n\n## Validation\n- validate_catalog_metadata.py
--require-complete (0 errors, pre-existing warnings only)\n- python -m
unittest scripts.catalog.test_validate_catalog_metadata (47 passed)\n-
git diff --check
2026-09-15 11:58:29 -04:00
yige 0008b05376 release: contract review team 0.1.35
All release checks passed; publishes the refactored O0-O5 contract review team.
2026-09-15 10:48:05 -04:00
yige b5b1e03c5f release: contract review team 0.1.34 (#178)
## Why
The published contract review team must reconcile redline delivery state
after `ExportRedlineDocument` succeeds.

## What changed
- publish team 0.1.34 at upstream ref 92cb41f
- update Lead pointer to 1.0.20 at cf11ca6
- keep source-pointer-only distribution and existing governance metadata

## Validation
- uv run scripts/i18n/validate-i18n.py
- uv run scripts/catalog/test_validate_catalog_metadata.py (47 passed)
- uv run scripts/catalog/validate_catalog_metadata.py (0 errors;
existing warnings)
- uv run scripts/i18n/translate.py --check
2026-09-15 02:24:26 -04:00
yige a34f5a933a chore: publish contract review team 0.1.33 (#177)
## Why
Publish the lead tool-permission fix so newly installed contract-review
teams can pass `ExportRedlineDocument` through the orchestrator to the
independent reviewer.

## What changed
- Point the official team entry at team commit
`948f61c6c2d9ea101023e66c6a8261288d2cfab7`.
- Publish version 0.1.33 and lead member version 1.0.19.

## Validation
- Team source `npm run check:gates` passed before this market update.
- Entry diff reviewed and source ref is a 40-character commit SHA.
2026-09-15 01:35:15 -04:00
yige cd3c8d759b chore: publish contract review team 0.1.32
## Why
Publish the corrected contract review team release after the newcomer
run found stale coverage matrix state.

## Change
- Team 0.1.32 points to team merge
`821f999b087c9a740b3b209963f5f123a3cc694d`.
- Lead member 1.0.18 is listed in the catalog.

## Validation
- `git diff --check`
2026-09-15 10:25:23 +08:00
yige 1e7ac2034b release: publish contract review team 0.1.31
Publish contract review team 0.1.31.
2026-09-14 21:05:39 -04:00
yige 2b69efe512 release: publish contract review team 0.1.30
Publish team lock and tracked redline reporter delivery.
2026-09-14 20:07:53 -04:00
yige e0f9ec90fa publish: contract review team 0.1.29
Checks passed; Copilot produced no file comments after rerun. Published the KPI-driven Lead update.
2026-09-14 18:14:40 -04:00
yige 94f5b34d6c publish: contract review team 0.1.28 (#172)
This release publishes contract-review-team 0.1.28 from immutable team
commit f088da9eb61d084470e8ede578e73c8cd65b57cb.

Changes:
- Lock Lead 1.0.16 with bounded O0→O4 orchestration and receipt/matrix
synchronization.
- Lock jurisdiction-auditor 1.3.0 and risk-scanner 1.1.0 with one-turn
bounded evidence loops.
- Preserve existing intake, clause-extractor 1.1.0, and reporter
members.
- Update both entry and catalog metadata to the same full team commit
SHA.

Validation: contract-review-team npm run check:gates passes; market
validate and translate checks pass on this PR.
2026-09-14 17:22:01 -04:00
yige 7d0d047f3e Publish contract review team 0.1.27 (#171)
## Why

The contract review team now uses the merged `clause-extractor` 1.1.0
bounded checkpoint workflow. The official market entry still pointed at
team release 0.1.26 and clause-extractor 1.0.6.

## Change

- Publish team version 0.1.27.
- Point the source ref to merged team commit
`cb25d73a0dfbfc319df6eac2d254b3dbcc790e6e`.
- Update the member projection to clause-extractor 1.1.0.
2026-09-14 15:50:58 -04:00
yige b72610a7b6 feat(agents): 新增 MiMo 模型余量检测智能体 / add MiMo model quota monitor agent (#168)
## 变更说明 / What this changes

新增官方 Agent 条目「MiMo 模型余量检测」,以不可变 source pointer 形态收录,内容仓库为
`desirecore-agent/mimo-model-quota-monitor`。

- `agents/mimo-model-quota-monitor/entry.json` 指向已发布提交
`911c0a226346a8157f07d5218207f16e32ea82e0`。
-
`agents/mimo-model-quota-monitor/catalog-metadata.v1.json`:provenance、MIT
许可证证据、合规审查(`reviewedRef` 与内容 ref 一致),`availability: installable`。
- `requiredClientVersion: 10.0.156`:依赖该版本起的调度完成判据、调度权限上限与内嵌浏览器操作记录修复。
- `manifest.json`:Agent 计数与更新日期。

Agent 做什么:按计划(默认每小时)读取小米 MiMo 开放平台 Token Plan 余量,结构化写入 `latest.json`
与每轮一份历史文件,在余量偏低、消耗过快、即将重置或登录失效时提醒。只读、不执行命令;遇到验证码或短信验证时停下请人处理;登录凭据只经
DesireCore 加密凭据存储的占位符注入。

Adds the official "MiMo model quota monitor" Agent as an immutable
source pointer to `desirecore-agent/mimo-model-quota-monitor` at commit
`911c0a226346a8157f07d5218207f16e32ea82e0`, with a bilingual catalog
sidecar (provenance, MIT license evidence, compliance review with
`reviewedRef` equal to the content ref, `availability: installable`) and
`requiredClientVersion: 10.0.156`. The Agent reads the Xiaomi MiMo Token
Plan quota on a schedule, writes structured results, and alerts on low
quota, fast burn, upcoming reset or an expired login. It is read-only,
runs no shell commands, stops for CAPTCHA or SMS verification, and
receives credentials only through DesireCore's encrypted credential
placeholders.

## 校验 / Validation

- `uv run --quiet scripts/catalog/validate_catalog_metadata.py
--require-complete`:0 error(既有条目的 warning 未变)。
- 条目目录内所有 40
位十六进制值只有一个,即上面的提交号(`source.ref`、`provenance.content.ref`、`governance.compliance.reviewedRef`
三处一致)。
- 内容仓库:`agent.json` 通过 agentConfigSchema;`SKILL.md` frontmatter 通过技能
Schema;`HEARTBEAT.md` 被判为实质为空(心跳不会白调模型);结果与账号 Schema 用样例和反例校验,共 19 项通过。
- 内容仓库共两个提交(首版 + SOP 失败分支表更新),不含账号标识、手机号或凭据。Git 提交元数据中的维护者邮箱是 DesireCore
组织所有公开提交一致使用的公开身份邮箱。

`validate_catalog_metadata.py --require-complete` reports 0 errors; the
entry directory contains exactly one 40-hex value, the pinned commit, in
all three places; the content repository passes agent config, skill
frontmatter, heartbeat and result/account schema checks (19 checks) and
has two commits (initial release plus the SOP failure-branch update)
without account identifiers or credentials.

## 真机验证 / Real-device verification

在 DesireCore dev 构建(10.0.156 之后的 dev,含
#2863/#2865/#2869)上安装本提交的内容,智能路由旗舰档,两个账号各一个每小时定时巡检,连续观察四轮:

| 轮次 | 结果 | 说明 |
|---|---|---|
| 账号 2 · 20:30 | ok | 经接口取到数据,`latest.json` 与本轮 history 文件通过
`result.schema.json`,history 先写、关闭会话、`latest.json` 最后写 |
| 账号 1 · 21:00 | blocked(`platform_unavailable`) |
本机网络间歇断连期间内置浏览器开不了会话;如实落盘,未新建浏览器环境、未反复填表,首轮不提醒 |
| 账号 2 · 21:30 | 失败 | 同一次断网里浏览器开不了会话,且 AI 审批上游持续 502,写 `latest.json`
被拒;平台按完成判据续跑一次后记为失败(已写入使用说明「已知限制」) |
| 账号 1 · 22:00 | blocked,已提醒 | 连续第二轮 `platform_unavailable`,按告警规则
`notify=true`、告警项 `blocked:platform_unavailable` |

四轮都没有执行任何命令,没有非预期工具调用,没有写出 `mimo-quota/` 与平台 Plan 目录以外的文件;每轮的结果文件都通过
Schema 校验。浏览器宿主把导航失败统一报成 `BROWSER_HOST_EXECUTION_FAILED` 的问题已在主仓 #2871
修复(10.0.157 起提供 `BROWSER_NAVIGATION_*` 闭集错误码),本提交的 SOP
失败分支表已随之更新:网络类失败按码重试一次、页面跳转顶替(ABORTED)先看停留页再分流、越出授权范围(ORIGIN_NOT_GRANTED
/ SCHEME_DENIED)不新建 space。旧客户端上这些码不会出现,条目行为退回原有兜底,不受影响。

Installed this commit's content on a DesireCore dev build (dev after
10.0.156, including #2863/#2865/#2869) with smart routing at the
flagship tier and one hourly schedule per account, and observed four
runs. Account 2 at 20:30 read the data through the API; `latest.json`
and the per-run history file passed `result.schema.json`, with history
written first, the session closed, and `latest.json` written last.
During a local network outage, account 1 at 21:00 could not open a
browser session and recorded `blocked` / `platform_unavailable` without
creating environments or retrying the login, and without notifying on
the first round; account 2 at 21:30 hit the same outage plus sustained
502s from the AI approval upstream, so its `latest.json` write was
denied and the run was recorded as failed after one platform
continuation (now listed under known limitations); account 1 at 22:00
was the second consecutive `platform_unavailable` and notified with
`blocked:platform_unavailable`. No run executed a command, called an
unexpected tool, or wrote outside `mimo-quota/` and the platform Plan
directory, and every result file passed schema validation. The browser
host reporting all navigation failures as
`BROWSER_HOST_EXECUTION_FAILED` was fixed in the main repository in
#2871 (closed-set `BROWSER_NAVIGATION_*` codes from 10.0.157), and the
SOP in this commit was updated accordingly: network-class failures retry
once by code, a navigation replaced by a page jump (ABORTED) inspects
the landed page before branching, and out-of-grant targets
(ORIGIN_NOT_GRANTED / SCHEME_DENIED) never create a new space. On older
clients these codes simply do not appear and the entry falls back to the
previous behavior.
2026-09-12 16:13:34 -04:00
yigeandyige f58ef12edf Publish preparation guidance correction 0.2.1 (#170)
Pin the reviewed Entry patch prompted by a real Qwen consultation:
distinguish full tender documents from a notice/invitation and describe
useful outcomes without defect-free assurance. Catalog validation
passed; team member pins are unchanged.

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-12 14:50:05 -04:00
yigeandyige c03cc5da49 Publish outcome-quality tender team 0.2.0 (#169)
Ordinary tender review was blocked by mandatory TaskSpec preparation,
metadata preflight, fixed report packages and runtime receipts, while
the business quality of delivered opinions remained insufficiently
explicit.

This release accepts clear natural-language assignments and defines
concrete goals, good and bad outcomes, evidence expectations and focused
corrections for each role. Chat, tables and files are valid
deliverables. Specialist calculations and legacy structured-export
validators remain available for their specific purposes. It removes
obsolete business input contracts and updates the corresponding
bilingual guides.

Validation was performed after the full multi-repository modification:
JSON/configuration and document-link checks, targeted calculation
regressions, independent content review, and eight synthetic
paper-evaluation scenarios (8/8 after fixing informational-only entry
handling and residual visual preflight/human gates). Paper evaluation is
not a live DesireCore/Qwen or real-tender accuracy result. No real bid
package was tested.

---------

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-12 14:36:45 -04:00
yigeandyige d18cdbf253 Docs: publish tender project guide release (#164)
Advance the team source pointer and matching catalog provenance/review
reference to the merged bilingual project-guide commit.

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-11 05:35:25 -04:00
yigeandyige 5b6ea80f6b Pin tender-review team evidence-delivery release (#163)
Update the published team pointer to the reviewed team revision that
locks Lead and Evidence 0.1.1. Preview wording remains until
clean-install end-to-end acceptance is complete.

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-11 04:59:53 -04:00
yige dabdcc4b99 Publish tender review team and usage docs
Publish the reviewed tender review team pointer, bilingual usage docs, and provenance sidecar after catalog/i18n/Copilot checks pass.
2026-09-10 16:42:52 -04:00
yigeandyige 18f2f2243e feat: add tender review team preview (#160)
## What this changes

Adds the tender-review team and its onboarding entry to the official
Market catalog as an immutable source pointer, plus bilingual catalog
sidecars.

- `teams/biao-shu-lian-he-shen-cha/entry.json` points to the published
team commit `7ee5650b066cdee385288a722b8cbd8e1947d0fe`.
- `agents/tender-review-assistant/entry.json` points to assistant commit
`4b6855d2edb535f81c29847e06145c0da87942d0`.
- Both entries include bilingual descriptions, privacy boundaries and
`requiredClientVersion: 10.0.155`.
- The listing is deliberately `pointer` / preview. It does not claim the
v10.0.155 release is fully green or production-certified; newcomer
qualification remains pending.

## Validation

- `python3 scripts/catalog/validate_catalog_metadata.py --json` — 0
errors (existing catalog warnings unchanged).
- Market entry and both `catalog-metadata.v1.json` sidecars validate
against the current client/catalog schemas.
- Published source repositories and full commit pins were checked before
creating this branch.

---------

Co-authored-by: yige <yige@yigedeMacBook-Neo.local>
2026-09-10 15:45:40 -04:00
e111eb31f8 release: publish contract review team 0.1.26 (#159)
发布合同审查团队 v0.1.26 市场元数据。

团队版本、成员版本、来源提交和审阅引用均锁定至已合并的 Team 提交;发布时间和远端观测时间以可复核 Git 事实更新。

验证:catalog/i18n 校验通过,JSON 与空白检查通过;独立审阅 P0--P3 均为零。

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yi-ge <6657330+yi-ge@users.noreply.github.com>
2026-09-08 07:56:50 -04:00
yige 06929d16d6 release: publish contract review team 0.1.25 (#158)
问题:合同审查 Team 已发布 0.1.25 并锁定统筹官 1.0.13;市场仍指向 0.1.24,新用户无法安装经过推理兼容性修复的版本。

改动:将市场 entry 与 catalog sidecar 更新为 0.1.25,并以 Team 合并提交
0ce23190297d2b5918a91f2053a5ee2a9de264a7 作为唯一发布指针。

验证:JSON、catalog/i18n、镜像字段与公开信息扫描通过;独立 Terra review 通过。全局 collection
检查仍有4个未改外部集合陈旧项,和本发布无关,未将其记为通过。
2026-09-08 03:20:26 -04:00
yige 8d0cedaeeb fix: publish contract review team 0.1.24 (#157)
## Why

The C02 newcomer test exposed a missing-material preflight defect in the
contract-review lead. The corrected team release is already merged as
0.1.24; this PR publishes the exact team ref to the market.

## What changed

- Update the market pointer and catalog sidecar to contract-review-team
0.1.24.
- Pin both metadata surfaces to
`e096a74a482b55266753b3b93e179f9cac2f0ecd`.
- Publish contract-review-lead 1.0.12 in the team roster.

## Validation

- Parsed both market JSON files.
- Verified pointer, provenance, and reviewed refs are identical.
- Verified the remote team `main` ref matches the published pointer.
- Ran the catalog and i18n validators successfully; they reported only
pre-existing catalog warnings outside this team.
- Ran `git diff --check`.

## 中文说明

将市场中的合同审查团队发布指针升级到 0.1.24,并锁定已合并的团队提交。该版本包含统筹官 1.0.12
的无材料零工具咨询修复;entry、sidecar 的来源与审阅提交已一致,市场校验通过。
2026-09-07 23:32:33 -04:00
yige 4940c8a82d 发布合同审查团队 0.1.23
## 中文

### 背景
合同审查团队已发布 0.1.23,锁定 `contract-intake` 1.0.2 的 YAML 安全与解析声明治理修复。市场条目仍指向团队
0.1.22,导致新用户安装不到修复版本。

### 变更
- 市场条目 `latestVersion` 与 metadata release version 更新为 `0.1.23`。
- source、provenance 与 reviewedRef 更新为团队合并提交
`67805f39bae1e76a726fcbeef766c743cc020bc7`。
- 条目成员版本同步 `contract-intake` 1.0.2。
- 更新时间戳更新至本次团队发布。

### 验证
- 市场 i18n 校验:0 errors(既有 129 warnings)。
- catalog metadata 单元测试:47 tests,全部通过。
- collection generator 单元测试:4 tests,全部通过。
- catalog metadata validator:0 errors(既有 warning)。
- translate `--check`:通过。
- `git diff --check` 与凭据扫描:通过。
- `gen-collection-children.py --check` 发现 4 个既有外部 collection
stale(baoyu-skills、larksuite-cli、marketingskills、wecom-cli),本次未修改这些目录。

## English

### Background
Contract Review Team 0.1.23 is released with the `contract-intake` 1.0.2
YAML safety and parser-claim governance fix. The market listing still
pointed to 0.1.22, so new installs would miss the fix.

### Changes
- Update the market entry and metadata release version to `0.1.23`.
- Update source, provenance, and reviewedRef to team merge commit
`67805f39bae1e76a726fcbeef766c743cc020bc7`.
- Sync the entry member version for `contract-intake` to 1.0.2.
- Refresh release timestamps.

### Validation
- Market i18n validation: 0 errors (129 pre-existing warnings).
- Catalog metadata unit tests: 47 passed.
- Collection generator unit tests: 4 passed.
- Catalog metadata validator: 0 errors (pre-existing warnings).
- `translate --check`: passed.
- `git diff --check` and credential scan: passed.
- `gen-collection-children.py --check` reports four pre-existing stale
external collections; none are touched by this change.
2026-09-07 11:18:54 -04:00
yige d46d1a77d3 发布合同审查团队 0.1.22
市场校验、翻译检查与 Copilot review 全部通过。
2026-09-07 09:36:30 -04:00
yige 12a70d4418 release: contract review team 0.1.21
Publish corrected member content hashes.
2026-09-06 21:59:08 -04:00
yige 5934e479fd release: contract review team 0.1.20
Publish market metadata for team 0.1.20.
2026-09-06 21:36:13 -04:00
yige d4952e82f4 release: contract review team 0.1.19
GPT-Reserve review PASS; market validators and Copilot gate passed.
2026-09-06 20:25:50 -04:00
yige 0683e1bf31 release: contract review team 0.1.18 (#151)
## Why
Publish the reviewed contract review team fix that was validated by a
fresh final18 real run. The prior run correctly fail-closed when
reporter artifacts escaped the lead case root and clauses.yaml was not
parseable.

## Changes
- bump marketplace entry/catalog to team 0.1.18
- point source/provenance/governance refs to merged team commit
6aa93bf11a6e37cc9d0444e3335ba953bee0a61f
- expose lead 1.0.10, clause 1.0.5, reporter 1.0.4 member versions
- retain legal disclaimer and source-pointer-only distribution

## Validation
- catalog validator exit 0
- i18n validator exit 0
- targeted JSON/ref assertions
- git diff --check
2026-09-06 19:20:54 -04:00
yige e9c1048a6a release: publish contract review team 0.1.15
Independent GPT-Reserve review passed; targeted validators and ref assertions passed.
2026-09-06 17:37:27 -04:00
yige 3160e703d9 release: publish contract review team 0.1.14
Merged after independent GPT-Reserve review (P0/P1/P2/P3=0) and all market checks passed.
2026-09-06 16:32:55 -04:00
yige be1904d567 release: publish contract review team 0.1.13 (#148)
## 变更

- 更新合同审查团队市场条目至 `0.1.13`。
- `source.ref`、provenance content ref、governance reviewedRef 统一锁定团队合并提交
`91f576d8d5a30984d138752d32cc74929771a213`。
- roster 将 `review-reporter` 更新至 `1.0.2`。
- 对外说明评分回执的完整回读与 `REJECT-SCORECARD-YAML` fail-closed 闸门。

## 验证

- `uv run scripts/catalog/validate_catalog_metadata.py --json`:exit 0,0
errors(保留既有 warnings)。
- `uv run python scripts/catalog/test_validate_catalog_metadata.py`:47
passed。
- `uv run python scripts/i18n/test_validate_i18n.py`:19 passed。
- `uv run python scripts/catalog/test_collection_generator.py`:4 passed。
- entry/catalog JSON、ref/version 一致性断言与 `git diff --check` 通过。
- 团队 PR #26 与 reporter PR #3 已由 GPT-Reserve 独立复审并合并。
2026-09-06 14:50:12 -04:00
yige 74466d1ac9 refactor(invoice-organizer): 迁出为独立仓库,条目转真 pointer / move to standalone repo (#140)
## 背景 / Background

`invoice-organizer` 是 market 里最后一个 inline 形态的第三方 Agent。它的
`provenance.content` 是指向 market 自身的 **self-pointer**(`url=market.git`,
`path=agents/invoice-organizer`)——治理字段已经按 pointer 写,内容却还在 market 里。本 PR
让两者一致。

## 改动 / Changes

内容迁到
**[desirecore-agent/invoice-organizer](https://github.com/desirecore-agent/invoice-organizer)**
@ `5ac1e29`,条目收敛为 3 个文件(`entry.json` + `catalog-metadata.v1.json` +
`assets/avatar.webp`)。

## pointer 形态的三处强制改动

`agent.json` 直接过 `agentConfigSchema`(根级 `additionalProperties:
false`),实测改完 `validateAgentConfig` 返回 `success: true`:

- **剥离 10 个市场字段**:`category` / `tags` / `updatedAt` / `maintainer` /
`installPolicy` / `updatePolicy` / `i18n` / `persona` / `changelog` /
`contentSource`
- **`id` 从 slug 换 UUID**
- **`avatar` 从 `{t,bg,image}` 换 `{char,color}`**:原 `bg` 是 `#34C759 →
#007AFF` 的绿蓝渐变,取起点绿色

## ⚠️ 一个必须补的兜底 / A gap this migration would otherwise open

原条目只有 `USAGE.zh-CN.md` 和 `USAGE.en-US.md`,**没有无后缀版本**。

pointer 形态下这两份都抓不到:

1. `fetchAgentRepoData` 总是抓无后缀 `USAGE.md`;`USAGE.<locale>.md` 的探测列表由
`extractDeclaredLocales` 从**上游 agent.json 的 `i18n.locales`** 得出
2. 而 pointer 的 `agent.json` 不能有 `i18n`——`agentConfigSchema` 顶层无此键且根级
`additionalProperties: false`
3. `readAgentDetailFromPointer` 调
`resolveUsageDocFromFiles(repoData.usage, locale)` 时**不传
localeHints**,回退链只剩 `locale → 无后缀`

不处理的话,使用说明会在详情页**彻底消失**。因此上游新增无后缀 `USAGE.md` 兜底(内容同
`zh-CN`,`source_locale` 就是 zh-CN),两份 locale 版本作为事实源保留。

**代价如实记录**:en-US 用户会从看到英文版降级为看到中文版。根因在平台侧,建议后续补齐
`readAgentDetailFromPointer` 的 locale hints,届时两份 locale 版本自动生效,无需再动条目。

## 准入 / Availability

**维持 `installable`**,证据六项自检全部通过:

```
content.ref == entry.source.ref                 ✅ 5ac1e29d3
compliance.reviewedRef == content.ref           ✅
timestamps.reviewedAt == compliance.reviewedAt  ✅ 2026-09-06
availability                                    ✅ installable
license known + licenseEvidencePath: LICENSE    ✅
provenance 不再指向 market 自身                  ✅
```

`LICENSE` 随内容迁到上游——与 `feishu-orchestrator` 一致,`licenseEvidencePath`
相对的是内容仓库而非条目目录。

## 已安装用户影响 / Impact on existing installs

`timestamps.releasePublishedAt` 是
2026-09-06(今天),实际安装量应为零。`provenance.content.url` 变更会影响已安装条目的 ownership
校验,但在这个时间窗内无实际影响。

## 结果 / Result

market 的 `agents/` 现在只剩官方 `desirecore` 一个 inline 条目,其余全部 pointer。
2026-09-06 14:17:21 -04:00
yige 45cdff4923 release: publish contract review team 0.1.12 (#147)
Publish Contract Review Team 0.1.12. Update entry/catalog to the merged
team ref d85b9244244c3b69718b2525b8ef4b8b7296f144, lead 1.0.8, and
current timestamps. Focused validators: metadata 47 passed, i18n 19
passed, collection 4 passed, JSON parse and diff-check pass; existing
catalog warnings unchanged.
2026-09-06 13:27:44 -04:00
yige 5025a7322f chore(contract-review-team): publish 0.1.11
GPT-Reserve review PASS (P0=0, P1=0, P2=0, P3=0). Metadata, i18n, collection, and Copilot checks passed.
2026-09-06 12:50:43 -04:00
yige 377b7254dc docs(feishu-orchestrator): 补 USAGE.md 使用说明并重新 pin / add USAGE.md and repin (#137)
## 背景 / Background

主仓 [#2600](https://github.com/desirecore/desirecore/pull/2600)
给市场详情页加了「使用说明」区块,按约定文件名 `USAGE.md` 消费。飞书编排助手此前没有这个文件,详情页不渲染该区块——README
里的前置条件、授权步骤与边界,只有访问 GitHub 才看得到,而真正需要它的是市场里正准备安装的人。

The market detail page gained a Usage section in desirecore#2600,
sourced from a conventional `USAGE.md`. This agent had none, so the
section stayed hidden — its prerequisites, auth steps and limits were
reachable only by visiting GitHub.

## 改动 / Changes

- 上游新增
`USAGE.md`([desirecore-agent/feishu-orchestrator@6116ad4](https://github.com/desirecore-agent/feishu-orchestrator/commit/6116ad4ac7c0b90d44145a3d6ba86e89a33d6c3f))
- 本条目重新 pin 到该 commit,证据六项同步更新

## 为什么放上游而不是条目目录 / Why upstream

`sync/market.ts` 有两条读取路径,只有一条读本地条目目录:

| 方法 | 本地条目目录基线 | 远程 |
|---|---|---|
| `readAgentDetail`(inline 形态) | ✅ `readUsageDocFromDir` | 有则覆盖 |
| `readAgentDetailFromPointer`(**本条目**) | ❌ 无 | 仅远程 |

所以 pointer 条目的使用说明只能来自上游仓库。条目目录放 `USAGE.md` 对本条目无效。

## 为什么只有无后缀版本 / Why no locale variants

远程抓取时,`USAGE.<locale>.md` 的探测列表由 `extractDeclaredLocales` 从**上游
agent.json 的 `i18n.locales`** 得出;无后缀 `USAGE.md` 则总是被抓。

而 `agentConfigSchema` 顶层没有 `i18n`,根级 `additionalProperties: false`——给上游
agent.json 加这个字段会让 pointer 形态的安装校验直接失败。因此本条目只提供无后缀 `USAGE.md`。

## 内容 / Content

按 `usage-doc.ts` 的定位写「装之前该知道什么」,不是全量文档(3212 字符,上限
16000):第三方分发免责、四步授权、审批模式取舍、安全边界、已验证/未验证清单。各业务域的实测细节仍在上游 `docs/` 的 13 篇里。

两处与既有同类文档(`dingtalk-workspace/USAGE.md`)不同,是核对 `app/data/i18n/zh-CN.ts`
后的修正而非照搬:

- 审批模式是 **7 种**不是 6 种,补上 `allow-all`(全部放行)
- `ask-external` 的语义是「内置工具与命令放行,仅
MCP、HTTP、脚本等外部工具需审批」,**不是**「交给外部系统裁决」——两者含义相反,照搬会让用户以为自己收紧了,实际放宽了命令执行

## 验证 / Verification

证据六项一致性自检全部通过:

```
content.ref == entry.source.ref            ✅ 6116ad4ac
reviewedRef == content.ref                 ✅
timestamps.reviewedAt == compliance.reviewedAt  ✅ 2026-09-06
availability                               ✅ installable
license                                    ✅ known + LICENSE
requiredClientVersion                      ✅ 10.0.144
```
2026-09-06 12:19:03 -04:00
yige 41c0badfcb chore(contract-review-team): publish 0.1.10 (#145)
## Change\n- publish contract-review-team 0.1.10\n- point source,
provenance, and governance review to team commit
1950e3b117e11b9208ed38fe6d64abfa87ea1adc\n- expose contract-review-lead
1.0.6\n\n## Validation\n- catalog metadata validator: 0 errors\n-
test_validate_catalog_metadata.py: 47 passed\n- git diff --check
passed\n- team PR #23 and lead PR #7 independently reviewed by
GPT-Reserve\n
2026-09-06 12:08:37 -04:00
yige 31e4ca4611 chore(invoice-organizer): 1.0.3 —— 重新 pin 到已合并 commit (#144)
接 #138。那个 PR 只改技能内容,刻意没动版本号与 pin——contentSource.ref 必须
指向已合并的 commit,而那个 SHA 在合并前并不存在。这是同一条两步约束的第四次
(#117/#118、#120/#121、#127/#130 之后)。

- agent.json#contentSource.ref、sidecar 的 provenance.content.ref 与
  governance.compliance.reviewedRef 三处同步 pin 到 450be28
- 版本 1.0.2 → 1.0.3(agent.json 与 sidecar release.version 两处一致)
- 补 1.0.3 changelog(中英双语)

1.0.3 修的是:PDF 文本层在「两栏先输出全部标签、再输出全部取值」的版式下,
按「标签后紧跟的下一段文字」配对会把字段标签本身抽成销售方/购买方名称,且
所有形式勾稽都不会报错。新增硬校验:名称命中已知标签模式即判定提取失败,
先同页重定位、再整页视觉阅读,仍不能确定则按必填字段缺失隔离。

timestamps 三项已经是 2026-09-06,本次无需变更;结构化形态原样保持。
2026-09-06 11:24:13 -04:00
yige 5750c48556 release: contract review team 0.1.9 market entry
All checks passed after rebasing onto market main; independent reserve review PASS, schema/i18n validation passed, and review conversation resolved.
2026-09-06 10:57:58 -04:00
yige 450be28a2b fix(invoice-organizer): PDF 文本层名称字段标签污染防护 (#138)
PDF 的文本层顺序由生成它的开票系统决定,不保证等于版面阅读顺序。部分模板会把
「两栏的全部标签」连续输出完,再输出「两栏的全部取值」,按「标签后紧跟的下一段
文字」配对会把字段标签本身当成取值——一次真实批量整理里,某网约车平台开具的两张
「旅客运输服务」数电票的 sellerName 被抽成了字面的「统一社会信用代码/纳税人识别号:」。

新增「名称字段的标签污染防护(PDF 文本层)」一节:名称等于或主要由已知字段标签
组成时判定为提取失败,先在同页重新定位、再退到整页视觉阅读,仍不能确定则按技能
既定的「抽不齐必填字段就隔离」处理,不得从主题/文件名/相邻税号猜公司名。

明确标注这条只针对 PDF 文本层:OFD 页面文本按坐标重建阅读顺序、模板标签与取值
已合并到同一行,结构化来源更不依赖文本顺序,均不受此问题影响,OFD 章节未改动。
2026-09-06 10:46:46 -04:00
yige f1f38d7766 docs(wecom-assistant): 把能力边界落到技能侧并重新 pin / land capability boundaries in skills and repin (#143)
## 中文

上一个 PR(#136)把两条能力边界写进了 `USAGE.md`。但 `USAGE.md` **刻意不进模型上下文**(ADR-143,与
`fullDesc` 分开正是为了不占每轮 token)——也就是说运行时模型并不知道这些边界,遇到 `851003` 仍会当故障重试。本 PR
把它们落到技能侧。

重新 pin 到内容仓库

[`ebb1903`](https://github.com/desirecore-agent/wecom-assistant/commit/ebb19035bb1f9f18fcf20e44d84f64b2fe125652)。

### 三条改动

**1. `wecom-shared` 新增「零之四:企业人数改变机器人的身份」**

| 企业规模 | 模式 | 以谁的身份调用 | 能否读到真人的东西 |
| --- | --- | --- | --- |
| ≤ 10 人 | 小团队模式 | 授权真人 | 能,继承其文档权限 |
| > 10 人 | 企业模式 | 机器人独立身份 | **不能** |

写明了它与既有「零之一」的分工——零之一管**写**(任何规模下只能写机器人自己建的),本条管**读**(>10
人连读都不继承)。给出正确动作:说明边界 + 建议把文档显式分享给机器人,而不是重试。并标注**这条不可自查**:CLI
没有查企业人数的接口,`identity whoami` 也不返回规模,只能从实际返回反推。来源为上游 issue #64 维护者确认。

此前这个概念只藏在 `wecomcli-smartsheet/references/smart-sheet-webhook.md`
里,是局部知识,而且表述成「写入接口被限制」——真实机制是身份不继承,本 PR 一并修正。

**2. `wecom-shared` 易错点补「方法描述里也有不存在的参数」**

比既有的「服务描述里有不存在的能力」更隐蔽:方法真的存在,只是做不到描述承诺的事。实测三处,`--schema` 请求体里根本没有对应字段:

| 方法 | 描述承诺 | 请求体实际只有 |
| --- | --- | --- |
| `calendar schedules cancel` | 周期日程需指定编辑规则 | `schedule_id` |
| `calendar schedules update` | 同上 | 11 个字段,无一是周期规则 |
| `meeting cancel` | 周期会议取消单次需指定子会议 ID | `meeting_id` |

这解释了 `wecomcli-calendar` / `wecomcli-meeting` 为何禁止操作周期日程——**不是技能保守,是 CLI
没暴露参数**。顺带把 `calendar` 的「日历本列表查询」补进既有的服务描述清单。

**3. `smartsheet get` 是 `sheets list` 的别名**

两者官方描述逐字相同、返回同一份子表列表。此前 `smartsheet get` 在整个仓库零字面出现,模型只能靠 `--help`
自己摸到,然后在两者之间犹豫。

### vendor 纪律

第 3 条与 webhook 归因修正都落在 **vendor 自上游的 `wecomcli-smartsheet`**
上。脚本头注释明确「不要手工编辑 `skills/wecomcli-*`,改动会在下次重跑时被无声抹掉」,所以走
`patches/snippets/` + `injections.tsv` 注入,不手工改文件。

`bash scripts/vendor-official-skills.sh` **连跑两次 diff 不变**,幂等成立;注入计数 6 →
8,脚本摘要与 tsv 注释同步更新。

### 条目改动

三处 ref 一起改(这次用全文扫 40 位 hex 复核,只剩一个值),`releasePublishedAt` 不动——版本仍 1.0.0:

- `entry.source.ref`
- `provenance.content.ref`
- `governance.compliance.reviewedRef`

推之前本地跑过 `uv run scripts/catalog/validate_catalog_metadata.py
--require-complete`:**0 error**(129 warning 为全仓存量)。

---

## English

#136 put two capability limits into `USAGE.md`, which is **deliberately
kept out of model context** (ADR-143). At runtime the model therefore
still doesn't know them and retries `851003` as a failure. This PR lands
them in the skills.

1. **`wecom-shared` gains "rule zero-four": corporation size changes the
bot's identity.** ≤10 people — the bot calls *as the authorizing user*
and inherits their document permissions; >10 — it calls under its own
identity and inherits nothing. Spelled out against the existing "rule
zero-one" (that one governs *writes*; this one governs *reads*). Marked
as non-self-checkable: no API returns the corporation size, so it can
only be inferred from responses. Source: upstream issue #64.
2. **A new pitfall: method descriptions also promise parameters that
don't exist** — subtler than the existing service-level note, since the
method does exist. Three verified cases where `--schema` has no such
field, which is precisely why the calendar/meeting skills forbid
recurring-event operations.
3. **`smartsheet get` is an alias of `sheets list`** — identical
official descriptions, same payload.

Items 2–3 touch vendored upstream skills, so they go through
`patches/snippets/` + `injections.tsv` rather than hand edits; the
vendor script is idempotent across two consecutive runs. Catalog
validator reports 0 errors locally before pushing.
2026-09-06 10:37:08 -04:00
yigeandyi-ge aa394e8bef refactor(dingtalk-workspace): 内联条目改为 pointer 形态 / convert inline entry to pointer (#141)
## 背景 / Context

钉钉工作台助手此前以**内联**形态登记(市场目录里直接放 24 个文件的完整正文)。这带来两个实际问题:

1. **同一份内容存在多个副本。** 上一次修正 `ask-external` 的审批模式文案时,同样的错误要在市场目录、Agent
私有目录、市场解压目录**四处**分别修改。
2. **与既有 Agent 形态不一致。** `wecom-assistant` / `feishu-orchestrator` 等都是
pointer 形态。

The DingTalk agent was registered inline (24 files of body content
inside the catalog). This duplicated the same content across several
copies — a single copy fix had to be applied in four places — and
diverged from every other agent, which use the pointer form.

## 改动 / Change

正文迁到
[desirecore-agent/dingtalk-workspace](https://github.com/desirecore-agent/dingtalk-workspace),市场侧只留两个文件:

```
agents/dingtalk-workspace/
├── entry.json                  ← pointer,source.ref 钉死上游 commit
└── catalog-metadata.v1.json    ← sidecar
```

**24 files → 2 files**(25 files changed, 72 insertions, 1781 deletions)

## 为什么必须删掉 agent.json 而非并存

`scripts/catalog/validate_catalog_metadata.py:253-261` 用
`inline_path.is_file() == pointer_path.is_file()`
判定——**两者必须恰好存在一个**,都有或都没有都会报 `fixed-sidecar-path` 并使条目掉出目录。

正文也一并清除,理由是另外两条:安装时会**整树复制**(排除清单只有
`upstream`/`.git`/`node_modules`/`.cache`),留下旧副本会与从上游拉取的正文形成两份可能不同步的内容;且与
`redistribution: source-pointer-only` 的声明自相矛盾。

## 证据六项 / Evidence

| 项 | 值 |
| --- | --- |
| `provenance.content` | https + 40 位 SHA
`9e5a4695b07d9d71921202a7a4072140c2135670` |
| `license` | `state: known` + `value: MIT` + `evidencePath: LICENSE` |
| `compliance` | 五项必填齐备 |
| `compliance.reviewedRef === provenance.content.ref` | ✅ |
| `timestamps.reviewedAt.value === compliance.reviewedAt` | ✅ |
| `governance.availability` | `installable` |

一致性比对的三处按既有约定处理:`entry.tags` 用英文 slug 且与 `presentation.tags` 逐字相同;entry
声明了 `license` 故 sidecar 必须 `known` 且 value 相等;`entry.maintainer` 映射到
sidecar 的 `upstreamMaintainer`。`redistribution` 用
`source-pointer-only`(pointer 不分发内容),非 inline 条目的 `allowed`。

## 上游仓库 / Upstream

内容仓库同步修正了审批模式文案(此前 `ask-external` 被写成「交给外部系统裁决」,实际含义是「内置工具与命令放行,仅
MCP、HTTP、脚本等外部工具需审批」,且漏掉 `allow-all`),现全部逐字引用平台内 i18n 文案。另补
`assets/avatar.webp` 与 `agent.json` 的 `avatar.image.path`,使 pointer
安装后仍有图片头像。

## 校验 / Verification

```
validate_catalog_metadata.py --require-complete   exit=0   0 error(s)
validate-i18n.py                                  exit=0   0 error
agents=5(条目未掉出目录)
```

上游可达性已独立验证:`git ls-remote` 取得 40 位 SHA,`git clone` 成功,27
个文件。**先推上游确认可达、再改市场卡片**,避免出现指向不存在 ref 的孤儿 entry。

Co-authored-by: yi-ge <jackyoncode@gmail.com>
2026-09-06 10:26:02 -04:00
yige b18073cb97 docs(wecom-assistant): 补使用说明并重新 pin / add USAGE.md and repin (#136)
## 中文

企业微信助手的市场详情页「使用说明」区此前为空。内容仓库

[`desirecore-agent/wecom-assistant@047928a`](https://github.com/desirecore-agent/wecom-assistant/commit/047928afe1b46493fc48bda7d37031d6a3edd725)
新增 `USAGE.md`,本 PR 把条目重新 pin 过去。

### 为什么要写这两条

它们都是**装之前**该知道、且**装完也改不了**的边界,正是 `USAGE.md` 的定位(ADR-143:与 `fullDesc`
分开,不进模型上下文)。

**1. 群聊历史目前仅对 ≤10 人企业开放。** 官方错误码 `853001` 的释义原文如此。实际触发返回相邻的 `853006`:

```
errcode: 853006
errmsg:  this tool is not available for your corporation
```

措辞是 **for your
corporation**,不是「机器人未开通某品类」——所以让用户去找管理员开通品类是无效动作。本机实测复现,同一凭证下其余 12
个服务域全部正常,`chat` 是唯一被拒的域。上游 `WecomTeam/wecom-cli` #106 / #107 / #132 三个
issue 都在追这件事,截至提交时全部 OPEN、官方未回复。

**2. 同一条命令在不同规模的企业行为不同,而且不报错。** 上游维护者在 issue #64 确认:≤10
人「小团队模式」机器人以**授权用户身份**调用、继承其文档权限;>10
人「企业模式」机器人以**独立身份**调用、不继承。后果是同事分享给你的文档,小公司读得到、大公司读同一份返回
`851003`。这不是故障,但不写出来必然被当成故障反复重试。

顺带记入第三条与规模无关的边界:`wecom-cli identity whoami`
返回原文「只能写入或修改机器人创建或拥有的数据」——这是邮件署名固定为「XXX的机器人」、用户对助手所建文档反而没有管理权的根因。

### 条目改动

pointer 条目的 `USAGE.md` 由客户端从内容仓库**按 pinned ref** 抓取(`sync/market.ts` 的
`pointerUsage` ← `code-repo/file-fetcher.ts`),所以只推内容仓库不改 ref
的话客户端看不到。四处一起改,保持 ADR-137 证据链自洽:

| 字段 | 旧 | 新 |
| --- | --- | --- |
| `entry.source.ref` | `665ab1d2` | `047928a` |
| `compliance.reviewedRef` | `665ab1d2` | `047928a` |
| `compliance.reviewedAt` | 2026-09-04 | 2026-09-06 |
| `timestamps.reviewedAt.value` | 2026-09-04 | 2026-09-06 |
| `timestamps.catalogUpdatedAt.value` | 2026-09-04 | 2026-09-06 |

`releasePublishedAt` **不动**——版本仍是 1.0.0,本次只增文档。

已核对:`reviewedRef === source.ref`、`timestamps.reviewedAt ===
compliance.reviewedAt`、`availability: installable`、`license.state:
known`、compliance 五项必填齐全、ref 为 40 位 SHA、`repoUrl` 在官方前缀内。

### 证据等级

| 结论 | 来源 |
| --- | --- |
| `853006` 错误原文与触发条件 | 本机实测复现 |
| 「仅对 ≤10 人企业开放」 | 官方错误码 `853001` 释义 |
| 小团队 / 企业模式身份差异 | 上游 issue #64 维护者确认 |
| 「只能写入机器人拥有的数据」 | `identity whoami` 返回原文 |
| 群聊 7 天限制 | `chat messages list` 的 `begin_time` 字段 schema |

**未核实**:`853006` 的具体判定标准(是否严格按人数、有无灰度名单)与开通路径,官方未公开、上游 issue
未获回复。`USAGE.md` 里已如实标注。


### 追加:一并修正 docs 的 853006 归因

同一 ref 里还带了内容仓库

[`047928a`](https://github.com/desirecore-agent/wecom-assistant/commit/047928afe1b46493fc48bda7d37031d6a3edd725)
的一处事实修正。原 docs 把 `853006` 写成「机器人未开通『群聊会话』品类」,并给出
「要让它可用:为机器人开通群聊会话品类」——**这是让用户去做一件做不成的事**。

改了 6 处(`04-群聊历史` 四处、`README` / `01-快速开始` / `99-风险与确认` 各处),
只纠正群聊这一处的归因,**不动「能力按品类逐项开通」这条通则**——那条对 `850002`
依然成立。技能侧(`wecom-shared` / `wecom-workflows` / `wecomcli-message`)本就写的是
「企业级不可用」,本次是让 docs 与技能口径一致。

---

## English

The agent detail page's "Usage" section was empty for the WeCom
assistant. The content repo now carries a `USAGE.md`; this PR repins the
listing to it.

It documents two limits that a reader needs **before** installing and
cannot change afterwards:

1. **Chat history is currently limited to corporations of 10 people or
fewer.** Official error `853001` states this; the actual response is
`853006 this tool is not available for your corporation` — the wording
is *corporation*, not *bot*, so asking an admin to enable a bot
capability is a dead end. Reproduced locally; all 12 other service
domains work under the same credential. Upstream issues #106 / #107 /
#132 all remain OPEN with no official response.
2. **The same command behaves differently by corporation size, without
erroring.** Per the upstream maintainer in issue #64, bots in ≤10-person
"small team mode" call **as the authorizing user** and inherit their
document permissions; in ">10 person" enterprise mode they call **under
their own identity** and do not. A doc shared with you is readable in a
small company and returns `851003` in a large one.

A pointer listing's `USAGE.md` is fetched from the content repo **at the
pinned ref**, so `source.ref` and the ref-bound compliance evidence are
updated together to keep the ADR-137 chain self-consistent.
`releasePublishedAt` is unchanged — still 1.0.0, docs only.
2026-09-06 10:11:20 -04:00
yige d3a81f1cb8 release: publish contract review team 0.1.8 (#135)
## Summary
- publish contract review team v0.1.8 from upstream team commit
98dcaf365c17fce25928dcdaf4a90739229617a5
- refresh the roster to match the team lock, including intake 1.0.1 and
risk 1.0.3
- preserve installable governance, privacy, and Work Context metadata

## Validation
- metadata validator: 0 errors (129 pre-existing warnings)
- metadata tests: 47 passed
- i18n tests: 19 passed
- collection tests: 4 passed
- JSON parse and git diff --check
- independent GPT-Reserve review: PASS (P0/P1/P2/P3 = 0)
2026-09-06 08:56:55 -04:00
yige 18ce1c7798 fix(market): publish contract review team v0.1.6 (#134)
## Why / 背景

The market entry still pointed at team v0.1.5. Its pinned member lock
used stale agent manifests whose `command_authority.allowed_targets` did
not match the installed runtime IDs, so a fresh newcomer install could
pass catalog discovery but block the first delegation. The upstream team
main is now v0.1.6 with the corrected lock and member versions.

市场条目仍指向 v0.1.5。其成员锁引用了旧 Agent
manifest,`command_authority.allowed_targets` 与安装后的 runtime ID
不一致,导致新人实例虽然能发现团队,却会在首次委派时被阻断。上游团队 main 已更新到 v0.1.6,成员锁和版本已修正。

## What changed / 变更

- bump `latestVersion` and `release.version` to `0.1.6`;
- point entry source, catalog provenance, and compliance `reviewedRef`
to upstream team commit `3a4736e31ff5bf4299fde17fdde682a179d898b2`;
- align all six listed member versions with the upstream
`members.lock.json` (lead 1.0.4, intake 1.0.1, clause 1.0.2, risk 1.0.2,
jurisdiction 1.2.1, reporter 1.0.1);
- update release and upstream observation timestamps.

- 将 `latestVersion` 与 `release.version` 更新为 `0.1.6`;
- 将 entry source、catalog provenance 和 compliance `reviewedRef` 对齐上游团队
commit `3a4736e31ff5bf4299fde17fdde682a179d898b2`;
- 六名成员版本与上游 `members.lock.json` 对齐(统筹 1.0.4、输入 1.0.1、条款 1.0.2、风险
1.0.2、法域 1.2.1、报告 1.0.1);
- 更新发布时间与上游观察时间。

## Validation / 验证

- `uv run scripts/catalog/validate_catalog_metadata.py --json` — exit 0,
0 errors, 129 existing warnings;
- `uv run scripts/i18n/validate-i18n.py` — exit 0;
- `uv run scripts/catalog/test_validate_catalog_metadata.py` — 47
passed;
- `uv run scripts/i18n/test_validate_i18n.py` — 19 passed;
- `uv run scripts/catalog/test_collection_generator.py` — 4 passed;
- independent GPT-Reserve reviews — PASS, P0/P1/P2/P3=0;
- `git diff --check` — passed.

- `uv run scripts/catalog/validate_catalog_metadata.py --json`:exit 0,0
errors,129 个既有 warnings;
- `uv run scripts/i18n/validate-i18n.py`:exit 0;
- `uv run scripts/catalog/test_validate_catalog_metadata.py`:47 passed;
- `uv run scripts/i18n/test_validate_i18n.py`:19 passed;
- `uv run scripts/catalog/test_collection_generator.py`:4 passed;
- 两次独立 GPT-Reserve 复审:PASS,P0/P1/P2/P3=0;
- `git diff --check`:通过。
2026-09-06 08:07:04 -04:00
yige 39258c79dd chore: publish contract review team 0.1.5 (#133)
## Changes\n- publish contract-review-team v0.1.5\n- point entry and
catalog metadata at merged team main commit
2a45d9fc031ba7d63d3ec15552ef0bc4c3a2b46e\n- align clause-extractor
roster version to 1.0.2\n- advance release timestamps to
2026-09-06T10:02:16Z, after team lock resolvedAt
2026-09-06T09:56:11.162Z\n- preserve Work Context description and all
unrelated metadata\n\n## Validation\n- team entry schema: PASS\n-
catalog metadata validator: PASS (existing repository warnings only)\n-
i18n validator: PASS (0 errors, 129 existing warnings)\n- collection
generator tests: 4 passed\n- git diff --check: PASS\n\nPlease review
independently; do not merge automatically.
2026-09-06 06:11:33 -04:00
yige e670a84b71 chore: publish contract review team 0.1.4
Publish team 0.1.4 with the merged lead manifest version/hash lock. Independent GPT-Reserve review PASS; Copilot approval recommended; market validators/tests PASS.
2026-09-06 04:14:18 -04:00
yige c5dc96c474 chore: publish contract review team 0.1.3
Publish contract review team 0.1.3 with Work Context orchestration compatibility and aligned publication provenance timestamps. Independent GPT-Reserve review PASS; market validators and tests PASS; Copilot concern resolved with timestamp fix.
2026-09-06 03:55:34 -04:00
yigeandClaude Opus 5 84df5e7056 chore(invoice-organizer): 1.0.2 —— 重新 pin 到已合并 commit / repin to merged commit (#130)
## 背景 / Background

接 [#127](https://github.com/desirecore/market/pull/127)。那个 PR
只改了技能内容,**刻意没动版本号与 pin**——`contentSource.ref` 必须指向**已合并的 commit**,而那个
SHA 在合并前并不存在。先 bump 版本会让目录声称 1.0.2、却仍按指向 1.0.1 内容的 pin 去取文件,比不 bump 更糟。

这是 `#117`/`#118`、`#120`/`#121` 之后**第三次**走同一条两步约束——inline agent 声明为
`installable` 就必须 pin 到已存在的 commit,所以内容与 pin 永远得分两个 PR。

Third time through the same two-step constraint: an inline agent
declared `installable` must pin to an already-merged commit, so content
and pin can never land in one PR.

## 改动 / Changes

- `agent.json#contentSource.ref`、sidecar 的 `provenance.content.ref` 与
`governance.compliance.reviewedRef` **三处同步** pin 到 `406bc10`
- 版本 `1.0.1` → `1.0.2`(`agent.json` 与 sidecar `release.version` 两处一致)
- `reviewedAt` / `timestamps.reviewedAt` 同步到 `2026-09-06`
- 补 1.0.2 changelog(中英双语)

## 1.0.2 修了什么 / What 1.0.2 fixes

两条都来自真机对比两个版本产出的索引文件:

| 缺陷 | 现象 | 危害 |
| --- | --- | --- |
| 索引顶层结构没钉死 | 同一个 Agent 分别产出过 `{…, records:[…]}`(数组)与 `{…, invoices:{…},
suspectedDuplicates, quarantined}`(字典),`updatedAt` 也时有时无 |
台账、报告、幂等判据全部从索引派生,键名一漂,跨轮次和外部工具都对不上 |
| `emails.json` 的 key 有前缀歧义 | key 是 `<provider>:<email>:<mailId>`,而 IMAP
的 `mailId` 自带 `imap:` 前缀 → `imap:me@example.com:imap:123` | 服务端对裸 UID
也接受,所以某轮抄原值、某轮剥前缀,**同一封邮件产生两个 key,「已处理」判定失效、邮件被重复入账** |

两条的修法都是**只钉规则、不改语义**:旧形态原样沿用、不重写容器;key
用列表接口返回的原值、一个字符不改。因此**对任何已落盘的索引文件零影响**——改语义会让存量用户的已处理邮件全部失配、整个邮箱重新入账一遍。

Both fixes pin the rule without changing semantics, so existing on-disk
index files are unaffected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 03:29:10 -04:00
yige 435b338db3 fix: align jurisdiction member roster version (#129)
Align the market roster jurisdiction-auditor version with the published
team lock. Independent GPT-Reserve review passed; canonical market
validators and tests pass.
2026-09-06 03:09:10 -04:00
yigeandClaude Opus 5 406bc10bcc fix(invoice-organizer): 钉死三个索引文件的顶层结构 / pin the index file schemas (#127)
## 问题 / Problem

真机对比同一个 Agent 两个版本产出的索引文件:

```
v1.0.0  ledger.json  {schemaVersion, updatedAt, records:[…]}                              数组
v1.0.1  ledger.json  {schemaVersion, invoices:{…}, suspectedDuplicates, quarantined}      字典

v1.0.0  files.json   {schemaVersion, updatedAt, files}      emails.json  {schemaVersion, updatedAt, emails, note}
v1.0.1  files.json   {schemaVersion, files}                 emails.json  {schemaVersion, emails}
```

技能原文只写了一句「`ledger.json` 发票主键 → 记录(主索引)」——**容器键名从未钉死**,于是同一个 Agent
在不同轮次产出了两种不兼容结构,`updatedAt` 也时有时无。

台账、报告、幂等判据**全部从索引派生**,键名一漂,跨轮次和外部工具就都对不上。这与已修的归档路径那条同源:**规格没说死的地方就会漂**。

The skill only said "`ledger.json` maps invoice key to record" — the
container key was never pinned, so the same agent produced two
incompatible shapes across runs. Everything (ledger spreadsheet, report,
idempotency) derives from these index files.

## 改动 / Changes

- 把三个索引文件的顶层形状写成 jsonc 范例,**容器键名与嵌套形态钉死**(`invoices` / `files` /
`emails` 都是字典,外加 `schemaVersion` 与 `updatedAt`;`ledger.json` 另有
`suspectedDuplicates` 与 `quarantined`)
- 明确 **「读到旧形态时不要重写容器」**:顶层出现 `records` 就一路沿用
`records`,只增改里面的条目。理由写进技能——容器一换,旧版写过、当前规格没覆盖的字段会**静默丢掉**,而用户毫无察觉
- 判据给成一句可照做的话:`records` → 沿用 `records`;`invoices` → 用 `invoices`;新建才用
`invoices`

## 为什么不做自动迁移 / Why no auto-migration

升级路径已实测(v1.0.0 目录被 v1.0.1 接手):Agent
**读得懂旧结构并原样保留**,台账记录数不变、幂等成立,还顺手修正了历史上错误的归档路径。既然读兼容已经成立,把容器强行规范化只会带来「丢字段」风险而没有收益。本
PR 把这个已被验证正确的行为**写成规则**,而不是引入新行为。

The upgrade path was verified in a real run: v1.0.1 reads the legacy
shape and preserves it, with zero duplicate ledger entries. This PR
codifies that verified behavior instead of introducing migration.

## 版本与 pin / Version and pin

同 #120 / #121 的两步发布约束:本 PR 只改技能内容,**不动版本号与 `contentSource.ref`**——pin
必须指向已合并的 commit,那个 SHA 在本 PR 合并前不存在。版本号、pin 与 changelog 留到后续 PR。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 02:57:31 -04:00
yige ded3acbffe fix: publish contract review team authority targets (#128)
Publish contract review team 0.1.2 with runtime Agent IDs in command
authority and update the catalog metadata to the merged team lock
commit. Independent GPT-Reserve review passed; canonical market
validators report 0 errors.
2026-09-06 02:45:02 -04:00
yige a1a0901d08 fix(teams): align jurisdiction member with pinned release (#126)
## Why / 背景

The pinned team release `73cd87a9901cc548871927e9d5dbec8e4cc6c2b1`
contains `jurisdiction-auditor` version `1.0.0`, but the merged market
entry advertised `1.2.0`. That metadata mismatch makes a valid pinned
release fail exact roster validation during newcomer installation.

团队发布锁 `73cd87a9901cc548871927e9d5dbec8e4cc6c2b1` 中的
`jurisdiction-auditor` 实际版本为 `1.0.0`,已合并的市场条目却写成
`1.2.0`。该元数据不一致会让新人安装时的精确 roster 校验拒绝有效的 pinned release。

## What changed / 变更

- Set only the market roster version for `jurisdiction-auditor` back to
`1.0.0`.
- Keep the pinned source ref, member commits, content hashes, governance
sidecar, and all other members unchanged.

- 仅将市场 roster 中 `jurisdiction-auditor` 的版本恢复为 `1.0.0`。
- pinned source ref、成员 commit、content hash、治理 sidecar 与其他成员均保持不变。

## Validation / 验证

- `uv run scripts/catalog/validate_catalog_metadata.py --json` — 0
errors, 129 existing warnings
- `uv run scripts/catalog/test_validate_catalog_metadata.py` — 47 passed
- `uv run scripts/catalog/test_collection_generator.py` — 4 passed
- `uv run scripts/i18n/validate-i18n.py` — 0 errors, existing warnings
only
- public-tree sensitive-pattern scan — zero matches
2026-09-06 07:00:40 +08:00
yige a0f0d03878 fix(teams): match jurisdiction auditor release version (#125)
## Why

The team source lock declares `jurisdiction-auditor` at version `1.2.0`,
while the market roster still said `1.0.0`. DesireCore correctly
rejected the install because market member versions must match the
pinned team release.

## What changed

- update the market roster entry for `jurisdiction-auditor` to `1.2.0`;
- leave the pinned team source, commit, governance evidence, and all
other members unchanged.

## Validation

- `uv run scripts/catalog/validate_catalog_metadata.py --json` — 0
errors, 129 existing warnings
- public-tree sensitive-pattern scan — zero matches
2026-09-06 06:20:54 +08:00
yige 6f8589ccda fix(teams): align contract review client compatibility (#124)
## Why

The published pointer advertises client version `10.0.137`, while the
current DesireCore release is `10.0.136`. The newcomer instance
therefore correctly blocks installation even though the team source is
compatible with the current client.

## What changed

- align the team pointer's `requiredClientVersion` with the current
client version;
- align the catalog sidecar's compatibility declaration with the same
version.

No source pointer, team member, capability, privacy, or governance claim
changed.

## Validation

- `uv run scripts/catalog/validate_catalog_metadata.py --json` — 0
errors, 129 existing warnings
- `uv run scripts/catalog/test_validate_catalog_metadata.py` — 47 passed
- `uv run scripts/catalog/test_collection_generator.py` — 4 passed
- public-tree sensitive-pattern scan — zero matches
2026-09-06 06:15:31 +08:00
yige 00540f7d44 feat(teams): publish installable contract review team pointer (#123)
## Why

The contract review team already has a reproducible public Git source,
but its market pointer is still listing-only and uses the legacy
display-only shape. The current DesireCore client contract requires
explicit members, capabilities, privacy, an immutable source ref, and
installability evidence.

## What changed

- publish the contract review team as an installable,
source-pointer-only team entry;
- add the six-member roster, capability boundaries, privacy notice, and
update date;
- record review and license evidence in the catalog sidecar;
- keep the legacy team-entry schema branch while adding the current
client contract, so existing public pointers remain valid during
migration.

The source remains a public HTTPS Git pointer locked to commit
`73cd87a9901cc548871927e9d5dbec8e4cc6c2b1`. The team output is
supporting review material, not legal advice, and still requires
qualified human review.

## Validation

- `uv run scripts/catalog/validate_catalog_metadata.py --json` — 0
errors, 129 existing warnings
- `uv run scripts/catalog/test_validate_catalog_metadata.py` — 47 passed
- `uv run scripts/catalog/test_collection_generator.py` — 4 passed
- `uv run scripts/i18n/validate-i18n.py` — no errors; existing catalog
freshness warnings remain
- public-tree sensitive-pattern scan — zero matches
2026-09-06 06:09:14 +08:00
yigeandyi-ge 607045e44e chore: 移除误提交的 Python 字节码并新增 .gitignore / drop committed bytecode, add .gitignore (#122)
## 问题 / Problem


`scripts/catalog/__pycache__/validate_catalog_metadata.cpython-314.pyc`(60KB)在
#118 被误提交进仓库。

它是跑仓库校验脚本时的就地产物,**会随 `defaults/market.zip` 分发给每一个客户端**,而且只对生成它的那个 Python
版本(3.14)有效——换个版本就是纯粹的死重量。

本仓库此前**没有 `.gitignore`**,所以这类产物每次都得靠人眼发现。

A Python bytecode artifact was accidentally committed in #118. It ships
to every client inside `defaults/market.zip` and is only valid for the
exact Python version that produced it. The repository had no
`.gitignore` at all, so nothing prevented it.

## 改动 / Changes

- 删除该 `.pyc`
- 新增 `.gitignore`:`__pycache__/`、`*.py[cod]`、`.DS_Store`

## 与主仓库那道闸门的关系 / Relation to the upstream guard

desirecore/desirecore#2602 已让 `sync-market`
在同步目录不干净时拒绝打包——今天正是它拦下了我本机跑校验产生的 `cpython-310.pyc`:

```
Error: [sync-market] 同步目录存在未提交内容,拒绝打包:
    ?? scripts/catalog/__pycache__/validate_catalog_metadata.cpython-310.pyc
```

但那道断言只看**未提交内容**,拦不住已经进了仓库的 `cpython-314.pyc`。两处配合才完整:`.gitignore`
防止它被提交,洁净断言防止未提交残留被打包。

## 验证 / Verification

- `validate_catalog_metadata.py --require-complete`:0 error,75 sidecars
- `validate-i18n.py`:0 error
- 新增 `.gitignore` 后重跑校验,新产生的字节码不再出现在 `git status` 中

Co-authored-by: yi-ge <jackyoncode@gmail.com>
2026-09-05 15:34:34 +08:00
yigeandyi-ge 6963018829 feat(feishu-orchestrator): 改为 pointer 形态并声明可安装 / switch to pointer form and make it installable (#119)
## 为什么 / Why

条目此前是 inline + `listing-only`,详情页显示「仅收录,当前不能由 DesireCore 一键获取」。同期
#115(企微)与 #118(发票助手)都已 `installable`,**飞书是唯一装不了的第三方 Agent**。

inline 形态在这条路上无解:`installable` 要求内容有独立的不可变 ref,而 inline 内容随本仓库走,没有自己的制品
ref。

The listing was inline + `listing-only`, so the client showed it as
discovery-only. With WeCom (#115) and Invoice Organizer (#118) already
installable, this was the only third-party Agent users could not
acquire. Inline form cannot satisfy the installable evidence gate, which
requires content pinned to its own immutable ref.

## 顺带修掉一个错误的承诺 / An incorrect claim, fixed along the way

原 `agent.json` 用 `default_enabled.skills` 声明那 23 个 `lark-*`
技能。但该字段的语义是**「本地已有的技能默认启用」**,schema 明确限定 ID 需存在于 Agent 自带 `skills/` 或市场
`builtin-skills` 清单中 —— `lark-*` 两者都不在,**声明落空**。

真正负责「把技能取过来」的是 `required_skills`(desirecore/desirecore#2587)。也就是说,条目
`fullDesc` 里「随 Agent 一并安装 23 个技能,安装后即可使用」在原实现下**做不到**。

上游 `agent.json` 已改用 `required_skills.collections`,两个字段按 schema
的分工同时保留。逐项核对过:

| 检查项 | 结果 |
|---|---|
| 合集 `larksuite-cli` entry 与 children | 存在,28 个 |
| 声明的 23 个 ID 是否都在其中 | **全部命中,无缺失** |
| source | 公开 git + 固定 ref,可取 |
| 合集自身版本门槛 | 无 |
| `redistribution` | `allowed` |
| 合集是 `listing-only` 是否影响预置 | 否 —— 预置路径不检查 `availability` |

## 形态 / Form

内容移至
[desirecore-agent/feishu-orchestrator](https://github.com/desirecore-agent/feishu-orchestrator),pin
到 `d5b0a78`。market 侧只留 `entry.json` + sidecar + `assets/`。

上游 `agent.json` 已剥净市场卡片字段,并**单独跑过 `agentConfigSchema`** —— pointer 没有
`projectMarketAgentConfigToAgentFs` 那层投影兜底,`persona`
这类卡片字段留着就会让落盘配置非法(本次正是由该校验捕获并修掉的)。

**图片头像保留**:`assets/avatar.webp` 连同 `entry.avatar.image` 一起留在 market
侧,validator 接受 —— pointer 形态不必退回纯文字头像。

## 证据六项 / Acquisition evidence

- `provenance.content`:https + 40 位 SHA
- `license`:`known` + `MIT` + `evidencePath: LICENSE`
- `compliance`:六字段齐全(含 `noticePath: NOTICE`)
- `compliance.reviewedRef === provenance.content.ref`
- `timestamps.reviewedAt.value === compliance.reviewedAt`
- `availability: installable`

一致性:`entry.maintainer` → sidecar `upstreamMaintainer`;`tags` 用英文 slug 与
`presentation.tags` 逐字一致;`redistribution` 为
`source-pointer-only`;`entry.requiredClientVersion` 与
`compatibility.requiredClientVersion` 一致(`10.0.144`,即包含 #2587 的首个发布版本)。

## 校验 / Verification

| 命令 | 结果 |
|---|---|
| `validate_catalog_metadata.py --require-complete` | **0 error**,75
sidecars |
| `validate-i18n.py` | 0 error |
| `test_validate_catalog_metadata.py` | 47/47 |
| 上游 `agent.json` 过 `agentConfigSchema` | 通过(捕获并修掉了 `persona` 字段) |

Co-authored-by: yi-ge <jackyoncode@gmail.com>
2026-09-05 14:30:35 +08:00
yige 1f9e0b0a03 chore(invoice-organizer): 1.0.1 —— 重新 pin 到已合并 commit / repin to merged commit (#121)
## 背景 / Background

接 [#120](https://github.com/desirecore/market/pull/120)。那个 PR
只改了技能内容,**刻意没动版本号与 pin**——`contentSource.ref` 必须指向**已合并的 commit**,而那个
SHA 在合并前并不存在。先 bump 版本会让目录声称 1.0.1、却仍按指向 1.0.0 内容的 pin 去取文件,比不 bump
更糟。这是 #117/#118 那次两步发布的同一条约束。

Follow-up to #120, which deliberately left the version and pin
untouched: `contentSource.ref` must point at an already-merged commit,
which did not exist until #120 landed.

## 改动 / Changes

- `agent.json#contentSource.ref`、sidecar 的 `provenance.content.ref` 与
`governance.compliance.reviewedRef` **三处同步** pin 到 `7560a58`
- 版本 `1.0.0` → `1.0.1`(`agent.json` 与 sidecar `release.version` 两处一致)
- 补 1.0.1 changelog(中英双语)

## 1.0.1 修了什么 / What 1.0.1 fixes

三条都是真机整理实测撞出来的 Agent 侧规格洞,不是模型不听话:

| 缺陷 | 实测现象 | 根因 |
| --- | --- | --- |
| 归档路径 | 五轮里有两轮归成 `<工作目录>/2022/11/增值税电子普通发票/2022-11-18_….pdf`——同时违反「缺
`归档/` 首层」「多插一层 `<发票类型>/`」「日期用 `YYYY-MM-DD` 而非八位连写」三条 |
原文只用一句散文说了路径,上下文压缩后凭印象重建就会漂 |
| 报告文件名 | 三轮全部写出 `报告/整理报告-<运行日期>.md` | 技能只定义了 `报告/<YYYY-MM>.md`,多月场景无从填写
|
| 台账表数量 | 只有 1 张发票时产出三张表(省了「按销售方汇总」) | 技能写了「四张表,顺序固定」但没说「即使为空也必须存在」 |

前两条的共同点:**只跑一遍、或只跑成功的那遍,都看不见**。归档路径在早期几轮全对,是在同一会话被压缩之后才走样的。

All three are spec gaps found by repeated real-machine runs, not model
disobedience — and the first two are only visible across multiple runs
in the same (compacted) conversation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-09-04 12:22:39 -04:00
yige 7560a58642 fix(invoice-organizer): 统一报告文件名约定 / unify report file naming (#120)
## 问题 / Problem

真机三轮整理实测:Agent 全部写出 `报告/整理报告-<运行日期>.md`,而技能里只定义了 `报告/<YYYY-MM>.md`。

**原因不是模型不听话。** 测试范围跨了 2020-08 到 2024-09 共十几个月,`<YYYY-MM>`
在多月场景下无从填写——技能没给出这种情况的文件名,Agent 只能自己发明一个。

**后果不是难看,而是会攒垃圾。** `invoice-automation` 的定时任务每月重建的是 `报告/<上月
YYYY-MM>.md`;与按运行日期命名的手工报告永远不会互相覆盖,用户目录里会留下一堆内容重叠、无从分辨新旧的报告。

Three real-machine runs all produced `报告/整理报告-<run date>.md`, while the
skills only define `报告/<YYYY-MM>.md`. The runs spanned 2020-08 through
2024-09, so `<YYYY-MM>` was unfillable and the agent improvised. Because
the scheduled monthly job rebuilds `报告/<last month YYYY-MM>.md`, the two
naming schemes never overwrite each other and the user's directory
accumulates overlapping reports with no way to tell which is current.

## 改动 / Changes

- `invoice-workflow` 第 7 步补一张表,把两种文件名钉死:

  | 本次覆盖 | 文件名 | 例 |
  | --- | --- | --- |
  | 恰好一个自然月 | `报告/<YYYY-MM>.md` | `报告/2024-08.md` |
  | 跨多个月 | `报告/<起始 YYYY-MM>_<结束 YYYY-MM>.md` | `报告/2020-08_2024-09.md` |

并写明月份按**开票日期**归属(与台账同口径)、同名直接覆盖(报告是从 `.index/ledger.json`
全量重建的派生产物,不像台账需要先备份)、以及**为什么不许用运行日期命名**
- `invoice-ledger` 与 `references/月度报告模板.md` 同步该约定
- 目录布局示例与中英 USAGE 一并标注跨月形态

## 为什么不在本 PR 里 bump 版本 / Why no version bump here

`contentSource` 的 `ref` 必须 pin 到**已合并的 commit**,本 PR 合并前拿不到那个 SHA。先 bump
版本会让目录声称 1.0.1、却仍按指向 1.0.0 内容的 pin 去取文件——比不 bump 更糟。版本号、pin 与 changelog
留到后续 PR 一起改。

The `contentSource` ref must pin to an already-merged commit, which does
not exist until this PR lands. Bumping the version now would advertise
1.0.1 while still serving 1.0.0 content. Version, pin and changelog
follow in a second PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---

## 追加:台账四张表必须全建 / Also: all four ledger sheets must always exist

真机压测(只有 1 张发票)产出的 `台账.xlsx` **只有三张表**——Agent 判定「按销售方汇总」在单一销售方下冗余而略过:

```
发票测试(23 张) → ['明细', '月度汇总', '按销售方汇总', '异常']
发票压测(1 张)  → ['明细', '月度汇总', '异常']          ← 少一张
```


技能写的是「四张表,顺序固定」,但没说「即使为空也必须存在」。台账是要被重复重建、被用户自己写公式引用、被下一次整理覆盖的产物;表的位置一旦随数据量浮动,「第
3 张是按销售方汇总」这类引用就会在下个月悄悄指错。已在 `invoice-ledger` 里把这条钉死。

A stress run with a single invoice produced only three sheets — the
agent judged the per-seller summary redundant. The skill said "four
sheets, fixed order" but never said "even when empty". Sheet positions
that float with row count silently break user formulas and rebuilds; now
pinned.
2026-09-04 11:56:48 -04:00
98251c9a1d feat: 新增飞书编排助手 Agent 市场条目 / add Feishu Orchestrator agent listing (#114)
## 这是什么 / What

把自然语言意图翻译成第三方飞书 CLI(`lark-cli`)的正确调用,覆盖云文档、Markdown
文件、电子表格、多维表格、云空间、知识库、幻灯片、画板、即时消息、邮箱、日历、视频会议与妙记、任务、审批、OKR、考勤、应用搭建与实时事件等业务域。

声明 23 个业务域技能依赖,安装后即可使用,无需手工拷贝技能目录。

An agent that turns natural-language intent into correct calls to the
third-party Feishu CLI, covering documents, sheets, Base tables, drive,
wiki, messaging, mail, calendar, meetings, tasks, approvals, OKR and
attendance. It declares 23 domain skill dependencies that install
together with the agent.

## 结构 / Layout

与仓库既有的 `dingtalk-workspace` / `wecom-assistant` 条目保持一致:

```
agents/feishu-orchestrator/
├── agent.json                 # 内联元数据(AgentFS 配置 ∪ 市场卡片,含 i18n 双语 + changelog)
├── catalog-metadata.v1.json   # sidecar,字段全部从 agent.json 派生
├── assets/avatar.webp         # 512×512 图片头像
├── persona.md / principles.md # L0/L1/L2 分层人格与硬规则
├── README.md                  # 条目总览 + 文档索引
└── docs/01..13-*.md           # 按业务域拆分的 13 篇功能文档
```

## 文档 / Docs

命令、参数约定与坑位**均来自真机验证**(2026-09-01,220 个已授权 scope)。未跑通的能力在
[`docs/13-能力边界.md`](agents/feishu-orchestrator/docs/13-能力边界.md)
中如实标注,不含任何租户、组织或个人标识。

其中固化了三处容易踩错的 CLI 契约:

| 契约 | 踩错的后果 |
|---|---|
| `auth status` 成功时**没有**顶层 `ok` 字段 | 按通用 `ok === true`
判据会把「已授权」误判成「未授权」,反复推用户重新扫码 |
| 身份不显式指定会落到 `bot` | bot 看不见用户的个人日历、云盘、邮箱,且返回**空成功**而非报错 |
| `--ranges`(复数)的 sheet 前缀要用 `sheet_name` | 用 `sheet_id` 会通过确认门禁、但在 API
层报 `Sheet not found`;而单数 `--range` 的约定**正好相反** |

## 治理 / Governance

- `governance.availability: listing-only` —— 与核心
Agent、钉钉、企微三个既有条目一致。inline agent 的内容随仓库走,没有独立制品 ref,无法满足 `installable`
分支「必须有不可变 ref 或 SHA-256 摘要」的门禁
- `governance.branding`:`independent-listing` / `nominative` / `logo
not-used` —— 飞书、Lark 为第三方商标,头像为抽象编排拓扑图,不使用任何第三方 logo
- `compatibility.requirements`:按仓库「外部依赖披露」规范声明运行时、权限、连接三类前置。DesireCore
不打包、不分发、不授权、不安装、不代付 `lark-cli` 及其背后的飞书产品

## 顺带修正 / Incidental

根 `README.md` 的 Agent 清单停留在 `2` 个(遗漏 `wecom-assistant`),一并补齐为准确的 4
个;`manifest.json#stats.totalAgents` 3 → 4。

## 校验 / Verification

| 校验 | 结果 |
|---|---|
| `validate_catalog_metadata.py --require-complete` | **0
error**,sidecars 74,本条目零 warning |
| `validate-i18n.py` | 0 error |
| `test_validate_catalog_metadata.py` | 47/47 |
| 发布前敏感信息扫描(邮箱 / 飞书真实 ID / 租户组织标识 / 带 ID 链接 / 密钥形态 / 隐藏文件,全工作树) |
**零命中** |
| 文档内部链接 | 13 个链接全部命中真实文件,无断链 |

## 依赖 / Dependency

`requiredClientVersion: 10.0.143` —— 自动装齐依赖技能的能力来自主仓库
desirecore/desirecore#2587,该值按其合入后的首个发布版本填写。**若 #2587 未能进入
10.0.143,此值需回填修正**,否则用户在缺少该能力的版本上装完 Agent 会没有技能。

---------

Co-authored-by: yi-ge <jackyoncode@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-04 10:38:37 -04:00
yige 6c303ef21f feat(invoice-organizer): 声明为可安装并 pin 到已合并 commit / make Invoice Organizer installable (#118)
接 #117。那个 PR 只登记了条目本身(`availability: listing-only`),用户在市场里**看得到、装不了**。
本 PR 补齐可安装所需的证据链。

Follow-up to #117, which only listed the entry (`listing-only`) —
visible in the marketplace but
not installable. This PR supplies the evidence chain required for
installation.

## 改动 / Changes

- `agent.json` 新增 `contentSource`,pin 到 #117 的合并 commit `42a29e9`
- sidecar 的 `provenance.content` 与之**归一化后逐字一致**
(两侧字段名按各自 schema 写:agent.json 侧是 `repoUrl`(`marketPointerSchema`
的必填字段名),
sidecar 侧是 `url`;`normalizeContentSource` 里 `input.url ?? input.repoUrl`
把两者统一成 `url`,
  比对发生在归一化之后,取的是 `{kind, url, path, ref, sha256}` 五元组)
- `governance.compliance.reviewedRef` 绑定同一 commit;`reviewedAt` 与
  `timestamps.reviewedAt` 取同一天
- `governance.availability` 翻成 `installable`
- **移除** sidecar 的 `stewardship: "official"` 与 `branding.relationship:
"official"`

## 为什么移除 `stewardship: official`(这一条值得单独看)

`normalize/sidecar.ts` 只允许 `bundled-builtin` / `system-agent` /
`official-pointer`
三种受信来源自称 official。**inline agent 不在其中**,命中即
`catalog.sidecar-forbidden-provider-claim` —— **整份 sidecar 被丢弃**,
静默回落到 `agent.json` 派生的 legacy 默认值。

在 dev 实例上实测确认(同步到 `42a29e9` 之后):

```
客户端拿到的 governance:
  {"availability":"listing-only","license":{"state":"unknown"},
   "redistribution":"verify-package-terms","listingMaintainer":{...}}
sidecar 里写的却是:
  license: {state:"known", value:"MIT", evidencePath:"LICENSE"},  redistribution: "allowed"
catalogDiagnostics: null
```

也就是说:sidecar 被整份丢弃,而**维护者没有任何反馈**。

`dingtalk-workspace` 也有同样的 `stewardship: "official"`,它的 sidecar
**同样一直在被静默丢弃**
(实测它的客户端 governance 与本条目改之前完全一样)。这条不在本 PR 范围内,
建议单独处理;DesireCore 主仓库那边我另外记了一条「sidecar 被拒的诊断没有透出到任何 API」的缺口。

## 验证 / Verification

直接调用客户端的真实代码路径(不是照着文档推断):

```
hydrateCatalogSidecar                  success=true   diagnostics=[]
compareMarketCatalogConsistency        consistent=true  mismatches=[]
evaluateCatalogAcquisitionEligibility  allowed=true   reasons=[]

legacy  provenance.content: {"kind":"git","url":"https://github.com/desirecore/market.git",
                             "path":"agents/invoice-organizer","ref":"42a29e99a0…"}
sidecar provenance.content: {同上,逐字一致}
```

`compareMarketCatalogConsistency` 对 inline agent 会**逐字比对**
`provenance.content`;
不一致会让整份 sidecar 静默降级回 listing-only,而 Python 校验器对 inline 条目
直接跳过这项比对(`_validate_content_consistency` 对 inline 早退),抓不到。
所以这一项只能靠上面这条客户端侧的验证兜住。

## 校验 / Validation

```
validate_catalog_metadata.py --require-complete   0 error, 129 warning, agents=4, sidecars=74
validate-i18n.py                                  0 error, 129 warning
translate.py --check                              ok
gen-collection-children.py --check                ok
```
129 条 warning 全部来自 `skills/*` 的存量条目,`invoice-organizer` **零命中**。
2026-09-04 09:03:21 -04:00
yige 42a29e99a0 feat(invoice-organizer): 新增发票整理助手 Agent / add Invoice Organizer agent (#117)
新增官方 inline Agent「发票整理助手」(`invoice-organizer`)。

Adds an official inline Agent, **Invoice Organizer**, that turns
invoices scattered across
mailboxes and local folders into a reconcilable, reusable ledger.

## 它做什么 / What it does

七步固定流程,每一步幂等:**接入检查 → 收集 → 解析 → 去重 → 归档 → 台账 → 报告**。

- **收集**:从已接入的邮箱(Gmail / Outlook / IMAP)找出候选发票邮件,附件用 `MailOperations` 的
  `save_to` 直接落盘,base64 不进模型上下文
- **解析**:OFD(三个结构化来源分别处理)、PDF 文字层、扫描件走视觉;每个字段带 `extractedBy` 与置信度
- **去重**:发票号码为主键,跨格式识别同一张票(PDF 与照片、重复下载);近重复不自动合并
- **归档**:`归档/年/月/YYYYMMDD_销售方_金额_发票号码.ext`,原件一个不动
- **台账**:xlsx 四张表(明细 / 月度汇总 / 按销售方汇总 / 异常),发票号码强制文本格式;
  装不上 openpyxl 时降级为 UTF-8 BOM CSV
- **报告**:Markdown 月度报告,收尾固定报五个计数(范围 / 候选 / 成功 / 待复核 / 失败)
- **自动化**:邮件规则 `agent_handle` + `ManageSchedule` 定时出账

## 明确的能力边界 / Explicit boundaries

- **不做发票真伪查验**,也不暗示做过——只做形式校验与勾稽校验,给出官方查验平台入口让用户自己核验
- **不删除、不移动、不转发用户的邮件**
- **票面内容不外流**:不外发、不代发、不上传第三方接口或在线查验站点
- **不做汇率换算**;不承诺「已找全」,只报「在给定范围内找到 N 封候选、成功解析 M 张」

## 结构 / Structure

```
agents/invoice-organizer/
├── agent.json  persona.md  principles.md  LICENSE
├── USAGE.zh-CN.md  USAGE.en-US.md
├── catalog-metadata.v1.json      # availability: listing-only(可安装化见下)
├── assets/avatar.webp
└── skills/
    ├── invoice-workflow/         # 七步总纲、目录布局、落盘顺序、去重主键、幂等
    ├── invoice-extract/          # 三种载体的解析细则、置信度分档、特殊票据
    │   └── references/票面文本形态.md
    ├── invoice-ledger/           # 台账结构、人民币约定(覆盖 xlsx 技能的默认口径)
    │   └── references/月度报告模板.md
    └── invoice-automation/       # 邮件规则与定时调度的参数模板与排查
```

`manifest.json` 的 `stats.totalAgents` 3 → 4。

## 事实性核对 / Fact-checking

技能里引用的**每一个**端点 / 工具名 / 参数名 / 返回字段都对着 DesireCore 主仓库实现逐条核对过,
并经过一轮对抗式 review。review 抓到的、已修正的主要事实错误:

- OFD 一节原本只覆盖 2020 年式样;已改为按**三个来源**分述
  (内嵌附件 / 2024 数电票的 `Tags/CustomTag.xml` 标引 / `DocInfo/CustomDatas`),
  键名从 `Buyer/BuyerName` 改为真实的点号路径 `Buyer.BuyerName`,置信度按来源分档
- **`DocInfo/CustomDatas` 的「合计金额」是不含税金额**,误当 `totalAmount` 会让每张 2024
数电票少记税额
  ——已写成硬规则
- Gmail 本地缓存搜索的 `q` **实际只按主题过滤**(正文过滤在主题收窄之后才跑),
  原文写成「搜主题与正文」会导致静默漏邮件
- 「轮询只覆盖收件箱」只对 IMAP 成立,Gmail / Outlook 是整个邮箱
- `POST /rules/{id}/test` 走另一份内联实现、**没有 `matches_regex` 分支**,
  不能用它验证正则规则
- 邮件列表项里 Gmail / IMAP **是带** `attachments[]` 的,只有 Outlook 不带;
  `labelIds` 是 Gmail 专有

## 真机验证 / Verified on a live instance

在 dev 实例上以一句话指令处理 31 个混合文件(数电票 / 旧版票 / OFD / 扫描件 / 行程单,
外加重复、近重复、作废、零额与 4 个非发票负样本):

- 23 张归档,字段与夹具 ground truth **逐条吻合**
- 4 个非发票**全部正确拒绝**并写明理由(施工许可证 / 对账单 / 技术服务合同 / 邮件通知)
- 4 个跨格式重复(3 张扫描件 + 1 次重复下载)**全部靠发票号码主键识破**,隔离而非删除
- 近重复正确未合并;作废票归档但不计入合计;低置信度定额发票标为待复核
- 台账 xlsx 四张表、报告含五个计数、`SendUserMessage` 带附件交付
- `待整理/` 31 个原件一个未动

## 校验 / Validation

```
validate_catalog_metadata.py --require-complete   0 error, agents=4, sidecars=74   exit=0
validate-i18n.py                                  0 error                          exit=0
translate.py --check                                                               exit=0
gen-collection-children.py --check                                                 exit=0
```
129 条 warning 全部来自 `skills/*` 的存量条目,改前改后一字不差,`invoice-organizer` 零命中。
另核实:`agent.json` 过 `marketAgentSchema`(详情页)与收窄后过
`agentConfigSchema`(安装),
persona / principles 的 6 个 canonical key 用平台真实解析器全部解得出,全树敏感信息扫描通过
(所有公司名 / 税号 / 银行账号均为 `示例`/`示范`/`虚构`/`样例` 前缀的合成值)。

## 后续 / Follow-up

本 PR 为 `availability: listing-only`。可安装化需要把 `agent.json#contentSource` 与
sidecar 的 `provenance.content` **逐字一致地** pin 到本 PR 的合并 commit,
并补 `governance.compliance` 与 `timestamps.reviewedAt`——那是紧接着的第二个 PR。
2026-09-04 07:28:03 -04:00
yige 61c82782c4 fix(wecom-assistant): sidecar 显式声明 installPolicy/updatePolicy / declare install & update policy in sidecar (#116)
## 中文

sidecar 的 `spec` 未声明 `installPolicy` / `updatePolicy`,而 legacy 侧对双缺省派生为
`market` / `market`,导致 `compareMarketCatalogWithLegacy` 判定
`spec.agent.policy` 不一致,**整个 sidecar 被拒**(`sidecarRejected`)并回退
listing-only。

真机取证——客户端市场索引 `cache/market/index.json` 中该条目:

```json
"sidecarRejected": true,
"catalogDiagnostics": [
  {"code": "market.catalog-legacy-mismatch", "field": "governance.availability"},
  {"code": "market.catalog-legacy-mismatch", "field": "spec.agent.policy"}
]
```

本 PR 修掉其中的 `spec.agent.policy`。另一条 `governance.availability`
是**客户端侧的结构性缺陷**,不在本仓库范围:`market-agent-entry.client.schema.json` 等 5 个
market schema 均无 `availability` 字段且 `additionalProperties: false`,因此
pointer 条目的 legacy availability 恒为 `listing-only`,sidecar 声明
`installable` 必然 mismatch。主仓库已另开 PR 修复,客户端发版后本条目即可生效;在此之前旧客户端会降级为
listing-only 展示,不影响可用性。

校验:`validate_catalog_metadata.py` 0 error。

---

## English

The sidecar's `spec` omitted `installPolicy` / `updatePolicy`, while the
legacy side derives `market` / `market` from the double default.
`compareMarketCatalogWithLegacy` therefore flagged `spec.agent.policy`
as inconsistent and **rejected the whole sidecar**, falling back to
listing-only.

Verified against a live client's market index, which showed
`sidecarRejected: true` with diagnostics for both `spec.agent.policy`
and `governance.availability`.

This PR fixes the former. The latter is a **structural gap on the client
side**, outside this repository: none of the five market schemas carry
an `availability` field and all set `additionalProperties: false`, so a
pointer entry's legacy availability is always `listing-only` and any
sidecar declaring `installable` must mismatch. A separate PR in the main
repository addresses that; this entry becomes effective once the client
ships it. Older clients degrade to listing-only, which does not affect
usability.

Validation: 0 errors from `validate_catalog_metadata.py`.
2026-09-04 01:18:03 -04:00