@ai-ecoverse/slicc-browsers 0.0.0 → 1.1.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/LICENSE +201 -0
- package/README.md +186 -5
- package/catalog.json +772 -0
- package/corpus.json +2533 -0
- package/package.json +50 -1
- package/schema/browsers.schema.json +95 -0
- package/schema/catalog.schema.json +340 -0
- package/schema/corpus.schema.json +106 -0
package/package.json
CHANGED
|
@@ -1,10 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"license": "Apache-2.0",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/ai-ecoverse/slicc-browsers.git"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=24"
|
|
13
|
+
},
|
|
14
|
+
"fledgling": {
|
|
15
|
+
"provider": "github",
|
|
16
|
+
"workflow": "release.yml",
|
|
17
|
+
"repo": "ai-ecoverse/slicc-browsers",
|
|
18
|
+
"publish": true
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": "./catalog.json",
|
|
26
|
+
"./catalog.json": "./catalog.json",
|
|
27
|
+
"./corpus.json": "./corpus.json",
|
|
28
|
+
"./schema/catalog.schema.json": "./schema/catalog.schema.json",
|
|
29
|
+
"./schema/browsers.schema.json": "./schema/browsers.schema.json",
|
|
30
|
+
"./schema/corpus.schema.json": "./schema/corpus.schema.json",
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"catalog.json",
|
|
35
|
+
"corpus.json",
|
|
36
|
+
"schema"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"prepare": "lefthook install",
|
|
40
|
+
"corpus": "node scripts/corpus.mjs",
|
|
41
|
+
"validate": "node scripts/validate.mjs",
|
|
42
|
+
"lint": "slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && golangci-lint run && cargo fmt --check && cargo clippy --all-features --all-targets -- -D warnings",
|
|
43
|
+
"format": "biome check --write . && gofmt -w . && cargo fmt",
|
|
44
|
+
"test": "npm run validate && go test -race -count=1 ./test/integration/... && cargo test --all-features",
|
|
45
|
+
"test:unit": "go test -race -cover ./...",
|
|
46
|
+
"build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
47
|
+
"trust": "npx fledgling sync -y --skip-publish",
|
|
48
|
+
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish",
|
|
49
|
+
"release": "semantic-release"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@ai-ecoverse/slicc-shared-web": "1.12.3",
|
|
53
|
+
"@biomejs/biome": "2.5.15",
|
|
54
|
+
"ajv": "8.20.0",
|
|
55
|
+
"ajv-formats": "3.0.1",
|
|
56
|
+
"lefthook": "2.1.16",
|
|
57
|
+
"semantic-release": "25.0.9"
|
|
9
58
|
}
|
|
10
59
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ai-ecoverse/slicc-browsers/schema/browsers.schema.json",
|
|
4
|
+
"title": "slicc browsers --json and playwright-cli list --json, schema 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schema", "minChromium", "entries"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": { "const": 1 },
|
|
9
|
+
"minChromium": { "type": "integer", "minimum": 1 },
|
|
10
|
+
"entries": { "type": "array", "items": { "$ref": "#/$defs/entry" } }
|
|
11
|
+
},
|
|
12
|
+
"$defs": {
|
|
13
|
+
"text": { "type": "string", "minLength": 1 },
|
|
14
|
+
"entry": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["id", "kind", "tier", "name"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": { "$ref": "#/$defs/text" },
|
|
19
|
+
"kind": { "enum": ["endpoint", "installed"] },
|
|
20
|
+
"tier": { "type": "integer", "minimum": 1, "maximum": 5 },
|
|
21
|
+
"name": { "type": "string" },
|
|
22
|
+
"version": { "$ref": "#/$defs/text" },
|
|
23
|
+
"endpoint": { "$ref": "#/$defs/endpoint" },
|
|
24
|
+
"installed": { "$ref": "#/$defs/installed" }
|
|
25
|
+
},
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"properties": {
|
|
29
|
+
"kind": { "const": "endpoint" },
|
|
30
|
+
"id": { "type": "string", "pattern": "^cdp:" },
|
|
31
|
+
"tier": { "enum": [1, 2] }
|
|
32
|
+
},
|
|
33
|
+
"required": ["endpoint"],
|
|
34
|
+
"not": { "required": ["installed"] }
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"properties": {
|
|
38
|
+
"kind": { "const": "installed" },
|
|
39
|
+
"id": { "type": "string", "pattern": "^(?!cdp:)" },
|
|
40
|
+
"tier": { "enum": [3, 4, 5] }
|
|
41
|
+
},
|
|
42
|
+
"required": ["installed"],
|
|
43
|
+
"not": { "required": ["endpoint"] }
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"tab": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": ["id", "url", "title"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"id": { "type": "string" },
|
|
52
|
+
"url": { "type": "string" },
|
|
53
|
+
"title": { "type": "string" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"endpoint": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["cdp", "webSocketDebuggerUrl", "name", "source", "sevenOpen", "sevenTabs"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"cdp": { "type": "string", "pattern": "^https?://[^/]+$" },
|
|
61
|
+
"webSocketDebuggerUrl": { "type": "string" },
|
|
62
|
+
"name": { "type": "string" },
|
|
63
|
+
"version": { "$ref": "#/$defs/text" },
|
|
64
|
+
"product": { "$ref": "#/$defs/text" },
|
|
65
|
+
"userAgent": { "$ref": "#/$defs/text" },
|
|
66
|
+
"source": { "enum": ["devtools-active-port", "flag", "probe", "process"] },
|
|
67
|
+
"browser": { "$ref": "#/$defs/text" },
|
|
68
|
+
"userDataDir": { "$ref": "#/$defs/text" },
|
|
69
|
+
"profile": { "$ref": "#/$defs/text" },
|
|
70
|
+
"wsOnly": { "const": true },
|
|
71
|
+
"sevenOpen": { "type": "boolean" },
|
|
72
|
+
"sevenTabs": { "type": "array", "items": { "$ref": "#/$defs/tab" } }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"installed": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["id", "name", "engine", "path", "executable", "debugSupport"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"id": { "$ref": "#/$defs/text" },
|
|
80
|
+
"name": { "type": "string" },
|
|
81
|
+
"engine": { "enum": ["chromium", "electron"] },
|
|
82
|
+
"channel": { "$ref": "#/$defs/text" },
|
|
83
|
+
"version": { "$ref": "#/$defs/text" },
|
|
84
|
+
"path": { "type": "string" },
|
|
85
|
+
"executable": { "type": "string" },
|
|
86
|
+
"bundleId": { "$ref": "#/$defs/text" },
|
|
87
|
+
"via": { "enum": ["snap", "flatpak"] },
|
|
88
|
+
"package": { "$ref": "#/$defs/text" },
|
|
89
|
+
"userDataDir": { "$ref": "#/$defs/text" },
|
|
90
|
+
"debugSupport": { "enum": ["supported", "disabled", "unknown"] },
|
|
91
|
+
"debugBuild": { "const": true }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ai-ecoverse/slicc-browsers/schema/catalog.schema.json",
|
|
4
|
+
"title": "slicc-browsers catalog, schema 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"minChromiumMajor",
|
|
10
|
+
"browsers",
|
|
11
|
+
"electron",
|
|
12
|
+
"rank",
|
|
13
|
+
"discovery",
|
|
14
|
+
"seven",
|
|
15
|
+
"profiles",
|
|
16
|
+
"launch",
|
|
17
|
+
"platforms"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema": { "const": 1 },
|
|
21
|
+
"minChromiumMajor": { "type": "integer", "minimum": 1 },
|
|
22
|
+
"browsers": {
|
|
23
|
+
"description": "Every known Chromium browser, in rank priority order.",
|
|
24
|
+
"type": "array",
|
|
25
|
+
"minItems": 1,
|
|
26
|
+
"items": { "$ref": "#/$defs/browser" }
|
|
27
|
+
},
|
|
28
|
+
"electron": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["macosApps", "debugBlocked", "idPrefix"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"macosApps": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["bundleId", "name"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"bundleId": { "$ref": "#/$defs/name" },
|
|
41
|
+
"name": { "$ref": "#/$defs/name" }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"debugBlocked": { "$ref": "#/$defs/names" },
|
|
46
|
+
"idPrefix": { "const": "electron:" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"rank": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["tiers", "chromeId"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"tiers": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": ["sevenOpen", "endpoint", "chrome", "chromium", "electron"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"sevenOpen": { "$ref": "#/$defs/tier" },
|
|
60
|
+
"endpoint": { "$ref": "#/$defs/tier" },
|
|
61
|
+
"chrome": { "$ref": "#/$defs/tier" },
|
|
62
|
+
"chromium": { "$ref": "#/$defs/tier" },
|
|
63
|
+
"electron": { "$ref": "#/$defs/tier" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"chromeId": { "$ref": "#/$defs/id" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"discovery": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"activePortFile",
|
|
74
|
+
"probePorts",
|
|
75
|
+
"sourceRank",
|
|
76
|
+
"chromeMajorPattern",
|
|
77
|
+
"names",
|
|
78
|
+
"process"
|
|
79
|
+
],
|
|
80
|
+
"properties": {
|
|
81
|
+
"activePortFile": { "$ref": "#/$defs/name" },
|
|
82
|
+
"probePorts": { "$ref": "#/$defs/ports" },
|
|
83
|
+
"sourceRank": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": ["devtools-active-port", "flag", "process", "probe"],
|
|
87
|
+
"properties": {
|
|
88
|
+
"devtools-active-port": { "type": "integer", "minimum": 0 },
|
|
89
|
+
"flag": { "type": "integer", "minimum": 0 },
|
|
90
|
+
"process": { "type": "integer", "minimum": 0 },
|
|
91
|
+
"probe": { "type": "integer", "minimum": 0 }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"chromeMajorPattern": { "type": "string", "format": "regex" },
|
|
95
|
+
"names": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["electronUserAgent", "electron", "products", "fallback"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"electronUserAgent": { "$ref": "#/$defs/name" },
|
|
101
|
+
"electron": { "$ref": "#/$defs/name" },
|
|
102
|
+
"products": { "type": "object", "additionalProperties": { "$ref": "#/$defs/name" } },
|
|
103
|
+
"fallback": { "$ref": "#/$defs/name" }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"process": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": [
|
|
110
|
+
"unix",
|
|
111
|
+
"windows",
|
|
112
|
+
"portFlag",
|
|
113
|
+
"userDataDirFlag",
|
|
114
|
+
"wrappers",
|
|
115
|
+
"wrapperSuffixes"
|
|
116
|
+
],
|
|
117
|
+
"properties": {
|
|
118
|
+
"unix": { "$ref": "#/$defs/names" },
|
|
119
|
+
"windows": { "$ref": "#/$defs/names" },
|
|
120
|
+
"portFlag": { "type": "string", "pattern": "^--" },
|
|
121
|
+
"userDataDirFlag": { "type": "string", "pattern": "^--" },
|
|
122
|
+
"valueQuotes": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 1 }
|
|
125
|
+
},
|
|
126
|
+
"valueStop": { "$ref": "#/$defs/name" },
|
|
127
|
+
"wrappers": { "$ref": "#/$defs/names" },
|
|
128
|
+
"wrapperSuffixes": { "$ref": "#/$defs/names" }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"seven": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": [
|
|
137
|
+
"originScheme",
|
|
138
|
+
"originHostPattern",
|
|
139
|
+
"excludedLabels",
|
|
140
|
+
"sitePattern",
|
|
141
|
+
"switches",
|
|
142
|
+
"disabledFeatures",
|
|
143
|
+
"prefs",
|
|
144
|
+
"discardExceptions",
|
|
145
|
+
"cleanExit"
|
|
146
|
+
],
|
|
147
|
+
"properties": {
|
|
148
|
+
"originScheme": { "const": "https" },
|
|
149
|
+
"originHostPattern": { "type": "string", "format": "regex" },
|
|
150
|
+
"excludedLabels": { "$ref": "#/$defs/names" },
|
|
151
|
+
"sitePattern": { "$ref": "#/$defs/name" },
|
|
152
|
+
"switches": { "type": "array", "items": { "type": "string", "pattern": "^--" } },
|
|
153
|
+
"disabledFeatures": { "$ref": "#/$defs/names" },
|
|
154
|
+
"prefs": { "type": "array", "items": { "$ref": "#/$defs/pref" } },
|
|
155
|
+
"discardExceptions": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"required": ["path", "type", "form"],
|
|
161
|
+
"properties": {
|
|
162
|
+
"path": { "$ref": "#/$defs/segments" },
|
|
163
|
+
"type": { "enum": ["list", "chrome-time-map"] },
|
|
164
|
+
"form": { "$ref": "#/$defs/form" }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"cleanExit": { "type": "array", "items": { "$ref": "#/$defs/pref" } }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"profiles": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"required": ["root", "snapRoot", "legacyRoot", "sixProfilePattern", "namePattern"],
|
|
175
|
+
"properties": {
|
|
176
|
+
"root": { "$ref": "#/$defs/segments" },
|
|
177
|
+
"snapRoot": { "$ref": "#/$defs/segments" },
|
|
178
|
+
"legacyRoot": { "$ref": "#/$defs/segments" },
|
|
179
|
+
"sixProfilePattern": { "type": "string", "format": "regex" },
|
|
180
|
+
"namePattern": { "type": "string", "format": "regex" }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"launch": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": ["chromiumArgs", "headless", "disableFeaturesFlag", "electron"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"chromiumArgs": { "type": "array", "items": { "type": "string", "pattern": "^--" } },
|
|
189
|
+
"headless": { "type": "string", "pattern": "^--" },
|
|
190
|
+
"disableFeaturesFlag": { "type": "string", "pattern": "^--.*=$" },
|
|
191
|
+
"electron": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": ["portFlag", "minPort", "reservedPorts"],
|
|
195
|
+
"properties": {
|
|
196
|
+
"portFlag": { "type": "string", "pattern": "\\{port\\}" },
|
|
197
|
+
"minPort": { "$ref": "#/$defs/port" },
|
|
198
|
+
"reservedPorts": { "$ref": "#/$defs/ports" }
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"platforms": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": ["macos", "windows", "linux"],
|
|
207
|
+
"properties": {
|
|
208
|
+
"macos": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"required": ["config"],
|
|
212
|
+
"properties": { "config": { "$ref": "#/$defs/location" } }
|
|
213
|
+
},
|
|
214
|
+
"windows": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"additionalProperties": false,
|
|
217
|
+
"required": ["config", "roots", "registry"],
|
|
218
|
+
"properties": {
|
|
219
|
+
"config": { "$ref": "#/$defs/location" },
|
|
220
|
+
"roots": { "type": "object", "additionalProperties": { "$ref": "#/$defs/location" } },
|
|
221
|
+
"registry": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"required": ["hives", "startMenuInternet", "openCommand", "appPaths", "appPathNames"],
|
|
225
|
+
"properties": {
|
|
226
|
+
"hives": { "type": "array", "items": { "enum": ["HKCU", "HKLM"] } },
|
|
227
|
+
"startMenuInternet": { "$ref": "#/$defs/names" },
|
|
228
|
+
"openCommand": { "$ref": "#/$defs/name" },
|
|
229
|
+
"appPaths": { "$ref": "#/$defs/name" },
|
|
230
|
+
"appPathNames": { "$ref": "#/$defs/names" }
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"linux": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"additionalProperties": false,
|
|
238
|
+
"required": ["config"],
|
|
239
|
+
"properties": { "config": { "$ref": "#/$defs/location" } }
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"$defs": {
|
|
245
|
+
"name": { "type": "string", "minLength": 1 },
|
|
246
|
+
"names": { "type": "array", "items": { "$ref": "#/$defs/name" } },
|
|
247
|
+
"id": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
248
|
+
"segments": {
|
|
249
|
+
"description": "A relative path, one segment per item.",
|
|
250
|
+
"type": "array",
|
|
251
|
+
"minItems": 1,
|
|
252
|
+
"items": { "type": "string", "minLength": 1, "pattern": "^[^/\\\\]+$" }
|
|
253
|
+
},
|
|
254
|
+
"port": { "type": "integer", "minimum": 1, "maximum": 65535 },
|
|
255
|
+
"ports": { "type": "array", "items": { "$ref": "#/$defs/port" } },
|
|
256
|
+
"tier": { "type": "integer", "minimum": 1, "maximum": 5 },
|
|
257
|
+
"form": { "enum": ["six", "chrome-154"] },
|
|
258
|
+
"pref": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"additionalProperties": false,
|
|
261
|
+
"required": ["path", "value"],
|
|
262
|
+
"properties": {
|
|
263
|
+
"path": { "$ref": "#/$defs/segments" },
|
|
264
|
+
"value": { "type": ["boolean", "number", "string"] },
|
|
265
|
+
"form": { "$ref": "#/$defs/form" }
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"location": {
|
|
269
|
+
"description": "An environment variable, else a dir under the home dir or an absolute path.",
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"properties": {
|
|
273
|
+
"env": { "$ref": "#/$defs/name" },
|
|
274
|
+
"home": { "$ref": "#/$defs/segments" },
|
|
275
|
+
"absolute": { "$ref": "#/$defs/name" }
|
|
276
|
+
},
|
|
277
|
+
"oneOf": [{ "required": ["home"] }, { "required": ["absolute"] }]
|
|
278
|
+
},
|
|
279
|
+
"browser": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"required": ["id", "name", "channel", "engine", "chromiumVersion", "macos"],
|
|
283
|
+
"properties": {
|
|
284
|
+
"id": { "$ref": "#/$defs/id" },
|
|
285
|
+
"name": { "$ref": "#/$defs/name" },
|
|
286
|
+
"channel": {
|
|
287
|
+
"enum": ["stable", "beta", "dev", "canary", "nightly", "snapshot", "testing"]
|
|
288
|
+
},
|
|
289
|
+
"engine": { "const": "chromium" },
|
|
290
|
+
"chromiumVersion": {
|
|
291
|
+
"description": "The browser's version is the Chromium version, so minChromiumMajor applies to it.",
|
|
292
|
+
"type": "boolean"
|
|
293
|
+
},
|
|
294
|
+
"macos": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"additionalProperties": false,
|
|
297
|
+
"required": ["bundleId", "app", "executable"],
|
|
298
|
+
"properties": {
|
|
299
|
+
"bundleId": { "$ref": "#/$defs/name" },
|
|
300
|
+
"app": { "type": "string", "pattern": "\\.app$" },
|
|
301
|
+
"executable": { "$ref": "#/$defs/name" },
|
|
302
|
+
"dataDir": { "$ref": "#/$defs/segments" }
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"windows": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"additionalProperties": false,
|
|
308
|
+
"required": ["dataRoot", "dataDir"],
|
|
309
|
+
"properties": {
|
|
310
|
+
"roots": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/name" } },
|
|
311
|
+
"executables": {
|
|
312
|
+
"type": "array",
|
|
313
|
+
"minItems": 1,
|
|
314
|
+
"items": { "$ref": "#/$defs/segments" }
|
|
315
|
+
},
|
|
316
|
+
"dataRoot": { "$ref": "#/$defs/name" },
|
|
317
|
+
"dataDir": { "$ref": "#/$defs/segments" },
|
|
318
|
+
"startMenuInternet": { "$ref": "#/$defs/names" }
|
|
319
|
+
},
|
|
320
|
+
"dependentRequired": { "executables": ["roots"], "roots": ["executables"] }
|
|
321
|
+
},
|
|
322
|
+
"linux": {
|
|
323
|
+
"type": "object",
|
|
324
|
+
"additionalProperties": false,
|
|
325
|
+
"required": ["configDir"],
|
|
326
|
+
"properties": {
|
|
327
|
+
"bins": { "$ref": "#/$defs/names" },
|
|
328
|
+
"desktopIds": { "$ref": "#/$defs/names" },
|
|
329
|
+
"flatpak": { "$ref": "#/$defs/name" },
|
|
330
|
+
"snap": { "$ref": "#/$defs/name" },
|
|
331
|
+
"snapDataDir": { "$ref": "#/$defs/segments" },
|
|
332
|
+
"configDir": { "$ref": "#/$defs/segments" },
|
|
333
|
+
"debs": { "$ref": "#/$defs/names" }
|
|
334
|
+
},
|
|
335
|
+
"dependentRequired": { "snapDataDir": ["snap"] }
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ai-ecoverse/slicc-browsers/schema/corpus.schema.json",
|
|
4
|
+
"title": "slicc-browsers conformance corpus, schema 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "cases"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": 1 },
|
|
10
|
+
"cases": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["name", "case", "expected"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
18
|
+
"case": { "$ref": "#/$defs/case" },
|
|
19
|
+
"expected": { "$ref": "browsers.schema.json" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"$defs": {
|
|
25
|
+
"case": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["description", "needs"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"description": { "type": "string", "minLength": 1 },
|
|
31
|
+
"os": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 1,
|
|
34
|
+
"uniqueItems": true,
|
|
35
|
+
"items": { "enum": ["darwin", "linux", "windows"] }
|
|
36
|
+
},
|
|
37
|
+
"needs": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {
|
|
42
|
+
"enum": [
|
|
43
|
+
"user-data-dirs",
|
|
44
|
+
"seven-profiles",
|
|
45
|
+
"flag",
|
|
46
|
+
"process",
|
|
47
|
+
"probe",
|
|
48
|
+
"origins",
|
|
49
|
+
"installed"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"env": { "type": "object", "additionalProperties": { "type": "string" } },
|
|
54
|
+
"files": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"propertyNames": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^\\{(home|config|sevenProfiles|userData:[a-z0-9-]+)\\}/[^\\\\]+$"
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": { "type": "string" }
|
|
61
|
+
},
|
|
62
|
+
"cdp": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
63
|
+
"origins": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
64
|
+
"probePorts": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"minimum": 1,
|
|
69
|
+
"maximum": 65535,
|
|
70
|
+
"not": { "type": "integer", "minimum": 9222, "maximum": 9229 }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"processes": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["command"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"pid": { "type": "integer", "minimum": 0 },
|
|
81
|
+
"self": { "const": true },
|
|
82
|
+
"command": { "type": "string" }
|
|
83
|
+
},
|
|
84
|
+
"oneOf": [{ "required": ["pid"] }, { "required": ["self"] }]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"http": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"propertyNames": { "type": "string", "pattern": "^(?!.*:922[2-9]$)[a-z0-9.-]+:[0-9]+$" },
|
|
90
|
+
"additionalProperties": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"properties": {
|
|
94
|
+
"version": { "type": "object" },
|
|
95
|
+
"list": { "type": "array" }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"installed": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": { "$ref": "browsers.schema.json#/$defs/installed" }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|