@pugi/cli 1.0.0-alpha.156 → 1.0.0-alpha.158

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pugi/cli",
3
- "version": "1.0.0-alpha.156",
3
+ "version": "1.0.0-alpha.158",
4
4
  "description": "Pugi CLI - terminal-native software execution system",
5
5
  "license": "MIT",
6
6
  "homepage": "https://pugi.io",
@@ -40,11 +40,11 @@
40
40
  "LICENSE"
41
41
  ],
42
42
  "optionalDependencies": {
43
- "@pugi/cli-darwin-arm64": "1.0.0-alpha.156",
44
- "@pugi/cli-darwin-x64": "1.0.0-alpha.156",
45
- "@pugi/cli-linux-arm64": "1.0.0-alpha.156",
46
- "@pugi/cli-linux-x64": "1.0.0-alpha.156",
47
- "@pugi/cli-windows-arm64": "1.0.0-alpha.156",
48
- "@pugi/cli-windows-x64": "1.0.0-alpha.156"
43
+ "@pugi/cli-darwin-arm64": "1.0.0-alpha.158",
44
+ "@pugi/cli-darwin-x64": "1.0.0-alpha.158",
45
+ "@pugi/cli-linux-arm64": "1.0.0-alpha.158",
46
+ "@pugi/cli-linux-x64": "1.0.0-alpha.158",
47
+ "@pugi/cli-windows-arm64": "1.0.0-alpha.158",
48
+ "@pugi/cli-windows-x64": "1.0.0-alpha.158"
49
49
  }
50
50
  }
@@ -17,6 +17,11 @@ Refactors CSS to Tailwind, fixes spacing rhythm, ensures dark/light parity.
17
17
  - Both themes are shipped. A colour that only reads on the dark ground is a bug on the light one; take colour from variables so the theme decides.
18
18
 
19
19
 
20
+ ## Known failure modes
21
+
22
+ Read `quirks.md` in this directory BEFORE writing code in this domain. It records 5 failures that reached a customer build, each with the symptom, the cause, and the check that tells them apart.
23
+
24
+
20
25
  ## Grounding
21
26
 
22
27
  This skill retrieves from the Anvil RAG workspace `ui_registry`. Ask grounded questions in that domain before inventing answers.
@@ -0,0 +1,56 @@
1
+ <!-- GENERATED by pugi-core packages/opencode/script/generate-persona-skill-pack.ts — do not hand-edit. -->
2
+
3
+ # Tailwind Polish — known failure modes
4
+
5
+ Each entry below reached a customer build. The symptom is what you will
6
+ actually observe; the build succeeds in every one of these cases.
7
+
8
+ ## v3-directives-under-v4
9
+
10
+ **Symptom.** The build succeeds and the page renders with NO styling at all — plain black text on white, browser default fonts.
11
+
12
+ **Cause.** The stylesheet still opens with the v3 directives `@tailwind base/components/utilities` while package.json pins tailwindcss v4. Those directives do not exist in v4, so PostCSS emits no utility classes and reports no error.
13
+
14
+ **Check.** Read the tailwindcss version in package.json, then the first lines of src/index.css. v4 must open with `@import "tailwindcss";`.
15
+
16
+ **Fix.** Replace the three directives with `@import "tailwindcss";`, or put tailwindcss back on ^3 and use `tailwindcss: {}` in postcss.config.js instead of `@tailwindcss/postcss`. The two halves must agree.
17
+
18
+ ## palette-in-root-without-theme
19
+
20
+ **Symptom.** Layout works — spacing, flex, max-width all apply — but every colour is missing: no backgrounds, no surfaces, text is default black.
21
+
22
+ **Cause.** The palette is declared as `--color-*` variables inside `:root`. v4 turns a variable into a utility class only when it is declared inside an `@theme` block, and it ignores tailwind.config.js unless the stylesheet asks with `@config`.
23
+
24
+ **Check.** If `:root` contains `--color-` and the file has neither `@theme` nor `@config`, the token classes generate nothing. Confirm by grepping the BUILT css for one token class, e.g. `bg-background`.
25
+
26
+ **Fix.** Move the palette into an `@theme` block, or add `@config "./tailwind.config.js";`. Then grep the built css for the classes the components use before reporting done.
27
+
28
+ ## unlayered-global-reset
29
+
30
+ **Symptom.** Colours and borders are correct but the page has no rhythm — `px-4` computes to 0px, `mx-auto` does not centre, nothing has margins.
31
+
32
+ **Cause.** A global `* { margin: 0; padding: 0 }` sits outside any `@layer`. v4 puts its utilities in cascade layers, and unlayered css beats layered css regardless of specificity, so one rule overrides every spacing utility at once.
33
+
34
+ **Check.** Search the stylesheet for a `*` selector setting margin or padding that is not inside `@layer`. Then inspect a padded element in the browser and read the computed padding.
35
+
36
+ **Fix.** Wrap the reset in `@layer base { ... }`, or delete it — Tailwind's own preflight already does this job.
37
+
38
+ ## v4-entry-under-v3
39
+
40
+ **Symptom.** The build succeeds and the page renders unstyled, the mirror image of the first quirk.
41
+
42
+ **Cause.** The stylesheet uses the v4 entry `@import "tailwindcss"` while package.json pins tailwindcss v3, which does not understand it.
43
+
44
+ **Check.** Compare the pinned major in package.json against the stylesheet entry line. They must agree.
45
+
46
+ **Fix.** Use the v3 directives for a v3 pin, or move the pin to v4. Do not mix the two dialects.
47
+
48
+ ## dev-script-not-at-root
49
+
50
+ **Symptom.** The app builds and runs, but the hosted preview shows nothing or a 503 — the runner reports it found no dev command.
51
+
52
+ **Cause.** In a monorepo the dev script lives in a workspace package (apps/web, packages/web, client, frontend) or is named `dev:web` rather than `dev`, and a root-only lookup misses it.
53
+
54
+ **Check.** Read the root package.json scripts, then the workspace package's own scripts before concluding there is no dev command.
55
+
56
+ **Fix.** Declare the runnable script at the root, or make sure the app directory is the one handed to the runner. State the app directory explicitly rather than letting it be guessed.