ponzu 1.77.0 → 1.78.1
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 +24 -2
- package/dist/chromium.js +1900 -10
- package/dist/index.js +2222 -23
- package/package.json +1 -1
- package/studio/assets/index-hYi5NSUG.js +2383 -0
- package/studio/index.html +1 -1
- package/studio/assets/index-CiK0x3TD.js +0 -2361
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Any other MCP client can launch `ponzu mcp` over stdio, or use `http://127.0.0.1
|
|
|
53
53
|
|
|
54
54
|
### The plugin
|
|
55
55
|
|
|
56
|
-
Claude Code and Codex can also install Ponzu as a plugin. It adds Ponzu's skills (start a design from a brief, bring a screen into Ponzu, explore variations, implement a design, watch your comments) and the same server the app sets up. It launches the Mac app's server, so open the app once first.
|
|
56
|
+
Claude Code and Codex can also install Ponzu as a plugin. It adds Ponzu's skills (start a design from a brief, bring a screen into Ponzu, explore variations, make a product shot, implement a design, watch your comments) and the same server the app sets up. It launches the Mac app's server, so open the app once first.
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
59
|
claude plugin marketplace add north-brook/ponzu && claude plugin install ponzu@ponzu
|
|
@@ -105,7 +105,7 @@ Each artboard file holds one `<section data-artboard>`. Its size is the `width`
|
|
|
105
105
|
|
|
106
106
|
- **Edit it however you like.** Ponzu watches the folder. An edit from your editor, `sed` or another agent shows up live and becomes an event agents can react to.
|
|
107
107
|
- **Ids are lazy.** Hand-written elements get stable ids derived from their position. Ponzu writes an id into a file only when something needs to point at it.
|
|
108
|
-
- **Inert by default.** `<script>`, `on*` handlers and `javascript:` URLs are stripped on load.
|
|
108
|
+
- **Inert by default.** `<script>`, `on*` handlers and `javascript:` URLs are stripped on load. The one script kept is a scene (below), which is data, never code.
|
|
109
109
|
- **Comments are pins.** A thread in `comments.json` sits on an artboard (`artboardId`, plus `nodeId` for a node in it) or on a page's open canvas (`pageId`), at `x`/`y`. One missing a field isn't shown, and stays in the file until it's fixed.
|
|
110
110
|
- **Agents can read the format too.** `get_guide('format')` gives them every file's fields, with examples, for importing or generating a design by writing it directly.
|
|
111
111
|
- **Fonts just work.** Google Fonts named in `font-family` load automatically on the canvas and in screenshots.
|
|
@@ -113,6 +113,26 @@ Each artboard file holds one `<section data-artboard>`. Its size is the `width`
|
|
|
113
113
|
|
|
114
114
|
To implement a design, point your coding agent at the folder. The HTML, tokens and comments are the spec.
|
|
115
115
|
|
|
116
|
+
### Scenes
|
|
117
|
+
|
|
118
|
+
An artboard can play itself as a product demo: a cursor that moves, clicks and types, a toast that rises, a total that rolls. The artboard's HTML holds the finished screen, and one `<script type="ponzu/act">` in it lists the beats:
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<script type="ponzu/act">
|
|
122
|
+
click @Field
|
|
123
|
+
type @Email placeholder=@Placeholder
|
|
124
|
+
click @Invite
|
|
125
|
+
show @"New member" grow
|
|
126
|
+
& show @Toast rise
|
|
127
|
+
count @Seats from 4
|
|
128
|
+
poster
|
|
129
|
+
wait 2000
|
|
130
|
+
reset
|
|
131
|
+
</script>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
It never runs as code. Ponzu measures the board and turns each beat into Web Animations, so a scene pauses and seeks like any CSS animation: the canvas loops it, a screenshot shows its `poster` frame, and `record` films a storyboard with one frame per beat. Hover, press and focus come from the design's own `:hover`, `:active` and `:focus` rules and their transitions. `get_guide('act')` is the language; `get_guide('product')` is how to make a product shot worth looking at, adapted from [Stageshow](https://github.com/benjitaylor/skills) by Benji Taylor; [`examples/product-shots.design`](examples/product-shots.design) has three to start from.
|
|
135
|
+
|
|
116
136
|
### Share it from GitHub
|
|
117
137
|
|
|
118
138
|
A `.design` committed to a public repo opens on the canvas at `ponzu.design/gh/<owner>/<repo>/<path/to/name.design>`, read-only, with its comments, images and fonts: [this repo's Kettle](https://ponzu.design/gh/north-brook/ponzu/examples/kettle.design), for one. Add `@<branch, tag or commit>` to the repo for another ref, or leave off the path to list every design in the repo. Link it from your README with a badge labelled by the design's name; without `?label=` it reads "open in | Ponzu":
|
|
@@ -168,6 +188,8 @@ About thirty tools in six groups. `get_guide` serves the house rules.
|
|
|
168
188
|
| Converse | `list_comments` `get_comment` `create_comment` `reply` `set_comment_status` `send_feedback` |
|
|
169
189
|
| Listen + remember | `wait_for_activity` `set_status` `write_note` `read_notes` `get_guide` |
|
|
170
190
|
|
|
191
|
+
Guides cover the basics, layout, type, motion, product shots, scenes and a kit of windows and phones at real geometry, among others.
|
|
192
|
+
|
|
171
193
|
Skills for agents that support them ship in [the plugin](#the-plugin), in [`plugin/skills/`](plugin/skills).
|
|
172
194
|
|
|
173
195
|
## Telemetry
|