release-skill 0.7.6 → 0.7.7

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 (48) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codebuddy-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +2 -2
  5. package/.kimi-plugin/plugin.json +1 -1
  6. package/CHANGELOG.md +20 -0
  7. package/INSTALL.md +2 -2
  8. package/INSTALL.zh-CN.md +2 -2
  9. package/README.md +15 -12
  10. package/README.zh-CN.md +14 -11
  11. package/adapters/claude/.claude-plugin/marketplace.json +1 -1
  12. package/adapters/claude/.claude-plugin/plugin.json +1 -1
  13. package/adapters/claude/bin/release-skill.bundle.mjs +1725 -1156
  14. package/adapters/claude/schemas/release-plan.schema.json +47 -0
  15. package/adapters/claude/schemas/release-project.schema.json +24 -0
  16. package/adapters/claude/skills/release-prepare/SKILL.md +4 -0
  17. package/adapters/codex/.codex-plugin/plugin.json +2 -2
  18. package/adapters/codex/bin/release-skill.bundle.mjs +1725 -1156
  19. package/adapters/codex/schemas/release-plan.schema.json +47 -0
  20. package/adapters/codex/schemas/release-project.schema.json +24 -0
  21. package/adapters/codex/skills/release-prepare/SKILL.md +4 -0
  22. package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
  23. package/adapters/kimi/bin/release-skill.bundle.mjs +1725 -1156
  24. package/adapters/kimi/schemas/release-plan.schema.json +47 -0
  25. package/adapters/kimi/schemas/release-project.schema.json +24 -0
  26. package/adapters/kimi/skills/release-prepare/SKILL.md +4 -0
  27. package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
  28. package/adapters/workbuddy/bin/release-skill.bundle.mjs +1725 -1156
  29. package/adapters/workbuddy/schemas/release-plan.schema.json +47 -0
  30. package/adapters/workbuddy/schemas/release-project.schema.json +24 -0
  31. package/adapters/workbuddy/skills/release-prepare/SKILL.md +4 -0
  32. package/bin/release-skill-cli.mjs +116 -47
  33. package/bin/release-skill.bundle.mjs +1725 -1156
  34. package/package.json +1 -1
  35. package/platform-manifest.json +4 -4
  36. package/references/02-project-config.md +18 -0
  37. package/schemas/release-plan.schema.json +47 -0
  38. package/schemas/release-project.schema.json +24 -0
  39. package/skills/release-prepare/SKILL.md +4 -0
  40. package/skills-src/release-prepare/SKILL.md +4 -0
  41. package/src/adapters/git-github.mjs +139 -26
  42. package/src/commands/prepare.mjs +72 -3
  43. package/src/commands/publish.mjs +36 -0
  44. package/src/commands/verify.mjs +53 -1
  45. package/src/core/config.mjs +31 -0
  46. package/src/core/plan.mjs +78 -0
  47. package/src/core/release-assets.mjs +54 -0
  48. package/src/core/source-authority.mjs +127 -3
@@ -53,6 +53,53 @@
53
53
  }
54
54
  }
55
55
  },
56
+ "publicSourceAuthorityReceipt": {
57
+ "type": "object",
58
+ "required": [
59
+ "coordinatorUnitId",
60
+ "subjectUnitIds",
61
+ "asset"
62
+ ],
63
+ "additionalProperties": false,
64
+ "properties": {
65
+ "coordinatorUnitId": {
66
+ "type": "string",
67
+ "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$"
68
+ },
69
+ "subjectUnitIds": {
70
+ "type": "array",
71
+ "minItems": 1,
72
+ "uniqueItems": true,
73
+ "items": {
74
+ "type": "string",
75
+ "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$"
76
+ }
77
+ },
78
+ "asset": {
79
+ "type": "object",
80
+ "required": [
81
+ "name",
82
+ "path",
83
+ "sha256"
84
+ ],
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "name": {
88
+ "const": "source-authority-receipt.json"
89
+ },
90
+ "path": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$"
94
+ },
95
+ "sha256": {
96
+ "type": "string",
97
+ "pattern": "^[a-f0-9]{64}$"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ },
56
103
  "baseline": {
57
104
  "type": "object",
58
105
  "required": [
@@ -44,6 +44,30 @@
44
44
  }
45
45
  }
46
46
  },
47
+ "publicSourceAuthorityReceipt": {
48
+ "type": "object",
49
+ "description": "Optional public source-authority receipt uploaded to one coordinator GitHub Release after all subject npm tarballs are frozen.",
50
+ "required": [
51
+ "coordinatorUnitId",
52
+ "subjectUnitIds"
53
+ ],
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "coordinatorUnitId": {
57
+ "type": "string",
58
+ "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$"
59
+ },
60
+ "subjectUnitIds": {
61
+ "type": "array",
62
+ "minItems": 1,
63
+ "uniqueItems": true,
64
+ "items": {
65
+ "type": "string",
66
+ "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$"
67
+ }
68
+ }
69
+ }
70
+ },
47
71
  "releaseUnits": {
48
72
  "type": "array",
49
73
  "minItems": 1,
@@ -40,6 +40,10 @@ description: Freeze an immutable release plan with local configuration, document
40
40
 
41
41
  若用户明确要求 GitHub+npm 生产发布,加入 `--production`。该模式还会封存独立
42
42
  Git commit/tree 和 npm tarball,并把路径、SHA/integrity、branch/tag 写入计划。
43
+ 配置声明 `publicSourceAuthorityReceipt` 时,prepare 必须在所有 subject npm tarball
44
+ 冻结后生成 `source-authority-receipt.json`,并把该文件的路径与 SHA-256 绑定到
45
+ coordinator unit 的 `github-release` action。该能力不支持非生产 prepare;不得手工
46
+ 补写 receipt 或把私有 plan/run 字段复制进公开文件。
43
47
  每个 npm tarball 在计划落盘前必须静态验证 `package.json` 的具体
44
48
  `bin`/`main`/`module`/`types`/`typings`/`exports` 入口均为 tarball 内普通文件;
45
49
  该门禁不依赖项目是否配置 `requiredPublicFiles` 或 `smokeBin`。通配符 exports 不做
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"