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
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1081,6 +1081,17 @@ Current bundles include:
1081
1081
-`files/diffs/<mount>.patch`: unified text diff from the mount baseline (a seeded baseline directory, or the git `HEAD` of a git work-tree mount) to the sandbox output.
1082
1082
-`files/mounts/<index>/...`: copied file contents from readwrite mounts.
1083
1083
1084
+
Recipes that import a generated site into a clean runtime can export replay evidence before final artifact collection with a workflow step:
The step writes `files/replay-package/manifest.json`, `blueprint.after.json`, `blueprint.after-notes.json`, and `files/runtime-snapshot.json` under the runtime artifact root. Its stdout is a `wp-codebox/wordpress-replay-export/v1` envelope with `importMs`, `materializeMs`, `snapshotMs`, `exportMs`, `databaseTables`, `wpContentFiles`, `snapshotBytes`, and `blueprintBytes`. The exported `blueprint.after.json` keeps the runtime snapshot as a referenced package file instead of embedding the full snapshot as one large `runPHP` string.
1094
+
1084
1095
`metadata.json` points to the canonical changed-files, patch, test-results, review, and mount-diff artifact paths under `artifacts`. It also includes `provenance` derived from data WP Codebox already has: task input/context where available, WP Codebox runtime version, WordPress version, mounted component/mount metadata, and agent/provider/model fields passed to the sandbox runner. `files/diffs/<mount>.patch` remains available for per-mount detail; `files/patch.diff` is the combined review/apply-back patch surface.
description: "Export the current imported WordPress runtime as a replay package with a compact blueprint, external runtime snapshot, notes, manifest, and metrics.",
69
+
acceptedArgs: [
70
+
{name: "label",description: "Optional human-readable export label recorded in the command output and package source metadata.",format: "string"},
71
+
{name: "output-dir",description: "Optional package directory relative to the runtime artifact root; defaults to files/replay-package.",format: "relative path"},
72
+
{name: "landing-page",description: "Optional replay landing page recorded in blueprint.after.json.",format: "path"},
73
+
{name: "import-ms",description: "Optional importer duration supplied by the caller so replay export metrics can include the preceding import phase.",format: "non-negative integer"},
74
+
],
75
+
outputShape: "wp-codebox/wordpress-replay-export/v1 JSON with import/materialization/snapshot/export metrics and manifest, blueprint.after.json, blueprint.after-notes.json, and files/runtime-snapshot.json artifact paths.",
76
+
policyRequirement: "Runtime policy commands must include wordpress.export-replay-package.",
0 commit comments