Skip to content

Commit 789f4e5

Browse files
committed
Align deps and version check script
Bumps `@phcdevworks/spectre-tokens` to `^3.2.0` (with related toolchain updates in `package.json`) and records the dependency-drift resolution in `CHANGELOG.md`. Migrates `scripts/check-readme-version` from `.mjs` to `.ts`, adds a typed package parse, and updates `check:version-sync` to run via `node --experimental-strip-types`. Also expands `AGENTS.md` with upstream request/roadmap self-expansion guidance and a TypeScript-only rule for scripts.
1 parent 11ada19 commit 789f4e5

5 files changed

Lines changed: 47 additions & 17 deletions

File tree

AGENTS.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,28 @@ speculative component without a backing `@phcdevworks/spectre-ui` recipe
4141
requires explicit approval from Bradley Potts before merge. See
4242
[Non-Negotiable Limits](#non-negotiable-limits) for the full list.
4343

44+
## Upstream Requests and Roadmap Self-Expansion
45+
46+
Full directive: project-team [AGENTS.md](../AGENTS.md) "Upstream Requests and
47+
Roadmap Self-Expansion." Applied to this repo:
48+
49+
- This repo is L3a — its upstream is `spectre-ui` (and transitively
50+
`spectre-tokens`). If a component needs a recipe, class, or token value that
51+
doesn't exist upstream, append the request to `spectre-ui/TODO.md` under
52+
`## Requested by Downstream`, dated, with the reason and a link back to this
53+
repo's own TODO.md/ROADMAP.md. Never recreate the recipe locally instead.
54+
- There is no known downstream consumer of this repo within the workspace yet.
55+
If one appears, it should append requests to this repo's own `TODO.md` under
56+
`## Requested by Downstream`, kept visible and separate from self-planned
57+
component work.
58+
- This repo's own [ROADMAP.md](ROADMAP.md) may be proactively expanded with new
59+
or reordered phases by the agent's own analysis — but never mark a phase
60+
delivered without `npm run check` passing, and never add a speculative new
61+
component without a backing recipe already published in `spectre-ui`.
62+
- Surface any new TODO request or roadmap expansion in the handoff for Bradley
63+
Potts in the same change it was made, and reflect cross-repo-relevant
64+
changes in the project-team's own ROADMAP.md/TODO.md.
65+
4466
## Shared Source Rules
4567

4668
These rules apply to every agent without exception.
@@ -111,6 +133,8 @@ rules.
111133
framework adapters in this repository.
112134
10. Treat component tags, public properties, events, slots, exports, and
113135
accessibility behavior as stable contracts that should not change casually.
136+
11. All `scripts/` tooling is TypeScript (`.ts`); never add a new `.js`/`.mjs`
137+
script. Run via `node --experimental-strip-types scripts/<name>.ts`.
114138

115139
## Working Boundaries
116140

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ reflects package releases published to npm.
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Bumped `@phcdevworks/spectre-tokens` to `^3.2.0`, closing dependency drift
12+
against the current published `project-design` version. The upstream
13+
release was additive only — no source changes required here.
14+
915
## [1.5.0] - 2026-06-11
1016

1117
**Release Title:** Phase 5 Display Surface Expansion

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"check:exports": "node --experimental-strip-types scripts/check-exports.ts",
155155
"check:contract": "node --experimental-strip-types scripts/check-contract.ts",
156156
"check:invariants": "node --experimental-strip-types scripts/check-invariants.ts",
157-
"check:version-sync": "node scripts/check-readme-version.mjs",
157+
"check:version-sync": "node --experimental-strip-types scripts/check-readme-version.ts",
158158
"check:ecosystem": "spectre-manifest-validate spectre.manifest.json && spectre-manifest-check spectre.manifest.json ."
159159
},
160160
"publishConfig": {
@@ -164,7 +164,7 @@
164164
"typescript": "^5.9 || ^6.0"
165165
},
166166
"dependencies": {
167-
"@phcdevworks/spectre-tokens": "^3.1.0",
167+
"@phcdevworks/spectre-tokens": "^3.2.0",
168168
"@phcdevworks/spectre-ui": "^2.5.0",
169169
"lit": "^3.3.3"
170170
},
@@ -175,11 +175,11 @@
175175
"@typescript-eslint/eslint-plugin": "^8.62.0",
176176
"@typescript-eslint/parser": "^8.62.0",
177177
"axe-core": "^4.12.1",
178-
"eslint": "^10.5.0",
178+
"eslint": "^10.6.0",
179179
"globals": "^17.7.0",
180180
"happy-dom": "^20.10.6",
181181
"jiti": "^2.7.0",
182-
"prettier": "^3.8.4",
182+
"prettier": "^3.9.0",
183183
"tailwindcss": "^4.3.1",
184184
"tsup": "^8.5.1",
185185
"typescript": "^6.0.3",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { resolve } from 'node:path';
44
const repoRoot = resolve(import.meta.dirname, '..');
55

66
const pkgPath = process.env.README_VERSION_PKG_PATH ?? 'package.json';
7-
const pkg = JSON.parse(readFileSync(resolve(repoRoot, pkgPath), 'utf-8'));
7+
const pkg = JSON.parse(readFileSync(resolve(repoRoot, pkgPath), 'utf-8')) as { version: string };
88
const readme = readFileSync(resolve(repoRoot, 'README.md'), 'utf-8');
99

1010
const match = readme.match(/\|\s*Current version\/status\s*\|\s*([^\s|]+)\s*\|/i);

0 commit comments

Comments
 (0)