|
105 | 105 | } |
106 | 106 | } |
107 | 107 | }, |
| 108 | + "LlCliFilesystemEntry": { |
| 109 | + "title": "LlCliFilesystemEntry", |
| 110 | + "description": "filesystem entry used by ll-cli configuration", |
| 111 | + "type": "object", |
| 112 | + "required": [ |
| 113 | + "host", |
| 114 | + "target" |
| 115 | + ], |
| 116 | + "properties": { |
| 117 | + "host": { |
| 118 | + "type": "string", |
| 119 | + "description": "source path on host" |
| 120 | + }, |
| 121 | + "target": { |
| 122 | + "type": "string", |
| 123 | + "description": "mount target path inside container" |
| 124 | + }, |
| 125 | + "mode": { |
| 126 | + "type": "string", |
| 127 | + "description": "mount mode, either ro or rw" |
| 128 | + }, |
| 129 | + "persist": { |
| 130 | + "type": "boolean", |
| 131 | + "description": "whether this mount should persist in sandbox storage" |
| 132 | + } |
| 133 | + } |
| 134 | + }, |
| 135 | + "LlCliCommandConfig": { |
| 136 | + "title": "LlCliCommandConfig", |
| 137 | + "description": "per-command overrides for ll-cli configuration", |
| 138 | + "type": "object", |
| 139 | + "properties": { |
| 140 | + "env": { |
| 141 | + "type": "object", |
| 142 | + "description": "environment variables applied to command", |
| 143 | + "additionalProperties": { |
| 144 | + "type": "string" |
| 145 | + } |
| 146 | + }, |
| 147 | + "filesystem": { |
| 148 | + "type": "array", |
| 149 | + "description": "filesystem entries applied to command", |
| 150 | + "items": { |
| 151 | + "$ref": "#/$defs/LlCliFilesystemEntry" |
| 152 | + } |
| 153 | + }, |
| 154 | + "args_prefix": { |
| 155 | + "type": "array", |
| 156 | + "description": "arguments prepended before command", |
| 157 | + "items": { |
| 158 | + "type": "string" |
| 159 | + } |
| 160 | + }, |
| 161 | + "args_suffix": { |
| 162 | + "type": "array", |
| 163 | + "description": "arguments appended after command", |
| 164 | + "items": { |
| 165 | + "type": "string" |
| 166 | + } |
| 167 | + }, |
| 168 | + "entrypoint": { |
| 169 | + "type": "string", |
| 170 | + "description": "override entrypoint for command" |
| 171 | + }, |
| 172 | + "cwd": { |
| 173 | + "type": "string", |
| 174 | + "description": "working directory for command" |
| 175 | + } |
| 176 | + } |
| 177 | + }, |
| 178 | + "LlCliConfig": { |
| 179 | + "title": "LlCliConfig", |
| 180 | + "description": "default ll-cli configuration provided by package", |
| 181 | + "type": "object", |
| 182 | + "properties": { |
| 183 | + "filesystem_allow_only": { |
| 184 | + "type": "array", |
| 185 | + "description": "explicit mount allowlist; when present only these mounts are permitted", |
| 186 | + "items": { |
| 187 | + "$ref": "#/$defs/LlCliFilesystemEntry" |
| 188 | + } |
| 189 | + }, |
| 190 | + "filesystem": { |
| 191 | + "type": "array", |
| 192 | + "description": "additional filesystem mounts appended to defaults", |
| 193 | + "items": { |
| 194 | + "$ref": "#/$defs/LlCliFilesystemEntry" |
| 195 | + } |
| 196 | + }, |
| 197 | + "env": { |
| 198 | + "type": "object", |
| 199 | + "description": "default environment variables", |
| 200 | + "additionalProperties": { |
| 201 | + "type": "string" |
| 202 | + } |
| 203 | + }, |
| 204 | + "commands": { |
| 205 | + "type": "object", |
| 206 | + "description": "command specific overrides", |
| 207 | + "additionalProperties": { |
| 208 | + "$ref": "#/$defs/LlCliCommandConfig" |
| 209 | + } |
| 210 | + }, |
| 211 | + "extensions": { |
| 212 | + "type": "array", |
| 213 | + "description": "default extensions applied when launching app", |
| 214 | + "items": { |
| 215 | + "type": "string" |
| 216 | + } |
| 217 | + } |
| 218 | + } |
| 219 | + }, |
108 | 220 | "ContainerProcessStateInfo": { |
109 | 221 | "description": "information about process which in container that start by ll-cli, all content\nwill write to /run/linglong/UID/PID\n", |
110 | 222 | "type": "object", |
|
379 | 491 | "permissions": { |
380 | 492 | "$ref": "#/$defs/ApplicationConfigurationPermissions" |
381 | 493 | }, |
| 494 | + "cli_config": { |
| 495 | + "$ref": "#/$defs/LlCliConfig", |
| 496 | + "description": "default ll-cli configuration delivered with package" |
| 497 | + }, |
382 | 498 | "runtime": { |
383 | 499 | "type": "string", |
384 | 500 | "description": "used runtime of package" |
|
773 | 889 | "$ref": "#/$defs/ExtensionDefine" |
774 | 890 | } |
775 | 891 | }, |
| 892 | + "cli_config": { |
| 893 | + "$ref": "#/$defs/LlCliConfig", |
| 894 | + "description": "default ll-cli configuration provided by package" |
| 895 | + }, |
776 | 896 | "ext_impl": { |
777 | 897 | "$ref": "#/$defs/ExtensionImpl" |
778 | 898 | } |
|
1414 | 1534 | "ApplicationConfigurationPermissions": { |
1415 | 1535 | "$ref": "#/$defs/ApplicationConfigurationPermissions" |
1416 | 1536 | }, |
| 1537 | + "LlCliFilesystemEntry": { |
| 1538 | + "$ref": "#/$defs/LlCliFilesystemEntry" |
| 1539 | + }, |
| 1540 | + "LlCliCommandConfig": { |
| 1541 | + "$ref": "#/$defs/LlCliCommandConfig" |
| 1542 | + }, |
| 1543 | + "LlCliConfig": { |
| 1544 | + "$ref": "#/$defs/LlCliConfig" |
| 1545 | + }, |
1417 | 1546 | "ContainerProcessStateInfo": { |
1418 | 1547 | "$ref": "#/$defs/ContainerProcessStateInfo" |
1419 | 1548 | }, |
|
0 commit comments