@agent-native/core 0.42.0 → 0.44.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.
Files changed (139) hide show
  1. package/README.md +17 -56
  2. package/dist/chat-threads/store.d.ts.map +1 -1
  3. package/dist/chat-threads/store.js +71 -10
  4. package/dist/chat-threads/store.js.map +1 -1
  5. package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
  6. package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
  7. package/dist/cli/pr-visual-recap-workflow.js +1 -1
  8. package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
  9. package/dist/cli/recap.d.ts.map +1 -1
  10. package/dist/cli/recap.js +13 -13
  11. package/dist/cli/recap.js.map +1 -1
  12. package/dist/cli/skills.d.ts +2 -6
  13. package/dist/cli/skills.d.ts.map +1 -1
  14. package/dist/cli/skills.js +21 -79
  15. package/dist/cli/skills.js.map +1 -1
  16. package/dist/client/AssistantChat.d.ts.map +1 -1
  17. package/dist/client/AssistantChat.js +76 -18
  18. package/dist/client/AssistantChat.js.map +1 -1
  19. package/dist/client/blocks/index.d.ts +9 -0
  20. package/dist/client/blocks/index.d.ts.map +1 -1
  21. package/dist/client/blocks/index.js +9 -0
  22. package/dist/client/blocks/index.js.map +1 -1
  23. package/dist/client/blocks/library/AnnotatedCodeBlock.d.ts.map +1 -1
  24. package/dist/client/blocks/library/AnnotatedCodeBlock.js +3 -3
  25. package/dist/client/blocks/library/AnnotatedCodeBlock.js.map +1 -1
  26. package/dist/client/blocks/library/ApiEndpointBlock.d.ts.map +1 -1
  27. package/dist/client/blocks/library/ApiEndpointBlock.js +1 -1
  28. package/dist/client/blocks/library/ApiEndpointBlock.js.map +1 -1
  29. package/dist/client/blocks/library/DiffBlock.d.ts.map +1 -1
  30. package/dist/client/blocks/library/DiffBlock.js +128 -19
  31. package/dist/client/blocks/library/DiffBlock.js.map +1 -1
  32. package/dist/client/blocks/library/FileTreeBlock.d.ts.map +1 -1
  33. package/dist/client/blocks/library/FileTreeBlock.js +31 -4
  34. package/dist/client/blocks/library/FileTreeBlock.js.map +1 -1
  35. package/dist/client/blocks/library/JsonExplorerBlock.js +1 -1
  36. package/dist/client/blocks/library/JsonExplorerBlock.js.map +1 -1
  37. package/dist/client/blocks/library/MermaidBlock.js +1 -1
  38. package/dist/client/blocks/library/MermaidBlock.js.map +1 -1
  39. package/dist/client/blocks/library/callout.config.d.ts +29 -0
  40. package/dist/client/blocks/library/callout.config.d.ts.map +1 -0
  41. package/dist/client/blocks/library/callout.config.js +33 -0
  42. package/dist/client/blocks/library/callout.config.js.map +1 -0
  43. package/dist/client/blocks/library/callout.d.ts +20 -0
  44. package/dist/client/blocks/library/callout.d.ts.map +1 -0
  45. package/dist/client/blocks/library/callout.js +61 -0
  46. package/dist/client/blocks/library/callout.js.map +1 -0
  47. package/dist/client/blocks/library/checklist.d.ts.map +1 -1
  48. package/dist/client/blocks/library/checklist.js +3 -3
  49. package/dist/client/blocks/library/checklist.js.map +1 -1
  50. package/dist/client/blocks/library/code-tabs.js +1 -1
  51. package/dist/client/blocks/library/code-tabs.js.map +1 -1
  52. package/dist/client/blocks/library/diagram.config.d.ts +64 -0
  53. package/dist/client/blocks/library/diagram.config.d.ts.map +1 -0
  54. package/dist/client/blocks/library/diagram.config.js +111 -0
  55. package/dist/client/blocks/library/diagram.config.js.map +1 -0
  56. package/dist/client/blocks/library/diagram.d.ts +16 -0
  57. package/dist/client/blocks/library/diagram.d.ts.map +1 -0
  58. package/dist/client/blocks/library/diagram.js +261 -0
  59. package/dist/client/blocks/library/diagram.js.map +1 -0
  60. package/dist/client/blocks/library/question-form.config.d.ts +69 -0
  61. package/dist/client/blocks/library/question-form.config.d.ts.map +1 -0
  62. package/dist/client/blocks/library/question-form.config.js +58 -0
  63. package/dist/client/blocks/library/question-form.config.js.map +1 -0
  64. package/dist/client/blocks/library/question-form.d.ts +20 -0
  65. package/dist/client/blocks/library/question-form.d.ts.map +1 -0
  66. package/dist/client/blocks/library/question-form.js +286 -0
  67. package/dist/client/blocks/library/question-form.js.map +1 -0
  68. package/dist/client/blocks/library/sanitize-html.d.ts +5 -0
  69. package/dist/client/blocks/library/sanitize-html.d.ts.map +1 -0
  70. package/dist/client/blocks/library/sanitize-html.js +240 -0
  71. package/dist/client/blocks/library/sanitize-html.js.map +1 -0
  72. package/dist/client/blocks/library/server-specs.d.ts.map +1 -1
  73. package/dist/client/blocks/library/server-specs.js +49 -0
  74. package/dist/client/blocks/library/server-specs.js.map +1 -1
  75. package/dist/client/blocks/library/specs.d.ts.map +1 -1
  76. package/dist/client/blocks/library/specs.js +9 -0
  77. package/dist/client/blocks/library/specs.js.map +1 -1
  78. package/dist/client/blocks/library/tabs.d.ts.map +1 -1
  79. package/dist/client/blocks/library/tabs.js +12 -12
  80. package/dist/client/blocks/library/tabs.js.map +1 -1
  81. package/dist/client/blocks/library/wireframe-kit.d.ts +260 -0
  82. package/dist/client/blocks/library/wireframe-kit.d.ts.map +1 -0
  83. package/dist/client/blocks/library/wireframe-kit.js +920 -0
  84. package/dist/client/blocks/library/wireframe-kit.js.map +1 -0
  85. package/dist/client/blocks/library/wireframe.config.d.ts +123 -0
  86. package/dist/client/blocks/library/wireframe.config.d.ts.map +1 -0
  87. package/dist/client/blocks/library/wireframe.config.js +311 -0
  88. package/dist/client/blocks/library/wireframe.config.js.map +1 -0
  89. package/dist/client/blocks/library/wireframe.d.ts +15 -0
  90. package/dist/client/blocks/library/wireframe.d.ts.map +1 -0
  91. package/dist/client/blocks/library/wireframe.js +206 -0
  92. package/dist/client/blocks/library/wireframe.js.map +1 -0
  93. package/dist/client/blocks/mdx.d.ts.map +1 -1
  94. package/dist/client/blocks/mdx.js +11 -0
  95. package/dist/client/blocks/mdx.js.map +1 -1
  96. package/dist/client/blocks/registry.d.ts +9 -0
  97. package/dist/client/blocks/registry.d.ts.map +1 -1
  98. package/dist/client/blocks/registry.js +12 -5
  99. package/dist/client/blocks/registry.js.map +1 -1
  100. package/dist/client/blocks/server.d.ts +1 -0
  101. package/dist/client/blocks/server.d.ts.map +1 -1
  102. package/dist/client/blocks/server.js +1 -0
  103. package/dist/client/blocks/server.js.map +1 -1
  104. package/dist/client/blocks/types.d.ts +8 -0
  105. package/dist/client/blocks/types.d.ts.map +1 -1
  106. package/dist/client/blocks/types.js.map +1 -1
  107. package/dist/client/rich-markdown-editor/DragHandle.d.ts.map +1 -1
  108. package/dist/client/rich-markdown-editor/DragHandle.js +112 -84
  109. package/dist/client/rich-markdown-editor/DragHandle.js.map +1 -1
  110. package/dist/client/rich-markdown-editor/RegistryBlockNode.d.ts.map +1 -1
  111. package/dist/client/rich-markdown-editor/RegistryBlockNode.js +1 -1
  112. package/dist/client/rich-markdown-editor/RegistryBlockNode.js.map +1 -1
  113. package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +9 -1
  114. package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +1 -1
  115. package/dist/client/rich-markdown-editor/SharedRichEditor.js +3 -1
  116. package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +1 -1
  117. package/dist/client/rich-markdown-editor/extensions.d.ts +13 -1
  118. package/dist/client/rich-markdown-editor/extensions.d.ts.map +1 -1
  119. package/dist/client/rich-markdown-editor/extensions.js +4 -2
  120. package/dist/client/rich-markdown-editor/extensions.js.map +1 -1
  121. package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +1 -1
  122. package/dist/client/rich-markdown-editor/useCollabReconcile.js +11 -1
  123. package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +1 -1
  124. package/dist/server/poll.d.ts.map +1 -1
  125. package/dist/server/poll.js +30 -14
  126. package/dist/server/poll.js.map +1 -1
  127. package/dist/styles/agent-native.css +1 -0
  128. package/dist/styles/blocks.css +1388 -0
  129. package/dist/templates/default/.agents/skills/storing-data/SKILL.md +2 -0
  130. package/dist/templates/workspace-core/.agents/skills/performance/SKILL.md +141 -0
  131. package/dist/templates/workspace-core/.agents/skills/storing-data/SKILL.md +2 -0
  132. package/docs/content/plan-plugin.md +8 -8
  133. package/docs/content/pr-visual-recap.md +2 -2
  134. package/docs/content/template-plan.md +94 -17
  135. package/package.json +2 -1
  136. package/src/templates/default/.agents/skills/storing-data/SKILL.md +2 -0
  137. package/src/templates/workspace-core/.agents/skills/performance/SKILL.md +141 -0
  138. package/src/templates/workspace-core/.agents/skills/storing-data/SKILL.md +2 -0
  139. package/docs/content/visual-plans.md +0 -82
@@ -16,7 +16,7 @@ const HELP = `agent-native skills
16
16
 
17
17
  Usage:
18
18
  agent-native skills list
19
- agent-native skills add assets|design-exploration|visual-plan|visual-recap|visual-questions|ui-plan|prototype-plan|plan-design|context-xray [--client codex|claude-code|claude-code-cli|cowork|all] [--scope user|project] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]
19
+ agent-native skills add assets|design-exploration|visual-plan|visual-recap|context-xray [--client codex|claude-code|claude-code-cli|cowork|all] [--scope user|project] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]
20
20
  agent-native skills add <manifest-or-app-dir> [--client ...] [--yes]
21
21
 
22
22
  Examples:
@@ -583,7 +583,7 @@ only for tiny previews or genuinely linear step flows. Repeat a wireframe in the
583
583
  for a genuinely new detail view or comparison. Skip the visual surface entirely
584
584
  for non-visual work and write a clean rich document. For a simple binary UI
585
585
  visual choice, show the two directions in the canvas only; do not repeat the
586
- same options as body wireframes, a \`decision\` block, or prose. Put the actual
586
+ same options as body wireframes or prose. Put the actual
587
587
  choice in the bottom "Open Questions" form.
588
588
 
589
589
  **Use the right block, and make it carry substance.** For the authoritative,
@@ -606,14 +606,14 @@ so you never emit a block the editor cannot render or round-trip:
606
606
  the exact code is unknown, show the smallest plausible planned shape or a
607
607
  commented stub naming what to fill in. (\`code-tabs\` and \`implementation-map\`
608
608
  are legacy: their renderers stay for old plans, but do not author new ones.)
609
- - \`decision\` ONLY for a genuinely-open either/or the reviewer must still pick
610
- between two or three option cards with real consequences. If you have already
611
- committed to an approach, state it as settled prose or a \`callout\`, NOT a
612
- \`decision\` block; a decision card for a question you have already answered just
613
- reads as a confusing mid-document form. Never duplicate the same choice across a
614
- \`decision\` block and the bottom Open Questions \`question-form\` pick one home
615
- for it. These are static records; do not style them like clickable tabs or chips
616
- unless the renderer truly supports changing the selection.
609
+ - For a decision: if the reviewer must still pick between a genuinely-open
610
+ either/or, put it in the bottom Open Questions \`question-form\` as a \`single\`
611
+ question one option per real alternative, each with a short detail and
612
+ \`recommended: true\` on the one you would choose; do not also restate the same
613
+ choice elsewhere. If you have already committed to an approach, state it as
614
+ settled prose or a \`callout\` with \`tone="decision"\`, optionally with a
615
+ \`columns\` block for a side-by-side comparison of the options you weighed not
616
+ as a confusing mid-document form for a question you have already answered.
617
617
  - \`columns\` for side-by-side before/after or current/target comparisons where
618
618
  each side needs real nested blocks; label the columns clearly and avoid
619
619
  stacking comparison blocks vertically when parallel reading is the point.
@@ -642,6 +642,11 @@ so you never emit a block the editor cannot render or round-trip:
642
642
  **Open questions live at the bottom as a form when answers would change the
643
643
  plan.** Surface answerable unresolved decisions in a final \`question-form\`
644
644
  block titled "Open Questions" so the renderer presents it as a distinct section.
645
+ That bottom form is the ONLY place that enumerates the open questions: never add
646
+ a second "Open Questions" heading, list, or recap of the same questions earlier
647
+ in the document. A one-line pointer in the overview prose ("a few decisions are
648
+ still open — see Open Questions below") is fine, but do not reproduce the
649
+ question list or a parallel questions/decisions section above it.
645
650
  Use \`single\` or \`multi\` for clear choices, \`freeform\` for constraints,
646
651
  \`recommended: true\` for the default you would pick, and option \`wireframe\` /
647
652
  \`diagram\` previews only when the options are not already visible in the top
@@ -650,8 +655,7 @@ reviewer can answer with a custom option — never add an explicit "Other" optio
650
655
  yourself; set \`allowOther: false\` only when a free-text answer makes no sense.
651
656
  Keep non-answerable assumptions or risks as concise \`callout\` blocks in
652
657
  the relevant section. Never bury a questions/decisions wall inside the plan
653
- narrative, and never ask the same question in both a \`decision\` block and a
654
- \`question-form\`.
658
+ narrative, and never ask the same question twice.
655
659
 
656
660
  **\`custom-html\` is a bounded escape hatch only** — a single complete fragment
657
661
  inside a block, never \`html\`/\`head\`/\`body\`/\`script\` tags, never a generic
@@ -680,8 +684,9 @@ correct desktop footprint, theme, and one subtle whole-frame wobble. Plain-text
680
684
  designer notes sit spaced off the frame, pointing only at the controls that need
681
685
  explanation. Below it, a Claude/Codex-grade document: objective and
682
686
  done-criteria, a few \`code\` blocks (grouped in a vertical \`tabs\` block when
683
- more than one) showing the real shape of the load-bearing files, a \`decision\`
684
- card weighing two real approaches,
687
+ more than one) showing the real shape of the load-bearing files, a \`callout\`
688
+ with \`tone="decision"\` stating the chosen approach with a \`columns\` block
689
+ weighing the two real options behind it,
685
690
  and a validation step — none of it repeating the canvas. If the task also
686
691
  changes a multi-step completion flow, the same top area includes a Prototype tab
687
692
  whose screens use the same labels and states as the canvas artboards, with
@@ -1980,16 +1985,12 @@ export const BUILT_IN_APP_SKILLS = {
1980
1985
  skillName: "visual-plan",
1981
1986
  extraSkills: {
1982
1987
  "visual-recap": VISUAL_RECAP_SKILL_MD,
1983
- "visual-questions": VISUAL_QUESTIONS_SKILL_MD,
1984
- "ui-plan": UI_PLAN_SKILL_MD,
1985
- "prototype-plan": PROTOTYPE_PLAN_SKILL_MD,
1986
- "plan-design": PLAN_DESIGN_SKILL_MD,
1987
1988
  },
1988
1989
  manifest: normalizeAppSkillManifest({
1989
1990
  schemaVersion: 1,
1990
1991
  id: "visual-plans",
1991
1992
  displayName: "Agent-Native Plan",
1992
- description: "Generate and review coding-agent plans as structured documents with inline diagrams, implementation maps, optional UI wireframes/prototypes, annotations, feedback, and HTML export.",
1993
+ description: "Generate and review coding-agent plans as structured documents with inline diagrams, implementation maps, annotations, feedback, and HTML export.",
1993
1994
  hosted: {
1994
1995
  url: "https://plan.agent-native.com",
1995
1996
  mcpUrl: "https://plan.agent-native.com/_agent-native/mcp",
@@ -1997,7 +1998,7 @@ export const BUILT_IN_APP_SKILLS = {
1997
1998
  mcp: { serverName: "agent-native-plans" },
1998
1999
  auth: {
1999
2000
  mode: "oauth",
2000
- setup: "Install with the Agent-Native CLI to add the /visual-plan, /visual-recap, /ui-plan, /prototype-plan, /plan-design, and /visual-questions skills plus the Plan MCP connector. Authenticate only for hosted/account-backed sharing.",
2001
+ setup: "Install with the Agent-Native CLI to add the /visual-plan and /visual-recap skills plus the Plan MCP connector. Authenticate only for hosted/account-backed sharing.",
2001
2002
  },
2002
2003
  surfaces: [
2003
2004
  {
@@ -2012,30 +2013,6 @@ export const BUILT_IN_APP_SKILLS = {
2012
2013
  path: "/plans",
2013
2014
  description: "Create a visual recap plan from a PR, commit, branch, or git diff for high-altitude review.",
2014
2015
  },
2015
- {
2016
- id: "visual-questions",
2017
- action: "create-visual-questions",
2018
- path: "/plans",
2019
- description: "Create a visual intake questionnaire before generating or updating an Agent-Native plan.",
2020
- },
2021
- {
2022
- id: "ui-plan",
2023
- action: "create-ui-plan",
2024
- path: "/plans",
2025
- description: "Create a UI-first Agent-Native plan with an optional top pan/zoom wireframe canvas and a refined rich document below.",
2026
- },
2027
- {
2028
- id: "prototype-plan",
2029
- action: "create-prototype-plan",
2030
- path: "/plans",
2031
- description: "Create a prototype-first Agent-Native plan with a functional live prototype above the document.",
2032
- },
2033
- {
2034
- id: "plan-design",
2035
- action: "create-plan-design",
2036
- path: "/plans",
2037
- description: "Create a full-fidelity Agent-Native design plan with a Design canvas tab and optional matching Prototype tab.",
2038
- },
2039
2016
  ],
2040
2017
  skills: [
2041
2018
  {
@@ -2048,26 +2025,6 @@ export const BUILT_IN_APP_SKILLS = {
2048
2025
  visibility: "exported",
2049
2026
  exportAs: "visual-recap",
2050
2027
  },
2051
- {
2052
- path: "skills/visual-questions",
2053
- visibility: "exported",
2054
- exportAs: "visual-questions",
2055
- },
2056
- {
2057
- path: "skills/ui-plan",
2058
- visibility: "exported",
2059
- exportAs: "ui-plan",
2060
- },
2061
- {
2062
- path: "skills/prototype-plan",
2063
- visibility: "exported",
2064
- exportAs: "prototype-plan",
2065
- },
2066
- {
2067
- path: "skills/plan-design",
2068
- visibility: "exported",
2069
- exportAs: "plan-design",
2070
- },
2071
2028
  ],
2072
2029
  hostAdapters: [
2073
2030
  "codex-plugin",
@@ -2135,17 +2092,6 @@ const BUILT_IN_APP_SKILL_ALIASES = {
2135
2092
  "visual-recaps": "visual-plans",
2136
2093
  "code-review-recap": "visual-plans",
2137
2094
  "code-review-recaps": "visual-plans",
2138
- "visual-questions": "visual-plans",
2139
- "visual-question": "visual-plans",
2140
- "ui-plan": "visual-plans",
2141
- "ui-plans": "visual-plans",
2142
- "prototype-plan": "visual-plans",
2143
- "prototype-plans": "visual-plans",
2144
- "plan-design": "visual-plans",
2145
- "plan-designs": "visual-plans",
2146
- "design-plan": "visual-plans",
2147
- "design-plans": "visual-plans",
2148
- prototype: "visual-plans",
2149
2095
  "html-plan": "visual-plans",
2150
2096
  "plan-mode": "visual-plans",
2151
2097
  plannotate: "visual-plans",
@@ -2169,10 +2115,6 @@ const BUILT_IN_APP_SKILL_DISPLAY_ALIASES = {
2169
2115
  "visual-plan",
2170
2116
  "visual-recap",
2171
2117
  "code-review-recap",
2172
- "visual-questions",
2173
- "ui-plan",
2174
- "prototype-plan",
2175
- "plan-design",
2176
2118
  "html-plan",
2177
2119
  "plannotate",
2178
2120
  ],