ponzu 1.79.1 → 1.80.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33646,7 +33646,7 @@ Workflow
33646
33646
  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.
33647
33647
  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.
33648
33648
  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.
33649
- 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.
33649
+ 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. Color it with light-dark() tokens so it suits the person's canvas in either theme (Light and dark, below). The canvas is infinite, so annotate generously. Comments are for what needs the person: a question, a decision, something you couldn't do.
33650
33650
 
33651
33651
  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.
33652
33652
 
@@ -33663,7 +33663,8 @@ HTML and CSS
33663
33663
 
33664
33664
  Light and dark
33665
33665
  The person may have their canvas in dark mode; get_basic_info says which. Artboards show in that theme, and screenshots default to it.
33666
- - A design with one look doesn't need to change: plain colors stay as they are in both themes.
33666
+ - Boards you make to talk to the person follow their canvas. Notes, explainers, diagrams, comparisons, decision docs, plans and cost tables are read, not shipped: give them light-dark() colors so a dark canvas shows them dark and a light one light. A few tokens cover them: paper, raised surface, ink, muted ink, line and an accent, e.g. --note-paper: light-dark(#f6f5f2, #1b1b1a). Do this even in a design whose product screens have one look.
33667
+ - A product's own screens follow the product. One that has a single look keeps it: plain colors stay as they are in both themes.
33667
33668
  - A design with both themes puts every color in a light-dark() token: --color-paper: light-dark(#fafaf9, #121212). Use the tokens for text, surfaces, borders, shadows and dot grids alike. A raw #fff or rgba(0,0,0,.06) beside them stays light when the rest turns dark.
33668
33669
  - Content that should look one way in either theme (a mock of a light app, a photo's caption, a code block) sets color-scheme: light or dark on its wrapper. light-dark() inside it then picks that side.
33669
33670
  - Lint checks a themed design's colors in both themes, and says which text or surface stops reading in the other one. Screenshot the other theme with colorScheme before you call it done.
@@ -33842,7 +33843,7 @@ Start every session with get_basic_info, then read_notes, then get_guide('basics
33842
33843
 
33843
33844
  For a product shot (faux product UI for a launch page: a hero, a feature card, a bento grid, a cursor walking through a flow), read get_guide('product') first.
33844
33845
 
33845
- Build in small pieces, screenshot often, and fix what lint reports. Screenshots show the theme the person's canvas is in; a design with both themes uses light-dark() tokens for every color. record shows animation and hover states frame by frame. Put design decisions in tokens and notes. Variations go next to the original, never over it. The canvas shows which artboards you're changing; set_status tells the person what you're doing, and its intent, set once per request, says what they asked for.
33846
+ Build in small pieces, screenshot often, and fix what lint reports. Screenshots show the theme the person's canvas is in; a design with both themes uses light-dark() tokens for every color, and so do the notes, diagrams and docs you make to explain something to the person, so they read on a dark canvas too. record shows animation and hover states frame by frame. Put design decisions in tokens and notes. Variations go next to the original, never over it. The canvas shows which artboards you're changing; set_status tells the person what you're doing, and its intent, set once per request, says what they asked for.
33846
33847
 
33847
33848
  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.
33848
33849
 
@@ -34515,7 +34516,7 @@ var orientTools = [
34515
34516
  \u2026 ${more} more; move these and call get_basic_info again for the rest` : ""}`);
34516
34517
  }
34517
34518
  if (ws.theme)
34518
- lines.push(isThemed(doc.tokens) || doc.pages.some((p) => p.artboards.some((ab) => isThemed("", ab.root))) ? `The person's canvas is in ${ws.theme} mode, so they see this design's light-dark() colors in ${ws.theme}. Screenshots default to it.` : `The person's canvas is in ${ws.theme} mode. These tokens don't change with the theme, so artboards show as they are in both.`);
34519
+ lines.push(isThemed(doc.tokens) || doc.pages.some((p) => p.artboards.some((ab) => isThemed("", ab.root))) ? `The person's canvas is in ${ws.theme} mode, so they see this design's light-dark() colors in ${ws.theme}. Screenshots default to it.` : `The person's canvas is in ${ws.theme} mode. These tokens don't change with the theme, so artboards show as they are in both. Notes, diagrams and docs you make for the person should still follow it: give them light-dark() colors.`);
34519
34520
  const others = ws.presence.list().filter((p) => p.working.length);
34520
34521
  if (others.length)
34521
34522
  lines.push(`Working now: ${others.map((p) => `${p.name} on ${p.working.join(", ")}`).join("; ")}`);
@@ -50129,7 +50130,7 @@ function remoteUpdater(endpoint, token) {
50129
50130
  // apps/cli/package.json
50130
50131
  var package_default = {
50131
50132
  name: "ponzu",
50132
- version: "1.79.1",
50133
+ version: "1.80.0",
50133
50134
  description: "The open source canvas your agent draws on in HTML and CSS.",
50134
50135
  type: "module",
50135
50136
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ponzu",
3
- "version": "1.79.1",
3
+ "version": "1.80.0",
4
4
  "description": "The open source canvas your agent draws on in HTML and CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",