Skip to content

Commit b5643cb

Browse files
committed
chore: commit all staged changes (2025-12-19)
1 parent cec931d commit b5643cb

File tree

135 files changed

+6570
-6830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+6570
-6830
lines changed

.babelrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": [ "@wordpress/babel-preset-default" ]
2+
"presets": ["@wordpress/babel-preset-default"]
33
}

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"[php]": {
3535
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
3636
},
37-
"eslint.validate": [ "javascript", "javascriptreact" ],
38-
"stylelint.validate": [ "css", "scss", "postcss" ],
37+
"eslint.validate": ["javascript", "javascriptreact"],
38+
"stylelint.validate": ["css", "scss", "postcss"],
3939
"files.associations": {
4040
"*.php": "php",
4141
"*.html": "html"
@@ -49,7 +49,7 @@
4949
}
5050
},
5151

52-
"forwardPorts": [ 8080, 8443, 3306 ],
52+
"forwardPorts": [8080, 8443, 3306],
5353

5454
"postCreateCommand": "npm ci && composer install",
5555

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ module.exports = {
1212
'eslint:recommended',
1313
'prettier',
1414
],
15-
plugins: [ 'jest' ],
15+
plugins: ['jest'],
1616
overrides: [
1717
{
18-
files: [ 'tests/**/*.js' ],
18+
files: ['tests/**/*.js'],
1919
env: {
2020
jest: true,
2121
},

.github/agents/release-scaffold.agent.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ metadata:
2424

2525
## Wizard Integration & Advanced Features
2626

27-
This agent is tightly integrated with the **Release Scaffold Wizard** defined in `.github/prompts/create-release-scaffold.prompt.md` and implemented via `scripts/lib/wizard.js`.
27+
This agent is tightly integrated with the **Release Scaffold Wizard** defined in `.github/prompts/release-scaffold.prompt.md` and implemented via `scripts/lib/wizard.js`.
2828

29-
- **Wizard Prompt:** All release-scaffold processes must use the wizard steps and config schema defined in `.github/prompts/create-release-scaffold.prompt.md`.
29+
- **Wizard Prompts:** All release-scaffold processes must use the canonical prompts:
30+
- `.github/prompts/release-scaffold.prompt.md` (main release wizard)
31+
- `.github/prompts/pre-release-scaffold-validation.prompt.md` (pre-release validation)
32+
- **Wizard Steps:** All wizard steps and config schema are now defined in `release-scaffold.prompt.md`. Do not reference or use `create-release-scaffold.prompt.md`—it has been merged.
3033
- **Wizard Interface:** Supports CLI, JSON, ENV, mock, and other interfaces as defined in `scripts/lib/wizard.js`.
3134
- **Mustache Placeholder Protection:** Never strip or replace `{{mustache}}` placeholders in the scaffold repository. Placeholders are only replaced during theme generation, not in the scaffold itself. Validate placeholder presence before every release.
3235
- **Conditional Logic:** Prompts for advanced checks (e.g., smoke test, schema validation) only if enabled in config or by user input.
@@ -35,7 +38,7 @@ This agent is tightly integrated with the **Release Scaffold Wizard** defined in
3538
- **Validation & Error Recovery:** Each step validates its outcome (e.g., placeholder integrity, version alignment). If a check fails, the wizard reports the error, suggests fixes, and can re-run after correction.
3639
- **Explicit Mapping:** Each wizard step maps to a config schema field and release check (see wizard prompt).
3740

38-
See `.github/prompts/create-release-scaffold.prompt.md` for the canonical wizard steps and config schema.
41+
See `.github/prompts/release-scaffold.prompt.md` and `.github/prompts/pre-release-scaffold-validation.prompt.md` for the canonical prompts and wizard steps.
3942

4043
### Example: Using a Config File
4144

@@ -82,6 +85,33 @@ This agent covers scaffold **pre-release preparation**:
8285
5. Optional generation smoke test to confirm placeholders replace correctly
8386
6. Release readiness reporting (no git pushes, tags, or merges)
8487

88+
## Modes: Pre-Release Validation vs. Full Release
89+
90+
The release-scaffold agent supports two primary modes, each with its own prompt and workflow:
91+
92+
### 1. Pre-Release Validation Mode
93+
94+
- **Prompt:** `.github/prompts/pre-release-scaffold-validation.prompt.md`
95+
- **How to select:** Use the wizard mode selector, or pass `--validation`/`--validate` on the CLI.
96+
- **What it does:**
97+
- Runs all validation steps: placeholder checks, version alignment, schema validation, dry-run lint/format/test, documentation checks, generation smoke test, and security audit.
98+
- **Does not** update the changelog, stage/commit changes, or perform any release actions.
99+
- Produces a readiness report only. No files are modified.
100+
101+
### 2. Full Release Mode
102+
103+
- **Prompt:** `.github/prompts/release-scaffold.prompt.md`
104+
- **How to select:** Use the wizard mode selector, or run without validation flags (default).
105+
- **What it does:**
106+
- Runs all validation steps as above.
107+
- Updates the `CHANGELOG.md` with a new release entry if needed.
108+
- Stages all changes, runs husky pre-commit hooks, and commits changes to git.
109+
- Produces a readiness report and prepares the repository for release.
110+
111+
The agent uses `scripts/utils/mode-detector.js` to determine the mode and `scripts/utils/logger.js` for structured logging.
112+
113+
---
114+
85115
## Workflow
86116

87117
1. **Confirm target version** from `VERSION`.

.github/instructions/block-json.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "WordPress block.json Schema",
33
"type": "object",
4-
"required": [ "name" ],
4+
"required": ["name"],
55
"properties": {
66
"$schema": {
77
"type": "string"

.github/instructions/release-scaffold.instructions.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,34 @@ lastUpdated: "2025-12-12"
88

99
# Release Scaffold Instructions
1010

11-
You are a scaffold release assistant. Follow our block-theme scaffold frameworks to maintain the release prompts, docs, and automation that ship with the scaffold. Avoid applying generated-theme release steps here or stripping required mustache placeholders used in downstream theme generation.
11+
You are a scaffold release assistant. Maintain only the canonical scaffold release prompts and automation:
12+
13+
- `.github/prompts/release-scaffold.prompt.md` (main release wizard prompt)
14+
- `.github/prompts/pre-release-scaffold-validation.prompt.md` (pre-release validation prompt)
15+
16+
All previous or alternate prompts (such as `create-release-scaffold.prompt.md`) have been merged into the above files. Do not reference or use `create-release-scaffold.prompt.md`—all wizard steps and release workflow logic now reside in `release-scaffold.prompt.md`.
1217

1318
## Overview
1419

15-
Use these instructions when updating the scaffold release prompt or related guidance in this repository. The goal is to keep the scaffold's release assets current without impacting the release process that runs in generated themes.
20+
Use these instructions when updating the scaffold release prompts or related guidance. The goal is to keep the scaffold's release assets current and avoid duplication or confusion with deprecated prompt files.
1621

1722
## General Rules
1823

1924
- Keep scaffold files templated: retain mustache variables needed by generated themes.
2025
- Scope changes to scaffold assets only; defer generated-theme steps to `release.instructions.md`.
2126
- Reference organisation coding, linting, and testing standards instead of redefining them.
2227
- Document any automation changes in the changelog and agent notes.
28+
- Use only `.github/prompts/release-scaffold.prompt.md` and `.github/prompts/pre-release-scaffold-validation.prompt.md` for all scaffold release and validation workflows.
2329

2430
## Scaffold vs Generated Themes
2531

26-
- **Scaffold artifacts**: `.github/prompts/release-scaffold.prompt.md`, `.github/agents/release-scaffold.agent.md`, and docs/RELEASE_PROCESS_SCAFFOLD.md.
32+
- **Scaffold artifacts**: `.github/prompts/release-scaffold.prompt.md`, `.github/prompts/pre-release-scaffold-validation.prompt.md`, `.github/agents/release-scaffold.agent.md`, and `docs/RELEASE_PROCESS_SCAFFOLD.md`.
2733
- **Generated theme artifacts**: use `.github/prompts/release.prompt.md` and `release.instructions.md` after placeholders are replaced.
2834
- Never copy scaffold-only files into generated theme releases; remind agents to remove them during generation.
2935

3036
## Detailed Guidance
3137

32-
- **Templates & Prompts**: Ensure prompts describe placeholder cleanup, version alignment, and dependency checks without hard-coding theme names.
38+
- **Templates & Prompts**: Ensure prompts describe placeholder cleanup, version alignment, and dependency checks without hard-coding theme names. All wizard steps for release are now in `release-scaffold.prompt.md`.
3339
- **Automation Hooks**: Align with `.github/workflows/block-theme-build-and-e2e.yml` for validation steps and keep command examples current.
3440
- **Changelog Notes**: When scaffold release behaviour changes, add concise entries to `CHANGELOG.md` under the scaffold section.
3541

.github/prompts/create-release-scaffold.prompt.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)