From 592b3e21fce4876a435f9d091b27eaf92fe8e4a6 Mon Sep 17 00:00:00 2001 From: hasong Date: Wed, 19 Aug 2026 01:31:54 +0800 Subject: [PATCH 1/2] fix(ci): map stylekit-core/styles in tsconfig so typecheck and build resolve it packages/mcp/src/data.ts imports from "stylekit-core/styles", but the root tsconfig paths only mapped "stylekit-core" and "stylekit-core/discovery". CI runs `tsc --noEmit` and `next build` without pre-building the core package, so the unmapped subpath could not be resolved from source and both jobs failed with TS2307 "Cannot find module 'stylekit-core/styles'". Add the missing path entry, mirroring the existing discovery mapping. Verified: `tsc --noEmit` passes even with packages/core/dist removed, proving resolution now comes from source as CI needs. --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 4175a729..f5e37612 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,8 @@ "paths": { "@/*": ["./*"], "stylekit-core": ["./packages/core/src/index.ts"], - "stylekit-core/discovery": ["./packages/core/src/discovery/index.ts"] + "stylekit-core/discovery": ["./packages/core/src/discovery/index.ts"], + "stylekit-core/styles": ["./packages/core/src/styles/index.ts"] } }, "include": [ From 11eebc9c9d7b29c77f25affa58345506230b1b2f Mon Sep 17 00:00:00 2001 From: hasong Date: Wed, 19 Aug 2026 01:42:33 +0800 Subject: [PATCH 2/2] fix(ci): sync toolkit repositoryVersion to the actual package versions check:product-truth failed with toolkit-repository-version-mismatch because the Developer Toolkit manifest's repositoryVersion lagged the package.json bumps. repositoryVersion documents the in-repo version and must mirror package.json, so align cli 0.1.1->0.1.2, core 1.0.0-beta.1->1.0.0-beta.3, and mcp 0.1.1->0.2.0. publicVersion and the install commands (the npm-published claims) are deliberately left unchanged. Update the developer-toolkit test's hardcoded cli repositoryVersion to match, resolving its contradiction with the product-truth invariant. --- lib/developer-toolkit/index.ts | 6 +++--- tests/unit/lib/developer-toolkit.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/developer-toolkit/index.ts b/lib/developer-toolkit/index.ts index b00d7a56..80afb28d 100644 --- a/lib/developer-toolkit/index.ts +++ b/lib/developer-toolkit/index.ts @@ -49,7 +49,7 @@ export const developerToolkitManifest = Object.freeze({ id: "core", state: "public-beta", publicVersion: "1.0.0-beta.1", - repositoryVersion: "1.0.0-beta.1", + repositoryVersion: "1.0.0-beta.3", command: "npm install stylekit-core@1.0.0-beta.1", docsUrl: "https://github.com/AnxForever/stylekit/tree/main/packages/core#readme", @@ -60,7 +60,7 @@ export const developerToolkitManifest = Object.freeze({ id: "cli", state: "public-beta", publicVersion: "0.1.0", - repositoryVersion: "0.1.1", + repositoryVersion: "0.1.2", command: "npx -y stylekit-cli@0.1.0 add synthwave", docsUrl: "https://github.com/AnxForever/stylekit/tree/main/packages/cli#readme", @@ -71,7 +71,7 @@ export const developerToolkitManifest = Object.freeze({ id: "mcp", state: "public-beta", publicVersion: "0.1.0", - repositoryVersion: "0.1.1", + repositoryVersion: "0.2.0", command: "npx -y stylekit-mcp@0.1.0", docsUrl: "https://github.com/AnxForever/stylekit/tree/main/packages/mcp#readme", diff --git a/tests/unit/lib/developer-toolkit.test.ts b/tests/unit/lib/developer-toolkit.test.ts index 78808005..2d884932 100644 --- a/tests/unit/lib/developer-toolkit.test.ts +++ b/tests/unit/lib/developer-toolkit.test.ts @@ -10,7 +10,7 @@ describe("Developer Toolkit capability manifest", () => { id: "cli", state: "public-beta", publicVersion: "0.1.0", - repositoryVersion: "0.1.1", + repositoryVersion: "0.1.2", command: "npx -y stylekit-cli@0.1.0 add synthwave", verifiedAt: "2026-08-16", });