tutuca 0.9.54 → 0.9.55

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": "tutuca",
3
- "version": "0.9.54",
3
+ "version": "0.9.55",
4
4
  "type": "module",
5
5
  "description": "Zero-dependency SPA framework with immutable state and virtual DOM",
6
6
  "main": "./dist/tutuca.js",
@@ -1,37 +1,27 @@
1
1
  ---
2
2
  name: tutuca
3
- description: Authoring or reviewing tutuca components, html`` views, macros, or running the `tutuca` CLI. Covers field types, @-directives, bubble/receive/response handlers, and the post-edit `tutuca <module> lint` + `tutuca <module> render --title …` verification recipe.
3
+ description: Use when authoring or reviewing tutuca modules — `component({...})` definitions, `html\`...\`` views, `@`-directives, `input` / `bubble` / `receive` / `response` / `alter` handlers, macros, or `getTests` exports — or when running the `tutuca` CLI (`lint` / `test` / `render` / `docs`). Covers the post-edit `tutuca <module> lint` `test` `render --title "<example>"` verification recipe.
4
4
  ---
5
5
 
6
- # Tutuca
7
-
8
- Tutuca is an immutable-state SPA framework: components have typed
9
- `fields`, auto-generated mutators (`setX`, `pushInX`, …), HTML-template
10
- `view`s with `@`-prefixed directives, and `bubble` / `receive` /
11
- `response` handlers for orchestration.
12
-
13
- ## Verifying changes
6
+ <!-- This file is generated by scripts/build-skill.js from docs/llm/. Do not edit. -->
14
7
 
15
- After editing a tutuca module, run two checks before declaring the edit
16
- done:
17
-
18
- 1. **Lint** — catches undefined fields/handlers/macros/events. Exits
19
- `2` on any error-level finding.
8
+ # Tutuca
20
9
 
21
- ```sh
22
- tutuca <module-path> lint
23
- ```
10
+ Tutuca is an immutable-state SPA framework. See [core.md](./core.md)
11
+ for the framework primer and the post-edit verification recipe
12
+ (`tutuca <module> lint` → `test` → `render --title "<example>"`).
24
13
 
25
- 2. **Render the example that exercises the feature you changed** —
26
- confirms the component mounts in a headless DOM with the new
27
- behavior. Exits `3` on render crash.
14
+ ## Companion skills
28
15
 
29
- ```sh
30
- tutuca <module-path> render --title "<example title>"
31
- ```
16
+ When authoring tutuca code, also load these if available:
32
17
 
33
- If no example covers the feature, add one to `getExamples()` first —
34
- that's how the feature becomes verifiable.
18
+ - **immutable-js** every `immutable` export is reachable through
19
+ `tutuca` (`List`, `IMap`, `OMap`, `ISet`, `Record`, `Seq`,
20
+ `fromJS`, `is`, …). Reach for it whenever the work touches state
21
+ values.
22
+ - **margaui** — the Tailwind v4 / daisyUI-compatible class library.
23
+ Reach for it when the project uses MargaUI / Tailwind class lists in
24
+ `class=` / `:class=`.
35
25
 
36
26
  ## Routing
37
27