From dd075726d63ae116c2ff831667d8f1a12a869bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Eizedev?= <6794362+eizedev@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:25:11 +0100 Subject: [PATCH 1/3] docs: mark every break as Breaking in the module's changelog Refs #211 Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 21a2fff..a41e84e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -118,6 +118,9 @@ rendering. - Docs describe the current state; history belongs in `CHANGELOG.md`, commits and pull requests. - Conventional Commits; one change per pull request; every module keeps its own `CHANGELOG.md` and SemVer `ModuleVersion`. +- Every change that breaks a module's public interface (the list is on the versioning page, + `docs/versioning.md`) is marked `**Breaking:**` in that module's `CHANGELOG.md`, with two + sub-bullets: "Who is affected" and "What to do". - A change in `shared/` reaches every module that uses it only with that module's next release: give each of them a CHANGELOG entry, and a patch release for a fix. Code moves into `shared/` only once a second module needs it; until then it stays in its module. No common runtime module: each module From 97b311fb18f12275caf7680c9a234bb747a7e066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Eizedev?= <6794362+eizedev@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:31:33 +0100 Subject: [PATCH 2/3] docs: fold the Breaking rule into the changelog rule Refs #211 Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a41e84e..3d7b1bd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -117,10 +117,8 @@ rendering. short (what it is, install, a quick example, links to the pages). - Docs describe the current state; history belongs in `CHANGELOG.md`, commits and pull requests. - Conventional Commits; one change per pull request; every module keeps its own `CHANGELOG.md` and - SemVer `ModuleVersion`. -- Every change that breaks a module's public interface (the list is on the versioning page, - `docs/versioning.md`) is marked `**Breaking:**` in that module's `CHANGELOG.md`, with two - sub-bullets: "Who is affected" and "What to do". + SemVer `ModuleVersion`. A break of its public interface (`docs/versioning.md`) is marked `**Breaking:**` + there, with "Who is affected" and "What to do". - A change in `shared/` reaches every module that uses it only with that module's next release: give each of them a CHANGELOG entry, and a patch release for a fix. Code moves into `shared/` only once a second module needs it; until then it stays in its module. No common runtime module: each module From 79c3afbad83278dc63c8d35569d178c684d6123a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Eizedev?= <6794362+eizedev@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:57:57 +0100 Subject: [PATCH 3/3] docs(agents): decision records, lint, hand-over to pivotkit's docs, no release names Rewrites the lines in place: the intro names PRODUCT.md and the binding decision records, Commands lists npm run lint, the javascript guard names its shared source list, and the docs rule links pivotkit's docs where they own a topic and names no release of pivotkit or a module. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3d7b1bd..357a986 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,8 @@ Custom components for PowerShell Universal (PSU) apps, one PowerShell module per component, built from one repository. Each module is a React bundle plus a PowerShell module that returns the -hashtable PSU renders; see [README.md](README.md). +hashtable PSU renders; see [README.md](README.md) and [PRODUCT.md](PRODUCT.md). Accepted records in +[docs/decisions/](docs/decisions/index.md) are binding. ## How we build @@ -62,6 +63,7 @@ The modules form one product. Judge code, tests, docs and these rules as a whole ```bash npm ci && npm test # JavaScript unit tests (repository root) npm run growth # the growth guards, below +npm run lint # ESLint, as CI runs it npx playwright install chromium firefox webkit && npm run test:browser # after building the site # browser tests against showcase apps on a PSU instance: docs/development/index.md#browser-tests-on-psu pwsh ./build/Build-Module.ps1 -Module PowerShellUniversal.Component.ECharts # output// @@ -76,7 +78,8 @@ pwsh ./build/Invoke-ScriptAnalysis.ps1 # PSScriptAnalyzer as CI run The limits and their reasons are in that file. Each guard is a CI step: - `powershell`: code lines per `.ps1`/`.psm1` file and per function, read with the PowerShell parser. -- `javascript`: lines and complexity per function in `modules/*/Components` and `shared/js`, read with ESLint. +- `javascript`: lines and complexity per function in `modules/*/Components` and `shared/js`, read with ESLint + (sources and parser options in `build/javascript-sources.js`, shared with `npm run lint`). - `duplication`: copied JavaScript in the same folders, over the threshold in `.jscpd.json`, found with jscpd. - `docs`: lines per docs page and README by kind of page, and of all of them together. @@ -114,8 +117,10 @@ rendering. - In the pivot module, a `catch` around an HTTP request or the reading of its answer calls `Remove-UDPivotErrorRecord -ErrorRecord $_` first, so no request, header or token stays in `$Error`. - Behaviour is documented on the site pages in `docs/`; the root README and the module READMEs stay - short (what it is, install, a quick example, links to the pages). -- Docs describe the current state; history belongs in `CHANGELOG.md`, commits and pull requests. + short (what it is, install, a quick example, links to the pages). Where pivotkit's docs own a topic + (how readers use the report, the view format), link them instead of copying. +- Docs describe the current state and name no release of pivotkit or a module, only minimum versions; + history belongs in `CHANGELOG.md`, commits and pull requests. - Conventional Commits; one change per pull request; every module keeps its own `CHANGELOG.md` and SemVer `ModuleVersion`. A break of its public interface (`docs/versioning.md`) is marked `**Breaking:**` there, with "Who is affected" and "What to do".