@loicngr/kobo 2.1.21 → 2.1.23
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.
- package/AGENTS.md +69 -4
- package/CHANGELOG.md +9 -0
- package/CONFIGURATION.md +112 -2
- package/dist/mcp-server/kobo-tasks-server.js +4 -4
- package/dist/server/index.js +21 -6
- package/dist/server/services/agent/engines/claude-code/engine.js +5 -2
- package/dist/server/services/agent/engines/codex/engine.js +3 -0
- package/dist/server/services/agent/orchestrator.js +2 -0
- package/dist/server/services/agent/turn-liveness.js +1 -1
- package/dist/server/services/dev-server-service.js +41 -13
- package/dist/server/services/lifecycle-hook-service.js +29 -2
- package/dist/server/services/settings-service.js +66 -0
- package/dist/server/utils/script-runner.js +3 -1
- package/dist/shared/launch-instructions.js +8 -4
- package/dist/shared/memory-tools.js +2 -2
- package/docker-compose.vps.yml +1 -1
- package/docs/deployment-vps.md +36 -10
- package/docs/getting-started.md +11 -0
- package/package.json +1 -1
- package/scripts/kobo-update +25 -13
- package/src/client/dist/pwa/assets/ActivityFeed-1OKX_g3B.js +2 -0
- package/src/client/dist/pwa/assets/{ActivityFeed-DdJvMzRI.css → ActivityFeed-CmAFv-2c.css} +1 -1
- package/src/client/dist/pwa/assets/{AutoLoopFinalReviewSettings-f4VDR5dd.js → AutoLoopFinalReviewSettings-VoA9uBw0.js} +1 -1
- package/src/client/dist/pwa/assets/{ChangelogPage-dEWpjTlp.js → ChangelogPage-DHl3hD3t.js} +1 -1
- package/src/client/dist/pwa/assets/{ComparisonPanel-Bwbqgvr4.js → ComparisonPanel-D6EKTtni.js} +1 -1
- package/src/client/dist/pwa/assets/{CreatePage-CCCCAhrx.js → CreatePage-CZzEOVVq.js} +1 -1
- package/src/client/dist/pwa/assets/{DashboardPage-3byhBITf.js → DashboardPage-DjLoUvjA.js} +1 -1
- package/src/client/dist/pwa/assets/{DiffViewer-Bj_NTfCF.js → DiffViewer-BQ6OEmoi.js} +3 -3
- package/src/client/dist/pwa/assets/{DocumentsPanel-xyLDV3T1.js → DocumentsPanel-yrQviqCd.js} +1 -1
- package/src/client/dist/pwa/assets/{DrawerToggleButton-pwBSstQP.js → DrawerToggleButton-D5qNeXnn.js} +1 -1
- package/src/client/dist/pwa/assets/{GitPanel-DvIdrkVw.js → GitPanel-DCXlhcAD.js} +3 -3
- package/src/client/dist/pwa/assets/{HealthPage-BSwhZQRo.js → HealthPage-COicuNQn.js} +1 -1
- package/src/client/dist/pwa/assets/{MainLayout-DZJ9BvZw.js → MainLayout-ZcExZTqC.js} +2 -2
- package/src/client/dist/pwa/assets/{MemoryPanel-ChR032zP.js → MemoryPanel-D73Qz9f7.js} +1 -1
- package/src/client/dist/pwa/assets/{MemoryProposalList-BRKSoS4K.js → MemoryProposalList-BGlq2DkD.js} +1 -1
- package/src/client/dist/pwa/assets/{QBtnDropdown-o3QH0Bb8.js → QBtnDropdown-CykBCmwa.js} +1 -1
- package/src/client/dist/pwa/assets/{QExpansionItem-BhFHiyq9.js → QExpansionItem-CAW9J1Uv.js} +1 -1
- package/src/client/dist/pwa/assets/{QScrollArea-BsNY6slB.js → QScrollArea-C_d-8eO7.js} +1 -1
- package/src/client/dist/pwa/assets/{QSelect-bEq3g_io.js → QSelect-C1AN93yA.js} +1 -1
- package/src/client/dist/pwa/assets/{QTooltip-xYZ6KNu2.js → QTooltip-C9qaLW_h.js} +1 -1
- package/src/client/dist/pwa/assets/{SchedulePanel-DIFv_FTY.js → SchedulePanel-CQpzDhq7.js} +1 -1
- package/src/client/dist/pwa/assets/{SearchPage-BqTBIt5E.js → SearchPage-fZlSSEu_.js} +1 -1
- package/src/client/dist/pwa/assets/{SettingsPage-BRvUAZ5r.css → SettingsPage-BCOF0ssp.css} +1 -1
- package/src/client/dist/pwa/assets/SettingsPage-eyJZxeCJ.js +9 -0
- package/src/client/dist/pwa/assets/{SplitWorkspacePage-D6r2pl5g.js → SplitWorkspacePage-CfeO6TZb.js} +1 -1
- package/src/client/dist/pwa/assets/{TerminalPanel-CladK9Vv.js → TerminalPanel-CfDZOteT.js} +1 -1
- package/src/client/dist/pwa/assets/{ToolCallItem-CdzEME4w.js → ToolCallItem-CHE6tylq.js} +2 -2
- package/src/client/dist/pwa/assets/{TouchPan-B4gQPwGN.js → TouchPan-Csev_qU6.js} +1 -1
- package/src/client/dist/pwa/assets/{TourReplayButton-B0j6AZwU.js → TourReplayButton-Crr7tF1b.js} +1 -1
- package/src/client/dist/pwa/assets/{WorkspaceAttentionLabels-CeVhoidC.js → WorkspaceAttentionLabels-DpUZOiJv.js} +1 -1
- package/src/client/dist/pwa/assets/{WorkspacePage-w2bF8wTd.css → WorkspacePage-Bk-WWOYM.css} +1 -1
- package/src/client/dist/pwa/assets/{WorkspacePage-CK5XCuG_.js → WorkspacePage-_QSKLO42.js} +3 -3
- package/src/client/dist/pwa/assets/{browser-B8tNScg1.js → browser-o7ftkZex.js} +1 -1
- package/src/client/dist/pwa/assets/{build-path-tree-kmVAcvs_.js → build-path-tree-D6dZQpIb.js} +1 -1
- package/src/client/dist/pwa/assets/{custom-sounds-CJwd-8TL.js → custom-sounds-DVX9zCET.js} +1 -1
- package/src/client/dist/pwa/assets/{de-BaO6kbdO.js → de-DOE4H_Jf.js} +2 -2
- package/src/client/dist/pwa/assets/{editor.api-CgbPVW9s.js → editor.api-C8TYnUXm.js} +1 -1
- package/src/client/dist/pwa/assets/{efforts-y7Wf_Rgd.js → efforts-DfsG0_o0.js} +1 -1
- package/src/client/dist/pwa/assets/{es-DTvSsbD0.js → es-BW57JPlm.js} +2 -2
- package/src/client/dist/pwa/assets/{expand-template-BFbbjj7X.js → expand-template-CJZlWMfI.js} +1 -1
- package/src/client/dist/pwa/assets/{format-BETfc4z9.js → format-DOCqk2Dn.js} +1 -1
- package/src/client/dist/pwa/assets/{formatters-C22K9vlC.js → formatters-BFocC6LJ.js} +1 -1
- package/src/client/dist/pwa/assets/{fr-BH7V66Yz.js → fr-DnmIKHaQ.js} +2 -2
- package/src/client/dist/pwa/assets/{freemarker2-DiRVvp9O.js → freemarker2-CfME4WOK.js} +1 -1
- package/src/client/dist/pwa/assets/{handlebars-BLYRroSQ.js → handlebars-uvKdDnJl.js} +1 -1
- package/src/client/dist/pwa/assets/{html-DAW2vteY.js → html-BrEPgLuD.js} +1 -1
- package/src/client/dist/pwa/assets/i18n-BmTCjikk.js +1 -0
- package/src/client/dist/pwa/assets/{index-CbyHfF8I.js → index-z1Oh2-I_.js} +4 -4
- package/src/client/dist/pwa/assets/{it-DZGbkkoy.js → it-DSrEQgZQ.js} +2 -2
- package/src/client/dist/pwa/assets/{javascript-Bb5J8n0k.js → javascript-KH2xP4lQ.js} +1 -1
- package/src/client/dist/pwa/assets/{liquid-Dqx3adnJ.js → liquid-D08TlsVs.js} +1 -1
- package/src/client/dist/pwa/assets/{mdx-D_7igLV3.js → mdx-y74A51cS.js} +1 -1
- package/src/client/dist/pwa/assets/{monaco-contributions-C-0CbrAy.js → monaco-contributions-Cx8iaAhd.js} +1 -1
- package/src/client/dist/pwa/assets/{monaco.contribution-c6JPBEZI.js → monaco.contribution-CFq0guCl.js} +2 -2
- package/src/client/dist/pwa/assets/{network-auth-BE4qbvWm.js → network-auth-DnGOOzCV.js} +1 -1
- package/src/client/dist/pwa/assets/{notify-theme-BVFBBGrJ.js → notify-theme-B9lUAgQl.js} +1 -1
- package/src/client/dist/pwa/assets/{project-color-CHOR2jB5.js → project-color-TgENPFLi.js} +1 -1
- package/src/client/dist/pwa/assets/{python-Dqubw1F5.js → python-Cy3bAVPq.js} +1 -1
- package/src/client/dist/pwa/assets/{razor-BQphc9Kt.js → razor-gD9QOuiV.js} +1 -1
- package/src/client/dist/pwa/assets/{typescript-Dep00l0X.js → typescript-CEItY0bH.js} +1 -1
- package/src/client/dist/pwa/assets/{use-search-index-status-CQHHvHwM.js → use-search-index-status-BtJ0pOy9.js} +1 -1
- package/src/client/dist/pwa/assets/{use-tours-IVbXTmz2.js → use-tours-COLDth2h.js} +2 -2
- package/src/client/dist/pwa/assets/{use-worktree-restore-B3s5xDGR.js → use-worktree-restore-CShbwpGy.js} +1 -1
- package/src/client/dist/pwa/assets/{workspace-templates-CyuTpztP.js → workspace-templates-BOMNQgBl.js} +1 -1
- package/src/client/dist/pwa/assets/{xml-BMS2dvaF.js → xml-BJvL5qcE.js} +1 -1
- package/src/client/dist/pwa/assets/{yaml-CYw92aic.js → yaml-DtkVRZaX.js} +1 -1
- package/src/client/dist/pwa/index.html +1 -1
- package/src/client/dist/pwa/sw.js +1 -1
- package/src/mcp-server/README.md +13 -0
- package/src/mcp-server/kobo-tasks-server.ts +5 -4
- package/src/client/dist/pwa/assets/ActivityFeed-DiUxnmGJ.js +0 -2
- package/src/client/dist/pwa/assets/SettingsPage-BLD0xWFB.js +0 -9
- package/src/client/dist/pwa/assets/i18n-DnuTmw3O.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$a as e,$d as t,$f as n,$i as r,$m as i,$n as a,$o as o,$r as s,$t as c,$u as l,A as u,Ac as d,Af as f,Am as p,Ap as ee,At as m,B as h,Ba as g,Bc as _,Bi as v,Bm as te,Bn as y,Bp as ne,Bs as re,Cc as ie,Cd as b,Ch as ae,Cm as oe,Cn as se,Cp as ce,Cu as x,D as le,Dc as ue,Dd as S,Di as de,Dl as fe,Dm as pe,Dn as me,Dp as he,Dr as ge,Ds as _e,Du as ve,Eh as ye,Ei as be,Em as xe,En as Se,Ep as Ce,Er as we,Es as Te,Eu as Ee,Fc as De,Ff as Oe,Fh as ke,Fi as Ae,Fm as je,Fn as Me,Fo as Ne,Fp as Pe,Fr as Fe,Fs as Ie,G as Le,Gf as Re,Gh as ze,Gl as Be,Gm as C,Gs as Ve,Gt as He,Gu as Ue,H as We,Ha as Ge,Hc as Ke,Hh as w,Hl as T,Hm as qe,Hn as Je,Hp as Ye,Hs as E,Hu as Xe,I as Ze,Ia as Qe,Ic as D,Ip as $e,Ir as et,Is as tt,Iu as O,J as nt,Jd as rt,Jf as it,Jm as at,Jp as ot,Jr as st,Jt as ct,Ju as lt,K as ut,Kc as dt,Kd as ft,Kf as pt,Kh as mt,Kl as ht,Km as gt,Kn as _t,Ku as vt,La as yt,Lc as bt,Lp as xt,Ls as St,Lt as Ct,Lu as k,Mc as wt,Mf as Tt,Mh as Et,Mi as Dt,Ml as Ot,Mp as kt,Mr as At,N as jt,Nf as Mt,Nh as Nt,Nm as Pt,Nn as Ft,Np as It,Nr as Lt,Oc as Rt,Oi as zt,Ol as Bt,Om as Vt,Op as Ht,Ot as Ut,Ou as Wt,Pa as Gt,Pc as Kt,Ph as qt,Pi as Jt,Pl as Yt,Pn as Xt,Pp as Zt,Pr as Qt,Pt as $t,Qa as en,Qf as tn,Qi as nn,Ql as rn,Qm as A,Qr as an,Qu as on,Rc as j,Rl as sn,Rn as cn,Rp as ln,Rs as un,Rt as dn,Ru as fn,Sd as pn,Sf as mn,Si as hn,Sn as gn,Sp as _n,Sr as vn,Su as yn,Td as bn,Th as xn,Ti as Sn,Tl as Cn,Tm as wn,Tn,To as En,Tp as Dn,Tr as On,Ts as kn,Tt as An,Tu as jn,Ua as Mn,Uc as Nn,Ud as Pn,Ui as M,Ul as Fn,Um as In,Un as Ln,Up as Rn,Us as zn,Uu as Bn,Va as Vn,Vc as Hn,Vi as Un,Vl as N,Vp as Wn,Vu as Gn,W as Kn,Wa as qn,Wd as Jn,Wf as Yn,Wh as Xn,Wl as Zn,Wm as P,Wn as Qn,Ws as $n,Wu as er,Xc as tr,Xf as nr,Xl as rr,Xm as ir,Xu as ar,Y as or,Yd as sr,Yl as cr,Yn as lr,Yp as ur,Yr as dr,Za as fr,Zd as pr,Zl as mr,Zm as F,Zr as hr,Zu as gr,_f as _r,_h as vr,_m as yr,_n as br,_p as xr,_s as Sr,_t as Cr,_u as wr,aa as Tr,ah as I,am as Er,ap as Dr,ar as Or,au as kr,bc as Ar,bd as jr,bf as Mr,bh as Nr,bn as Pr,bo as Fr,bp as Ir,br as Lr,bu as L,cc as Rr,ch as zr,cl as Br,cm as Vr,cp as Hr,ct as Ur,dd as Wr,df as Gr,di as Kr,dl as qr,dn as Jr,dp as Yr,dr as Xr,dt as Zr,ef as Qr,eg as $r,ei,en as ti,eo as ni,ep as ri,er as ii,es as ai,eu as oi,f as si,ff as ci,fh as li,fn as ui,fp as di,fr as fi,ft as pi,fu as mi,g as hi,gc as gi,gf as _i,gm as vi,go as yi,gp as bi,gr as xi,gt as Si,hd as Ci,hf as wi,hi as Ti,hm as Ei,hn as Di,hp as Oi,hr as ki,ht as Ai,ia as ji,id as Mi,ig as Ni,ih as Pi,ii as Fi,io as Ii,ip as Li,ir as Ri,it as zi,iu as Bi,jc as Vi,jf as Hi,ji as Ui,jl as Wi,jm as Gi,jn as Ki,jp as qi,js as Ji,jt as Yi,ju as Xi,kc as Zi,ki as Qi,kl as $i,kn as ea,kp as ta,ks as na,kt as ra,lg as ia,lh as aa,li as oa,ll as sa,lm as ca,ln as la,lp as ua,lr as da,lt as fa,lu as pa,m as ma,md as ha,mf as ga,mi as _a,ml as va,mm as ya,mn as ba,mp as xa,mr as Sa,ms as Ca,mt as wa,mu as Ta,na as Ea,nd as Da,nf as Oa,nh as ka,nn as Aa,no as ja,np as Ma,nr as Na,ns as Pa,nt as Fa,nu as R,od as Ia,of as La,og as Ra,oh as za,oi as Ba,ol as Va,on as Ha,op as Ua,or as Wa,ot as Ga,ou as Ka,pc as qa,pf as Ja,pl as Ya,pm as Xa,pn as Za,pp as Qa,pr as $a,ps as eo,pt as to,pu as z,q as no,qa as ro,qc as io,qd as B,qf as ao,qh as oo,ql as so,qm as co,qn as lo,qt as uo,qu as fo,ra as po,rf as mo,rg as ho,rh as go,ri as _o,rn as vo,ro as yo,rp as bo,rr as xo,ru as V,sa as So,sd as Co,sg as wo,sh as To,sl as Eo,sp as Do,sr as H,ss as Oo,su as ko,t as Ao,ta as jo,tf as Mo,tg as No,th as Po,ti as Fo,tl as Io,tm as Lo,tn as Ro,to as zo,tp as Bo,tt as Vo,tu as Ho,u as Uo,uh as Wo,ul as Go,um as Ko,un as qo,up as Jo,ur as Yo,us as Xo,ut as Zo,uu as Qo,v as $o,vd as U,vf as es,vh as ts,vm as W,vn as ns,vo as rs,vp as is,vr as as,vs as os,vu as ss,wh as cs,wm as ls,wn as us,wp as ds,ws as fs,wt as ps,wu as ms,xc as hs,xf as gs,xh as G,xl as _s,xm as vs,xp as ys,xs as bs,yc as xs,yf as Ss,yh as Cs,ym as ws,yn as Ts,yp as Es,ys as Ds,yt as Os,yu as ks,za as As,zc as K,zl as js,zm as Ms,zn as Ns,zp as Ps,zs as Fs,zt as Is}from"./format-BETfc4z9.js";import{n as Ls}from"./SettingsPage-BLD0xWFB.js";function Rs(e,t,n){return new zs(e,t,n)}var zs=class extends re{constructor(e,t,n){super(n.worker,n.keepIdleModels||!1,e,t),this._foreignModuleHost=n.host||null,this._foreignProxy=this._getProxy().then(e=>new Proxy({},{get(t,n,r){if(n!==`then`){if(typeof n!=`string`)throw Error(`Not supported`);return(...t)=>e.$fmr(n,t)}}}))}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!=`function`)return Promise.reject(Error(`Missing method `+e+` or missing main thread foreign host.`));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}getProxy(){return this._foreignProxy}withSyncedResources(e){return this.workerWithSyncedResources(e).then(e=>this.getProxy())}};function Bs(e){return Array.isArray(e)}function Vs(e){return!Bs(e)}function Hs(e){return typeof e==`string`}function Us(e){return!Hs(e)}function Ws(e){return!e}function Gs(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Ks(e){return e.replace(/[&<>'"_]/g,`-`)}function qs(e,t){console.log(`${e.languageId}: ${t}`)}function q(e,t){return Error(`${e.languageId}: ${t}`)}function Js(e,t,n,r,i){let a=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,o=null;return t.replace(a,function(t,a,s,c,l,u,d,f,p){return Ws(s)?Ws(c)?!Ws(l)&&l<r.length?Gs(e,r[l]):!Ws(d)&&e&&typeof e[d]==`string`?e[d]:(o===null&&(o=i.split(`.`),o.unshift(i)),!Ws(u)&&u<o.length?Gs(e,o[u]):``):Gs(e,n):`$`})}function Ys(e,t,n){let r=/\$[sS](\d\d?)/g,i=null;return t.replace(r,function(t,r){return i===null&&(i=n.split(`.`),i.unshift(n)),!Ws(r)&&r<i.length?Mt(Gs(e,i[r])):``})}function Xs(e,t){let n=t;for(;n&&n.length>0;){let t=e.tokenizer[n];if(t)return t;let r=n.lastIndexOf(`.`);n=r<0?null:n.substr(0,r)}return null}function Zs(e,t){let n=t;for(;n&&n.length>0;){if(e.stateNames[n])return!0;let t=n.lastIndexOf(`.`);n=t<0?null:n.substr(0,t)}return!1}var Qs,$s,ec=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tc=function(e,t){return function(n,r){t(n,r,e)}},nc,rc=5,ic=class{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new ac(e,t);let n=ac.getStackElementId(e);n.length>0&&(n+=`|`),n+=t;let r=this._entries[n];return r||(r=new ac(e,t),this._entries[n]=r,r)}};Qs=ic,Qs._INSTANCE=new Qs(rc);var ac=class e{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t=``;for(;e!==null;)t.length>0&&(t+=`|`),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(t){return e._equals(this,t)}push(e){return ic.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ic.create(this.parent,e)}},oc=class e{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new e(this.languageId,this.state)}},sc=class{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null||e!==null&&e.depth>=this._maxCacheDepth)return new cc(e,t);let n=ac.getStackElementId(e),r=this._entries[n];return r||(r=new cc(e,null),this._entries[n]=r,r)}};$s=sc,$s._INSTANCE=new $s(rc);var cc=class e{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:sc.create(this.stack,this.embeddedLanguageData)}equals(t){return!(t instanceof e)||!this.stack.equals(t.stack)?!1:this.embeddedLanguageData===null&&t.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||t.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(t.embeddedLanguageData)}},lc=class{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Vr(e,t,this._languageId)))}nestedLanguageTokenize(e,t,n,r){let i=n.languageId,a=n.state,o=ca.get(i);if(!o)return this.enterLanguage(i),this.emit(r,``),a;let s=o.tokenize(e,t,a);if(r!==0)for(let e of s.tokens)this._tokens.push(new Vr(e.offset+r,e.type,e.language));else this._tokens=this._tokens.concat(s.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,s.endState}finalize(e){return new Ko(this._tokens,e)}},uc=class e{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let n=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){let r=e===null?0:e.length,i=t.length,a=n===null?0:n.length;if(r===0&&i===0&&a===0)return new Uint32Array;if(r===0&&i===0)return n;if(i===0&&a===0)return e;let o=new Uint32Array(r+i+a);e!==null&&o.set(e);for(let e=0;e<i;e++)o[r+e]=t[e];return n!==null&&o.set(n,r+i),o}nestedLanguageTokenize(t,n,r,i){let a=r.languageId,o=r.state,s=ca.get(a);if(!s)return this.enterLanguage(a),this.emit(i,``),o;let c=s.tokenizeEncoded(t,n,o);if(i!==0)for(let e=0,t=c.tokens.length;e<t;e+=2)c.tokens[e]+=i;return this._prependTokens=e._merge(this._prependTokens,this._tokens,c.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,c.endState}finalize(t){return new ot(e._merge(this._prependTokens,this._tokens,null),[],t)}},dc=nc=class extends F{constructor(e,t,n,r,i){super(),this._configurationService=i,this._languageService=e,this._standaloneThemeService=t,this._languageId=n,this._lexer=r,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let a=!1;this._register(ca.onDidChange(e=>{if(a)return;let t=!1;for(let n=0,r=e.changedLanguages.length;n<r;n++){let r=e.changedLanguages[n];if(this._embeddedLanguages[r]){t=!0;break}}t&&(a=!0,ca.handleChange([this._languageId]),a=!1)})),this._maxTokenizationLineLength=this._configurationService.getValue(`editor.maxTokenizationLineLength`,{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.maxTokenizationLineLength`)&&(this._maxTokenizationLineLength=this._configurationService.getValue(`editor.maxTokenizationLineLength`,{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let e=[];for(let t in this._embeddedLanguages){let n=ca.get(t);if(n){if(n instanceof nc){let t=n.getLoadStatus();t.loaded===!1&&e.push(t.promise)}continue}ca.isResolved(t)||e.push(ca.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)}}getInitialState(){let e=ic.create(null,this._lexer.start);return sc.create(e,null)}tokenize(e,t,n){if(e.length>=this._maxTokenizationLineLength)return St(this._languageId,n);let r=new lc,i=this._tokenize(e,t,n,r);return r.finalize(i)}tokenizeEncoded(e,t,n){if(e.length>=this._maxTokenizationLineLength)return un(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);let r=new uc(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),i=this._tokenize(e,t,n,r);return r.finalize(i)}_tokenize(e,t,n,r){return n.embeddedLanguageData?this._nestedTokenize(e,t,n,0,r):this._myTokenize(e,t,n,0,r)}_findLeavingNestedLanguageOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=Xs(this._lexer,t.stack.state),!n))throw q(this._lexer,`tokenizer state is not defined: `+t.stack.state);let r=-1,i=!1;for(let a of n){if(!Us(a.action)||!(a.action.nextEmbedded===`@pop`||a.action.hasEmbeddedEndInCases))continue;i=!0;let n=a.resolveRegex(t.stack.state),o=n.source;if(o.substr(0,4)===`^(?:`&&o.substr(o.length-1,1)===`)`){let e=(n.ignoreCase?`i`:``)+(n.unicode?`u`:``);n=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(n);s===-1||s!==0&&a.matchOnlyAtLineStart||(r===-1||s<r)&&(r=s)}if(!i)throw q(this._lexer,`no rule containing nextEmbedded: "@pop" in tokenizer embedded state: `+t.stack.state);return r}_nestedTokenize(e,t,n,r,i){let a=this._findLeavingNestedLanguageOffset(e,n);if(a===-1){let a=i.nestedLanguageTokenize(e,t,n.embeddedLanguageData,r);return sc.create(n.stack,new oc(n.embeddedLanguageData.languageId,a))}let o=e.substring(0,a);o.length>0&&i.nestedLanguageTokenize(o,!1,n.embeddedLanguageData,r);let s=e.substring(a);return this._myTokenize(s,t,n,r+a,i)}_safeRuleName(e){return e?e.name:`(unknown)`}_myTokenize(e,t,n,r,i){i.enterLanguage(this._languageId);let a=e.length,o=t&&this._lexer.includeLF?e+`
|
|
1
|
+
import{$a as e,$d as t,$f as n,$i as r,$m as i,$n as a,$o as o,$r as s,$t as c,$u as l,A as u,Ac as d,Af as f,Am as p,Ap as ee,At as m,B as h,Ba as g,Bc as _,Bi as v,Bm as te,Bn as y,Bp as ne,Bs as re,Cc as ie,Cd as b,Ch as ae,Cm as oe,Cn as se,Cp as ce,Cu as x,D as le,Dc as ue,Dd as S,Di as de,Dl as fe,Dm as pe,Dn as me,Dp as he,Dr as ge,Ds as _e,Du as ve,Eh as ye,Ei as be,Em as xe,En as Se,Ep as Ce,Er as we,Es as Te,Eu as Ee,Fc as De,Ff as Oe,Fh as ke,Fi as Ae,Fm as je,Fn as Me,Fo as Ne,Fp as Pe,Fr as Fe,Fs as Ie,G as Le,Gf as Re,Gh as ze,Gl as Be,Gm as C,Gs as Ve,Gt as He,Gu as Ue,H as We,Ha as Ge,Hc as Ke,Hh as w,Hl as T,Hm as qe,Hn as Je,Hp as Ye,Hs as E,Hu as Xe,I as Ze,Ia as Qe,Ic as D,Ip as $e,Ir as et,Is as tt,Iu as O,J as nt,Jd as rt,Jf as it,Jm as at,Jp as ot,Jr as st,Jt as ct,Ju as lt,K as ut,Kc as dt,Kd as ft,Kf as pt,Kh as mt,Kl as ht,Km as gt,Kn as _t,Ku as vt,La as yt,Lc as bt,Lp as xt,Ls as St,Lt as Ct,Lu as k,Mc as wt,Mf as Tt,Mh as Et,Mi as Dt,Ml as Ot,Mp as kt,Mr as At,N as jt,Nf as Mt,Nh as Nt,Nm as Pt,Nn as Ft,Np as It,Nr as Lt,Oc as Rt,Oi as zt,Ol as Bt,Om as Vt,Op as Ht,Ot as Ut,Ou as Wt,Pa as Gt,Pc as Kt,Ph as qt,Pi as Jt,Pl as Yt,Pn as Xt,Pp as Zt,Pr as Qt,Pt as $t,Qa as en,Qf as tn,Qi as nn,Ql as rn,Qm as A,Qr as an,Qu as on,Rc as j,Rl as sn,Rn as cn,Rp as ln,Rs as un,Rt as dn,Ru as fn,Sd as pn,Sf as mn,Si as hn,Sn as gn,Sp as _n,Sr as vn,Su as yn,Td as bn,Th as xn,Ti as Sn,Tl as Cn,Tm as wn,Tn,To as En,Tp as Dn,Tr as On,Ts as kn,Tt as An,Tu as jn,Ua as Mn,Uc as Nn,Ud as Pn,Ui as M,Ul as Fn,Um as In,Un as Ln,Up as Rn,Us as zn,Uu as Bn,Va as Vn,Vc as Hn,Vi as Un,Vl as N,Vp as Wn,Vu as Gn,W as Kn,Wa as qn,Wd as Jn,Wf as Yn,Wh as Xn,Wl as Zn,Wm as P,Wn as Qn,Ws as $n,Wu as er,Xc as tr,Xf as nr,Xl as rr,Xm as ir,Xu as ar,Y as or,Yd as sr,Yl as cr,Yn as lr,Yp as ur,Yr as dr,Za as fr,Zd as pr,Zl as mr,Zm as F,Zr as hr,Zu as gr,_f as _r,_h as vr,_m as yr,_n as br,_p as xr,_s as Sr,_t as Cr,_u as wr,aa as Tr,ah as I,am as Er,ap as Dr,ar as Or,au as kr,bc as Ar,bd as jr,bf as Mr,bh as Nr,bn as Pr,bo as Fr,bp as Ir,br as Lr,bu as L,cc as Rr,ch as zr,cl as Br,cm as Vr,cp as Hr,ct as Ur,dd as Wr,df as Gr,di as Kr,dl as qr,dn as Jr,dp as Yr,dr as Xr,dt as Zr,ef as Qr,eg as $r,ei,en as ti,eo as ni,ep as ri,er as ii,es as ai,eu as oi,f as si,ff as ci,fh as li,fn as ui,fp as di,fr as fi,ft as pi,fu as mi,g as hi,gc as gi,gf as _i,gm as vi,go as yi,gp as bi,gr as xi,gt as Si,hd as Ci,hf as wi,hi as Ti,hm as Ei,hn as Di,hp as Oi,hr as ki,ht as Ai,ia as ji,id as Mi,ig as Ni,ih as Pi,ii as Fi,io as Ii,ip as Li,ir as Ri,it as zi,iu as Bi,jc as Vi,jf as Hi,ji as Ui,jl as Wi,jm as Gi,jn as Ki,jp as qi,js as Ji,jt as Yi,ju as Xi,kc as Zi,ki as Qi,kl as $i,kn as ea,kp as ta,ks as na,kt as ra,lg as ia,lh as aa,li as oa,ll as sa,lm as ca,ln as la,lp as ua,lr as da,lt as fa,lu as pa,m as ma,md as ha,mf as ga,mi as _a,ml as va,mm as ya,mn as ba,mp as xa,mr as Sa,ms as Ca,mt as wa,mu as Ta,na as Ea,nd as Da,nf as Oa,nh as ka,nn as Aa,no as ja,np as Ma,nr as Na,ns as Pa,nt as Fa,nu as R,od as Ia,of as La,og as Ra,oh as za,oi as Ba,ol as Va,on as Ha,op as Ua,or as Wa,ot as Ga,ou as Ka,pc as qa,pf as Ja,pl as Ya,pm as Xa,pn as Za,pp as Qa,pr as $a,ps as eo,pt as to,pu as z,q as no,qa as ro,qc as io,qd as B,qf as ao,qh as oo,ql as so,qm as co,qn as lo,qt as uo,qu as fo,ra as po,rf as mo,rg as ho,rh as go,ri as _o,rn as vo,ro as yo,rp as bo,rr as xo,ru as V,sa as So,sd as Co,sg as wo,sh as To,sl as Eo,sp as Do,sr as H,ss as Oo,su as ko,t as Ao,ta as jo,tf as Mo,tg as No,th as Po,ti as Fo,tl as Io,tm as Lo,tn as Ro,to as zo,tp as Bo,tt as Vo,tu as Ho,u as Uo,uh as Wo,ul as Go,um as Ko,un as qo,up as Jo,ur as Yo,us as Xo,ut as Zo,uu as Qo,v as $o,vd as U,vf as es,vh as ts,vm as W,vn as ns,vo as rs,vp as is,vr as as,vs as os,vu as ss,wh as cs,wm as ls,wn as us,wp as ds,ws as fs,wt as ps,wu as ms,xc as hs,xf as gs,xh as G,xl as _s,xm as vs,xp as ys,xs as bs,yc as xs,yf as Ss,yh as Cs,ym as ws,yn as Ts,yp as Es,ys as Ds,yt as Os,yu as ks,za as As,zc as K,zl as js,zm as Ms,zn as Ns,zp as Ps,zs as Fs,zt as Is}from"./format-DOCqk2Dn.js";import{n as Ls}from"./SettingsPage-eyJZxeCJ.js";function Rs(e,t,n){return new zs(e,t,n)}var zs=class extends re{constructor(e,t,n){super(n.worker,n.keepIdleModels||!1,e,t),this._foreignModuleHost=n.host||null,this._foreignProxy=this._getProxy().then(e=>new Proxy({},{get(t,n,r){if(n!==`then`){if(typeof n!=`string`)throw Error(`Not supported`);return(...t)=>e.$fmr(n,t)}}}))}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!=`function`)return Promise.reject(Error(`Missing method `+e+` or missing main thread foreign host.`));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}getProxy(){return this._foreignProxy}withSyncedResources(e){return this.workerWithSyncedResources(e).then(e=>this.getProxy())}};function Bs(e){return Array.isArray(e)}function Vs(e){return!Bs(e)}function Hs(e){return typeof e==`string`}function Us(e){return!Hs(e)}function Ws(e){return!e}function Gs(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Ks(e){return e.replace(/[&<>'"_]/g,`-`)}function qs(e,t){console.log(`${e.languageId}: ${t}`)}function q(e,t){return Error(`${e.languageId}: ${t}`)}function Js(e,t,n,r,i){let a=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,o=null;return t.replace(a,function(t,a,s,c,l,u,d,f,p){return Ws(s)?Ws(c)?!Ws(l)&&l<r.length?Gs(e,r[l]):!Ws(d)&&e&&typeof e[d]==`string`?e[d]:(o===null&&(o=i.split(`.`),o.unshift(i)),!Ws(u)&&u<o.length?Gs(e,o[u]):``):Gs(e,n):`$`})}function Ys(e,t,n){let r=/\$[sS](\d\d?)/g,i=null;return t.replace(r,function(t,r){return i===null&&(i=n.split(`.`),i.unshift(n)),!Ws(r)&&r<i.length?Mt(Gs(e,i[r])):``})}function Xs(e,t){let n=t;for(;n&&n.length>0;){let t=e.tokenizer[n];if(t)return t;let r=n.lastIndexOf(`.`);n=r<0?null:n.substr(0,r)}return null}function Zs(e,t){let n=t;for(;n&&n.length>0;){if(e.stateNames[n])return!0;let t=n.lastIndexOf(`.`);n=t<0?null:n.substr(0,t)}return!1}var Qs,$s,ec=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tc=function(e,t){return function(n,r){t(n,r,e)}},nc,rc=5,ic=class{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new ac(e,t);let n=ac.getStackElementId(e);n.length>0&&(n+=`|`),n+=t;let r=this._entries[n];return r||(r=new ac(e,t),this._entries[n]=r,r)}};Qs=ic,Qs._INSTANCE=new Qs(rc);var ac=class e{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t=``;for(;e!==null;)t.length>0&&(t+=`|`),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(t){return e._equals(this,t)}push(e){return ic.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ic.create(this.parent,e)}},oc=class e{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new e(this.languageId,this.state)}},sc=class{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null||e!==null&&e.depth>=this._maxCacheDepth)return new cc(e,t);let n=ac.getStackElementId(e),r=this._entries[n];return r||(r=new cc(e,null),this._entries[n]=r,r)}};$s=sc,$s._INSTANCE=new $s(rc);var cc=class e{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:sc.create(this.stack,this.embeddedLanguageData)}equals(t){return!(t instanceof e)||!this.stack.equals(t.stack)?!1:this.embeddedLanguageData===null&&t.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||t.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(t.embeddedLanguageData)}},lc=class{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Vr(e,t,this._languageId)))}nestedLanguageTokenize(e,t,n,r){let i=n.languageId,a=n.state,o=ca.get(i);if(!o)return this.enterLanguage(i),this.emit(r,``),a;let s=o.tokenize(e,t,a);if(r!==0)for(let e of s.tokens)this._tokens.push(new Vr(e.offset+r,e.type,e.language));else this._tokens=this._tokens.concat(s.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,s.endState}finalize(e){return new Ko(this._tokens,e)}},uc=class e{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let n=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){let r=e===null?0:e.length,i=t.length,a=n===null?0:n.length;if(r===0&&i===0&&a===0)return new Uint32Array;if(r===0&&i===0)return n;if(i===0&&a===0)return e;let o=new Uint32Array(r+i+a);e!==null&&o.set(e);for(let e=0;e<i;e++)o[r+e]=t[e];return n!==null&&o.set(n,r+i),o}nestedLanguageTokenize(t,n,r,i){let a=r.languageId,o=r.state,s=ca.get(a);if(!s)return this.enterLanguage(a),this.emit(i,``),o;let c=s.tokenizeEncoded(t,n,o);if(i!==0)for(let e=0,t=c.tokens.length;e<t;e+=2)c.tokens[e]+=i;return this._prependTokens=e._merge(this._prependTokens,this._tokens,c.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,c.endState}finalize(t){return new ot(e._merge(this._prependTokens,this._tokens,null),[],t)}},dc=nc=class extends F{constructor(e,t,n,r,i){super(),this._configurationService=i,this._languageService=e,this._standaloneThemeService=t,this._languageId=n,this._lexer=r,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let a=!1;this._register(ca.onDidChange(e=>{if(a)return;let t=!1;for(let n=0,r=e.changedLanguages.length;n<r;n++){let r=e.changedLanguages[n];if(this._embeddedLanguages[r]){t=!0;break}}t&&(a=!0,ca.handleChange([this._languageId]),a=!1)})),this._maxTokenizationLineLength=this._configurationService.getValue(`editor.maxTokenizationLineLength`,{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.maxTokenizationLineLength`)&&(this._maxTokenizationLineLength=this._configurationService.getValue(`editor.maxTokenizationLineLength`,{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let e=[];for(let t in this._embeddedLanguages){let n=ca.get(t);if(n){if(n instanceof nc){let t=n.getLoadStatus();t.loaded===!1&&e.push(t.promise)}continue}ca.isResolved(t)||e.push(ca.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)}}getInitialState(){let e=ic.create(null,this._lexer.start);return sc.create(e,null)}tokenize(e,t,n){if(e.length>=this._maxTokenizationLineLength)return St(this._languageId,n);let r=new lc,i=this._tokenize(e,t,n,r);return r.finalize(i)}tokenizeEncoded(e,t,n){if(e.length>=this._maxTokenizationLineLength)return un(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);let r=new uc(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),i=this._tokenize(e,t,n,r);return r.finalize(i)}_tokenize(e,t,n,r){return n.embeddedLanguageData?this._nestedTokenize(e,t,n,0,r):this._myTokenize(e,t,n,0,r)}_findLeavingNestedLanguageOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=Xs(this._lexer,t.stack.state),!n))throw q(this._lexer,`tokenizer state is not defined: `+t.stack.state);let r=-1,i=!1;for(let a of n){if(!Us(a.action)||!(a.action.nextEmbedded===`@pop`||a.action.hasEmbeddedEndInCases))continue;i=!0;let n=a.resolveRegex(t.stack.state),o=n.source;if(o.substr(0,4)===`^(?:`&&o.substr(o.length-1,1)===`)`){let e=(n.ignoreCase?`i`:``)+(n.unicode?`u`:``);n=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(n);s===-1||s!==0&&a.matchOnlyAtLineStart||(r===-1||s<r)&&(r=s)}if(!i)throw q(this._lexer,`no rule containing nextEmbedded: "@pop" in tokenizer embedded state: `+t.stack.state);return r}_nestedTokenize(e,t,n,r,i){let a=this._findLeavingNestedLanguageOffset(e,n);if(a===-1){let a=i.nestedLanguageTokenize(e,t,n.embeddedLanguageData,r);return sc.create(n.stack,new oc(n.embeddedLanguageData.languageId,a))}let o=e.substring(0,a);o.length>0&&i.nestedLanguageTokenize(o,!1,n.embeddedLanguageData,r);let s=e.substring(a);return this._myTokenize(s,t,n,r+a,i)}_safeRuleName(e){return e?e.name:`(unknown)`}_myTokenize(e,t,n,r,i){i.enterLanguage(this._languageId);let a=e.length,o=t&&this._lexer.includeLF?e+`
|
|
2
2
|
`:e,s=o.length,c=n.embeddedLanguageData,l=n.stack,u=0,d=null,f=!0;for(;f||u<s;){let n=u,p=l.depth,ee=d?d.groups.length:0,m=l.state,h=null,g=null,_=null,v=null,te=null;if(d){h=d.matches;let e=d.groups.shift();g=e.matched,_=e.action,v=d.rule,d.groups.length===0&&(d=null)}else{if(!f&&u>=s)break;f=!1;let e=this._lexer.tokenizer[m];if(!e&&(e=Xs(this._lexer,m),!e))throw q(this._lexer,`tokenizer state is not defined: `+m);let t=o.substr(u);for(let n of e)if((u===0||!n.matchOnlyAtLineStart)&&(h=t.match(n.resolveRegex(m)),h)){g=h[0],_=n.action;break}}if(h||(h=[``],g=``),_||=(u<s&&(h=[o.charAt(u)],g=h[0]),this._lexer.defaultToken),g===null)break;for(u+=g.length;Vs(_)&&Us(_)&&_.test;)_=_.test(g,h,m,u===s);let y=null;if(typeof _==`string`||Array.isArray(_))y=_;else if(_.group)y=_.group;else if(_.token!==null&&_.token!==void 0){if(y=_.tokenSubst?Js(this._lexer,_.token,g,h,m):_.token,_.nextEmbedded){if(_.nextEmbedded===`@pop`){if(!c)throw q(this._lexer,`cannot pop embedded language if not inside one`);c=null}else if(c)throw q(this._lexer,`cannot enter embedded language from within an embedded language`);else te=Js(this._lexer,_.nextEmbedded,g,h,m)}if(_.goBack&&(u=Math.max(0,u-_.goBack)),_.switchTo&&typeof _.switchTo==`string`){let e=Js(this._lexer,_.switchTo,g,h,m);if(e[0]===`@`&&(e=e.substr(1)),Xs(this._lexer,e))l=l.switchTo(e);else throw q(this._lexer,`trying to switch to a state '`+e+`' that is undefined in rule: `+this._safeRuleName(v))}else if(_.transform&&typeof _.transform==`function`)throw q(this._lexer,`action.transform not supported`);else if(_.next){if(_.next===`@push`){if(l.depth>=this._lexer.maxStack)throw q(this._lexer,`maximum tokenizer stack size reached: [`+l.state+`,`+l.parent.state+`,...]`);l=l.push(m)}else if(_.next===`@pop`){if(l.depth<=1)throw q(this._lexer,`trying to pop an empty stack in rule: `+this._safeRuleName(v));l=l.pop()}else if(_.next===`@popall`)l=l.popall();else{let e=Js(this._lexer,_.next,g,h,m);if(e[0]===`@`&&(e=e.substr(1)),Xs(this._lexer,e))l=l.push(e);else throw q(this._lexer,`trying to set a next state '`+e+`' that is undefined in rule: `+this._safeRuleName(v))}}_.log&&typeof _.log==`string`&&qs(this._lexer,this._lexer.languageId+`: `+Js(this._lexer,_.log,g,h,m))}if(y===null)throw q(this._lexer,`lexer rule has no well-defined action in rule: `+this._safeRuleName(v));let ne=n=>{let a=this._languageService.getLanguageIdByLanguageName(n)||this._languageService.getLanguageIdByMimeType(n)||n,o=this._getNestedEmbeddedLanguageData(a);if(u<s){let n=e.substr(u);return this._nestedTokenize(n,t,sc.create(l,o),r+u,i)}return sc.create(l,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw q(this._lexer,`groups cannot be nested: `+this._safeRuleName(v));if(h.length!==y.length+1)throw q(this._lexer,`matched number of groups does not match the number of actions in rule: `+this._safeRuleName(v));let e=0;for(let t=1;t<h.length;t++)e+=h[t].length;if(e!==g.length)throw q(this._lexer,`with groups, all characters should be matched in consecutive groups in rule: `+this._safeRuleName(v));d={rule:v,matches:h,groups:[]};for(let e=0;e<y.length;e++)d.groups[e]={action:y[e],matched:h[e+1]};u-=g.length;continue}{if(y===`@rematch`&&(u-=g.length,g=``,h=null,y=``,te!==null))return ne(te);if(g.length===0){if(s===0||p!==l.depth||m!==l.state||(d?d.groups.length:0)!==ee)continue;throw q(this._lexer,`no progress in tokenizer in rule: `+this._safeRuleName(v))}let e=null;if(Hs(y)&&y.indexOf(`@brackets`)===0){let t=y.substr(9),n=fc(this._lexer,g);if(!n)throw q(this._lexer,`@brackets token returned but no bracket defined as: `+g);e=Ks(n.token+t)}else e=Ks(y===``?``:y+this._lexer.tokenPostfix);n<a&&i.emit(n+r,e)}if(te!==null)return ne(te)}return sc.create(l,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new oc(e,tt);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),ca.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=ca.get(e);return t?new oc(e,t.getInitialState()):new oc(e,tt)}};dc=nc=ec([tc(4,K)],dc);function fc(e,t){if(!t)return null;t=Gs(e,t);let n=e.brackets;for(let e of n)if(e.open===t)return{token:e.token,bracketType:1};else if(e.close===t)return{token:e.token,bracketType:-1};return null}var pc=Ie(`standaloneColorizer`,{createHTML:e=>e}),mc=class{static colorizeElement(e,t,n,r){r||={};let i=r.theme||`vs`,a=r.mimeType||n.getAttribute(`lang`)||n.getAttribute(`data-lang`);if(!a)return console.error(`Mode not detected`),Promise.resolve();let o=t.getLanguageIdByMimeType(a)||a;e.setTheme(i);let s=n.firstChild?n.firstChild.nodeValue:``;return n.className+=` `+i,this.colorize(t,s||``,o,r).then(e=>{n.innerHTML=pc?.createHTML(e)??e},e=>console.error(e))}static async colorize(e,t,n,r){let i=e.languageIdCodec,a=4;r&&typeof r.tabSize==`number`&&(a=r.tabSize),it(t)&&(t=t.substr(1));let o=ao(t);if(!e.isRegisteredLanguageId(n))return gc(o,a,i);let s=await ca.getOrCreate(n);return s?hc(o,a,s,i):gc(o,a,i)}static colorizeLine(e,t,n,r,i=4){let a=Te.isBasicASCII(e,t),o=Te.containsRTL(e,a,n);return na(new _e(!1,!0,e,!1,a,o,0,r,[],i,0,0,0,0,-1,`none`,!1,!1,null,null,0)).html}static colorizeModelLine(e,t,n=4){let r=e.getLineContent(t);e.tokenization.forceTokenization(t);let i=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),i,n)}};function hc(e,t,n,r){return new Promise((i,a)=>{let o=()=>{let s=_c(e,t,n,r);if(n instanceof dc){let e=n.getLoadStatus();if(e.loaded===!1){e.promise.then(o,a);return}}i(s)};o()})}function gc(e,t,n){let r=[],i=new Uint32Array(2);i[0]=0,i[1]=33587200;for(let a=0,o=e.length;a<o;a++){let o=e[a];i[0]=o.length;let s=new Ji(i,o,n),c=Te.isBasicASCII(o,!0),l=Te.containsRTL(o,c,!0),u=na(new _e(!1,!0,o,!1,c,l,0,s,[],t,0,0,0,0,-1,`none`,!1,!1,null,null,0));r=r.concat(u.html),r.push(`<br/>`)}return r.join(``)}function _c(e,t,n,r){let i=[],a=n.getInitialState();for(let o=0,s=e.length;o<s;o++){let s=e[o],c=n.tokenizeEncoded(s,!0,a);Ji.convertToEndOffset(c.tokens,s.length);let l=new Ji(c.tokens,s,r),u=Te.isBasicASCII(s,!0),d=Te.containsRTL(s,u,!0),f=na(new _e(!1,!0,s,!1,u,d,0,l.inflate(),[],t,0,0,0,0,-1,`none`,!1,!1,null,null,0));i=i.concat(f.html),i.push(`<br/>`),a=c.endState}return i.join(``)}var vc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yc=function(e,t){return function(n,r){t(n,r,e)}},bc=pa,xc=class extends Vn{get _targetWindow(){return O(this._target.targetElements[0])}get _targetDocumentElement(){return O(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return this._hoverPosition===2?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle(`locked`,this._isLocked))}addMouseTrackingElement(e){return this._lockMouseTracker.addElement(e)}constructor(e,t,n,r,i){if(super(),this._keybindingService=t,this._configurationService=n,this._markdownRenderer=r,this._accessibilityService=i,this._messageListeners=new A,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._maxHeightRatioRelativeToWindow=.5,this._onDispose=this._register(new P),this._onRequestLayout=this._register(new P),this._linkHandler=e.linkHandler,this._target=`targetElements`in e.target?e.target:new Cc(e.target),this._anchorAlignment=e.position?.anchorAlignment??0,e.style)switch(e.style){case 1:e.appearance??={},e.appearance.compact??=!0,e.appearance.showPointer??=!0;break;case 2:e.appearance??={},e.appearance.compact??=!0}this._hoverPointer=e.appearance?.showPointer?bc(`div.workbench-hover-pointer`):void 0,this._hover=this._register(new dr(!e.appearance?.skipFadeInAnimation)),this._hover.containerDomNode.classList.add(`workbench-hover`),e.appearance?.compact&&this._hover.containerDomNode.classList.add(`workbench-hover`,`compact`),this._hoverPointer&&this._hover.containerDomNode.classList.add(`with-pointer`),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0);let a=e.appearance?.maxHeightRatio;a!==void 0&&a>0&&a<=1&&(this._maxHeightRatioRelativeToWindow=a),this._hoverPosition=e.position?.hoverPosition===void 0?3:Nt(e.position.hoverPosition)?e.position.hoverPosition:2,this.onmousedown(this._hover.containerDomNode,e=>e.stopPropagation()),this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.dispose()}),this._register(L(this._targetWindow,`blur`,()=>this.dispose()));let o=bc(`div.hover-row.markdown-hover`),s=bc(`div.hover-contents`);if(typeof e.content==`string`)s.textContent=e.content,s.style.whiteSpace=`pre-wrap`;else if(vt(e.content)){s.appendChild(e.content),s.classList.add(`html-hover-contents`);let t=new ResizeObserver(()=>{this.layout(),this._onRequestLayout.fire()});t.observe(s),this._register(I(()=>t.disconnect()))}else{let t=e.content,{element:n}=this._register(this._markdownRenderer.render(t,{actionHandler:this._linkHandler,asyncRenderCallback:()=>{s.classList.add(`code-hover-contents`),this.layout(),this._onRequestLayout.fire()}}));s.appendChild(n)}if(o.appendChild(s),this._hover.contentsDomNode.appendChild(o),e.actions&&e.actions.length>0){let t=bc(`div.hover-row.status-bar`),n=bc(`div.actions`);e.actions.forEach(e=>{let t=this._keybindingService.lookupKeybinding(e.commandId),r=t?t.getLabel():null;this._register(st.render(n,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},r))}),t.appendChild(n),this._hover.containerDomNode.appendChild(t)}this._hoverContainer=bc(`div.workbench-hover-container`),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let c;if(c=e.actions&&e.actions.length>0?!1:e.persistence?.hideOnHover===void 0?typeof e.content==`string`||At(e.content)&&!e.content.value.includes(`](`)&&!e.content.value.includes(`</a>`):e.persistence.hideOnHover,e.appearance?.showHoverHint){let e=bc(`div.hover-row.status-bar`),t=bc(`div.info`);t.textContent=G(1794,`Hold {0} key to mouse over`,li?`Option`:`Alt`),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}let l=[...this._target.targetElements];c||l.push(this._hoverContainer);let u=this._mouseTracker=this._register(new Sc(l));if(this._register(u.onMouseOut(()=>{this._isLocked||this.dispose()})),c){let e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new Sc(e)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;let e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){let n=on(this._hoverContainer,bc(`div`)),r=x(this._hoverContainer,bc(`div`));n.tabIndex=0,r.tabIndex=0,this._register(L(r,`focus`,t=>{e.focus(),t.preventDefault()})),this._register(L(n,`focus`,e=>{t.focus(),e.preventDefault()}))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(e.childNodes.length-t-1);if(n.nodeType===n.ELEMENT_NODE){let e=n;if(typeof e.tabIndex==`number`&&e.tabIndex>=0)return e}let r=this.findLastFocusableChild(n);if(r)return r}}render(e){e.appendChild(this._hoverContainer);let t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&hr(this._configurationService.getValue(`accessibility.verbosity.hover`)===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(`editor.action.accessibleView`)?.getAriaLabel());t&&kn(t),this.layout(),this.addFocusTrap()}layout(){this._mouseTracker?.suppressPendingMouseOut(),this._lockMouseTracker!==this._mouseTracker&&this._lockMouseTracker?.suppressPendingMouseOut(),this._hover.containerDomNode.classList.remove(`right-aligned`),this._hover.contentsDomNode.style.maxHeight=``,this._hover.containerDomNode.style.maxWidth=``;let e=e=>{let t=Xi(e),n=e.getBoundingClientRect();return{top:n.top*t,bottom:n.bottom*t,right:n.right*t,left:n.left*t}},{top:t,right:n,bottom:r,left:i}=this._target.targetElements.map(t=>e(t))[0],a=n-i,o=r-t,s={top:t,right:n,bottom:r,left:i,width:a,height:o,center:{x:i+a/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(s),this.adjustVerticalHoverPosition(s),this.adjustHoverMaxHeight(s),this._hoverContainer.style.padding=``,this._hoverContainer.style.margin=``,this._hoverPointer){switch(this._hoverPosition){case 1:s.left+=3,s.right+=3,this._hoverContainer.style.paddingLeft=`3px`,this._hoverContainer.style.marginLeft=`-3px`;break;case 0:s.left-=3,s.right-=3,this._hoverContainer.style.paddingRight=`3px`,this._hoverContainer.style.marginRight=`-3px`;break;case 2:s.top+=3,s.bottom+=3,this._hoverContainer.style.paddingTop=`3px`,this._hoverContainer.style.marginTop=`-3px`;break;case 3:s.top-=3,s.bottom-=3,this._hoverContainer.style.paddingBottom=`3px`,this._hoverContainer.style.marginBottom=`-3px`}s.center.x=s.left+a/2,s.center.y=s.top+o/2}this.computeXCordinate(s),this.computeYCordinate(s),this._hoverPointer&&(this._hoverPointer.classList.remove(`top`),this._hoverPointer.classList.remove(`left`),this._hoverPointer.classList.remove(`right`),this._hoverPointer.classList.remove(`bottom`),this.setHoverPointerPosition(s)),this._hover.onContentsChanged()}computeXCordinate(e){let t=this._hover.containerDomNode.clientWidth+2,n=this._targetDocumentElement.clientLeft;if(this._target.x!==void 0)this._x=this._target.x;else if(this._hoverPosition===1)this._x=e.right;else if(this._hoverPosition===0)this._x=e.left-t;else{this._x=this._anchorAlignment===1?e.right-t:this._hoverPointer?e.center.x-this._hover.containerDomNode.clientWidth/2:e.left;let r=this._targetDocumentElement.clientWidth;this._x+t>=r&&(this._hover.containerDomNode.classList.add(`right-aligned`),this._x=Math.max(r-t-2,n))}this._x<n&&(this._x=e.left+2)}computeYCordinate(e){this._y=this._target.y===void 0?this._hoverPosition===3?e.top:this._hoverPosition===2?e.bottom-2:this._hoverPointer?e.center.y+this._hover.containerDomNode.clientHeight/2:e.bottom:this._target.y,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(this._target.x!==void 0)return;if(this._anchorAlignment===1&&(this._hoverPosition===3||this._hoverPosition===2)){let t=e.right-this._targetDocumentElement.clientLeft-2-2;this._hover.containerDomNode.clientWidth>t&&(this._hover.containerDomNode.style.maxWidth=`${Math.max(t,0)}px`);return}let t=this._hoverPointer?3:0;if(this._forcePosition){let n=t+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-e.right-n}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${e.left-n}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t&&(this._hoverPosition=e.left>=this._hover.containerDomNode.clientWidth+t?0:2):this._hoverPosition===0&&(e.left<this._hover.containerDomNode.clientWidth+t&&(this._hoverPosition=this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?1:2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(this._target.y!==void 0||this._forcePosition)return;let t=this._hoverPointer?3:0;this._hoverPosition===3?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):this._hoverPosition===2&&e.bottom+this._hover.containerDomNode.offsetHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight*this._maxHeightRatioRelativeToWindow;if(this._forcePosition){let n=(this._hoverPointer?3:0)+2;this._hoverPosition===3?t=Math.min(t,e.top-n):this._hoverPosition===2&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-n))}this._hover.containerDomNode.style.maxHeight=``;let n=this._hover.containerDomNode.offsetHeight-this._hover.contentsDomNode.offsetHeight,r=Math.max(0,t-n);if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.style.maxHeight=`${r}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){let e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(this._hoverPosition===0?`right`:`left`);let t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=`${e.center.y-(this._y-t)-3}px`:this._hoverPointer.style.top=`${t/2-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?`bottom`:`top`);let t=this._hover.containerDomNode.clientWidth/2-3,n=this._x+t;(n<e.left||n>e.right)&&(t=e.center.x-this._x-3),this._hoverPointer.style.left=`${t}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._target.dispose?.(),this._hoverContainer.remove(),this._messageListeners.dispose(),super.dispose()),this._isDisposed=!0}};xc=vc([yc(1,Jt),yc(2,K),yc(3,xi),yc(4,os)],xc);var Sc=class extends Vn{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e,t=200){super(),this._elements=e,this._eventDebounceDelay=t,this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer=this._register(new i),this._onMouseOut=this._register(new P);for(let e of this._elements)this.onmouseover(e,()=>this._onTargetMouseOver()),this.onmouseleave(e,()=>this._onTargetMouseLeave())}_onTargetMouseOver(){this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer.clear()}_onTargetMouseLeave(){this._isMouseIn=!1,this._mouseTimer.value=new mo(()=>this._fireIfMouseOutside(),this._eventDebounceDelay)}_fireIfMouseOutside(){!this._isMouseIn&&!this._suppressNextMouseOut&&this._onMouseOut.fire()}suppressPendingMouseOut(){this._isMouseIn||(this._suppressNextMouseOut=!0)}addElement(e){if(this._elements.includes(e))return F.None;this._elements.push(e);let t=new A;return t.add(L(e,z.MOUSE_OVER,()=>this._onTargetMouseOver())),t.add(L(e,z.MOUSE_LEAVE,()=>this._onTargetMouseLeave())),t.add(I(()=>{let t=this._elements.indexOf(e);t>=0&&this._elements.splice(t,1)})),t}},Cc=class{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}};function wc(e){let t=e;return typeof t==`object`&&`markdown`in t&&`markdownNotSupportedFallback`in t}function Tc(e){let t=e;return typeof t==`object`&&`element`in t}var Ec=class{constructor(e,t,n){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=n}async update(e,t,n){if(this._cancellationTokenSource&&=(this._cancellationTokenSource.dispose(!0),void 0),this.isDisposed)return;let r=Tc(e)&&e.contentOwnsPadding===!0,i;if(ke(e)||vt(e)||e===void 0)i=e;else{this._cancellationTokenSource=new Vt;let r=this._cancellationTokenSource.token,a;if(a=wc(e)?Et(e.markdown)?e.markdown(r).then(t=>t??e.markdownNotSupportedFallback):e.markdown??e.markdownNotSupportedFallback:e.element(r),a instanceof Promise?(this._hoverWidget||this.show(G(1795,`Loading...`),t,n,!1),i=await a):i=a,this.isDisposed||r.isCancellationRequested)return}this.show(i,t,n,r)}show(e,t,n,r){let i=this._hoverWidget;if(this.hasContent(e)){let a={content:e,target:this.target,actions:n?.actions,linkHandler:n?.linkHandler,trapFocus:n?.trapFocus,additionalClasses:[...n?.additionalClasses??[],...r?[`managed-hover-content-owns-padding`]:[]],appearance:{showPointer:this.hoverDelegate.placement===`element`,skipFadeInAnimation:!this.fadeInAnimation||!!i,showHoverHint:n?.appearance?.showHoverHint},position:{hoverPosition:2,anchorAlignment:n?.position?.anchorAlignment}};this._hoverWidget=this.hoverDelegate.showHover(a,t)}i?.dispose()}hasContent(e){return e?!At(e)||!!e.value:!1}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}},Dc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oc=function(e,t){return function(n,r){t(n,r,e)}},kc=3,Ac=class extends F{get _currentHover(){return this._hoverStack.at(-1)?.hover}get _currentHoverOptions(){return this._hoverStack.at(-1)?.options}_getContainingHoverIndex(e){let t=vt(e)?[e]:e.targetElements;for(let e=this._hoverStack.length-1;e>=0;e--)for(let n of t)if(Gn(n,this._hoverStack[e].hover.domNode))return e;return-1}constructor(e,t,n,r,i,a){super(),this._instantiationService=e,this._configurationService=t,this._keybindingService=r,this._layoutService=i,this._accessibilityService=a,this._hoverStack=[],this._currentDelayedHoverWasShown=!1,this._delayedHovers=new Map,this._managedHovers=new Map,this._register(n.onDidShowContextMenu(()=>this.hideHover())),this._register(sn.registerCommandAndKeybindingRule({id:`workbench.action.showHover`,weight:0,primary:ls(2089,2087),handler:()=>{this._showAndFocusHoverForActiveElement()}}))}showInstantHover(e,t,n,r){let i=this._createHover(e,n);if(i)return this._showHover(i,e,t),i.hover}showDelayedHover(e,t){if(e.id===void 0&&(e.id=Mc(e.content)),!this._currentDelayedHover||this._currentDelayedHoverWasShown){if(this._currentHover?.isLocked&&this._getContainingHoverIndex(e.target)<0)return;if(jc(this._currentHoverOptions)===jc(e))return this._currentHover;if(this._currentHover&&!this._currentHover.isDisposed&&this._currentDelayedHoverGroupId!==void 0&&this._currentDelayedHoverGroupId===t?.groupId)return this.showInstantHover({...e,appearance:{...e.appearance,skipFadeInAnimation:!0}})}else if(this._currentDelayedHover&&jc(this._currentHoverOptions)===jc(e))return this._currentDelayedHover;let n=this._createHover(e,void 0);if(!n){this._currentDelayedHover=void 0,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=void 0;return}this._currentDelayedHover=n.hover,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=t?.groupId;let r=t?.reducedDelay?this._configurationService.getValue(`workbench.hover.reducedDelay`):this._configurationService.getValue(`workbench.hover.delay`);return Gr(r).then(()=>{n.hover&&!n.hover.isDisposed&&(this._currentDelayedHoverWasShown=!0,this._showHover(n,e))}),n.hover}setupDelayedHover(e,t,n){return this._setupDelayedHover(e,n=>{let r={...typeof t==`function`?t():t,target:e};return r.style===2&&n&&(r.target=Rc(e,n)),r},n)}setupDelayedHoverAtMouse(e,t,n){return this._setupDelayedHover(e,n=>({...typeof t==`function`?t():t,target:n?Rc(e,n):e}),n)}_setupDelayedHover(e,t,n){let r=new A;return r.add(L(e,z.MOUSE_OVER,e=>{this.showDelayedHover(t(e),{groupId:n?.groupId,reducedDelay:n?.reducedDelay})})),n?.setupKeyboardEvents&&r.add(L(e,z.KEY_DOWN,e=>{let n=new Ja(e);(n.equals(10)||n.equals(3))&&this.showInstantHover(t(),!0)})),this._delayedHovers.set(e,{show:e=>{this.showInstantHover(t(),e)}}),r.add(I(()=>this._delayedHovers.delete(e))),r}_createHover(e,t){if(this._currentDelayedHover?.dispose(),this._currentDelayedHover=void 0,e.content===``)return;if(e.id===void 0&&(e.id=Mc(e.content)),this._getContainingHoverIndex(e.target)>=0){if(this._hoverStack.length>=kc)return}else if(this._currentHover?.isLocked||jc(this._currentHoverOptions)===jc(e))return;this._lastHoverOptions=e;let n=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),r=Ee(),i;t||n&&r&&(r.classList.contains(`monaco-hover`)||(i=r));let a=new A,o=this._instantiationService.createInstance(xc,e);if(e.persistence?.sticky&&(o.isLocked=!0),e.position?.hoverPosition&&!Nt(e.position.hoverPosition)&&(e.target={targetElements:vt(e.target)?[e.target]:e.target.targetElements,x:e.position.hoverPosition.x+10}),o.onDispose(()=>{let e=this._hoverStack.findIndex(e=>e.hover===o);if(e>=0){let t=this._hoverStack[e];for(Xe(o.domNode)&&t.lastFocusedElementBeforeOpen&&t.lastFocusedElementBeforeOpen.focus();this._hoverStack.length>e+1;){let e=this._hoverStack.pop();e.contextView.dispose(),e.hover.dispose()}this._hoverStack.splice(e,1),t.contextView.dispose()}a.dispose()},void 0,a),!e.container){let t=vt(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer(O(t))}if(a.add(L(O(e.container).document,z.MOUSE_DOWN,e=>{Gn(e.target,o.domNode)||this._hideHoverAndDescendants(o)})),!e.persistence?.sticky){if(`targetElements`in e.target)for(let t of e.target.targetElements)a.add(L(t,z.CLICK,()=>this._hideHoverAndDescendants(o)));else a.add(L(e.target,z.CLICK,()=>this._hideHoverAndDescendants(o)));let t=Ee();if(t){let n=O(t).document;a.add(L(t,z.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),a.add(L(n,z.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),a.add(L(t,z.KEY_UP,e=>this._keyUp(e,o))),a.add(L(n,z.KEY_UP,e=>this._keyUp(e,o)))}}if(`IntersectionObserver`in tn){let t=new IntersectionObserver(e=>this._intersectionChange(e,o),{threshold:0}),n=`targetElements`in e.target?e.target.targetElements[0]:e.target;t.observe(n),a.add(I(()=>t.disconnect()))}return{hover:o,lastFocusedElementBeforeOpen:i,store:a}}_showHover(e,t,n){let{hover:r,lastFocusedElementBeforeOpen:i,store:a}=e,o=this._getContainingHoverIndex(t.target),s=o>=0;if(!s)this._hideAllHovers();else{for(let e=this._hoverStack.length-1;e>o;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=o+1}if(s)for(let e=0;e<=o;e++)a.add(this._hoverStack[e].hover.addMouseTrackingElement(r.domNode));let c=t.container??this._layoutService.getContainer(O(vt(t.target)?t.target:t.target.targetElements[0])),l=new fi(c,1),u={hover:r,options:t,contextView:l,lastFocusedElementBeforeOpen:i};this._hoverStack.push(u);let d=new Fc(r,n,this._hoverStack.length);if(l.show(d),a.add(r.onRequestLayout(()=>l.layout())),n||t.persistence?.sticky){let e=O(c);a.add(L(e,z.RESIZE,()=>l.layout()))}if(t.onDidHide){let e=t.onDidHide;a.add(I(()=>e()))}t.onDidShow?.()}_hideHoverAndDescendants(e){let t=this._hoverStack.findIndex(t=>t.hover===e);if(t<0){e===this._currentDelayedHover&&this._cancelPendingDelayedHover();return}for(let e=this._hoverStack.length-1;e>=t;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=t}_cancelPendingDelayedHover(){this._currentDelayedHover&&!this._currentDelayedHoverWasShown&&(this._currentDelayedHover.dispose(),this._currentDelayedHover=void 0,this._currentDelayedHoverGroupId=void 0)}_hideAllHovers(){for(let e=this._hoverStack.length-1;e>=0;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=0}hideHover(e){(e||!this._currentHover?.isLocked)&&(this._cancelPendingDelayedHover(),this._hoverStack.length!==0&&this.doHideHover())}doHideHover(){let e=this._hoverStack.length;this._hoverStack[e-1]?.hover.dispose(),this._hoverStack.length=e-1}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showInstantHover(this._lastHoverOptions,!0,!0)}_showAndFocusHoverForActiveElement(){let e=Ee();for(;e;){let t=this._delayedHovers.get(e)??this._managedHovers.get(e);if(t){t.show(!0);return}e=e.parentElement}}_keyDown(e,t,n){if(e.key===`Alt`){for(let e of this._hoverStack)e.hover.isLocked=!0;return}let r=new Ja(e);if(!(this._keybindingService.resolveKeyboardEvent(r).getSingleModifierDispatchChords().some(e=>!!e)||this._keybindingService.softDispatch(r,r.target).kind!==0)&&n&&(!this._currentHoverOptions?.trapFocus||e.key!==`Tab`)){let e=this._hoverStack.find(e=>e.hover===t);this._hideHoverAndDescendants(t),e?.lastFocusedElementBeforeOpen?.focus()}}_keyUp(e,t){if(e.key===`Alt`){for(let e of this._hoverStack)e.options.persistence?.sticky||(e.hover.isLocked=!1);if(!this._hoverStack.some(e=>e.hover.isMouseIn)){let e=this._hoverStack[this._hoverStack.length-1];this._hideAllHovers(),e?.lastFocusedElementBeforeOpen?.focus()}}}setupManagedHover(e,t,n,r){if(e.showNativeHover)return Pc(t,n);t.setAttribute(`custom-hover`,`true`),t.title!==``&&(console.warn(`HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute.`),t.title=``);let i,a,o=(t,n)=>{let r=a!==void 0;t&&(a?.dispose(),a=void 0),n&&(i?.dispose(),i=void 0),r&&(e.onDidHideHover?.(),a=void 0)},s=(i,o,s,c)=>new mo(async()=>{(!a||a.isDisposed)&&(a=new Ec(e,s||t,i>0),await a.update(typeof n==`function`?n():n,o,{...r,trapFocus:c}))},i),c=new A,l=!1;c.add(L(t,z.MOUSE_DOWN,()=>{l=!0,o(!0,!0)},!0)),c.add(L(t,z.MOUSE_UP,()=>{l=!1},!0)),c.add(L(t,z.MOUSE_LEAVE,e=>{l=!1,o(!1,e.fromElement===t)},!0)),c.add(L(t,z.MOUSE_OVER,r=>{if(i)return;let a=new A,c={targetElements:[t],dispose:()=>{}};(e.placement===void 0||e.placement===`mouse`)&&a.add(L(t,z.MOUSE_MOVE,e=>{c.x=e.x+10,Ic(e,t)||o(!0,!0)},!0)),i=a,Ic(r,t)&&a.add(s(typeof e.delay==`function`?e.delay(n):e.delay,!1,c))},!0)),Bn(t)||c.add(L(t,z.FOCUS,r=>{if(l||i||(a?.isDisposed&&(a=void 0),vt(r.relatedTarget)&&r.relatedTarget.closest(`.monaco-hover`)||!r.relatedTarget)||!Ic(r,t))return;let c={targetElements:[t],dispose:()=>{}},u=new A;u.add(L(t,z.BLUR,()=>o(!0,!0),!0)),u.add(s(typeof e.delay==`function`?e.delay(n):e.delay,!1,c)),i=u},!0));let u={show:e=>{o(!1,!0),s(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{n=e,r=t,await a?.update(n,void 0,r)},dispose:()=>{this._managedHovers.delete(t),c.dispose(),o(!0,!0)}};return this._managedHovers.set(t,u),u}showManagedHover(e){let t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach(e=>e.dispose()),super.dispose()}};Ac=Dc([Oc(0,V),Oc(1,K),Oc(2,an),Oc(3,Jt),Oc(4,Yo),Oc(5,os)],Ac);function jc(e){if(e!==void 0)return e?.id??e}function Mc(e){if(!vt(e))return typeof e==`string`?e.toString():e.value}function Nc(e){let t=typeof e==`function`?e():e;if(ke(t))return et(t);if(wc(t))return t.markdownNotSupportedFallback}function Pc(e,t){function n(t){t?e.setAttribute(`title`,t):e.removeAttribute(`title`)}return n(Nc(t)),{update:e=>n(Nc(e)),show:()=>{},hide:()=>{},dispose:()=>n(void 0)}}var Fc=class{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1,n=1){this._hover=e,this._focus=t,this.layer=n}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}};function Ic(e,t){return vt(e.target)&&Lc(e.target,t)===t}function Lc(e,t){for(t??=O(e).document.body;!e.hasAttribute(`custom-hover`)&&e!==t;)e=e.parentElement;return e}function Rc(e,t){return{targetElements:[e],x:t.x+10}}D(ei,Ac,1),ji((e,t)=>{let n=e.getColor(Ne);n&&(t.addRule(`.monaco-hover.workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-hover.workbench-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`))});var zc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bc=function(e,t){return function(n,r){t(n,r,e)}};function Vc(e){return e.scheme===B.file?e.fsPath:e.path}var Hc=0,Uc=class{constructor(e,t,n,r,i,a,o){this.id=++Hc,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=n,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=r,this.groupOrder=i,this.sourceId=a,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?` VALID`:`INVALID`}] ${this.actual.constructor.name} - ${this.actual}`}},Wc=class{constructor(e,t){this.resourceLabel=e,this.reason=t}},Gc=class{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);let n=[];return e.length>0&&n.push(G(2132,`The following files have been closed and modified on disk: {0}.`,e.join(`, `))),t.length>0&&n.push(G(2133,`The following files have been modified in an incompatible way: {0}.`,t.join(`, `))),n.join(`
|
|
3
3
|
`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}},Kc=class{constructor(e,t,n,r,i,a,o){this.id=++Hc,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=n,this.groupId=r,this.groupOrder=i,this.sourceId=a,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split==`function`}removeResource(e,t,n){this.removedResources||=new Gc,this.removedResources.has(t)||this.removedResources.set(t,new Wc(e,n))}setValid(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||=new Gc,this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Wc(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?`INVALID`:` VALID`}] ${this.actual.constructor.name} - ${this.actual}`}},qc=class{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(`
|
|
4
4
|
`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let n of this._past)t(n.actual)&&this._setElementValidFlag(n,e);for(let n of this._future)t(n.actual)&&this._setElementValidFlag(n,e)}pushElement(e){for(let e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,n=this._past.length;e<n;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new be(e,t)}restoreSnapshot(e){let t=e.elements.length,n=!0,r=0,i=-1;for(let a=0,o=this._past.length;a<o;a++,r++){let o=this._past[a];n&&(r>=t||o.id!==e.elements[r])&&(n=!1,i=a),!n&&o.type===1&&o.removeResource(this.resourceLabel,this.strResource,0)}let a=-1;for(let i=this._future.length-1;i>=0;i--,r++){let o=this._future[i];n&&(r>=t||o.id!==e.elements[r])&&(n=!1,a=i),!n&&o.type===1&&o.removeResource(this.resourceLabel,this.strResource,0)}i!==-1&&(this._past=this._past.slice(0,i)),a!==-1&&(this._future=this._future.slice(a+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}},Jc=class{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}},Yc=new qc(``,``);Yc.locked=!0;var Xc=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log(`------------------------------------`),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as e}from"./reactivity.esm-bundler-DY1JkAEA.js";import{C as t,J as n,b as r,i,l as a}from"./runtime-core.esm-bundler-Bqg71Vll.js";import{B as o,I as s,K as c,M as l,N as u,P as d,R as f,U as p,d as m,j as h,m as g,o as ee}from"./dom-BtYTvLeN.js";import{C as _}from"./detached-fullscreen-Du3TcYdX.js";import{Ut as v,j as y}from"./index-
|
|
1
|
+
import{v as e}from"./reactivity.esm-bundler-DY1JkAEA.js";import{C as t,J as n,b as r,i,l as a}from"./runtime-core.esm-bundler-Bqg71Vll.js";import{B as o,I as s,K as c,M as l,N as u,P as d,R as f,U as p,d as m,j as h,m as g,o as ee}from"./dom-BtYTvLeN.js";import{C as _}from"./detached-fullscreen-Du3TcYdX.js";import{Ut as v,j as y}from"./index-z1Oh2-I_.js";import{a as b,o as x}from"./QSelect-C1AN93yA.js";import{p as S}from"./use-tours-COLDth2h.js";import{u as C}from"./permissionModes-DLWiBfdb.js";C(`superpowers`);function w(e,t){let n=["1. Call `list_tasks` FIRST to inspect any pre-existing tasks (they may have been seeded from Notion, a template, or the CreatePage form).","2. If tasks already exist: DO NOT delete or recreate them from scratch. Read each one, judge whether it is atomic and implementable in one session with clear completion criteria. Improve them in place:\n - Use `update_task` to rename unclear titles, add completion criteria, or flip `is_acceptance_criterion` when needed.\n - Use `create_task` to SPLIT a task that is too large into smaller atomic pieces (keep the original only if it still makes sense, otherwise update it to one of the split pieces and create the rest).\n - Use `create_task` to ADD missing acceptance criteria or missing implementation steps the plan requires.","3. If no tasks exist:\n - If a plan file exists in `docs/superpowers/plans/` or similar, read it and derive the task list from it.\n - If no plan exists, ask the user what the workspace goal is and propose tasks accordingly.\n - Create the tasks via `create_task`. For each task, decide `is_acceptance_criterion` appropriately."],r=4;if(e.framework){let t=e.skill?`Use the \`${e.skill}\` skill for this task if available; otherwise use the existing project test tools directly. `:``,i=e.prompt?`Additional guidance: ${e.prompt}`:``;n.push(`${r}. **E2E review**: walk the task list and identify which tasks produce user-visible behavior (UI flows, form submissions, page renders, etc.). For each one that warrants regression coverage, INSERT a follow-up sub-task with title prefixed \`[E2E] \` describing the test to write. Use \`after_task_id\` to insert it directly after the parent task; \`list_tasks\` exposes \`sort_order\` so you can verify ordering. Skip tasks that don't produce user-visible behavior (refactors, infra, internal services) and briefly justify your choices in chat. The project uses \`${e.framework}\`. ${t}${i}`.trim()),r++}return t.prompt&&(n.push(`${r}. **Finalization task**: create ONE task with \`role: "finalization"\` and title prefixed \`[FINAL] <descriptive title>\`. Reuse an existing finalization task instead of duplicating it. Place it at the END of the task list (sort_order = max + 1, AFTER any [E2E] tasks). The agent will execute this task using the project's finalization prompt — do NOT inline the prompt content into the task title or description.`),r++),n.push(`${r}. Call \`mark_auto_loop_ready\`. This marks preparation complete. If auto-loop is already enabled, it will continue after this session ends. Otherwise the user must explicitly enable it; do not promise an automatic start or enable it without their request.`),n.join(`
|
|
2
2
|
`)}var T=w({framework:``,skill:``,prompt:``},{prompt:``}),E="Hard rules:\n- Do NOT change source code. Write planning documents only if the current phase and launch permissions allow it.\n- Do NOT run `kill`, `pkill`, `killall`, `pgrep -k`, or any process-killing command — you may tear down the Kōbō server itself or sibling dev servers.\n- Do NOT start implementation even if a plan is ready — auto-loop will drive that afterwards, one task per iteration.\n- If the user asks for changes, re-apply via MCP and re-check. Do NOT mark ready until they approve.",D=`Review your progress on the tasks and acceptance criteria. Use the kobo-tasks MCP server: call list_tasks() to check the current status, then update any tasks you have completed using mark_task_done(). Report what is done and what remains.
|
|
3
3
|
|
|
4
4
|
Then suggest concrete next actions. Format them exactly like this so I can click on them:
|