Remove edge gateway components and templates associated with outdated workflows.

This commit is contained in:
Jeppe Bundgaard
2026-04-20 14:51:53 +02:00
parent 5d30690dfd
commit 1a784bbbfd
79 changed files with 7228 additions and 6241 deletions
+186
View File
@@ -0,0 +1,186 @@
{
"version": 1,
"snapshot_of": "front-end-vue",
"projects": {
"front-end-vue": {
"display_name": "Truckwash Frontend",
"relative_root": ".",
"commands": {
"setup": {
"default": "npm ci\nnpx playwright install"
},
"run": {
"default": "npm run dev"
},
"test_unit": {
"default": "npm run test:unit"
},
"test_e2e": {
"default": "npm run test:e2e:smoke"
},
"test_full": {
"default": "npm run test:e2e:ci"
},
"debug": {
"default": "npx playwright test --debug"
}
},
"codex_environment": {
"name": "pleno-vue",
"actions": [
{
"name": "Run dev",
"icon": "run",
"command_id": "run"
},
{
"name": "Vitest unit tests",
"icon": "test",
"command_id": "test_unit"
},
{
"name": "Playwright smoke",
"icon": "test",
"command_id": "test_e2e"
},
{
"name": "Playwright full suite",
"icon": "test",
"command_id": "test_full"
},
{
"name": "Playwright debug",
"icon": "debug",
"command_id": "debug"
},
{
"name": "AI workflow check",
"icon": "debug",
"literal_command": {
"default": "node scripts/sync-ai-workflow.mjs --check"
}
}
]
},
"generated_content": {
"aiassistant_tests_lines": [
"# Frontend Testing Rules",
"",
"These rules apply to Vue changes, browser flows, and frontend test updates.",
"",
"1. Add or update tests for every new feature, bug fix, API integration change, or auth, booking, POS, or i18n workflow change.",
"2. Browser validation runs through Playwright. Legacy browser-driver tooling is outside the supported workflow.",
"3. Use `npm run test:unit` for Vitest coverage of isolated logic and component behavior.",
"4. Use `npm run test:e2e:smoke` for the narrow Playwright browser pass on changed user flows.",
"5. Use `npm run test:e2e:ci` when a change affects shared navigation, authentication, release-critical flows, or multiple browser projects.",
"6. Use `npx playwright test --debug` for interactive debugging and trace capture.",
"7. Prefer stable selectors, explicit fixtures, and assertions about user-visible behavior.",
"8. Avoid manual sleeps. Let Playwright waiting and expectations drive synchronization.",
"9. If a bug fix needs a browser regression test, prove the failure first and then keep the test with the fix.",
"",
"Canonical workflow reference: `.ai-workflow/workflow.md`."
],
"junie_lines": [
"# Truckwash Frontend Development Guidelines",
"",
"This file is generated from the canonical AI workflow and is the supported Junie-facing reference for the frontend repository.",
"",
"## Build And Run",
"",
"- Setup: `npm ci` and `npx playwright install`.",
"- Start development server: `npm run dev`.",
"- Production build sanity check: `npm run build`.",
"",
"## Testing",
"",
"- Vitest unit tests: `npm run test:unit`.",
"- Playwright smoke: `npm run test:e2e:smoke`.",
"- Playwright full suite: `npm run test:e2e:ci`.",
"- Playwright debug: `npx playwright test --debug`.",
"- Browser validation is Playwright-first. Legacy browser-driver tooling is not part of the supported workflow.",
"",
"## Workflow Notes",
"",
"- Generated assistant metadata is checked with `node scripts/sync-ai-workflow.mjs --check`.",
"- Keep frontend browser verification aligned with the existing Playwright projects and runner scripts in `package.json`.",
"- Use the narrowest relevant test command first, then expand to the broader suite when the change risk requires it.",
"",
"Canonical workflow reference: `.ai-workflow/workflow.md`."
]
}
}
},
"assistants": {
"codex": {
"description": "Codex environment files and actions."
},
"aiassistant": {
"description": "Project-specific AI Assistant rules."
},
"junie": {
"description": "Project-specific Junie guidance."
},
"copilot": {
"description": "Standardized Copilot task dispatch workflow."
}
},
"commands": {
"setup": {
"description": "Install dependencies and prepare the supported local environment."
},
"run": {
"description": "Start the primary local development entrypoint for the project."
},
"test_unit": {
"description": "Run the project's narrow unit-style verification command."
},
"test_e2e": {
"description": "Run the project's targeted browser or end-to-end verification command."
},
"test_full": {
"description": "Run the broader high-confidence verification command when the project defines one."
},
"debug": {
"description": "Run the supported debug entrypoint."
}
},
"generated_outputs": [
{
"id": "frontend_codex_environment",
"template": "codex_project_environment",
"project": "front-end-vue",
"path": ".codex/environments/environment.toml"
},
{
"id": "frontend_aiassistant_tests",
"template": "aiassistant_frontend_tests_rule",
"project": "front-end-vue",
"path": ".aiassistant/rules/Creating and maintaining tests.md"
},
{
"id": "frontend_junie_guidelines",
"template": "junie_frontend_guidelines",
"project": "front-end-vue",
"path": ".junie/guidelines.md"
}
],
"sync_targets": {
"front-end-vue": {
"source_root": ".",
"destination": "C:\\Users\\2jepp\\WebstormProjects\\pleno-vue",
"supported_metadata_dirs": [
".codex",
".aiassistant",
".junie",
".github",
".ai-workflow",
"scripts"
]
}
},
"unsupported": {
"mcp": [
"front-end-vue/.ai/mcp/mcp.json"
]
}
}
+74
View File
@@ -0,0 +1,74 @@
<!-- AUTOGENERATED SNAPSHOT for front-end-vue: refresh from the canonical workspace with `node scripts/sync-ai-workflow.mjs --write`. -->
# Developer AI Workflow
This directory is the canonical source of truth for the repository's developer-facing AI workflow.
## Goals
- Keep Codex, AI Assistant, Junie, and Copilot aligned from one maintained source.
- Make assistant metadata deterministic so the generated files can be rewritten safely and checked in CI.
- Preserve the current mirror-repo workflow for `backend-php` and `front-end-vue`.
- Keep all changes in this workflow scoped to developer tooling and documentation. Runtime OpenAI features stay out of scope.
## Supported Assistants
- `Codex`: local environments and actions under `.codex/environments`.
- `AI Assistant`: generated guidance under `.aiassistant/rules`.
- `Junie`: generated project guidance under `.junie/guidelines.md`.
- `Copilot`: standardized issue-dispatch workflow content under `.github/workflows/copilot.yml`.
## Global Rules
1. Change only `.ai-workflow/workflow.md` and `.ai-workflow/manifest.json` when updating the developer AI workflow.
2. Regenerate all derived files with `node scripts/sync-ai-workflow.mjs --write`.
3. Validate drift with `node scripts/sync-ai-workflow.mjs --check`.
4. Generated assistant files are not hand-edited.
5. Unsupported surfaces stay unsupported until they have a real owner and a real config.
6. `front-end-vue/.ai/mcp/mcp.json` is intentionally unsupported and should not be recreated until there is an actual MCP integration to maintain.
## Command Matrix
### `backend-php`
- Setup: use the existing setup scripts in `backend-php/scripts`.
- Run: start the API stack with `traefik`, `redis`, `mysql-debug`, `php1`, and `caddy`.
- Debug: tail `php1` logs.
- PHP verification: always run backend validation in the `php1` container.
- Unit tests: `docker compose exec -T php1 sh -lc "cd /var/www/html && composer test:unit"`.
- Integration tests: `docker compose exec -T php1 sh -lc "cd /var/www/html && composer test:integration"`.
- API tests: `docker compose exec -T php1 sh -lc "cd /var/www/html && composer test:api"`.
### `front-end-vue`
- Setup: `npm ci` and `npx playwright install`.
- Run: `npm run dev`.
- Unit tests: `npm run test:unit` with Vitest.
- Browser smoke: `npm run test:e2e:smoke`.
- Browser full suite: `npm run test:e2e:ci`.
- Debug: `npx playwright test --debug`.
- Browser validation is Playwright-first. WebdriverIO and Appium are not part of the supported workflow.
### `automation`
- Setup: `npm ci` and `npx playwright install`.
- Run: `npx playwright test --ui`.
- Browser tests: `npx playwright test`.
- Debug: `npx playwright test --debug`.
## Mirror Repos And Sync
- `backend-php` mirrors to `C:\Users\2jepp\PhpstormProjects\api`.
- `front-end-vue` mirrors to `C:\Users\2jepp\WebstormProjects\pleno-vue`.
- Supported metadata directories that must stay mirrored are `.codex`, `.aiassistant`, `.junie`, `.github`, generated `.ai-workflow`, and `scripts/sync-ai-workflow.mjs`.
- Cache and build directories remain excluded from the watcher.
- The mirror repos receive generated snapshots of `.ai-workflow` and `scripts/sync-ai-workflow.mjs` so their local CI can run `--check` without depending on the combined workspace root.
## Generated Outputs
- Root Codex environment for combined backend and frontend entrypoints.
- Backend and frontend Codex environments.
- Backend and frontend AI Assistant guidance.
- Backend and frontend Junie guidance.
- Backend Copilot dispatcher workflow.
- Backend and frontend snapshot copies of `.ai-workflow` plus `scripts/sync-ai-workflow.mjs` for mirrored repositories.