@wp-playground/blueprints 3.1.45 → 3.1.46

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.
@@ -2295,13 +2295,13 @@
2295
2295
  {
2296
2296
  "type": "array",
2297
2297
  "items": {
2298
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
2298
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
2299
2299
  }
2300
2300
  },
2301
2301
  {
2302
2302
  "type": "object",
2303
2303
  "additionalProperties": {
2304
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
2304
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
2305
2305
  }
2306
2306
  }
2307
2307
  ]
@@ -2718,13 +2718,13 @@
2718
2718
  {
2719
2719
  "type": "array",
2720
2720
  "items": {
2721
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
2721
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
2722
2722
  }
2723
2723
  },
2724
2724
  {
2725
2725
  "type": "object",
2726
2726
  "additionalProperties": {
2727
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
2727
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
2728
2728
  }
2729
2729
  }
2730
2730
  ]
@@ -3130,13 +3130,13 @@
3130
3130
  {
3131
3131
  "type": "array",
3132
3132
  "items": {
3133
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3133
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3134
3134
  }
3135
3135
  },
3136
3136
  {
3137
3137
  "type": "object",
3138
3138
  "additionalProperties": {
3139
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3139
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3140
3140
  }
3141
3141
  }
3142
3142
  ]
@@ -3276,13 +3276,13 @@
3276
3276
  {
3277
3277
  "type": "array",
3278
3278
  "items": {
3279
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3279
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3280
3280
  }
3281
3281
  },
3282
3282
  {
3283
3283
  "type": "object",
3284
3284
  "additionalProperties": {
3285
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3285
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3286
3286
  }
3287
3287
  }
3288
3288
  ]
@@ -3819,13 +3819,13 @@
3819
3819
  {
3820
3820
  "type": "array",
3821
3821
  "items": {
3822
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3822
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3823
3823
  }
3824
3824
  },
3825
3825
  {
3826
3826
  "type": "object",
3827
3827
  "additionalProperties": {
3828
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3828
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3829
3829
  }
3830
3830
  }
3831
3831
  ]
@@ -3967,13 +3967,13 @@
3967
3967
  {
3968
3968
  "type": "array",
3969
3969
  "items": {
3970
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3970
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3971
3971
  }
3972
3972
  },
3973
3973
  {
3974
3974
  "type": "object",
3975
3975
  "additionalProperties": {
3976
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
3976
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
3977
3977
  }
3978
3978
  }
3979
3979
  ]
@@ -4271,13 +4271,13 @@
4271
4271
  {
4272
4272
  "type": "array",
4273
4273
  "items": {
4274
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4274
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4275
4275
  }
4276
4276
  },
4277
4277
  {
4278
4278
  "type": "object",
4279
4279
  "additionalProperties": {
4280
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4280
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4281
4281
  }
4282
4282
  }
4283
4283
  ]
@@ -4520,13 +4520,13 @@
4520
4520
  {
4521
4521
  "type": "array",
4522
4522
  "items": {
4523
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4523
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4524
4524
  }
4525
4525
  },
4526
4526
  {
4527
4527
  "type": "object",
4528
4528
  "additionalProperties": {
4529
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4529
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4530
4530
  }
4531
4531
  }
4532
4532
  ]
@@ -4823,7 +4823,7 @@
4823
4823
  ],
4824
4824
  "description": "Plugin directory reference, e.g. \"jetpack\", \"jetpack@6.4\", or \"akismet@6.4.3\".\n\nThese refer to a specific plugin slugs in the WordPress.org plugin repository.\n\nFor example, a reference to \"wordpress-seo\" means the Yoast SEO plugin as seen on https://wordpress.org/plugins/wordpress-seo/.\n\nThe Plugin Directory Reference are only meaningful in:\n\n* The top-level `plugins` array\n* The `installPlugin` imperative step"
4825
4825
  },
4826
- "alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845": {
4826
+ "alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856": {
4827
4827
  "anyOf": [
4828
4828
  {
4829
4829
  "type": "string"
@@ -4837,13 +4837,13 @@
4837
4837
  {
4838
4838
  "type": "array",
4839
4839
  "items": {
4840
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4840
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4841
4841
  }
4842
4842
  },
4843
4843
  {
4844
4844
  "type": "object",
4845
4845
  "additionalProperties": {
4846
- "$ref": "#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845"
4846
+ "$ref": "#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856"
4847
4847
  }
4848
4848
  }
4849
4849
  ]
@@ -400,13 +400,13 @@ const schema11 = {
400
400
  {
401
401
  type: 'array',
402
402
  items: {
403
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
403
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
404
404
  },
405
405
  },
406
406
  {
407
407
  type: 'object',
408
408
  additionalProperties: {
409
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
409
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
410
410
  },
411
411
  },
412
412
  ],
@@ -869,14 +869,14 @@ const schema11 = {
869
869
  {
870
870
  type: 'array',
871
871
  items: {
872
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
872
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
873
873
  },
874
874
  },
875
875
  {
876
876
  type: 'object',
877
877
  additionalProperties:
878
878
  {
879
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
879
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
880
880
  },
881
881
  },
882
882
  ],
@@ -1325,14 +1325,14 @@ const schema11 = {
1325
1325
  {
1326
1326
  type: 'array',
1327
1327
  items: {
1328
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
1328
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
1329
1329
  },
1330
1330
  },
1331
1331
  {
1332
1332
  type: 'object',
1333
1333
  additionalProperties:
1334
1334
  {
1335
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
1335
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
1336
1336
  },
1337
1337
  },
1338
1338
  ],
@@ -1499,14 +1499,14 @@ const schema11 = {
1499
1499
  {
1500
1500
  type: 'array',
1501
1501
  items: {
1502
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
1502
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
1503
1503
  },
1504
1504
  },
1505
1505
  {
1506
1506
  type: 'object',
1507
1507
  additionalProperties:
1508
1508
  {
1509
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
1509
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
1510
1510
  },
1511
1511
  },
1512
1512
  ],
@@ -2079,14 +2079,14 @@ const schema11 = {
2079
2079
  {
2080
2080
  type: 'array',
2081
2081
  items: {
2082
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2082
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2083
2083
  },
2084
2084
  },
2085
2085
  {
2086
2086
  type: 'object',
2087
2087
  additionalProperties:
2088
2088
  {
2089
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2089
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2090
2090
  },
2091
2091
  },
2092
2092
  ],
@@ -2273,14 +2273,14 @@ const schema11 = {
2273
2273
  {
2274
2274
  type: 'array',
2275
2275
  items: {
2276
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2276
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2277
2277
  },
2278
2278
  },
2279
2279
  {
2280
2280
  type: 'object',
2281
2281
  additionalProperties:
2282
2282
  {
2283
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2283
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2284
2284
  },
2285
2285
  },
2286
2286
  ],
@@ -2599,13 +2599,13 @@ const schema11 = {
2599
2599
  {
2600
2600
  type: 'array',
2601
2601
  items: {
2602
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2602
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2603
2603
  },
2604
2604
  },
2605
2605
  {
2606
2606
  type: 'object',
2607
2607
  additionalProperties: {
2608
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2608
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2609
2609
  },
2610
2610
  },
2611
2611
  ],
@@ -2830,13 +2830,13 @@ const schema11 = {
2830
2830
  {
2831
2831
  type: 'array',
2832
2832
  items: {
2833
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2833
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2834
2834
  },
2835
2835
  },
2836
2836
  {
2837
2837
  type: 'object',
2838
2838
  additionalProperties: {
2839
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
2839
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
2840
2840
  },
2841
2841
  },
2842
2842
  ],
@@ -3097,7 +3097,7 @@ const schema11 = {
3097
3097
  description:
3098
3098
  'Plugin directory reference, e.g. "jetpack", "jetpack@6.4", or "akismet@6.4.3".\n\nThese refer to a specific plugin slugs in the WordPress.org plugin repository.\n\nFor example, a reference to "wordpress-seo" means the Yoast SEO plugin as seen on https://wordpress.org/plugins/wordpress-seo/.\n\nThe Plugin Directory Reference are only meaningful in:\n\n* The top-level `plugins` array\n* The `installPlugin` imperative step',
3099
3099
  },
3100
- 'alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845':
3100
+ 'alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856':
3101
3101
  {
3102
3102
  anyOf: [
3103
3103
  { type: 'string' },
@@ -3106,13 +3106,13 @@ const schema11 = {
3106
3106
  {
3107
3107
  type: 'array',
3108
3108
  items: {
3109
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3109
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3110
3110
  },
3111
3111
  },
3112
3112
  {
3113
3113
  type: 'object',
3114
3114
  additionalProperties: {
3115
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3115
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3116
3116
  },
3117
3117
  },
3118
3118
  ],
@@ -3510,13 +3510,13 @@ const schema12 = {
3510
3510
  {
3511
3511
  type: 'array',
3512
3512
  items: {
3513
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3513
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3514
3514
  },
3515
3515
  },
3516
3516
  {
3517
3517
  type: 'object',
3518
3518
  additionalProperties: {
3519
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3519
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3520
3520
  },
3521
3521
  },
3522
3522
  ],
@@ -3973,13 +3973,13 @@ const schema12 = {
3973
3973
  {
3974
3974
  type: 'array',
3975
3975
  items: {
3976
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3976
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3977
3977
  },
3978
3978
  },
3979
3979
  {
3980
3980
  type: 'object',
3981
3981
  additionalProperties: {
3982
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
3982
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
3983
3983
  },
3984
3984
  },
3985
3985
  ],
@@ -4392,14 +4392,14 @@ const schema12 = {
4392
4392
  {
4393
4393
  type: 'array',
4394
4394
  items: {
4395
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
4395
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
4396
4396
  },
4397
4397
  },
4398
4398
  {
4399
4399
  type: 'object',
4400
4400
  additionalProperties:
4401
4401
  {
4402
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
4402
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
4403
4403
  },
4404
4404
  },
4405
4405
  ],
@@ -4562,14 +4562,14 @@ const schema12 = {
4562
4562
  {
4563
4563
  type: 'array',
4564
4564
  items: {
4565
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
4565
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
4566
4566
  },
4567
4567
  },
4568
4568
  {
4569
4569
  type: 'object',
4570
4570
  additionalProperties:
4571
4571
  {
4572
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
4572
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
4573
4573
  },
4574
4574
  },
4575
4575
  ],
@@ -5090,14 +5090,14 @@ const schema12 = {
5090
5090
  {
5091
5091
  type: 'array',
5092
5092
  items: {
5093
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5093
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5094
5094
  },
5095
5095
  },
5096
5096
  {
5097
5097
  type: 'object',
5098
5098
  additionalProperties:
5099
5099
  {
5100
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5100
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5101
5101
  },
5102
5102
  },
5103
5103
  ],
@@ -5282,14 +5282,14 @@ const schema12 = {
5282
5282
  {
5283
5283
  type: 'array',
5284
5284
  items: {
5285
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5285
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5286
5286
  },
5287
5287
  },
5288
5288
  {
5289
5289
  type: 'object',
5290
5290
  additionalProperties:
5291
5291
  {
5292
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5292
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5293
5293
  },
5294
5294
  },
5295
5295
  ],
@@ -5579,13 +5579,13 @@ const schema12 = {
5579
5579
  {
5580
5580
  type: 'array',
5581
5581
  items: {
5582
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5582
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5583
5583
  },
5584
5584
  },
5585
5585
  {
5586
5586
  type: 'object',
5587
5587
  additionalProperties: {
5588
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5588
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5589
5589
  },
5590
5590
  },
5591
5591
  ],
@@ -5789,13 +5789,13 @@ const schema12 = {
5789
5789
  {
5790
5790
  type: 'array',
5791
5791
  items: {
5792
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5792
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5793
5793
  },
5794
5794
  },
5795
5795
  {
5796
5796
  type: 'object',
5797
5797
  additionalProperties: {
5798
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
5798
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
5799
5799
  },
5800
5800
  },
5801
5801
  ],
@@ -7098,13 +7098,13 @@ const schema37 = {
7098
7098
  {
7099
7099
  type: 'array',
7100
7100
  items: {
7101
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
7101
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
7102
7102
  },
7103
7103
  },
7104
7104
  {
7105
7105
  type: 'object',
7106
7106
  additionalProperties: {
7107
- $ref: '#/definitions/alias-1337903113-148581-148675-1337903113-100727-148689-1337903113-100693-148689-1337903113-0-165845',
7107
+ $ref: '#/definitions/alias-1337903113-148592-148686-1337903113-100738-148700-1337903113-100704-148700-1337903113-0-165856',
7108
7108
  },
7109
7109
  },
7110
7110
  ],
package/index.cjs CHANGED
@@ -1034,7 +1034,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
1034
1034
  ${"^".repeat(f.length+2)} This property is not recognized`}}catch{}}}else try{const f=l.split("/").filter(Boolean);let h=e;for(const y of f)h&&typeof h=="object"&&(h=h[y]);if(h!==void 0){const y=JSON.stringify(h,null,2);r=`
1035
1035
  Value: ${y.length>200?y.substring(0,200)+"...":y}`}}catch{}return`${n+1}. At path "${l}": ${s}${r}`}).join(`
1036
1036
 
1037
- `)}function st(e){var l;const t=$r(e);if(t)return{valid:t};const o=new Set;for(const s of $r.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||o.add(s.instancePath);return{valid:!1,errors:((l=$r.errors)==null?void 0:l.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&o.has(s.instancePath))))??[]}}function bi(e,t,o){return(e==="7.2"||e==="7.3")&&(oe.logger.warn(`PHP ${e} is no longer supported. Automatically upgrading to PHP 7.4.`),e="7.4"),e&&t.includes(e)?e:o}function ts(e){return!!(typeof e=="object"&&e)}function vi(e){return["setPhpIniEntry","request"].includes(e.step)?(oe.logger.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Pi(e,{semaphore:t,rootProgressTracker:o,totalProgressWeight:n,corsProxy:l,streamBundledFile:s,gitAdditionalHeadersCallback:r}){var O,T;const u=o.stage((((O=e.progress)==null?void 0:O.weight)||1)/n,(T=e.progress)==null?void 0:T.caption),f={};for(const _ of Object.keys(e)){let U=e[_];ks(U)&&(U=me.create(U,{semaphore:t,corsProxy:l,streamBundledFile:s,gitAdditionalHeadersCallback:r})),f[_]=U}const h=async _=>{var U,J;try{return(U=e.progress)!=null&&U.caption&&u.setCaption(e.progress.caption),u.fillSlowly(),await gi[e.step](_,await $i(f),{tracker:u,initialCaption:(J=e.progress)==null?void 0:J.caption})}finally{u.finish()}},y=gt(f),m=gt(f).filter(_=>_.isAsync),k=1/(m.length+1);for(const _ of m)_.progress=u.stage(k);return{run:h,step:e,resources:y}}function gt(e){const t=[];for(const o in e){const n=e[o];n instanceof me&&t.push(n)}return t}async function $i(e){const t={};for(const o in e){const n=e[o];n instanceof me?t[o]=await n.resolve():t[o]=n}return t}async function ss(e,t){await e.run(t)}const Oi=new Set(["installPlugin","installTheme","activatePlugin","activateTheme","login","setSiteOptions","updateUserMeta","importWxr","importFile","importWordPressFiles","enableMultisite","wp-cli","resetData"]);function ki(e){var n,l;const t=[];(n=e.plugins)!=null&&n.length&&t.push("plugins"),e.siteOptions&&t.push("siteOptions"),e.login&&t.push("login"),(l=e.extraLibraries)!=null&&l.includes("wp-cli")&&t.push("extraLibraries includes 'wp-cli'");const o=(e.steps||[]).filter(s=>!!s&&typeof s=="object"&&"step"in s).map(s=>s.step).filter(s=>Oi.has(s));if(o.length&&t.push(`steps: ${[...new Set(o)].join(", ")}`),t.length)throw new tt(`Blueprint has \`preferredVersions.wp: false\` but uses WordPress-only features: ${t.join("; ")}. Remove these or drop \`preferredVersions.wp: false\`.`,[])}async function Ei(e){if(Ti(e)){const{validateBlueprintV2Declaration:t}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CJ8Xbxyz.cjs"));return t(e)}return st(e)}function Ti(e){return typeof e=="object"&&e!==null&&"version"in e&&e.version===2}const Ri=["latest","beta","trunk","nightly","none"],is="custom",Si=/^\d+\.\d+(?:\.\d+)?(?:-(?:beta|rc)\d+)?$/i,ji=ke.AllPHPVersions.filter(e=>e!=="next");async function os(e,t="create-new-site",o){var r,u;if(!qi(e))throw new Error("Expected a Blueprint v2 declaration.");const{assertValidBlueprintV2Declaration:n}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CJ8Xbxyz.cjs"));n(e),o==null||o(e);const l=(r=e.applicationOptions)==null?void 0:r["wordpress-playground"],s=await Fi(e,t==="create-new-site");return{phpVersion:Ni(e),wpVersion:s,intl:((u=l==null?void 0:l.loadPhpExtensions)==null?void 0:u.includes("intl"))??!1,networking:(l==null?void 0:l.networkAccess)??!1,constants:e.constants??{},extraLibraries:[]}}async function Ai(e,t){const o=e.wordpressVersion;ns(o)&&(it(o),!Xe(t,o)&&Mi(t,o))}function qi(e){return e.version===2}function Ni(e){const t=e.phpVersion;if(typeof t=="string")return _t(t);const o=Li(t);if(o){const l=_t(o);if(t&&typeof t=="object"&&Mr(l,t))return l;throw new Error(`Blueprint v2 recommended PHP version "${o}" does not satisfy constraints ${JSON.stringify(t)}.`)}const n=xi(t);if(n)return n;if(t&&typeof t=="object")throw new Error(`Unsatisfiable Blueprint v2 PHP version constraints ${JSON.stringify(t)}. Supported versions: ${ke.AllPHPVersions.join(", ")}.`);return Ge.RecommendedPHPVersion}function _t(e){if(e==="latest")return ke.LatestSupportedPHPVersion;if(ke.AllPHPVersions.includes(e))return e;throw new Error(`Unsupported Blueprint v2 PHP version "${e}". Supported versions: ${ke.AllPHPVersions.join(", ")}.`)}function Li(e){if(!(!e||typeof e!="object")&&"recommended"in e)return typeof e.recommended=="string"?e.recommended:void 0}function xi(e){if(!(!e||typeof e!="object"))return Mr(Ge.RecommendedPHPVersion,e)?Ge.RecommendedPHPVersion:ji.find(t=>Mr(t,e))}function Mr(e,t){if(e==="next")return!1;const o=wt(t==null?void 0:t.min);if(o&&bt(e,o)<0)return!1;const n=wt(t==null?void 0:t.max);return!(n&&bt(e,n)>0)}function wt(e){return e==="latest"?ke.LatestSupportedPHPVersion:e}function bt(e,t){const o=vt(e),n=vt(t);for(let l=0;l<3;l++){const s=o[l]-n[l];if(s!==0)return s}return 0}function vt(e){const[t=0,o=0,n=0]=e.split(".").map(l=>Number(l));return[t,o,n]}async function Fi(e,t){const o=e.wordpressVersion;if(typeof o=="string")return Ci(o);if(ns(o)){if(!t)return it(o),"latest";const n=await Ii(o);if(n)return n;throw new Error(`Unsatisfiable Blueprint v2 WordPress version constraints ${JSON.stringify(o)}. No available WordPress release satisfies the declared bounds.`)}return o&&typeof o=="object"?is:"latest"}function Ci(e){if(zi(e))return e;if(Hi(e))return is;if(Ri.includes(e)||Si.test(e))return e;throw new Error(`Unsupported Blueprint v2 WordPress version "${e}". Use latest, beta, trunk, nightly, or a version like 6.8, 6.8.1, 6.8-beta1, 6.8-rc1; or use none to boot PHP without WordPress.`)}function ns(e){return!e||typeof e!="object"?!1:"min"in e}async function Ii(e){it(e);const t=e.preferred,o=await Ui(e);if(t&&t!=="latest"){const n=o.filter(s=>Wi(s,t));if(n.length===0)throw new Error(`Blueprint v2 preferred WordPress version "${t}" is not available.`);const l=n.find(s=>Xe(s,e));if(l)return l;throw new Error(`Blueprint v2 preferred WordPress version "${t}" does not satisfy constraints ${JSON.stringify(e)}.`)}return o.find(n=>Xe(n,e))}function it(e){Vi(e),Br("wordpressVersion.min",e.min),e.max&&Br("wordpressVersion.max",e.max);const t=e.preferred;if(t&&t!=="latest"&&(Br("wordpressVersion.preferred",t),!Di(t,e)))throw new Error(`Blueprint v2 preferred WordPress version "${t}" does not satisfy constraints ${JSON.stringify(e)}.`);if(!Xe(e.min,e))throw new Error(`Unsatisfiable Blueprint v2 WordPress version constraints ${JSON.stringify(e)}. The minimum version exceeds the maximum version.`)}async function Ui(e){const t=(await Or.getWordPressStableVersions()).map(Bi);if(e&&[e.min,e.max,e.preferred].some(o=>{var n;return o&&((n=Pe(o))==null?void 0:n.suffix)!==void 0})){const o=await Or.resolveWordPressRelease("beta");t.push(o.version)}return Array.from(new Set(t)).filter(as).sort((o,n)=>Er(n,o))}function Bi(e){return/^\d+\.\d+$/.test(e)?`${e}.0`:e}function Wi(e,t){const o=Pe(e),n=Pe(t);return!o||!n?!1:!n.patchSpecified&&!n.suffix?!o.suffix&&o.parts[0]===n.parts[0]&&o.parts[1]===n.parts[1]:Er(e,t)===0}function Di(e,t){const o=Pe(e);if(!o)return!1;if(o.patchSpecified||o.suffix)return Xe(e,t);const n=Pe(t.min),l=o.parts.slice(0,2),s=n.parts.slice(0,2);if(Pt(l,s)<0)return!1;if(!t.max)return!0;const r=Pe(t.max),u=r.parts.slice(0,2),f=Pt(l,u);return f<0||f===0&&!r.suffix}function Pt(e,t){for(let o=0;o<2;o++){const n=e[o]-t[o];if(n!==0)return n}return 0}function Mi(e,t){throw new Error(`Installed WordPress version "${e}" does not satisfy Blueprint v2 wordpressVersion ${JSON.stringify(t)}.`)}function Vi(e){Ur("wordpressVersion.min",e.min),e.max!==void 0&&Ur("wordpressVersion.max",e.max),e.preferred!==void 0&&Ur("wordpressVersion.preferred",e.preferred)}function Ur(e,t){if(typeof t!="string")throw new Error(`Unsupported Blueprint v2 WordPress version constraint ${e} ${JSON.stringify(t)}. Use a version like 6.8, 6.8.1, 6.8-beta1, or 6.8-rc1.`)}function Br(e,t){if(!as(t))throw new Error(`Unsupported Blueprint v2 WordPress version constraint ${e} "${t}". Use a version like 6.8, 6.8.1, 6.8-beta1, or 6.8-rc1.`)}function Xe(e,t){const o=Pe(e),n=Pe(t.min);if(!o||!n||Er(e,t.min)<0)return!1;if(!t.max)return!0;const l=Pe(t.max);return l?!l.patchSpecified&&!l.suffix&&o.parts[0]===l.parts[0]&&o.parts[1]===l.parts[1]?!0:Er(e,t.max)<=0:!1}function Er(e,t){const o=Pe(e),n=Pe(t);if(!o||!n)throw new Error(`Cannot compare WordPress versions "${e}" and "${t}".`);for(let l=0;l<o.parts.length;l++){const s=o.parts[l]-n.parts[l];if(s!==0)return s}return 0}function as(e){return Pe(e)!==null}function Pe(e){const t=e.match(/^(\d+)\.(\d+)(?:\.(\d+))?(?:-(beta|rc)(\d+))?$/i);if(!t)return null;const[,o,n,l,s,r="0"]=t,u=s==null?void 0:s.toLowerCase(),f=u?u==="beta"?0:1:2;return{parts:[Number(o),Number(n),Number(l??"0"),f,Number(r)],patchSpecified:l!==void 0,suffix:u}}function zi(e){return e.startsWith("http://")||e.startsWith("https://")}function Hi(e){return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}class be extends Error{constructor(t,o="This Blueprint v2 feature is not supported by the TypeScript runner yet."){super(`${t}: ${o}`),this.name="UnsupportedBlueprintV2FeatureError",this.featurePath=t}}const ot=["posts","pages","comments"];async function ps(e,t={}){const o=await os(e,t.siteMode,t.onBlueprintValidated),n=ls(e,t.siteMode),{steps:l,unsupportedPlan:s}=Xi(n),r=Ji(e,o,l);return{runtime:o,applicationOptions:e.applicationOptions,plan:n,steps:l,unsupportedPlan:s,run:async u=>{if(s.length>0)throw new be("executionPlan",Zi(s));await(await Ke(r,{progress:t.progress,streamBundledFile:t.streamBundledFile})).run(u)}}}async function Yi(e,t={}){const{assertValidBlueprintV2Declaration:o}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CJ8Xbxyz.cjs"));o(e);const n=So(e.wordpressVersion);if(!n)return;const l=at(n,"wordpress");return await me.create(pt(l)?{resource:"zip",inner:l,name:"wordpress.zip"}:l,t).resolve()}function Ji(e,t,o){var l;const n=(l=e.applicationOptions)==null?void 0:l["wordpress-playground"];return{preferredVersions:{php:t.phpVersion,wp:e.wordpressVersion==="none"?!1:t.wpVersion},features:{intl:t.intl,networking:t.networking},extraLibraries:t.extraLibraries,landingPage:n==null?void 0:n.landingPage,login:n==null?void 0:n.login,steps:o}}function Zi(e){return`Blueprint v2 execution plan contains unsupported items: ${e.map(o=>`${Qi(o)} (${Gi(o)})`).join(", ")}.`}function Gi(e){return e.type==="runStep"?e.step.step:e.type}function Qi(e){return"sourcePath"in e?e.sourcePath:`/${e.type}`}function ls(e,t="create-new-site"){var l,s;const o=[],n=e.contentBaseline;if(t==="create-new-site"&&n!==void 0){const r=us(n);ot.some(u=>!r.includes(u))&&o.push({type:"applyContentBaseline",contentBaseline:n,sourcePath:"/contentBaseline"})}t==="create-new-site"&&e.usersBaseline==="empty"&&o.push({type:"applyUsersBaseline",sourcePath:"/usersBaseline"}),e.constants&&Object.keys(e.constants).length>0&&o.push({type:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&Object.keys(e.siteOptions).length>0&&o.push({type:"setSiteOptions",options:e.siteOptions});for(const[r,u]of(e.muPlugins??[]).entries())o.push({type:"installMuPlugin",muPlugin:u,sourcePath:`/muPlugins/${r}`});for(const[r,u]of(e.themes??[]).entries())o.push({type:"installTheme",theme:u,active:!1,sourcePath:`/themes/${r}`});e.activeTheme!==void 0&&o.push({type:"installTheme",theme:e.activeTheme,active:!0,sourcePath:"/activeTheme"});for(const[r,u]of(e.plugins??[]).entries())o.push({type:"installPlugin",plugin:u,sourcePath:`/plugins/${r}`});e.fonts&&Object.keys(e.fonts).length>0&&o.push({type:"installFonts",fonts:e.fonts});for(const[r,u]of(e.media??[]).entries())o.push({type:"importMedia",media:u,sourcePath:`/media/${r}`});e.siteLanguage&&o.push({type:"setSiteLanguage",language:e.siteLanguage}),(l=e.roles)!=null&&l.length&&o.push({type:"defineRoles",roles:e.roles}),(s=e.users)!=null&&s.length&&o.push({type:"defineUsers",users:e.users}),e.postTypes&&Object.keys(e.postTypes).length>0&&o.push({type:"definePostTypes",postTypes:e.postTypes});for(const[r,u]of(e.content??[]).entries())o.push({type:"importContent",content:u,sourcePath:`/content/${r}`});for(const[r,u]of(e.additionalStepsAfterExecution??[]).entries())o.push({type:"runStep",step:u,sourcePath:`/additionalStepsAfterExecution/${r}`});return o}function Xi(e){const t=[],o=[],n={nextTempFileIndex:0};for(const l of e){const s=so(l,n);s?t.push(...Ki(s,l)):o.push(l)}return{steps:t,unsupportedPlan:o}}function Ki(e,t){if(e.length===0)return e;const o=eo(t),n=1/e.length;return e.map(l=>{var s,r;return{...l,progress:{...l.progress,caption:((s=l.progress)==null?void 0:s.caption)??o,weight:((r=l.progress)==null?void 0:r.weight)??n}}})}function eo(e){switch(e.type){case"applyContentBaseline":return"Removing initial content";case"applyUsersBaseline":return"Removing initial users";case"defineWpConfigConsts":return"Defining constants";case"setSiteOptions":return"Setting site options";case"installMuPlugin":return"Installing must-use plugin";case"installTheme":return e.active?"Installing active theme":"Installing theme";case"installPlugin":return"Installing plugin";case"installFonts":return"Installing fonts";case"importMedia":return"Importing media";case"setSiteLanguage":return"Setting site language";case"defineRoles":return"Creating roles";case"defineUsers":return"Creating users";case"definePostTypes":return"Registering post types";case"importContent":return ro(e.content);case"runStep":return to(e.step)}return nt(e)}function nt(e){throw new Error(`Unexpected Blueprint v2 progress item: ${e}`)}function ro(e){switch(e.type){case"mysql-dump":return"Importing SQL content";case"posts":return"Importing posts";case"wxr":return"Importing WXR content"}return nt(e)}function to(e){switch(e.step){case"activatePlugin":return"Activating plugin";case"activateTheme":return"Activating theme";case"cp":return"Copying files";case"defineConstants":return"Defining constants";case"enableMultisite":return"Enabling multisite";case"importContent":return"Importing content";case"importMedia":return"Importing media";case"importThemeStarterContent":return"Importing theme starter content";case"installPlugin":return"Installing plugin";case"installTheme":return"Installing theme";case"mkdir":return"Creating directory";case"mv":return"Moving files";case"rm":return"Removing file";case"rmdir":return"Removing directory";case"resetData":return"Resetting WordPress data";case"runPHP":return"Running PHP";case"runSQL":return"Executing SQL queries";case"setSiteLanguage":return"Setting site language";case"setSiteOptions":return"Setting site options";case"unzip":return"Extracting ZIP file";case"wp-cli":return"Running WP-CLI";case"writeFiles":return"Writing files"}return nt(e)}function so(e,t){switch(e.type){case"applyContentBaseline":return[{step:"resetData",contentTypes:io(e.contentBaseline)}];case"applyUsersBaseline":return oo();case"defineWpConfigConsts":return[{step:"defineWpConfigConsts",consts:e.consts}];case"setSiteOptions":return[{step:"setSiteOptions",options:e.options}];case"installTheme":return[ms(e.theme,e.active)];case"installPlugin":return[ds(e.plugin)];case"installMuPlugin":return fo(e.muPlugin,e.sourcePath);case"installFonts":return go(e.fonts,t);case"importMedia":return cs([e.media],e.sourcePath,t);case"defineRoles":return[yo(e.roles)];case"defineUsers":return[ho(e.users)];case"definePostTypes":return mo(e.postTypes);case"importContent":return fs(e.content,e.sourcePath,t);case"setSiteLanguage":return[{step:"setSiteLanguage",language:e.language}];case"runStep":return ao(e.step,e.sourcePath,t);default:return}}function io(e){const t=us(e);return ot.filter(o=>!t.includes(o))}function us(e){return e==="keep-all"?ot:e==="empty"?[]:ut(e)}function oo(){return[{step:"runPHP",code:`<?php
1037
+ `)}function st(e){var l;const t=$r(e);if(t)return{valid:t};const o=new Set;for(const s of $r.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||o.add(s.instancePath);return{valid:!1,errors:((l=$r.errors)==null?void 0:l.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&o.has(s.instancePath))))??[]}}function bi(e,t,o){return(e==="7.2"||e==="7.3")&&(oe.logger.warn(`PHP ${e} is no longer supported. Automatically upgrading to PHP 7.4.`),e="7.4"),e&&t.includes(e)?e:o}function ts(e){return!!(typeof e=="object"&&e)}function vi(e){return["setPhpIniEntry","request"].includes(e.step)?(oe.logger.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Pi(e,{semaphore:t,rootProgressTracker:o,totalProgressWeight:n,corsProxy:l,streamBundledFile:s,gitAdditionalHeadersCallback:r}){var O,T;const u=o.stage((((O=e.progress)==null?void 0:O.weight)||1)/n,(T=e.progress)==null?void 0:T.caption),f={};for(const _ of Object.keys(e)){let U=e[_];ks(U)&&(U=me.create(U,{semaphore:t,corsProxy:l,streamBundledFile:s,gitAdditionalHeadersCallback:r})),f[_]=U}const h=async _=>{var U,J;try{return(U=e.progress)!=null&&U.caption&&u.setCaption(e.progress.caption),u.fillSlowly(),await gi[e.step](_,await $i(f),{tracker:u,initialCaption:(J=e.progress)==null?void 0:J.caption})}finally{u.finish()}},y=gt(f),m=gt(f).filter(_=>_.isAsync),k=1/(m.length+1);for(const _ of m)_.progress=u.stage(k);return{run:h,step:e,resources:y}}function gt(e){const t=[];for(const o in e){const n=e[o];n instanceof me&&t.push(n)}return t}async function $i(e){const t={};for(const o in e){const n=e[o];n instanceof me?t[o]=await n.resolve():t[o]=n}return t}async function ss(e,t){await e.run(t)}const Oi=new Set(["installPlugin","installTheme","activatePlugin","activateTheme","login","setSiteOptions","updateUserMeta","importWxr","importFile","importWordPressFiles","enableMultisite","wp-cli","resetData"]);function ki(e){var n,l;const t=[];(n=e.plugins)!=null&&n.length&&t.push("plugins"),e.siteOptions&&t.push("siteOptions"),e.login&&t.push("login"),(l=e.extraLibraries)!=null&&l.includes("wp-cli")&&t.push("extraLibraries includes 'wp-cli'");const o=(e.steps||[]).filter(s=>!!s&&typeof s=="object"&&"step"in s).map(s=>s.step).filter(s=>Oi.has(s));if(o.length&&t.push(`steps: ${[...new Set(o)].join(", ")}`),t.length)throw new tt(`Blueprint has \`preferredVersions.wp: false\` but uses WordPress-only features: ${t.join("; ")}. Remove these or drop \`preferredVersions.wp: false\`.`,[])}async function Ei(e){if(Ti(e)){const{validateBlueprintV2Declaration:t}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CGFpDXlD.cjs"));return t(e)}return st(e)}function Ti(e){return typeof e=="object"&&e!==null&&"version"in e&&e.version===2}const Ri=["latest","beta","trunk","nightly","none"],is="custom",Si=/^\d+\.\d+(?:\.\d+)?(?:-(?:beta|rc)\d+)?$/i,ji=ke.AllPHPVersions.filter(e=>e!=="next");async function os(e,t="create-new-site",o){var r,u;if(!qi(e))throw new Error("Expected a Blueprint v2 declaration.");const{assertValidBlueprintV2Declaration:n}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CGFpDXlD.cjs"));n(e),o==null||o(e);const l=(r=e.applicationOptions)==null?void 0:r["wordpress-playground"],s=await Fi(e,t==="create-new-site");return{phpVersion:Ni(e),wpVersion:s,intl:((u=l==null?void 0:l.loadPhpExtensions)==null?void 0:u.includes("intl"))??!1,networking:(l==null?void 0:l.networkAccess)??!1,constants:e.constants??{},extraLibraries:[]}}async function Ai(e,t){const o=e.wordpressVersion;ns(o)&&(it(o),!Xe(t,o)&&Mi(t,o))}function qi(e){return e.version===2}function Ni(e){const t=e.phpVersion;if(typeof t=="string")return _t(t);const o=Li(t);if(o){const l=_t(o);if(t&&typeof t=="object"&&Mr(l,t))return l;throw new Error(`Blueprint v2 recommended PHP version "${o}" does not satisfy constraints ${JSON.stringify(t)}.`)}const n=xi(t);if(n)return n;if(t&&typeof t=="object")throw new Error(`Unsatisfiable Blueprint v2 PHP version constraints ${JSON.stringify(t)}. Supported versions: ${ke.AllPHPVersions.join(", ")}.`);return Ge.RecommendedPHPVersion}function _t(e){if(e==="latest")return ke.LatestSupportedPHPVersion;if(ke.AllPHPVersions.includes(e))return e;throw new Error(`Unsupported Blueprint v2 PHP version "${e}". Supported versions: ${ke.AllPHPVersions.join(", ")}.`)}function Li(e){if(!(!e||typeof e!="object")&&"recommended"in e)return typeof e.recommended=="string"?e.recommended:void 0}function xi(e){if(!(!e||typeof e!="object"))return Mr(Ge.RecommendedPHPVersion,e)?Ge.RecommendedPHPVersion:ji.find(t=>Mr(t,e))}function Mr(e,t){if(e==="next")return!1;const o=wt(t==null?void 0:t.min);if(o&&bt(e,o)<0)return!1;const n=wt(t==null?void 0:t.max);return!(n&&bt(e,n)>0)}function wt(e){return e==="latest"?ke.LatestSupportedPHPVersion:e}function bt(e,t){const o=vt(e),n=vt(t);for(let l=0;l<3;l++){const s=o[l]-n[l];if(s!==0)return s}return 0}function vt(e){const[t=0,o=0,n=0]=e.split(".").map(l=>Number(l));return[t,o,n]}async function Fi(e,t){const o=e.wordpressVersion;if(typeof o=="string")return Ci(o);if(ns(o)){if(!t)return it(o),"latest";const n=await Ii(o);if(n)return n;throw new Error(`Unsatisfiable Blueprint v2 WordPress version constraints ${JSON.stringify(o)}. No available WordPress release satisfies the declared bounds.`)}return o&&typeof o=="object"?is:"latest"}function Ci(e){if(zi(e))return e;if(Hi(e))return is;if(Ri.includes(e)||Si.test(e))return e;throw new Error(`Unsupported Blueprint v2 WordPress version "${e}". Use latest, beta, trunk, nightly, or a version like 6.8, 6.8.1, 6.8-beta1, 6.8-rc1; or use none to boot PHP without WordPress.`)}function ns(e){return!e||typeof e!="object"?!1:"min"in e}async function Ii(e){it(e);const t=e.preferred,o=await Ui(e);if(t&&t!=="latest"){const n=o.filter(s=>Wi(s,t));if(n.length===0)throw new Error(`Blueprint v2 preferred WordPress version "${t}" is not available.`);const l=n.find(s=>Xe(s,e));if(l)return l;throw new Error(`Blueprint v2 preferred WordPress version "${t}" does not satisfy constraints ${JSON.stringify(e)}.`)}return o.find(n=>Xe(n,e))}function it(e){Vi(e),Br("wordpressVersion.min",e.min),e.max&&Br("wordpressVersion.max",e.max);const t=e.preferred;if(t&&t!=="latest"&&(Br("wordpressVersion.preferred",t),!Di(t,e)))throw new Error(`Blueprint v2 preferred WordPress version "${t}" does not satisfy constraints ${JSON.stringify(e)}.`);if(!Xe(e.min,e))throw new Error(`Unsatisfiable Blueprint v2 WordPress version constraints ${JSON.stringify(e)}. The minimum version exceeds the maximum version.`)}async function Ui(e){const t=(await Or.getWordPressStableVersions()).map(Bi);if(e&&[e.min,e.max,e.preferred].some(o=>{var n;return o&&((n=Pe(o))==null?void 0:n.suffix)!==void 0})){const o=await Or.resolveWordPressRelease("beta");t.push(o.version)}return Array.from(new Set(t)).filter(as).sort((o,n)=>Er(n,o))}function Bi(e){return/^\d+\.\d+$/.test(e)?`${e}.0`:e}function Wi(e,t){const o=Pe(e),n=Pe(t);return!o||!n?!1:!n.patchSpecified&&!n.suffix?!o.suffix&&o.parts[0]===n.parts[0]&&o.parts[1]===n.parts[1]:Er(e,t)===0}function Di(e,t){const o=Pe(e);if(!o)return!1;if(o.patchSpecified||o.suffix)return Xe(e,t);const n=Pe(t.min),l=o.parts.slice(0,2),s=n.parts.slice(0,2);if(Pt(l,s)<0)return!1;if(!t.max)return!0;const r=Pe(t.max),u=r.parts.slice(0,2),f=Pt(l,u);return f<0||f===0&&!r.suffix}function Pt(e,t){for(let o=0;o<2;o++){const n=e[o]-t[o];if(n!==0)return n}return 0}function Mi(e,t){throw new Error(`Installed WordPress version "${e}" does not satisfy Blueprint v2 wordpressVersion ${JSON.stringify(t)}.`)}function Vi(e){Ur("wordpressVersion.min",e.min),e.max!==void 0&&Ur("wordpressVersion.max",e.max),e.preferred!==void 0&&Ur("wordpressVersion.preferred",e.preferred)}function Ur(e,t){if(typeof t!="string")throw new Error(`Unsupported Blueprint v2 WordPress version constraint ${e} ${JSON.stringify(t)}. Use a version like 6.8, 6.8.1, 6.8-beta1, or 6.8-rc1.`)}function Br(e,t){if(!as(t))throw new Error(`Unsupported Blueprint v2 WordPress version constraint ${e} "${t}". Use a version like 6.8, 6.8.1, 6.8-beta1, or 6.8-rc1.`)}function Xe(e,t){const o=Pe(e),n=Pe(t.min);if(!o||!n||Er(e,t.min)<0)return!1;if(!t.max)return!0;const l=Pe(t.max);return l?!l.patchSpecified&&!l.suffix&&o.parts[0]===l.parts[0]&&o.parts[1]===l.parts[1]?!0:Er(e,t.max)<=0:!1}function Er(e,t){const o=Pe(e),n=Pe(t);if(!o||!n)throw new Error(`Cannot compare WordPress versions "${e}" and "${t}".`);for(let l=0;l<o.parts.length;l++){const s=o.parts[l]-n.parts[l];if(s!==0)return s}return 0}function as(e){return Pe(e)!==null}function Pe(e){const t=e.match(/^(\d+)\.(\d+)(?:\.(\d+))?(?:-(beta|rc)(\d+))?$/i);if(!t)return null;const[,o,n,l,s,r="0"]=t,u=s==null?void 0:s.toLowerCase(),f=u?u==="beta"?0:1:2;return{parts:[Number(o),Number(n),Number(l??"0"),f,Number(r)],patchSpecified:l!==void 0,suffix:u}}function zi(e){return e.startsWith("http://")||e.startsWith("https://")}function Hi(e){return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}class be extends Error{constructor(t,o="This Blueprint v2 feature is not supported by the TypeScript runner yet."){super(`${t}: ${o}`),this.name="UnsupportedBlueprintV2FeatureError",this.featurePath=t}}const ot=["posts","pages","comments"];async function ps(e,t={}){const o=await os(e,t.siteMode,t.onBlueprintValidated),n=ls(e,t.siteMode),{steps:l,unsupportedPlan:s}=Xi(n),r=Ji(e,o,l);return{runtime:o,applicationOptions:e.applicationOptions,plan:n,steps:l,unsupportedPlan:s,run:async u=>{if(s.length>0)throw new be("executionPlan",Zi(s));await(await Ke(r,{progress:t.progress,streamBundledFile:t.streamBundledFile})).run(u)}}}async function Yi(e,t={}){const{assertValidBlueprintV2Declaration:o}=await Promise.resolve().then(()=>require("./validate-blueprint-v2-CGFpDXlD.cjs"));o(e);const n=So(e.wordpressVersion);if(!n)return;const l=at(n,"wordpress");return await me.create(pt(l)?{resource:"zip",inner:l,name:"wordpress.zip"}:l,t).resolve()}function Ji(e,t,o){var l;const n=(l=e.applicationOptions)==null?void 0:l["wordpress-playground"];return{preferredVersions:{php:t.phpVersion,wp:e.wordpressVersion==="none"?!1:t.wpVersion},features:{intl:t.intl,networking:t.networking},extraLibraries:t.extraLibraries,landingPage:n==null?void 0:n.landingPage,login:n==null?void 0:n.login,steps:o}}function Zi(e){return`Blueprint v2 execution plan contains unsupported items: ${e.map(o=>`${Qi(o)} (${Gi(o)})`).join(", ")}.`}function Gi(e){return e.type==="runStep"?e.step.step:e.type}function Qi(e){return"sourcePath"in e?e.sourcePath:`/${e.type}`}function ls(e,t="create-new-site"){var l,s;const o=[],n=e.contentBaseline;if(t==="create-new-site"&&n!==void 0){const r=us(n);ot.some(u=>!r.includes(u))&&o.push({type:"applyContentBaseline",contentBaseline:n,sourcePath:"/contentBaseline"})}t==="create-new-site"&&e.usersBaseline==="empty"&&o.push({type:"applyUsersBaseline",sourcePath:"/usersBaseline"}),e.constants&&Object.keys(e.constants).length>0&&o.push({type:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&Object.keys(e.siteOptions).length>0&&o.push({type:"setSiteOptions",options:e.siteOptions});for(const[r,u]of(e.muPlugins??[]).entries())o.push({type:"installMuPlugin",muPlugin:u,sourcePath:`/muPlugins/${r}`});for(const[r,u]of(e.themes??[]).entries())o.push({type:"installTheme",theme:u,active:!1,sourcePath:`/themes/${r}`});e.activeTheme!==void 0&&o.push({type:"installTheme",theme:e.activeTheme,active:!0,sourcePath:"/activeTheme"});for(const[r,u]of(e.plugins??[]).entries())o.push({type:"installPlugin",plugin:u,sourcePath:`/plugins/${r}`});e.fonts&&Object.keys(e.fonts).length>0&&o.push({type:"installFonts",fonts:e.fonts});for(const[r,u]of(e.media??[]).entries())o.push({type:"importMedia",media:u,sourcePath:`/media/${r}`});e.siteLanguage&&o.push({type:"setSiteLanguage",language:e.siteLanguage}),(l=e.roles)!=null&&l.length&&o.push({type:"defineRoles",roles:e.roles}),(s=e.users)!=null&&s.length&&o.push({type:"defineUsers",users:e.users}),e.postTypes&&Object.keys(e.postTypes).length>0&&o.push({type:"definePostTypes",postTypes:e.postTypes});for(const[r,u]of(e.content??[]).entries())o.push({type:"importContent",content:u,sourcePath:`/content/${r}`});for(const[r,u]of(e.additionalStepsAfterExecution??[]).entries())o.push({type:"runStep",step:u,sourcePath:`/additionalStepsAfterExecution/${r}`});return o}function Xi(e){const t=[],o=[],n={nextTempFileIndex:0};for(const l of e){const s=so(l,n);s?t.push(...Ki(s,l)):o.push(l)}return{steps:t,unsupportedPlan:o}}function Ki(e,t){if(e.length===0)return e;const o=eo(t),n=1/e.length;return e.map(l=>{var s,r;return{...l,progress:{...l.progress,caption:((s=l.progress)==null?void 0:s.caption)??o,weight:((r=l.progress)==null?void 0:r.weight)??n}}})}function eo(e){switch(e.type){case"applyContentBaseline":return"Removing initial content";case"applyUsersBaseline":return"Removing initial users";case"defineWpConfigConsts":return"Defining constants";case"setSiteOptions":return"Setting site options";case"installMuPlugin":return"Installing must-use plugin";case"installTheme":return e.active?"Installing active theme":"Installing theme";case"installPlugin":return"Installing plugin";case"installFonts":return"Installing fonts";case"importMedia":return"Importing media";case"setSiteLanguage":return"Setting site language";case"defineRoles":return"Creating roles";case"defineUsers":return"Creating users";case"definePostTypes":return"Registering post types";case"importContent":return ro(e.content);case"runStep":return to(e.step)}return nt(e)}function nt(e){throw new Error(`Unexpected Blueprint v2 progress item: ${e}`)}function ro(e){switch(e.type){case"mysql-dump":return"Importing SQL content";case"posts":return"Importing posts";case"wxr":return"Importing WXR content"}return nt(e)}function to(e){switch(e.step){case"activatePlugin":return"Activating plugin";case"activateTheme":return"Activating theme";case"cp":return"Copying files";case"defineConstants":return"Defining constants";case"enableMultisite":return"Enabling multisite";case"importContent":return"Importing content";case"importMedia":return"Importing media";case"importThemeStarterContent":return"Importing theme starter content";case"installPlugin":return"Installing plugin";case"installTheme":return"Installing theme";case"mkdir":return"Creating directory";case"mv":return"Moving files";case"rm":return"Removing file";case"rmdir":return"Removing directory";case"resetData":return"Resetting WordPress data";case"runPHP":return"Running PHP";case"runSQL":return"Executing SQL queries";case"setSiteLanguage":return"Setting site language";case"setSiteOptions":return"Setting site options";case"unzip":return"Extracting ZIP file";case"wp-cli":return"Running WP-CLI";case"writeFiles":return"Writing files"}return nt(e)}function so(e,t){switch(e.type){case"applyContentBaseline":return[{step:"resetData",contentTypes:io(e.contentBaseline)}];case"applyUsersBaseline":return oo();case"defineWpConfigConsts":return[{step:"defineWpConfigConsts",consts:e.consts}];case"setSiteOptions":return[{step:"setSiteOptions",options:e.options}];case"installTheme":return[ms(e.theme,e.active)];case"installPlugin":return[ds(e.plugin)];case"installMuPlugin":return fo(e.muPlugin,e.sourcePath);case"installFonts":return go(e.fonts,t);case"importMedia":return cs([e.media],e.sourcePath,t);case"defineRoles":return[yo(e.roles)];case"defineUsers":return[ho(e.users)];case"definePostTypes":return mo(e.postTypes);case"importContent":return fs(e.content,e.sourcePath,t);case"setSiteLanguage":return[{step:"setSiteLanguage",language:e.language}];case"runStep":return ao(e.step,e.sourcePath,t);default:return}}function io(e){const t=us(e);return ot.filter(o=>!t.includes(o))}function us(e){return e==="keep-all"?ot:e==="empty"?[]:ut(e)}function oo(){return[{step:"runPHP",code:`<?php
1038
1038
  require '/wordpress/wp-load.php';
1039
1039
  require_once ABSPATH . 'wp-admin/includes/user.php';
1040
1040
 
package/index.js CHANGED
@@ -14574,7 +14574,7 @@ function Gi(e) {
14574
14574
  }
14575
14575
  async function $n(e) {
14576
14576
  if (Qi(e)) {
14577
- const { validateBlueprintV2Declaration: t } = await import("./validate-blueprint-v2-C3rgpKFU.js");
14577
+ const { validateBlueprintV2Declaration: t } = await import("./validate-blueprint-v2-IqJfvfcL.js");
14578
14578
  return t(e);
14579
14579
  }
14580
14580
  return Ct(e);
@@ -14595,7 +14595,7 @@ async function Ut(e, t = "create-new-site", o) {
14595
14595
  var r, u;
14596
14596
  if (!ro(e))
14597
14597
  throw new Error("Expected a Blueprint v2 declaration.");
14598
- const { assertValidBlueprintV2Declaration: n } = await import("./validate-blueprint-v2-C3rgpKFU.js");
14598
+ const { assertValidBlueprintV2Declaration: n } = await import("./validate-blueprint-v2-IqJfvfcL.js");
14599
14599
  n(e), o == null || o(e);
14600
14600
  const l = (r = e.applicationOptions) == null ? void 0 : r["wordpress-playground"], s = await oo(
14601
14601
  e,
@@ -14939,7 +14939,7 @@ async function go(e, t = {}) {
14939
14939
  };
14940
14940
  }
14941
14941
  async function kn(e, t = {}) {
14942
- const { assertValidBlueprintV2Declaration: o } = await import("./validate-blueprint-v2-C3rgpKFU.js");
14942
+ const { assertValidBlueprintV2Declaration: o } = await import("./validate-blueprint-v2-IqJfvfcL.js");
14943
14943
  o(e);
14944
14944
  const n = Ko(
14945
14945
  e.wordpressVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "3.1.45",
3
+ "version": "3.1.46",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./index.js",
@@ -25,22 +25,22 @@
25
25
  "access": "public",
26
26
  "directory": "../../../dist/packages/playground/blueprints"
27
27
  },
28
- "gitHead": "d8132e032daf7c1ac2fd568af48444d84a59ced2",
28
+ "gitHead": "581c7c172428159eb4e6c5309054a568cd39a97a",
29
29
  "engines": {
30
30
  "node": ">=20.10.0",
31
31
  "npm": ">=10.2.3"
32
32
  },
33
33
  "dependencies": {
34
34
  "ajv": "8.18.0",
35
- "@php-wasm/universal": "3.1.45",
36
- "@wp-playground/storage": "3.1.45",
37
- "@php-wasm/util": "3.1.45",
38
- "@php-wasm/logger": "3.1.45",
39
- "@wp-playground/wordpress": "3.1.45",
40
- "@php-wasm/progress": "3.1.45",
41
- "@wp-playground/common": "3.1.45",
42
- "@php-wasm/web-service-worker": "3.1.45",
43
- "@php-wasm/stream-compression": "3.1.45"
35
+ "@php-wasm/universal": "3.1.46",
36
+ "@wp-playground/storage": "3.1.46",
37
+ "@php-wasm/util": "3.1.46",
38
+ "@php-wasm/logger": "3.1.46",
39
+ "@wp-playground/wordpress": "3.1.46",
40
+ "@php-wasm/progress": "3.1.46",
41
+ "@wp-playground/common": "3.1.46",
42
+ "@php-wasm/web-service-worker": "3.1.46",
43
+ "@php-wasm/stream-compression": "3.1.46"
44
44
  },
45
45
  "packageManager": "npm@10.9.2",
46
46
  "overrides": {