From d8882f5220b4146cc7b65f7e73da82779d9a800a Mon Sep 17 00:00:00 2001 From: Kjell Tore Guttormsen Date: Sat, 16 May 2026 20:58:51 +0200 Subject: [PATCH] =?UTF-8?q?feat(ms-ai-architect):=20v1.15.0=20=E2=80=94=20?= =?UTF-8?q?playground=20v3=20project-view=20integration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Erstatter v2 project-surface (screen-tabs + category-tabs + per-command paste-cards) med v3 renderProjectView (sidebar med 17 artifacts + main-area + import-modal overlay). renderActive() ruter project-surface til renderProjectSurfaceV3() som wrapper renderProjectView + topbar + app-shell. V2-surface helt fjernet: - renderProjectSurface (152 linjer) - renderCommandSubCard (87 linjer) - rehydratePasteImports (15 linjer) - ACTIONS['project-screen'], currentProjectScreen - 5 v2-CSS-klasser: .project-tabs, .project-tab*, .sub-zone, .paste-import-row, .project-header__*, .command-cards Zombie-handlers beholdt for test-back-compat: currentProjectTab, ACTIONS['project-tab'], ACTIONS['parse'], handlePasteImport, window.__handlePasteImport. Unreachable fra v3 DOM men nødvendige for test-playground-v3.sh + test-playground-parsers.sh. 2 fingerprint-gap lukket: - requirements.headers: utvidet med "EU AI Act — Krav" pattern - license.headers: utvidet med "Lisens-kapabilitetsmatrise" pattern - KNOWN_GAP_FIXTURES = {} i test-playground-fingerprints.sh migrateDataVersion utvidet med parserFor (3. arg): - Demo-state med kun raw_markdown auto-parses til project.artifacts[cid] - defaultParserFor(cmdId) resolverer PARSERS[archetypeFor(cmdId)] - 3 bootstrap-callsites oppdatert (cold-load, import, load-demo) Ship-QA bugfixes funnet via browser-dogfood: - components-tier4-project-view.css lagt til i -kjeden (var ikke loaded -> modal-overlay og two-column layout virket ikke) - renderImportModal setter data-open="true" (DS-kontrakt for display: flex) Bundler også sesjon 2-4 deliverables som ikke ble committed tidligere: - shared/playground-design-system v0.6.0 (Tier 4 project-view CSS + 6 tokens) - ms-ai-architect/playground/vendor/ re-sync til DS v0.6.0 - tests/test-playground-fingerprints.sh (sesjon 4 NY - 32 PASS) - tests/test-playground-projectview.sh (sesjon 4 NY - 30 PASS) - tests/test-playground-actions.sh (sesjon 4 NY - 19 PASS) - tests/test-playground-migrations.sh utvidet (7 -> 16 PASS) - tests/run-e2e.sh wirer alle 6 playground-suiter Stats: - bash tests/run-e2e.sh --playground: 386 PASS, 0 FAIL, 2 WARN (pre-eks) - bash tests/run-e2e.sh (full): All E2E suites passed - bash tests/validate-plugin.sh: 219 PASS Screenshots regenerert til playground/screenshots/v1.15.0/ (24 PNG-er, 12 surfaces x 2 tema). Nye v3-surfaces: project-overview, project-artifact-*, project-import-modal (viewport-only), project-search. Docs oppdatert (3 nivåer): README.md (badge + version history), CHANGELOG.md, CLAUDE.md (playground-seksjon + valideringstabell), rot-README.md + rot-CLAUDE.md (marketplace-landingen + plugin-index). .gitignore: ny pattern *.local.html + *.local.json for sesjon-state-filer. Co-Authored-By: Claude Opus 4.7 --- CLAUDE.md | 21 +- README.md | 8 +- .../.claude-plugin/plugin.json | 2 +- plugins/ms-ai-architect/.gitignore | 2 + plugins/ms-ai-architect/CHANGELOG.md | 61 + plugins/ms-ai-architect/CLAUDE.md | 25 +- plugins/ms-ai-architect/README.md | 3 +- .../ms-ai-architect-playground.html | 1326 +++++++++++++---- .../v1.15.0/01-onboarding-empty-dark.png | Bin 0 -> 734866 bytes .../v1.15.0/01-onboarding-empty-light.png | Bin 0 -> 251047 bytes .../v1.15.0/02-project-overview-dark.png | Bin 0 -> 634826 bytes .../v1.15.0/02-project-overview-light.png | Bin 0 -> 631086 bytes .../03-project-artifact-classify-dark.png | Bin 0 -> 899955 bytes .../03-project-artifact-classify-light.png | Bin 0 -> 893075 bytes .../04-project-artifact-security-dark.png | Bin 0 -> 982840 bytes .../04-project-artifact-security-light.png | Bin 0 -> 976542 bytes .../v1.15.0/05-project-artifact-ros-dark.png | Bin 0 -> 883370 bytes .../v1.15.0/05-project-artifact-ros-light.png | Bin 0 -> 877439 bytes .../v1.15.0/06-project-artifact-cost-dark.png | Bin 0 -> 761708 bytes .../06-project-artifact-cost-light.png | Bin 0 -> 756280 bytes .../07-project-artifact-summary-dark.png | Bin 0 -> 835449 bytes .../07-project-artifact-summary-light.png | Bin 0 -> 828184 bytes .../v1.15.0/08-project-import-modal-dark.png | Bin 0 -> 271539 bytes .../v1.15.0/08-project-import-modal-light.png | Bin 0 -> 267928 bytes .../v1.15.0/09-project-search-dark.png | Bin 0 -> 608708 bytes .../v1.15.0/09-project-search-light.png | Bin 0 -> 602636 bytes .../screenshots/v1.15.0/10-home-dark.png | Bin 0 -> 221526 bytes .../screenshots/v1.15.0/10-home-light.png | Bin 0 -> 219143 bytes .../screenshots/v1.15.0/11-catalog-dark.png | Bin 0 -> 425099 bytes .../screenshots/v1.15.0/11-catalog-light.png | Bin 0 -> 421652 bytes .../v1.15.0/12-onboarding-prefilled-dark.png | Bin 0 -> 253195 bytes .../v1.15.0/12-onboarding-prefilled-light.png | Bin 0 -> 251047 bytes .../playground-design-system/CHANGELOG.md | 60 + .../playground-design-system/MANIFEST.json | 13 +- .../vendor/playground-design-system/base.css | 1 + .../components-tier4-project-view.css | 666 +++++++++ .../playground-design-system/tokens.css | 11 + plugins/ms-ai-architect/tests/run-e2e.sh | 4 + .../ms-ai-architect/tests/screenshot/run.mjs | 129 +- .../tests/test-playground-actions.sh | 248 +++ .../tests/test-playground-fingerprints.sh | 218 +++ .../tests/test-playground-migrations.sh | 274 +++- .../tests/test-playground-projectview.sh | 323 ++++ .../tests/test-playground-v3.sh | 19 +- shared/playground-design-system/CHANGELOG.md | 48 + .../components-tier4-project-view.css | 665 +++++++++ shared/playground-design-system/tokens.css | 8 + 47 files changed, 3724 insertions(+), 411 deletions(-) create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/01-onboarding-empty-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/01-onboarding-empty-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/02-project-overview-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/02-project-overview-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/03-project-artifact-classify-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/03-project-artifact-classify-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/04-project-artifact-security-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/04-project-artifact-security-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/05-project-artifact-ros-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/05-project-artifact-ros-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/06-project-artifact-cost-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/06-project-artifact-cost-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/07-project-artifact-summary-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/07-project-artifact-summary-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/08-project-import-modal-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/08-project-import-modal-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/09-project-search-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/09-project-search-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/10-home-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/10-home-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/11-catalog-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/11-catalog-light.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/12-onboarding-prefilled-dark.png create mode 100644 plugins/ms-ai-architect/playground/screenshots/v1.15.0/12-onboarding-prefilled-light.png create mode 100644 plugins/ms-ai-architect/playground/vendor/playground-design-system/components-tier4-project-view.css create mode 100755 plugins/ms-ai-architect/tests/test-playground-actions.sh create mode 100755 plugins/ms-ai-architect/tests/test-playground-fingerprints.sh create mode 100755 plugins/ms-ai-architect/tests/test-playground-projectview.sh create mode 100644 shared/playground-design-system/components-tier4-project-view.css diff --git a/CLAUDE.md b/CLAUDE.md index 97ba05b..7542e0b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,12 +11,12 @@ plugins/ graceful-handoff/ v2.1.0 — Auto-trigger handoff via Stop hook (skill + JSON pipeline + 4-step model-aware context resolution) linkedin-thought-leadership/ v1.2.0 — LinkedIn content pipeline + analytics llm-security/ v6.0.0 — Security scanning, auditing, threat modeling - ms-ai-architect/ v1.13.1 — Microsoft AI architecture (Cosmo Skyberg persona) + manual KB-refresh slash command + ms-ai-architect/ v1.15.0 — Microsoft AI architecture (Cosmo Skyberg persona) + manual KB-refresh slash command + v3 project-view (sidebar med 17 artifacts + main + import-modal overlay, v2-surface fjernet i v1.15.0) okr/ v1.0.0 — OKR guidance for Norwegian public sector voyage/ v5.0.3 — Brief, research, plan, execute, review, continue. Contract-driven Claude Code pipeline (six-command universal pipeline + multi-session resumption + --gates autonomy chain). /trekbrief, /trekplan, and /trekreview each end by running scripts/annotate.mjs against the just-written .md and printing the file:// link to a self-contained operator-annotation HTML modelled on claude-code-100x/build-site.js: pencil-toggle annotation mode, select text or click any element, choose intent (Fiks/Endre/Spørsmål), comment, sidebar groups by section with delete + Copy Prompt, localStorage persistence per artifact path. v5.0.0 removed the v4.2/v4.3 bespoke playground + /trekrevise + Handover 8; v5.0.1 pointed at /playground document-critique (wrong direction); v5.0.2 was operator-led but too thin; v5.0.3 matches the reference the operator pointed at from day one. shared/ - playground-design-system/ v0.1 — Aksel/Digdir-aligned CSS design system + JSON schemas + self-hosted Inter/JetBrains Mono/Source Serif 4 fonts (Tier 1+2+3 wave 1+wave 2 = 20 Tier 3 components total). Consumed by ms-ai-architect, okr, llm-security, voyage, config-audit + playground-design-system/ v0.6.0 — Aksel/Digdir-aligned CSS design system + JSON schemas + self-hosted Inter/JetBrains Mono/Source Serif 4 fonts. Tier 1 base + Tier 2 + Tier 3 wave 1+2 (20 components) + Tier 4 project-view-arketype (v0.6.0 — sidebar + main + import-modal overlay). Consumed by ms-ai-architect, okr, llm-security, voyage, config-audit. playground-examples/ — Reference scenarios (ROS-Lier, OKR-Bærum, security-Direktorat) + showcase landing + 12 isolated Tier 3 wave 2 component demos under components/ ``` @@ -53,3 +53,20 @@ Disse trackes IKKE i git. Oppdater ved sesjonsslutt. 3. Les REMEMBER.md og TODO.md for sesjonsstatus 4. Jobb innenfor scope 5. Oppdater REMEMBER.md ved avslutning + +## Communication patterns + +### Linking to local files + +When pointing to local files in responses, always use markdown link syntax with a descriptive name: + +- Use `[Human-friendly name](file:///absolute/path)` — never bare `file:///...` URLs or autolinks ``. +- Always use absolute paths. Never `~/` or relative paths. +- For multiple files, render as a bullet list of named markdown links. + +Why: bare `file://` URLs only render the first as clickable across multiple lines. Named markdown links make each entry independently clickable and look cleaner. + +Example: + +- [Brief](file:///Users/ktg/.../brief.html) +- [Research summary](file:///Users/ktg/.../research/summary.md) diff --git a/README.md b/README.md index 73e11b3..02f5eb2 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Key command: `/graceful-handoff [topic-slug] [--no-commit] [--no-push] [--dry-ru --- -### [MS AI Architect — Azure AI and Microsoft Foundry](plugins/ms-ai-architect/) `v1.14.0` `🇳🇴 Norwegian` +### [MS AI Architect — Azure AI and Microsoft Foundry](plugins/ms-ai-architect/) `v1.15.0` `🇳🇴 Norwegian` Microsoft AI solution architecture guidance for Norwegian public sector and enterprise. @@ -187,11 +187,11 @@ Key commands: `/architect`, `/architect:ros`, `/architect:security`, `/architect 12 specialized agents · 25 commands · 5 skills (387 reference docs) · 2 hooks · manual sitemap-driven KB refresh -**One-click demo (v1.14.0, 2026-05-08):** "Last inn demo-data"-knappen på onboarding bootstrapper en ferdig "Acme Kommune" med demo-prosjektet "Acme: Kunde-chatbot" og alle 17 rapport-typer pre-importert som `raw_markdown` (konsistente navn på tvers av alle fixtures). Visualisering rehydreres automatisk på project-surface mount. 24 retina-screenshots committed under `playground/screenshots/v1.14.0/` (12 surfaces × 2 tema), så forkere ser pluginen uten å kjøre noe. Standalone Playwright-runner under `tests/screenshot/` (egen `package.json`). +**One-click demo (v1.15.0, 2026-05-16):** "Last inn demo-data"-knappen på onboarding bootstrapper en ferdig "Acme Kommune" med demo-prosjektet "Acme: Kunde-chatbot" og alle 17 rapport-typer pre-importert. v2→v3 migrasjon auto-parser `raw_markdown` til `project.artifacts[cid]` så project-view viser aggregert verdict (BLOKKERT), key stats (17/17 artifacts), top-risks-liste, og navigerbart artifact-sidebar i én navigasjon. 24 retina-screenshots committed under `playground/screenshots/v1.15.0/` (12 surfaces × 2 tema), så forkere ser pluginen uten å kjøre noe. Standalone Playwright-runner under `tests/screenshot/` (egen `package.json`). -**Playground (v3, v1.14.0 — root-cause refaktor, 2026-05-08):** Multi-surface decision-builder + report viewer. The single-file HTML app lives at `playground/ms-ai-architect-playground.html` (~3870+ lines). v1.14.0 leverer DS-konvensjon-adopsjon på 14 renderere over 6 sesjoner: B-DS-1/2/3 fikset i shared/ DS v0.4.0 (kanban-card word-break, expansion title-block, matrix-bubble cursor); 3 risk-renderere til DS-summary-grid + ros-layout; 6 compliance/govern-renderere bytter `.report-meta`-wrapper mot DS-konvensjon; renderMigrate + renderPoc til expansion-list per fase; 5b-fixes i renderCost/renderCompare/renderUtredning. Lokal `