[{"data":1,"prerenderedAt":466},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fcreate-classic-ai":3},{"id":4,"title":5,"body":6,"description":12,"extension":454,"keywords":455,"locale":458,"meta":459,"navigation":139,"order":460,"path":461,"section":462,"seo":463,"stem":464,"__hash__":465},"docs\u002Fplugins\u002Freference\u002Fcreate-classic-ai.en.md","createClassicAi",{"type":7,"value":8,"toc":433},"minimark",[9,13,24,29,35,80,89,93,99,102,105,171,179,183,186,189,193,196,201,204,210,213,216,219,224,226,230,233,238,244,247,250,255,259,263,266,271,275,278,281,285,289,292,295,300,304,308,311,316,320,324,331,336,340,344,347,352,356,358,361,366,370,374,377,381,385,389,392,395,399,411,429],[10,11,12],"p",{},"Asynchronously returns a first-party AI plugin and a page-level destroy function. The host supplies browser Document and preference-storage ports.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fclassic-ai"," · ",[21,22,23],"strong",{},"Commercial",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Classic product integration",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Editor",[45,49,50],{},"Status",[45,52,53],{},"Assembly and boundaries",[55,56,57,69],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Supported",[60,67,68],{},"Install this Classic product plugin in createClassicEditor plugins. Supply its required models, host ports and services as documented below.",[42,70,71,74,77],{},[60,72,73],{},"Block",[60,75,76],{},"Unsupported",[60,78,79],{},"Block does not consume Classic product contributions, plugins or paginated assembly. Use shared capabilities and Block adapters instead of copying this entry's Classic configuration.",[10,81,82,83,88],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[84,85,87],"a",{"href":86},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,90,92],{"id":91},"installation","Installation",[10,94,95,96,98],{},"The current ",[16,97,18],{}," manifest is private. This site uses workspace source; external projects need the relevant distribution package rather than assuming public npm availability.",[10,100,101],{},"This entry is a commercial component. Obtain distribution access and authorization first; installation commands require that distribution source.",[10,103,104],{},"Install the product plugin in createClassicEditor plugins rather than Core extensions. Required host ports are listed below.",[106,107,112],"pre",{"className":108,"code":109,"language":110,"meta":111,"style":111},"language-ts shiki shiki-themes github-light github-light github-dark","import { createClassicAi } from '@quirekit\u002Fclassic-ai'\n\nconst ai = await createClassicAi({ ownerDocument: document, storage: localStorage })\n\u002F\u002F 将 ai.plugin 加入产品 plugins；页面结束时调用 ai.destroy()。\n","ts","",[16,113,114,134,141,164],{"__ignoreMap":111},[115,116,119,123,127,130],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"sDD9d","import",[115,124,126],{"class":125},"sVPnS"," { createClassicAi } ",[115,128,129],{"class":121},"from",[115,131,133],{"class":132},"s-HEn"," '@quirekit\u002Fclassic-ai'\n",[115,135,137],{"class":117,"line":136},2,[115,138,140],{"emptyLinePlaceholder":139},true,"\n",[115,142,144,147,151,154,157,161],{"class":117,"line":143},3,[115,145,146],{"class":121},"const",[115,148,150],{"class":149},"sUNQB"," ai",[115,152,153],{"class":121}," =",[115,155,156],{"class":121}," await",[115,158,160],{"class":159},"sgQzM"," createClassicAi",[115,162,163],{"class":125},"({ ownerDocument: document, storage: localStorage })\n",[115,165,167],{"class":117,"line":166},4,[115,168,170],{"class":169},"sqmzS","\u002F\u002F 将 ai.plugin 加入产品 plugins；页面结束时调用 ai.destroy()。\n",[10,172,173,174,178],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[84,175,177],{"href":176},"\u002Fen\u002Fsupport","support and licensing",".",[25,180,182],{"id":181},"integration-by-editor","Integration by editor",[10,184,185],{},"These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.",[187,188],"plugin-integration",{"name":5},[25,190,192],{"id":191},"configuration","Configuration",[10,194,195],{},"Pass these fields to the factory options. Required ports come from the host. undefined means no explicit option; documented factory fallbacks apply.",[197,198,200],"h3",{"id":199},"ownerdocument","ownerDocument",[10,202,203],{},"Document that owns the settings dialog.",[10,205,206,207],{},"Type：",[16,208,209],{},"Document",[10,211,212],{},"Default：Required host port",[197,214,215],{"id":215},"storage",[10,217,218],{},"Browser-local persistence for provider settings, selected model and authorization preset.",[10,220,206,221],{},[16,222,223],{},"Storage",[10,225,212],{},[197,227,229],{"id":228},"defaulthosturl","defaultHostUrl",[10,231,232],{},"AI Host used until the user saves explicit provider settings.",[10,234,206,235],{},[16,236,237],{},"string | undefined",[10,239,240,241],{},"Default：",[16,242,243],{},"undefined",[197,245,246],{"id":246},"reconnect",[10,248,249],{},"Applies saved provider settings; defaults to reloading the page.",[10,251,206,252],{},[16,253,254],{},"(() => void) | undefined",[10,256,240,257],{},[16,258,243],{},[197,260,262],{"id":261},"defaultopen","defaultOpen",[10,264,265],{},"Open the sidebar after mounting.",[10,267,206,268],{},[16,269,270],{},"false | true | undefined",[10,272,240,273],{},[16,274,243],{},[197,276,277],{"id":277},"diagnostics",[10,279,280],{},"Shows raw review differences for developers.",[10,282,206,283],{},[16,284,270],{},[10,286,240,287],{},[16,288,243],{},[197,290,291],{"id":291},"fetch",[10,293,294],{},"Fetch implementation for tests or an application gateway.",[10,296,206,297],{},[16,298,299],{},"{ (input: RequestInfo | URL, init?: RequestInit): Promise\u003CResponse>; (input: string | URL | Request, init?: RequestInit): Promise\u003CResponse>; } | undefined",[10,301,240,302],{},[16,303,243],{},[197,305,307],{"id":306},"getheaders","getHeaders",[10,309,310],{},"Lazy resolver for application authentication headers sent to the Host.",[10,312,206,313],{},[16,314,315],{},"QuireAiPiHostHeaderResolver | undefined",[10,317,240,318],{},[16,319,243],{},[197,321,323],{"id":322},"skillsources","skillSources",[10,325,326,327,330],{},"Skill sources in increasing priority, each an adapter of the skill data format; default the\nbuilt-in skills and a local IndexedDB store. Ignored when ",[16,328,329],{},"skills"," gives a whole library.",[10,332,206,333],{},[16,334,335],{},"readonly QuireAiSkillLibrarySource[] | undefined",[10,337,240,338],{},[16,339,243],{},[197,341,343],{"id":342},"builtinskills","builtinSkills",[10,345,346],{},"Built-in skills shipped with the application, used with the default sources.",[10,348,206,349],{},[16,350,351],{},"readonly QuireAiSkillRecord[] | undefined",[10,353,240,354],{},[16,355,243],{},[197,357,329],{"id":329},[10,359,360],{},"Skills the assistant may read and follow; refreshed when the workspace is created.",[10,362,206,363],{},[16,364,365],{},"QuireAiSkillLibrary | undefined",[10,367,240,368],{},[16,369,243],{},[197,371,373],{"id":372},"workflowhints","workflowHints",[10,375,376],{},"Tells the assistant which tool and operation suit common requests; default true.\nOff leaves the choice to the model, from the tool descriptions alone.",[10,378,206,379],{},[16,380,270],{},[10,382,240,383],{},[16,384,243],{},[25,386,388],{"id":387},"commands-and-runtime","Commands and runtime",[10,390,391],{},"This entry declares no directly enumerable commands. Children supply bundle commands; product plugins use contributions or document services.",[10,393,394],{},"Await the factory before installing the returned plugin. Editors release their conversations; the page also calls the returned destroy to release page-owned resources.",[25,396,398],{"id":397},"next-steps","Next steps",[10,400,401,402,406,407,410],{},"Return to ",[84,403,405],{"href":404},"\u002Fen\u002Fplugins","all plugins",", or read ",[84,408,191],{"href":409},"\u002Fen\u002Fplugins\u002Fconfiguration"," to distinguish options, attributes and commands.",[10,412,413,414,418,419,423,424,428],{},"Continue with ",[84,415,417],{"href":416},"\u002Fen\u002Fclassic\u002Fquick-start","Classic quick start"," and ",[84,420,422],{"href":421},"\u002Fen\u002Fclassic\u002Fconfiguration","configuration\u002Flifetime",". See ",[84,425,427],{"href":426},"\u002Fen\u002Fbuild\u002Fproduct-plugin","product plugin development"," for your own UI and services.",[430,431,432],"style",{},"html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sqmzS, html code.shiki .sqmzS{--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":111,"searchDepth":136,"depth":136,"links":434},[435,436,437,438,452,453],{"id":27,"depth":136,"text":28},{"id":91,"depth":136,"text":92},{"id":181,"depth":136,"text":182},{"id":191,"depth":136,"text":192,"children":439},[440,441,442,443,444,445,446,447,448,449,450,451],{"id":199,"depth":143,"text":200},{"id":215,"depth":143,"text":215},{"id":228,"depth":143,"text":229},{"id":246,"depth":143,"text":246},{"id":261,"depth":143,"text":262},{"id":277,"depth":143,"text":277},{"id":291,"depth":143,"text":291},{"id":306,"depth":143,"text":307},{"id":322,"depth":143,"text":323},{"id":342,"depth":143,"text":343},{"id":329,"depth":143,"text":329},{"id":372,"depth":143,"text":373},{"id":387,"depth":136,"text":388},{"id":397,"depth":136,"text":398},"md",[5,18,456,457,200,215,229,246,262,277,291,307,323,343,329,373,5],"Classic AI 完整装配","products","en",{"navigationTitle":5,"license":23},79,"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-classic-ai","Product presets and services",{"title":5,"description":12},"plugins\u002Freference\u002Fcreate-classic-ai.en","ACKApsDeHYKef0baRlaWnTyFwvOPgUtyCMQ8-Mh02uk",1793045208529]