docs: let the Getting Started wizard compose a prompt (Ask AI / Copy prompt) - #306
Merged
Conversation
Compose the user's selections into a prompt and add two actions: - Ask AI queues the prompt and opens the in-docs assistant, which sends it and starts a chat. A shared useAssistantPrompt() state carries the prompt; AssistantChat.vue is shadowed from the comark-docs layer to consume it. - Copy prompt copies a self-contained prompt for any external LLM — a short Devframe description, the user's intent, and absolute links to every recommended doc.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds on the Getting Started wizard (#303): the user's selections now compose into a prompt, with two ways to act on it.
AssistantChat.vue, a shareduseAssistantPrompt()state carries the prompt across;AssistantChat.vueis shadowed from thecomark-docslayer to consume it (sends on open, then clears). The button is hidden when the assistant is disabled. Its prompt stays concise since the assistant already has the docs as search/read tools.Both prompts fall back to a sensible "just getting started" phrasing when nothing is selected.
Notes
docs/app/components/AssistantChat.vuemirrors thecomark-docslayer component verbatim and adds only the pending-prompt consumer; a header comment flags that it should track the layer on future bumps.Verified in a local
nuxt dev: Ask AI opens the panel and sends the composed prompt (the assistant then reads the matching pages), and Copy prompt produces the full contextual prompt with absolute doc URLs.This PR was created with the help of an agent.