Declare SCUM Run data targets

This commit is contained in:
npc0-hue
2026-08-12 17:44:53 +08:00
parent d854d6fda3
commit 2246859984
17 changed files with 235 additions and 10 deletions
@@ -133,6 +133,12 @@
"items": { "$ref": "#/$defs/runtimeTransportProfile" },
"uniqueItems": true
},
"dataTargets": {
"type": "array",
"items": { "$ref": "#/$defs/runtimeDataTarget" },
"uniqueItems": true,
"maxItems": 64
},
"clientManagers": {
"type": "array",
"items": { "$ref": "#/$defs/runtimeClientManagerProfile" },
@@ -838,6 +844,22 @@
"capabilities": { "type": "array", "items": { "$ref": "#/$defs/runCapability" }, "uniqueItems": true, "minItems": 1 }
}
},
"runtimeDataTarget": {
"type": "object",
"required": ["key", "kind", "transportKey", "sourceRootKey", "sourcePath", "workspaceKey", "refreshPolicy", "maxBytes"],
"additionalProperties": false,
"properties": {
"key": { "$ref": "#/$defs/logicalKey" },
"kind": { "const": "sqlite.snapshot" },
"transportKey": { "$ref": "#/$defs/logicalKey" },
"sourceRootKey": { "$ref": "#/$defs/logicalKey" },
"sourcePath": { "$ref": "#/$defs/relativePathRef" },
"workspaceKey": { "type": "string", "pattern": "^databases/[a-z0-9][a-z0-9._/-]{0,119}$" },
"refreshPolicy": { "const": "on-demand-snapshot" },
"maxBytes": { "type": "integer", "minimum": 1, "maximum": 1073741824 },
"platforms": { "type": "array", "items": { "enum": ["windows", "linux", "darwin"] }, "uniqueItems": true }
}
},
"relativePathRef": {
"type": "string",
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*://)(?!.*\\.\\.)[a-zA-Z0-9_./-]+$",