import { registerExtension } from '@codingame/monaco-vscode-api/extensions';

var manifest = {name:"mermaid-chat-features",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},aiKey:"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",engines:{vscode:"^1.104.0"},enabledApiProposals:["chatOutputRenderer"],capabilities:{virtualWorkspaces:true,untrustedWorkspaces:{supported:true}},main:undefined,browser:"./dist/browser/extension",activationEvents:["onWebviewPanel:vscode.chat-mermaid-features.preview"],contributes:{commands:[{command:"_mermaid-chat.resetPanZoom",title:"Reset Pan and Zoom"},{command:"_mermaid-chat.openInEditor",title:"Open Diagram in Editor"},{command:"_mermaid-chat.copySource",title:"Copy Diagram Source"}],menus:{commandPalette:[{command:"_mermaid-chat.resetPanZoom",when:"false"},{command:"_mermaid-chat.openInEditor",when:"false"},{command:"_mermaid-chat.copySource",when:"false"}],"webview/context":[{command:"_mermaid-chat.resetPanZoom",when:"webviewId == 'vscode.chat-mermaid-features.chatOutputItem'"},{command:"_mermaid-chat.copySource",when:"webviewId == 'vscode.chat-mermaid-features.chatOutputItem' || webviewId == 'vscode.chat-mermaid-features.preview'"}]},configuration:{title:"Mermaid Chat Features",properties:{"mermaid-chat.enabled":{type:"boolean","default":true,description:"%config.enabled.description%",scope:"application"}}},chatOutputRenderers:[{viewType:"vscode.chat-mermaid-features.chatOutputItem",mimeTypes:["text/vnd.mermaid"]}],languageModelTools:[{name:"renderMermaidDiagram",displayName:"Mermaid Renderer",toolReferenceName:"renderMermaidDiagram",canBeReferencedInPrompt:true,modelDescription:"Renders a Mermaid diagram from Mermaid.js markup.",userDescription:"Render a Mermaid.js diagrams from markup.",when:"config.mermaid-chat.enabled",inputSchema:{type:"object",properties:{markup:{type:"string",description:"The mermaid diagram markup to render as a Mermaid diagram. This should only be the markup of the diagram. Do not include a wrapping code block."},title:{type:"string",description:"A short title that describes the diagram."}}}}]}};

const { registerFileUrl, whenReady } = registerExtension(manifest, undefined, {"system":true,"readmePath":"README.md"});
registerFileUrl('README.md', new URL('./resources/README.md', import.meta.url).toString(), {"mimeType":"text/markdown","size":213});
registerFileUrl('chat-webview-out/codicon.css', new URL('./resources/codicon.css.txt', import.meta.url).toString(), {"mimeType":"text/css","size":133000});
registerFileUrl('chat-webview-out/index', new URL('./resources/index.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":2650047});
registerFileUrl('chat-webview-out/index-editor', new URL('./resources/index-editor.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":2650154});
registerFileUrl('chat-webview-out/index-editor.js', new URL('./resources/index-editor.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":2650154});
registerFileUrl('chat-webview-out/index.js', new URL('./resources/index.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":2650047});
registerFileUrl('chat-webview-src/index-editor.ts', new URL('./resources/index-editor.ts', import.meta.url).toString(), {"mimeType":"video/mp2t","size":1066});
registerFileUrl('chat-webview-src/index.ts', new URL('./resources/index.ts', import.meta.url).toString(), {"mimeType":"video/mp2t","size":860});
registerFileUrl('chat-webview-src/mermaidWebview.ts', new URL('./resources/mermaidWebview.ts', import.meta.url).toString(), {"mimeType":"video/mp2t","size":11697});
registerFileUrl('chat-webview-src/tsconfig.json', new URL('./resources/tsconfig.json', import.meta.url).toString(), {"mimeType":"application/json","size":185});
registerFileUrl('chat-webview-src/vscodeApi.ts', new URL('./resources/vscodeApi.ts', import.meta.url).toString(), {"mimeType":"video/mp2t","size":465});
registerFileUrl('dist/browser/extension', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":15330});
registerFileUrl('dist/browser/extension.js', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":15330});
registerFileUrl('dist/browser/extension.js.map', new URL('./resources/extension.js.map', import.meta.url).toString(), {"mimeType":"application/json","size":36719});
registerFileUrl('esbuild-chat-webview.mjs', new URL('./resources/esbuild-chat-webview.mjs', import.meta.url).toString(), {"mimeType":"text/javascript","size":917});
registerFileUrl('extension-browser.webpack.config', new URL('./resources/extension-browser.webpack.config.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":564});
registerFileUrl('extension-browser.webpack.config.js', new URL('./resources/extension-browser.webpack.config.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":564});
registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), {"mimeType":"application/json","size":2289});
registerFileUrl('package.nls.json', new URL('./resources/package.nls.json', import.meta.url).toString(), {"mimeType":"application/json","size":210});

export { whenReady };
