Files
marqdo-cli/spec/schemas/tool-v1.schema.json
T
cflmy 20d15fd5a2 ci: validate real protocol artifacts and run core tests cross-platform (B-13 B-14)
- add an independent schema job with a pinned Draft 2020-12 validator that
  validates real Analysis v2/Trace v2/Tool artifacts and negative mutations
- tighten the tool schema (SemVer, package-relative entrypoint, non-empty
  protocol arrays)
- run cargo test --workspace plus portable CLI/analysis/trace smoke and a
  strict-refusal assertion on Windows and macOS
- record honestly that Tool/C-ABI/worker runtime coverage remains Unix-only
2026-11-20 13:03:38 +08:00

66 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://marqdo.dev/schemas/tool-v1.schema.json",
"title": "Marqdo CLI Tool Manifest v1",
"type": "object",
"required": [
"schema",
"schema_version",
"name",
"version",
"command",
"entrypoint"
],
"properties": {
"schema": {
"const": "marqdo.cli-tool"
},
"schema_version": {
"const": 1
},
"name": {
"type": "string",
"minLength": 1
},
"version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
},
"command": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]*$"
},
"entrypoint": {
"type": "string",
"minLength": 1,
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
},
"compatibility": {
"type": "object",
"properties": {
"marqdo": {
"type": "string"
},
"analysis": {
"type": "array",
"minItems": 1,
"items": {
"type": "integer",
"minimum": 1
}
},
"trace": {
"type": "array",
"minItems": 1,
"items": {
"type": "integer",
"minimum": 1
}
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}