Repository navigation
Expand file tree
/
Copy pathtargets-v0.schema.json
More file actions
58 lines (58 loc) · 1.78 KB
/
Copy pathtargets-v0.schema.json
File metadata and controls
58 lines (58 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://machine-control.invalid/contracts/targets-v0.schema.json",
"title": "Machine Control Local Target Registry v0",
"type": "object",
"required": ["schema", "targets"],
"properties": {
"schema": { "const": "machine-control-targets/v0" },
"includeDefaults": { "type": "boolean" },
"targets": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": [
"platform", "profile", "controllerPlatforms", "command"
],
"properties": {
"platform": {
"enum": [
"windows", "macos", "linux", "chromeos", "ios", "android", "quest",
"steamdeck"
]
},
"profile": { "type": "string", "minLength": 1 },
"interface": {
"enum": ["machine-control-v0", "native"]
},
"controllerPlatforms": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "enum": ["darwin", "linux", "windows"] }
},
"launcher": {
"enum": ["auto", "direct", "python", "powershell", "bash"]
},
"workspaceDefaultIntent": {
"enum": ["persistent", "isolated", "candidate"]
},
"claimPolicy": {
"enum": ["required", "optional", "unsupported"]
},
"command": {
"type": "array",
"minItems": 1,
"items": { "type": "string", "minLength": 1 }
},
"environment": {
"type": "object",
"additionalProperties": { "type": "string" }
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}