release-skill 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) 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 +49 -0
  7. package/INSTALL.md +2 -2
  8. package/INSTALL.zh-CN.md +2 -2
  9. package/README.md +24 -26
  10. package/README.zh-CN.md +20 -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 +4068 -1962
  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 +11 -3
  25. package/adapters/claude/skills/release-marketplace/SKILL.md +3 -1
  26. package/adapters/claude/skills/release-prepare/SKILL.md +2 -0
  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 +4068 -1962
  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 +11 -3
  48. package/adapters/codex/skills/release-marketplace/SKILL.md +3 -1
  49. package/adapters/codex/skills/release-prepare/SKILL.md +2 -0
  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 +4068 -1962
  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 +11 -3
  71. package/adapters/kimi/skills/release-marketplace/SKILL.md +3 -1
  72. package/adapters/kimi/skills/release-prepare/SKILL.md +2 -0
  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 +4068 -1962
  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 +11 -3
  94. package/adapters/workbuddy/skills/release-marketplace/SKILL.md +3 -1
  95. package/adapters/workbuddy/skills/release-prepare/SKILL.md +2 -0
  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 +32 -0
  109. package/bin/release-skill.bundle.mjs +4068 -1962
  110. package/bin/rules.json +1 -1
  111. package/package.json +5 -5
  112. package/platform-manifest.json +4 -4
  113. package/references/01-state-machine.md +16 -1
  114. package/references/05-evidence-and-errors.md +2 -2
  115. package/schemas/release-project.schema.json +4 -0
  116. package/schemas/release-run.schema.json +41 -1
  117. package/skills/release-config/SKILL.md +5 -3
  118. package/skills/release-docs/SKILL.md +4 -2
  119. package/skills/release-finish/SKILL.md +2 -0
  120. package/skills/release-help/SKILL.md +11 -3
  121. package/skills/release-marketplace/SKILL.md +3 -1
  122. package/skills/release-prepare/SKILL.md +2 -0
  123. package/skills/release-publish/SKILL.md +17 -10
  124. package/skills/release-verify/SKILL.md +2 -0
  125. package/skills-src/release-config/SKILL.md +5 -3
  126. package/skills-src/release-docs/SKILL.md +4 -2
  127. package/skills-src/release-finish/SKILL.md +2 -0
  128. package/skills-src/release-help/SKILL.md +11 -3
  129. package/skills-src/release-marketplace/SKILL.md +3 -1
  130. package/skills-src/release-prepare/SKILL.md +2 -0
  131. package/skills-src/release-publish/SKILL.md +17 -10
  132. package/skills-src/release-verify/SKILL.md +2 -0
  133. package/src/commands/prepare.mjs +139 -5
  134. package/src/commands/route.mjs +597 -18
  135. package/src/commands/setup.mjs +2 -0
  136. package/src/commands/ship.mjs +19 -0
  137. package/src/commands/verify.mjs +21 -0
  138. package/src/core/adoption-assessment.mjs +59 -0
  139. package/src/core/foundation-plugin-verification.mjs +213 -1
  140. package/src/core/hook-cache.mjs +318 -26
  141. package/src/core/hooks.mjs +8 -1
  142. package/src/producers/foundation-resource-projection.mjs +3 -3
  143. package/src/schemas/executable-identity-observation.schema.json +162 -0
  144. package/src/schemas/filesystem-tree-observation.schema.json +18 -2
  145. package/src/schemas/plugin-verification-request.schema.json +147 -22
  146. package/src/schemas/plugin-verification-result.schema.json +436 -18
  147. package/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  148. package/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
@@ -30,23 +30,20 @@
30
30
  "goal": {
31
31
  "enum": [
32
32
  "install-only",
33
- "install-and-invoke"
33
+ "install-and-invoke",
34
+ "native-lifecycle"
34
35
  ]
35
36
  },
36
37
  "source": {
37
38
  "type": "object",
38
39
  "additionalProperties": false,
39
- "required": [
40
- "type",
41
- "candidateRef",
42
- "sourceManifestSha256",
43
- "membersDigest"
44
- ],
40
+ "required": ["type"],
45
41
  "properties": {
46
42
  "type": {
47
43
  "enum": [
48
44
  "local-staged",
49
- "public-channel"
45
+ "public-channel",
46
+ "local-marketplace"
50
47
  ]
51
48
  },
52
49
  "candidateRef": {
@@ -58,6 +55,21 @@
58
55
  "membersDigest": {
59
56
  "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256"
60
57
  },
58
+ "marketplaceId": {
59
+ "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/opaque"
60
+ },
61
+ "pluginId": {
62
+ "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/opaque"
63
+ },
64
+ "revisions": {
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": ["v1", "v2"],
68
+ "properties": {
69
+ "v1": { "$ref": "#/$defs/marketplaceRevision" },
70
+ "v2": { "$ref": "#/$defs/marketplaceRevision" }
71
+ }
72
+ },
61
73
  "channel": {
62
74
  "type": "object",
63
75
  "additionalProperties": false,
@@ -86,7 +98,48 @@
86
98
  }
87
99
  }
88
100
  }
89
- }
101
+ },
102
+ "allOf": [
103
+ {
104
+ "if": {
105
+ "properties": { "type": { "const": "local-staged" } },
106
+ "required": ["type"]
107
+ },
108
+ "then": {
109
+ "required": ["candidateRef", "sourceManifestSha256", "membersDigest"],
110
+ "properties": {
111
+ "candidateRef": {}, "sourceManifestSha256": {}, "membersDigest": {},
112
+ "channel": false, "marketplaceId": false, "pluginId": false, "revisions": false
113
+ }
114
+ }
115
+ },
116
+ {
117
+ "if": {
118
+ "properties": { "type": { "const": "public-channel" } },
119
+ "required": ["type"]
120
+ },
121
+ "then": {
122
+ "required": ["candidateRef", "sourceManifestSha256", "membersDigest", "channel"],
123
+ "properties": {
124
+ "candidateRef": {}, "sourceManifestSha256": {}, "membersDigest": {}, "channel": {},
125
+ "marketplaceId": false, "pluginId": false, "revisions": false
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "if": {
131
+ "properties": { "type": { "const": "local-marketplace" } },
132
+ "required": ["type"]
133
+ },
134
+ "then": {
135
+ "required": ["candidateRef", "marketplaceId", "pluginId", "revisions"],
136
+ "properties": {
137
+ "candidateRef": {}, "marketplaceId": {}, "pluginId": {}, "revisions": {},
138
+ "sourceManifestSha256": false, "membersDigest": false, "channel": false
139
+ }
140
+ }
141
+ }
142
+ ]
90
143
  },
91
144
  "host": {
92
145
  "type": "object",
@@ -211,14 +264,17 @@
211
264
  "allOf": [
212
265
  {
213
266
  "if": {
214
- "type": "object",
215
- "properties": {
216
- "goal": {
217
- "const": "install-and-invoke"
267
+ "anyOf": [
268
+ {
269
+ "type": "object",
270
+ "properties": { "goal": { "const": "install-and-invoke" } },
271
+ "required": ["goal"]
272
+ },
273
+ {
274
+ "type": "object",
275
+ "properties": { "goal": { "const": "native-lifecycle" } },
276
+ "required": ["goal"]
218
277
  }
219
- },
220
- "required": [
221
- "goal"
222
278
  ]
223
279
  },
224
280
  "then": {
@@ -284,6 +340,17 @@
284
340
  },
285
341
  "else": {
286
342
  "type": "object",
343
+ "if": {
344
+ "properties": {
345
+ "source": {
346
+ "type": "object",
347
+ "properties": { "type": { "const": "local-staged" } },
348
+ "required": ["type"]
349
+ }
350
+ },
351
+ "required": ["source"]
352
+ },
353
+ "then": {
287
354
  "properties": {
288
355
  "source": {
289
356
  "type": "object",
@@ -299,6 +366,7 @@
299
366
  }
300
367
  }
301
368
  }
369
+ }
302
370
  }
303
371
  },
304
372
  {
@@ -333,6 +401,11 @@
333
401
  "required": [
334
402
  "source"
335
403
  ]
404
+ },
405
+ {
406
+ "type": "object",
407
+ "properties": { "goal": { "const": "native-lifecycle" } },
408
+ "required": ["goal"]
336
409
  }
337
410
  ]
338
411
  },
@@ -348,13 +421,37 @@
348
421
  "properties": {
349
422
  "cliVersion": {},
350
423
  "executableSha256": {}
424
+ }
425
+ }
426
+ },
427
+ "allOf": [
428
+ {
429
+ "if": {
430
+ "type": "object",
431
+ "properties": { "goal": { "const": "native-lifecycle" } },
432
+ "required": ["goal"]
351
433
  },
352
- "required": [
353
- "cliVersion",
354
- "executableSha256"
355
- ]
434
+ "then": {
435
+ "type": "object",
436
+ "properties": {
437
+ "host": {
438
+ "type": "object",
439
+ "properties": { "cliVersion": false, "executableSha256": false }
440
+ }
441
+ }
442
+ },
443
+ "else": {
444
+ "type": "object",
445
+ "properties": {
446
+ "host": {
447
+ "type": "object",
448
+ "required": ["cliVersion", "executableSha256"],
449
+ "properties": { "cliVersion": {}, "executableSha256": {} }
450
+ }
451
+ }
452
+ }
356
453
  }
357
- }
454
+ ]
358
455
  },
359
456
  "else": {
360
457
  "type": "object",
@@ -369,6 +466,34 @@
369
466
  }
370
467
  }
371
468
  }
469
+ },
470
+ {
471
+ "if": {
472
+ "properties": { "goal": { "const": "native-lifecycle" } },
473
+ "required": ["goal"]
474
+ },
475
+ "then": {
476
+ "properties": {
477
+ "source": {
478
+ "type": "object",
479
+ "properties": { "type": { "const": "local-marketplace" } },
480
+ "required": ["type"]
481
+ }
482
+ },
483
+ "required": ["auth", "invocation"]
484
+ }
485
+ }
486
+ ],
487
+ "$defs": {
488
+ "marketplaceRevision": {
489
+ "type": "object",
490
+ "additionalProperties": false,
491
+ "required": ["version", "sourceManifestSha256", "membersDigest"],
492
+ "properties": {
493
+ "version": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/host/properties/driverVersion" },
494
+ "sourceManifestSha256": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" },
495
+ "membersDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" }
496
+ }
372
497
  }
373
- ]
498
+ }
374
499
  }