diff --git a/CHANGELOG.md b/CHANGELOG.md index 9243d13..e003a1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,11 +18,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Added - **Native `.wpcignore` support in WPCC** — `check-performance.sh` now loads gitignore-style patterns from a `.wpcignore` file and filters the PHP file list before scanning. Auto-detects `.wpcignore` in the scan target directory or current working directory. Supports directory patterns (`tools/`), extension globs (`*.min.js`), and literal substring matches. New flags: `--wpcignore-file ` for explicit file, `--no-wpcignore` to disable. Unblocks repo-wide scanning without false positives from embedded tools, temp files, and vendor directories. - **VS Code extension dynamic MCP discovery (v0.2.0)** — the extension's MCP server definition provider now merges configs from 5 layers (static AI-DDTK fallback, workspace `.mcp.json`, `.vscode/mcp.json`, `.mcp.local.json`, `temp/mcp/local-snippets/*.json`) with file watchers for live re-discovery. Site-specific WP MCP Adapter servers are automatically provided to all VS Code MCP clients without manual wiring or restart. -- **`experimental/end-of-day.sh` — solo developer session cleanup script** — automated script for end-of-work synchronization. Checks 4X4.md, CHANGELOG.md, and MEMORY.md freshness; archives session-scoped MEMORY.md to `PROJECT/1-INBOX/MEMORY-.md` for clean sessions. Supports `--commit` (with confirmation), `--push` (implies commit, with confirmation), `--force` (skip prompts for automation), `--dry-run`, and agent hook integration for orchestration. Default mode reports findings only; opt-in flags enable commit/push. Includes build validation (PHP syntax check) and structured event emission for agent coordination. -- **MCP tool: `end_of_day_session_cleanup`** — expose end-of-day.sh as a typed MCP tool (v0.9.0). Agents can call `end_of_day_session_cleanup` with `mode` (report/commit/push), `dryRun`, `force`, `skipValidation` flags. Returns structured check results (4X4.md, CHANGELOG.md, MEMORY.md, build validation), git state (branch, modified files, untracked), and command exit code. Enables VS Code agents to orchestrate session cleanup without shell escaping. +- **`experimental/post-flight.sh` — solo developer post-flight session cleanup script** — automated script for post-session synchronization. Checks 4X4.md, CHANGELOG.md, and MEMORY.md freshness; archives session-scoped MEMORY.md to `PROJECT/1-INBOX/MEMORY-.md` for clean sessions. Supports `--commit` (with confirmation), `--push` (implies commit, with confirmation), `--force` (skip prompts for automation), `--dry-run`, and agent hook integration for orchestration. Default mode reports findings only; opt-in flags enable commit/push. Includes build validation (PHP syntax check) and structured event emission for agent coordination. +- **MCP tool: `post_flight_session_cleanup`** — expose post-flight.sh as a typed MCP tool (v0.9.0). Agents can call `post_flight_session_cleanup` with `mode` (report/commit/push), `dryRun`, `force`, `skipValidation` flags. Returns structured check results (4X4.md, CHANGELOG.md, MEMORY.md, build validation), git state (branch, modified files, untracked), and command exit code. Enables VS Code agents to orchestrate session cleanup without shell escaping. ### Changed -- **`end-of-day.sh` pluggable build validation** — `validate_build()` now auto-detects and runs PHP syntax checks (up to 200 files), `npm run build` (if `package.json` has a `build` script), and `composer validate` (if `composer.json` exists). Skips gracefully when no validators are detected. Previously only checked a single hardcoded PHP file. MCP handler updated to capture per-validator results. +- **`post-flight.sh` pluggable build validation** — `validate_build()` now auto-detects and runs PHP syntax checks (up to 200 files), `npm run build` (if `package.json` has a `build` script), and `composer validate` (if `composer.json` exists). Skips gracefully when no validators are detected. Previously only checked a single hardcoded PHP file. MCP handler updated to capture per-validator results. - **`servers-audit.sh` and `servers-preflight.sh` promoted to `tools/`** — moved from `experimental/` to `tools/` alongside `servers.md` template. These scripts have received 4+ consecutive hardening releases (Launchd plist parsing, KeepAlive detection, expanded TLD coverage, Valet site discovery) and are no longer experimental. Internal path references (`$SCRIPT_DIR`) are relative and required no changes. CLI-REFERENCE.md updated with new sections for both scripts. ## [1.8.6] - 2026-04-05 diff --git a/PROJECT/1-INBOX/P1-END-OF-DAY.md b/PROJECT/1-INBOX/P1-POST-FLIGHT.md similarity index 90% rename from PROJECT/1-INBOX/P1-END-OF-DAY.md rename to PROJECT/1-INBOX/P1-POST-FLIGHT.md index 6beb85f..821fc2e 100644 --- a/PROJECT/1-INBOX/P1-END-OF-DAY.md +++ b/PROJECT/1-INBOX/P1-POST-FLIGHT.md @@ -1,10 +1,10 @@ -# End-of-Day Session Cleanup Script +# Post-Flight Session Cleanup Script ## Overview **Status**: ✅ DRAFT COMPLETE -**Location**: `experimental/end-of-day.sh` -**Purpose**: Solo developer session cleanup — ensures 4X4.md, CHANGELOG.md, MEMORY.md are synced, optionally commits and pushes. +**Location**: `experimental/post-flight.sh` +**Purpose**: Solo developer post-flight session cleanup — ensures 4X4.md, CHANGELOG.md, MEMORY.md are synced, optionally commits and pushes. --- @@ -20,7 +20,7 @@ The original analysis included pushback on auto-commit/push risks. However, for --- -## Analysis & Feedback on "end-of-day" Script +## Analysis & Feedback on "post-flight" Script **Good idea.** This addresses a real friction point. But let me push back on scope and add some nuances based on what `servers-preflight.sh` and `servers-audit.sh` do well. @@ -83,13 +83,13 @@ Check: ```bash #!/usr/bin/env bash -# end-of-day.sh — Session cleanup & doc synchronization +# post-flight.sh — Session cleanup & doc synchronization # -# Ensures 4X4.md, CHANGELOG.md, MEMORY.md are synced before close-of-day. +# Ensures 4X4.md, CHANGELOG.md, MEMORY.md are synced after session. # Reports findings, suggests fixes, but does NOT auto-commit/push unless --auto-commit. # # Usage: -# end-of-day.sh [--auto-commit] [--push] [--no-validate] [--hook