ponzu 1.76.0 → 1.77.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
@@ -66,7 +66,7 @@ Then ask for something:
66
66
 
67
67
  > Design a landing page for a houseplant shop in a new `design/shop.design`. Give me three takes on the hero.
68
68
 
69
- When an agent points you at a design, it gives you a link rather than a folder path, so it opens in Ponzu instead of your editor: `https://ponzu.design/local#mac=workstation&file=/path/to/app.design&artboard=ab_hero` for the Mac app, or the canvas's own `http://localhost:7777/?file=…` under `ponzu serve`. `artboard` is optional and opens on that board. `mac` is the Mac the design is on, by its Tailscale name, so the link opens on your other Macs too, through Ponzu's link between them; without Tailscale it's left out and the link opens the path on the Mac you click it on. The ponzu.design page hands the design to the app as `ponzu://open?mac=…&file=…` (chats drop links in schemes they don't know) or offers the download if Ponzu isn't installed; the path stays after the `#`, which browsers never send to the site. `/local` sits beside `/gh` for designs on GitHub.
69
+ When an agent points you at a design, it gives you a link rather than a folder path, so it opens in Ponzu instead of your editor: `https://ponzu.design/local#mac=workstation&file=/path/to/app.design&artboard=ab_hero` for the Mac app, or the canvas's own `http://localhost:7777/?file=…` under `ponzu serve`. `page` and `artboard` are optional: `page=<id>` opens on that page, `artboard=<id>` on that board, and with both it opens on the board when it's on that page, otherwise on the page. `mac` is the Mac the design is on, by its Tailscale name, so the link opens on your other Macs too, through Ponzu's link between them; without Tailscale it's left out and the link opens the path on the Mac you click it on. The ponzu.design page hands the design to the app as `ponzu://open?mac=…&file=…` (chats drop links in schemes they don't know) or offers the download if Ponzu isn't installed; the path stays after the `#`, which browsers never send to the site. `/local` sits beside `/gh` for designs on GitHub.
70
70
 
71
71
  To go back and forth on a design, use the `watch` prompt (or say "watch my comments in Ponzu"). The agent watches the canvas for your comments, handles each one and resolves it, replying only to answer a question or flag something. Agents also start watching on their own once they've put work up for you to review, and you can still chat with them while they do.
72
72
 
package/dist/chromium.js CHANGED
@@ -9066,13 +9066,14 @@ var MAC = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
9066
9066
  var OPEN_PAGE = "https://ponzu.design/local";
9067
9067
  function designLink(path, opts = {}) {
9068
9068
  if (opts.origin)
9069
- return `${opts.origin}/?${designQuery(path, { artboard: opts.artboard })}`;
9069
+ return `${opts.origin}/?${designQuery(path, { page: opts.page, artboard: opts.artboard })}`;
9070
9070
  return `${OPEN_PAGE}#${designQuery(path, opts)}`;
9071
9071
  }
9072
- function designQuery(path, { artboard, mac }) {
9072
+ function designQuery(path, { page, artboard, mac }) {
9073
9073
  const file = encodePart(path).replace(/%2F/g, "/");
9074
9074
  const at = mac && MAC.test(mac) ? `mac=${mac}&` : "";
9075
- return `${at}file=${file}${artboard ? `&artboard=${encodePart(artboard)}` : ""}`;
9075
+ const on = page ? `&page=${encodePart(page)}` : "";
9076
+ return `${at}file=${file}${on}${artboard ? `&artboard=${encodePart(artboard)}` : ""}`;
9076
9077
  }
9077
9078
  function encodePart(s) {
9078
9079
  return encodeURIComponent(s).replace(/[()'*!]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
package/dist/index.js CHANGED
@@ -16027,13 +16027,14 @@ var MAC = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
16027
16027
  var OPEN_PAGE = "https://ponzu.design/local";
16028
16028
  function designLink(path, opts = {}) {
16029
16029
  if (opts.origin)
16030
- return `${opts.origin}/?${designQuery(path, { artboard: opts.artboard })}`;
16030
+ return `${opts.origin}/?${designQuery(path, { page: opts.page, artboard: opts.artboard })}`;
16031
16031
  return `${OPEN_PAGE}#${designQuery(path, opts)}`;
16032
16032
  }
16033
- function designQuery(path, { artboard, mac }) {
16033
+ function designQuery(path, { page, artboard, mac }) {
16034
16034
  const file = encodePart(path).replace(/%2F/g, "/");
16035
16035
  const at = mac && MAC.test(mac) ? `mac=${mac}&` : "";
16036
- return `${at}file=${file}${artboard ? `&artboard=${encodePart(artboard)}` : ""}`;
16036
+ const on = page ? `&page=${encodePart(page)}` : "";
16037
+ return `${at}file=${file}${on}${artboard ? `&artboard=${encodePart(artboard)}` : ""}`;
16037
16038
  }
16038
16039
  function encodePart(s) {
16039
16040
  return encodeURIComponent(s).replace(/[()'*!]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
@@ -33268,7 +33269,7 @@ Workflow
33268
33269
  3. Build in small pieces. One write_html call per visual group: a header, then a row, then a card. The person watches the canvas as you work.
33269
33270
  4. screenshot after every few writes. Read the lint lines. Fix clipped text and overflow before moving on. When you add motion or states, record them (get_guide('motion')). If a screenshot fails, its error says why: a renderer that didn't answer means the Ponzu app is busy or showing a dialog, so ask the person; one that isn't running is restarting, so try again shortly. Keep working in Ponzu rather than rendering the page some other way.
33270
33271
  5. The canvas shows which artboards you're changing on its own. To tell the person what you're doing, set_status with a few words. When you take on a new request, pass intent too: what they asked for, in one plain line.
33271
- 6. When you point the person at your work in chat, give them the Link from get_basic_info, not the folder path: a path opens their editor, the link opens Ponzu. Add &artboard=<id> to open on one artboard.
33272
+ 6. When you point the person at your work in chat, give them the Link from get_basic_info, not the folder path: a path opens their editor, the link opens Ponzu. Point at the exact work: add &artboard=<id> to open on one artboard, or &page=<id> to open on a whole page (a flow, a set of options). With both, it opens on the artboard if it's on that page, otherwise on the page.
33272
33273
  7. Explain your work on the canvas itself. A small artboard beside the work, named "Note: \u2026" with height fit-content, holds rationale, labels, a flow's arrows or what to compare. The canvas is infinite, so annotate generously. Comments are for what needs the person: a question, a decision, something you couldn't do.
33273
33274
 
33274
33275
  Several files open: a call without file goes to the file that holds the ids it passes, else the one you last created, named or edited. Pass file once to switch; list_files marks the current one.
@@ -33462,7 +33463,7 @@ Build in small pieces, screenshot often, and fix what lint reports. Screenshots
33462
33463
 
33463
33464
  The canvas is yours to annotate: a "Note: \u2026" artboard beside the work carries rationale, labels and what to compare. Comments carry what needs the person: a question, a choice, something you couldn't do.
33464
33465
 
33465
- To send the person to a design in chat, give them the Link from get_basic_info (with &artboard=<id> for one board), never the folder path: a path opens their editor, the link opens Ponzu.
33466
+ To send the person to a design in chat, give them the Link from get_basic_info (with &page=<id> for a page, &artboard=<id> for one board), never the folder path: a path opens their editor, the link opens Ponzu.
33466
33467
 
33467
33468
  When Ponzu gets in your way (a confusing tool, an error, something it can't do) or works notably well, tell the Ponzu team with send_feedback, then carry on.`;
33468
33469
 
@@ -34093,7 +34094,7 @@ var orientTools = [
34093
34094
  const lines = [docSummary(doc, { folderOf: (id) => folders.get(id) }), `Path: ${key}`];
34094
34095
  const link = ws.link?.(key, { origin: ctx.caller.reachedAt });
34095
34096
  if (link)
34096
- lines.push(`Link: ${link} (give the person this, not the path, to open it in Ponzu; add &artboard=<id> to open on one artboard)`);
34097
+ lines.push(`Link: ${link} (give the person this, not the path, to open it in Ponzu; add &page=<id> to open on a page, &artboard=<id> on one artboard)`);
34097
34098
  const tokens = parseTokens(doc.tokens);
34098
34099
  if (tokens.length) {
34099
34100
  const limit = 40;
@@ -47738,7 +47739,7 @@ function remoteUpdater(endpoint, token) {
47738
47739
  // apps/cli/package.json
47739
47740
  var package_default = {
47740
47741
  name: "ponzu",
47741
- version: "1.76.0",
47742
+ version: "1.77.0",
47742
47743
  description: "The open source canvas your agent draws on in HTML and CSS.",
47743
47744
  type: "module",
47744
47745
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ponzu",
3
- "version": "1.76.0",
3
+ "version": "1.77.0",
4
4
  "description": "The open source canvas your agent draws on in HTML and CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",