Agent builds designs block by block; fix the Linux release - #15
Merged
Merged
Conversation
The Linux release failed: electron-builder publishes a snap to the Snap Store as well as to GitHub, through snapcraft's 'push' command, which snapcraft renamed to 'upload' (exit status 64). The workflow has no Snap Store credentials either. The snap now goes to the GitHub release like the AppImage, deb, rpm and pacman packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KissRTEwCeUS6CQDfps5SW
Models put whole images in one HTML block and declared no variables, so nothing could be adjusted from the panel. The design guide (Agent prompt, MCP instructions and get_design_guide) now: - asks to build block by block: background with set_canvas_background, every headline and paragraph as a text block, one add_block per piece - says what each block type is for, with proven layouts and an example plan for 1080x1350 - sets a contract for HTML blocks: one component sized to its content, short labels only, and a :root block of annotated variables for colors, sizes, radius, shadow, icon and show/hide flags (booleans read with a container style query), with a worked stat tile example - adds those rules to the workflow and the final checklist add_block and update_html_block now answer with hints when an HTML block declares no variables, covers most of the canvas or holds paragraphs of text, so the model fixes it in the same turn. The add_block, HTML block and update_html_block descriptions say the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KissRTEwCeUS6CQDfps5SW
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent and MCP: block by block, with editable HTML blocks
Models were putting whole images into one HTML block and declaring no variables, so nothing could be adjusted from the panel. The design guide (shared by the Agent prompt, the MCP instructions and
get_design_guide) now covers:set_canvas_background, every headline and paragraph is a text block, and there is oneadd_blockper piece, from the back to the front. The workflow gains a planning step: list each block with its type and box before building.:rootblock of annotated variables for colors, sizes, radius, shadow, icon and show/hide flags.@container style(--flag: false), with no JavaScript.add_blockandupdate_html_blocknow answer withhintswhen an HTML block declares no variables, covers more than 45% of the canvas, or holds more than 40 words of text, so the model fixes it in the same turn (src/lib/agent/tools/html-hints.ts). The descriptions of the tools and of the HTML block type say the same.I checked the guide's example in the app: the panel shows 8 controls, the icon renders,
--show-icon: falsehides it, and it produces no hints.Fix: Linux release
The release failed at the snap: electron-builder also uploads it to the Snap Store through
snapcraft push, which snapcraft renamed toupload(exit status 64). The workflow has no Snap Store credentials either.snap.publishnow only lists GitHub, so the.snapis uploaded to the release like the AppImage, deb, rpm and pacman packages.Checks
tsc: passeseslint: 0 errors🤖 Generated with Claude Code
https://claude.ai/code/session_01KissRTEwCeUS6CQDfps5SW
Generated by Claude Code