@agent-native/core 0.58.3 → 0.58.5

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 (67) hide show
  1. package/dist/agent/production-agent.d.ts +9 -0
  2. package/dist/agent/production-agent.d.ts.map +1 -1
  3. package/dist/agent/production-agent.js +80 -4
  4. package/dist/agent/production-agent.js.map +1 -1
  5. package/dist/cli/plan-local.d.ts +34 -0
  6. package/dist/cli/plan-local.d.ts.map +1 -1
  7. package/dist/cli/plan-local.js +205 -1
  8. package/dist/cli/plan-local.js.map +1 -1
  9. package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
  10. package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
  11. package/dist/cli/pr-visual-recap-workflow.js +1 -1
  12. package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
  13. package/dist/cli/recap.d.ts +5 -0
  14. package/dist/cli/recap.d.ts.map +1 -1
  15. package/dist/cli/recap.js +19 -2
  16. package/dist/cli/recap.js.map +1 -1
  17. package/dist/client/AgentPanel.d.ts +3 -1
  18. package/dist/client/AgentPanel.d.ts.map +1 -1
  19. package/dist/client/AgentPanel.js +6 -3
  20. package/dist/client/AgentPanel.js.map +1 -1
  21. package/dist/client/AssistantChat.d.ts +5 -0
  22. package/dist/client/AssistantChat.d.ts.map +1 -1
  23. package/dist/client/AssistantChat.js +141 -39
  24. package/dist/client/AssistantChat.js.map +1 -1
  25. package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
  26. package/dist/client/MultiTabAssistantChat.js +44 -31
  27. package/dist/client/MultiTabAssistantChat.js.map +1 -1
  28. package/dist/client/blocks/library/diagram.d.ts.map +1 -1
  29. package/dist/client/blocks/library/diagram.js +85 -20
  30. package/dist/client/blocks/library/diagram.js.map +1 -1
  31. package/dist/client/blocks/library/tabs.d.ts.map +1 -1
  32. package/dist/client/blocks/library/tabs.js +5 -5
  33. package/dist/client/blocks/library/tabs.js.map +1 -1
  34. package/dist/client/chat/message-components.d.ts.map +1 -1
  35. package/dist/client/chat/message-components.js +13 -10
  36. package/dist/client/chat/message-components.js.map +1 -1
  37. package/dist/client/chat/run-recovery.d.ts.map +1 -1
  38. package/dist/client/chat/run-recovery.js +3 -3
  39. package/dist/client/chat/run-recovery.js.map +1 -1
  40. package/dist/client/chat/tool-call-display.d.ts +0 -1
  41. package/dist/client/chat/tool-call-display.d.ts.map +1 -1
  42. package/dist/client/chat/tool-call-display.js +5 -2
  43. package/dist/client/chat/tool-call-display.js.map +1 -1
  44. package/dist/client/chat/widgets/DataChartRenderer.d.ts.map +1 -1
  45. package/dist/client/chat/widgets/DataChartRenderer.js +98 -21
  46. package/dist/client/chat/widgets/DataChartRenderer.js.map +1 -1
  47. package/dist/client/chat/widgets/builtin-tool-renderers.d.ts +4 -1
  48. package/dist/client/chat/widgets/builtin-tool-renderers.d.ts.map +1 -1
  49. package/dist/client/chat/widgets/builtin-tool-renderers.js +30 -4
  50. package/dist/client/chat/widgets/builtin-tool-renderers.js.map +1 -1
  51. package/dist/client/composer/AgentComposerFrame.js +1 -1
  52. package/dist/client/composer/AgentComposerFrame.js.map +1 -1
  53. package/dist/server/agent-chat-plugin.d.ts +17 -0
  54. package/dist/server/agent-chat-plugin.d.ts.map +1 -1
  55. package/dist/server/agent-chat-plugin.js +6 -2
  56. package/dist/server/agent-chat-plugin.js.map +1 -1
  57. package/dist/server/framework-request-handler.d.ts.map +1 -1
  58. package/dist/server/framework-request-handler.js +13 -0
  59. package/dist/server/framework-request-handler.js.map +1 -1
  60. package/dist/sharing/actions/set-resource-visibility.d.ts.map +1 -1
  61. package/dist/sharing/actions/set-resource-visibility.js +25 -11
  62. package/dist/sharing/actions/set-resource-visibility.js.map +1 -1
  63. package/dist/styles/agent-native.css +115 -2
  64. package/dist/templates/workspace-core/.agents/skills/visual-answer/SKILL.md +100 -0
  65. package/docs/content/pr-visual-recap.md +2 -2
  66. package/package.json +1 -1
  67. package/src/templates/workspace-core/.agents/skills/visual-answer/SKILL.md +100 -0
@@ -0,0 +1,100 @@
1
+ ---
2
+ name: visual-answer
3
+ description: >-
4
+ Answer code/product questions as visual Plan artifacts using repo, bridge, or
5
+ GitHub context; use for API specs, UI look, schema models, and architecture.
6
+ metadata:
7
+ visibility: exported
8
+ ---
9
+
10
+ # Visual Answer
11
+
12
+ `/visual-answer` turns a specific code or product question into a published
13
+ Agent-Native Plan artifact. It is for questions that need a visual, inspectable
14
+ answer rather than a chat paragraph: API contracts, schema/data models, UI
15
+ states, component behavior, architecture flows, and code evidence.
16
+
17
+ ## When To Use
18
+
19
+ Use this skill when the user asks:
20
+
21
+ - "what is the API spec for this?"
22
+ - "what does this UI look like?"
23
+ - "what is the schema model for x?"
24
+ - "draw the flow for this code path"
25
+ - "show me the current shape of this component/API/data model"
26
+
27
+ For history questions about what changed or shipped, search merged PR recaps
28
+ first with `search-pr-recaps`, then pull a relevant hit into the conversation
29
+ with `show-visual-plan` (it renders that plan or recap's blocks inline). Reach
30
+ for `get-visual-plan` only when you need the full bundle/MDX to edit, not to
31
+ display. Use `visual-answer` when the current codebase, a local bridge, or
32
+ GitHub source needs to be inspected to produce a new answer.
33
+
34
+ ## Workflow
35
+
36
+ 1. Inspect the real source first. Use the host agent's repo tools, the Plan
37
+ local bridge, or GitHub/source links. Do not invent endpoints, schema fields,
38
+ UI states, file names, or behavior.
39
+ 2. Call `get-plan-blocks` before authoring. Use the live registry, not memory.
40
+ If the question asks what components are available, call
41
+ `list-plan-components`.
42
+ 3. Pick the evidence blocks:
43
+ - API shape: `openapi-spec` plus `api-endpoint`; use before/after only when
44
+ comparing historical changes from recaps.
45
+ - UI look: `wireframe` or a `columns` before/after pair when comparing a
46
+ recap.
47
+ - Schema/data model: `data-model`, optionally with `diagram`.
48
+ - Code evidence: `file-tree`, `tabs`, `annotated-code`, and `diff` when the
49
+ answer depends on implementation details.
50
+ 4. Publish with the Plan `visual-answer` action. Include the user's question,
51
+ `repoPath`/`sourceUrl` when known, a concise title/brief, and MDX source
52
+ under `mdx`.
53
+ 5. In Agent-Native chat the published answer renders inline automatically — its
54
+ blocks appear in the conversation. Add a one-line summary of the evidence plus
55
+ the deep link; do not paste raw MDX or block source as text. (In terminal or
56
+ external MCP hosts that cannot render the blocks, return the URL.)
57
+
58
+ ## Terminal Handoff
59
+
60
+ When running from a terminal or coding-agent shell, write
61
+ `visual-answer-source.json`:
62
+
63
+ ```json
64
+ {
65
+ "question": "What is the billing API shape?",
66
+ "title": "Billing API visual answer",
67
+ "brief": "Shows the request and response contract.",
68
+ "repoPath": "owner/repo",
69
+ "sourceUrl": "https://github.com/owner/repo",
70
+ "mdx": {
71
+ "plan.mdx": "---\ntitle: Billing API visual answer\n---\n\n..."
72
+ }
73
+ }
74
+ ```
75
+
76
+ Then publish:
77
+
78
+ ```sh
79
+ agent-native plan visual-answer publish --question "What is the billing API shape?" --source visual-answer-source.json --repo owner/repo
80
+ ```
81
+
82
+ Use `--source-url` for a GitHub file/PR/commit/issue URL, `--prev-plan-id` to
83
+ refresh an existing answer, and `--visibility private` for owner-only output.
84
+ The command writes `visual-answer-url.txt`.
85
+
86
+ ## Don't
87
+
88
+ - Do not use `visual-answer` for a plain implementation plan; use
89
+ `visual-plan`.
90
+ - Do not use it for a PR diff recap; use `visual-recap`.
91
+ - Do not skip code inspection and infer from names alone.
92
+ - Do not publish screenshots, secrets, credential-looking values, or private
93
+ source excerpts beyond what the user has asked to visualize.
94
+
95
+ ## Related Skills
96
+
97
+ - `visual-plan`
98
+ - `visual-recap`
99
+ - `delegate-to-agent`
100
+ - `context-awareness`