release-skill 0.9.16 → 0.9.17
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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -2
- package/.kimi-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +10 -0
- package/CHANGELOG.md +30 -0
- package/INSTALL.md +57 -9
- package/INSTALL.zh-CN.md +44 -7
- package/README.md +75 -31
- package/README.zh-CN.md +60 -29
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/claude/schemas/release-plan.schema.json +1 -1
- package/adapters/claude/schemas/release-project.schema.json +1 -1
- package/adapters/claude/skills/release-finish/SKILL.md +14 -13
- package/adapters/claude/skills/release-help/SKILL.md +3 -3
- package/adapters/claude/skills/release-verify/SKILL.md +2 -2
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/codex/schemas/release-plan.schema.json +1 -1
- package/adapters/codex/schemas/release-project.schema.json +1 -1
- package/adapters/codex/skills/release-finish/SKILL.md +14 -13
- package/adapters/codex/skills/release-help/SKILL.md +3 -3
- package/adapters/codex/skills/release-verify/SKILL.md +2 -2
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/kimi/schemas/release-plan.schema.json +1 -1
- package/adapters/kimi/schemas/release-project.schema.json +1 -1
- package/adapters/kimi/skills/release-finish/SKILL.md +14 -13
- package/adapters/kimi/skills/release-help/SKILL.md +3 -3
- package/adapters/kimi/skills/release-verify/SKILL.md +2 -2
- package/adapters/qoder/.qoder-plugin/plugin.json +10 -0
- package/adapters/qoder/bin/consumer-contract-vectors.json +110 -0
- package/adapters/qoder/bin/error-codes.json +161 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
- package/adapters/qoder/bin/foundation-resource-binding.json +1 -0
- package/adapters/qoder/bin/kernel-protocol.json +60 -0
- package/adapters/qoder/bin/license-texts/Apache-2.0.txt +201 -0
- package/adapters/qoder/bin/license-texts/MIT.txt +21 -0
- package/adapters/qoder/bin/prebuild-manifest.json +79 -0
- package/adapters/qoder/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/qoder/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/qoder/bin/registry.json +347 -0
- package/adapters/qoder/bin/release-skill-local-finish.mjs +4 -0
- package/adapters/qoder/bin/release-skill.bundle.mjs +149446 -0
- package/adapters/qoder/bin/release-skill.mjs +54 -0
- package/adapters/qoder/bin/rules.json +104 -0
- package/adapters/qoder/bin/schemas/consumer-contract-vector.schema.json +149 -0
- package/adapters/qoder/data/hosts/claude/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/codebuddy/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/codex/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/deepseek-harness/host-descriptor.json +23 -0
- package/adapters/qoder/data/hosts/kimi-code/host-descriptor.json +36 -0
- package/adapters/qoder/data/hosts/qoder/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/registry.json +13 -0
- package/adapters/qoder/data/hosts/workbuddy/host-descriptor.json +34 -0
- package/adapters/qoder/data/licensing/registry.json +211 -0
- package/adapters/qoder/data/licensing/schema.json +207 -0
- package/adapters/qoder/native/safe-write/binding.gyp +41 -0
- package/adapters/qoder/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
- package/adapters/qoder/native/safe-write/prebuilds.json +24 -0
- package/adapters/qoder/native/safe-write/src/safe_write.cc +2032 -0
- package/adapters/qoder/schemas/.render-manifest.json +41 -0
- package/adapters/qoder/schemas/approval-record.schema.json +115 -0
- package/adapters/qoder/schemas/artifact-lock.schema.json +111 -0
- package/adapters/qoder/schemas/artifact-plan.schema.json +52 -0
- package/adapters/qoder/schemas/artifact-policy.schema.json +76 -0
- package/adapters/qoder/schemas/evidence-event-v2.schema.json +164 -0
- package/adapters/qoder/schemas/evidence-event.schema.json +89 -0
- package/adapters/qoder/schemas/postpublish-approval-record.schema.json +47 -0
- package/adapters/qoder/schemas/release-plan.schema.json +1996 -0
- package/adapters/qoder/schemas/release-project.schema.json +1613 -0
- package/adapters/qoder/schemas/release-run.schema.json +777 -0
- package/adapters/qoder/skills/release-assess/SKILL.md +60 -0
- package/adapters/qoder/skills/release-config/SKILL.md +150 -0
- package/adapters/qoder/skills/release-docs/SKILL.md +119 -0
- package/adapters/qoder/skills/release-finish/SKILL.md +141 -0
- package/adapters/qoder/skills/release-help/SKILL.md +153 -0
- package/adapters/qoder/skills/release-marketplace/SKILL.md +156 -0
- package/adapters/qoder/skills/release-prepare/SKILL.md +135 -0
- package/adapters/qoder/skills/release-publish/SKILL.md +91 -0
- package/adapters/qoder/skills/release-reconcile/SKILL.md +80 -0
- package/adapters/qoder/skills/release-setup/SKILL.md +131 -0
- package/adapters/qoder/skills/release-verify/SKILL.md +109 -0
- package/adapters/qoder/src/schemas/adapter-build-manifest.schema.json +41 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-request.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-result.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-source.schema.json +47 -0
- package/adapters/qoder/src/schemas/audit-baseline-pin.schema.json +163 -0
- package/adapters/qoder/src/schemas/declared-read-surface-result.schema.json +61 -0
- package/adapters/qoder/src/schemas/engineering-baseline.schema.json +77 -0
- package/adapters/qoder/src/schemas/executable-identity-observation.schema.json +162 -0
- package/adapters/qoder/src/schemas/filesystem-root-binding.schema.json +14 -0
- package/adapters/qoder/src/schemas/filesystem-tree-observation.schema.json +71 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
- package/adapters/qoder/src/schemas/host-capability-fact.schema.json +31 -0
- package/adapters/qoder/src/schemas/host-descriptor.schema.json +137 -0
- package/adapters/qoder/src/schemas/host-operation-plan.schema.json +57 -0
- package/adapters/qoder/src/schemas/host-operation-receipt.schema.json +81 -0
- package/adapters/qoder/src/schemas/host-probe-result.schema.json +30 -0
- package/adapters/qoder/src/schemas/host-registry.schema.json +18 -0
- package/adapters/qoder/src/schemas/host-verification-request.schema.json +67 -0
- package/adapters/qoder/src/schemas/host-verification-result.schema.json +149 -0
- package/adapters/qoder/src/schemas/managed-file-lock.schema.json +77 -0
- package/adapters/qoder/src/schemas/migration-manifest.schema.json +412 -0
- package/adapters/qoder/src/schemas/observation-scope.schema.json +91 -0
- package/adapters/qoder/src/schemas/operation-request.schema.json +58 -0
- package/adapters/qoder/src/schemas/operation-result.schema.json +130 -0
- package/adapters/qoder/src/schemas/platform-difference-registry.schema.json +110 -0
- package/adapters/qoder/src/schemas/plugin-verification-request.schema.json +499 -0
- package/adapters/qoder/src/schemas/plugin-verification-result.schema.json +1217 -0
- package/adapters/qoder/src/schemas/profile-adoption-declaration.schema.json +111 -0
- package/adapters/qoder/src/schemas/profile-descriptor.schema.json +99 -0
- package/adapters/qoder/src/schemas/project-manifest.schema.json +67 -0
- package/adapters/qoder/src/schemas/project-profile.schema.json +25 -0
- package/adapters/qoder/src/schemas/public-boundary-declaration.schema.json +73 -0
- package/adapters/qoder/src/schemas/report-binding.schema.json +42 -0
- package/adapters/qoder/src/schemas/report-model.schema.json +308 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
- package/adapters/qoder/src/schemas/source-authority-receipt.schema.json +31 -0
- package/adapters/qoder/src/schemas/state-event-envelope.schema.json +38 -0
- package/adapters/qoder/src/schemas/state-snapshot-metadata.schema.json +25 -0
- package/adapters/qoder/src/schemas/structured-scan-policy.schema.json +97 -0
- package/adapters/qoder/src/schemas/surface-scan-policy.schema.json +42 -0
- package/adapters/qoder/src/schemas/timeout-policy.schema.json +24 -0
- package/adapters/qoder/src/schemas/token-estimate-record.schema.json +75 -0
- package/adapters/qoder/src/schemas/token-estimate-result.schema.json +43 -0
- package/adapters/qoder/src/schemas/watchdog-termination-envelope.schema.json +156 -0
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/workbuddy/schemas/release-plan.schema.json +1 -1
- package/adapters/workbuddy/schemas/release-project.schema.json +1 -1
- package/adapters/workbuddy/skills/release-finish/SKILL.md +14 -13
- package/adapters/workbuddy/skills/release-help/SKILL.md +3 -3
- package/adapters/workbuddy/skills/release-verify/SKILL.md +2 -2
- package/bin/release-skill-cli.mjs +124 -6
- package/bin/release-skill.bundle.mjs +1443 -672
- package/package.json +4 -2
- package/platform-manifest.json +70 -4
- package/references/02-project-config.md +9 -2
- package/schemas/release-plan.schema.json +1 -1
- package/schemas/release-project.schema.json +1 -1
- package/skills/release-finish/SKILL.md +14 -13
- package/skills/release-help/SKILL.md +3 -3
- package/skills/release-verify/SKILL.md +2 -2
- package/skills-src/release-finish/SKILL.md +14 -13
- package/skills-src/release-help/SKILL.md +3 -3
- package/skills-src/release-verify/SKILL.md +2 -2
- package/src/commands/post-release-local.mjs +360 -51
- package/src/commands/verify-records.mjs +467 -0
- package/src/core/postpublish.mjs +1 -1
- package/src/core/run.mjs +1 -1
- package/src/producers/build-adapters.mjs +36 -13
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
"type": "array",
|
|
1625
1625
|
"minItems": 1,
|
|
1626
1626
|
"uniqueItems": true,
|
|
1627
|
-
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy"] }
|
|
1627
|
+
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy", "qoder"] }
|
|
1628
1628
|
},
|
|
1629
1629
|
"hub": { "$ref": "#/definitions/planLocalHostHub" }
|
|
1630
1630
|
}
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
"type": "array",
|
|
1054
1054
|
"minItems": 1,
|
|
1055
1055
|
"uniqueItems": true,
|
|
1056
|
-
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy"] }
|
|
1056
|
+
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy", "qoder"] }
|
|
1057
1057
|
},
|
|
1058
1058
|
"hub": { "$ref": "#/definitions/localHostHub" }
|
|
1059
1059
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: release-finish
|
|
3
|
-
description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提案送达边界,按发布分支策略决定是否询问合并,并在用户确认后更新本机 Claude、Codex、Kimi、CodeBuddy/WorkBuddy 插件
|
|
3
|
+
description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提案送达边界,按发布分支策略决定是否询问合并,并在用户确认后更新本机 Claude、Codex、Kimi、CodeBuddy/WorkBuddy、Qoder 插件
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
> **Kimi Code 安装入口解析协议**:Kimi Code 官方技能契约提供正文占位符 `${KIMI_SKILL_DIR}`,宿主在向 Agent 发送正文前会将其展开为当前 `SKILL.md` 所在目录的绝对路径。必须把展开后的字面量作为当前技能目录的唯一权威输入,记为 `SKILL_DIR`。
|
|
@@ -20,7 +20,7 @@ description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提
|
|
|
20
20
|
|
|
21
21
|
这是发布后的独立收尾,不属于 `prepare → approve → publish → verify` 状态机。它不能把本机更新结果写成新的发布状态,也不能因为本机更新失败而降低 `VERIFIED`。
|
|
22
22
|
|
|
23
|
-
默认只读取冻结计划和 verify 或 postVerify run
|
|
23
|
+
默认只读取冻结计划和 verify 或 postVerify run。没有用户明确同意,不合并分支,不更新插件。用户显式选择 Kimi 更新后,只有标准初始目录信任界面和插件信任界面中的冻结身份都通过核对,才确认当前项目并安装。用户显式选择 Qoder 且冻结计划声明该宿主后,才执行计划绑定的 Hub 更新。
|
|
24
24
|
|
|
25
25
|
## 先生成收尾清单
|
|
26
26
|
|
|
@@ -42,7 +42,7 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
|
|
|
42
42
|
|
|
43
43
|
1. `merge.promptRequired=false` 时,发布工作流已经推进或初始化目标分支,不再询问合并。
|
|
44
44
|
2. `merge.promptRequired=true` 时,向用户说明尚未覆盖的发布分支,并询问是否需要合并。用户同意后,先只读核对源分支、目标分支、工作区状态和项目既有合并方式,再用明确的分支名执行;本脚本不猜分支,也不自动推送。
|
|
45
|
-
3. `localHostUpdate.promptRequired=true` 时,列出计划覆盖的宿主,询问是否更新本机插件。Hub-backed 目标必须显示其声明的 Hub
|
|
45
|
+
3. `localHostUpdate.promptRequired=true` 时,列出计划覆盖的宿主,询问是否更新本机插件。Hub-backed 目标必须显示其声明的 Hub、插件和宿主。Qoder 是其中唯一可执行的 Hub-backed 目标;Claude/Codex 使用现有 marketplace 管理入口,Kimi 使用冻结 GitHub Release 和现有人工确认路径,CodeBuddy/WorkBuddy 明确人工处理且不能固定 Hub ref。后续“用户同意更新”段适用于 `available=true` 的 executable externalActions 目标和 Qoder Hub 目标,其余 Hub-backed 目标仍为人工入口。两个问题可以一次问完。
|
|
46
46
|
|
|
47
47
|
## postVerify 提案送达边界
|
|
48
48
|
|
|
@@ -62,7 +62,7 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
|
|
|
62
62
|
--plan <plan-path> \
|
|
63
63
|
--run <verify-or-postverify-run-path> \
|
|
64
64
|
--update-local-hosts \
|
|
65
|
-
--hosts claude,codex,kimi,codebuddy,workbuddy \
|
|
65
|
+
--hosts claude,codex,kimi,codebuddy,workbuddy,qoder \
|
|
66
66
|
--confirm-plan <planDigest> \
|
|
67
67
|
--json
|
|
68
68
|
```
|
|
@@ -70,12 +70,13 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
|
|
|
70
70
|
只传用户选择且计划声明的宿主。宿主 CLI 不存在时返回 `SKIPPED_NOT_INSTALLED`。各宿主按以下规则处理:
|
|
71
71
|
|
|
72
72
|
- Claude 或 Codex 只有在市场需要重绑时,才会在该宿主第一条写命令之前只读查询冻结的市场仓库、引用和提交。远端不可达、引用缺失或提交不一致时返回 `MANUAL_REQUIRED`,该宿主不执行市场或插件写入;其他已选宿主继续处理。精确当前安装仍核对真实载荷,但不强制联网。
|
|
73
|
-
- Kimi 的精确当前安装会在返回 `ALREADY_CURRENT` 前核对真实载荷;发生安装或迁移时,只在操作完成后核对结果。配置根依次取显式 `kimiHome`、`KIMI_CODE_HOME`、用户主目录下的 `.kimi-code`,TUI 与安装后观察使用同一根。release-finish 当前只采用并验证 Kimi Code 的受控终端交互界面(TUI
|
|
73
|
+
- Kimi 的精确当前安装会在返回 `ALREADY_CURRENT` 前核对真实载荷;发生安装或迁移时,只在操作完成后核对结果。配置根依次取显式 `kimiHome`、`KIMI_CODE_HOME`、用户主目录下的 `.kimi-code`,TUI 与安装后观察使用同一根。release-finish 当前只采用并验证 Kimi Code 的受控终端交互界面(TUI)路径,并把 TUI 工作目录固定为 `--root` 指定的当前发布项目。用户已确认冻结计划、显式选择更新且 `--hosts` 包含 `kimi` 时,流程只在初始标准 `Trust this folder?` 界面确认目录:先核对当前选中 `No, exit` 和目标 `Trust this folder`,移动并重新核对目标选中项,确认后等待已知命令提示符。插件命令发出后再次出现目录信任、界面或选中项未知、移动后无法确认、超时或提前退出时,该宿主失败并停止后续安装步骤。插件信任仍先清理 ANSI/OSC 控制序列和软换行,再分别核对冻结仓库与标签;只有选中 `Trust and install` 才提交并重新加载。包名、版本、发布标签、已安装修订号和受管安装根必须与冻结计划一致;`.git` 只提供附加诊断,不是通过条件。旧的本地路径安装会在同一 TUI 会话中先移除,再按发布标签安装。
|
|
74
74
|
- CodeBuddy/WorkBuddy 只处理同一 bundled-family 插件和市场。CodeBuddy 仅探测全局 `codebuddy`/`cbc`,由收尾脚本把 `CODEBUDDY_CONFIG_DIR` 固定为有效 `HOME`(环境未提供时取操作系统用户主目录)下名为 `.codebuddy` 的目录;WorkBuddy 仅在 macOS 探测 WorkBuddy 应用内嵌 CLI,由收尾脚本把 `CODEBUDDY_CONFIG_DIR` 与 `WORKBUDDY_CONFIG_DIR` 同时固定为有效 `HOME` 下名为 `.workbuddy` 的目录,绝不把两者互作回退。只有冻结标签与计划声明的可变分支都从同一远端解析到冻结提交时,才调用正式市场更新和插件更新命令;完成后重新读取安装列表,并精确核对唯一条目的市场、版本和修订号。目标未安装、来源不符、远端不可访问或身份不一致时返回 `MANUAL_REQUIRED`,不修改宿主。非 macOS 的 WorkBuddy 返回 `SKIPPED_UNSUPPORTED_PLATFORM`。
|
|
75
|
+
- Qoder 先用 `qoder plugins marketplace list --json` 核对计划声明的 Hub 名称、仓库、分支和本机 checkout,再用 `qoder plugins list --json` 核对唯一插件条目的市场、`scope=user`、版本与 `installPath`。目标市场或插件未安装时返回 `MANUAL_REQUIRED`,不添加市场,也不执行首次安装。旧版已安装时,只运行 `qoder plugins marketplace update <name>` 和 `qoder plugins update <plugin@marketplace> --scope user`。市场刷新后、插件更新前,必须从 Hub 的 `marketplace.json` 核对目标条目的 `source.url` 和 `source.sha`;操作后从真实 `installPath` 核对 Qoder manifest、完整声明载荷和冻结来源。市场可能在检查与更新之间变化,事后身份不符时报告失败,不自动降级、卸载或覆盖。
|
|
75
76
|
|
|
76
77
|
任何宿主失败都保留其他宿主的实际结果,不回滚,也不把失败冒充成功。
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
完成后报告每个宿主的安装状态。Qoder 返回 `UPDATED` 只表示安装载荷已经更新;启动新会话或执行 `/plugins reload` 并核对实际加载版本后,才能报告新版已加载。本机结果只记录收尾事实,不改变发布状态。
|
|
79
80
|
|
|
80
81
|
## 配置与目录
|
|
81
82
|
|
|
@@ -83,8 +84,8 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
|
|
|
83
84
|
文件缺失或无法解析时,报告具体配置问题,不猜默认分支或 setup,也不得把文件缺失当作字段合法缺省;
|
|
84
85
|
已经取得的发布结果仍保留。只有配置文件有效时,整个 `releaseFinish` 或其中字段缺省才按各自合同默认。
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
发布项目目录用于读取配置、执行源码 Git 检查和调用 setup。`--root <project-root>` 指定的目录也是 setup
|
|
88
|
+
的目标目录;不再接收或询问另一个项目路径。
|
|
88
89
|
|
|
89
90
|
## 更新后 setup
|
|
90
91
|
|
|
@@ -96,17 +97,17 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
|
|
|
96
97
|
元数据核对目标插件身份、版本和入口;不能从开发仓库、旧会话缓存或同名技能推断新版已加载。当前宿主
|
|
97
98
|
不满足时,可以使用同次更新中另一个已安装并加载目标版本和入口的宿主。
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
setup 的目标目录固定为当前发布项目根目录。宿主需要重启、当前环境不能调用可用宿主、入口不存在或
|
|
101
|
+
归属有歧义时,标为“待执行”,并给出插件与版本、技能名、当前项目路径和已有授权的续接提示。发出提示
|
|
102
|
+
不代表 setup 已完成。
|
|
102
103
|
|
|
103
104
|
对同一插件版本、同一项目目录和相同共享运行环境,项目级依赖、项目配置和 Git hooks 由一个已加载
|
|
104
105
|
新版插件的宿主检查一次。其余宿主分别核对自身安装、加载和宿主专属配置。不同运行环境不得无条件
|
|
105
106
|
复用项目就绪结论;按目标 setup 的实际合同补查差异。release-finish 不保存去重键、收据或新的状态。
|
|
106
107
|
|
|
107
|
-
调用 setup
|
|
108
|
+
调用 setup 前完整读取目标技能及其必读引用,并传入当前发布项目、插件版本、只读检查意图和已有授权范围。
|
|
108
109
|
已有具体修复授权应传递给 setup;未覆盖的写入不能执行。只读检查、安装结果和配置修复结果分别报告。
|
|
109
|
-
|
|
110
|
+
最终自然语言回复列出执行宿主、插件版本、当前项目路径、实际结果和未完成项。任何 setup 结果都不改变
|
|
110
111
|
`VERIFIED`,也不影响其他宿主已经完成的结果。
|
|
111
112
|
|
|
112
113
|
## 源码分支检查
|
|
@@ -24,15 +24,15 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
24
24
|
- 只读诊断:运行 dry-run 检查,不修改任何文件
|
|
25
25
|
- 故障引导:根据错误码指向对应的修复 Skill
|
|
26
26
|
|
|
27
|
-
## 0.9.
|
|
27
|
+
## 0.9.17 候选边界
|
|
28
28
|
|
|
29
29
|
当前源码候选允许多发布单元项目在计划冻结前显式选择本轮范围。`prepare` 和新建的 `ship` 状态支持重复传入 `--unit <id>`;未传时继续选择全部配置单元。成功选择会列出选中与延期单元。延期单元不进入本轮计划,也不获得发布状态。
|
|
30
30
|
|
|
31
31
|
选择只影响按单元绑定的检查与动作。完整配置、生成物新鲜度和顶层 Hook 仍覆盖整个项目。`publicSourceAuthorityReceipt` 涉及的 coordinator 和 subjects 必须作为完整闭包共同选择,系统不会自动扩选。计划冻结后,`plan.units` 是唯一范围权威;publish、reconcile、verify 和 distribute 不接受 `--unit`。
|
|
32
32
|
|
|
33
|
-
0.9.3 引入的四项工作流保护、Hook cache v2
|
|
33
|
+
0.9.3 引入的四项工作流保护、Hook cache v2 和稳定隔离安装树记录在后续版本继续保留。当前 0.9.17 候选精确消费 Foundation 0.17.0 的公开包根 API。Hook cache 只复用绝对路径或经真实 cwd 校验的 cwd-relative executable identity;裸 PATH、PATHEXT、Windows 和观察不可用时,Hook 仍冷执行,缓存复用失败关闭且不写入 v2 cache。缓存没有 TTL。
|
|
34
34
|
|
|
35
|
-
稳定隔离安装树记录只在宿主命令退出、目录已隔离且扫描期间没有并发写入时执行;宿主附加链接只记录、不跟随,声明载荷中的 symlink 失败关闭,legacy 全树语义保持不变。0.9.
|
|
35
|
+
稳定隔离安装树记录只在宿主命令退出、目录已隔离且扫描期间没有并发写入时执行;宿主附加链接只记录、不跟随,声明载荷中的 symlink 失败关闭,legacy 全树语义保持不变。0.9.17 仍是源码候选,不能从本说明推断已批准、发布或验证。
|
|
36
36
|
|
|
37
37
|
**阶段通过规则**: `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 无权把本地就绪解释为生产就绪。
|
|
38
38
|
|
|
@@ -29,9 +29,9 @@ ship state;hook approval 缺失、错误或过期时,在 hook 执行前失
|
|
|
29
29
|
|
|
30
30
|
**注意**: distribute gate (W1) 已经实现并集成在标准 verify 流程中。verify 现在会检查 postPublish 分发状态(git mirror + marketplace index),只有当所有外部动作都完成并通过验证时才达到 VERIFIED。
|
|
31
31
|
|
|
32
|
-
**工作流兼容性**:
|
|
32
|
+
**工作流兼容性**:
|
|
33
33
|
- `docs-only`: consumer-verify preserved (步骤⑧)
|
|
34
|
-
- `config-only`: scene B completes full chain including verify
|
|
34
|
+
- `config-only`: scene B completes full chain including verify
|
|
35
35
|
- `marketplace-only`: delegates to workspace's exclusive skill for final verification
|
|
36
36
|
- `full-happy-end`: standard complete path with all gates
|
|
37
37
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "release-skill",
|
|
3
|
+
"version": "0.9.17",
|
|
4
|
+
"description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "广州市风荷科技有限公司"
|
|
7
|
+
},
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"skills": "./skills/"
|
|
10
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"kind": "skill-family.contracts.consumer-contract-vectors",
|
|
4
|
+
"foundationVersion": "0.17.0",
|
|
5
|
+
"sets": [
|
|
6
|
+
{
|
|
7
|
+
"capabilityId": "foundation.contracts.object-validation",
|
|
8
|
+
"vectorSetId": "foundation.contracts.object-validation.consumer-v1",
|
|
9
|
+
"contractId": "skill-family-contracts:validateDocument",
|
|
10
|
+
"strategy": "real-pure",
|
|
11
|
+
"vectors": [
|
|
12
|
+
{
|
|
13
|
+
"schemaVersion": 1,
|
|
14
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
15
|
+
"vectorId": "foundation.contracts.object-validation.consumer-v1.indeterminate",
|
|
16
|
+
"vectorSetId": "foundation.contracts.object-validation.consumer-v1",
|
|
17
|
+
"capabilityId": "foundation.contracts.object-validation",
|
|
18
|
+
"foundationVersion": "0.17.0",
|
|
19
|
+
"contractId": "skill-family-contracts:validateDocument",
|
|
20
|
+
"caseClass": "indeterminate",
|
|
21
|
+
"strategy": "real-pure",
|
|
22
|
+
"request": {
|
|
23
|
+
"document": { "schemaVersion": 1, "kind": "skill-family.project-manifest" },
|
|
24
|
+
"options": { "schemaId": "https://contracts.skill-family.example/v1/project-manifest.json", "dialect": "2020-12", "policy": "strict" }
|
|
25
|
+
},
|
|
26
|
+
"expected": { "outcome": "indeterminate", "allowedStates": ["return", "throw"], "failClosed": true }
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"schemaVersion": 1,
|
|
30
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
31
|
+
"vectorId": "foundation.contracts.object-validation.consumer-v1.negative",
|
|
32
|
+
"vectorSetId": "foundation.contracts.object-validation.consumer-v1",
|
|
33
|
+
"capabilityId": "foundation.contracts.object-validation",
|
|
34
|
+
"foundationVersion": "0.17.0",
|
|
35
|
+
"contractId": "skill-family-contracts:validateDocument",
|
|
36
|
+
"caseClass": "negative",
|
|
37
|
+
"strategy": "real-pure",
|
|
38
|
+
"request": {
|
|
39
|
+
"document": { "schemaVersion": 1, "kind": "skill-family.project-manifest", "project": { "id": "demo-project", "name": "Demo Project" }, "contracts": { "version": "not-a-version", "profile": "generic" } },
|
|
40
|
+
"options": { "schemaId": "https://contracts.skill-family.example/v1/project-manifest.json", "dialect": "2020-12", "policy": "strict" }
|
|
41
|
+
},
|
|
42
|
+
"expected": { "outcome": "return", "value": { "valid": false, "errorCode": "SFC1001", "errors": [{ "keyword": "pattern", "instancePath": "/contracts/version", "schemaPath": "#/properties/contracts/properties/version/pattern", "message": "must match pattern \"^[0-9]+\\.[0-9]+\\.[0-9]+$\"", "params": { "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" } }], "data": { "schemaVersion": 1, "kind": "skill-family.project-manifest", "project": { "id": "demo-project", "name": "Demo Project" }, "contracts": { "version": "not-a-version", "profile": "generic" } } } }
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"schemaVersion": 1,
|
|
46
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
47
|
+
"vectorId": "foundation.contracts.object-validation.consumer-v1.positive",
|
|
48
|
+
"vectorSetId": "foundation.contracts.object-validation.consumer-v1",
|
|
49
|
+
"capabilityId": "foundation.contracts.object-validation",
|
|
50
|
+
"foundationVersion": "0.17.0",
|
|
51
|
+
"contractId": "skill-family-contracts:validateDocument",
|
|
52
|
+
"caseClass": "positive",
|
|
53
|
+
"strategy": "real-pure",
|
|
54
|
+
"request": {
|
|
55
|
+
"document": { "schemaVersion": 1, "kind": "skill-family.project-manifest", "project": { "id": "demo-project", "name": "Demo Project" }, "contracts": { "version": "1.0.0", "profile": "generic" } },
|
|
56
|
+
"options": { "schemaId": "https://contracts.skill-family.example/v1/project-manifest.json", "dialect": "2020-12", "policy": "strict" }
|
|
57
|
+
},
|
|
58
|
+
"expected": { "outcome": "return", "value": { "valid": true, "errorCode": null, "errors": [], "data": { "schemaVersion": 1, "kind": "skill-family.project-manifest", "project": { "id": "demo-project", "name": "Demo Project" }, "contracts": { "version": "1.0.0", "profile": "generic" } } } }
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"capabilityId": "foundation.harness.atomic-write",
|
|
64
|
+
"vectorSetId": "foundation.harness.atomic-write.consumer-v1",
|
|
65
|
+
"contractId": "skill-family-harness-node:writeFileAtomic",
|
|
66
|
+
"strategy": "official-fake",
|
|
67
|
+
"vectors": [
|
|
68
|
+
{
|
|
69
|
+
"schemaVersion": 1,
|
|
70
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
71
|
+
"vectorId": "foundation.harness.atomic-write.consumer-v1.indeterminate",
|
|
72
|
+
"vectorSetId": "foundation.harness.atomic-write.consumer-v1",
|
|
73
|
+
"capabilityId": "foundation.harness.atomic-write",
|
|
74
|
+
"foundationVersion": "0.17.0",
|
|
75
|
+
"contractId": "skill-family-harness-node:writeFileAtomic",
|
|
76
|
+
"caseClass": "indeterminate",
|
|
77
|
+
"strategy": "official-fake",
|
|
78
|
+
"request": { "root": { "runtimeBinding": "atomic-write-canonical-root" }, "relPath": "records/item.json", "data": "fixture-data", "options": { "mode": 420 } },
|
|
79
|
+
"expected": { "outcome": "indeterminate", "allowedStates": ["return", "throw"], "failClosed": true }
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"schemaVersion": 1,
|
|
83
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
84
|
+
"vectorId": "foundation.harness.atomic-write.consumer-v1.negative",
|
|
85
|
+
"vectorSetId": "foundation.harness.atomic-write.consumer-v1",
|
|
86
|
+
"capabilityId": "foundation.harness.atomic-write",
|
|
87
|
+
"foundationVersion": "0.17.0",
|
|
88
|
+
"contractId": "skill-family-harness-node:writeFileAtomic",
|
|
89
|
+
"caseClass": "negative",
|
|
90
|
+
"strategy": "official-fake",
|
|
91
|
+
"request": { "root": { "runtimeBinding": "atomic-write-canonical-root" }, "relPath": "../outside.json", "data": "fixture-data", "options": { "mode": 420 } },
|
|
92
|
+
"expected": { "outcome": "throw", "errorCode": "SFC2004", "errorKind": "path-traversal" }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"schemaVersion": 1,
|
|
96
|
+
"kind": "skill-family.consumer-contract-vector",
|
|
97
|
+
"vectorId": "foundation.harness.atomic-write.consumer-v1.positive",
|
|
98
|
+
"vectorSetId": "foundation.harness.atomic-write.consumer-v1",
|
|
99
|
+
"capabilityId": "foundation.harness.atomic-write",
|
|
100
|
+
"foundationVersion": "0.17.0",
|
|
101
|
+
"contractId": "skill-family-harness-node:writeFileAtomic",
|
|
102
|
+
"caseClass": "positive",
|
|
103
|
+
"strategy": "official-fake",
|
|
104
|
+
"request": { "root": { "runtimeBinding": "atomic-write-canonical-root" }, "relPath": "records/item.json", "data": "fixture-data", "options": { "mode": 420 } },
|
|
105
|
+
"expected": { "outcome": "return", "valueRelation": "atomic-write-contained-absolute-target" }
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"kind": "skill-family.contracts.error-codes",
|
|
4
|
+
"contractsVersion": "1.16.0",
|
|
5
|
+
"policy": {
|
|
6
|
+
"format": "^SFC[0-9]{4}$",
|
|
7
|
+
"ranges": [
|
|
8
|
+
{
|
|
9
|
+
"prefix": "SFC1",
|
|
10
|
+
"category": "contract",
|
|
11
|
+
"note": "Contracts authority errors: schemas, registry, dialects, rules, fixtures."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"prefix": "SFC2",
|
|
15
|
+
"category": "kernel",
|
|
16
|
+
"note": "Kernel protocol operation errors."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"prefix": "SFC3",
|
|
20
|
+
"category": "report",
|
|
21
|
+
"note": "Report contract errors: digest binding, mandatory elements, fact drift. Style findings are never coded here; they are advisory output of the report check, not errors."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stability": "Codes are append-only. A frozen code is never reused for a different meaning; a deprecated code stays reserved. New codes require a contracts change."
|
|
25
|
+
},
|
|
26
|
+
"codes": [
|
|
27
|
+
{
|
|
28
|
+
"code": "SFC1001",
|
|
29
|
+
"name": "SCHEMA_VALIDATION_FAILED",
|
|
30
|
+
"category": "contract",
|
|
31
|
+
"stableSince": "1.0.0",
|
|
32
|
+
"meaning": "A document failed validation against its registered schema under the declared dialect and policy."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "SFC1002",
|
|
36
|
+
"name": "UNKNOWN_SCHEMA_ID",
|
|
37
|
+
"category": "contract",
|
|
38
|
+
"stableSince": "1.0.0",
|
|
39
|
+
"meaning": "The referenced $id is not present in the schema registry."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "SFC1003",
|
|
43
|
+
"name": "DUPLICATE_SCHEMA_ID",
|
|
44
|
+
"category": "contract",
|
|
45
|
+
"stableSince": "1.0.0",
|
|
46
|
+
"meaning": "Two schema registrations share the same $id; the registration is mechanically rejected."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"code": "SFC1004",
|
|
50
|
+
"name": "DUPLICATE_PROTOCOL_NAME",
|
|
51
|
+
"category": "contract",
|
|
52
|
+
"stableSince": "1.0.0",
|
|
53
|
+
"meaning": "Two protocol registrations share the same name and version; the registration is mechanically rejected."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"code": "SFC1005",
|
|
57
|
+
"name": "UNRESOLVED_REF",
|
|
58
|
+
"category": "contract",
|
|
59
|
+
"stableSince": "1.0.0",
|
|
60
|
+
"meaning": "A $ref target cannot be resolved within the registered schema set."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"code": "SFC1006",
|
|
64
|
+
"name": "UNSUPPORTED_DIALECT",
|
|
65
|
+
"category": "contract",
|
|
66
|
+
"stableSince": "1.0.0",
|
|
67
|
+
"meaning": "The declared JSON Schema dialect is not in the frozen supported dialect set."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"code": "SFC1007",
|
|
71
|
+
"name": "UNKNOWN_CHECK_TYPE",
|
|
72
|
+
"category": "contract",
|
|
73
|
+
"stableSince": "1.0.0",
|
|
74
|
+
"meaning": "A rule uses a check type outside the finite set of nine."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"code": "SFC1008",
|
|
78
|
+
"name": "RULE_BUDGET_EXCEEDED",
|
|
79
|
+
"category": "contract",
|
|
80
|
+
"stableSince": "1.0.0",
|
|
81
|
+
"meaning": "The mandatory rule count exceeds the first-version budget or the absolute cap."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"code": "SFC1009",
|
|
85
|
+
"name": "UNKNOWN_ERROR_CODE",
|
|
86
|
+
"category": "contract",
|
|
87
|
+
"stableSince": "1.0.0",
|
|
88
|
+
"meaning": "A fixture expectation references an error code that is not in this frozen registry."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"code": "SFC1010",
|
|
92
|
+
"name": "FIXTURE_EXPECTATION_MISMATCH",
|
|
93
|
+
"category": "contract",
|
|
94
|
+
"stableSince": "1.0.0",
|
|
95
|
+
"meaning": "A fixture did not behave as declared: a valid-expecting fixture failed, or an invalid-expecting fixture did not fail with the declared stable code."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "SFC1011",
|
|
99
|
+
"name": "UNKNOWN_PROTOCOL",
|
|
100
|
+
"category": "contract",
|
|
101
|
+
"stableSince": "1.0.0",
|
|
102
|
+
"meaning": "A request references a protocol name/version that is not registered."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code": "SFC1012",
|
|
106
|
+
"name": "SCHEMA_COMPILE_FAILED",
|
|
107
|
+
"category": "contract",
|
|
108
|
+
"stableSince": "1.0.0",
|
|
109
|
+
"meaning": "A registered schema does not compile under its declared dialect (the schema document itself is invalid)."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"code": "SFC1013",
|
|
113
|
+
"name": "CONSUMER_CONTRACT_VERSION_MISMATCH",
|
|
114
|
+
"category": "contract",
|
|
115
|
+
"stableSince": "1.14.0",
|
|
116
|
+
"meaning": "A consumer contract vector, capability identity, vector set, or Foundation package version does not match the installed Contracts package."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"code": "SFC2002",
|
|
120
|
+
"name": "UNKNOWN_OPERATION",
|
|
121
|
+
"category": "kernel",
|
|
122
|
+
"stableSince": "1.0.0",
|
|
123
|
+
"meaning": "The requested operation name is not in the frozen operation vocabulary of the referenced protocol version."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"code": "SFC2003",
|
|
127
|
+
"name": "INVALID_PARAMS",
|
|
128
|
+
"category": "kernel",
|
|
129
|
+
"stableSince": "1.0.0",
|
|
130
|
+
"meaning": "Operation params do not satisfy the frozen params contract of the requested operation."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"code": "SFC2004",
|
|
134
|
+
"name": "EXECUTION_FAILED",
|
|
135
|
+
"category": "kernel",
|
|
136
|
+
"stableSince": "1.0.0",
|
|
137
|
+
"meaning": "The mechanism runtime failed while executing a well-formed operation; details carry the mechanism evidence. Demonstrable only by a mechanism runtime, not by static contracts checks."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"code": "SFC3001",
|
|
141
|
+
"name": "REPORT_DIGEST_MISMATCH",
|
|
142
|
+
"category": "report",
|
|
143
|
+
"stableSince": "1.2.0",
|
|
144
|
+
"meaning": "A report binding digest (model, result, or report digest) does not match the recomputed sha256 digest, or the report is not the canonical render of its model; the binding is stale or tampered and is never trusted."
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"code": "SFC3002",
|
|
148
|
+
"name": "REPORT_ELEMENT_MISSING",
|
|
149
|
+
"category": "report",
|
|
150
|
+
"stableSince": "1.2.0",
|
|
151
|
+
"meaning": "A mandatory report element is absent, empty where it must not be, or declared in an unsupported form: the conclusion, non-empty evidence, risks/next-action sections, a supported locale, or a coded outcome for failed/blocked runs. No half report is issued for a missing element."
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"code": "SFC3003",
|
|
155
|
+
"name": "REPORT_FACT_DRIFT",
|
|
156
|
+
"category": "report",
|
|
157
|
+
"stableSince": "1.2.0",
|
|
158
|
+
"meaning": "A report model misstates the bound operation result's terminal state/errors, or rendered report bytes diverge from the deterministic re-render of the bound report model: fact fields rewritten, sections deleted, duplicated, or injected."
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright (c) 2026 skill-family-foundation-workspace contributors
|
|
190
|
+
Copyright (c) 2026 广州市风荷科技有限公司
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|