frameboard 0.4.0 → 0.6.0

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/README.md CHANGED
@@ -26,31 +26,97 @@ In a folder with no board, `serve` creates `.frameboard/` with one empty project
26
26
 
27
27
  ## How it works
28
28
 
29
- A board folder holds projects, a project holds pages, and a page holds frames. Each frame is one `.html` file beside a `layout.json` that records where it sits.
29
+ ### Board folder
30
30
 
31
- The `project`, `page`, and `frame` commands manage them on disk, `list` shows the board, and `edit` changes one style, attribute, or text on one element without touching another byte. `show` points the open board at a frame.
31
+ A board folder holds projects, a project holds pages, and a page holds frames.
32
32
 
33
- On the board, Cmd-click or double-click selects an element inside a frame, Enter, Esc, and Tab walk the tree, and the layers panel lists each frame's elements. `selection` prints what the developer picked, with the element's index and hash ready for `edit`.
33
+ - Each frame is one `.html` file beside a `layout.json` that records where it sits
34
34
 
35
- Frames share one look through a `tokens.css` in the board folder, which a project's own `tokens.css` overrides, or through `serve --tokens <path>` for a sheet another tool manages. The server puts the sheets and three faces, Geist, Geist Mono, and Caveat, ahead of each frame's own styles as it serves the frame, and the file on disk stays as written. One toggle switches the board and every frame between light and dark.
35
+ ### Tokens and themes
36
36
 
37
- `frameboard check` reports every content rule a frame breaks, such as a link outside its page folder or colors set for one theme alone, and exits 8 on any error. The board runs the same rules on each change, and a running server adds the rules only a browser can see, being clipped content, a scrollbar inside the frame, content sized off the viewport, and text under a project's minimum size. `capture` writes PNGs of a frame or page in either theme, `frame fit` sets a frame's height to its content, and `inspect` lists each rendered element with the index `edit` takes, its box, and its computed color and type.
37
+ Frames share one look through a `tokens.css` in the board folder, which a project's own `tokens.css` overrides.
38
38
 
39
- Pin a note on a frame or one element with the Note tool, and Send hands it to a Claude Code session listening on the board. The agent answers in the note's thread through `notes reply` and closes it with `notes done`, and the notes stay in each page's `notes.json`.
39
+ - `serve --tokens <path>` takes a sheet another tool manages instead
40
+ - The server puts the sheets and three faces, Geist, Geist Mono, and Caveat, ahead of each frame's own styles as it serves the frame
41
+ - The file on disk stays as written
42
+ - One toggle switches the board and every frame between light and dark
40
43
 
41
- An agent runs `editing` on a frame before rewriting it. The board then outlines the frame and tags it with the agent and how long it has held it, and a second session that tries to claim it is told it is taken. A claim lapses five minutes after the agent last ran `editing`, and a note sent from a claimed frame goes to the session holding it.
44
+ ## For agents
42
45
 
43
- When an agent writes a frame, the board marks it with a dot and counts it on its page and project until you look at it. A toast names the agent and offers Show, which takes you to the change and makes the edited elements glow, and Next, or `]`, steps to the next one.
46
+ ### Commands
44
47
 
45
- The Claude Code plugin in `plugins/frameboard/` runs the static checks after each agent write and hands the findings back in the same turn. Its monitor runs `inbox --follow` for the session, so a sent note reaches the agent at once. `frameboard docs` prints every command, flag, record shape, and exit code.
48
+ The `project`, `page`, and `frame` commands manage the board on disk, and `list` shows it.
46
49
 
47
- In the board you move and resize frames, add, rename, reorder, delete, and search pages, and add a frame at a phone, tablet, or desktop size with the Frame tool. On the home view, New project adds a project, and a card's right-click menu opens, renames, duplicates, or deletes one. The inspector edits a selected element's name, opacity, radius, type size, weight, alignment, fill, stroke color, shadow, and text, offers the project's tokens first, and flags a color no token names. The layers panel selects, renames, restacks, hides, and locks frames, and Cmd+D, Cmd+C, Cmd+X, and Cmd+V duplicate, copy, cut, and paste them across pages and projects. Undo any of it with Cmd+Z. An undo of something an agent has changed since is refused and named on the board, so it never reverts the agent's work. Releases before 1.0 ship the board in stages, and the rest of editing by hand arrives in later 0.x releases.
50
+ - `edit` changes one style, attribute, or text on one element without touching another byte
51
+ - `show` points the open board at a frame, and `capture` writes PNGs of a frame or page in either theme
52
+ - `frame fit` sets a frame's height to its content
53
+ - `inspect` lists each rendered element with the index `edit` takes, its box, and its computed color and type
54
+ - `frameboard docs` prints every command, flag, record shape, and exit code
55
+
56
+ ### Content checks
57
+
58
+ `frameboard check` reports every content rule a frame breaks, such as a link outside its page folder or colors set for one theme alone, and exits 8 on any error.
59
+
60
+ - The board runs the same rules on each change
61
+ - A running server adds the rules only a browser can see, being clipped content, a scrollbar inside the frame, content sized off the viewport, and text under a project's minimum size
62
+
63
+ ### Claims
64
+
65
+ An agent runs `editing` on a frame before rewriting it.
66
+
67
+ - The board then outlines the frame and tags it with the agent and how long it has held it, and a second session that tries to claim it is told it is taken
68
+ - A claim lapses five minutes after the agent last ran `editing`, and a note sent from a claimed frame goes to the session holding it
69
+ - When you move, resize, edit, rename, or delete a claimed frame, your edit waits until the claim ends, under a card naming the agent
70
+ - A move, resize, or element edit then goes only if the agent left the frame as you saw it, and a rename or delete goes once the claim ends
71
+
72
+ ### Change marks and following
73
+
74
+ When an agent writes a frame, the board marks it with a dot and counts it on its page and project until you look at it.
75
+
76
+ - A toast names the agent and offers Show, which takes you to the change and makes the edited elements glow, and Next, or `]`, steps to the next one
77
+ - Click a listening agent's initial in the inspector header to follow it
78
+ - The board then pans to each frame it claims or writes, across pages, until you pan, zoom, or click the canvas yourself
79
+
80
+ ### Plugin
81
+
82
+ The Claude Code plugin in `plugins/frameboard/` runs the static checks after each agent write and hands the findings back in the same turn.
83
+
84
+ - Its monitor runs `inbox --follow` for the session, so a sent note reaches the agent at once
85
+
86
+ ## For you
87
+
88
+ ### Selecting
89
+
90
+ On the board, Cmd-click or double-click selects an element inside a frame.
91
+
92
+ - Enter, Esc, and Tab walk the tree, and the layers panel lists each frame's elements
93
+ - `selection` prints what you picked, with the element's index and hash ready for `edit`
94
+
95
+ ### Notes
96
+
97
+ Pin a note on a frame or one element with the Note tool, and Send hands it to a Claude Code session listening on the board.
98
+
99
+ - The agent answers in the note's thread through `notes reply` and closes it with `notes done`
100
+ - The notes stay in each page's `notes.json`
101
+
102
+ ### Hand edits
103
+
104
+ In the board you move and resize frames, add, rename, reorder, delete, and search pages, and add a frame at a phone, tablet, or desktop size with the Frame tool.
105
+
106
+ - On the home view, New project adds a project, and a card's right-click menu opens, renames, duplicates, or deletes one
107
+ - The inspector edits a selected element's name, opacity, radius, type size, weight, alignment, fill, stroke color, shadow, and text
108
+ - It offers the project's tokens first and flags a color no token names
109
+ - The layers panel selects, renames, restacks, hides, and locks frames, and Cmd+D, Cmd+C, Cmd+X, and Cmd+V duplicate, copy, cut, and paste them across pages and projects
110
+ - Cmd+F finds a frame, an element, or a line of copy on any page of the project and jumps to it
111
+ - Right-click a frame, an element, empty canvas, a page, or a layers row for the actions that apply there, such as Copy as PNG, Paste here, or Flip to light, which shows that frame alone in the other theme until you reload
112
+
113
+ Undo any of it with Cmd+Z. An undo of something an agent has changed since is refused and named on the board, so it never reverts the agent's work. Releases before 1.0 ship the board in stages, and the rest of editing by hand arrives in later 0.x releases.
48
114
 
49
115
  ## Requirements
50
116
 
51
117
  Frameboard runs on macOS and Linux, with Node 22 or later or with Bun. Windows support is planned.
52
118
 
53
- `capture`, `frame fit`, and `inspect` render in Playwright's headless shell. Without it, they print the command that installs it and download nothing.
119
+ `capture`, `frame fit`, `inspect`, and the home view's project thumbnails render in Playwright's headless shell. Without it, the commands print the command that installs it and download nothing, and each home card shows its frames as plain boxes.
54
120
 
55
121
  ## Links
56
122