@agentique.io/schemas 0.1.0 → 0.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentique.io/schemas",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Public JSON Schema contracts for Agentique resource preparation.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -0,0 +1,336 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.agentique.io/parser-variant.schema.json",
4
+ "title": "Agentique Public Parser And Variant Metadata",
5
+ "$ref": "#/$defs/parserVariantMetadata",
6
+ "$defs": {
7
+ "fingerprint": {
8
+ "type": "string",
9
+ "pattern": "^sha256:[a-f0-9]{64}$"
10
+ },
11
+ "reasonCode": {
12
+ "type": "string",
13
+ "minLength": 3,
14
+ "maxLength": 80,
15
+ "pattern": "^[a-z0-9][a-z0-9._-]*$"
16
+ },
17
+ "boundedText": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 240
21
+ },
22
+ "parserIssue": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["code", "severity", "message"],
26
+ "properties": {
27
+ "code": {
28
+ "$ref": "#/$defs/reasonCode"
29
+ },
30
+ "severity": {
31
+ "type": "string",
32
+ "enum": ["info", "warning", "error"]
33
+ },
34
+ "message": {
35
+ "$ref": "#/$defs/boundedText"
36
+ }
37
+ }
38
+ },
39
+ "parserEvidence": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "required": [
43
+ "sourceEcosystem",
44
+ "sourceFormat",
45
+ "parserId",
46
+ "parserVersion",
47
+ "inputDigest",
48
+ "parseStatus",
49
+ "parseConfidence",
50
+ "sanitizerStatus",
51
+ "noExecution",
52
+ "observedAt"
53
+ ],
54
+ "properties": {
55
+ "sourceEcosystem": {
56
+ "type": "string",
57
+ "enum": [
58
+ "mcp",
59
+ "dify",
60
+ "flowise",
61
+ "n8n",
62
+ "langgraph",
63
+ "autogen",
64
+ "llamaindex",
65
+ "codex",
66
+ "claude-code",
67
+ "generic"
68
+ ]
69
+ },
70
+ "sourceFormat": {
71
+ "type": "string",
72
+ "enum": ["json", "yaml", "python", "notebook", "markdown", "directory", "unknown"]
73
+ },
74
+ "parserId": {
75
+ "type": "string",
76
+ "minLength": 3,
77
+ "maxLength": 80,
78
+ "pattern": "^[a-z0-9][a-z0-9._-]*$"
79
+ },
80
+ "parserVersion": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 80,
84
+ "pattern": "^[0-9A-Za-z][0-9A-Za-z.+_-]*$"
85
+ },
86
+ "inputDigest": {
87
+ "$ref": "#/$defs/fingerprint"
88
+ },
89
+ "outputDigest": {
90
+ "$ref": "#/$defs/fingerprint"
91
+ },
92
+ "parseStatus": {
93
+ "type": "string",
94
+ "enum": ["parsed", "partial", "unsupported", "blocked", "failed"]
95
+ },
96
+ "parseConfidence": {
97
+ "type": "string",
98
+ "enum": ["high", "medium", "low", "unknown"]
99
+ },
100
+ "sanitizerStatus": {
101
+ "type": "string",
102
+ "enum": ["passed", "redacted", "blocked", "not-applicable"]
103
+ },
104
+ "noExecution": {
105
+ "type": "boolean",
106
+ "const": true
107
+ },
108
+ "metadataOnly": {
109
+ "type": "boolean"
110
+ },
111
+ "observedAt": {
112
+ "type": "string",
113
+ "format": "date-time"
114
+ },
115
+ "issues": {
116
+ "type": "array",
117
+ "maxItems": 16,
118
+ "items": {
119
+ "$ref": "#/$defs/parserIssue"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "resourceGraphSummary": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": ["sanitized", "nodeCount", "edgeCount", "capabilityCount", "sourceFileCount", "summaryDigest"],
128
+ "properties": {
129
+ "sanitized": {
130
+ "type": "boolean",
131
+ "const": true
132
+ },
133
+ "nodeCount": {
134
+ "type": "integer",
135
+ "minimum": 0,
136
+ "maximum": 10000
137
+ },
138
+ "edgeCount": {
139
+ "type": "integer",
140
+ "minimum": 0,
141
+ "maximum": 50000
142
+ },
143
+ "capabilityCount": {
144
+ "type": "integer",
145
+ "minimum": 0,
146
+ "maximum": 1000
147
+ },
148
+ "sourceFileCount": {
149
+ "type": "integer",
150
+ "minimum": 0,
151
+ "maximum": 1000
152
+ },
153
+ "entrypointCount": {
154
+ "type": "integer",
155
+ "minimum": 0,
156
+ "maximum": 1000
157
+ },
158
+ "summaryDigest": {
159
+ "$ref": "#/$defs/fingerprint"
160
+ },
161
+ "redaction": {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "required": ["secrets", "privatePaths", "rawSource"],
165
+ "properties": {
166
+ "secrets": {
167
+ "type": "boolean",
168
+ "const": true
169
+ },
170
+ "privatePaths": {
171
+ "type": "boolean",
172
+ "const": true
173
+ },
174
+ "rawSource": {
175
+ "type": "boolean",
176
+ "const": true
177
+ }
178
+ }
179
+ }
180
+ }
181
+ },
182
+ "parserCompatibility": {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": ["status"],
186
+ "properties": {
187
+ "status": {
188
+ "type": "string",
189
+ "enum": ["compatible", "partial", "unsupported", "blocked", "unknown"]
190
+ },
191
+ "reasons": {
192
+ "type": "array",
193
+ "maxItems": 12,
194
+ "uniqueItems": true,
195
+ "items": {
196
+ "$ref": "#/$defs/reasonCode"
197
+ }
198
+ }
199
+ }
200
+ },
201
+ "variantDownload": {
202
+ "type": "object",
203
+ "additionalProperties": false,
204
+ "required": ["availability"],
205
+ "properties": {
206
+ "availability": {
207
+ "type": "string",
208
+ "enum": ["available", "source-only", "unavailable", "blocked"]
209
+ },
210
+ "url": {
211
+ "type": "string",
212
+ "format": "uri",
213
+ "pattern": "^https://"
214
+ },
215
+ "digest": {
216
+ "$ref": "#/$defs/fingerprint"
217
+ }
218
+ }
219
+ },
220
+ "platformVariant": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": ["platformId", "artifactKind", "state", "validationState", "download"],
224
+ "properties": {
225
+ "platformId": {
226
+ "type": "string",
227
+ "enum": [
228
+ "source-package",
229
+ "codex-skill",
230
+ "claude-code-skill",
231
+ "claude-code-subagent",
232
+ "mcp",
233
+ "dify",
234
+ "flowise",
235
+ "n8n",
236
+ "langgraph",
237
+ "autogen",
238
+ "llamaindex"
239
+ ]
240
+ },
241
+ "artifactKind": {
242
+ "type": "string",
243
+ "enum": ["source-package", "skill", "subagent", "workflow", "graph", "metadata", "download"]
244
+ },
245
+ "state": {
246
+ "type": "string",
247
+ "enum": ["available", "unavailable", "unsupported", "stale", "blocked", "review-required", "not-generated"]
248
+ },
249
+ "validationState": {
250
+ "type": "string",
251
+ "enum": ["not-run", "passed", "failed", "stale", "blocked"]
252
+ },
253
+ "managedBy": {
254
+ "type": "string",
255
+ "enum": ["creator", "platform", "unknown"]
256
+ },
257
+ "variantDigest": {
258
+ "$ref": "#/$defs/fingerprint"
259
+ },
260
+ "download": {
261
+ "$ref": "#/$defs/variantDownload"
262
+ },
263
+ "reasons": {
264
+ "type": "array",
265
+ "maxItems": 12,
266
+ "uniqueItems": true,
267
+ "items": {
268
+ "$ref": "#/$defs/reasonCode"
269
+ }
270
+ },
271
+ "observedAt": {
272
+ "type": "string",
273
+ "format": "date-time"
274
+ }
275
+ }
276
+ },
277
+ "parserVariantMetadata": {
278
+ "type": "object",
279
+ "additionalProperties": false,
280
+ "required": ["contractVersion", "parserEvidence", "resourceGraphSummary", "compatibility", "platformVariants"],
281
+ "properties": {
282
+ "contractVersion": {
283
+ "type": "string",
284
+ "const": "1.0"
285
+ },
286
+ "parserEvidence": {
287
+ "$ref": "#/$defs/parserEvidence"
288
+ },
289
+ "resourceGraphSummary": {
290
+ "$ref": "#/$defs/resourceGraphSummary"
291
+ },
292
+ "compatibility": {
293
+ "$ref": "#/$defs/parserCompatibility"
294
+ },
295
+ "platformVariants": {
296
+ "type": "array",
297
+ "maxItems": 16,
298
+ "items": {
299
+ "$ref": "#/$defs/platformVariant"
300
+ }
301
+ }
302
+ }
303
+ },
304
+ "parserVariantReadback": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "required": ["contractVersion", "parserEvidence", "compatibility", "platformVariants", "observedAt"],
308
+ "properties": {
309
+ "contractVersion": {
310
+ "type": "string",
311
+ "const": "1.0"
312
+ },
313
+ "parserEvidence": {
314
+ "$ref": "#/$defs/parserEvidence"
315
+ },
316
+ "resourceGraphSummary": {
317
+ "$ref": "#/$defs/resourceGraphSummary"
318
+ },
319
+ "compatibility": {
320
+ "$ref": "#/$defs/parserCompatibility"
321
+ },
322
+ "platformVariants": {
323
+ "type": "array",
324
+ "maxItems": 16,
325
+ "items": {
326
+ "$ref": "#/$defs/platformVariant"
327
+ }
328
+ },
329
+ "observedAt": {
330
+ "type": "string",
331
+ "format": "date-time"
332
+ }
333
+ }
334
+ }
335
+ }
336
+ }
@@ -70,6 +70,79 @@
70
70
  "type": "string",
71
71
  "minLength": 1,
72
72
  "maxLength": 80
73
+ },
74
+ "platformProjection": {
75
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/platformProjection"
76
+ },
77
+ "desiredState": {
78
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/desiredState"
79
+ },
80
+ "scannerPolicy": {
81
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/scannerPolicy"
82
+ },
83
+ "packageContext": {
84
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/packageContext"
85
+ },
86
+ "reviewEligibility": {
87
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/reviewEligibility"
88
+ },
89
+ "trustPanel": {
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "properties": {
93
+ "state": {
94
+ "type": "string",
95
+ "enum": ["current", "review-required", "blocked", "stale", "unavailable"]
96
+ },
97
+ "messages": {
98
+ "type": "array",
99
+ "maxItems": 8,
100
+ "items": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 180
104
+ }
105
+ },
106
+ "versionHistoryUrl": {
107
+ "type": "string",
108
+ "format": "uri",
109
+ "pattern": "^https://agentique\\.io/"
110
+ }
111
+ }
112
+ },
113
+ "versionHistory": {
114
+ "type": "array",
115
+ "maxItems": 20,
116
+ "items": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": ["version", "observedAt", "state"],
120
+ "properties": {
121
+ "version": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 80
125
+ },
126
+ "observedAt": {
127
+ "type": "string",
128
+ "format": "date-time"
129
+ },
130
+ "state": {
131
+ "type": "string",
132
+ "enum": ["current", "stale", "review-required", "blocked", "unavailable"]
133
+ },
134
+ "desiredStateFingerprint": {
135
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/fingerprint"
136
+ }
137
+ }
138
+ }
139
+ },
140
+ "parserVariant": {
141
+ "$ref": "https://schemas.agentique.io/parser-variant.schema.json#/$defs/parserVariantReadback"
142
+ },
143
+ "reportActionState": {
144
+ "type": "string",
145
+ "enum": ["available", "submitted", "rate-limited", "unavailable"]
73
146
  }
74
147
  }
75
148
  }