@ai-ecoverse/slicc-browsers 1.0.0 → 1.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/README.md +45 -12
- package/catalog.json +25 -2
- package/corpus.json +1120 -54
- package/package.json +1 -1
- package/schema/browsers.schema.json +9 -3
- package/schema/catalog.schema.json +43 -5
- package/schema/corpus.schema.json +7 -2
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"properties": {
|
|
18
18
|
"id": { "$ref": "#/$defs/text" },
|
|
19
19
|
"kind": { "enum": ["endpoint", "installed"] },
|
|
20
|
-
"tier": { "type": "integer", "minimum": 1, "maximum":
|
|
20
|
+
"tier": { "type": "integer", "minimum": 1, "maximum": 6 },
|
|
21
21
|
"name": { "type": "string" },
|
|
22
22
|
"version": { "$ref": "#/$defs/text" },
|
|
23
23
|
"endpoint": { "$ref": "#/$defs/endpoint" },
|
|
@@ -28,10 +28,15 @@
|
|
|
28
28
|
"properties": {
|
|
29
29
|
"kind": { "const": "endpoint" },
|
|
30
30
|
"id": { "type": "string", "pattern": "^cdp:" },
|
|
31
|
-
"tier": { "enum": [1, 2] }
|
|
31
|
+
"tier": { "enum": [1, 2, 6] }
|
|
32
32
|
},
|
|
33
33
|
"required": ["endpoint"],
|
|
34
|
-
"not": { "required": ["installed"] }
|
|
34
|
+
"not": { "required": ["installed"] },
|
|
35
|
+
"if": { "properties": { "tier": { "const": 6 } } },
|
|
36
|
+
"then": { "properties": { "endpoint": { "type": "object", "required": ["six"] } } },
|
|
37
|
+
"else": {
|
|
38
|
+
"properties": { "endpoint": { "type": "object", "not": { "required": ["six"] } } }
|
|
39
|
+
}
|
|
35
40
|
},
|
|
36
41
|
{
|
|
37
42
|
"properties": {
|
|
@@ -68,6 +73,7 @@
|
|
|
68
73
|
"userDataDir": { "$ref": "#/$defs/text" },
|
|
69
74
|
"profile": { "$ref": "#/$defs/text" },
|
|
70
75
|
"wsOnly": { "const": true },
|
|
76
|
+
"six": { "const": true },
|
|
71
77
|
"sevenOpen": { "type": "boolean" },
|
|
72
78
|
"sevenTabs": { "type": "array", "items": { "$ref": "#/$defs/tab" } }
|
|
73
79
|
}
|
|
@@ -54,13 +54,14 @@
|
|
|
54
54
|
"tiers": {
|
|
55
55
|
"type": "object",
|
|
56
56
|
"additionalProperties": false,
|
|
57
|
-
"required": ["sevenOpen", "endpoint", "chrome", "chromium", "electron"],
|
|
57
|
+
"required": ["sevenOpen", "endpoint", "chrome", "chromium", "electron", "six"],
|
|
58
58
|
"properties": {
|
|
59
59
|
"sevenOpen": { "$ref": "#/$defs/tier" },
|
|
60
60
|
"endpoint": { "$ref": "#/$defs/tier" },
|
|
61
61
|
"chrome": { "$ref": "#/$defs/tier" },
|
|
62
62
|
"chromium": { "$ref": "#/$defs/tier" },
|
|
63
|
-
"electron": { "$ref": "#/$defs/tier" }
|
|
63
|
+
"electron": { "$ref": "#/$defs/tier" },
|
|
64
|
+
"six": { "$ref": "#/$defs/tier" }
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
"chromeId": { "$ref": "#/$defs/id" }
|
|
@@ -119,6 +120,11 @@
|
|
|
119
120
|
"windows": { "$ref": "#/$defs/names" },
|
|
120
121
|
"portFlag": { "type": "string", "pattern": "^--" },
|
|
121
122
|
"userDataDirFlag": { "type": "string", "pattern": "^--" },
|
|
123
|
+
"valueQuotes": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 1 }
|
|
126
|
+
},
|
|
127
|
+
"valueStop": { "$ref": "#/$defs/name" },
|
|
122
128
|
"wrappers": { "$ref": "#/$defs/names" },
|
|
123
129
|
"wrapperSuffixes": { "$ref": "#/$defs/names" }
|
|
124
130
|
}
|
|
@@ -166,13 +172,35 @@
|
|
|
166
172
|
"profiles": {
|
|
167
173
|
"type": "object",
|
|
168
174
|
"additionalProperties": false,
|
|
169
|
-
"required": ["root", "snapRoot", "legacyRoot", "sixProfilePattern", "namePattern"],
|
|
175
|
+
"required": ["root", "snapRoot", "legacyRoot", "sixProfilePattern", "namePattern", "six"],
|
|
170
176
|
"properties": {
|
|
171
177
|
"root": { "$ref": "#/$defs/segments" },
|
|
172
178
|
"snapRoot": { "$ref": "#/$defs/segments" },
|
|
173
179
|
"legacyRoot": { "$ref": "#/$defs/segments" },
|
|
174
180
|
"sixProfilePattern": { "type": "string", "format": "regex" },
|
|
175
|
-
"namePattern": { "type": "string", "format": "regex" }
|
|
181
|
+
"namePattern": { "type": "string", "format": "regex" },
|
|
182
|
+
"six": {
|
|
183
|
+
"description": "SLICC six's Chrome profiles, used in place and never written to.",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": ["roots", "defaultName", "defaultPort", "portSuffix", "userDataDirEnv"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"roots": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"required": ["macos", "linux", "windows"],
|
|
192
|
+
"properties": {
|
|
193
|
+
"macos": { "$ref": "#/$defs/sixRoot" },
|
|
194
|
+
"linux": { "$ref": "#/$defs/sixRoot" },
|
|
195
|
+
"windows": { "$ref": "#/$defs/sixRoot" }
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"defaultName": { "$ref": "#/$defs/name" },
|
|
199
|
+
"defaultPort": { "$ref": "#/$defs/port" },
|
|
200
|
+
"portSuffix": { "type": "string", "pattern": "\\{port\\}" },
|
|
201
|
+
"userDataDirEnv": { "$ref": "#/$defs/name" }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
176
204
|
}
|
|
177
205
|
},
|
|
178
206
|
"launch": {
|
|
@@ -248,7 +276,7 @@
|
|
|
248
276
|
},
|
|
249
277
|
"port": { "type": "integer", "minimum": 1, "maximum": 65535 },
|
|
250
278
|
"ports": { "type": "array", "items": { "$ref": "#/$defs/port" } },
|
|
251
|
-
"tier": { "type": "integer", "minimum": 1, "maximum":
|
|
279
|
+
"tier": { "type": "integer", "minimum": 1, "maximum": 6 },
|
|
252
280
|
"form": { "enum": ["six", "chrome-154"] },
|
|
253
281
|
"pref": {
|
|
254
282
|
"type": "object",
|
|
@@ -260,6 +288,16 @@
|
|
|
260
288
|
"form": { "$ref": "#/$defs/form" }
|
|
261
289
|
}
|
|
262
290
|
},
|
|
291
|
+
"sixRoot": {
|
|
292
|
+
"description": "A base location, then path segments under it.",
|
|
293
|
+
"type": "object",
|
|
294
|
+
"additionalProperties": false,
|
|
295
|
+
"required": ["base", "path"],
|
|
296
|
+
"properties": {
|
|
297
|
+
"base": { "$ref": "#/$defs/location" },
|
|
298
|
+
"path": { "$ref": "#/$defs/segments" }
|
|
299
|
+
}
|
|
300
|
+
},
|
|
263
301
|
"location": {
|
|
264
302
|
"description": "An environment variable, else a dir under the home dir or an absolute path.",
|
|
265
303
|
"type": "object",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"process",
|
|
47
47
|
"probe",
|
|
48
48
|
"origins",
|
|
49
|
-
"installed"
|
|
49
|
+
"installed",
|
|
50
|
+
"six"
|
|
50
51
|
]
|
|
51
52
|
}
|
|
52
53
|
},
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"type": "object",
|
|
56
57
|
"propertyNames": {
|
|
57
58
|
"type": "string",
|
|
58
|
-
"pattern": "^\\{(home|config|sevenProfiles|userData:[a-z0-9-]+)\\}/[^\\\\]+$"
|
|
59
|
+
"pattern": "^\\{(home|config|sevenProfiles|sixProfiles|userData:[a-z0-9-]+)\\}/[^\\\\]+$"
|
|
59
60
|
},
|
|
60
61
|
"additionalProperties": { "type": "string" }
|
|
61
62
|
},
|
|
@@ -99,6 +100,10 @@
|
|
|
99
100
|
"installed": {
|
|
100
101
|
"type": "array",
|
|
101
102
|
"items": { "$ref": "browsers.schema.json#/$defs/installed" }
|
|
103
|
+
},
|
|
104
|
+
"auto": {
|
|
105
|
+
"description": "With needs six: the id of the first entry that isn't six's, or null.",
|
|
106
|
+
"type": ["string", "null"]
|
|
102
107
|
}
|
|
103
108
|
}
|
|
104
109
|
}
|