release-skill 0.9.1 → 0.9.4

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 (151) 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 +78 -0
  7. package/INSTALL.md +2 -2
  8. package/INSTALL.zh-CN.md +2 -2
  9. package/README.md +56 -26
  10. package/README.zh-CN.md +47 -23
  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/consumer-contract-vectors.json +7 -7
  14. package/adapters/claude/bin/error-codes.json +1 -1
  15. package/adapters/claude/bin/foundation-resource-binding.json +1 -1
  16. package/adapters/claude/bin/registry.json +22 -1
  17. package/adapters/claude/bin/release-skill.bundle.mjs +4564 -1997
  18. package/adapters/claude/bin/rules.json +1 -1
  19. package/adapters/claude/schemas/release-project.schema.json +4 -0
  20. package/adapters/claude/schemas/release-run.schema.json +41 -1
  21. package/adapters/claude/skills/release-config/SKILL.md +5 -3
  22. package/adapters/claude/skills/release-docs/SKILL.md +4 -2
  23. package/adapters/claude/skills/release-finish/SKILL.md +2 -0
  24. package/adapters/claude/skills/release-help/SKILL.md +18 -3
  25. package/adapters/claude/skills/release-marketplace/SKILL.md +3 -1
  26. package/adapters/claude/skills/release-prepare/SKILL.md +12 -2
  27. package/adapters/claude/skills/release-publish/SKILL.md +17 -10
  28. package/adapters/claude/skills/release-verify/SKILL.md +2 -0
  29. package/adapters/claude/src/schemas/executable-identity-observation.schema.json +162 -0
  30. package/adapters/claude/src/schemas/filesystem-tree-observation.schema.json +18 -2
  31. package/adapters/claude/src/schemas/plugin-verification-request.schema.json +147 -22
  32. package/adapters/claude/src/schemas/plugin-verification-result.schema.json +436 -18
  33. package/adapters/claude/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  34. package/adapters/claude/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  35. package/adapters/codex/.codex-plugin/plugin.json +2 -2
  36. package/adapters/codex/bin/consumer-contract-vectors.json +7 -7
  37. package/adapters/codex/bin/error-codes.json +1 -1
  38. package/adapters/codex/bin/foundation-resource-binding.json +1 -1
  39. package/adapters/codex/bin/registry.json +22 -1
  40. package/adapters/codex/bin/release-skill.bundle.mjs +4564 -1997
  41. package/adapters/codex/bin/rules.json +1 -1
  42. package/adapters/codex/schemas/release-project.schema.json +4 -0
  43. package/adapters/codex/schemas/release-run.schema.json +41 -1
  44. package/adapters/codex/skills/release-config/SKILL.md +5 -3
  45. package/adapters/codex/skills/release-docs/SKILL.md +4 -2
  46. package/adapters/codex/skills/release-finish/SKILL.md +2 -0
  47. package/adapters/codex/skills/release-help/SKILL.md +18 -3
  48. package/adapters/codex/skills/release-marketplace/SKILL.md +3 -1
  49. package/adapters/codex/skills/release-prepare/SKILL.md +12 -2
  50. package/adapters/codex/skills/release-publish/SKILL.md +17 -10
  51. package/adapters/codex/skills/release-verify/SKILL.md +2 -0
  52. package/adapters/codex/src/schemas/executable-identity-observation.schema.json +162 -0
  53. package/adapters/codex/src/schemas/filesystem-tree-observation.schema.json +18 -2
  54. package/adapters/codex/src/schemas/plugin-verification-request.schema.json +147 -22
  55. package/adapters/codex/src/schemas/plugin-verification-result.schema.json +436 -18
  56. package/adapters/codex/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  57. package/adapters/codex/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  58. package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
  59. package/adapters/kimi/bin/consumer-contract-vectors.json +7 -7
  60. package/adapters/kimi/bin/error-codes.json +1 -1
  61. package/adapters/kimi/bin/foundation-resource-binding.json +1 -1
  62. package/adapters/kimi/bin/registry.json +22 -1
  63. package/adapters/kimi/bin/release-skill.bundle.mjs +4564 -1997
  64. package/adapters/kimi/bin/rules.json +1 -1
  65. package/adapters/kimi/schemas/release-project.schema.json +4 -0
  66. package/adapters/kimi/schemas/release-run.schema.json +41 -1
  67. package/adapters/kimi/skills/release-config/SKILL.md +5 -3
  68. package/adapters/kimi/skills/release-docs/SKILL.md +4 -2
  69. package/adapters/kimi/skills/release-finish/SKILL.md +2 -0
  70. package/adapters/kimi/skills/release-help/SKILL.md +18 -3
  71. package/adapters/kimi/skills/release-marketplace/SKILL.md +3 -1
  72. package/adapters/kimi/skills/release-prepare/SKILL.md +12 -2
  73. package/adapters/kimi/skills/release-publish/SKILL.md +17 -10
  74. package/adapters/kimi/skills/release-verify/SKILL.md +2 -0
  75. package/adapters/kimi/src/schemas/executable-identity-observation.schema.json +162 -0
  76. package/adapters/kimi/src/schemas/filesystem-tree-observation.schema.json +18 -2
  77. package/adapters/kimi/src/schemas/plugin-verification-request.schema.json +147 -22
  78. package/adapters/kimi/src/schemas/plugin-verification-result.schema.json +436 -18
  79. package/adapters/kimi/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  80. package/adapters/kimi/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  81. package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
  82. package/adapters/workbuddy/bin/consumer-contract-vectors.json +7 -7
  83. package/adapters/workbuddy/bin/error-codes.json +1 -1
  84. package/adapters/workbuddy/bin/foundation-resource-binding.json +1 -1
  85. package/adapters/workbuddy/bin/registry.json +22 -1
  86. package/adapters/workbuddy/bin/release-skill.bundle.mjs +4564 -1997
  87. package/adapters/workbuddy/bin/rules.json +1 -1
  88. package/adapters/workbuddy/schemas/release-project.schema.json +4 -0
  89. package/adapters/workbuddy/schemas/release-run.schema.json +41 -1
  90. package/adapters/workbuddy/skills/release-config/SKILL.md +5 -3
  91. package/adapters/workbuddy/skills/release-docs/SKILL.md +4 -2
  92. package/adapters/workbuddy/skills/release-finish/SKILL.md +2 -0
  93. package/adapters/workbuddy/skills/release-help/SKILL.md +18 -3
  94. package/adapters/workbuddy/skills/release-marketplace/SKILL.md +3 -1
  95. package/adapters/workbuddy/skills/release-prepare/SKILL.md +12 -2
  96. package/adapters/workbuddy/skills/release-publish/SKILL.md +17 -10
  97. package/adapters/workbuddy/skills/release-verify/SKILL.md +2 -0
  98. package/adapters/workbuddy/src/schemas/executable-identity-observation.schema.json +162 -0
  99. package/adapters/workbuddy/src/schemas/filesystem-tree-observation.schema.json +18 -2
  100. package/adapters/workbuddy/src/schemas/plugin-verification-request.schema.json +147 -22
  101. package/adapters/workbuddy/src/schemas/plugin-verification-result.schema.json +436 -18
  102. package/adapters/workbuddy/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  103. package/adapters/workbuddy/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  104. package/bin/consumer-contract-vectors.json +7 -7
  105. package/bin/error-codes.json +1 -1
  106. package/bin/foundation-resource-binding.json +1 -1
  107. package/bin/registry.json +22 -1
  108. package/bin/release-skill-cli.mjs +58 -2
  109. package/bin/release-skill.bundle.mjs +4564 -1997
  110. package/bin/rules.json +1 -1
  111. package/package.json +5 -5
  112. package/platform-manifest.json +4 -4
  113. package/references/.render-manifest.json +4 -4
  114. package/references/01-state-machine.md +34 -1
  115. package/references/02-project-config.md +20 -0
  116. package/references/05-evidence-and-errors.md +2 -2
  117. package/schemas/release-project.schema.json +4 -0
  118. package/schemas/release-run.schema.json +41 -1
  119. package/skills/release-config/SKILL.md +5 -3
  120. package/skills/release-docs/SKILL.md +4 -2
  121. package/skills/release-finish/SKILL.md +2 -0
  122. package/skills/release-help/SKILL.md +18 -3
  123. package/skills/release-marketplace/SKILL.md +3 -1
  124. package/skills/release-prepare/SKILL.md +12 -2
  125. package/skills/release-publish/SKILL.md +17 -10
  126. package/skills/release-verify/SKILL.md +2 -0
  127. package/skills-src/release-config/SKILL.md +5 -3
  128. package/skills-src/release-docs/SKILL.md +4 -2
  129. package/skills-src/release-finish/SKILL.md +2 -0
  130. package/skills-src/release-help/SKILL.md +18 -3
  131. package/skills-src/release-marketplace/SKILL.md +3 -1
  132. package/skills-src/release-prepare/SKILL.md +12 -2
  133. package/skills-src/release-publish/SKILL.md +17 -10
  134. package/skills-src/release-verify/SKILL.md +2 -0
  135. package/src/commands/post-release-local.mjs +169 -16
  136. package/src/commands/prepare.mjs +321 -11
  137. package/src/commands/route.mjs +597 -18
  138. package/src/commands/setup.mjs +2 -0
  139. package/src/commands/ship.mjs +183 -2
  140. package/src/commands/verify.mjs +21 -0
  141. package/src/core/adoption-assessment.mjs +59 -0
  142. package/src/core/foundation-plugin-verification.mjs +233 -1
  143. package/src/core/hook-cache.mjs +318 -26
  144. package/src/core/hooks.mjs +8 -1
  145. package/src/producers/foundation-resource-projection.mjs +3 -3
  146. package/src/schemas/executable-identity-observation.schema.json +162 -0
  147. package/src/schemas/filesystem-tree-observation.schema.json +18 -2
  148. package/src/schemas/plugin-verification-request.schema.json +147 -22
  149. package/src/schemas/plugin-verification-result.schema.json +436 -18
  150. package/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  151. package/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "kind": "skill-family.contracts.rules",
4
- "contractsVersion": "1.14.0",
4
+ "contractsVersion": "1.15.0",
5
5
  "budget": {
6
6
  "firstVersionMax": 20,
7
7
  "absoluteMax": 30,
@@ -791,6 +791,10 @@
791
791
  "items": {
792
792
  "type": "string"
793
793
  }
794
+ },
795
+ "preHookPublicSurfaceCheck": {
796
+ "type": "boolean",
797
+ "description": "Run the ephemeral public-surface closure gate before declared hooks"
794
798
  }
795
799
  }
796
800
  }
@@ -601,7 +601,47 @@
601
601
  "foundationStatus": { "const": "observed" },
602
602
  "payloadMatches": { "const": true },
603
603
  "observationDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
604
- "observedAt": { "type": "string", "format": "date-time" }
604
+ "observedAt": { "type": "string", "format": "date-time" },
605
+ "extraInstalledPaths": {
606
+ "type": "array",
607
+ "minItems": 1,
608
+ "uniqueItems": true,
609
+ "items": {
610
+ "type": "string",
611
+ "pattern": "^(?!/)(?!\\.\\/)(?!.*\\\\)(?!.*:)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*\\/\\/)(?!.*\\u0000)(?!.*\\/$).+$"
612
+ }
613
+ },
614
+ "extraInstalledLinks": {
615
+ "type": "array",
616
+ "minItems": 1,
617
+ "uniqueItems": true,
618
+ "items": {
619
+ "type": "object",
620
+ "additionalProperties": false,
621
+ "required": ["path", "targetBase64", "bytes", "statMode"],
622
+ "properties": {
623
+ "path": {
624
+ "type": "string",
625
+ "pattern": "^(?!/)(?!\\.\\/)(?!.*\\\\)(?!.*:)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*\\/\\/)(?!.*\\u0000)(?!.*\\/$).+$"
626
+ },
627
+ "targetBase64": {
628
+ "type": "string",
629
+ "minLength": 4,
630
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
631
+ },
632
+ "bytes": {
633
+ "type": "integer",
634
+ "minimum": 1,
635
+ "maximum": 9007199254740991
636
+ },
637
+ "statMode": {
638
+ "type": "integer",
639
+ "minimum": 0,
640
+ "maximum": 65535
641
+ }
642
+ }
643
+ }
644
+ }
605
645
  }
606
646
  }
607
647
  },
@@ -46,7 +46,7 @@ prepare 的真实输出是 plan 内的 `workflowDecision`。
46
46
 
47
47
  ## 正向执行路径
48
48
 
49
- 1. 运行 `release-skill route --root <path> --json` 获取 diff 分类
49
+ 1. 运行 `release-skill route --root <path> [--target-version <ver>] --json` 获取 diff 分类;已知目标版本时显式传入,route 只是工作流建议
50
50
  2. 若推荐 `workflowKind === 'config-only'`,则使用本技能
51
51
  3. 执行步骤②:运行 `release-skill assess --root <path> --offline --json` 进行 schema validation
52
52
  4. 执行步骤③:运行 `release-skill prepare --offline --workflow config --target-version <ver> --json`
@@ -61,8 +61,10 @@ prepare 的真实输出是 plan 内的 `workflowDecision`。
61
61
  ## 确定性脚本调用
62
62
 
63
63
  ```bash
64
- # Step 1: Diff classification confirmation (config-only)
64
+ # Step 1: Diff classification confirmation (config-only; pass the known target)
65
65
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route --root <path> --json
66
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route \
67
+ --root <path> --target-version <version> --json
66
68
 
67
69
  # Step 2: Assess with schema validation
68
70
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" assess --root <path> --offline --json
@@ -96,7 +98,7 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" verify \
96
98
  | prepare 检测到基线漂移 | BASELINE_DRIFT_DETECTED | 人工审查 drift 后决定是否继续或回滚 |
97
99
  | workflowDecision 不可判定(无对比 plan) | indeterminable | fail-safe 到 publish-needed,走场景 B |
98
100
  | approval expired | APPROVAL_EXPIRED | 重新执行 approve,digest 必须匹配 |
99
- | remote conflict at publish | REMOTE_CONFLICT | 人工决策:force override cancel |
101
+ | remote conflict at publish | REMOTE_CONFLICT | 人工决策;不得 force override 或覆盖远端状态 |
100
102
 
101
103
  ## 决策树 (Step 4)
102
104
 
@@ -36,7 +36,7 @@ plan 记录 `workflowKind: 'docs'` 与 `workflowDecision`(绑定进 plan diges
36
36
 
37
37
  ## 正向执行路径
38
38
 
39
- 1. 运行 `release-skill route --root <path> [--target-version <ver>] --json` 获取 diff 分类和工作流推荐
39
+ 1. 运行 `release-skill route --root <path> [--target-version <ver>] --json` 获取 diff 分类和工作流建议;已知目标版本时显式传入,route 不承担发布授权
40
40
  2. 若推荐 `workflowKind === 'docs-only'`,则使用本技能
41
41
  3. 执行步骤②:调用 `check-style.mjs <doc-path>...` 执行事实/可读性/风格检查
42
42
  4. 执行步骤③:调用 `render-public-site.mjs --check [--repo <name>]` 验证渲染无漂移
@@ -49,8 +49,10 @@ plan 记录 `workflowKind: 'docs'` 与 `workflowDecision`(绑定进 plan diges
49
49
  ## 确定性脚本调用
50
50
 
51
51
  ```bash
52
- # Step 1: Diff classification (from release-skill route)
52
+ # Step 1: Diff classification (from release-skill route; pass the known target)
53
53
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route --root <path> --json
54
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route \
55
+ --root <path> --target-version <version> --json
54
56
 
55
57
  # Step 2: Style-guard three gates (check-style.mjs takes file paths only)
56
58
  node "${WORKBUDDY_ROOT}/adapters/workbuddy/skills/skill-family-docs-style-guard/scripts/check-style.mjs" \
@@ -21,6 +21,7 @@ description: 发布达到 VERIFIED 后处理可选的本地收尾:按发布分
21
21
 
22
22
  ```bash
23
23
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
24
+ --root <project-root> \
24
25
  --plan <plan-path> \
25
26
  --run <verified-run-path> \
26
27
  --json
@@ -42,6 +43,7 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
42
43
 
43
44
  ```bash
44
45
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
46
+ --root <project-root> \
45
47
  --plan <plan-path> \
46
48
  --run <verified-run-path> \
47
49
  --update-local-hosts \
@@ -17,6 +17,16 @@ description: "Discoverable entry point for release-skill: dependency and environ
17
17
  - 只读诊断:运行 dry-run 检查,不修改任何文件
18
18
  - 故障引导:根据错误码指向对应的修复 Skill
19
19
 
20
+ ## 0.9.4 候选边界
21
+
22
+ 当前源码候选允许多发布单元项目在计划冻结前显式选择本轮范围。`prepare` 和新建的 `ship` 状态支持重复传入 `--unit <id>`;未传时继续选择全部配置单元。成功选择会列出选中与延期单元。延期单元不进入本轮计划,也不获得发布状态。
23
+
24
+ 选择只影响按单元绑定的检查与动作。完整配置、生成物新鲜度和顶层 Hook 仍覆盖整个项目。`publicSourceAuthorityReceipt` 涉及的 coordinator 和 subjects 必须作为完整闭包共同选择,系统不会自动扩选。计划冻结后,`plan.units` 是唯一范围权威;publish、reconcile、verify 和 distribute 不接受 `--unit`。
25
+
26
+ 0.9.3 引入的四项工作流保护、Hook cache v2 和稳定隔离安装树记录在 0.9.4 继续保留。0.9.4 精确消费 Foundation 0.16.0 的公开包根 API。Hook cache 只复用绝对路径或经真实 cwd 校验的 cwd-relative executable identity;裸 PATH、PATHEXT、Windows 和观察不可用时,Hook 仍冷执行,缓存复用失败关闭且不写入 v2 cache。缓存没有 TTL。
27
+
28
+ 稳定隔离安装树记录只在宿主命令退出、目录已隔离且扫描期间没有并发写入时执行;宿主附加链接只记录、不跟随,声明载荷中的 symlink 失败关闭,legacy 全树语义保持不变。0.9.4 仍是源码候选,不能从本说明推断已批准、发布或验证。
29
+
20
30
  **阶段通过规则**: `status` 与 `readiness.localPreparation.status` 只判断本地 help/assess/prepare;其充要条件是 `READY` 且 exit code 为 0。`missingRequired` 列出缺失的 Node/Git。生产发布必须另外读取 `readiness.productionPublish`:缺少 npm/gh 时为 `NOT_READY`,依赖存在时仍是 `AUTH_CHECK_REQUIRED`,因为 help 不访问网络、不验证认证。Agent 无权把本地就绪解释为生产就绪。
21
31
 
22
32
  **边界**: help 不修改文件系统、不执行外部写操作、不生成发布计划。优先探测 PATH 上的全局安装命令 `release-skill`,不可用时回退到源码路径。每个 unit 必须配置 `previousPublicBaseline`:首次发布且确认无前序版本用 none,已有版本用 bound + repo/ref/commit;none 不是绕过 publish 唯一性预检的开关。v0.1.1 已完成 GitHub/npm 真实生产发布、冻结 Git ref 的 Claude/Codex 消费者安装、精确 npm 安装 smoke 与最终 VERIFIED;生产等价本地协议套件继续覆盖 fake gh/npm/Claude/Codex 和本地 bare Git。测试未做 OS 级禁网,且一次成功发布不能证明其他项目的认证、权限、限流或最终一致性行为;每个项目的首次生产发布仍应作为受监控 canary。
@@ -26,7 +36,7 @@ description: "Discoverable entry point for release-skill: dependency and environ
26
36
  1. 使用插件根相对路径运行 CLI:`node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" help --json`
27
37
  2. 检查 `readiness.localPreparation`;需要生产发布时再检查 `readiness.productionPublish`
28
38
  3. 若环境就绪且缺少 `.release-skill/project.yaml`,先路由 `release-setup`;配置已存在才运行 `release-assess`
29
- 4. 默认在审阅本地计划和快照后停止;只有用户明确要求且完成摘要审批时才路由到 `release-publish`
39
+ 4. 默认在审阅本地计划和快照后停止;只有用户明确要求且完成摘要审批时才进入 `release-publish`。已持有合法批准的 production plan 时,publish 自行完成权威校验,不把 route 当作授权门
30
40
 
31
41
  ## 确定性脚本调用
32
42
 
@@ -38,6 +48,9 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" assess --root <path> --off
38
48
  # 日常发布快速路径:发布前确认可读计划摘要,状态文件可恢复。
39
49
  # 受限 postPublish hook 的 checkpoint 批准与计划批准分开。
40
50
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" ship --root <path> --target-version <version> --json
51
+ # 多发布单元项目显式选择本轮范围;未传 --unit 时仍为全部单元
52
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" ship --root <path> \
53
+ --target-version <version> --unit <unit-a> --unit <unit-b> --json
41
54
  # 开发阶段执行声明 hooks 并生成 prepare 可复用的内容绑定收据
42
55
  # 配置时刻即授权(FM-16 处置 A):hook 是任意本地进程、无隔离、触发前无确认点,
43
56
  # 命令调用本身即授权执行配置中的 hooks
@@ -76,7 +89,7 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" docs refresh --unit <id> \
76
89
  | CLI 入口不存在 | 确认 `${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs` 存在;不存在时重新安装插件 |
77
90
  | 项目配置不存在 | 路由 `release-setup`,默认只读;不得直接生成或覆盖 README/配置 |
78
91
  | assess 失败 | 运行 `node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" assess --offline --json` 获取详情 |
79
- | 请求生产发布 | 已有公开版本先调用 `release-prepare --online --production` 观察 bound 基线;人工审阅后再路由 `release-publish` |
92
+ | 请求生产发布 | 已有公开版本先调用 `release-prepare --online --production` 观察 bound 基线;人工审阅后直接调用 `release-publish`,由 publish 自行完成计划、approval、digest、远端冲突和 `PARTIAL` 校验 |
80
93
  | RELEASE_DOCS_INVALID | 配置或说明源语义非法(重复键、alias、未知字段、版本漂移等);修正配置或说明源后重新演练 |
81
94
  | RELEASE_DOCS_TRANSLATION_MISSING | 配置语种缺失或多余;补齐说明源语种,与 `releaseDocuments.locales` 完全一致,不得回退 |
82
95
 
@@ -85,8 +98,10 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" docs refresh --unit <id> \
85
98
  对于不清楚如何开始的用户,推荐使用 `release-skill route` 命令进行自动化工作流选择:
86
99
 
87
100
  ```bash
88
- # 快速分类变更并推荐工作流
101
+ # 快速分类变更并推荐工作流;已知目标版本时显式传入,未知时省略
89
102
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route --root <path> --json
103
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route --root <path> \
104
+ --target-version <version> --json
90
105
 
91
106
  # JSON 输出包含 classification 和 recommendation 字段
92
107
  {
@@ -44,7 +44,7 @@ byte、platform manifest 是核心 gate,由 workspace 自己的生成器与
44
44
 
45
45
  ## 正向执行路径
46
46
 
47
- 1. 运行 `release-skill route --root <path> --json` 获取 diff 分类
47
+ 1. 运行 `release-skill route --root <path> [--target-version <ver>] --json` 获取 diff 分类;已知目标版本时显式传入,route 只是工作流建议
48
48
  2. 若推荐 `workflowKind === 'marketplace-only'`,则使用本技能
49
49
  3. 执行步骤②:手动审查并更新 `plugins.mjs`(唯一 truth source)
50
50
  4. 执行步骤③:调用 workspace 自己的生成器再生成 `public-snapshot/`
@@ -59,6 +59,8 @@ byte、platform manifest 是核心 gate,由 workspace 自己的生成器与
59
59
  # Step 1: Diff classification confirmation (marketplace-only)
60
60
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route \
61
61
  --root <workspace-root> --json
62
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" route \
63
+ --root <workspace-root> --target-version <version> --json
62
64
 
63
65
  # Step 2: Manual review and update plugins.mjs
64
66
  # Human-in-the-loop: entry is the sole truth source
@@ -13,6 +13,10 @@ description: Freeze an immutable release plan with local configuration, document
13
13
 
14
14
  运行项目构建/测试 hook,生成公开快照并扫描泄漏,冻结不可变发布计划。prepare 自身不调用发布 adapter,但会执行用户配置的 hook。
15
15
 
16
+ 0.9.4 候选允许多发布单元项目在冻结前显式选择本轮范围。`--unit <id>` 可以重复传入;未传时仍选择全部单元。显式选择只跳过延期单元的单元级工作,完整配置校验、生成物新鲜度和顶层 Hook 仍全部执行。计划冻结后以 `plan.units` 为唯一范围权威,publish、reconcile、verify 和 distribute 不接受单元选择。
17
+
18
+ 0.9.3 引入的 Hook cache v2 继续只复用有完整身份和输入证据的成功 Hook 结果。裸 PATH、PATHEXT、Windows、TTL、损坏记录或 Foundation 观察不可用时,缓存保持失败关闭,Hook 仍按完整路径冷执行;该机制不改变 prepare 的计划、批准和发布权威。
19
+
16
20
  **Hook 授权契约(配置时刻即授权,FM-16 处置 A)**: hook 是任意本地进程——在 `.release-skill/project.yaml` 中配置 hook 命令即完成授权,构成「配置时刻即授权」的显式契约。hook 不提供沙箱、无文件系统/网络隔离、触发前无确认点,命令调用本身即授权执行已配置的 hook 和 gate,不再设置额外人工授权环节;hook 可能产生项目目录外的副作用或远端写入,配置者须对其内容负责。旧参数 `--acknowledge-hook-side-effects` 和 `--acknowledge-gate-side-effects` 仍可解析,但只作为无效果的兼容输入,不能改变授权或执行语义。恢复「触发前强制确认门」属于后续加固项(属设计变更,需随新版本引入),当前版本不提供该确认门。
17
21
 
18
22
  **阶段通过规则**: 本阶段的通过只能由 CLI exit code 0 和结构化状态码 `PREPARED` 确认。Agent 无权自行宣布计划冻结成功。
@@ -23,11 +27,13 @@ description: Freeze an immutable release plan with local configuration, document
23
27
 
24
28
  **发布文档新鲜度门**: 配置了 `releaseDocuments` 的单元在 hook 授权门前先执行同一只读规划器:`clean` 继续;`changes` 抛 `RELEASE_DOCS_STALE`,详情列出相对路径、语种、`refreshDigest` 和精确演练/写入参数数组。prepare 只检查、不写工作树。正式 prepare 前先运行只读演练;有变化时向用户展示文件/语种/版本/`refreshDigest`,只有在用户明确授权"本地发布文档写入"后,才执行带 `--write --confirm-refresh <refreshDigest> --ack-local-document-write` 三项绑定的写入,随后运行聚焦校验,要求维护者审阅并提交刷新结果,再重新 prepare。该授权不扩展为 hook、提交、push 或 publish 授权。
25
29
 
30
+ **显式发布范围**: 只有用户已经指出本轮要发布哪些单元时,才把这些 ID 逐个传给 `--unit`。release-skill 不根据失败自动排除单元。选择命中 `publicSourceAuthorityReceipt` 的 coordinator 或 subject 时,必须包含收据声明的完整单元闭包;缺少单元时按命令返回的精确 argv 重新选择,不自动扩选。成功后展示 `releaseScope.selectedUnitIds`、`releaseScope.deferredUnitIds` 和批准摘要。延期仅表示没有进入本轮计划,不表示通过或失败。
31
+
26
32
  ## 正向执行路径
27
33
 
28
34
  1. 使用插件根相对路径运行 CLI:`CLI="node ${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs"`
29
35
  2. 配置含 `releaseDocuments` 时,先运行只读演练 `${CLI} docs refresh --unit <id> --json`;`status: "changes"` 时展示逐文件路径/语种/版本/`refreshDigest`,取得"本地发布文档写入"明确授权后才执行 `nextCommand.argv` 写入,审阅并提交刷新结果后再继续;`status: "clean"` 时直接进入 prepare
30
- 3. 运行 `${CLI} prepare --root <path> --offline --json`
36
+ 3. 运行 `${CLI} prepare --root <path> --offline --json`;用户已明确选择范围时,为每个单元追加一个 `--unit <id>`
31
37
  4. 检查 exit code 0,读取 JSON 返回的 immutable `planPath=plans/<planDigest>.json`,再从该文件读取 `status`、`units`、`externalActions`
32
38
  5. 向用户展示可读的 `approvalSummary`:版本、公开仓库、分支策略、branch/tag、npm 与 GitHub Release 目标、全部外部动作、例外,以及需要独立 checkpoint 批准的 postPublish hook。`planDigest` 仅作为内部绑定字段,不要求用户复制或确认。后续 approve/publish 只能使用该 immutable planPath,等待确认后再 approve。计划批准不包含受限 postPublish hook 的 checkpoint 批准
33
39
 
@@ -62,6 +68,9 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" docs refresh --unit <id> -
62
68
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" docs refresh --unit <id> \
63
69
  --write --confirm-refresh <refreshDigest> --ack-local-document-write --json
64
70
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" prepare --root <path> --offline --json
71
+ # 显式选择发布范围;未传 --unit 时仍准备全部配置单元
72
+ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" prepare --root <path> --offline \
73
+ --unit <unit-a> --unit <unit-b> --json
65
74
  # 生产 happy end:bound 基线必须 online;远端目标唯一性仍由 publish 全局预检
66
75
  node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" prepare --root <path> --online --production --json
67
76
  ```
@@ -79,11 +88,12 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill.mjs" prepare --root <path> --on
79
88
  | GATE_FAILED (bound + offline) | 改用 `--online --production`,不得把 unobserved-offline plan 交给 publish |
80
89
  | GATE_FAILED (前序基线漂移) | 先取得并比较实际远端内容;人工选择 merge/adopt/reject。merge/adopt 都必须把接受内容落回 human-owned 权威源,并把 `previousPublicBaseline` 更新为接受状态的精确 repo/ref/commit 后重新 online production prepare;reject 停止调查,禁止改 `mode: none` 绕过 |
81
90
  | GATE_FAILED (`npm-entry-closure`) | 修复打包内容或入口声明后重新 prepare;不得用 `requiredPublicFiles`/`smokeBin` 缺省绕过 |
91
+ | GATE_FAILED(发布范围依赖闭包不完整) | 按详情补齐 `publicSourceAuthorityReceipt` 声明涉及的 coordinator 和全部 subjects,再重新 prepare;不得自动扩选或忽略收据 |
82
92
  | GATE_FAILED (其他) | 修复门失败原因后重试;以 CLI exit code 为准 |
83
93
  | RELEASE_DOCS_STALE | 文档相对说明源已陈旧;按详情运行只读演练,展示文件/语种/版本/摘要,经用户授权“本地发布文档写入”后执行写入,审阅提交再重新 prepare |
84
94
  | RELEASE_DOCS_INVALID / TRANSLATION_MISSING / CONFLICT / REFRESH_STALE | 修复配置/说明源/目标或重新演练取得新 `refreshDigest`;不得扩大写入范围绕过 |
85
95
  | SECRET_DETECTED | 移除密钥并更新 allowlist |
86
- | CONFIG_INVALID | 检查 version.sourcepackage.json |
96
+ | CONFIG_INVALID | 检查 version.sourcepackage.json,以及 `--unit` 是否为空、重复或不在 `releaseUnits[]` 中 |
87
97
 
88
98
  重试时只保留最新结构化错误码和失败门,不沿用早期猜测;重跑确定性命令获得新证据。
89
99
 
@@ -21,16 +21,23 @@ description: "从已批准的生产计划发布冻结 Git branch/tag、npm tarba
21
21
 
22
22
  ## 前置条件:工作流选择
23
23
 
24
- 在运行 `release-publish` 之前,必须先完成快速入门决策路由(§4.3 Workflow Profile Support):
25
-
26
- 1. 使用 `release-skill route --root <path> --json` 确定变更类型
27
- 2. 根据推荐的 `workflowKind` 选择对应路径:
28
- - `docs-only` 先执行 `release-docs` 完整流程
29
- - `config-only` → 先执行 `release-config`,仅在 public surface 变化时进入 publish
30
- - `marketplace-only` 先执行 `release-marketplace`,然后由 workspace exclusive skill 接管
31
- - `full-happy-end` → 直接进入标准完整流程:`prepare → approve → publish → verify`
32
- - `reconcile` → 先执行 `release-reconcile` 恢复 PARTIAL 状态
33
- - `help` → 无变更,无需 publish
24
+ 调用方持有合法、未过期且绑定当前 production plan approval record 时,
25
+ `release-publish` 直接执行自身的计划、批准、冻结制品身份和远端预检。`route` 只提供
26
+ 工作流建议,不是已批准 production plan 的授权门。
27
+
28
+ 尚未形成计划时,可以先使用 `release-skill route --root <path> --json` 确定变更类型。
29
+ 已知目标版本时一并传入 `--target-version <version>`,使恢复建议只读取与该目标绑定的
30
+ 完整运行血缘。未传目标时,route 仍按 diff/baseline 选择工作流;历史 diagnostics 只作
31
+ 报告,不得覆盖当前建议。
32
+
33
+ 根据推荐的 `workflowKind` 选择对应路径:
34
+
35
+ - `docs-only` → 先执行 `release-docs` 完整流程
36
+ - `config-only` → 先执行 `release-config`,仅在 public surface 变化时进入 publish
37
+ - `marketplace-only` → 先执行 `release-marketplace`,然后由 workspace exclusive skill 接管
38
+ - `full-happy-end` → 直接进入标准完整流程:`prepare → approve → publish → verify`
39
+ - `reconcile` → 先执行 `release-reconcile` 恢复 PARTIAL 状态
40
+ - `help` → 无变更,无需 publish
34
41
 
35
42
  **注意**: `release-publish` 是标准工作流中的第⑦步,必须在以下步骤之后:
36
43
  - 步骤⑤: `release-prepare` (或轻量级 prepare)
@@ -29,6 +29,8 @@ verify 只接受 `PUBLISHED` 状态的源 run;`VERIFIED` 是终态,不会再
29
29
 
30
30
  验证远端所有自动化 action 的实际状态与冻结计划一致。执行精确 `<package>@<version>` npm 安装到隔离目录,验证包名、版本、静态入口闭包,并在配置时验证 bin 路径安全和 CLI 烟雾输出。对 Claude/Codex marketplace distribution 执行全新隔离消费者安装验证。新计划中的 Kimi/CodeBuddy 安装只返回 `manualFollowUps`,明确标记 `verifiedBySystem: false`,不阻塞 `VERIFIED`;缺少该策略字段的旧冻结计划继续走历史 attestation 兼容路径。
31
31
 
32
+ 0.9.3 的稳定隔离安装树记录只消费宿主命令退出后的隔离树观察:宿主附加 link 记录自身但不跟随,声明载荷 symlink 失败关闭,legacy 全树语义保持不变。该观察属于安装树事实,不替代远端状态、发布计划或 `VERIFIED` 判断。
33
+
32
34
  **attestation 证明力边界**: `attest` 命令记录的旧计划兼容人工证明(`humanConfirmed: true` → `PASSED_MANUAL`)是本地自声明收据,不是签名见证:`--actor` 仅做非空字符串校验,无外部签名或身份核验,任何能运行 CLI 的进程都能自称任意 actor;伪造收据需写 `.release-skill` authority 目录,与直接改写收据文件属同一信任边界。因此旧兼容路径的人工证明只用于旧冻结计划收尾,不构成独立可审计的人工见证。新计划的 Kimi/CodeBuddy 安装一律走 `manualFollowUps`(`verifiedBySystem: false`),不参与 `VERIFIED` 终态判定。
33
35
 
34
36
  **阶段通过规则**: 只有 CLI exit code 0 和结构化状态码 `VERIFIED` 才是完整终态。
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/executable-identity-observation.json",
4
+ "title": "Executable identity observation",
5
+ "description": "A single, private observation of an executable lookup and its explicit launch image. Absolute roots and file bytes are intentionally represented only by the bound root and digest facts.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "kind", "lookup", "canonicalEntry", "interpreter", "launch", "observationDigest"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "kind": { "const": "skill-family.executable-identity-observation" },
12
+ "lookup": { "$ref": "#/$defs/lookup" },
13
+ "canonicalEntry": { "$ref": "#/$defs/canonicalEntry" },
14
+ "interpreter": {
15
+ "oneOf": [
16
+ { "type": "null" },
17
+ {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": ["request", "canonicalEntry", "shebangArgs"],
21
+ "properties": {
22
+ "request": {
23
+ "oneOf": [
24
+ { "$ref": "#/$defs/bareCommand" },
25
+ { "$ref": "#/$defs/absolutePath" }
26
+ ]
27
+ },
28
+ "canonicalEntry": {
29
+ "allOf": [
30
+ { "$ref": "#/$defs/canonicalEntry" },
31
+ { "type": "object", "properties": { "entryKind": { "const": "native-binary" } } }
32
+ ]
33
+ },
34
+ "shebangArgs": {
35
+ "type": "array",
36
+ "maxItems": 8,
37
+ "items": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^\\u0000\\r\\n]+$" }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ "launch": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": ["file", "argvPrefix"],
47
+ "properties": {
48
+ "file": { "$ref": "#/$defs/absolutePath" },
49
+ "argvPrefix": {
50
+ "type": "array",
51
+ "maxItems": 8,
52
+ "items": { "$ref": "#/$defs/absolutePath" }
53
+ }
54
+ }
55
+ },
56
+ "observationDigest": { "$ref": "#/$defs/sha256" }
57
+ },
58
+ "allOf": [
59
+ {
60
+ "if": {
61
+ "type": "object",
62
+ "properties": { "canonicalEntry": { "type": "object", "properties": { "entryKind": { "const": "interpreter-script" } }, "required": ["entryKind"] } },
63
+ "required": ["canonicalEntry"]
64
+ },
65
+ "then": {
66
+ "type": "object",
67
+ "properties": {
68
+ "interpreter": { "type": "object" },
69
+ "launch": { "type": "object", "properties": { "argvPrefix": { "type": "array", "minItems": 1 } } }
70
+ }
71
+ },
72
+ "else": {
73
+ "type": "object",
74
+ "properties": {
75
+ "interpreter": { "type": "null" },
76
+ "launch": { "type": "object", "properties": { "argvPrefix": { "type": "array", "maxItems": 0 } } }
77
+ }
78
+ }
79
+ }
80
+ ],
81
+ "$defs": {
82
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
83
+ "absolutePath": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 4096,
87
+ "pattern": "^/(?:[^/\\\\\\u0000]+(?:/[^/\\\\\\u0000]+)*)?$",
88
+ "not": { "pattern": "(?:^|/)\\.{1,2}(?:/|$)" }
89
+ },
90
+ "relativePath": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 4096,
94
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*(?:^|/)\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[^/\\\\\\u0000]+(?:/[^/\\\\\\u0000]+)*$"
95
+ },
96
+ "bareCommand": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 256,
100
+ "pattern": "^[^/\\\\\\u0000]+$"
101
+ },
102
+ "rootBinding": { "$ref": "https://contracts.skill-family.example/v1/filesystem-root-binding.json" },
103
+ "lookup": {
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": ["requested", "mode", "selectedPath"],
107
+ "properties": {
108
+ "requested": { "type": "string", "minLength": 1, "maxLength": 4096 },
109
+ "mode": { "enum": ["absolute-path", "explicit-path-search"] },
110
+ "path": { "$ref": "#/$defs/absolutePath" },
111
+ "pathEntries": {
112
+ "type": "array",
113
+ "minItems": 1,
114
+ "maxItems": 64,
115
+ "uniqueItems": true,
116
+ "items": { "$ref": "#/$defs/absolutePath" }
117
+ },
118
+ "selectedPath": { "$ref": "#/$defs/absolutePath" }
119
+ },
120
+ "allOf": [
121
+ {
122
+ "if": { "type": "object", "properties": { "mode": { "const": "absolute-path" } }, "required": ["mode"] },
123
+ "then": {
124
+ "type": "object",
125
+ "required": ["path"],
126
+ "properties": { "path": {}, "pathEntries": false }
127
+ },
128
+ "else": {
129
+ "type": "object",
130
+ "required": ["pathEntries"],
131
+ "properties": { "pathEntries": {}, "path": false }
132
+ }
133
+ }
134
+ ]
135
+ },
136
+ "symlink": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": ["path", "targetBase64", "bytes"],
140
+ "properties": {
141
+ "path": { "$ref": "#/$defs/absolutePath" },
142
+ "targetBase64": { "type": "string", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" },
143
+ "bytes": { "type": "integer", "minimum": 0, "maximum": 1048576 }
144
+ }
145
+ },
146
+ "canonicalEntry": {
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": ["path", "symlinkChain", "binding", "relPath", "sha256", "bytes", "statMode", "entryKind"],
150
+ "properties": {
151
+ "path": { "$ref": "#/$defs/absolutePath" },
152
+ "symlinkChain": { "type": "array", "maxItems": 40, "items": { "$ref": "#/$defs/symlink" } },
153
+ "binding": { "$ref": "#/$defs/rootBinding" },
154
+ "relPath": { "$ref": "#/$defs/relativePath" },
155
+ "sha256": { "$ref": "#/$defs/sha256" },
156
+ "bytes": { "type": "integer", "minimum": 0, "maximum": 1073741824 },
157
+ "statMode": { "type": "integer", "minimum": 0, "maximum": 4294967295 },
158
+ "entryKind": { "enum": ["native-binary", "interpreter-script", "opaque-executable"] }
159
+ }
160
+ }
161
+ }
162
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://contracts.skill-family.example/v1/filesystem-tree-observation.json",
4
4
  "title": "Filesystem tree observation",
5
- "description": "A complete same-pass fact observation of a bound filesystem tree (FND-DES-014 section 6.1). Private data only: it is returned by the public read-only harness entry, but never enters a public plugin verification result. The record keeps the original root binding so consumers re-verify the same bound root and never re-bind a replacement. Members are canonical relative paths sorted by Unicode code point; directories carry identity/type/permission facts only; file bytes come from the same native descriptor that supplies statMode.",
5
+ "description": "A complete same-pass fact observation of a bound filesystem tree (FND-DES-014 section 6.1). Private data only: it is returned by the public read-only harness entry, but never enters a public plugin verification result. The record keeps the original root binding so consumers re-verify the same bound root and never re-bind a replacement. Default and explicit reject preserve the 0.14 UTF-16 order; record mode uses Unicode code point order. Directories carry identity/type/permission facts only; file bytes come from the same native descriptor that supplies statMode.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": ["schemaVersion", "kind", "rootBinding", "members", "membersDigest"],
@@ -25,7 +25,8 @@
25
25
  "member": {
26
26
  "oneOf": [
27
27
  { "$ref": "#/$defs/fileMember" },
28
- { "$ref": "#/$defs/directoryMember" }
28
+ { "$ref": "#/$defs/directoryMember" },
29
+ { "$ref": "#/$defs/symlinkMember" }
29
30
  ]
30
31
  },
31
32
  "fileMember": {
@@ -50,6 +51,21 @@
50
51
  "type": { "const": "directory" },
51
52
  "statMode": { "$ref": "#/$defs/statMode" }
52
53
  }
54
+ },
55
+ "symlinkMember": {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "required": ["path", "type", "targetBase64", "bytes", "statMode"],
59
+ "properties": {
60
+ "path": { "type": "string", "minLength": 1 },
61
+ "type": { "const": "symlink" },
62
+ "targetBase64": {
63
+ "type": "string",
64
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
65
+ },
66
+ "bytes": { "type": "integer", "minimum": 0, "maximum": 1048576 },
67
+ "statMode": { "$ref": "#/$defs/statMode" }
68
+ }
53
69
  }
54
70
  }
55
71
  }