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
@@ -0,0 +1,193 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/skill-family-directory-verification-result.json",
4
+ "title": "Skill-family directory verification result",
5
+ "description": "A public, closed Kimi directory verification result. It carries only digests and structured observation summaries; family roots, raw streams, credentials and executable identity inputs remain private.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "kind", "operation", "status", "requestDigest", "host", "facts", "reason", "requiredActions"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "kind": { "const": "skill-family.skill-family-directory-verification-result" },
12
+ "operation": { "const": "skill-family-directory-verification" },
13
+ "status": { "enum": ["observed", "rejected", "failed", "indeterminate"] },
14
+ "requestDigest": { "$ref": "#/$defs/sha256" },
15
+ "host": { "$ref": "https://contracts.skill-family.example/v1/skill-family-directory-verification-request.json#/$defs/host" },
16
+ "facts": { "$ref": "#/$defs/facts" },
17
+ "reason": {
18
+ "enum": [null, "preflight-rejected", "executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "boundary-state-indeterminate", "source-invalid", "directory-mismatch", "skill-not-discovered", "skill-not-loaded", "official-observation-unavailable"]
19
+ },
20
+ "requiredActions": {
21
+ "type": "array",
22
+ "uniqueItems": true,
23
+ "items": { "enum": ["manual-temporary-root-inspection-required"] }
24
+ }
25
+ },
26
+ "allOf": [
27
+ {
28
+ "if": { "type": "object", "properties": { "status": { "const": "observed" } }, "required": ["status"] },
29
+ "then": {
30
+ "type": "object",
31
+ "properties": {
32
+ "reason": { "const": null },
33
+ "requiredActions": { "type": "array", "maxItems": 0 },
34
+ "facts": {
35
+ "type": "object",
36
+ "properties": {
37
+ "skills": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "required": ["callId", "resultId"],
42
+ "properties": {
43
+ "discovery": { "const": "observed" },
44
+ "load": { "const": "observed" },
45
+ "callId": { "type": "string", "minLength": 1, "maxLength": 512 },
46
+ "resultId": { "type": "string", "minLength": 1, "maxLength": 512 }
47
+ }
48
+ }
49
+ },
50
+ "workload": {
51
+ "type": "object",
52
+ "properties": {
53
+ "execution": {
54
+ "type": "object",
55
+ "properties": {
56
+ "spawned": { "const": true },
57
+ "exitStatus": { "const": 0 },
58
+ "processStatus": { "const": "EXITED" },
59
+ "terminationReason": { "const": null },
60
+ "watchdogReason": { "const": null },
61
+ "runnerModelOverrideAbsent": { "const": true }
62
+ }
63
+ },
64
+ "streams": { "type": "object" },
65
+ "snapshots": { "type": "object" },
66
+ "snapshotsMatch": { "const": true }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ {
75
+ "if": { "type": "object", "properties": { "status": { "const": "indeterminate" } }, "required": ["status"] },
76
+ "then": {
77
+ "type": "object",
78
+ "properties": {
79
+ "reason": { "enum": ["boundary-state-indeterminate", "official-observation-unavailable"] },
80
+ "requiredActions": { "const": ["manual-temporary-root-inspection-required"] }
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "if": { "type": "object", "properties": { "status": { "const": "rejected" } }, "required": ["status"] },
86
+ "then": {
87
+ "type": "object",
88
+ "properties": {
89
+ "reason": { "enum": ["preflight-rejected", "executable-observation-mismatch", "source-invalid", "directory-mismatch"] },
90
+ "requiredActions": { "type": "array", "maxItems": 0 },
91
+ "facts": { "type": "object", "properties": { "workload": { "const": null } } }
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "if": { "type": "object", "properties": { "status": { "const": "failed" } }, "required": ["status"] },
97
+ "then": {
98
+ "type": "object",
99
+ "properties": {
100
+ "reason": { "enum": ["execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "skill-not-discovered", "skill-not-loaded"] },
101
+ "requiredActions": { "type": "array", "maxItems": 0 }
102
+ }
103
+ }
104
+ }
105
+ ],
106
+ "$defs": {
107
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
108
+ "skillName": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
109
+ "facts": {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": ["familyTree", "skills", "workload"],
113
+ "properties": {
114
+ "familyTree": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": ["sourceManifestSha256", "membersDigest"],
118
+ "properties": {
119
+ "sourceManifestSha256": { "$ref": "#/$defs/sha256" },
120
+ "membersDigest": { "$ref": "#/$defs/sha256" }
121
+ }
122
+ },
123
+ "skills": {
124
+ "type": "array",
125
+ "minItems": 2,
126
+ "maxItems": 128,
127
+ "uniqueItems": true,
128
+ "items": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": ["name", "sourceSha256", "discovery", "load", "callId", "resultId"],
132
+ "properties": {
133
+ "name": { "$ref": "#/$defs/skillName" },
134
+ "sourceSha256": { "$ref": "#/$defs/sha256" },
135
+ "discovery": { "enum": ["observed", "absent", "unknown"] },
136
+ "load": { "enum": ["observed", "absent", "unknown"] },
137
+ "callId": { "type": ["string", "null"], "minLength": 1, "maxLength": 512 },
138
+ "resultId": { "type": ["string", "null"], "minLength": 1, "maxLength": 512 }
139
+ }
140
+ }
141
+ },
142
+ "workload": {
143
+ "type": ["object", "null"],
144
+ "additionalProperties": false,
145
+ "required": ["execution", "streams", "snapshots", "snapshotsMatch"],
146
+ "properties": {
147
+ "execution": { "$ref": "#/$defs/execution" },
148
+ "streams": { "$ref": "#/$defs/streams" },
149
+ "snapshots": { "$ref": "#/$defs/snapshots" },
150
+ "snapshotsMatch": { "type": ["boolean", "null"] }
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "execution": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": ["spawned", "exitStatus", "processStatus", "terminationReason", "watchdogReason", "runnerModelOverrideAbsent"],
159
+ "properties": {
160
+ "spawned": { "type": "boolean" },
161
+ "exitStatus": { "type": ["integer", "null"], "minimum": 0 },
162
+ "processStatus": { "type": ["string", "null"], "enum": ["PLANNED", "STARTING", "RUNNING", "EXITED", "FAILED_TO_START", "TIMED_OUT", "TERMINATED", null] },
163
+ "terminationReason": { "type": ["string", "null"] },
164
+ "watchdogReason": { "type": ["string", "null"] },
165
+ "runnerModelOverrideAbsent": { "type": "boolean" }
166
+ }
167
+ },
168
+ "stream": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": ["sha256", "bytes", "sensitivity"],
172
+ "properties": { "sha256": { "$ref": "#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 }, "sensitivity": { "const": "private" } }
173
+ },
174
+ "streams": {
175
+ "type": ["object", "null"],
176
+ "additionalProperties": false,
177
+ "required": ["stdout", "stderr"],
178
+ "properties": { "stdout": { "$ref": "#/$defs/stream" }, "stderr": { "$ref": "#/$defs/stream" } }
179
+ },
180
+ "snapshot": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["preClosureDigest", "postClosureDigest"],
184
+ "properties": { "preClosureDigest": { "$ref": "#/$defs/sha256" }, "postClosureDigest": { "$ref": "#/$defs/sha256" } }
185
+ },
186
+ "snapshots": {
187
+ "type": ["object", "null"],
188
+ "additionalProperties": false,
189
+ "required": ["family", "fixture", "protectedWorkspace"],
190
+ "properties": { "family": { "$ref": "#/$defs/snapshot" }, "fixture": { "$ref": "#/$defs/snapshot" }, "protectedWorkspace": { "$ref": "#/$defs/snapshot" } }
191
+ }
192
+ }
193
+ }