Commit graph

2219 commits

Author SHA1 Message Date
Fini 46a082df2f fix(agent): stop the image repairs from reading an oversized plate as intent
Both of today's image repairs trusted an authored fixed size as the
design's intent. A weak model routinely drops a 400x300 plate into a
390px phone card and CROPS it - which looks right - so the rail repair
widened every card to 400 (one card ate the screen, the rest clipped
away) and the band repair grew every photo band to 300 (a wall of empty
space under each deal). Both now demand that the number be plausible for
the slot it is in: a card is starved only when it is genuinely unusable
and its demand still leaves the rail scrollable, and a band only takes a
photo's height when the result is not taller than the band is wide.
Oversized plates go back to the fixer that shrinks them.
2026-07-14 00:29:46 +08:00
Fini d992449a1c feat(editor): queued shells keep their skeleton, quietly
Suppressing the queue left holes in the middle of the skeleton while the
model was working the top - the skeleton-first effect is wanted, only one
shell may look ACTIVE. The on-deck shell (first empty in fill order)
keeps the radar sweep; every queued shell now paints a still wireframe -
outline plus a whisper of wash, no band - so the whole page reads as
planned-but-unwritten instead of half missing, and nothing downstream
pretends to be under the cursor.
2026-07-14 00:29:45 +08:00
Fini 2649cf7335 style(editor): even out the chip gaps and make the expander read as a select
A chip sat 6px under the paragraph it followed but 14px above the next
one, so it read as belonging to the story below it rather than the one
it came from; both sides now take the same breathing room. The expander
also becomes the reference's stacked up/down caret pair instead of a
navigational chevron-right.
2026-07-14 00:29:44 +08:00
Fini f3b52854bb style(editor): quiet the tool-chip status glyph
The check read as a second focal point next to the verb; the glyph drops
to 11px with a tighter ring and stroke.
2026-07-14 00:29:43 +08:00
Fini 929ea1dbf6 fix(agent): one image per slot, and a photo band that shows the photo
Five destination cards rendered as five identical blue bands. The photos
were fine and all different - the cards were the problem. Each card's
image slot carried TWO images (an absolutely-positioned image-filled
plate AND the real image node) inside a band authored 56px tall against
a 130px photo, so all that survived the clip was each photo's sky.

The duplicate plate is dropped (the image node wins - it is what the
image pipeline fills and re-searches), the band grows to the photo's own
declared height when it would hide more than half of it, and the starved
rail-card repair now reads fixed-width DESCENDANTS and assigns the
demand as a definite width: an out-of-flow photo plate contributes
nothing to a hug, so fit_content re-starved the very cards it was meant
to rescue (126px against a 200px plate). Replaying the measured document
through the repair loop: 4 geometry diagnostics to 0, cards 79px to
200px.
2026-07-14 00:29:42 +08:00
Fini 364859bf49 fix(editor): slim tool chips, clean the cursor halo, fix skeleton fill order
Three defects from one live run. The tool chips were 48px slabs with a
right-flushed status glyph; the reference reads as a 28px row with the
check inline after the verb. The cursor halo was three concentric
STROKES, whose joins banded into a dirty grey ring on the pencil's
corners - it is now a feathered stack of filled expansions (no joins,
no banding) that doubles as the contact shadow. And the work-order gate
was per-container, so a root's trailing bottom-nav shell lit up and took
the cursor while the model was still filling the header nested inside
the content wrapper; fill order is document order, so the deck is now
global to the generating root.
2026-07-14 00:29:41 +08:00
Fini d95b4ef425 refactor(editor): keep ai_chat_transcript under the 800-line cap
Flow paint and the narration markdown normalizer move into the
interleave module they belong to.
2026-07-14 00:29:40 +08:00
Fini 39a3e700b8 feat(editor): interleave design-loop narration with per-call tool chips
Design-loop turns used to render as one collapsed 'N tool calls' row
above a monolithic prose wall. The transcript now splits the narration
at each call's stamped content offset and lays prose paragraphs and
headerless verb-chip panels in chronological order, so the story reads
top-to-bottom the way it happened; chips stay visible (nothing folded
away) and each card toggles its own expand override via the original
call index. Plain chat turns keep the grouped panel.
2026-07-14 00:29:39 +08:00
Fini e2a883ac2f fix(agent): unstarve horizontal rail cards squeezed below their own content
A rail whose fill-width cards resolve skinnier than the fixed-width
content they carry paints clipped image slivers and truncated labels
(measured: a 5-card destination rail sharing one screen width at ~58px
per card around 160px images). The authored fixed content proves the
intended card width, so cards hug it and the rail becomes a clipped
scroller - the clip also keeps the overfull-row flexifier from undoing
the repair next round. Forensic harness gains OP_FORENSIC_FIX=1 to
replay the repair loop on a saved document.
2026-07-14 00:29:38 +08:00
Fini 33a93dedcc feat(ai): design-system bootstrap teaching and end-to-end preset test
New designs are taught to apply a built-in design system first and build
on $--tokens (own variables reuse the shadcn vocabulary); the preset
tool is covered by a runtime test proving the full table lands, the Mode
axis registers and themed tokens flip between Light and Dark.
2026-07-14 00:29:37 +08:00
Fini 7714b66835 fix(agent): design tool-loop HTTP rides the shared throttle and backoff
The loop's own request path posted raw - a provider rate limit killed
the design run instantly with a raw JSON error, bypassing the adaptive
throttle, the retry ladder and the humanized message that the plain
chat path already had.
2026-07-14 00:29:36 +08:00
Fini be8fb65c0e fix(canvas): feather the cursor halo
A single wide 28% band read as a dirty grey ring - the glow is now three
concentric strokes with falling alpha, approximating a soft blur with
the primitives available.
2026-07-14 00:29:35 +08:00
Kayshen-X 20bf8f123b refactor(cli): split app control tests 2026-07-13 21:41:23 +08:00
Danny Ahn f8cfcab7fd fix(cli): validate document before starting headless MCP server
Preflight headless document loading so malformed or binary archives fail with a clear, actionable error before the MCP server starts.

Keep the CLI parser dependency lightweight by disabling op-pen-loader default features and include the updated lockfile plus regression coverage.
2026-07-13 14:29:48 +08:00
Kayshen-X bb0e85761b docs(readme): sync cli and skill guidance 2026-07-12 19:53:05 +08:00
Kayshen-X 7ec373c9a7 feat(cli): export pages nodes and live selection 2026-07-12 17:52:36 +08:00
Kayshen-X 1215633e54 feat(mcp): export pages nodes and live selection 2026-07-12 17:48:45 +08:00
Kayshen-X 6fc717546a feat(export): render resolved pages and nodes to bytes 2026-07-12 17:42:52 +08:00
Kayshen-X 4542d62a98 fix(web): handle pencil cursor settings selection 2026-07-12 15:02:05 +08:00
Kayshen-X a2c26855df chore(agent): update vendor agent submodule 2026-07-12 14:39:30 +08:00
Fini 2ed6f512ee feat(canvas): halo outline and fattened rounded pencil
User-picked O4 treatment: a wide translucent slate halo OUTSIDE the
white rim keeps the cursor silhouette readable on light designs while
the white edge stays crisp on dark ones (contact shadow relaxed to
compensate). The default rounded silhouette is additionally fattened
1.28x across the pencil axis with the tip hotspot fixed.
2026-07-12 13:21:34 +08:00
Fini 1875248224 fix(ui): normalize narration markdown after design-block extraction
Stripping backticks before the extractor destroyed the json fences it
keys on - three transcript hit tests caught it.
2026-07-12 13:11:16 +08:00
Fini c7931fb9a2 feat(mcp): apply_design_system tool and readable narration prose
apply_design_system applies one of the bundled presets (full variable
table + Mode theme axis) as a single undoable batch on both the MCP and
design-agent surfaces. The transcript additionally normalizes streamed
narration markdown - emphasis/backtick markers stripped, glued bold
headings re-broken onto their own lines, dash bullets rendered as
bullets - so the design-loop commentary reads as prose instead of
asterisk soup.
2026-07-12 13:10:15 +08:00
Fini 0c02e957fc feat(ai): bundle four built-in design-system variable presets
Complete shadcn-vocabulary token tables (background/card/primary/muted/
sidebar families plus font and radius tokens) with Light+Dark theme
values, parsed once from a bundled asset and exposed with a
set_variables-ready payload per preset. Groundwork for the
apply-design-system tool and shadcn-aligned variable naming.
2026-07-12 12:59:57 +08:00
Fini 208327e8c3 fix(orchestrator): search-shell normalizer no longer strips real search bars
The nested-shell pass misfired on a search bar whose children are bare
icon/text leaves (the bar IS the input): its authored background was
stripped, the search glyph painted white and the filter glyph re-inked
with a dangling $color-accent that rendered the fallback blue. The pass
now requires container children and, for the legit nested case, moves
the button's own demoted accent hex onto the glyph instead of a symbolic
ref.
2026-07-12 12:59:57 +08:00
Fini e63eb05bba feat(ui): user-selectable pencil cursor styles and Pencil-style narration flow
Settings > System gains a pencil-cursor picker - five silhouettes
(classic, rounded, chubby with a pink eraser, crayon, round-nib marker)
drawn as live swatches, rounded as the default, choice persisted in
~/.openpencil/ui.json and restored on launch. Design-loop narration
additionally streams as visible prose instead of folding into the
collapsed thinking area, and every tool call stamps the content offset
where it landed so the transcript can interleave prose with per-call
verb chips.
2026-07-12 12:32:59 +08:00
Kayshen-X bd7e28dadc fix(desktop): parse login shell paths consistently 2026-07-12 10:26:18 +08:00
Kayshen-X 206bae5b2b test(renderer): satisfy clippy for glyph coverage 2026-07-12 09:15:49 +08:00
Kayshen-X a6bb3b24ac test(editor): cover explicit center alignment controls 2026-07-12 09:14:49 +08:00
Kayshen-X 7a6f11a7f9 fix(web): refresh text rasters for effective scale 2026-07-12 09:13:49 +08:00
Kayshen-X 689c7cfd45 test(export): cover selected-node svg routing 2026-07-12 09:12:49 +08:00
Kayshen-X fb95d6b8b8 fix(editor): preserve scoped instance history states 2026-07-12 09:11:49 +08:00
Kayshen-X cb0842a5c9 feat(panels): reorder multiple fill layers 2026-07-12 09:10:49 +08:00
Kayshen-X df5a9aa8b2 test(i18n): preserve explicit locale across restart 2026-07-12 09:09:49 +08:00
Kayshen-X 4b96ac6bf0 fix(ai): surface custom provider connection failures 2026-07-12 09:08:49 +08:00
Kayshen-X 3a825cbfe1 feat(canvas): paste clipboard images as nodes 2026-07-12 09:07:49 +08:00
Kayshen-X 4fb6510ce0 test(renderer): cover Cyrillic design text fallback 2026-07-12 09:06:49 +08:00
Kayshen-X 0e15433239 fix(panels): keep layer actions clear of long names 2026-07-12 09:05:49 +08:00
Fini 0e10996674 feat(canvas): rounded pencil cursor silhouette
User-picked variant B: round shoulders at the eraser butt, a curved
collar seam and a soft tip wedge - the quadratic arcs are baked as
dense polygon samples so the existing polygon painters render them
smoothly with no new backend primitive.
2026-07-12 04:19:01 +08:00
Fini c447fcf998 feat(canvas): queued shells stay invisible until their turn
Waiting skeleton shells painted their author-given dark fills as odd
slabs below the section being worked. They now keep their layout slot
but paint nothing until they become the on-deck shell (Pencil shows
plain canvas where work has not reached). The agent colour pool also
swaps golden yellow and pale mint for cobalt and emerald - the white
pill label was unreadable on both.
2026-07-12 04:13:52 +08:00
Fini 518a51a9c7 fix(panels): readable layer hover icons and a quieter globe button
The eye/lock hover glyphs drew straight over long layer names - they
now sit on a locally rebuilt row surface (panel bg + the row's own
wash). The locale globe drops its chevron and paints like its icon
siblings.
2026-07-12 04:04:22 +08:00
Fini 5ec0b7102b fix(ui): design turns wear the run's agent persona
A DeepSeek turn was labelled 'Codex CLI' - built-in models no longer
wear a CLI's name (they show their provider group label), and a design
run restamps the streaming bubble with its assigned persona name and
colour, matching the canvas cursor pill and badge.
2026-07-12 04:04:22 +08:00
Fini 57cbb5dabc fix(canvas): scan follows pure work order across regions
The size-based exclusion kept the dashboard's main column dark even
while its own subtask was running - content then popped in with no
skeleton at all. Work order alone expresses both measured expectations:
a later region stays plain while an earlier shell is unfilled, and the
big column washes the moment it becomes the first empty shell.
2026-07-12 04:04:22 +08:00
Fini 075b1f25eb refactor(ui): retire the fixed 'Pencil it out' checklist panel
The pinned checklist duplicated what the transcript already renders
inline (action steps, subtask cards, verb chips, agent narration - the
Pencil-style reading flow), while eating a third of the panel's height.
The transcript is now the single progress surface; the checklist
widget, its hit/scroll wiring on both hosts and its ChatState fields
are removed.
2026-07-12 03:34:36 +08:00
Fini 2586f06cc3 fix(orchestrator): stretch the empty content column to the artboard
The two-column scaffold's Main Content was fit_content and collapsed to
its own padding (a 940x64 strip beside a full-height sidebar) until the
first subtask landed. With the root now presetting a full artboard
height the empty column can safely fill it; the finalize height-adjust
still sizes the root off real content.
2026-07-12 03:16:15 +08:00
Fini 6fe4c8f5e6 fix(agent): salvage duplicate-echo scripts and gate scan to work order
DeepSeek V4 sometimes echoes a whole script-gen source a second time
glued mid-line, and the re-declared consts threw 'invalid redefinition'
- a valid section then burned its retries. A new repair rung detects the
first declaration recurring and runs the first copy alone. The
placeholder scan additionally follows work order: within each container
only the first empty shell (the one on deck) washes, so a queued right
column never glows while the sidebar is still being output.
2026-07-12 03:01:28 +08:00
Fini b61a859396 chore(vendor): bump agent runtime submodule 2026-07-12 02:56:43 +08:00
Fini 3173524f7b chore(smoke): audit rubric and loop-vs-orchestrator A/B harness
Headless audits now report chrome completeness, node-kind vocabulary and
density alongside the issue counts; scripts/ab-g3 runs the same prompts
through both generation paths and tabulates the rubric for routing
decisions.
2026-07-12 02:56:43 +08:00
Fini f47c092247 feat(canvas): theme-adaptive image placeholder art
The missing/failed-image fallback derives its dash + glyph grey from the
slot's own fill luminance (one fixed grey was invisible on dark
designs); the search-failure sentinel src routes here so a failed
enrichment reads as an intentional placeholder.
2026-07-12 02:56:43 +08:00
Fini e26637debd feat(desktop): resilient agent runtime and cross-launch connections
CLI provider connections persist (connected flags only) and replay as
silent probes on launch; GUI launches graft the login-shell PATH onto
the process so CLI agents and API keys resolve without a terminal;
provider rate limits ride an adaptive throttle with longer retries and
a human-readable terminal error; quota errors fold into the transcript
as a sentence instead of raw JSON. Design turns keep the artboard in
view (fit on first sized root, refit only when growth pushes it out),
run the structural finalize backstop even when a turn dies early, and
image enrichment fills small and anonymous media slots with junk-free,
session-deduplicated, artifact-word-stripped searches - failures land a
theme-adaptive placeholder instead of a bare grey box.
2026-07-12 02:56:26 +08:00