File tree Expand file tree Collapse file tree
apps/editor/src/views/panel/backend/message-handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { replace_saved_context_symbol } from '@/views/panel/backend/utils/replac
1111import { replace_skill_symbol } from '@/views/panel/backend/utils/replace-skill-symbol'
1212import { replace_image_symbol } from '@/views/panel/backend/utils/replace-image-symbol'
1313import { replace_document_symbol } from '../utils/replace-document-symbol'
14+ import { replace_website_symbol } from '../utils/replace-website-symbol'
1415import { replace_fragment_symbol } from '../utils/replace-fragment-symbol'
1516import {
1617 code_at_cursor_instructions_for_panel ,
@@ -153,6 +154,12 @@ export const handle_copy_prompt = async (params: {
153154 } )
154155 }
155156
157+ if ( processed_completion_instructions . includes ( '#Website(' ) ) {
158+ processed_completion_instructions = await replace_website_symbol ( {
159+ instruction : processed_completion_instructions
160+ } )
161+ }
162+
156163 if ( processed_completion_instructions . includes ( '<fragment' ) ) {
157164 processed_completion_instructions = replace_fragment_symbol (
158165 processed_completion_instructions
@@ -237,6 +244,12 @@ export const handle_copy_prompt = async (params: {
237244 } )
238245 }
239246
247+ if ( processed_instructions . includes ( '#Website(' ) ) {
248+ processed_instructions = await replace_website_symbol ( {
249+ instruction : processed_instructions
250+ } )
251+ }
252+
240253 if ( processed_instructions . includes ( '<fragment' ) ) {
241254 processed_instructions = replace_fragment_symbol ( processed_instructions )
242255 }
You can’t perform that action at this time.
0 commit comments