Skip to content

Commit da7d1a3

Browse files
committed
release: bump version to 0.2.0 and add TASTE.md
- update react and cli package versions to 0.2.0 - sync cli dependency on @agent-html/react to match new version - add TASTE.md for visual and compositional design judgment - update docs to reference TASTE.md instead of old taste/design/DESIGN.md - cleanup peer metadata from package-lock.json entries
1 parent 9ebc3cf commit da7d1a3

6 files changed

Lines changed: 211 additions & 58 deletions

File tree

agent-html/AGENTS.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Write normal React artifacts in `agent-html/artifacts/*.artifact.tsx`. For cold
1414

1515
- Keep `README.md` as a conditional reading route, not a rulebook.
1616
- Keep `AGENTS.md` as hard executable rules, not a design essay.
17+
- Keep `TASTE.md` as artifact design judgment, not a hard-rule file or
18+
primitive catalog.
1719
- Keep `index/*` as generated decision summaries, not full tool output.
1820
- Keep `artifacts/README.md` as the artifact source route.
1921
- Keep `data/README.md` as the data source route.
@@ -57,6 +59,13 @@ Write normal React artifacts in `agent-html/artifacts/*.artifact.tsx`. For cold
5759
- Do not render host block prompt actions or block hover chrome from artifact source.
5860
- Do not use old AHTML `<Cell>` DSL for React Canvas artifacts.
5961

62+
## Taste Route
63+
64+
- Read `TASTE.md` before changing artifact visual composition, media-heavy
65+
blocks, layout density, component choice, source placement, or narrative UI.
66+
- Use `TASTE.md` for design judgment. Do not copy its guidance into `AGENTS.md`,
67+
examples, component docs, or generated indexes.
68+
6069
## Primitive Rules
6170

6271
- Read `components/README.md` before scanning component source.
@@ -94,4 +103,5 @@ Write normal React artifacts in `agent-html/artifacts/*.artifact.tsx`. For cold
94103

95104
- Imitate `examples/example.artifact.tsx` for split artifact structure and ownership.
96105
- Read `artifacts/README.md` before opening large artifact source.
97-
- Use `components/README.md` for the component source route and `taste/design/DESIGN.md` for component choice before scanning the full primitive surface.
106+
- Use `components/README.md` for the component source route and `TASTE.md` for
107+
component choice before scanning the full primitive surface.

agent-html/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ When authoring an artifact:
1313

1414
- `artifacts/README.md`
1515
- `examples/example.artifact.tsx`
16+
- `TASTE.md` for artifact composition and visual judgment.
1617

1718
When opening broad or large source files:
1819

@@ -22,6 +23,7 @@ When opening broad or large source files:
2223
When using or changing primitives, hooks, helpers, schemas, or theme exports:
2324

2425
- `components/README.md` for the component source route.
26+
- `TASTE.md` for component choice and artifact layout judgment when UI composition is part of the task.
2527
- `index/reuse-surface.md` for reusable hook, helper, schema, and data choices.
2628
- `index/api-surface.md`
2729
- then the closest source file
@@ -56,7 +58,7 @@ When touching Canvas classes, tokens, or internal chrome:
5658

5759
- Copy `examples/example.artifact.tsx` for artifacts that need an artifact entry and semantic block files.
5860
- Use `artifacts/README.md` before opening large artifact source.
59-
- Use `components/README.md` for the component source route and `taste/design/DESIGN.md` for component choice.
61+
- Use `components/README.md` for the component source route and `TASTE.md` for component choice.
6062

6163
## Workspace Contract
6264

agent-html/TASTE.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Canvas Taste
2+
3+
This file owns portable Canvas artifact design judgment inside distributed `agent-html`.
4+
5+
It is not a hard-rule file, API surface, primitive catalog, or host architecture guide. `AGENTS.md` owns executable rules. Component and style routes own source selection. `TASTE.md` owns the visual and compositional judgment agents need when an artifact must feel like a coherent work surface instead of a component inventory.
6+
7+
## Artifact Judgment
8+
9+
- Treat artifact content as a scene before treating it as a component list.
10+
- Let the primary media, object, or workflow establish the stage before adding UI containers.
11+
- Make one visual or object lead each major block.
12+
- Use UI as annotation, orientation, and control around the work; do not let UI containers become the work.
13+
- Prefer existing Canvas primitives and public content classes before inventing new component families.
14+
15+
## Layout Judgment
16+
17+
- Prefer spacing, alignment, type, captions, and state markers before adding another bordered surface.
18+
- Use panels only for real objects, control groups, placeholders, disclosures, or data scopes.
19+
- Do not wrap every image, caption, source link, and note in separate bordered surfaces.
20+
- Avoid card-inside-card depth unless each layer has a distinct object identity.
21+
- Let image-heavy artifacts use images as layout structure, not only as content inside cards.
22+
23+
## Media Judgment
24+
25+
- Media should carry semantic work, not just decoration.
26+
- Repeated images in one scene should have distinct jobs: context, scale, detail, sequence, evidence, or closure.
27+
- Replace visually similar supporting images when they repeat the same idea.
28+
- Keep credits and sources traceable without interrupting the narrative rhythm.
29+
- Use inline image credits near media and collect long source lists in a final source area when repeated links would break the story.
30+
31+
## Component Judgment
32+
33+
- Use `components/ui` primitives for ordinary actions, labels, display, disclosure, overlays, and navigation.
34+
- Use existing rich components only when their behavior matches the task.
35+
- Reuse `Timeline` for chronological or route structure before making a custom route component.
36+
- Do not create a new rich component for a one-off artifact arrangement.
37+
- Promote a local pattern only when repeated behavior or a reusable arrangement appears.
38+
39+
## Review Checklist
40+
41+
- The first viewport identifies the artifact subject without reading the file name.
42+
- Each major block has one leading visual, object, or workflow.
43+
- Borders are not the default hierarchy mechanism.
44+
- Panels mark meaningful boundaries instead of routine spacing.
45+
- Source links and credits are traceable without dominating the page.
46+
- Repeated images in the same block say different things.
47+
- Existing primitives are composed before new components are invented.
48+
- The artifact reads as a coherent scene or workflow, not a pile of containers.

0 commit comments

Comments
 (0)