@agent-native/core 0.84.52 → 0.84.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +14 -0
  3. package/corpus/core/package.json +1 -1
  4. package/corpus/core/src/cli/skills.ts +34 -16
  5. package/corpus/core/src/client/AssistantChat.tsx +140 -114
  6. package/corpus/core/src/client/blocks/library/diagram.config.ts +13 -2
  7. package/corpus/core/src/client/blocks/library/diagram.tsx +27 -3
  8. package/corpus/core/src/client/blocks/library/server-specs.ts +2 -2
  9. package/corpus/core/src/client/blocks/library/wireframe.config.ts +7 -1
  10. package/corpus/core/src/client/blocks/library/wireframe.tsx +42 -3
  11. package/corpus/core/src/client/blocks/types.ts +9 -0
  12. package/corpus/core/src/client/chat/message-components.tsx +1 -1
  13. package/corpus/core/src/styles/agent-native.css +44 -0
  14. package/corpus/core/src/styles/blocks.css +18 -0
  15. package/corpus/templates/plan/.agents/skills/visual-plan/references/document-quality.md +10 -6
  16. package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +20 -9
  17. package/corpus/templates/plan/.agents/skills/visual-recap/SKILL.md +4 -1
  18. package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +20 -9
  19. package/corpus/templates/plan/actions/create-ui-plan.ts +1 -1
  20. package/corpus/templates/plan/actions/create-visual-plan.ts +1 -1
  21. package/corpus/templates/plan/actions/create-visual-recap.ts +1 -1
  22. package/corpus/templates/plan/actions/get-plan-blocks.ts +2 -0
  23. package/corpus/templates/plan/app/components/plan/planBlocks.tsx +2 -0
  24. package/corpus/templates/plan/app/components/plan/wireframe/Wireframe.tsx +38 -4
  25. package/corpus/templates/plan/app/components/plan/wireframe/html-artboard.css +18 -0
  26. package/corpus/templates/plan/app/global.css +1 -2
  27. package/corpus/templates/plan/changelog/2026-07-02-plan-chat-keeps-the-composer-anchored-when-connect-ai-appears.md +6 -0
  28. package/corpus/templates/plan/changelog/2026-07-02-wireframe-and-diagram-blocks-can-now-show-or-hide-their-outer-frame.md +6 -0
  29. package/corpus/templates/plan/server/plan-mdx.ts +3 -0
  30. package/corpus/templates/plan/shared/plan-content.ts +8 -0
  31. package/dist/cli/skills.d.ts +3 -3
  32. package/dist/cli/skills.d.ts.map +1 -1
  33. package/dist/cli/skills.js +34 -16
  34. package/dist/cli/skills.js.map +1 -1
  35. package/dist/client/AssistantChat.d.ts.map +1 -1
  36. package/dist/client/AssistantChat.js +32 -25
  37. package/dist/client/AssistantChat.js.map +1 -1
  38. package/dist/client/blocks/library/diagram.config.d.ts +3 -1
  39. package/dist/client/blocks/library/diagram.config.d.ts.map +1 -1
  40. package/dist/client/blocks/library/diagram.config.js +10 -1
  41. package/dist/client/blocks/library/diagram.config.js.map +1 -1
  42. package/dist/client/blocks/library/diagram.d.ts.map +1 -1
  43. package/dist/client/blocks/library/diagram.js +13 -7
  44. package/dist/client/blocks/library/diagram.js.map +1 -1
  45. package/dist/client/blocks/library/server-specs.js +2 -2
  46. package/dist/client/blocks/library/server-specs.js.map +1 -1
  47. package/dist/client/blocks/library/wireframe.config.d.ts +3 -1
  48. package/dist/client/blocks/library/wireframe.config.d.ts.map +1 -1
  49. package/dist/client/blocks/library/wireframe.config.js +4 -0
  50. package/dist/client/blocks/library/wireframe.config.js.map +1 -1
  51. package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
  52. package/dist/client/blocks/library/wireframe.js +20 -9
  53. package/dist/client/blocks/library/wireframe.js.map +1 -1
  54. package/dist/client/blocks/types.d.ts +8 -0
  55. package/dist/client/blocks/types.d.ts.map +1 -1
  56. package/dist/client/blocks/types.js.map +1 -1
  57. package/dist/client/chat/message-components.js +1 -1
  58. package/dist/client/chat/message-components.js.map +1 -1
  59. package/dist/notifications/routes.d.ts +2 -2
  60. package/dist/observability/routes.d.ts +6 -6
  61. package/dist/progress/routes.d.ts +1 -1
  62. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  63. package/dist/styles/agent-native.css +44 -0
  64. package/dist/styles/blocks.css +18 -0
  65. package/package.json +1 -1
@@ -834,15 +834,26 @@ occurrence. The result is re-sanitized. In local-files privacy mode, do not call
834
834
  hosted Plan tools; edit the local MDX source directly and rerun the local
835
835
  check/serve or verify command for \`<plan-dir>\`.
836
836
 
837
- **Treat the wireframe border as part of the visible design.** Always wrap HTML
838
- wireframe content in a root container with real inner padding before drawing
839
- cards, fields, pills, labels, or controls. Use at least 14-16px of padding,
840
- \`box-sizing: border-box\`, \`height: 100%\`, and \`gap\` between child rows on the
841
- root node itself so the first row never sits flush against the screen border. Do
842
- not rely on padding on a nested page section as the first visible inset; the
843
- outermost element must create the breathing room. Keep text away from borders:
844
- every container, field, button, menu item, and annotation needs enough padding
845
- and line-height to read cleanly in the rendered Plan view.
837
+ **Choose the outer frame deliberately.** Wireframe and diagram data accept
838
+ \`frame: "auto" | "show" | "hide"\` in block data (\`<Screen frame="hide">\` in
839
+ MDX wireframes, \`<Diagram frame="hide">\` for MDX diagrams). Leave it unset or
840
+ \`auto\` when the host context should decide: Plan and recap surfaces default to a
841
+ drawn outer frame; docs surfaces default to no outer frame. Use \`show\` for
842
+ standalone product screens, before/after recap comparisons, screenshot-like
843
+ artifacts, and visuals that need containment from surrounding prose. Use \`hide\`
844
+ when a docs page, tab, column, card, canvas artboard, or the visual's own
845
+ internal chrome already supplies the boundary. Do not use \`hide\` to compensate
846
+ for cramped content; fix the layout instead.
847
+
848
+ **Inner padding and borders still matter.** Always wrap HTML wireframe content
849
+ in a root container with real inner padding before drawing cards, fields, pills,
850
+ labels, or controls. Use at least 14-16px of padding, \`box-sizing: border-box\`,
851
+ \`height: 100%\`, and \`gap\` between child rows on the root node itself so the
852
+ first row never sits flush against the screen edge. Do not rely on padding on a
853
+ nested page section as the first visible inset; the outermost element must
854
+ create the breathing room. Keep text away from borders: every container, field,
855
+ button, menu item, and annotation needs enough padding and line-height to read
856
+ cleanly in the rendered Plan view.
846
857
 
847
858
  **For feature-cloud or abundance visuals, optimize the composition over line-by-line
848
859
  reading.** Some marketing/product sections need to feel like a large surface area
@@ -1216,12 +1227,16 @@ so you never emit a block the editor cannot render or round-trip:
1216
1227
  \`--wf-paper\`, \`--wf-card\`, \`--wf-accent\`, \`--wf-accent-soft\`, \`--wf-warn\`, and
1217
1228
  \`--wf-ok\`, and switch to Excalifont plus rough.js outlines in sketchy mode. Do not
1218
1229
  set \`font-family\` and do not hard-code hex, rgb, or hsl colors in diagram HTML
1219
- or CSS. Leave room for the sketch font: keep labels short, give nodes generous
1220
- width, and place boundary/annotation labels in unused space instead of over
1221
- nodes; labels must not overlap nodes, connectors, or each other. For small
1222
- text/SVG changes to an existing HTML diagram, use \`patch-diagram-html\` with a
1223
- unique \`find\`/\`replace\` snippet instead of resending the whole \`data.html\`
1224
- string. Use legacy \`nodes\` / \`edges\` only for small previews or truly
1230
+ or CSS. Choose the outer \`frame\` intentionally: use \`show\` when the diagram
1231
+ stands alone in a recap, comparison, or prose section; use \`hide\` when the
1232
+ diagram sits inside docs chrome, columns, tabs, cards, a canvas surface, or
1233
+ already has visible \`.diagram-panel\` / \`.diagram-box\` structure. Leave room
1234
+ for the sketch font: keep labels short, give nodes generous width, and place
1235
+ boundary/annotation labels in unused space instead of over nodes; labels must
1236
+ not overlap nodes, connectors, or each other. For small text/SVG changes to an
1237
+ existing HTML diagram, use \`patch-diagram-html\` with a unique
1238
+ \`find\`/\`replace\` snippet instead of resending the whole \`data.html\` string.
1239
+ Use legacy \`nodes\` / \`edges\` only for small previews or truly
1225
1240
  sequential flows. In architecture/code plans, prefer a repeated section rhythm:
1226
1241
  recommendation title, confidence and category badges, code-path evidence, a
1227
1242
  local before/after or current/target spatial diagram, then concise
@@ -2387,7 +2402,10 @@ tags — resolve every conceptual name to its exact tag + prop schema with the
2387
2402
  Author diagram HTML/CSS with the renderer-owned \`.diagram-*\` primitives
2388
2403
  (\`.diagram-panel\`, \`.diagram-node\`, \`.diagram-pill\`, \`[data-rough]\`, …) and
2389
2404
  the same \`--wf-*\` theme tokens \`references/wireframe.md\` defines — never
2390
- \`font-family\`, hex, rgb/hsl literals, or one-off dark/light palettes.
2405
+ \`font-family\`, hex, rgb/hsl literals, or one-off dark/light palettes. Choose
2406
+ the outer \`frame\` intentionally: recap diagrams usually benefit from
2407
+ \`frame: "show"\` when they stand alone, but use \`frame: "hide"\` when columns,
2408
+ tabs, a card, or the diagram's own panels already provide the boundary.
2391
2409
  - **Outcome-first narrative** → \`rich-text\` for the "what changed and why" prose:
2392
2410
  the objective the diff served, the key decisions visible in it, and the risks a
2393
2411
  reviewer should weigh. This is the only place the model writes freely.