|
91 | 91 | "type": "string", |
92 | 92 | "description": "Message displayed to the user after project initialization. Use this to inform about manual setup steps (e.g. environment variables, resource provisioning)." |
93 | 93 | }, |
| 94 | + "postScaffold": { |
| 95 | + "type": "array", |
| 96 | + "description": "Ordered follow-up steps that a user or agent should perform after scaffolding.", |
| 97 | + "items": { |
| 98 | + "$ref": "#/$defs/postScaffoldStep" |
| 99 | + } |
| 100 | + }, |
94 | 101 | "hidden": { |
95 | 102 | "type": "boolean", |
96 | 103 | "default": false, |
|
197 | 204 | "type": "string", |
198 | 205 | "description": "Human-readable description for this field" |
199 | 206 | }, |
| 207 | + "discovery": { |
| 208 | + "$ref": "#/$defs/discoveryDescriptor" |
| 209 | + }, |
| 210 | + "resolution": { |
| 211 | + "$ref": "#/$defs/resourceResolution" |
| 212 | + }, |
200 | 213 | "bundleIgnore": { |
201 | 214 | "type": "boolean", |
202 | 215 | "default": false, |
|
224 | 237 | }, |
225 | 238 | "additionalProperties": false |
226 | 239 | }, |
| 240 | + "discoveryDescriptor": { |
| 241 | + "type": "object", |
| 242 | + "required": ["cliCommand", "selectField"], |
| 243 | + "properties": { |
| 244 | + "cliCommand": { |
| 245 | + "type": "string", |
| 246 | + "minLength": 1, |
| 247 | + "description": "CLI command to list candidate values. Use <PROFILE> as a placeholder for the Databricks CLI profile." |
| 248 | + }, |
| 249 | + "selectField": { |
| 250 | + "type": "string", |
| 251 | + "minLength": 1, |
| 252 | + "description": "jq-style field used to extract the machine-readable value from each command result." |
| 253 | + }, |
| 254 | + "displayField": { |
| 255 | + "type": "string", |
| 256 | + "minLength": 1, |
| 257 | + "description": "jq-style field used to extract a human-readable display value from each command result." |
| 258 | + }, |
| 259 | + "dependsOn": { |
| 260 | + "type": "string", |
| 261 | + "minLength": 1, |
| 262 | + "description": "Field name in the same resource that must be resolved before running this discovery command." |
| 263 | + }, |
| 264 | + "shortcut": { |
| 265 | + "type": "string", |
| 266 | + "minLength": 1, |
| 267 | + "description": "Optional shortcut command that returns a single value directly." |
| 268 | + } |
| 269 | + }, |
| 270 | + "additionalProperties": false |
| 271 | + }, |
| 272 | + "resourceResolution": { |
| 273 | + "type": "string", |
| 274 | + "enum": ["user-provided", "platform-injected"], |
| 275 | + "description": "Indicates whether the value must be supplied by the user/agent or is injected automatically by the platform." |
| 276 | + }, |
| 277 | + "postScaffoldStep": { |
| 278 | + "type": "object", |
| 279 | + "required": ["step", "instruction"], |
| 280 | + "properties": { |
| 281 | + "step": { |
| 282 | + "type": "integer", |
| 283 | + "minimum": 1, |
| 284 | + "description": "1-based step number in the post-scaffold flow." |
| 285 | + }, |
| 286 | + "instruction": { |
| 287 | + "type": "string", |
| 288 | + "minLength": 1, |
| 289 | + "description": "Instruction to follow after scaffolding." |
| 290 | + }, |
| 291 | + "blocking": { |
| 292 | + "type": "boolean", |
| 293 | + "default": false, |
| 294 | + "description": "When true, this step must be completed before proceeding." |
| 295 | + } |
| 296 | + }, |
| 297 | + "additionalProperties": false |
| 298 | + }, |
227 | 299 | "resourceRequirement": { |
228 | 300 | "type": "object", |
229 | 301 | "description": "Declares a resource requirement for a plugin. Can be defined statically in a manifest or dynamically via getResourceRequirements().", |
|
0 commit comments