You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'description' => 'Prepare a WP Codebox browser sandbox session without requiring the host to run the WP Codebox CLI or Node.',
83
+
'description' => 'Prepare a WP Codebox browser sandbox session without requiring the host to run the WP Codebox CLI or Node. Set preview_only to prepare an editable runtime without an agent task runner.',
Copy file name to clipboardExpand all lines: packages/wordpress-plugin/src/trait-wp-codebox-abilities-schemas.php
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -287,6 +287,7 @@ private static function browser_playground_session_schema(): array {
287
287
'type' => 'object',
288
288
'properties' => array(
289
289
'success' => array( 'type' => 'boolean' ),
290
+
'preview_only' => array( 'type' => 'boolean' ),
290
291
'schema' => array( 'type' => 'string' ),
291
292
'execution' => array(
292
293
'type' => 'string',
@@ -419,6 +420,7 @@ private static function browser_product_dto_schema(): array {
419
420
'description' => 'Compact product-facing browser task/session DTO for durable product records and REST responses. It exposes stable ids, preview refs, artifact refs, status, and compact diagnostics while omitting raw playground, runtime, recipe, task payload, sandbox path, and implementation diagnostic contracts.',
'agent' => self::string_property_schema( $detailed ? 'Codebox agent runtime id for the browser sandbox.' : '' ),
@@ -1050,6 +1052,15 @@ private static function browser_task_input_properties( array $task_input_schema,
1050
1052
'description' => 'Optional debug fields for diagnostics. Public callers receive the stable product DTO envelope.',
1051
1053
),
1052
1054
);
1055
+
if ( $detailed ) {
1056
+
$properties['preview_only'] = array(
1057
+
'type' => 'boolean',
1058
+
'default' => false,
1059
+
'description' => 'When true, prepare an editable browser preview runtime without resolving agent/provider inheritance or appending the task runner recipe.',
0 commit comments