@acidicsoil/portable-capabilities 0.1.5 → 0.1.8

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 (59) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +31 -62
  3. package/dist-release/catalog/roles/acceptance-criteria-synthesis.yaml +84 -0
  4. package/dist-release/catalog/roles/anti-pattern-inversion.yaml +83 -0
  5. package/dist-release/catalog/roles/behavior-preserving-refactor.yaml +88 -0
  6. package/dist-release/catalog/roles/canonical-exemplar-generalization.yaml +84 -0
  7. package/dist-release/catalog/roles/constrained-exemplar-adaptation.yaml +85 -0
  8. package/dist-release/catalog/roles/convention-mining.yaml +81 -0
  9. package/dist-release/catalog/roles/conversation-to-specification.yaml +83 -0
  10. package/dist-release/catalog/roles/delta-analysis.yaml +84 -0
  11. package/dist-release/catalog/roles/domain-context-boundary.yaml +82 -0
  12. package/dist-release/catalog/roles/evaluation-harness-design.yaml +86 -0
  13. package/dist-release/catalog/roles/failure-to-guardrail.yaml +81 -0
  14. package/dist-release/catalog/roles/multi-exemplar-consensus.yaml +81 -0
  15. package/dist-release/catalog/roles/reference-trace-mapping.yaml +83 -0
  16. package/dist-release/catalog/roles/reusable-workflow-abstraction.yaml +82 -0
  17. package/dist-release/catalog/roles/structural-pattern-extraction.yaml +82 -0
  18. package/dist-release/catalog/roles/template-family-generation.yaml +83 -0
  19. package/dist-release/catalog/schemas/acceptance-criteria-synthesis.output.schema.json +63 -0
  20. package/dist-release/catalog/schemas/anti-pattern-inversion.output.schema.json +63 -0
  21. package/dist-release/catalog/schemas/behavior-preserving-refactor.output.schema.json +63 -0
  22. package/dist-release/catalog/schemas/canonical-exemplar-generalization.output.schema.json +63 -0
  23. package/dist-release/catalog/schemas/constrained-exemplar-adaptation.output.schema.json +63 -0
  24. package/dist-release/catalog/schemas/convention-mining.output.schema.json +63 -0
  25. package/dist-release/catalog/schemas/conversation-to-specification.output.schema.json +63 -0
  26. package/dist-release/catalog/schemas/delta-analysis.output.schema.json +63 -0
  27. package/dist-release/catalog/schemas/domain-context-boundary.output.schema.json +63 -0
  28. package/dist-release/catalog/schemas/evaluation-harness-design.output.schema.json +73 -0
  29. package/dist-release/catalog/schemas/failure-to-guardrail.output.schema.json +63 -0
  30. package/dist-release/catalog/schemas/multi-exemplar-consensus.output.schema.json +63 -0
  31. package/dist-release/catalog/schemas/reference-trace-mapping.output.schema.json +63 -0
  32. package/dist-release/catalog/schemas/reusable-workflow-abstraction.output.schema.json +73 -0
  33. package/dist-release/catalog/schemas/structural-pattern-extraction.output.schema.json +63 -0
  34. package/dist-release/catalog/schemas/template-family-generation.output.schema.json +63 -0
  35. package/dist-release/cli.js +5507 -3265
  36. package/dist-release/cli.js.map +4 -4
  37. package/dist-release/index.js +5976 -3447
  38. package/dist-release/index.js.map +4 -4
  39. package/package.json +37 -42
  40. package/schemas/canonical-artifact.schema.json +220 -0
  41. package/schemas/runtime-descriptor.schema.json +338 -0
  42. package/schemas/runtime-evidence-claim.schema.json +87 -0
  43. package/canonical/exceptions/antigravity-unsupported-primitives.yaml +0 -16
  44. package/canonical/exceptions/claude-code-unsupported-primitives.yaml +0 -16
  45. package/canonical/exceptions/codex-unsupported-primitives.yaml +0 -16
  46. package/canonical/exceptions/dcode-unsupported-primitives.yaml +0 -16
  47. package/canonical/exceptions/oh-my-pi-unsupported-primitives.yaml +0 -16
  48. package/canonical/exceptions/opencode-unsupported-primitives.yaml +0 -16
  49. package/canonical/exceptions/pi-unsupported-primitives.yaml +0 -16
  50. package/canonical/fixtures/runtime-primitive-matrix-112.json +0 -1956
  51. package/canonical/runtime-primitive-policy.yaml +0 -100
  52. package/canonical/runtime-profiles/antigravity.yaml +0 -60
  53. package/canonical/runtime-profiles/claude-code.yaml +0 -65
  54. package/canonical/runtime-profiles/codex.yaml +0 -71
  55. package/canonical/runtime-profiles/dcode.yaml +0 -67
  56. package/canonical/runtime-profiles/oh-my-pi.yaml +0 -62
  57. package/canonical/runtime-profiles/opencode.yaml +0 -65
  58. package/canonical/runtime-profiles/pi.yaml +0 -66
  59. package/schemas/runtime-profile.schema.json +0 -305
@@ -1,305 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://portable-capabilities.dev/schemas/runtime-profile/1.0",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "required": [
7
- "schemaVersion",
8
- "id",
9
- "version",
10
- "nativeRoot",
11
- "supportedPrimitives",
12
- "unsupportedPrimitives",
13
- "capabilities",
14
- "limitations",
15
- "limits",
16
- "permissionModel",
17
- "provenance",
18
- "compatibility",
19
- "fallbacks"
20
- ],
21
- "properties": {
22
- "schemaVersion": {
23
- "const": "1.0"
24
- },
25
- "id": {
26
- "enum": [
27
- "reference",
28
- "oh-my-pi",
29
- "opencode",
30
- "pi",
31
- "claude-code",
32
- "codex",
33
- "antigravity",
34
- "dcode"
35
- ]
36
- },
37
- "version": {
38
- "type": "string",
39
- "pattern": "^\\d+\\.\\d+\\.\\d+$"
40
- },
41
- "nativeRoot": {
42
- "type": "string",
43
- "minLength": 1
44
- },
45
- "supportedPrimitives": {
46
- "type": "array",
47
- "uniqueItems": true,
48
- "items": {
49
- "enum": ["skill", "command", "agent", "workflow", "rule", "extension", "memory"]
50
- }
51
- },
52
- "unsupportedPrimitives": {
53
- "type": "array",
54
- "uniqueItems": true,
55
- "items": {
56
- "enum": ["skill", "command", "agent", "workflow", "rule", "extension", "memory"]
57
- }
58
- },
59
- "capabilities": {
60
- "type": "object",
61
- "additionalProperties": {
62
- "type": "boolean"
63
- }
64
- },
65
- "limitations": {
66
- "type": "array",
67
- "items": {
68
- "type": "string",
69
- "minLength": 1
70
- }
71
- },
72
- "limits": {
73
- "type": "object",
74
- "additionalProperties": false,
75
- "required": ["maxInitialBytes", "maxResourceBytes"],
76
- "properties": {
77
- "maxInitialBytes": {
78
- "type": "integer",
79
- "minimum": 1
80
- },
81
- "maxResourceBytes": {
82
- "type": "integer",
83
- "minimum": 1
84
- }
85
- }
86
- },
87
- "permissionModel": {
88
- "const": "read-only-default"
89
- },
90
- "provenance": {
91
- "type": "object",
92
- "additionalProperties": false,
93
- "required": ["sources", "reviewedAt", "reviewBy", "reviewer"],
94
- "properties": {
95
- "sources": {
96
- "type": "array",
97
- "minItems": 1,
98
- "items": {
99
- "type": "string"
100
- }
101
- },
102
- "reviewedAt": {
103
- "type": "string",
104
- "format": "date"
105
- },
106
- "reviewBy": {
107
- "type": "string",
108
- "format": "date"
109
- },
110
- "reviewer": {
111
- "type": "string",
112
- "minLength": 1
113
- }
114
- }
115
- },
116
- "fallbacks": {
117
- "type": "object",
118
- "additionalProperties": {
119
- "type": "string",
120
- "minLength": 1
121
- }
122
- },
123
- "compatibility": {
124
- "type": "object",
125
- "additionalProperties": false,
126
- "required": [
127
- "releaseObservedAt",
128
- "releaseSource",
129
- "latestPublishedVersion",
130
- "minimumSupportedVersion",
131
- "maximumKnownCompatibleVersion",
132
- "maximumKnownCompatibleRange",
133
- "testedVersions",
134
- "outcome",
135
- "unknownVersionBehavior",
136
- "harness",
137
- "reviewedAt",
138
- "expiresAt",
139
- "approval"
140
- ],
141
- "properties": {
142
- "minimumSupportedVersion": {
143
- "type": ["string", "null"],
144
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
145
- },
146
- "testedVersions": {
147
- "type": "array",
148
- "items": {
149
- "type": "object",
150
- "additionalProperties": false,
151
- "required": ["version", "testedAt", "platform", "executable", "evidence"],
152
- "properties": {
153
- "version": {
154
- "type": "string",
155
- "minLength": 1
156
- },
157
- "testedAt": {
158
- "type": "string",
159
- "format": "date"
160
- },
161
- "platform": {
162
- "type": "string",
163
- "minLength": 1
164
- },
165
- "executable": {
166
- "type": "string",
167
- "minLength": 1
168
- },
169
- "evidence": {
170
- "type": "string",
171
- "minLength": 1
172
- }
173
- }
174
- }
175
- },
176
- "outcome": {
177
- "enum": ["supported", "unsupported", "unavailable", "unknown-version"]
178
- },
179
- "unknownVersionBehavior": {
180
- "enum": ["fail", "warn-with-exception"]
181
- },
182
- "harness": {
183
- "type": "object",
184
- "additionalProperties": false,
185
- "required": ["identity", "availability", "evidence"],
186
- "properties": {
187
- "identity": {
188
- "type": "string",
189
- "minLength": 1
190
- },
191
- "availability": {
192
- "enum": ["available", "unavailable"]
193
- },
194
- "evidence": {
195
- "type": "string",
196
- "minLength": 1
197
- }
198
- }
199
- },
200
- "reviewedAt": {
201
- "type": "string",
202
- "format": "date"
203
- },
204
- "expiresAt": {
205
- "type": "string",
206
- "format": "date"
207
- },
208
- "approval": {
209
- "type": "object",
210
- "additionalProperties": false,
211
- "required": ["status", "owner"],
212
- "properties": {
213
- "status": {
214
- "enum": ["pending", "approved", "rejected"]
215
- },
216
- "owner": {
217
- "type": "string",
218
- "minLength": 1
219
- },
220
- "approvedAt": {
221
- "type": "string",
222
- "format": "date"
223
- }
224
- }
225
- },
226
- "latestPublishedVersion": {
227
- "type": "string",
228
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
229
- },
230
- "releaseSource": {
231
- "type": "string",
232
- "pattern": "^https://.+"
233
- },
234
- "releaseObservedAt": {
235
- "type": "string",
236
- "format": "date"
237
- },
238
- "maximumKnownCompatibleVersion": {
239
- "type": ["string", "null"],
240
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
241
- },
242
- "maximumKnownCompatibleRange": {
243
- "type": ["string", "null"],
244
- "pattern": "^>=\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)? <=\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
245
- }
246
- },
247
- "allOf": [
248
- {
249
- "if": {
250
- "properties": {
251
- "outcome": {
252
- "const": "supported"
253
- }
254
- }
255
- },
256
- "then": {
257
- "properties": {
258
- "harness": {
259
- "properties": {
260
- "availability": {
261
- "const": "available"
262
- }
263
- },
264
- "type": "object"
265
- },
266
- "approval": {
267
- "properties": {
268
- "status": {
269
- "const": "approved"
270
- },
271
- "approvedAt": {
272
- "type": "string",
273
- "format": "date"
274
- }
275
- },
276
- "required": ["approvedAt"],
277
- "type": "object"
278
- },
279
- "testedVersions": {
280
- "minItems": 1,
281
- "type": "array"
282
- }
283
- }
284
- }
285
- },
286
- {
287
- "if": {
288
- "properties": {
289
- "outcome": {
290
- "const": "unknown-version"
291
- }
292
- }
293
- },
294
- "then": {
295
- "properties": {
296
- "minimumSupportedVersion": {
297
- "type": "null"
298
- }
299
- }
300
- }
301
- }
302
- ]
303
- }
304
- }
305
- }