From 8a15c3c5d6591b7e40fea04352126e30d7407e55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 19 Apr 2026 18:28:28 +0200 Subject: [PATCH] docs: update openspec config with UI Common and CLI sub-projects MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix outdated monorepo structure (3 → 5 sub-projects), tech stack, architecture tree, and quality gates in openspec/config.yaml. --- openspec/config.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openspec/config.yaml b/openspec/config.yaml index 8c567059..3557d613 100644 --- a/openspec/config.yaml +++ b/openspec/config.yaml @@ -6,13 +6,17 @@ context: | charging stations based on the OCPP-J protocol as part of SAP e-Mobility solution. ## Monorepo Structure - Three sub-projects: + 4 TypeScript packages (pnpm workspace) + 1 Python project (Poetry): - Root Simulator (`/`): Node.js/TypeScript OCPP simulator + - UI Common (`/ui/common`): Shared TypeScript library (types, WebSocket client, utilities) + - CLI (`/ui/cli`): Command-line tool for managing the simulator (Commander.js, esbuild) - Web UI (`/ui/web`): Vue 3 + Vite dashboard - OCPP Mock Server (`/tests/ocpp-server`): Python OCPP 2.0.1 mock server ## Tech Stack - Simulator: Node.js >=22.0.0, TypeScript (strict), pnpm >=10.9.0, esbuild, Node.js native test runner + - UI Common: Node.js >=22.0.0, TypeScript, pnpm, source-only package (no build artifacts) + - CLI: Node.js >=22.0.0, TypeScript, pnpm, esbuild, Node.js native test runner - Web UI: Vue 3, Vite, Vitest - OCPP Server: Python >=3.12, Poetry >=2.0, pytest @@ -33,6 +37,8 @@ context: | - src/exception/: Error classes (BaseError, OCPPError) - tests/: Test files mirroring source structure - ui/web/: Vue 3 dashboard (independent sub-project) + - ui/common/: Shared TypeScript library for UI packages + - ui/cli/: CLI tool for simulator management - tests/ocpp-server/: Python OCPP mock server (independent sub-project) ## Key Conventions @@ -50,7 +56,9 @@ context: | ## Quality Gates - Simulator: pnpm format, pnpm typecheck, pnpm build, pnpm test - - Web UI (from ui/web/): pnpm format, pnpm build, pnpm test + - UI Common (from ui/common/): pnpm format, pnpm typecheck, pnpm test + - CLI (from ui/cli/): pnpm format, pnpm typecheck, pnpm build, pnpm test + - Web UI (from ui/web/): pnpm format, pnpm typecheck, pnpm build, pnpm test:coverage - OCPP Server (from tests/ocpp-server/): poetry run task format/lint/typecheck/test # Per-artifact rules (optional) -- 2.53.0