flower-trellis 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/enhancements/MANIFEST.json +1 -1
  2. package/package.json +3 -3
  3. package/src/builtin-marketplaces/rd-guide.json +6 -3
  4. package/src/builtin-plugins/flower-plugin-author/plugin.json +6 -1
  5. package/src/builtin-plugins/flower-plugin-author/skills/flower-plugin-author/references/ci-and-review.md +2 -2
  6. package/src/commands/plugin-interactive.js +546 -38
  7. package/src/commands/plugin-remote.js +156 -10
  8. package/src/commands/plugin.js +35 -4
  9. package/src/lib/skill-catalog.js +20 -1
  10. package/src/lib/telemetry.js +2 -2
  11. package/src/lib/trellis-runner.js +82 -11
  12. package/src/plugin/application-service.js +81 -7
  13. package/src/plugin/auth/credential-store.js +25 -3
  14. package/src/plugin/auth/gitlab-credential-resolver.js +234 -0
  15. package/src/plugin/auth/gitlab-oauth.js +26 -5
  16. package/src/plugin/authoring/scaffold.js +6 -1
  17. package/src/plugin/authoring/templates/rd-guide/CODEOWNERS +1 -1
  18. package/src/plugin/authoring/templates/rd-guide/gitlab-ci.yml +2 -2
  19. package/src/plugin/authoring/templates/rd-guide/verify-integration-review.mjs +1 -1
  20. package/src/plugin/content-selection.js +189 -0
  21. package/src/plugin/contracts.js +21 -2
  22. package/src/plugin/formats/adapters.js +27 -3
  23. package/src/plugin/formats/normalized-package.js +126 -14
  24. package/src/plugin/gitlab/rest-client.js +21 -0
  25. package/src/plugin/install/content-projector.js +19 -7
  26. package/src/plugin/resolver/dependency-resolver.js +6 -0
  27. package/src/plugin/runtime-errors.js +1 -0
  28. package/src/plugin/schemas/marketplace-manifest.js +4 -1
  29. package/src/plugin/schemas/plugin-manifest.js +55 -3
  30. package/src/plugin/schemas/project-files.js +18 -0
  31. package/src/plugin/schemas/shared.js +10 -0
  32. package/src/plugin/sources/github-provider.js +1 -1
  33. package/src/plugin/sources/gitlab-provider.js +377 -51
  34. package/src/plugin/sources/user-source-store.js +17 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "syncedAt": "2026-08-26T00:54:30.975Z",
2
+ "syncedAt": "2026-08-26T01:20:11.756Z",
3
3
  "syncedFrom": "vendor/skill-garden",
4
4
  "sourceCommit": "124b592037eef542d7faf7ecb3be93b4bfd3aed0",
5
5
  "common": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flower-trellis",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "一键安装/升级 Trellis 并自动融合 skill-garden 强化包(默认 Claude + agents)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -70,9 +70,9 @@
70
70
  "commit-and-tag-version": "^12.7.3"
71
71
  },
72
72
  "flowerReleaseNotes": {
73
- "version": "0.6.1",
73
+ "version": "0.6.3",
74
74
  "source": "CHANGELOG.md",
75
- "body": "### ✨ 新功能 Features\n\n* **flower:** 同步 Check-All 门禁规则 ([739a07e](https://github.com/SilentFlower/flower-trellis/commit/739a07ee05211ab74a565892d277afb34dc3abdd))\n* **flower:** 同步任务完成态与检查报告优化 ([bb364bc](https://github.com/SilentFlower/flower-trellis/commit/bb364bc6af341ec23368ab94b798e677cc9580bb))\n* **flower:** 接入 Maven 验证并同步 continue 文案 ([3819d75](https://github.com/SilentFlower/flower-trellis/commit/3819d759ecdd3bf067d02c8eac48d38b787ba037))\n* **trellis:** 升级上游至 0.6.14 ([556285b](https://github.com/SilentFlower/flower-trellis/commit/556285b68c5723e13f7d55f4c801022c82e3b011))\n\n\n### 🐛 修复 Bug Fixes\n\n* **flower:** 同步 completedAt 归档兼容 ([78f715f](https://github.com/SilentFlower/flower-trellis/commit/78f715f3a0f2a9eaf9d0fde07b1f906a6b4548f7))\n* **flower:** 同步 Maven 验证修复 ([7d656af](https://github.com/SilentFlower/flower-trellis/commit/7d656af2a7975f7f1ffd5cff307f72cc482e9062))\n* **flower:** 同步实现后检查交接规则 ([6ff3e48](https://github.com/SilentFlower/flower-trellis/commit/6ff3e48821c1b5f2bd679440a045fa7fa9a16295))\n* **plugin:** 恢复 rd-guide 内置来源 ref ([c399f86](https://github.com/SilentFlower/flower-trellis/commit/c399f868a6ea96bf1beca616dc9548ef9a86bfb0))\n* **telemetry:** 更新安装监控上报地址 ([53d8b79](https://github.com/SilentFlower/flower-trellis/commit/53d8b79b374db095094f0fe8b107d54719d1c94f))\n* **telemetry:** 补全开发者身份回退 ([1f95dfe](https://github.com/SilentFlower/flower-trellis/commit/1f95dfea26ce8117e437d973369ad6140fa17843))\n\n\n### ♻️ 重构 Refactor\n\n* **flower:** 同步 Push 输出模板分层 ([b340825](https://github.com/SilentFlower/flower-trellis/commit/b340825036a782679e14f74f8064664966f0a1bf))\n\n\n### 📝 文档 Docs\n\n* 更新开发日志 ([29cdbc0](https://github.com/SilentFlower/flower-trellis/commit/29cdbc0dd0f7cf323f714f08270d08ef5dd8a107))",
75
+ "body": "### ✨ 新功能 Features\n\n* **plugin:** 对齐 RD Guide 的 Marketplace 包模型 ([e399d6e](https://github.com/SilentFlower/flower-trellis/commit/e399d6e70042256258431a4629f5efa15ba2f417))\n* **plugin:** 支持在非 Trellis 项目中管理通用 Skill ([0a9cd62](https://github.com/SilentFlower/flower-trellis/commit/0a9cd62ff3cd37971f5d65ea8500e4f51ed3a280))\n* **plugin:** 复用 GitLab 全局凭据 ([a3c6b16](https://github.com/SilentFlower/flower-trellis/commit/a3c6b1616b123ff0f7328ce5b2eace5eb631ae5b))\n* **plugin:** 支持 Marketplace Skill 子集选择 ([6406ccb](https://github.com/SilentFlower/flower-trellis/commit/6406ccbdbe982a885069a6a4af133fc132565a1c))\n\n\n### 🐛 修复 Bug Fixes\n\n* **plugin:** 加速 GitLab RD Guide Skill 清单读取 ([8bd1eac](https://github.com/SilentFlower/flower-trellis/commit/8bd1eac86ac32680d52c6fa715ece1b4c4ba99ef))",
76
76
  "truncated": false
77
77
  },
78
78
  "optionalDependencies": {
@@ -7,12 +7,15 @@
7
7
  "baseUrl": "https://gitlab.xhgjdev.com",
8
8
  "project": "digital-rd-governance/rd-guide",
9
9
  "ref": "main",
10
- "marketplacePath": ".flower-marketplace/marketplace.json",
10
+ "marketplacePath": ".flower-plugin/marketplace.json",
11
11
  "oauth": {
12
12
  "applicationId": "0f73e53d745450b6ab9596960b10a2ac1654d67c0941bae381f6dbbf6839ec04",
13
13
  "scopes": [
14
- "read_api",
15
- "read_repository"
14
+ "openid",
15
+ "profile",
16
+ "read_user",
17
+ "write_repository",
18
+ "api"
16
19
  ]
17
20
  }
18
21
  }
@@ -15,7 +15,12 @@
15
15
  },
16
16
  "content": {
17
17
  "skills": [
18
- "skills/flower-plugin-author"
18
+ {
19
+ "name": "flower-plugin-author",
20
+ "path": "skills/flower-plugin-author",
21
+ "version": "1.0.0",
22
+ "description": "Flower Plugin 作者工具"
23
+ }
19
24
  ]
20
25
  }
21
26
  }
@@ -3,14 +3,14 @@
3
3
  rd-guide CI 对完整 Marketplace 运行:
4
4
 
5
5
  ```bash
6
- flower-trellis plugin validate .flower-marketplace/marketplace.json --subject marketplace --checkout-map .flower-marketplace/checkouts.json --ci --json
6
+ flower-trellis plugin validate .flower-plugin/marketplace.json --subject marketplace --checkout-map .flower-plugin/checkouts.json --ci --json
7
7
  ```
8
8
 
9
9
  checkout map 的 key 使用 `<source>/<plugin>@<version>`,value 使用
10
10
  `{"path":"checkouts/...","commit":"<40-sha>"}`,同时绑定 CI 工作区路径和实际固定 commit。
11
11
  CI 必须拒绝可变 ref、占位或不匹配 commit、摘要或版本不一致、依赖不闭合、兼容范围无效和 capability 越权。
12
12
 
13
- `review.required=true` 时,CI 必须运行随模板分发的 `verify-integration-review.mjs`。该脚本要求 `.flower-marketplace/integration-review.json` 使用以下结构并绑定本次 Marketplace digest:
13
+ `review.required=true` 时,CI 必须运行随模板分发的 `verify-integration-review.mjs`。该脚本要求 `.flower-plugin/integration-review.json` 使用以下结构并绑定本次 Marketplace digest:
14
14
 
15
15
  ```json
16
16
  {