@godxjp/ui 32.7.0 → 32.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@godxjp/ui",
3
- "version": "32.7.0",
4
- "godxUiMcp": "32.7.0",
3
+ "version": "32.7.2",
4
+ "godxUiMcp": "32.7.2",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -187,8 +187,9 @@ Follow this every time you create or change a page, component or form.
187
187
  2. **Route.** \`route_consumer_task "<task>"\` → \`compose-a-screen\` for app screens. The
188
188
  marketing skills (soft, minimalist, brutalist, gpt-tasteskill, imagegen-*) are for landing
189
189
  pages only.
190
- 3. **Exemplar.** \`get_exemplar\` with archetype list | detail | form | settings | dashboard |
191
- approval. Match its structure; it is the visual target.
190
+ 3. **Exemplar.** \`get_exemplar\` for the closest archetype (call it with no argument for the
191
+ list: list, detail, editor/form, reader/document, settings, dashboard, approval-queue). Match
192
+ its structure; it is the visual target.
192
193
  4. **Discover, then look up.** \`search_components "<area>"\` first, \`get_component <Name>\`
193
194
  second — \`get_component\` cannot find a name you do not already have (a consumer hand-rolled
194
195
  the shipped \`OrgSwitcher\` and \`TopbarItem\` this way). Code already in this repo is not the
@@ -226,7 +227,8 @@ ${STAMP(KIT_VERSION)}
226
227
  Before any JSX for a screen:
227
228
  1. Read \`node_modules/@godxjp/ui/DESIGN.md\` (MCP \`get_design\`).
228
229
  2. \`route_consumer_task\` → \`compose-a-screen\`; \`search_components\` before hand-rolling anything.
229
- 3. \`get_exemplar\` (list | detail | form | settings | dashboard | approval) — match its structure.
230
+ 3. \`get_exemplar\` (no argument lists the archetypes: list, detail, editor, reader, settings,
231
+ dashboard, approval-queue) — match its structure.
230
232
 
231
233
  After building:
232
234
  4. \`npx @godxjp/ui audit <files>\` — zero errors.
@@ -109,8 +109,12 @@ function changedFiles() {
109
109
  }
110
110
 
111
111
  const parts = [
112
- run(["diff", "--name-only", "--diff-filter=ACMR", mergeBase.trim(), "--"]),
113
- run(["diff", "--name-only", "--diff-filter=ACMR", "--cached"]),
112
+ // `--relative` (gh#1296): `git diff` names paths from the REPO root, `ls-files` from the cwd.
113
+ // Run from a workspace package (pages/) the root-relative names failed the existsSync below
114
+ // and were dropped, so 16 changed .tsx read as "no .tsx/.jsx changed" — a false clean.
115
+ // `--relative` makes both cwd-relative and limits them to the package being audited.
116
+ run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", mergeBase.trim(), "--"]),
117
+ run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", "--cached"]),
114
118
  run(["ls-files", "--others", "--exclude-standard"]),
115
119
  ];
116
120
  if (parts.some((out) => out === null)) {
@@ -2551,7 +2555,7 @@ if (filesScanned === 0 && !changedNoFiles) {
2551
2555
  // Dưới `--changed`, NÓI RA base đã so. Một base sai không làm chương trình chết — nó cho ra một
2552
2556
  // con số hợp lý, và đó là thứ duy nhất người đọc có thể dùng để nghi ngờ (gh#948).
2553
2557
  if (CHANGED && changed?.base) {
2554
- console.log(`${C.dim}so với: ${changed.base}${C.reset}`);
2558
+ console.log(`${C.dim}compared with: ${changed.base}${C.reset}`);
2555
2559
  }
2556
2560
  // Bỏ file trong im lặng là cách một gate thu hẹp dần mà không ai thấy (cùng lý do với dòng
2557
2561
  // `so với:` ngay trên). Nói ra số file và lãnh thổ đã dùng.