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
{name: "post-id",description: "Existing post ID to open in the post editor.",format: "positive integer"},
1283
1283
{name: "post-type",description: "Post type for post-new or post-id targets; defaults to post.",format: "post type slug"},
1284
1284
{name: "url",description: "Explicit editor path or absolute URL to open instead of resolving a target.",format: "path or URL"},
1285
-
{name: "steps-json",description: "Ordered editor action script: open, waitForReady, insertBlock, selectBlock, savePost, and inspectState. savePost uses Gutenberg core/editor.savePost and reports typed editorSave diagnostics.",required: true,format: "JSON array (inline or @<path>)"},
1285
+
{name: "steps-json",description: "Ordered typed editor action script. Block targets resolve by exactly one clientId, root index, or numeric path. Supports insert/select, attribute update, remove/move/duplicate/replace, inner-block replacement, undo/redo, reload/reopen, save, and inspect. Clipboard actions are explicitly unsupported because this runtime has no deterministic clipboard contract.",required: true,format: "JSON array (inline or @<path>)"},
1286
1286
{name: "wait-selector",description: "Selector that marks the editor as ready; defaults to the block editor shell.",format: "CSS selector"},
1287
1287
{name: "wait-timeout",description: "Timeout for navigation and editor-ready waits.",format: "duration, e.g. 15s or 500ms"},
1288
1288
{name: "step-timeout",description: "Per-action timeout applied to each editor action step.",format: "duration, e.g. 15s or 500ms"},
1289
1289
{name: "timeout",description: "Total-script timeout bounding the whole editor action run.",format: "duration, e.g. 30s or 1500ms"},
1290
1290
{name: "capture",description: "Comma-separated artifacts to capture after actions.",format: "steps,console,errors,html,screenshot,editor-state,editor-validity"},
1291
1291
],
1292
-
outputShape: "JSON summary plus files/browser/editor-action-steps.jsonl, editor-action-summary.json, editor-action-state.json, optional editor-action-validity.json, and optional console/errors/html/screenshot artifacts.",
thrownewError(`wordpress.editor-actions steps-json[${index}] target must be a non-empty clientId, non-negative index, or non-empty path of non-negative indexes`)
if(!value||typeofvalue!=="object"||Array.isArray(value))thrownewError(`wordpress.editor-actions steps-json[${index}].${field} must be an object`)
320
+
constinput=valueasRecord<string,unknown>
321
+
if(typeofinput.name!=="string"||input.name.length===0)thrownewError(`wordpress.editor-actions steps-json[${index}].${field}.name must be a block name string`)
if(input.innerBlocks!==undefined&&!Array.isArray(input.innerBlocks))thrownewError(`wordpress.editor-actions steps-json[${index}].${field}.innerBlocks must be a JSON array`)
0 commit comments