mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 23:19:28 +08:00
68e2d4c98083d1e57dcc6a22e01f61abf435a737
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9d053cace7 |
docs: 交付203兼容团队更新指南 (#260)
## 变更说明 / Description manage-teams 1.5.1 的最低客户端更正为 **10.0.203**。正式 release v10.0.203(源码 `33417de26273e31625317d2637a62bda4a9ffeae`)已包含团队成员统一更新主体:lock 只记录观察版本,已有成员保留本机内容,内容更新复用 Agent Sync,forceUpdate 仅保留兼容回执。 保留用户已决定的 tag/完整 commit 默认分支规则:精确来源 pin 与跟踪分支分开,同仓 repository.branch 优先,否则取真实远端 symbolic HEAD,并核对分支 OID。双语同时明确:203 尚不含产品 PR #5930 的这组补充,相关新装/无上游采纳入口会失败或延后,sourceConflict 也可能反映 pin 与跟踪分支差异。保留现有成员、报告具体限制并继续其它工作;不把旧“请用户选分支”恢复为通用策略,不猜未来最低版本。 Both locales set the real supported minimum to **10.0.203**, whose released source contains the main unified-member-update behavior. They retain the decided remote-default-branch policy while explicitly documenting the 203 limitations for the later #5930 tag/commit paths. No unsupported capability is attributed to 203, no future version is invented, and existing members and local history remain protected. 普通追加整合最新 main 后,本 PR 相对 main 仍只改 manage-teams 的三个文件;双语、sidecar、日期与官方生产摘要算法一致。未改许可、凭据、SDK、产品源码或授权。产品主体来源为 https://github.com/desirecore/desirecore/pull/5814 ,默认分支补充来源为 https://github.com/desirecore/desirecore/pull/5930 。 ## 验证 / Validation - `uv run scripts/i18n/validate-i18n.py skills/manage-teams`:0 errors,104 条已有治理证据提示。 - `uv run scripts/i18n/translate.py --check skills/manage-teams`:通过;双语人工同步,source_hash 使用当前生产函数计算,未调用翻译模型。 - `uv run scripts/catalog/validate_catalog_metadata.py --require-complete`:0 errors,104 条已有提示。 - 完整三文件 diff、通用示例及公开信息边界核对;检查完整工作树(包含隐藏、忽略及二进制文件,排除 .git)、本次 Git 与 PR 文本。 - 正常准确 head 门禁及 review 条件另取真实终态。未把源码祖先或旧验证代替已下载安装包运行验收。 Scoped i18n, translation freshness and strict catalog checks pass. The source hash is computed using the repository's production function without any model call. Complete diffs and the public-information boundary are reviewed. Exact-head merge checks remain required. 市场正常合入后,内置 market ZIP 将由主仓独立普通 PR 从已合入的唯一来源同步;不会从 draft 打包,也不会追溯改变已经发布的 203 安装器。本 PR 不发布客户端,不启用 Run writer v2。 After this market PR merges normally, a separate product PR will synchronize the bundled ZIP from the merged source. Existing released installers are unchanged; this is guide/source-seed delivery, not an application release or Run writer v2 activation. |
||
|
|
d461378b32 |
feat(manage-teams): restore archived teams (1.5.0) (#234)
团队解散后只能看到归档目录,缺少列出与恢复归档的入口。技能补充 list_archived / restore 两个动作、按 archiveId 恢复、原 ID 被占用或原组长 缺失时的处理,以及对恢复回执(规则核准待审阅、工作目录回退、缺失成员、 警告)的逐项转达;技能增版为 1.5.0,最低客户端 10.0.192,旧客户端不应加载 新增动作。 Documents the new list_archived and restore actions of ManageTeam: finding archives, restoring by archiveId, passing a new name when the original team ID is taken or a supervisor when the original one no longer exists, and relaying every item of the restore receipt (pending rule approval, workdir fallback, missing members, warnings). Bumps the Skill to 1.5.0 with a 10.0.192 client floor so older tool ABIs cannot load the new actions. Validation: i18n/schema/catalog checks passed with 103 pre-existing governance/provenance warnings (identical to origin/main); 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#5046. Client implementation: https://github.com/desirecore/desirecore/pull/5425. 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 commit text were scanned for credential shapes and manually reviewed for customer-neutral content. No private token list was supplied or recorded. |
||
|
|
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. |
||
|
|
e77c658958 |
feat: 市场支持团队条目类型并上架合同审查团队 (#110)
## 变更 / What
市场此前只有 `agents` 与 `skills` 两类条目。本 PR 加入**团队(teams)**条目类型,并上架第一条真实团队
listing。
The market supported only `agents` and `skills`. This PR adds a
**teams** entry type and lists the first real team.
## 一、支持团队条目类型
「支持一种新条目类型」实际涉及 4 组共 11 个文件,比表面看到的多:
**客户端契约快照**
- 新增 `schemas/market-team-entry.client.schema.json`,用 esbuild 打包客户端
`packages/schemas/src/market.ts` 后导出生成。用同样方法重新生成
`market-agent-entry.client.schema.json` 验证过管线——字节完全一致(含属性顺序),确认不是手工誊抄。
**Sidecar schema**
- `identity.kind` 枚举加 `team`;新增 `$defs.teamSpec`;接入 `spec.oneOf` 与
kind→spec 派发
**校验器(工作量主要在这里)**
- `scripts/catalog/validate_catalog_metadata.py`:`load_legacy`
原先硬编码只认两个根目录。抽出 `CATALOG_ROOTS` 常量同时驱动允许的父目录集合与错误文案;按 kind 分派客户端 schema
校验;`teams` 进 stats 与 `--require-complete` 覆盖统计;把**严格 provenance
比对**与「可安装 pointer 必须自带不可变 ref」两道门禁扩展到团队
- `scripts/i18n/validate-i18n.py`:**它独立重算计数并逐个校验 `entry.json`**,不接团队会漏校
- `.github/workflows/i18n-validate.yml`:变更检测的 grep 不含 `teams/`——**一个只改
teams 的 PR 会报「无 i18n 相关变更,跳过校验」然后零校验通过**
- 测试:`test_validate_catalog_metadata.py` 29→47,`test_validate_i18n.py`
9→17
**顺带修正一条本就不对的规则**:`icon` 此前被要求「每个 entry.json 都必须有非空内联 SVG」,但运行时 schema 里
`marketAgentSchema` 与 `marketTeamSchema` **都没有 `icon` 字段**(只有 skill
有)。也就是说这条规则对 Agent pointer 同样在强加死重量,只因本仓库暂无 agent pointer 条目而未暴露。改为
`ICON_RENDERED_KINDS = {"skill"}`,agent/team 声明 icon
时给**警告**而非错误,文案说明「下一个维护者会以为改它能改变卡片」。
## 二、上架合同审查团队
`teams/contract-review-team/`(`entry.json` + sidecar)。
**团队条目是 fork 指针卡,不分发正文**:市场只存展示元数据 + git-only `source`,真实定义(`team.json`
/ `members.json` / `shared/`)在 `source.repoUrl` 指向的仓库里。安装即
`forkTeam`,更新即 `git pull`——组合固定,因此**没有** `installPolicy` /
`updatePolicy`。
| 字段 | 值 | 依据 |
|---|---|---|
| `source.ref` | `73cd87a9901cc548871927e9d5dbec8e4cc6c2b1` | v0.1.1
的**完整 SHA**。tag 不是可复现 pin,validator 有测试专门拒绝 |
| `latestVersion` | `0.1.1` | 上游真实 tag,与 `release.version` 交叉校验 |
| `license` | `MIT` | 上游仓库真有 LICENSE,已在 pinned ref 的快照中复验 |
| `redistribution` | `source-pointer-only` |
市场从不打包团队正文,只给指针——这是交付形态,与许可证宽松与否无关 |
| `requiredClientVersion` | `10.0.137` | 六个成员都声明了 `FileDigest`
内置工具,它随该版本发布 |
| `memberCount` / `memberNames` | 6 / 5 名 | schema 规定前者**含**组长、后者**不含**
|
| `availability` | `listing-only` | 见下 |
**`availability` 为什么不是 `installable`**:四项证据满足两项(不可变 pin ✓、已知 license
✓),缺的 `reviewedAt` 与 `governance.compliance`
本质是**一次尚未发生的治理审查**——需要具名方在具体日期针对这个确切 ref 审过许可合规、第三方内容与商标使用。没发生的事不能写进目录。
补充一个事实:本仓库**零个 sidecar 有 `compliance` 块,29 个 pointer 条目全是
listing-only**,`installable` 路径从未在任何真实条目上走过。这不阻止安装——fork 由 `source` 驱动。
**`license.evidencePath` 的基准此前是未定义的**:schema 只说
`safeRelativePath`,没规定相对谁。仓库里仅有的两个先例(`guizang-ppt`、`presentation-forge`)都是
vendored 技能,LICENSE 物理上在条目目录里。按那个读法,pointer 条目写 `evidencePath`
断言的是市场目录下有该文件——对 pointer 永远不成立。新增 `license-evidence` 规则按条目形态分派:vendored
要求文件存在(error),pointer 要求条目已 pin(warning),两种读法写进 README。
## 校验 / Validation
```
test_validate_catalog_metadata.py 47 tests OK
test_validate_i18n.py 17 tests OK
test_collection_generator.py exit 0
validate_catalog_metadata.py --require-complete
0 error, 116 warning (agents=1, teams=1, publishableSkills=62, sidecars=64)
validate-i18n.py / --online 0 error, 116 warning
translate.py --check exit 0
gen-collection-children.py --check exit 0
```
116 warnings 即加入团队之前的基线——**本条 listing 贡献 0 个警告**。
真实条目上的反向控制(跑在 rsync 副本上,仓库保持干净):
```
source.kind=zip → team-entry-schema (error)
install/updatePolicy 出现 → team-entry-schema (error)
requiredClientVersion 漂移 → legacy-consistency (error)
memberCount 漂移 → legacy-consistency (error)
provenance ref 漂移 → legacy-consistency (error)
可安装但无不可变 ref → installable-evidence (error)
evidencePath 在未 pin 的 pointer → license-evidence (warning)
```
另用**客户端真实校验器**(`parseMarketTeamEntry`,不是快照)验证条目通过,且多写一个字段会被拒。
## 公开信息边界 / Public information boundary
全树扫描无新增命中。团队内容使用「某某科技(北京)有限公司」这类标准中文占位。
---------
Co-authored-by: yi-ge <mizan57533@gmail.com>
|
||
|
|
2891f9dc06 |
feat(skills): 补全团队管理操作规范 (#92)
## 中文 ### 变更 - 将 manage-teams 升级到 1.3.0,并设置最低客户端版本 10.0.108 - 补齐 ManageTeam 全部 14 个 action 的用途、参数与风险边界 - 增加创建前检查、工作目录选择、Smart 成员路由、组织更新、头像、团队仓库、远程同步与失败恢复流程 - 明确远程操作必须经过 ManageTeam 的原因是供应链校验与审批,而不是假设 Agent 永远拿不到凭据 - 保持 disable-model-invocation: true,只在需要管理团队时按需加载 ### 测试 - uv run --quiet scripts/i18n/test_validate_i18n.py - uv run --quiet scripts/i18n/validate-i18n.py - uv run --quiet scripts/i18n/translate.py --check - git diff --check ## English ### Changes - Upgrade manage-teams to 1.3.0 and require client 10.0.108 - Cover all 14 ManageTeam actions with their parameters and risk boundaries - Add preflight checks, workdir selection, Smart member routing, organization updates, avatars, team repositories, remote synchronization, and failure recovery - Clarify that remote operations must use ManageTeam for supply-chain validation and approval, not because Agents can never access credentials - Keep disable-model-invocation: true so the Skill is loaded only when team management is needed ### Tests - uv run --quiet scripts/i18n/test_validate_i18n.py - uv run --quiet scripts/i18n/validate-i18n.py - uv run --quiet scripts/i18n/translate.py --check - git diff --check |
||
|
|
8bdda4afb1 |
feat: skills i18n 改造(schemaVersion 1.1,零向后兼容) (#1)
* feat: skills i18n 改造 — schemaVersion 1.1,零向后兼容
把 21 个 skills + 1 个 agent + manifest/categories 全量迁移到 schemaVersion 1.1
的 i18n 结构,配套 CI AI 翻译流水线(GitHub Models)与本地工具链。
## 关键变更
### 数据结构(破坏性,schemaVersion 1.0 → 1.1)
- SKILL.md: 顶层 name 改为 ASCII slug(== 目录名,符合 agentskills.io 规范);
中文显示名/short_desc/description 全部迁入 metadata.i18n.<locale>
- agents/<id>/agent.json: shortDesc/fullDesc/tags/persona.{role,traits} 迁入
i18n.<locale>;changelog[].changes 改为 { <locale>: string[] } 对象
- categories.json: 每个分类的 label/description 迁入 i18n.<locale>,顶层只剩
color/icon
- manifest.json: 加 supportedLocales / defaultLocale;顶层 description 迁入
i18n.<locale>
### Body 文件结构
- 根 SKILL.md = frontmatter + default_locale (en-US) body
- SKILL.<locale>.md = 各 locale 的 markdown body(首行 <!-- locale: xx --> 自校验)
### 工具链(scripts/i18n/)
- glossary.json: zh→en 术语表 + do_not_translate 白名单
- schema/skill-frontmatter.schema.json: i18n frontmatter JSON Schema
- validate-i18n.py: 8 条校验规则(name 合规 / locale 完整性 / hash 一致性等)
- translate.py: GitHub Models / Anthropic 双 backend,sha256 增量翻译
- migrate.py: 一次性迁移脚本(旧格式 → i18n 结构)
### CI(.github/workflows/)
- i18n-validate.yml: PR 触发跑 validate + translate --check
- i18n-translate.yml: PR 触发用 GitHub Models(默认 openai/gpt-5-mini)翻译缺失
locale,自动追加 commit;可切到 ANTHROPIC_API_KEY 走 Claude
### 文档
- docs/I18N.md: 作者贡献指南(schema 说明 / 提交流程 / 常见问题)
- README.md: 加多语言段落
## 验证
- uv run scripts/i18n/validate-i18n.py: OK,49 文件 0 错误
- uv run scripts/i18n/translate.py --check: 0 stale locale
- 21 skills 标题数 zh-CN == en-US 严格对齐(最大 66=66)
- skills-ref 规范校验:全部通过(顶层 name ASCII slug + description 单字段)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(i18n): 修复 PR #1 review 反馈的 6 项问题
- schema: translated_by 正则放宽为 ^(human|ai:[A-Za-z0-9._:/-]+)$,接受
'ai:github:openai/gpt-5-mini' 这类 backend:model 形式(CI 翻译输出格式)
- README + docs/I18N.md: 修正"CI 用 Claude API"误导描述,正确说明默认是
GitHub Models(openai/gpt-5-mini)+ GITHUB_TOKEN,可选切到 Anthropic
- skills/minimax-tts/SKILL.md & SKILL.zh-CN.md: 删除多余的 ``` 闭合,避免
Markdown 后续渲染错乱
- skills/docx/SKILL.md: 翻译时丢失的 • Unicode escape 示例已恢复,
与 zh-CN 版本对齐
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|