@agent-native/core 0.66.1 → 0.66.3
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/skills.d.ts +4 -4
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +83 -21
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/ConnectBuilderCard.d.ts.map +1 -1
- package/dist/client/ConnectBuilderCard.js +3 -3
- package/dist/client/ConnectBuilderCard.js.map +1 -1
- package/dist/onboarding/default-steps.js +2 -1
- package/dist/onboarding/default-steps.js.map +1 -1
- package/dist/org/context.d.ts +3 -6
- package/dist/org/context.d.ts.map +1 -1
- package/dist/org/context.js +15 -12
- package/dist/org/context.js.map +1 -1
- package/dist/server/app-url.d.ts.map +1 -1
- package/dist/server/app-url.js +23 -1
- package/dist/server/app-url.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +58 -18
- package/dist/server/auth.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +44 -9
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/templates/workspace-core/.agents/skills/authentication/SKILL.md +14 -3
- package/docs/content/getting-started.md +0 -15
- package/package.json +1 -1
- package/src/templates/workspace-core/.agents/skills/authentication/SKILL.md +14 -3
package/dist/cli/skills.js
CHANGED
|
@@ -616,10 +616,14 @@ desktop frames plus compact \`mobile\`, \`popover\`, or \`panel\` surfaces, do n
|
|
|
616
616
|
everything in one horizontal strip. Use board-level artboard \`x\`/\`y\` to reserve
|
|
617
617
|
lanes with generous empty space: main flow on one row, compact surfaces in their
|
|
618
618
|
own column or row, and loading/error states in a lower row. Keep at least 96px
|
|
619
|
-
between rendered artboard rectangles plus room for annotation gutters
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
619
|
+
between rendered artboard rectangles plus room for annotation gutters; when a
|
|
620
|
+
broad browser/desktop frame sits beside a compact panel/popover, leave at least
|
|
621
|
+
160px so frame borders, labels, and hover controls never touch. Connect only
|
|
622
|
+
neighboring steps; never draw a long connector that skips across unrelated
|
|
623
|
+
frames. Connector labels must sit in open canvas space. If the label would touch
|
|
624
|
+
or cross either artboard, remove the label and explain the transition with a
|
|
625
|
+
nearby annotation instead. Before handoff, inspect the top canvas at default zoom
|
|
626
|
+
and move any frame whose label, connector, or annotation crosses another frame.
|
|
623
627
|
|
|
624
628
|
**Canvas annotations are designer notes on the artboard.** When a top canvas is
|
|
625
629
|
present, sprinkle Figma-style notes near the frames they explain: a short
|
|
@@ -685,6 +689,13 @@ requested UI fidelity, still keep the closest top-surface representation and
|
|
|
685
689
|
call out or extend the needed renderer capability. A skeleton/loading mockup
|
|
686
690
|
also lives in a canvas artboard — never move a mockup out of the canvas.
|
|
687
691
|
|
|
692
|
+
**Storyboards are canvas artifacts, not document diagrams.** When the requested
|
|
693
|
+
output is a product flow, onboarding journey, "light storyboard", or canvas
|
|
694
|
+
wireframe, author the flow as multiple top-canvas artboards with real screen
|
|
695
|
+
content and neighboring connectors. Keep document-body \`diagram\` blocks for
|
|
696
|
+
architecture and mechanics that are not themselves user-visible screens. A
|
|
697
|
+
storyboard made from a single inline HTML diagram is the wrong surface.
|
|
698
|
+
|
|
688
699
|
For abstract product concepts, use the canvas to create the first "I get it"
|
|
689
700
|
moment: one real app state near the top showing how the concept appears to a
|
|
690
701
|
user, followed by separate annotations or diagrams for mechanics. Do not make
|
|
@@ -692,10 +703,16 @@ the first artboard a hybrid of app UI and architecture notes; the app screen
|
|
|
692
703
|
should be inspectable as product UI on its own.
|
|
693
704
|
|
|
694
705
|
**Legacy kit tree.** Older plans set a \`screen\` array of \`{ el, ...props }\` kit
|
|
695
|
-
nodes instead of \`html\`; the renderer still accepts and displays it
|
|
696
|
-
plans emit \`html\`. Do not author fresh kit-tree
|
|
697
|
-
|
|
698
|
-
|
|
706
|
+
nodes instead of \`html\`; the renderer still accepts and displays it so saved
|
|
707
|
+
plans round-trip, but new plans emit \`html\`. Do not author fresh kit-tree
|
|
708
|
+
screens, and do not put nested kit components such as \`<FrameScreen>\`, \`<Card>\`,
|
|
709
|
+
\`<Row>\`, \`<Title>\`, or \`<Btn>\` inside a canvas \`<Screen>\`. A new canvas artboard
|
|
710
|
+
with kit-tree children is a defect: replace it with
|
|
711
|
+
\`<Screen surface="..." html={...} />\` using the HTML wireframe rules. The HTML
|
|
712
|
+
path is the one that gets the renderer-owned surface sizing, theme tokens,
|
|
713
|
+
sketch/clean toggle, and safe text layout used by good document-body
|
|
714
|
+
wireframes. Likewise, old or imported plans may carry coordinate-based regions
|
|
715
|
+
or free-float x/y on notes; those are legacy escape hatches the renderer still
|
|
699
716
|
shows but you must never produce. The gutter parks notes by \`targetId\` +
|
|
700
717
|
\`placement\`, and the coordinate rule at the top of this file governs all
|
|
701
718
|
new-plan placement.
|
|
@@ -790,7 +807,11 @@ so you never emit a block the editor cannot render or round-trip:
|
|
|
790
807
|
two-dimensional layouts — paired before/after panels, layered diagrams,
|
|
791
808
|
swimlanes, dependency maps, matrices, or grouped regions; do not default to
|
|
792
809
|
left-to-right chains, and use a line only when the relationship is truly a
|
|
793
|
-
sequence.
|
|
810
|
+
sequence. Do not use a body \`diagram\` as the primary artifact for a requested
|
|
811
|
+
product canvas, light storyboard, UI flow, screen flow, or wireframe; those
|
|
812
|
+
belong in the top canvas as artboards with \`Screen\` wireframes first. Use
|
|
813
|
+
diagrams below that canvas only for architecture, data flow, or implementation
|
|
814
|
+
mechanics. For architecture/code
|
|
794
815
|
diagrams, prefer \`data.html\` / \`data.css\` with semantic HTML and inline SVG so
|
|
795
816
|
the diagram can use panels, layers, matrices, arrows, annotations, and
|
|
796
817
|
responsive layout directly. Author diagram HTML with renderer-owned primitives
|
|
@@ -1094,10 +1115,15 @@ ownership, privacy, sharing, and branding needs.
|
|
|
1094
1115
|
|
|
1095
1116
|
By default, create the plan via the Plan MCP connector. NEVER hand the plan over
|
|
1096
1117
|
as inline chat content — no Markdown prose, ASCII sketch, table, or fenced
|
|
1097
|
-
wireframe.
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1118
|
+
wireframe. Some clients lazy-load connector tools through a deferred tool
|
|
1119
|
+
registry instead of showing the \`plan\` namespace upfront; before declaring the
|
|
1120
|
+
connector missing, search/load tools with the host's discovery surface
|
|
1121
|
+
(\`tool_search\` when available) for \`create_visual_plan\`, \`create_ui_plan\`, or
|
|
1122
|
+
\`get_plan_blocks\`, then use the Plan MCP tools it exposes. If the connector's
|
|
1123
|
+
tools are still missing after discovery, do NOT fall back to inline output: the
|
|
1124
|
+
usual cause is a connector that did not finish connecting this session (it
|
|
1125
|
+
registers zero tools), not auth. Stop and give the user the exact restore step
|
|
1126
|
+
for their current client: in Codex/Codex Desktop run
|
|
1101
1127
|
\`npx -y @agent-native/core@latest reconnect https://plan.agent-native.com --client codex\`
|
|
1102
1128
|
and start a new Codex session; in Claude Code run \`/mcp\` and choose
|
|
1103
1129
|
Authenticate/Reconnect (or run the same reconnect command with
|
|
@@ -1204,6 +1230,14 @@ beside frames with \`targetId\` plus \`placement\`; keep implementation details,
|
|
|
1204
1230
|
tradeoffs, file maps, data contracts, risks, and verification in the document
|
|
1205
1231
|
body below the canvas.
|
|
1206
1232
|
|
|
1233
|
+
When the user asks for a flow, storyboard, journey, wireframe, canvas, or "what
|
|
1234
|
+
this looks like", treat that as a canvas-first request. Make one artboard per
|
|
1235
|
+
user-visible state, connect only adjacent transitions, and use short canvas
|
|
1236
|
+
annotations for the product notes. Do not substitute a document-body \`diagram\`
|
|
1237
|
+
block for the requested storyboard just because HTML diagrams are faster to
|
|
1238
|
+
write; diagrams belong below the canvas for backend mechanics, architecture, or
|
|
1239
|
+
data-flow explanation.
|
|
1240
|
+
|
|
1207
1241
|
Keep product wireframes and explanatory/meta diagrams separate. Start with pure
|
|
1208
1242
|
screens that look like the app state under discussion, without callout prose or
|
|
1209
1243
|
architecture notes embedded inside the UI. Put arrows, labels, contracts, data
|
|
@@ -1262,6 +1296,12 @@ in lanes, annotations are plain-text designer notes anchored by
|
|
|
1262
1296
|
authoring or editing ANY canvas, artboard, or annotation, READ
|
|
1263
1297
|
\`references/canvas.md\` in this skill directory — it is the single source of truth
|
|
1264
1298
|
for canvas/artboard mechanics. Do not author canvas layouts from memory.
|
|
1299
|
+
Canvas artboards use the same HTML wireframe path as document-body
|
|
1300
|
+
\`WireframeBlock\` screens: author \`<Screen surface="..." html={...} />\` with a
|
|
1301
|
+
semantic HTML fragment. Do not author fresh kit-tree children such as
|
|
1302
|
+
\`<FrameScreen>\`, \`<Card>\`, \`<Row>\`, or \`<Btn>\` inside canvas \`<Screen>\` tags;
|
|
1303
|
+
those are legacy compatibility markup for old plans and produce brittle canvas
|
|
1304
|
+
layouts.
|
|
1265
1305
|
|
|
1266
1306
|
## Document quality — read \`references/document-quality.md\`
|
|
1267
1307
|
|
|
@@ -1557,13 +1597,20 @@ A recap's entire value is the hosted, interactive, annotatable plan; an inline
|
|
|
1557
1597
|
summary is not a recap, it is the thing a recap replaces. The only supported
|
|
1558
1598
|
output is to publish the plan and return its absolute URL.
|
|
1559
1599
|
|
|
1600
|
+
Some clients lazy-load connector tools through a deferred tool registry instead
|
|
1601
|
+
of showing the \`plan\` namespace upfront. Before declaring the Plan connector
|
|
1602
|
+
missing, search/load tools with the host's discovery surface (\`tool_search\` when
|
|
1603
|
+
available) for \`create_visual_recap\`, \`create_visual_plan\`, or
|
|
1604
|
+
\`get_plan_blocks\`, then use the Plan MCP tools it exposes.
|
|
1605
|
+
|
|
1560
1606
|
Except for the explicit local-files privacy mode above, if neither the \`plan\`
|
|
1561
|
-
nor legacy \`agent-native-plans\` Plan MCP tools are available
|
|
1562
|
-
inline recap as a fallback. Do not report the
|
|
1563
|
-
because it is named \`agent-native-plans\` instead
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1607
|
+
nor legacy \`agent-native-plans\` Plan MCP tools are available after deferred tool
|
|
1608
|
+
discovery, do NOT improvise an inline recap as a fallback. Do not report the
|
|
1609
|
+
connector as disconnected just because it is named \`agent-native-plans\` instead
|
|
1610
|
+
of \`plan\`, or because the tools were not visible before discovery. The usual
|
|
1611
|
+
cause is a connector that did not finish connecting this session (it registers
|
|
1612
|
+
zero tools), NOT necessarily an auth problem — so do not assume the user must
|
|
1613
|
+
authenticate. Stop and tell the user how to restore it for their current client: in
|
|
1567
1614
|
Codex/Codex Desktop, run
|
|
1568
1615
|
\`npx -y @agent-native/core@latest reconnect https://plan.agent-native.com --client codex\`
|
|
1569
1616
|
and start a new Codex session; in Claude Code, run \`/mcp\` and choose
|
|
@@ -1745,6 +1792,19 @@ and re-import before reporting the link. A text-match screenshot is not enough;
|
|
|
1745
1792
|
visually inspect the captured image. When no browser is available (for example
|
|
1746
1793
|
a headless CI agent), state that in the recap handoff instead.
|
|
1747
1794
|
|
|
1795
|
+
## Top Canvas Recaps — read \`../visual-plans/references/canvas.md\`
|
|
1796
|
+
|
|
1797
|
+
When a recap includes a top canvas, storyboard, or flow view, READ
|
|
1798
|
+
\`../visual-plans/references/canvas.md\` before authoring \`canvas.mdx\`. Recap
|
|
1799
|
+
canvas artboards must use the same HTML wireframe path as good document-body
|
|
1800
|
+
wireframes: \`<Screen surface="..." html={...} />\` with a semantic HTML fragment.
|
|
1801
|
+
Do not author fresh kit-tree children such as \`<FrameScreen>\`, \`<Card>\`,
|
|
1802
|
+
\`<Row>\`, \`<Title>\`, or \`<Btn>\` inside canvas \`<Screen>\` tags. Those components
|
|
1803
|
+
are legacy compatibility markup for old plans; in new canvas storyboards they
|
|
1804
|
+
can produce cramped or overlapping layouts even when the inline body wireframe
|
|
1805
|
+
looks good. If a canvas mockup looks worse than the same screen below the fold,
|
|
1806
|
+
assume it used the legacy kit path and replace it with an HTML screen.
|
|
1807
|
+
|
|
1748
1808
|
## Open And Report The Recap
|
|
1749
1809
|
|
|
1750
1810
|
In local-files privacy mode, run \`plan local check\` first, then report the local
|
|
@@ -1903,8 +1963,10 @@ instead of \`Endpoint\`, \`JsonExplorer\` instead of \`Json\`, \`Tabs\` instead
|
|
|
1903
1963
|
|
|
1904
1964
|
**Before writing any structured plan content, fetch/read the block catalog.** In
|
|
1905
1965
|
hosted or self-hosted mode, call \`get-plan-blocks\` on the Plan MCP connector
|
|
1906
|
-
(\`plan\` or legacy \`agent-native-plans\`).
|
|
1907
|
-
|
|
1966
|
+
(\`plan\` or legacy \`agent-native-plans\`). If no Plan tools are visible yet in a
|
|
1967
|
+
lazy-loading client, search/load them through the host's tool discovery surface
|
|
1968
|
+
first (\`tool_search\` when available). In local-files mode, or when the skill was
|
|
1969
|
+
installed as plain text and no MCP tools are registered after discovery, run
|
|
1908
1970
|
\`npx @agent-native/core@latest plan blocks --out plan-blocks.md\` and read that
|
|
1909
1971
|
file first. The CLI command calls the public no-auth \`get-plan-blocks\` route and
|
|
1910
1972
|
sends no plan/recap content. If network access is unavailable, use the bundled
|