@agent-native/recap-cli 0.1.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/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +10 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/openai-compatible-endpoint.d.ts +3 -0
- package/dist/openai-compatible-endpoint.d.ts.map +1 -0
- package/dist/openai-compatible-endpoint.js +23 -0
- package/dist/openai-compatible-endpoint.js.map +1 -0
- package/dist/plan-blocks.d.ts +19 -0
- package/dist/plan-blocks.d.ts.map +1 -0
- package/dist/plan-blocks.js +96 -0
- package/dist/plan-blocks.js.map +1 -0
- package/dist/plan-publish-store.d.ts +62 -0
- package/dist/plan-publish-store.d.ts.map +1 -0
- package/dist/plan-publish-store.js +128 -0
- package/dist/plan-publish-store.js.map +1 -0
- package/dist/pr-visual-recap-workflow.d.ts +3 -0
- package/dist/pr-visual-recap-workflow.d.ts.map +1 -0
- package/dist/pr-visual-recap-workflow.js +3 -0
- package/dist/pr-visual-recap-workflow.js.map +1 -0
- package/dist/recap.d.ts +565 -0
- package/dist/recap.d.ts.map +1 -0
- package/dist/recap.js +3877 -0
- package/dist/recap.js.map +1 -0
- package/dist/skill-content/connection.d.ts +2 -0
- package/dist/skill-content/connection.d.ts.map +1 -0
- package/dist/skill-content/connection.js +53 -0
- package/dist/skill-content/connection.js.map +1 -0
- package/dist/skill-content/local-files.d.ts +2 -0
- package/dist/skill-content/local-files.d.ts.map +1 -0
- package/dist/skill-content/local-files.js +101 -0
- package/dist/skill-content/local-files.js.map +1 -0
- package/dist/skill-content/visual-recap-skill.d.ts +2 -0
- package/dist/skill-content/visual-recap-skill.d.ts.map +1 -0
- package/dist/skill-content/visual-recap-skill.js +548 -0
- package/dist/skill-content/visual-recap-skill.js.map +1 -0
- package/dist/skill-content/wireframe.d.ts +4 -0
- package/dist/skill-content/wireframe.d.ts.map +1 -0
- package/dist/skill-content/wireframe.js +347 -0
- package/dist/skill-content/wireframe.js.map +1 -0
- package/dist/skill-content.d.ts +8 -0
- package/dist/skill-content.d.ts.map +1 -0
- package/dist/skill-content.js +11 -0
- package/dist/skill-content.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const WIREFRAME_QUALITY_CORE = "<!-- SHARED-CORE:wireframe-quality START -->\n\n**A wireframe is an HTML mockup. The renderer owns the look; you write the\ncontent.** Set `data.html` to a self-contained, semantic HTML fragment of the\nscreen and set `data.surface`. The renderer owns the surface footprint/aspect,\nthe dark/light theme, the hand-drawn font, and the rough.js sketch overlay \u2014 you\nnever write `<html>`/`<body>`/`<script>`/`<style>` tags or any\nwidth/height/coordinates. You write real HTML layout and real product\ncontent; the renderer styles and roughens it.\n\n**A wireframe block's data is an HTML screen plus a surface:**\n\n```json\n{\n \"surface\": \"browser\",\n \"html\": \"<div style=\\\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\\\"><h1>Sign in</h1><p class=\\\"wf-muted\\\">Use your work email to continue.</p><div class=\\\"wf-card\\\" style=\\\"display:flex;flex-direction:column;gap:10px\\\"><label>Email<input value=\\\"jane@acme.co\\\" /></label><label>Password<input value=\\\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\\\" /></label><label style=\\\"display:flex;align-items:center;gap:8px\\\"><input type=\\\"checkbox\\\" checked /> Remember me</label><button class=\\\"primary\\\">Sign in</button></div><a href=\\\"#\\\">Forgot password?</a></div>\"\n}\n```\n\n**Write PLAIN semantic HTML and let the renderer style it.** Bare elements\n(`h1`/`h2`/`h3`, `p`, `button`, `input`, `<input type=\"checkbox\">`, `a`, `hr`)\nare auto-themed \u2014 no classes needed. Helper classes carry the rest:\n\n- `.wf-card` / `.wf-box` \u2014 a bordered, padded container (a panel, a list item).\n- `.wf-pill` / `.wf-chip` \u2014 a rounded tag or filter; add `.accent`\n (`<span class=\"wf-pill accent\">`) for the accent-filled variant.\n- `.wf-muted` \u2014 secondary/muted text (or use `<small>`).\n- `button.primary` or any element with `[data-primary]` \u2014 the accent-filled\n primary button.\n\n**No decorative shadows around mockups.** Do not put `box-shadow`, `filter:\ndrop-shadow(...)`, Tailwind `shadow-*` classes, or other fake depth effects on a\nwireframe frame, root container, `.wf-card` / `.wf-box`, or canvas artboard.\nMockups should read as flat, bordered surfaces; use spacing, borders, labels,\nand annotations for separation. Only show a shadow when the real product UI\nalready has that shadow and it is essential to the change being reviewed.\n\n**Use renderer icons, not visible icon words.** For icon-only buttons or leading\nicons inside fields, chips, menu items, and toolbars, write an empty marker such\nas `<span data-icon=\"mail\" aria-label=\"Email\"></span>` or\n`<i data-icon=\"lock\"></i>`. The renderer replaces it with a Tabler-style SVG and\nthe `.wf-icon` class sizes it to the surrounding text. Supported names and\naliases: `mail`/`email`, `lock`/`password`, `search`, `plus`/`add`, `x`/`close`,\n`check`, `chevronDown`, `chevronUp`, `chevronLeft`, `chevronRight`, `dots`/`more`,\n`chevron`/`caret`/`dropdown` (down chevron), `user`, `settings`, `calendar`,\n`bell`, `send`, `edit`, `arrowLeft`, and `arrowRight`. Do not put visible words\nlike \"email\", \"lock\", \"search\", \"chevron\", or \"more\" where the product UI would\nshow an icon; use text only when it is a real label a user would read.\n\n**Use the `--wf-*` tokens for any custom color, never hex.** The renderer flips\nthese on light/dark, so reading them is what keeps a mockup correct in both\nthemes. For any inline border, background, or text color, reference a token:\n`style=\"border:1.4px solid var(--wf-line)\"`. The tokens are `--wf-ink` (text),\n`--wf-muted` (secondary text), `--wf-line` (borders/dividers), `--wf-paper`\n(page background), `--wf-card` (container surface), `--wf-accent` /\n`--wf-accent-fg` / `--wf-accent-soft` (brand action), `--wf-warn`, `--wf-ok`,\nand `--wf-radius`. Never hard-code a hex color and never set `font-family` \u2014 the\nrenderer owns the sketch/clean font.\n\n**Never use host/Tailwind theme classes in wireframe HTML.** Classes such as\n`bg-white`, `bg-zinc-50`, `bg-slate-950`, `text-zinc-950`,\n`text-slate-400`, `border-zinc-200`, `hover:bg-slate-800`, `shadow-xl`,\nor arbitrary color utilities like `bg-[#fff]` leak the host app's CSS into the\nmockup and can make dark-mode canvas frames unreadable. Use bare semantic\nelements, `.wf-*` helper classes, and `--wf-*` color tokens instead. Before\npublishing, scan every wireframe `class` and `style` attribute: if a class sets\nbackground, text, border, ring, fill, stroke, gradient, placeholder, decoration,\nor shadow color, rewrite it to renderer tokens or remove it. Layout-only classes\nare still discouraged; inline flex/grid styles are safer and easier to review.\n\n**Keep Rough.js sparse.** The renderer sketches the outer frame, standard\n`.wf-*` primitives, controls, and inline border dividers by default. Do not add\n`data-rough` to broad root wrappers, dialog shells, page panels, grid cells, or\nnested containers unless that single container is the visual point. Use\n`data-rough` only for a deliberate one-off shape. If a mockup starts looking\nlike stacked/overlapping sketch lines, remove rough targets from parent\ncontainers and let backgrounds plus spacing separate the surfaces.\n\n**Use literal CSS lengths for spacing.** The `--wf-*` tokens are for colors and\nrenderer-owned visual styling, not layout spacing. Do not use guessed spacing\ntokens such as `var(--wf-space-4)`, Tailwind spacing classes, or theme spacing\nvariables inside wireframe HTML; if a token is unavailable in the Plan renderer,\npadding collapses and content hugs the border. Use explicit CSS lengths for\nlayout: `padding:16px`, `gap:12px`, `margin-top:18px`, `minmax(0,1fr)`.\n\n**Lay out with inline `style` flex/grid.** You write the real layout \u2014\n`display:flex; flex-direction:column; gap:10px; padding:16px` and so on \u2014 and the\nrenderer never repositions anything. Compose the actual product: reproduce the\ncurrent screen, then show the modification. Real labels, real counts, real dates,\nreal button text grounded in the screen you read; not lorem or gray bars.\n\n**Surface presets \u2014 match the real footprint, never default to desktop+mobile.**\nPick the `surface` that matches what the user will actually see:\n\n- `browser`: a web page that needs a browser chrome frame around it.\n- `desktop`: a full desktop app page or app shell.\n- `mobile`: a phone screen, only when the work is genuinely mobile.\n- `popover`: a small floating menu, dropdown, or inline popover.\n- `panel`: a side panel, inspector, or sidebar widget.\n\nA sidebar popover renders as a small surface, not a desktop page and a phone\nframe. Do not emit `desktop` + `mobile` variants unless responsive behavior\nactually changes the layout. For a component or widget, show one broader\napp-context frame only when placement affects understanding, then the focused\ncomponent states.\n\n**Model the actual component shell for small surfaces.** A rendered UI change\nbelongs in a wireframe; reserve `diagram` for architecture, dependency, state,\nor data-flow relationships. Popovers, dropdown menus, command palettes, and\ncontext menus use `surface: \"popover\"` unless the surrounding page placement is\nthe point of the change. Dialogs, sheets, inspectors, sidebars, and long\nproperty panels use the matching `panel` / `desktop` surface as appropriate.\nShow the real chrome: trigger or anchor when it matters, title/header row,\ntop-right actions, separators, fields, options, selected states, body content,\nand footer actions that are visible in the workflow.\n\n**Modify, don't redesign.** When the task changes an existing screen, reproduce\nthe current screen's real layout and footprint FIRST, then change only the delta\nand call it out with a single annotation. Do not restack the page into a new\nlayout. For net-new surfaces, compose from the real app shell. Inspect the\nactual app components before drawing an existing product: sidebar density,\ntoolbar actions, overflow menus, property panels, and framework chrome should\nmatch the product unless the plan intentionally changes them.\n\n**Keep product screens pure.** A product wireframe shows the app state a user\nwould actually see. Do not embed file contracts, architecture arrows, repo pills,\nmode explanations, or implementation callouts inside the screen just to explain\nthe plan. Put those in canvas annotations, a separate diagram, or the document\nbody. Secondary UI such as properties, history, sync, export, or agent controls\nshould appear where the real product would put them: an overflow popover, sheet,\npanel, or separate framework sidebar state, not a generic permanent right\ninspector unless that inspector is the actual design.\n\n**Classify mockup scope before implementation.** Before turning a plan mockup\ninto source code, decide whether each artboard represents the whole page/app\nshell, a route body inside an existing shell, or a component/sub-surface. If an\nartboard includes navigation, sidebars, auth banners, or a signup/login form,\nmap those pieces to the real shared shell/auth components instead of nesting the\nentire mockup inside the current page. When a mockup references the product's\nstandard signup/login page, find and reuse that existing implementation; do not\napproximate it from the wireframe.\n\n**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a\npopover, menu, dialog, toast), show the full screen once, then add a small\nseparate artboard whose `html` contains ONLY that sub-surface \u2014 do not re-draw\nthe whole page around it, and do not scale a duplicate up. Pick the matching\n`surface` (e.g. `popover`) so the footprint is right; never widen a popover to\npage width.\n\n**Loading / skeleton states.** Set `data.skeleton: true` on the wireframe and\nfill the `html` with neutral, textless placeholder geometry \u2014 boxes and bars\nbuilt as `<div>`s with `background:var(--wf-line)` and explicit heights/widths,\nno labels or copy. The renderer drops borders, sketch, and color into the\nskeleton register automatically. Never escape to a `custom-html` document block\nto fake a loader.\n\n**Editing an existing mockup.** In hosted mode, to change one element, text, or\ncolor in an existing html mockup, do not regenerate the frame \u2014 call\n`update-visual-plan` with\n`contentPatches: [{ op: \"patch-wireframe-html\", blockId, edits: [{ find,\nreplace }] }]`. Each `find` is a unique snippet of the current html (read it\nfirst with `get-visual-plan`); set `all: true` on an edit to replace every\noccurrence. The result is re-sanitized. In local-files privacy mode, do not call\nhosted Plan tools; edit the local MDX source directly and rerun the local\ncheck/serve or verify command for `<plan-dir>`.\n\n**Choose the outer frame deliberately.** Wireframe and diagram data accept\n`frame: \"auto\" | \"show\" | \"hide\"` in block data (`<Screen frame=\"hide\">` in\nMDX wireframes, `<Diagram frame=\"hide\">` for MDX diagrams). Leave it unset or\n`auto` when the host context should decide: Plan and recap surfaces default to a\ndrawn outer frame; docs surfaces default to no outer frame. Use `show` for\nstandalone product screens, before/after recap comparisons, screenshot-like\nartifacts, and visuals that need containment from surrounding prose. Use `hide`\nwhen a docs page, tab, column, card, canvas artboard, or the visual's own\ninternal chrome already supplies the boundary. Do not use `hide` to compensate\nfor cramped content; fix the layout instead.\n\n**Inner padding and borders still matter.** Always wrap HTML wireframe content\nin a root container with real inner padding before drawing cards, fields, pills,\nlabels, or controls. Use at least 14-16px of padding, `box-sizing: border-box`,\n`height: 100%`, and `gap` between child rows on the root node itself so the\nfirst row never sits flush against the screen edge. Do not rely on padding on a\nnested page section as the first visible inset; the outermost element must\ncreate the breathing room. Keep text away from borders: every container, field,\nbutton, menu item, and annotation needs enough padding and line-height to read\ncleanly in the rendered Plan view.\n\n**For feature-cloud or abundance visuals, optimize the composition over line-by-line\nreading.** Some marketing/product sections need to feel like a large surface area\nof capability rather than a precise app workflow. In those cases, use one padded\nroot with a short headline and a dense, aesthetic cloud of short feature labels,\nchips, rings, or columns. Vary scale and opacity with tokens, cluster by meaning,\nand let many labels be glanceable rather than individually essential. Do not\nforce dozens of features into equal cards with long wrapped sentences; that\nusually creates a messy unreadable mockup.\n\n**Lay out children safely so they never collide.** Use HTML flex/grid with\n`gap`, `min-width: 0`, and sensible overflow. Avoid negative margins, absolute\npositioning, or fixed child widths that can collide when the renderer switches\nbetween light/dark, sketch/clean, or different zoom levels.\n\n**Do not wrap intentionally single-line labels.** For toolbars, tab rails,\nbreadcrumbs, chip/filter rows, branch and file names, file chips, and code\nfilenames \u2014 any deliberately single-line row \u2014 do not let long text wrap. Put\n`white-space: nowrap` on the row (and `overflow: hidden; text-overflow: ellipsis`\non the individual labels that can grow), so the wireframe demonstrates the actual\nlayout behavior instead of producing ugly stacked or vertical text. Use\nhorizontally scrollable or clipped rails for overflow.\n\n**Fill the frame; keep labels short.** Each artboard is a fixed-size surface \u2014 compose enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill (`flex:1`) and add any persistent bottom action/status after it so the rail reads complete in taller frames. On mobile especially, flow real rows down the whole screen (status bar, header, then list/detail content) rather than a header floating above a gap. Keep every label short enough to sit on one line within its column \u2014 shorten the copy rather than relying on the frame to absorb it (long labels wrap or clip).\n\n**Persistent chrome bars span the full frame width.** Top bars, app headers,\ntoolbars, and bottom tab/nav bars are full-width chrome, not centered content.\nLay each one out as a single flex row that fills the frame\n(`style=\"display:flex;align-items:center;width:100%\"`) and push trailing actions\nto the right edge with a flex spacer (`<div style=\"flex:1\"></div>`) between the\nleading group and the trailing group \u2014 never center a bar inside a narrow,\ncentered block, and never let it collapse to the width of its contents. In a\nBefore/After pair the bar stays full-width in BOTH states even when one state has\nfewer controls; the spacer absorbs the difference so the remaining controls hold\ntheir edge alignment instead of sliding to the center.\n\n**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and\nany persistent bottom action row, make the frame itself a flex column at\n`height:100%` (`style=\"display:flex;flex-direction:column;height:100%\"`), give the\nscrolling body `flex:1` so it absorbs the slack, and place the bar as the LAST\nchild of the frame (or set `margin-top:auto` on it). The bar then sits flush at\nthe bottom of the surface instead of floating directly under the content with an\nempty band beneath it.\n\n**Before / after must be comparable.** When showing a state change, preserve the\nunchanged controls in both states so the reviewer can see exactly what moved or\nappeared; do not show an added control as a generic box floating elsewhere in\nthe surface. Place the new/changed affordance where the implementation puts it \u2014\nfor example, a new `Edit with AI` action in a popover header belongs in the\ntop-right header slot, aligned with the title, not in the body or footer. Use\nthe same frame size, scale, outer padding, border radius, and visual density on\nboth sides unless the change itself alters those properties, and let the frame\nheight fit the content rather than leaving a tall empty lower half.\n\n**Name the states with the column header, never inside the frame.** For\ndocument-body wireframes (recaps), put the two\nstates in a `columns` block and set each column's `label` to `Before` and\n`After` \u2014 the renderer draws that label as an `h4` heading above each frame. Do\nNOT bake a `Before`/`After` pill, title, or heading into the wireframe `html`: a\nlabel placed inside reads as part of the product UI, lands in a random corner,\nand clutters the comparison. The column header is the one and only place the\nstate name belongs. On a canvas, place the two state artboards as neighbors with\nframe labels \u2014 never encode Before/After inside the html.\n\n**Let the surface choose side-by-side vs. stacked.** For document-body\nwireframes (recaps), the `columns` renderer lays\nnarrow surfaces (`mobile`, `popover`, `panel`) out side by side, and\nautomatically stacks wide surfaces (`desktop`, `browser`) vertically at full\ndocument width so a large frame is never crushed into a half-width column and\ncropped. Author both wireframes with the real `surface` and the matching\n`Before`/`After` column labels; do not hand-stack the pair into separate\ntop-level wireframes or duplicate the state name as body content.\n\n**Good example \u2014 a contacts list, surface `browser`.** A small, real screen\ncomposed from the helper classes and tokens, layout in inline flex, no fonts or\nhex colors:\n\n```html\n<div\n style=\"display:flex;flex-direction:column;gap:12px;padding:16px;height:100%\"\n>\n <div style=\"display:flex;align-items:center;justify-content:space-between\">\n <h1>Contacts</h1>\n <button class=\"primary\">New contact</button>\n </div>\n <div style=\"display:flex;gap:6px\">\n <span class=\"wf-pill accent\">All 128</span>\n <span class=\"wf-pill\">Favorites</span>\n <span class=\"wf-pill\">Archived</span>\n </div>\n <div\n class=\"wf-card\"\n style=\"display:flex;flex-direction:column;gap:0;padding:0\"\n >\n <div\n style=\"display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)\"\n >\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Jane Cooper</strong><br /><small>jane@acme.co</small>\n </div>\n <span class=\"wf-pill\">Lead</span>\n </div>\n <div style=\"display:flex;align-items:center;gap:10px;padding:10px 12px\">\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Marcus Lee</strong><br /><small>marcus@globex.io</small>\n </div>\n <span class=\"wf-pill\">Customer</span>\n </div>\n </div>\n</div>\n```\n\n<!-- SHARED-CORE:wireframe-quality END -->";
|
|
2
|
+
export declare const WIREFRAME_REFERENCE_MD = "# HTML wireframe quality \u2014 single source of truth\n\nThis file is the canonical quality bar for HTML wireframes / `<Screen>` /\n`WireframeBlock` content, shared word for word by `/visual-plan` and\n`/visual-recap`. Read it in full before authoring ANY wireframe; do not\nauthor wireframes from memory or paraphrase these rules per command.\n\n<!-- SHARED-CORE:wireframe-quality START -->\n\n**A wireframe is an HTML mockup. The renderer owns the look; you write the\ncontent.** Set `data.html` to a self-contained, semantic HTML fragment of the\nscreen and set `data.surface`. The renderer owns the surface footprint/aspect,\nthe dark/light theme, the hand-drawn font, and the rough.js sketch overlay \u2014 you\nnever write `<html>`/`<body>`/`<script>`/`<style>` tags or any\nwidth/height/coordinates. You write real HTML layout and real product\ncontent; the renderer styles and roughens it.\n\n**A wireframe block's data is an HTML screen plus a surface:**\n\n```json\n{\n \"surface\": \"browser\",\n \"html\": \"<div style=\\\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\\\"><h1>Sign in</h1><p class=\\\"wf-muted\\\">Use your work email to continue.</p><div class=\\\"wf-card\\\" style=\\\"display:flex;flex-direction:column;gap:10px\\\"><label>Email<input value=\\\"jane@acme.co\\\" /></label><label>Password<input value=\\\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\\\" /></label><label style=\\\"display:flex;align-items:center;gap:8px\\\"><input type=\\\"checkbox\\\" checked /> Remember me</label><button class=\\\"primary\\\">Sign in</button></div><a href=\\\"#\\\">Forgot password?</a></div>\"\n}\n```\n\n**Write PLAIN semantic HTML and let the renderer style it.** Bare elements\n(`h1`/`h2`/`h3`, `p`, `button`, `input`, `<input type=\"checkbox\">`, `a`, `hr`)\nare auto-themed \u2014 no classes needed. Helper classes carry the rest:\n\n- `.wf-card` / `.wf-box` \u2014 a bordered, padded container (a panel, a list item).\n- `.wf-pill` / `.wf-chip` \u2014 a rounded tag or filter; add `.accent`\n (`<span class=\"wf-pill accent\">`) for the accent-filled variant.\n- `.wf-muted` \u2014 secondary/muted text (or use `<small>`).\n- `button.primary` or any element with `[data-primary]` \u2014 the accent-filled\n primary button.\n\n**No decorative shadows around mockups.** Do not put `box-shadow`, `filter:\ndrop-shadow(...)`, Tailwind `shadow-*` classes, or other fake depth effects on a\nwireframe frame, root container, `.wf-card` / `.wf-box`, or canvas artboard.\nMockups should read as flat, bordered surfaces; use spacing, borders, labels,\nand annotations for separation. Only show a shadow when the real product UI\nalready has that shadow and it is essential to the change being reviewed.\n\n**Use renderer icons, not visible icon words.** For icon-only buttons or leading\nicons inside fields, chips, menu items, and toolbars, write an empty marker such\nas `<span data-icon=\"mail\" aria-label=\"Email\"></span>` or\n`<i data-icon=\"lock\"></i>`. The renderer replaces it with a Tabler-style SVG and\nthe `.wf-icon` class sizes it to the surrounding text. Supported names and\naliases: `mail`/`email`, `lock`/`password`, `search`, `plus`/`add`, `x`/`close`,\n`check`, `chevronDown`, `chevronUp`, `chevronLeft`, `chevronRight`, `dots`/`more`,\n`chevron`/`caret`/`dropdown` (down chevron), `user`, `settings`, `calendar`,\n`bell`, `send`, `edit`, `arrowLeft`, and `arrowRight`. Do not put visible words\nlike \"email\", \"lock\", \"search\", \"chevron\", or \"more\" where the product UI would\nshow an icon; use text only when it is a real label a user would read.\n\n**Use the `--wf-*` tokens for any custom color, never hex.** The renderer flips\nthese on light/dark, so reading them is what keeps a mockup correct in both\nthemes. For any inline border, background, or text color, reference a token:\n`style=\"border:1.4px solid var(--wf-line)\"`. The tokens are `--wf-ink` (text),\n`--wf-muted` (secondary text), `--wf-line` (borders/dividers), `--wf-paper`\n(page background), `--wf-card` (container surface), `--wf-accent` /\n`--wf-accent-fg` / `--wf-accent-soft` (brand action), `--wf-warn`, `--wf-ok`,\nand `--wf-radius`. Never hard-code a hex color and never set `font-family` \u2014 the\nrenderer owns the sketch/clean font.\n\n**Never use host/Tailwind theme classes in wireframe HTML.** Classes such as\n`bg-white`, `bg-zinc-50`, `bg-slate-950`, `text-zinc-950`,\n`text-slate-400`, `border-zinc-200`, `hover:bg-slate-800`, `shadow-xl`,\nor arbitrary color utilities like `bg-[#fff]` leak the host app's CSS into the\nmockup and can make dark-mode canvas frames unreadable. Use bare semantic\nelements, `.wf-*` helper classes, and `--wf-*` color tokens instead. Before\npublishing, scan every wireframe `class` and `style` attribute: if a class sets\nbackground, text, border, ring, fill, stroke, gradient, placeholder, decoration,\nor shadow color, rewrite it to renderer tokens or remove it. Layout-only classes\nare still discouraged; inline flex/grid styles are safer and easier to review.\n\n**Keep Rough.js sparse.** The renderer sketches the outer frame, standard\n`.wf-*` primitives, controls, and inline border dividers by default. Do not add\n`data-rough` to broad root wrappers, dialog shells, page panels, grid cells, or\nnested containers unless that single container is the visual point. Use\n`data-rough` only for a deliberate one-off shape. If a mockup starts looking\nlike stacked/overlapping sketch lines, remove rough targets from parent\ncontainers and let backgrounds plus spacing separate the surfaces.\n\n**Use literal CSS lengths for spacing.** The `--wf-*` tokens are for colors and\nrenderer-owned visual styling, not layout spacing. Do not use guessed spacing\ntokens such as `var(--wf-space-4)`, Tailwind spacing classes, or theme spacing\nvariables inside wireframe HTML; if a token is unavailable in the Plan renderer,\npadding collapses and content hugs the border. Use explicit CSS lengths for\nlayout: `padding:16px`, `gap:12px`, `margin-top:18px`, `minmax(0,1fr)`.\n\n**Lay out with inline `style` flex/grid.** You write the real layout \u2014\n`display:flex; flex-direction:column; gap:10px; padding:16px` and so on \u2014 and the\nrenderer never repositions anything. Compose the actual product: reproduce the\ncurrent screen, then show the modification. Real labels, real counts, real dates,\nreal button text grounded in the screen you read; not lorem or gray bars.\n\n**Surface presets \u2014 match the real footprint, never default to desktop+mobile.**\nPick the `surface` that matches what the user will actually see:\n\n- `browser`: a web page that needs a browser chrome frame around it.\n- `desktop`: a full desktop app page or app shell.\n- `mobile`: a phone screen, only when the work is genuinely mobile.\n- `popover`: a small floating menu, dropdown, or inline popover.\n- `panel`: a side panel, inspector, or sidebar widget.\n\nA sidebar popover renders as a small surface, not a desktop page and a phone\nframe. Do not emit `desktop` + `mobile` variants unless responsive behavior\nactually changes the layout. For a component or widget, show one broader\napp-context frame only when placement affects understanding, then the focused\ncomponent states.\n\n**Model the actual component shell for small surfaces.** A rendered UI change\nbelongs in a wireframe; reserve `diagram` for architecture, dependency, state,\nor data-flow relationships. Popovers, dropdown menus, command palettes, and\ncontext menus use `surface: \"popover\"` unless the surrounding page placement is\nthe point of the change. Dialogs, sheets, inspectors, sidebars, and long\nproperty panels use the matching `panel` / `desktop` surface as appropriate.\nShow the real chrome: trigger or anchor when it matters, title/header row,\ntop-right actions, separators, fields, options, selected states, body content,\nand footer actions that are visible in the workflow.\n\n**Modify, don't redesign.** When the task changes an existing screen, reproduce\nthe current screen's real layout and footprint FIRST, then change only the delta\nand call it out with a single annotation. Do not restack the page into a new\nlayout. For net-new surfaces, compose from the real app shell. Inspect the\nactual app components before drawing an existing product: sidebar density,\ntoolbar actions, overflow menus, property panels, and framework chrome should\nmatch the product unless the plan intentionally changes them.\n\n**Keep product screens pure.** A product wireframe shows the app state a user\nwould actually see. Do not embed file contracts, architecture arrows, repo pills,\nmode explanations, or implementation callouts inside the screen just to explain\nthe plan. Put those in canvas annotations, a separate diagram, or the document\nbody. Secondary UI such as properties, history, sync, export, or agent controls\nshould appear where the real product would put them: an overflow popover, sheet,\npanel, or separate framework sidebar state, not a generic permanent right\ninspector unless that inspector is the actual design.\n\n**Classify mockup scope before implementation.** Before turning a plan mockup\ninto source code, decide whether each artboard represents the whole page/app\nshell, a route body inside an existing shell, or a component/sub-surface. If an\nartboard includes navigation, sidebars, auth banners, or a signup/login form,\nmap those pieces to the real shared shell/auth components instead of nesting the\nentire mockup inside the current page. When a mockup references the product's\nstandard signup/login page, find and reuse that existing implementation; do not\napproximate it from the wireframe.\n\n**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a\npopover, menu, dialog, toast), show the full screen once, then add a small\nseparate artboard whose `html` contains ONLY that sub-surface \u2014 do not re-draw\nthe whole page around it, and do not scale a duplicate up. Pick the matching\n`surface` (e.g. `popover`) so the footprint is right; never widen a popover to\npage width.\n\n**Loading / skeleton states.** Set `data.skeleton: true` on the wireframe and\nfill the `html` with neutral, textless placeholder geometry \u2014 boxes and bars\nbuilt as `<div>`s with `background:var(--wf-line)` and explicit heights/widths,\nno labels or copy. The renderer drops borders, sketch, and color into the\nskeleton register automatically. Never escape to a `custom-html` document block\nto fake a loader.\n\n**Editing an existing mockup.** In hosted mode, to change one element, text, or\ncolor in an existing html mockup, do not regenerate the frame \u2014 call\n`update-visual-plan` with\n`contentPatches: [{ op: \"patch-wireframe-html\", blockId, edits: [{ find,\nreplace }] }]`. Each `find` is a unique snippet of the current html (read it\nfirst with `get-visual-plan`); set `all: true` on an edit to replace every\noccurrence. The result is re-sanitized. In local-files privacy mode, do not call\nhosted Plan tools; edit the local MDX source directly and rerun the local\ncheck/serve or verify command for `<plan-dir>`.\n\n**Choose the outer frame deliberately.** Wireframe and diagram data accept\n`frame: \"auto\" | \"show\" | \"hide\"` in block data (`<Screen frame=\"hide\">` in\nMDX wireframes, `<Diagram frame=\"hide\">` for MDX diagrams). Leave it unset or\n`auto` when the host context should decide: Plan and recap surfaces default to a\ndrawn outer frame; docs surfaces default to no outer frame. Use `show` for\nstandalone product screens, before/after recap comparisons, screenshot-like\nartifacts, and visuals that need containment from surrounding prose. Use `hide`\nwhen a docs page, tab, column, card, canvas artboard, or the visual's own\ninternal chrome already supplies the boundary. Do not use `hide` to compensate\nfor cramped content; fix the layout instead.\n\n**Inner padding and borders still matter.** Always wrap HTML wireframe content\nin a root container with real inner padding before drawing cards, fields, pills,\nlabels, or controls. Use at least 14-16px of padding, `box-sizing: border-box`,\n`height: 100%`, and `gap` between child rows on the root node itself so the\nfirst row never sits flush against the screen edge. Do not rely on padding on a\nnested page section as the first visible inset; the outermost element must\ncreate the breathing room. Keep text away from borders: every container, field,\nbutton, menu item, and annotation needs enough padding and line-height to read\ncleanly in the rendered Plan view.\n\n**For feature-cloud or abundance visuals, optimize the composition over line-by-line\nreading.** Some marketing/product sections need to feel like a large surface area\nof capability rather than a precise app workflow. In those cases, use one padded\nroot with a short headline and a dense, aesthetic cloud of short feature labels,\nchips, rings, or columns. Vary scale and opacity with tokens, cluster by meaning,\nand let many labels be glanceable rather than individually essential. Do not\nforce dozens of features into equal cards with long wrapped sentences; that\nusually creates a messy unreadable mockup.\n\n**Lay out children safely so they never collide.** Use HTML flex/grid with\n`gap`, `min-width: 0`, and sensible overflow. Avoid negative margins, absolute\npositioning, or fixed child widths that can collide when the renderer switches\nbetween light/dark, sketch/clean, or different zoom levels.\n\n**Do not wrap intentionally single-line labels.** For toolbars, tab rails,\nbreadcrumbs, chip/filter rows, branch and file names, file chips, and code\nfilenames \u2014 any deliberately single-line row \u2014 do not let long text wrap. Put\n`white-space: nowrap` on the row (and `overflow: hidden; text-overflow: ellipsis`\non the individual labels that can grow), so the wireframe demonstrates the actual\nlayout behavior instead of producing ugly stacked or vertical text. Use\nhorizontally scrollable or clipped rails for overflow.\n\n**Fill the frame; keep labels short.** Each artboard is a fixed-size surface \u2014 compose enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill (`flex:1`) and add any persistent bottom action/status after it so the rail reads complete in taller frames. On mobile especially, flow real rows down the whole screen (status bar, header, then list/detail content) rather than a header floating above a gap. Keep every label short enough to sit on one line within its column \u2014 shorten the copy rather than relying on the frame to absorb it (long labels wrap or clip).\n\n**Persistent chrome bars span the full frame width.** Top bars, app headers,\ntoolbars, and bottom tab/nav bars are full-width chrome, not centered content.\nLay each one out as a single flex row that fills the frame\n(`style=\"display:flex;align-items:center;width:100%\"`) and push trailing actions\nto the right edge with a flex spacer (`<div style=\"flex:1\"></div>`) between the\nleading group and the trailing group \u2014 never center a bar inside a narrow,\ncentered block, and never let it collapse to the width of its contents. In a\nBefore/After pair the bar stays full-width in BOTH states even when one state has\nfewer controls; the spacer absorbs the difference so the remaining controls hold\ntheir edge alignment instead of sliding to the center.\n\n**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and\nany persistent bottom action row, make the frame itself a flex column at\n`height:100%` (`style=\"display:flex;flex-direction:column;height:100%\"`), give the\nscrolling body `flex:1` so it absorbs the slack, and place the bar as the LAST\nchild of the frame (or set `margin-top:auto` on it). The bar then sits flush at\nthe bottom of the surface instead of floating directly under the content with an\nempty band beneath it.\n\n**Before / after must be comparable.** When showing a state change, preserve the\nunchanged controls in both states so the reviewer can see exactly what moved or\nappeared; do not show an added control as a generic box floating elsewhere in\nthe surface. Place the new/changed affordance where the implementation puts it \u2014\nfor example, a new `Edit with AI` action in a popover header belongs in the\ntop-right header slot, aligned with the title, not in the body or footer. Use\nthe same frame size, scale, outer padding, border radius, and visual density on\nboth sides unless the change itself alters those properties, and let the frame\nheight fit the content rather than leaving a tall empty lower half.\n\n**Name the states with the column header, never inside the frame.** For\ndocument-body wireframes (recaps), put the two\nstates in a `columns` block and set each column's `label` to `Before` and\n`After` \u2014 the renderer draws that label as an `h4` heading above each frame. Do\nNOT bake a `Before`/`After` pill, title, or heading into the wireframe `html`: a\nlabel placed inside reads as part of the product UI, lands in a random corner,\nand clutters the comparison. The column header is the one and only place the\nstate name belongs. On a canvas, place the two state artboards as neighbors with\nframe labels \u2014 never encode Before/After inside the html.\n\n**Let the surface choose side-by-side vs. stacked.** For document-body\nwireframes (recaps), the `columns` renderer lays\nnarrow surfaces (`mobile`, `popover`, `panel`) out side by side, and\nautomatically stacks wide surfaces (`desktop`, `browser`) vertically at full\ndocument width so a large frame is never crushed into a half-width column and\ncropped. Author both wireframes with the real `surface` and the matching\n`Before`/`After` column labels; do not hand-stack the pair into separate\ntop-level wireframes or duplicate the state name as body content.\n\n**Good example \u2014 a contacts list, surface `browser`.** A small, real screen\ncomposed from the helper classes and tokens, layout in inline flex, no fonts or\nhex colors:\n\n```html\n<div\n style=\"display:flex;flex-direction:column;gap:12px;padding:16px;height:100%\"\n>\n <div style=\"display:flex;align-items:center;justify-content:space-between\">\n <h1>Contacts</h1>\n <button class=\"primary\">New contact</button>\n </div>\n <div style=\"display:flex;gap:6px\">\n <span class=\"wf-pill accent\">All 128</span>\n <span class=\"wf-pill\">Favorites</span>\n <span class=\"wf-pill\">Archived</span>\n </div>\n <div\n class=\"wf-card\"\n style=\"display:flex;flex-direction:column;gap:0;padding:0\"\n >\n <div\n style=\"display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)\"\n >\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Jane Cooper</strong><br /><small>jane@acme.co</small>\n </div>\n <span class=\"wf-pill\">Lead</span>\n </div>\n <div style=\"display:flex;align-items:center;gap:10px;padding:10px 12px\">\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Marcus Lee</strong><br /><small>marcus@globex.io</small>\n </div>\n <span class=\"wf-pill\">Customer</span>\n </div>\n </div>\n</div>\n```\n\n<!-- SHARED-CORE:wireframe-quality END -->\n";
|
|
3
|
+
export declare const WIREFRAME_REFERENCE_POINTER = "UI recap/plan wireframes must meet a strict quality bar \u2014 full-width chrome,\npinned bottom bars, real product content, before/after comparability, the right\n`surface` preset, `--wf-*` tokens instead of hex, and no `<html>`/`<style>`/font\ntags. Before authoring ANY wireframe / `<Screen>` / `WireframeBlock`, READ\n`references/wireframe.md` in this skill directory \u2014 it is the single source of\ntruth for HTML wireframe quality, shared word for word with `/visual-plan`\nand `/visual-recap`. Do not author wireframes from memory.";
|
|
4
|
+
//# sourceMappingURL=wireframe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wireframe.d.ts","sourceRoot":"","sources":["../../src/skill-content/wireframe.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,8ylBAgTQ,CAAC;AAU5C,eAAO,MAAM,sBAAsB,4omBAQlC,CAAC;AAKF,eAAO,MAAM,2BAA2B,kiBAMqB,CAAC"}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// Single-source shared cores. Each partial is a heading-less BODY string that
|
|
2
|
+
// begins and ends with its own SHARED-CORE marker comment, so the marker-region
|
|
3
|
+
// sync guard can extract and compare it across the skills that consume it. The
|
|
4
|
+
// skill constants below interpolate these partials at module-eval time; the
|
|
5
|
+
// distributed artifact stays a flat string, so distribution is unchanged.
|
|
6
|
+
//
|
|
7
|
+
// Consumers:
|
|
8
|
+
// WIREFRAME_QUALITY_CORE — visual-plan, visual-recap (surface-agnostic)
|
|
9
|
+
// CANVAS_SURFACE_CORE — visual-plan modes (canvas/artboard mechanics)
|
|
10
|
+
// DOCUMENT_QUALITY_CORE — visual-plan
|
|
11
|
+
// EXEMPLAR_CORE — visual-plan
|
|
12
|
+
// Surface-agnostic HTML wireframe quality rules. Applies equally to a standalone
|
|
13
|
+
// WireframeBlock/<Screen> (visual-recap) and to a canvas artboard (visual-plan).
|
|
14
|
+
// Do not put canvas/artboard placement mechanics here.
|
|
15
|
+
export const WIREFRAME_QUALITY_CORE = `<!-- SHARED-CORE:wireframe-quality START -->
|
|
16
|
+
|
|
17
|
+
**A wireframe is an HTML mockup. The renderer owns the look; you write the
|
|
18
|
+
content.** Set \`data.html\` to a self-contained, semantic HTML fragment of the
|
|
19
|
+
screen and set \`data.surface\`. The renderer owns the surface footprint/aspect,
|
|
20
|
+
the dark/light theme, the hand-drawn font, and the rough.js sketch overlay — you
|
|
21
|
+
never write \`<html>\`/\`<body>\`/\`<script>\`/\`<style>\` tags or any
|
|
22
|
+
width/height/coordinates. You write real HTML layout and real product
|
|
23
|
+
content; the renderer styles and roughens it.
|
|
24
|
+
|
|
25
|
+
**A wireframe block's data is an HTML screen plus a surface:**
|
|
26
|
+
|
|
27
|
+
\`\`\`json
|
|
28
|
+
{
|
|
29
|
+
"surface": "browser",
|
|
30
|
+
"html": "<div style=\\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\\"><h1>Sign in</h1><p class=\\"wf-muted\\">Use your work email to continue.</p><div class=\\"wf-card\\" style=\\"display:flex;flex-direction:column;gap:10px\\"><label>Email<input value=\\"jane@acme.co\\" /></label><label>Password<input value=\\"••••••••\\" /></label><label style=\\"display:flex;align-items:center;gap:8px\\"><input type=\\"checkbox\\" checked /> Remember me</label><button class=\\"primary\\">Sign in</button></div><a href=\\"#\\">Forgot password?</a></div>"
|
|
31
|
+
}
|
|
32
|
+
\`\`\`
|
|
33
|
+
|
|
34
|
+
**Write PLAIN semantic HTML and let the renderer style it.** Bare elements
|
|
35
|
+
(\`h1\`/\`h2\`/\`h3\`, \`p\`, \`button\`, \`input\`, \`<input type="checkbox">\`, \`a\`, \`hr\`)
|
|
36
|
+
are auto-themed — no classes needed. Helper classes carry the rest:
|
|
37
|
+
|
|
38
|
+
- \`.wf-card\` / \`.wf-box\` — a bordered, padded container (a panel, a list item).
|
|
39
|
+
- \`.wf-pill\` / \`.wf-chip\` — a rounded tag or filter; add \`.accent\`
|
|
40
|
+
(\`<span class="wf-pill accent">\`) for the accent-filled variant.
|
|
41
|
+
- \`.wf-muted\` — secondary/muted text (or use \`<small>\`).
|
|
42
|
+
- \`button.primary\` or any element with \`[data-primary]\` — the accent-filled
|
|
43
|
+
primary button.
|
|
44
|
+
|
|
45
|
+
**No decorative shadows around mockups.** Do not put \`box-shadow\`, \`filter:
|
|
46
|
+
drop-shadow(...)\`, Tailwind \`shadow-*\` classes, or other fake depth effects on a
|
|
47
|
+
wireframe frame, root container, \`.wf-card\` / \`.wf-box\`, or canvas artboard.
|
|
48
|
+
Mockups should read as flat, bordered surfaces; use spacing, borders, labels,
|
|
49
|
+
and annotations for separation. Only show a shadow when the real product UI
|
|
50
|
+
already has that shadow and it is essential to the change being reviewed.
|
|
51
|
+
|
|
52
|
+
**Use renderer icons, not visible icon words.** For icon-only buttons or leading
|
|
53
|
+
icons inside fields, chips, menu items, and toolbars, write an empty marker such
|
|
54
|
+
as \`<span data-icon="mail" aria-label="Email"></span>\` or
|
|
55
|
+
\`<i data-icon="lock"></i>\`. The renderer replaces it with a Tabler-style SVG and
|
|
56
|
+
the \`.wf-icon\` class sizes it to the surrounding text. Supported names and
|
|
57
|
+
aliases: \`mail\`/\`email\`, \`lock\`/\`password\`, \`search\`, \`plus\`/\`add\`, \`x\`/\`close\`,
|
|
58
|
+
\`check\`, \`chevronDown\`, \`chevronUp\`, \`chevronLeft\`, \`chevronRight\`, \`dots\`/\`more\`,
|
|
59
|
+
\`chevron\`/\`caret\`/\`dropdown\` (down chevron), \`user\`, \`settings\`, \`calendar\`,
|
|
60
|
+
\`bell\`, \`send\`, \`edit\`, \`arrowLeft\`, and \`arrowRight\`. Do not put visible words
|
|
61
|
+
like "email", "lock", "search", "chevron", or "more" where the product UI would
|
|
62
|
+
show an icon; use text only when it is a real label a user would read.
|
|
63
|
+
|
|
64
|
+
**Use the \`--wf-*\` tokens for any custom color, never hex.** The renderer flips
|
|
65
|
+
these on light/dark, so reading them is what keeps a mockup correct in both
|
|
66
|
+
themes. For any inline border, background, or text color, reference a token:
|
|
67
|
+
\`style="border:1.4px solid var(--wf-line)"\`. The tokens are \`--wf-ink\` (text),
|
|
68
|
+
\`--wf-muted\` (secondary text), \`--wf-line\` (borders/dividers), \`--wf-paper\`
|
|
69
|
+
(page background), \`--wf-card\` (container surface), \`--wf-accent\` /
|
|
70
|
+
\`--wf-accent-fg\` / \`--wf-accent-soft\` (brand action), \`--wf-warn\`, \`--wf-ok\`,
|
|
71
|
+
and \`--wf-radius\`. Never hard-code a hex color and never set \`font-family\` — the
|
|
72
|
+
renderer owns the sketch/clean font.
|
|
73
|
+
|
|
74
|
+
**Never use host/Tailwind theme classes in wireframe HTML.** Classes such as
|
|
75
|
+
\`bg-white\`, \`bg-zinc-50\`, \`bg-slate-950\`, \`text-zinc-950\`,
|
|
76
|
+
\`text-slate-400\`, \`border-zinc-200\`, \`hover:bg-slate-800\`, \`shadow-xl\`,
|
|
77
|
+
or arbitrary color utilities like \`bg-[#fff]\` leak the host app's CSS into the
|
|
78
|
+
mockup and can make dark-mode canvas frames unreadable. Use bare semantic
|
|
79
|
+
elements, \`.wf-*\` helper classes, and \`--wf-*\` color tokens instead. Before
|
|
80
|
+
publishing, scan every wireframe \`class\` and \`style\` attribute: if a class sets
|
|
81
|
+
background, text, border, ring, fill, stroke, gradient, placeholder, decoration,
|
|
82
|
+
or shadow color, rewrite it to renderer tokens or remove it. Layout-only classes
|
|
83
|
+
are still discouraged; inline flex/grid styles are safer and easier to review.
|
|
84
|
+
|
|
85
|
+
**Keep Rough.js sparse.** The renderer sketches the outer frame, standard
|
|
86
|
+
\`.wf-*\` primitives, controls, and inline border dividers by default. Do not add
|
|
87
|
+
\`data-rough\` to broad root wrappers, dialog shells, page panels, grid cells, or
|
|
88
|
+
nested containers unless that single container is the visual point. Use
|
|
89
|
+
\`data-rough\` only for a deliberate one-off shape. If a mockup starts looking
|
|
90
|
+
like stacked/overlapping sketch lines, remove rough targets from parent
|
|
91
|
+
containers and let backgrounds plus spacing separate the surfaces.
|
|
92
|
+
|
|
93
|
+
**Use literal CSS lengths for spacing.** The \`--wf-*\` tokens are for colors and
|
|
94
|
+
renderer-owned visual styling, not layout spacing. Do not use guessed spacing
|
|
95
|
+
tokens such as \`var(--wf-space-4)\`, Tailwind spacing classes, or theme spacing
|
|
96
|
+
variables inside wireframe HTML; if a token is unavailable in the Plan renderer,
|
|
97
|
+
padding collapses and content hugs the border. Use explicit CSS lengths for
|
|
98
|
+
layout: \`padding:16px\`, \`gap:12px\`, \`margin-top:18px\`, \`minmax(0,1fr)\`.
|
|
99
|
+
|
|
100
|
+
**Lay out with inline \`style\` flex/grid.** You write the real layout —
|
|
101
|
+
\`display:flex; flex-direction:column; gap:10px; padding:16px\` and so on — and the
|
|
102
|
+
renderer never repositions anything. Compose the actual product: reproduce the
|
|
103
|
+
current screen, then show the modification. Real labels, real counts, real dates,
|
|
104
|
+
real button text grounded in the screen you read; not lorem or gray bars.
|
|
105
|
+
|
|
106
|
+
**Surface presets — match the real footprint, never default to desktop+mobile.**
|
|
107
|
+
Pick the \`surface\` that matches what the user will actually see:
|
|
108
|
+
|
|
109
|
+
- \`browser\`: a web page that needs a browser chrome frame around it.
|
|
110
|
+
- \`desktop\`: a full desktop app page or app shell.
|
|
111
|
+
- \`mobile\`: a phone screen, only when the work is genuinely mobile.
|
|
112
|
+
- \`popover\`: a small floating menu, dropdown, or inline popover.
|
|
113
|
+
- \`panel\`: a side panel, inspector, or sidebar widget.
|
|
114
|
+
|
|
115
|
+
A sidebar popover renders as a small surface, not a desktop page and a phone
|
|
116
|
+
frame. Do not emit \`desktop\` + \`mobile\` variants unless responsive behavior
|
|
117
|
+
actually changes the layout. For a component or widget, show one broader
|
|
118
|
+
app-context frame only when placement affects understanding, then the focused
|
|
119
|
+
component states.
|
|
120
|
+
|
|
121
|
+
**Model the actual component shell for small surfaces.** A rendered UI change
|
|
122
|
+
belongs in a wireframe; reserve \`diagram\` for architecture, dependency, state,
|
|
123
|
+
or data-flow relationships. Popovers, dropdown menus, command palettes, and
|
|
124
|
+
context menus use \`surface: "popover"\` unless the surrounding page placement is
|
|
125
|
+
the point of the change. Dialogs, sheets, inspectors, sidebars, and long
|
|
126
|
+
property panels use the matching \`panel\` / \`desktop\` surface as appropriate.
|
|
127
|
+
Show the real chrome: trigger or anchor when it matters, title/header row,
|
|
128
|
+
top-right actions, separators, fields, options, selected states, body content,
|
|
129
|
+
and footer actions that are visible in the workflow.
|
|
130
|
+
|
|
131
|
+
**Modify, don't redesign.** When the task changes an existing screen, reproduce
|
|
132
|
+
the current screen's real layout and footprint FIRST, then change only the delta
|
|
133
|
+
and call it out with a single annotation. Do not restack the page into a new
|
|
134
|
+
layout. For net-new surfaces, compose from the real app shell. Inspect the
|
|
135
|
+
actual app components before drawing an existing product: sidebar density,
|
|
136
|
+
toolbar actions, overflow menus, property panels, and framework chrome should
|
|
137
|
+
match the product unless the plan intentionally changes them.
|
|
138
|
+
|
|
139
|
+
**Keep product screens pure.** A product wireframe shows the app state a user
|
|
140
|
+
would actually see. Do not embed file contracts, architecture arrows, repo pills,
|
|
141
|
+
mode explanations, or implementation callouts inside the screen just to explain
|
|
142
|
+
the plan. Put those in canvas annotations, a separate diagram, or the document
|
|
143
|
+
body. Secondary UI such as properties, history, sync, export, or agent controls
|
|
144
|
+
should appear where the real product would put them: an overflow popover, sheet,
|
|
145
|
+
panel, or separate framework sidebar state, not a generic permanent right
|
|
146
|
+
inspector unless that inspector is the actual design.
|
|
147
|
+
|
|
148
|
+
**Classify mockup scope before implementation.** Before turning a plan mockup
|
|
149
|
+
into source code, decide whether each artboard represents the whole page/app
|
|
150
|
+
shell, a route body inside an existing shell, or a component/sub-surface. If an
|
|
151
|
+
artboard includes navigation, sidebars, auth banners, or a signup/login form,
|
|
152
|
+
map those pieces to the real shared shell/auth components instead of nesting the
|
|
153
|
+
entire mockup inside the current page. When a mockup references the product's
|
|
154
|
+
standard signup/login page, find and reuse that existing implementation; do not
|
|
155
|
+
approximate it from the wireframe.
|
|
156
|
+
|
|
157
|
+
**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a
|
|
158
|
+
popover, menu, dialog, toast), show the full screen once, then add a small
|
|
159
|
+
separate artboard whose \`html\` contains ONLY that sub-surface — do not re-draw
|
|
160
|
+
the whole page around it, and do not scale a duplicate up. Pick the matching
|
|
161
|
+
\`surface\` (e.g. \`popover\`) so the footprint is right; never widen a popover to
|
|
162
|
+
page width.
|
|
163
|
+
|
|
164
|
+
**Loading / skeleton states.** Set \`data.skeleton: true\` on the wireframe and
|
|
165
|
+
fill the \`html\` with neutral, textless placeholder geometry — boxes and bars
|
|
166
|
+
built as \`<div>\`s with \`background:var(--wf-line)\` and explicit heights/widths,
|
|
167
|
+
no labels or copy. The renderer drops borders, sketch, and color into the
|
|
168
|
+
skeleton register automatically. Never escape to a \`custom-html\` document block
|
|
169
|
+
to fake a loader.
|
|
170
|
+
|
|
171
|
+
**Editing an existing mockup.** In hosted mode, to change one element, text, or
|
|
172
|
+
color in an existing html mockup, do not regenerate the frame — call
|
|
173
|
+
\`update-visual-plan\` with
|
|
174
|
+
\`contentPatches: [{ op: "patch-wireframe-html", blockId, edits: [{ find,
|
|
175
|
+
replace }] }]\`. Each \`find\` is a unique snippet of the current html (read it
|
|
176
|
+
first with \`get-visual-plan\`); set \`all: true\` on an edit to replace every
|
|
177
|
+
occurrence. The result is re-sanitized. In local-files privacy mode, do not call
|
|
178
|
+
hosted Plan tools; edit the local MDX source directly and rerun the local
|
|
179
|
+
check/serve or verify command for \`<plan-dir>\`.
|
|
180
|
+
|
|
181
|
+
**Choose the outer frame deliberately.** Wireframe and diagram data accept
|
|
182
|
+
\`frame: "auto" | "show" | "hide"\` in block data (\`<Screen frame="hide">\` in
|
|
183
|
+
MDX wireframes, \`<Diagram frame="hide">\` for MDX diagrams). Leave it unset or
|
|
184
|
+
\`auto\` when the host context should decide: Plan and recap surfaces default to a
|
|
185
|
+
drawn outer frame; docs surfaces default to no outer frame. Use \`show\` for
|
|
186
|
+
standalone product screens, before/after recap comparisons, screenshot-like
|
|
187
|
+
artifacts, and visuals that need containment from surrounding prose. Use \`hide\`
|
|
188
|
+
when a docs page, tab, column, card, canvas artboard, or the visual's own
|
|
189
|
+
internal chrome already supplies the boundary. Do not use \`hide\` to compensate
|
|
190
|
+
for cramped content; fix the layout instead.
|
|
191
|
+
|
|
192
|
+
**Inner padding and borders still matter.** Always wrap HTML wireframe content
|
|
193
|
+
in a root container with real inner padding before drawing cards, fields, pills,
|
|
194
|
+
labels, or controls. Use at least 14-16px of padding, \`box-sizing: border-box\`,
|
|
195
|
+
\`height: 100%\`, and \`gap\` between child rows on the root node itself so the
|
|
196
|
+
first row never sits flush against the screen edge. Do not rely on padding on a
|
|
197
|
+
nested page section as the first visible inset; the outermost element must
|
|
198
|
+
create the breathing room. Keep text away from borders: every container, field,
|
|
199
|
+
button, menu item, and annotation needs enough padding and line-height to read
|
|
200
|
+
cleanly in the rendered Plan view.
|
|
201
|
+
|
|
202
|
+
**For feature-cloud or abundance visuals, optimize the composition over line-by-line
|
|
203
|
+
reading.** Some marketing/product sections need to feel like a large surface area
|
|
204
|
+
of capability rather than a precise app workflow. In those cases, use one padded
|
|
205
|
+
root with a short headline and a dense, aesthetic cloud of short feature labels,
|
|
206
|
+
chips, rings, or columns. Vary scale and opacity with tokens, cluster by meaning,
|
|
207
|
+
and let many labels be glanceable rather than individually essential. Do not
|
|
208
|
+
force dozens of features into equal cards with long wrapped sentences; that
|
|
209
|
+
usually creates a messy unreadable mockup.
|
|
210
|
+
|
|
211
|
+
**Lay out children safely so they never collide.** Use HTML flex/grid with
|
|
212
|
+
\`gap\`, \`min-width: 0\`, and sensible overflow. Avoid negative margins, absolute
|
|
213
|
+
positioning, or fixed child widths that can collide when the renderer switches
|
|
214
|
+
between light/dark, sketch/clean, or different zoom levels.
|
|
215
|
+
|
|
216
|
+
**Do not wrap intentionally single-line labels.** For toolbars, tab rails,
|
|
217
|
+
breadcrumbs, chip/filter rows, branch and file names, file chips, and code
|
|
218
|
+
filenames — any deliberately single-line row — do not let long text wrap. Put
|
|
219
|
+
\`white-space: nowrap\` on the row (and \`overflow: hidden; text-overflow: ellipsis\`
|
|
220
|
+
on the individual labels that can grow), so the wireframe demonstrates the actual
|
|
221
|
+
layout behavior instead of producing ugly stacked or vertical text. Use
|
|
222
|
+
horizontally scrollable or clipped rails for overflow.
|
|
223
|
+
|
|
224
|
+
**Fill the frame; keep labels short.** Each artboard is a fixed-size surface — compose enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill (\`flex:1\`) and add any persistent bottom action/status after it so the rail reads complete in taller frames. On mobile especially, flow real rows down the whole screen (status bar, header, then list/detail content) rather than a header floating above a gap. Keep every label short enough to sit on one line within its column — shorten the copy rather than relying on the frame to absorb it (long labels wrap or clip).
|
|
225
|
+
|
|
226
|
+
**Persistent chrome bars span the full frame width.** Top bars, app headers,
|
|
227
|
+
toolbars, and bottom tab/nav bars are full-width chrome, not centered content.
|
|
228
|
+
Lay each one out as a single flex row that fills the frame
|
|
229
|
+
(\`style="display:flex;align-items:center;width:100%"\`) and push trailing actions
|
|
230
|
+
to the right edge with a flex spacer (\`<div style="flex:1"></div>\`) between the
|
|
231
|
+
leading group and the trailing group — never center a bar inside a narrow,
|
|
232
|
+
centered block, and never let it collapse to the width of its contents. In a
|
|
233
|
+
Before/After pair the bar stays full-width in BOTH states even when one state has
|
|
234
|
+
fewer controls; the spacer absorbs the difference so the remaining controls hold
|
|
235
|
+
their edge alignment instead of sliding to the center.
|
|
236
|
+
|
|
237
|
+
**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and
|
|
238
|
+
any persistent bottom action row, make the frame itself a flex column at
|
|
239
|
+
\`height:100%\` (\`style="display:flex;flex-direction:column;height:100%"\`), give the
|
|
240
|
+
scrolling body \`flex:1\` so it absorbs the slack, and place the bar as the LAST
|
|
241
|
+
child of the frame (or set \`margin-top:auto\` on it). The bar then sits flush at
|
|
242
|
+
the bottom of the surface instead of floating directly under the content with an
|
|
243
|
+
empty band beneath it.
|
|
244
|
+
|
|
245
|
+
**Before / after must be comparable.** When showing a state change, preserve the
|
|
246
|
+
unchanged controls in both states so the reviewer can see exactly what moved or
|
|
247
|
+
appeared; do not show an added control as a generic box floating elsewhere in
|
|
248
|
+
the surface. Place the new/changed affordance where the implementation puts it —
|
|
249
|
+
for example, a new \`Edit with AI\` action in a popover header belongs in the
|
|
250
|
+
top-right header slot, aligned with the title, not in the body or footer. Use
|
|
251
|
+
the same frame size, scale, outer padding, border radius, and visual density on
|
|
252
|
+
both sides unless the change itself alters those properties, and let the frame
|
|
253
|
+
height fit the content rather than leaving a tall empty lower half.
|
|
254
|
+
|
|
255
|
+
**Name the states with the column header, never inside the frame.** For
|
|
256
|
+
document-body wireframes (recaps), put the two
|
|
257
|
+
states in a \`columns\` block and set each column's \`label\` to \`Before\` and
|
|
258
|
+
\`After\` — the renderer draws that label as an \`h4\` heading above each frame. Do
|
|
259
|
+
NOT bake a \`Before\`/\`After\` pill, title, or heading into the wireframe \`html\`: a
|
|
260
|
+
label placed inside reads as part of the product UI, lands in a random corner,
|
|
261
|
+
and clutters the comparison. The column header is the one and only place the
|
|
262
|
+
state name belongs. On a canvas, place the two state artboards as neighbors with
|
|
263
|
+
frame labels — never encode Before/After inside the html.
|
|
264
|
+
|
|
265
|
+
**Let the surface choose side-by-side vs. stacked.** For document-body
|
|
266
|
+
wireframes (recaps), the \`columns\` renderer lays
|
|
267
|
+
narrow surfaces (\`mobile\`, \`popover\`, \`panel\`) out side by side, and
|
|
268
|
+
automatically stacks wide surfaces (\`desktop\`, \`browser\`) vertically at full
|
|
269
|
+
document width so a large frame is never crushed into a half-width column and
|
|
270
|
+
cropped. Author both wireframes with the real \`surface\` and the matching
|
|
271
|
+
\`Before\`/\`After\` column labels; do not hand-stack the pair into separate
|
|
272
|
+
top-level wireframes or duplicate the state name as body content.
|
|
273
|
+
|
|
274
|
+
**Good example — a contacts list, surface \`browser\`.** A small, real screen
|
|
275
|
+
composed from the helper classes and tokens, layout in inline flex, no fonts or
|
|
276
|
+
hex colors:
|
|
277
|
+
|
|
278
|
+
\`\`\`html
|
|
279
|
+
<div
|
|
280
|
+
style="display:flex;flex-direction:column;gap:12px;padding:16px;height:100%"
|
|
281
|
+
>
|
|
282
|
+
<div style="display:flex;align-items:center;justify-content:space-between">
|
|
283
|
+
<h1>Contacts</h1>
|
|
284
|
+
<button class="primary">New contact</button>
|
|
285
|
+
</div>
|
|
286
|
+
<div style="display:flex;gap:6px">
|
|
287
|
+
<span class="wf-pill accent">All 128</span>
|
|
288
|
+
<span class="wf-pill">Favorites</span>
|
|
289
|
+
<span class="wf-pill">Archived</span>
|
|
290
|
+
</div>
|
|
291
|
+
<div
|
|
292
|
+
class="wf-card"
|
|
293
|
+
style="display:flex;flex-direction:column;gap:0;padding:0"
|
|
294
|
+
>
|
|
295
|
+
<div
|
|
296
|
+
style="display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)"
|
|
297
|
+
>
|
|
298
|
+
<div
|
|
299
|
+
style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"
|
|
300
|
+
></div>
|
|
301
|
+
<div style="flex:1">
|
|
302
|
+
<strong>Jane Cooper</strong><br /><small>jane@acme.co</small>
|
|
303
|
+
</div>
|
|
304
|
+
<span class="wf-pill">Lead</span>
|
|
305
|
+
</div>
|
|
306
|
+
<div style="display:flex;align-items:center;gap:10px;padding:10px 12px">
|
|
307
|
+
<div
|
|
308
|
+
style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"
|
|
309
|
+
></div>
|
|
310
|
+
<div style="flex:1">
|
|
311
|
+
<strong>Marcus Lee</strong><br /><small>marcus@globex.io</small>
|
|
312
|
+
</div>
|
|
313
|
+
<span class="wf-pill">Customer</span>
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
</div>
|
|
317
|
+
\`\`\`
|
|
318
|
+
|
|
319
|
+
<!-- SHARED-CORE:wireframe-quality END -->`;
|
|
320
|
+
// Progressive-disclosure reference file. `WIREFRAME_QUALITY_CORE` is the single
|
|
321
|
+
// source of truth for HTML wireframe quality; it is materialized verbatim into a
|
|
322
|
+
// sibling `references/wireframe.md` in EVERY plan skill dir (visual-plan and
|
|
323
|
+
// visual-recap), instead of being interpolated inline into each SKILL.md body.
|
|
324
|
+
// The SKILL.md bodies carry only `WIREFRAME_REFERENCE_POINTER`, which tells the
|
|
325
|
+
// agent to read this file before authoring any wireframe. Keeping the reference
|
|
326
|
+
// body byte-identical to the core (markers included) lets the sync guard assert
|
|
327
|
+
// the on-disk copies never drift from the canonical constant.
|
|
328
|
+
export const WIREFRAME_REFERENCE_MD = `# HTML wireframe quality — single source of truth
|
|
329
|
+
|
|
330
|
+
This file is the canonical quality bar for HTML wireframes / \`<Screen>\` /
|
|
331
|
+
\`WireframeBlock\` content, shared word for word by \`/visual-plan\` and
|
|
332
|
+
\`/visual-recap\`. Read it in full before authoring ANY wireframe; do not
|
|
333
|
+
author wireframes from memory or paraphrase these rules per command.
|
|
334
|
+
|
|
335
|
+
${WIREFRAME_QUALITY_CORE}
|
|
336
|
+
`;
|
|
337
|
+
// Short pointer that replaces the inline wireframe-quality core in each SKILL.md
|
|
338
|
+
// body. Authoring quality lives in the sibling reference file so the SKILL.md
|
|
339
|
+
// stays lean (progressive disclosure); the agent loads the detail on demand.
|
|
340
|
+
export const WIREFRAME_REFERENCE_POINTER = `UI recap/plan wireframes must meet a strict quality bar — full-width chrome,
|
|
341
|
+
pinned bottom bars, real product content, before/after comparability, the right
|
|
342
|
+
\`surface\` preset, \`--wf-*\` tokens instead of hex, and no \`<html>\`/\`<style>\`/font
|
|
343
|
+
tags. Before authoring ANY wireframe / \`<Screen>\` / \`WireframeBlock\`, READ
|
|
344
|
+
\`references/wireframe.md\` in this skill directory — it is the single source of
|
|
345
|
+
truth for HTML wireframe quality, shared word for word with \`/visual-plan\`
|
|
346
|
+
and \`/visual-recap\`. Do not author wireframes from memory.`;
|
|
347
|
+
//# sourceMappingURL=wireframe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wireframe.js","sourceRoot":"","sources":["../../src/skill-content/wireframe.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,0EAA0E;AAC1E,EAAE;AACF,aAAa;AACb,2EAA2E;AAC3E,4EAA4E;AAC5E,0CAA0C;AAC1C,0CAA0C;AAE1C,iFAAiF;AACjF,iFAAiF;AACjF,uDAAuD;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAgTK,CAAC;AAE5C,gFAAgF;AAChF,iFAAiF;AACjF,6EAA6E;AAC7E,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;EAOpC,sBAAsB;CACvB,CAAC;AAEF,iFAAiF;AACjF,8EAA8E;AAC9E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,2BAA2B,GAAG;;;;;;6DAMkB,CAAC","sourcesContent":["// Single-source shared cores. Each partial is a heading-less BODY string that\n// begins and ends with its own SHARED-CORE marker comment, so the marker-region\n// sync guard can extract and compare it across the skills that consume it. The\n// skill constants below interpolate these partials at module-eval time; the\n// distributed artifact stays a flat string, so distribution is unchanged.\n//\n// Consumers:\n// WIREFRAME_QUALITY_CORE — visual-plan, visual-recap (surface-agnostic)\n// CANVAS_SURFACE_CORE — visual-plan modes (canvas/artboard mechanics)\n// DOCUMENT_QUALITY_CORE — visual-plan\n// EXEMPLAR_CORE — visual-plan\n\n// Surface-agnostic HTML wireframe quality rules. Applies equally to a standalone\n// WireframeBlock/<Screen> (visual-recap) and to a canvas artboard (visual-plan).\n// Do not put canvas/artboard placement mechanics here.\nexport const WIREFRAME_QUALITY_CORE = `<!-- SHARED-CORE:wireframe-quality START -->\n\n**A wireframe is an HTML mockup. The renderer owns the look; you write the\ncontent.** Set \\`data.html\\` to a self-contained, semantic HTML fragment of the\nscreen and set \\`data.surface\\`. The renderer owns the surface footprint/aspect,\nthe dark/light theme, the hand-drawn font, and the rough.js sketch overlay — you\nnever write \\`<html>\\`/\\`<body>\\`/\\`<script>\\`/\\`<style>\\` tags or any\nwidth/height/coordinates. You write real HTML layout and real product\ncontent; the renderer styles and roughens it.\n\n**A wireframe block's data is an HTML screen plus a surface:**\n\n\\`\\`\\`json\n{\n \"surface\": \"browser\",\n \"html\": \"<div style=\\\\\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\\\\\"><h1>Sign in</h1><p class=\\\\\"wf-muted\\\\\">Use your work email to continue.</p><div class=\\\\\"wf-card\\\\\" style=\\\\\"display:flex;flex-direction:column;gap:10px\\\\\"><label>Email<input value=\\\\\"jane@acme.co\\\\\" /></label><label>Password<input value=\\\\\"••••••••\\\\\" /></label><label style=\\\\\"display:flex;align-items:center;gap:8px\\\\\"><input type=\\\\\"checkbox\\\\\" checked /> Remember me</label><button class=\\\\\"primary\\\\\">Sign in</button></div><a href=\\\\\"#\\\\\">Forgot password?</a></div>\"\n}\n\\`\\`\\`\n\n**Write PLAIN semantic HTML and let the renderer style it.** Bare elements\n(\\`h1\\`/\\`h2\\`/\\`h3\\`, \\`p\\`, \\`button\\`, \\`input\\`, \\`<input type=\"checkbox\">\\`, \\`a\\`, \\`hr\\`)\nare auto-themed — no classes needed. Helper classes carry the rest:\n\n- \\`.wf-card\\` / \\`.wf-box\\` — a bordered, padded container (a panel, a list item).\n- \\`.wf-pill\\` / \\`.wf-chip\\` — a rounded tag or filter; add \\`.accent\\`\n (\\`<span class=\"wf-pill accent\">\\`) for the accent-filled variant.\n- \\`.wf-muted\\` — secondary/muted text (or use \\`<small>\\`).\n- \\`button.primary\\` or any element with \\`[data-primary]\\` — the accent-filled\n primary button.\n\n**No decorative shadows around mockups.** Do not put \\`box-shadow\\`, \\`filter:\ndrop-shadow(...)\\`, Tailwind \\`shadow-*\\` classes, or other fake depth effects on a\nwireframe frame, root container, \\`.wf-card\\` / \\`.wf-box\\`, or canvas artboard.\nMockups should read as flat, bordered surfaces; use spacing, borders, labels,\nand annotations for separation. Only show a shadow when the real product UI\nalready has that shadow and it is essential to the change being reviewed.\n\n**Use renderer icons, not visible icon words.** For icon-only buttons or leading\nicons inside fields, chips, menu items, and toolbars, write an empty marker such\nas \\`<span data-icon=\"mail\" aria-label=\"Email\"></span>\\` or\n\\`<i data-icon=\"lock\"></i>\\`. The renderer replaces it with a Tabler-style SVG and\nthe \\`.wf-icon\\` class sizes it to the surrounding text. Supported names and\naliases: \\`mail\\`/\\`email\\`, \\`lock\\`/\\`password\\`, \\`search\\`, \\`plus\\`/\\`add\\`, \\`x\\`/\\`close\\`,\n\\`check\\`, \\`chevronDown\\`, \\`chevronUp\\`, \\`chevronLeft\\`, \\`chevronRight\\`, \\`dots\\`/\\`more\\`,\n\\`chevron\\`/\\`caret\\`/\\`dropdown\\` (down chevron), \\`user\\`, \\`settings\\`, \\`calendar\\`,\n\\`bell\\`, \\`send\\`, \\`edit\\`, \\`arrowLeft\\`, and \\`arrowRight\\`. Do not put visible words\nlike \"email\", \"lock\", \"search\", \"chevron\", or \"more\" where the product UI would\nshow an icon; use text only when it is a real label a user would read.\n\n**Use the \\`--wf-*\\` tokens for any custom color, never hex.** The renderer flips\nthese on light/dark, so reading them is what keeps a mockup correct in both\nthemes. For any inline border, background, or text color, reference a token:\n\\`style=\"border:1.4px solid var(--wf-line)\"\\`. The tokens are \\`--wf-ink\\` (text),\n\\`--wf-muted\\` (secondary text), \\`--wf-line\\` (borders/dividers), \\`--wf-paper\\`\n(page background), \\`--wf-card\\` (container surface), \\`--wf-accent\\` /\n\\`--wf-accent-fg\\` / \\`--wf-accent-soft\\` (brand action), \\`--wf-warn\\`, \\`--wf-ok\\`,\nand \\`--wf-radius\\`. Never hard-code a hex color and never set \\`font-family\\` — the\nrenderer owns the sketch/clean font.\n\n**Never use host/Tailwind theme classes in wireframe HTML.** Classes such as\n\\`bg-white\\`, \\`bg-zinc-50\\`, \\`bg-slate-950\\`, \\`text-zinc-950\\`,\n\\`text-slate-400\\`, \\`border-zinc-200\\`, \\`hover:bg-slate-800\\`, \\`shadow-xl\\`,\nor arbitrary color utilities like \\`bg-[#fff]\\` leak the host app's CSS into the\nmockup and can make dark-mode canvas frames unreadable. Use bare semantic\nelements, \\`.wf-*\\` helper classes, and \\`--wf-*\\` color tokens instead. Before\npublishing, scan every wireframe \\`class\\` and \\`style\\` attribute: if a class sets\nbackground, text, border, ring, fill, stroke, gradient, placeholder, decoration,\nor shadow color, rewrite it to renderer tokens or remove it. Layout-only classes\nare still discouraged; inline flex/grid styles are safer and easier to review.\n\n**Keep Rough.js sparse.** The renderer sketches the outer frame, standard\n\\`.wf-*\\` primitives, controls, and inline border dividers by default. Do not add\n\\`data-rough\\` to broad root wrappers, dialog shells, page panels, grid cells, or\nnested containers unless that single container is the visual point. Use\n\\`data-rough\\` only for a deliberate one-off shape. If a mockup starts looking\nlike stacked/overlapping sketch lines, remove rough targets from parent\ncontainers and let backgrounds plus spacing separate the surfaces.\n\n**Use literal CSS lengths for spacing.** The \\`--wf-*\\` tokens are for colors and\nrenderer-owned visual styling, not layout spacing. Do not use guessed spacing\ntokens such as \\`var(--wf-space-4)\\`, Tailwind spacing classes, or theme spacing\nvariables inside wireframe HTML; if a token is unavailable in the Plan renderer,\npadding collapses and content hugs the border. Use explicit CSS lengths for\nlayout: \\`padding:16px\\`, \\`gap:12px\\`, \\`margin-top:18px\\`, \\`minmax(0,1fr)\\`.\n\n**Lay out with inline \\`style\\` flex/grid.** You write the real layout —\n\\`display:flex; flex-direction:column; gap:10px; padding:16px\\` and so on — and the\nrenderer never repositions anything. Compose the actual product: reproduce the\ncurrent screen, then show the modification. Real labels, real counts, real dates,\nreal button text grounded in the screen you read; not lorem or gray bars.\n\n**Surface presets — match the real footprint, never default to desktop+mobile.**\nPick the \\`surface\\` that matches what the user will actually see:\n\n- \\`browser\\`: a web page that needs a browser chrome frame around it.\n- \\`desktop\\`: a full desktop app page or app shell.\n- \\`mobile\\`: a phone screen, only when the work is genuinely mobile.\n- \\`popover\\`: a small floating menu, dropdown, or inline popover.\n- \\`panel\\`: a side panel, inspector, or sidebar widget.\n\nA sidebar popover renders as a small surface, not a desktop page and a phone\nframe. Do not emit \\`desktop\\` + \\`mobile\\` variants unless responsive behavior\nactually changes the layout. For a component or widget, show one broader\napp-context frame only when placement affects understanding, then the focused\ncomponent states.\n\n**Model the actual component shell for small surfaces.** A rendered UI change\nbelongs in a wireframe; reserve \\`diagram\\` for architecture, dependency, state,\nor data-flow relationships. Popovers, dropdown menus, command palettes, and\ncontext menus use \\`surface: \"popover\"\\` unless the surrounding page placement is\nthe point of the change. Dialogs, sheets, inspectors, sidebars, and long\nproperty panels use the matching \\`panel\\` / \\`desktop\\` surface as appropriate.\nShow the real chrome: trigger or anchor when it matters, title/header row,\ntop-right actions, separators, fields, options, selected states, body content,\nand footer actions that are visible in the workflow.\n\n**Modify, don't redesign.** When the task changes an existing screen, reproduce\nthe current screen's real layout and footprint FIRST, then change only the delta\nand call it out with a single annotation. Do not restack the page into a new\nlayout. For net-new surfaces, compose from the real app shell. Inspect the\nactual app components before drawing an existing product: sidebar density,\ntoolbar actions, overflow menus, property panels, and framework chrome should\nmatch the product unless the plan intentionally changes them.\n\n**Keep product screens pure.** A product wireframe shows the app state a user\nwould actually see. Do not embed file contracts, architecture arrows, repo pills,\nmode explanations, or implementation callouts inside the screen just to explain\nthe plan. Put those in canvas annotations, a separate diagram, or the document\nbody. Secondary UI such as properties, history, sync, export, or agent controls\nshould appear where the real product would put them: an overflow popover, sheet,\npanel, or separate framework sidebar state, not a generic permanent right\ninspector unless that inspector is the actual design.\n\n**Classify mockup scope before implementation.** Before turning a plan mockup\ninto source code, decide whether each artboard represents the whole page/app\nshell, a route body inside an existing shell, or a component/sub-surface. If an\nartboard includes navigation, sidebars, auth banners, or a signup/login form,\nmap those pieces to the real shared shell/auth components instead of nesting the\nentire mockup inside the current page. When a mockup references the product's\nstandard signup/login page, find and reuse that existing implementation; do not\napproximate it from the wireframe.\n\n**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a\npopover, menu, dialog, toast), show the full screen once, then add a small\nseparate artboard whose \\`html\\` contains ONLY that sub-surface — do not re-draw\nthe whole page around it, and do not scale a duplicate up. Pick the matching\n\\`surface\\` (e.g. \\`popover\\`) so the footprint is right; never widen a popover to\npage width.\n\n**Loading / skeleton states.** Set \\`data.skeleton: true\\` on the wireframe and\nfill the \\`html\\` with neutral, textless placeholder geometry — boxes and bars\nbuilt as \\`<div>\\`s with \\`background:var(--wf-line)\\` and explicit heights/widths,\nno labels or copy. The renderer drops borders, sketch, and color into the\nskeleton register automatically. Never escape to a \\`custom-html\\` document block\nto fake a loader.\n\n**Editing an existing mockup.** In hosted mode, to change one element, text, or\ncolor in an existing html mockup, do not regenerate the frame — call\n\\`update-visual-plan\\` with\n\\`contentPatches: [{ op: \"patch-wireframe-html\", blockId, edits: [{ find,\nreplace }] }]\\`. Each \\`find\\` is a unique snippet of the current html (read it\nfirst with \\`get-visual-plan\\`); set \\`all: true\\` on an edit to replace every\noccurrence. The result is re-sanitized. In local-files privacy mode, do not call\nhosted Plan tools; edit the local MDX source directly and rerun the local\ncheck/serve or verify command for \\`<plan-dir>\\`.\n\n**Choose the outer frame deliberately.** Wireframe and diagram data accept\n\\`frame: \"auto\" | \"show\" | \"hide\"\\` in block data (\\`<Screen frame=\"hide\">\\` in\nMDX wireframes, \\`<Diagram frame=\"hide\">\\` for MDX diagrams). Leave it unset or\n\\`auto\\` when the host context should decide: Plan and recap surfaces default to a\ndrawn outer frame; docs surfaces default to no outer frame. Use \\`show\\` for\nstandalone product screens, before/after recap comparisons, screenshot-like\nartifacts, and visuals that need containment from surrounding prose. Use \\`hide\\`\nwhen a docs page, tab, column, card, canvas artboard, or the visual's own\ninternal chrome already supplies the boundary. Do not use \\`hide\\` to compensate\nfor cramped content; fix the layout instead.\n\n**Inner padding and borders still matter.** Always wrap HTML wireframe content\nin a root container with real inner padding before drawing cards, fields, pills,\nlabels, or controls. Use at least 14-16px of padding, \\`box-sizing: border-box\\`,\n\\`height: 100%\\`, and \\`gap\\` between child rows on the root node itself so the\nfirst row never sits flush against the screen edge. Do not rely on padding on a\nnested page section as the first visible inset; the outermost element must\ncreate the breathing room. Keep text away from borders: every container, field,\nbutton, menu item, and annotation needs enough padding and line-height to read\ncleanly in the rendered Plan view.\n\n**For feature-cloud or abundance visuals, optimize the composition over line-by-line\nreading.** Some marketing/product sections need to feel like a large surface area\nof capability rather than a precise app workflow. In those cases, use one padded\nroot with a short headline and a dense, aesthetic cloud of short feature labels,\nchips, rings, or columns. Vary scale and opacity with tokens, cluster by meaning,\nand let many labels be glanceable rather than individually essential. Do not\nforce dozens of features into equal cards with long wrapped sentences; that\nusually creates a messy unreadable mockup.\n\n**Lay out children safely so they never collide.** Use HTML flex/grid with\n\\`gap\\`, \\`min-width: 0\\`, and sensible overflow. Avoid negative margins, absolute\npositioning, or fixed child widths that can collide when the renderer switches\nbetween light/dark, sketch/clean, or different zoom levels.\n\n**Do not wrap intentionally single-line labels.** For toolbars, tab rails,\nbreadcrumbs, chip/filter rows, branch and file names, file chips, and code\nfilenames — any deliberately single-line row — do not let long text wrap. Put\n\\`white-space: nowrap\\` on the row (and \\`overflow: hidden; text-overflow: ellipsis\\`\non the individual labels that can grow), so the wireframe demonstrates the actual\nlayout behavior instead of producing ugly stacked or vertical text. Use\nhorizontally scrollable or clipped rails for overflow.\n\n**Fill the frame; keep labels short.** Each artboard is a fixed-size surface — compose enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill (\\`flex:1\\`) and add any persistent bottom action/status after it so the rail reads complete in taller frames. On mobile especially, flow real rows down the whole screen (status bar, header, then list/detail content) rather than a header floating above a gap. Keep every label short enough to sit on one line within its column — shorten the copy rather than relying on the frame to absorb it (long labels wrap or clip).\n\n**Persistent chrome bars span the full frame width.** Top bars, app headers,\ntoolbars, and bottom tab/nav bars are full-width chrome, not centered content.\nLay each one out as a single flex row that fills the frame\n(\\`style=\"display:flex;align-items:center;width:100%\"\\`) and push trailing actions\nto the right edge with a flex spacer (\\`<div style=\"flex:1\"></div>\\`) between the\nleading group and the trailing group — never center a bar inside a narrow,\ncentered block, and never let it collapse to the width of its contents. In a\nBefore/After pair the bar stays full-width in BOTH states even when one state has\nfewer controls; the spacer absorbs the difference so the remaining controls hold\ntheir edge alignment instead of sliding to the center.\n\n**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and\nany persistent bottom action row, make the frame itself a flex column at\n\\`height:100%\\` (\\`style=\"display:flex;flex-direction:column;height:100%\"\\`), give the\nscrolling body \\`flex:1\\` so it absorbs the slack, and place the bar as the LAST\nchild of the frame (or set \\`margin-top:auto\\` on it). The bar then sits flush at\nthe bottom of the surface instead of floating directly under the content with an\nempty band beneath it.\n\n**Before / after must be comparable.** When showing a state change, preserve the\nunchanged controls in both states so the reviewer can see exactly what moved or\nappeared; do not show an added control as a generic box floating elsewhere in\nthe surface. Place the new/changed affordance where the implementation puts it —\nfor example, a new \\`Edit with AI\\` action in a popover header belongs in the\ntop-right header slot, aligned with the title, not in the body or footer. Use\nthe same frame size, scale, outer padding, border radius, and visual density on\nboth sides unless the change itself alters those properties, and let the frame\nheight fit the content rather than leaving a tall empty lower half.\n\n**Name the states with the column header, never inside the frame.** For\ndocument-body wireframes (recaps), put the two\nstates in a \\`columns\\` block and set each column's \\`label\\` to \\`Before\\` and\n\\`After\\` — the renderer draws that label as an \\`h4\\` heading above each frame. Do\nNOT bake a \\`Before\\`/\\`After\\` pill, title, or heading into the wireframe \\`html\\`: a\nlabel placed inside reads as part of the product UI, lands in a random corner,\nand clutters the comparison. The column header is the one and only place the\nstate name belongs. On a canvas, place the two state artboards as neighbors with\nframe labels — never encode Before/After inside the html.\n\n**Let the surface choose side-by-side vs. stacked.** For document-body\nwireframes (recaps), the \\`columns\\` renderer lays\nnarrow surfaces (\\`mobile\\`, \\`popover\\`, \\`panel\\`) out side by side, and\nautomatically stacks wide surfaces (\\`desktop\\`, \\`browser\\`) vertically at full\ndocument width so a large frame is never crushed into a half-width column and\ncropped. Author both wireframes with the real \\`surface\\` and the matching\n\\`Before\\`/\\`After\\` column labels; do not hand-stack the pair into separate\ntop-level wireframes or duplicate the state name as body content.\n\n**Good example — a contacts list, surface \\`browser\\`.** A small, real screen\ncomposed from the helper classes and tokens, layout in inline flex, no fonts or\nhex colors:\n\n\\`\\`\\`html\n<div\n style=\"display:flex;flex-direction:column;gap:12px;padding:16px;height:100%\"\n>\n <div style=\"display:flex;align-items:center;justify-content:space-between\">\n <h1>Contacts</h1>\n <button class=\"primary\">New contact</button>\n </div>\n <div style=\"display:flex;gap:6px\">\n <span class=\"wf-pill accent\">All 128</span>\n <span class=\"wf-pill\">Favorites</span>\n <span class=\"wf-pill\">Archived</span>\n </div>\n <div\n class=\"wf-card\"\n style=\"display:flex;flex-direction:column;gap:0;padding:0\"\n >\n <div\n style=\"display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)\"\n >\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Jane Cooper</strong><br /><small>jane@acme.co</small>\n </div>\n <span class=\"wf-pill\">Lead</span>\n </div>\n <div style=\"display:flex;align-items:center;gap:10px;padding:10px 12px\">\n <div\n style=\"width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)\"\n ></div>\n <div style=\"flex:1\">\n <strong>Marcus Lee</strong><br /><small>marcus@globex.io</small>\n </div>\n <span class=\"wf-pill\">Customer</span>\n </div>\n </div>\n</div>\n\\`\\`\\`\n\n<!-- SHARED-CORE:wireframe-quality END -->`;\n\n// Progressive-disclosure reference file. `WIREFRAME_QUALITY_CORE` is the single\n// source of truth for HTML wireframe quality; it is materialized verbatim into a\n// sibling `references/wireframe.md` in EVERY plan skill dir (visual-plan and\n// visual-recap), instead of being interpolated inline into each SKILL.md body.\n// The SKILL.md bodies carry only `WIREFRAME_REFERENCE_POINTER`, which tells the\n// agent to read this file before authoring any wireframe. Keeping the reference\n// body byte-identical to the core (markers included) lets the sync guard assert\n// the on-disk copies never drift from the canonical constant.\nexport const WIREFRAME_REFERENCE_MD = `# HTML wireframe quality — single source of truth\n\nThis file is the canonical quality bar for HTML wireframes / \\`<Screen>\\` /\n\\`WireframeBlock\\` content, shared word for word by \\`/visual-plan\\` and\n\\`/visual-recap\\`. Read it in full before authoring ANY wireframe; do not\nauthor wireframes from memory or paraphrase these rules per command.\n\n${WIREFRAME_QUALITY_CORE}\n`;\n\n// Short pointer that replaces the inline wireframe-quality core in each SKILL.md\n// body. Authoring quality lives in the sibling reference file so the SKILL.md\n// stays lean (progressive disclosure); the agent loads the detail on demand.\nexport const WIREFRAME_REFERENCE_POINTER = `UI recap/plan wireframes must meet a strict quality bar — full-width chrome,\npinned bottom bars, real product content, before/after comparability, the right\n\\`surface\\` preset, \\`--wf-*\\` tokens instead of hex, and no \\`<html>\\`/\\`<style>\\`/font\ntags. Before authoring ANY wireframe / \\`<Screen>\\` / \\`WireframeBlock\\`, READ\n\\`references/wireframe.md\\` in this skill directory — it is the single source of\ntruth for HTML wireframe quality, shared word for word with \\`/visual-plan\\`\nand \\`/visual-recap\\`. Do not author wireframes from memory.`;\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VISUAL_RECAP_SKILL_MD } from "./skill-content/visual-recap-skill.js";
|
|
2
|
+
export { VISUAL_RECAP_SKILL_MD };
|
|
3
|
+
export declare const RECAP_REFERENCE_FILES: {
|
|
4
|
+
"references/wireframe.md": string;
|
|
5
|
+
"references/connection.md": string;
|
|
6
|
+
"references/local-files.md": string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=skill-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-content.d.ts","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CONNECTION_REFERENCE_MD } from "./skill-content/connection.js";
|
|
2
|
+
import { LOCAL_FILES_REFERENCE_MD } from "./skill-content/local-files.js";
|
|
3
|
+
import { VISUAL_RECAP_SKILL_MD } from "./skill-content/visual-recap-skill.js";
|
|
4
|
+
import { WIREFRAME_REFERENCE_MD } from "./skill-content/wireframe.js";
|
|
5
|
+
export { VISUAL_RECAP_SKILL_MD };
|
|
6
|
+
export const RECAP_REFERENCE_FILES = {
|
|
7
|
+
"references/wireframe.md": WIREFRAME_REFERENCE_MD,
|
|
8
|
+
"references/connection.md": CONNECTION_REFERENCE_MD,
|
|
9
|
+
"references/local-files.md": LOCAL_FILES_REFERENCE_MD,
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=skill-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-content.js","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,yBAAyB,EAAE,sBAAsB;IACjD,0BAA0B,EAAE,uBAAuB;IACnD,2BAA2B,EAAE,wBAAwB;CACtD,CAAC","sourcesContent":["import { CONNECTION_REFERENCE_MD } from \"./skill-content/connection.js\";\nimport { LOCAL_FILES_REFERENCE_MD } from \"./skill-content/local-files.js\";\nimport { VISUAL_RECAP_SKILL_MD } from \"./skill-content/visual-recap-skill.js\";\nimport { WIREFRAME_REFERENCE_MD } from \"./skill-content/wireframe.js\";\n\nexport { VISUAL_RECAP_SKILL_MD };\n\nexport const RECAP_REFERENCE_FILES = {\n \"references/wireframe.md\": WIREFRAME_REFERENCE_MD,\n \"references/connection.md\": CONNECTION_REFERENCE_MD,\n \"references/local-files.md\": LOCAL_FILES_REFERENCE_MD,\n};\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-native/recap-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Dependency-light PR visual recap CLI for Agent-Native workflows.",
|
|
5
|
+
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/BuilderIO/agent-native/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/BuilderIO/agent-native",
|
|
13
|
+
"directory": "packages/recap-cli"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"agent-native": "dist/cli.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"provenance": true
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"test": "vitest --run --passWithNoTests",
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^25.9.2",
|
|
40
|
+
"typescript-7": "catalog:",
|
|
41
|
+
"vitest": "catalog:"
|
|
42
|
+
},
|
|
43
|
+
"optionalDependencies": {
|
|
44
|
+
"@playwright/test": "^1.61.1",
|
|
45
|
+
"playwright": "^1.61.1"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=22.22.0"
|
|
49
|
+
}
|
|
50
|
+
}
|