@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.
- package/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +14 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/skills.ts +34 -16
- package/corpus/core/src/client/AssistantChat.tsx +140 -114
- package/corpus/core/src/client/blocks/library/diagram.config.ts +13 -2
- package/corpus/core/src/client/blocks/library/diagram.tsx +27 -3
- package/corpus/core/src/client/blocks/library/server-specs.ts +2 -2
- package/corpus/core/src/client/blocks/library/wireframe.config.ts +7 -1
- package/corpus/core/src/client/blocks/library/wireframe.tsx +42 -3
- package/corpus/core/src/client/blocks/types.ts +9 -0
- package/corpus/core/src/client/chat/message-components.tsx +1 -1
- package/corpus/core/src/styles/agent-native.css +44 -0
- package/corpus/core/src/styles/blocks.css +18 -0
- package/corpus/templates/plan/.agents/skills/visual-plan/references/document-quality.md +10 -6
- package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +20 -9
- package/corpus/templates/plan/.agents/skills/visual-recap/SKILL.md +4 -1
- package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +20 -9
- package/corpus/templates/plan/actions/create-ui-plan.ts +1 -1
- package/corpus/templates/plan/actions/create-visual-plan.ts +1 -1
- package/corpus/templates/plan/actions/create-visual-recap.ts +1 -1
- package/corpus/templates/plan/actions/get-plan-blocks.ts +2 -0
- package/corpus/templates/plan/app/components/plan/planBlocks.tsx +2 -0
- package/corpus/templates/plan/app/components/plan/wireframe/Wireframe.tsx +38 -4
- package/corpus/templates/plan/app/components/plan/wireframe/html-artboard.css +18 -0
- package/corpus/templates/plan/app/global.css +1 -2
- package/corpus/templates/plan/changelog/2026-07-02-plan-chat-keeps-the-composer-anchored-when-connect-ai-appears.md +6 -0
- package/corpus/templates/plan/changelog/2026-07-02-wireframe-and-diagram-blocks-can-now-show-or-hide-their-outer-frame.md +6 -0
- package/corpus/templates/plan/server/plan-mdx.ts +3 -0
- package/corpus/templates/plan/shared/plan-content.ts +8 -0
- package/dist/cli/skills.d.ts +3 -3
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +34 -16
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +32 -25
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/blocks/library/diagram.config.d.ts +3 -1
- package/dist/client/blocks/library/diagram.config.d.ts.map +1 -1
- package/dist/client/blocks/library/diagram.config.js +10 -1
- package/dist/client/blocks/library/diagram.config.js.map +1 -1
- package/dist/client/blocks/library/diagram.d.ts.map +1 -1
- package/dist/client/blocks/library/diagram.js +13 -7
- package/dist/client/blocks/library/diagram.js.map +1 -1
- package/dist/client/blocks/library/server-specs.js +2 -2
- package/dist/client/blocks/library/server-specs.js.map +1 -1
- package/dist/client/blocks/library/wireframe.config.d.ts +3 -1
- package/dist/client/blocks/library/wireframe.config.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe.config.js +4 -0
- package/dist/client/blocks/library/wireframe.config.js.map +1 -1
- package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe.js +20 -9
- package/dist/client/blocks/library/wireframe.js.map +1 -1
- package/dist/client/blocks/types.d.ts +8 -0
- package/dist/client/blocks/types.d.ts.map +1 -1
- package/dist/client/blocks/types.js.map +1 -1
- package/dist/client/chat/message-components.js +1 -1
- package/dist/client/chat/message-components.js.map +1 -1
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +6 -6
- package/dist/progress/routes.d.ts +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/styles/agent-native.css +44 -0
- package/dist/styles/blocks.css +18 -0
- package/package.json +1 -1
package/dist/cli/skills.js
CHANGED
|
@@ -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
|
-
**
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
\`
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
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.
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
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.
|