@inkeep/open-knowledge 0.31.0-beta.5 → 0.31.0-beta.6
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/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +17 -17
- package/dist/config-schema.json +17 -0
- package/dist/config.project-local.schema.json +17 -0
- package/dist/constants-Ba7kuv_h.mjs +2 -0
- package/dist/dist-BYM_jxPa.mjs +1 -0
- package/dist/{dist-DEBa6nkk.mjs → dist-Pe1Q8dMj.mjs} +24 -24
- package/dist/{gh-detect-Cm8hekXk.mjs → gh-detect-C6QZctcU.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/init-CM8vkkIB.mjs +1 -0
- package/dist/{init-reB4XeLP.mjs → init-CWVdQeQP.mjs} +5 -5
- package/dist/{launch-json-removal-v_ZIEJ04.mjs → launch-json-removal-TcMw8bt1.mjs} +2 -2
- package/dist/{loader-C3crD0ZW.mjs → loader-B7V7uIES.mjs} +2 -2
- package/dist/loader-BktwkYhG.mjs +1 -0
- package/dist/{open-browser-B5KfPH4H.mjs → open-browser-CPSoIF8R.mjs} +2 -2
- package/dist/{preview-yptAXY9Q.mjs → preview-BBQwe-gv.mjs} +2 -2
- package/dist/preview-C317XX3v.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-DIN900Tw.js → ActivityModeContent-tdDE-61j.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-ZO7IAXY4.js → CodeMirrorPropInput-DNVWCpb0.js} +2 -2
- package/dist/public/assets/DocumentContext-Dc9Bp6oO.js +36 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-CDm2rW8c.js → EnableSyncConfirmDialog-BRji_vuj.js} +1 -1
- package/dist/public/assets/{GraphPanel-BSBoTUuF.js → GraphPanel-cScfZ2Kh.js} +9 -9
- package/dist/public/assets/ManagedArtifactProperties-_bcR56Re.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-DZr8d0vu.js → McpConsentDialogBody-pimma18E.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-DqKOZzfV.js → MermaidDocEditor-Bm909VrA.js} +1 -1
- package/dist/public/assets/PropertyPanel-CvVf4BX_.js +2 -0
- package/dist/public/assets/{SettingsDialogBody-ILc_zuoi.js → SettingsDialogBody-DUbN9FMx.js} +3 -3
- package/dist/public/assets/{ShareBranchSwitchDialog-Dv66XosJ.js → ShareBranchSwitchDialog-nDcQbyjK.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DcJrhi3C.js → ShareReceiveDialog-Bi91UHeB.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-8AKkkTF9.js → ShareReceiveMissDialog-Cr-lyfq3.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-D7GmHyae.js → SkillEditorActions-COoshjEA.js} +1 -1
- package/dist/public/assets/{SourceEditor-F7MHMYDQ.js → SourceEditor-CmecCLss.js} +1 -1
- package/dist/public/assets/{TerminalPanel-Z0XhL8rx.js → TerminalPanel-C8Yoxppo.js} +3 -3
- package/dist/public/assets/{agent-presence-Bf_k8RmI.js → agent-presence-BgZw7jcH.js} +1 -1
- package/dist/public/assets/{auth-state-cache-Ck3G6jUi.js → auth-state-cache-DewLLWl7.js} +4 -4
- package/dist/public/assets/config-provider-CPU__wB0.js +4 -0
- package/dist/public/assets/{dist-LUHivJAB.js → dist-BJTNIx2m.js} +1 -1
- package/dist/public/assets/{dist-BmgoHUkm.js → dist-DwvfOBE4.js} +107 -107
- package/dist/public/assets/{doc-hash-W5LZeE0c.js → doc-hash-BtUMDwMU.js} +1 -1
- package/dist/public/assets/{documents-events-CijCy-Sc.js → documents-events-DrrEYmNa.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-Bjoeiw_B.js → file-tree-adapter-BiXhoQNr.js} +1 -1
- package/dist/public/assets/{index-BpZF8EJT.js → index-BDOi3sKE.js} +94 -94
- package/dist/public/assets/index-Bai-YKSb.css +1 -0
- package/dist/public/assets/{keyboard-shortcuts-DDw4HRe3.js → keyboard-shortcuts-CH4qhzpw.js} +1 -1
- package/dist/public/assets/{navigation-targets-V0noaD6h.js → navigation-targets-C8x96muf.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-_d-k5W-o.js → open-managed-artifact-tab-C7sLBkCv.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-Cqe-Gc-y.js → pending-receive-nav-store-D83rXcWH.js} +1 -1
- package/dist/public/assets/{prop-types-DK0zwiLA.js → prop-types-589M92VT.js} +1 -1
- package/dist/public/assets/{receive-store-DIQKaDkz.js → receive-store-DUmQ9Q7m.js} +1 -1
- package/dist/public/assets/{selection-context-D7Vmm-jV.js → selection-context-D_zj8y90.js} +1 -1
- package/dist/public/assets/skill-actions-DbGgyPDT.js +1 -0
- package/dist/public/assets/{skills-api-FVkz2ZvD.js → skills-api-DULTMJrv.js} +1 -1
- package/dist/public/assets/{src-BfQVXkAq.js → src-DReJgyBg.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-BF4mAnMq.js → target-navigation-intent-BrbTHf_2.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-D0BBhVWB.js → typing-burst-detector-BCt9a4xO.js} +1 -1
- package/dist/public/assets/{workspace-paths-B1R7zp-q.js → workspace-paths-AsbfFKxa.js} +1 -1
- package/dist/public/index.html +26 -26
- package/dist/{repair-launch-json-DJL0xXvL.mjs → repair-launch-json-Du0EU3Si.mjs} +2 -2
- package/dist/{repair-mcp-configs-DsGk5WD7.mjs → repair-mcp-configs-DCP-rfpP.mjs} +2 -2
- package/dist/repair-skills-BDe9l22O.mjs +1 -0
- package/dist/{repair-skills-wFFbPc3w.mjs → repair-skills-DuNm-kMp.mjs} +2 -2
- package/dist/schemas/v0/config.project-local.schema.json +17 -0
- package/dist/server-lock-GuuouVft-CO_sPVNi.mjs +1 -0
- package/dist/{server-lock-iLcBw_q0-CEih6ZHm.mjs → server-lock-iLcBw_q0-nWzkxbfg.mjs} +17 -17
- package/dist/{src-DHfQops5.mjs → src-B9TNCBdI.mjs} +2 -2
- package/dist/{start-r9b4OB7D.mjs → start-Dld0QqQ2.mjs} +2 -2
- package/dist/start-rypz41-s.mjs +1 -0
- package/dist/{write-project-skill-CAZzOEUh.mjs → write-project-skill-DyoxYjJB.mjs} +2 -2
- package/package.json +1 -1
- package/dist/constants-DK10Qbwz.mjs +0 -2
- package/dist/dist-D-bO1Mlq.mjs +0 -1
- package/dist/init-BGGQ3ing.mjs +0 -1
- package/dist/loader-pzsmJGfG.mjs +0 -1
- package/dist/preview-GYvJ1m2X.mjs +0 -1
- package/dist/public/assets/DocumentContext-yguu7wL1.js +0 -35
- package/dist/public/assets/ManagedArtifactProperties-DCr0fsi-.js +0 -1
- package/dist/public/assets/PropertyPanel-C_ExYapZ.js +0 -2
- package/dist/public/assets/config-provider-CQL47dca.js +0 -4
- package/dist/public/assets/index-A8hej5b5.css +0 -1
- package/dist/public/assets/skill-actions-C3jnKy6a.js +0 -1
- package/dist/repair-skills-UdFUgcgx.mjs +0 -1
- package/dist/server-lock-GuuouVft-CPaJpyJ7.mjs +0 -1
- package/dist/start-esyH-MiN.mjs +0 -1
package/dist/public/assets/{typing-burst-detector-D0BBhVWB.js → typing-burst-detector-BCt9a4xO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CFjPhJqf.js";import{n as t,r as n,t as r}from"./compiler-runtime-CVnuRdak.js";import{n as i}from"./DocumentContext-
|
|
1
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{n as t,r as n,t as r}from"./compiler-runtime-CVnuRdak.js";import{n as i}from"./DocumentContext-Dc9Bp6oO.js";import{n as a,r as o}from"./dist-CQw2y-s3.js";import{a as s,c,i as ee,n as te,o as l,r as ne,s as u,t as re,u as ie}from"./panel-HcGnbQ9h.js";import{u as ae}from"./createLucideIcon-BPhNPfG7.js";import{B as d,I as f}from"./CodeMirrorPropInput-DNVWCpb0.js";import{Dr as p,Xn as oe,it as m,st as h}from"./dist-DwvfOBE4.js";import{i as se}from"./prop-types-589M92VT.js";import{t as g}from"./dist-Bvqpz5aH.js";import{i as _}from"./startup-marks-DdXX18dm.js";var v=e(t(),1),y=r(),b=new Map;function x(e,t){b.set(e,t)}function S(e){let t=b.get(e)??null;return b.delete(e),t}function C(e){b.delete(e)}function w(e,t){let n=(0,y.c)(4),r=t===void 0?!1:t,[i,a]=(0,v.useState)(void 0),o=(0,v.useRef)(null),s,c;return n[0]!==r||n[1]!==e?(s=()=>{if(r||e.length===0){a(void 0);return}let t=function(){let t=window.innerHeight/2,n,r;for(let i of e){let e=document.getElementById(i);if(!e)continue;let a=e.getBoundingClientRect().top;a<0?n=i:r===void 0&&a<t&&(r=i)}a(r??n??e[0])},n=function(){o.current===null&&(o.current=requestAnimationFrame(()=>{o.current=null,t()}))};return document.addEventListener(`scroll`,n,{capture:!0,passive:!0}),t(),()=>{document.removeEventListener(`scroll`,n,{capture:!0}),o.current!==null&&(cancelAnimationFrame(o.current),o.current=null)}},c=[e,r],n[0]=r,n[1]=e,n[2]=s,n[3]=c):(s=n[2],c=n[3]),(0,v.useEffect)(s,c),i}var T=n(),ce=300;async function le(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new d(g._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=h.safeParse(n);throw e.success?Error(e.data.title):new d(g._({id:`zlErBl`}),{status:t.status})}let r=m.safeParse(n);if(!r.success)throw new d(g._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var E=32,D=12,O=6,k=`open-knowledge:outline-nav`;function A(e){let t=(0,y.c)(2),n;return t[0]===e?n=t[1]:(n=(0,T.jsx)(_,{name:`outline-panel`,children:(0,T.jsx)(j,{...e})}),t[0]=e,t[1]=n),n}function j(e){let t=(0,y.c)(50),{docName:n,isSourceMode:r,className:d}=e,f=d===void 0?``:d,{_:p}=o(),{pages:m,loading:h}=se(),g=ie(),{activeProvider:_,activeDocName:b}=i(),S,C;t[0]===n?(S=t[1],C=t[2]):(S=[`page-headings`,n],C=()=>le(n),t[0]=n,t[1]=S,t[2]=C);let A;t[3]!==n||t[4]!==h||t[5]!==m?(A=!h&&(m.has(n)||oe(n)),t[3]=n,t[4]=h,t[5]=m,t[6]=A):A=t[6];let j;t[7]!==S||t[8]!==C||t[9]!==A?(j={queryKey:S,queryFn:C,enabled:A,staleTime:1/0},t[7]=S,t[8]=C,t[9]=A,t[10]=j):j=t[10];let{data:N,isLoading:P,error:F}=c(j),I;t[11]===N?I=t[12]:(I=N===void 0?[]:N,t[11]=N,t[12]=I);let L=I,R,z;t[13]!==b||t[14]!==_||t[15]!==n||t[16]!==g?(R=()=>{if(!_||b!==n)return;let e=_.document,t=null,r=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,g.invalidateQueries({queryKey:[`page-headings`,n]})},ce)};return e.on(`update`,r),()=>{e.off(`update`,r),t!==null&&clearTimeout(t)}},z=[_,b,n,g],t[13]=b,t[14]=_,t[15]=n,t[16]=g,t[17]=R,t[18]=z):(R=t[17],z=t[18]),(0,v.useEffect)(R,z);let B;t[19]===L?B=t[20]:(B=L.map(M),t[19]=L,t[20]=B);let V=w(B,r),H;t[21]!==V||t[22]!==L?(H=V?L.findIndex(e=>e.slug===V):-1,t[21]=V,t[22]=L,t[23]=H):H=t[23];let U=H,W;t[24]!==n||t[25]!==r?(W=function(e,t){let i={index:e,slug:t,mode:r?`source`:`wysiwyg`};i.mode===`source`&&x(n,{kind:`outline`,detail:i}),window.dispatchEvent(new CustomEvent(k,{detail:i}))},t[24]=n,t[25]=r,t[26]=W):W=t[26];let G=W,K=((U>=0?L[U].level:1)-1)*D+(D-O)/2,q=U*E+(E-O)/2,J;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,T.jsx)(u,{children:(0,T.jsx)(a,{id:`dD7NPy`})}),t[27]=J):J=t[27];let Y;t[28]!==L.length||t[29]!==P?(Y=!P&&(0,T.jsx)(ne,{children:L.length}),t[28]=L.length,t[29]=P,t[30]=Y):Y=t[30];let X;t[31]===Y?X=t[32]:(X=(0,T.jsxs)(l,{children:[J,Y]}),t[31]=Y,t[32]=X);let Z;t[33]!==p||t[34]!==U||t[35]!==V||t[36]!==F||t[37]!==G||t[38]!==L||t[39]!==P||t[40]!==K||t[41]!==q?(Z=F?(0,T.jsx)(s,{className:`px-2`,children:F instanceof Error?F.message:p({id:`GuqOb1`})}):L.length===0&&!P?(0,T.jsx)(ee,{className:`px-2`,children:(0,T.jsx)(a,{id:`0BB9ID`})}):(0,T.jsxs)(`nav`,{"aria-label":p({id:`BymzO4`}),className:`relative`,children:[U>=0&&(0,T.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-0 top-0 rounded-full bg-primary motion-safe:[transition:transform_0.25s_var(--ease-out-strong)]`,style:{width:O,height:O,transform:`translate(${K}px, ${q}px)`}}),L.map((e,t)=>{let n=e.slug===V;return(0,T.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>G(t,e.slug),className:ae(`w-full cursor-pointer truncate py-1.5 pe-2 text-left text-sm transition-colors`,n?`font-medium text-primary`:`text-muted-foreground hover:text-foreground`),style:{paddingLeft:`${(e.level-1)*D+20}px`},title:e.text,children:e.text},t)})]}),t[33]=p,t[34]=U,t[35]=V,t[36]=F,t[37]=G,t[38]=L,t[39]=P,t[40]=K,t[41]=q,t[42]=Z):Z=t[42];let Q;t[43]!==P||t[44]!==Z?(Q=(0,T.jsx)(te,{className:`px-3 py-2`,"aria-busy":P,children:Z}),t[43]=P,t[44]=Z,t[45]=Q):Q=t[45];let $;return t[46]!==f||t[47]!==X||t[48]!==Q?($=(0,T.jsxs)(re,{className:f,children:[X,Q]}),t[46]=f,t[47]=X,t[48]=Q,t[49]=$):$=t[49],$}function M(e){return e.slug}var N={words:0,chars:0,tokens:0},P=/[ -〿-ゟ゠-ヿ㐀-䶿一-鿿豈---ក-]/,F=/[\p{L}\p{N}]/u,I=new Set([`text`,`inlineCode`,`code`,`tag`]),L=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),R=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function z(e,t){if(!e)return;let n=e.type;if(!L.has(n)){if(I.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
|
|
2
2
|
`));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)z(n,t);if(R.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
|
|
3
3
|
`)&&t.push(`
|
|
4
4
|
`)}}}}function B(e){try{let t=f().parseToMdast(e),n=[];return z(t,n),n.join(``).trim()}catch(t){return console.warn(`[document-stats] mdast parse failed, falling back to raw text`,t),e.trim()}}function V(e){if(!e)return 0;let t=0;for(let n of e.split(/\s+/))F.test(n)&&t++;return t}function H(e){let t=globalThis.Intl.Segmenter;if(!t)return V(e);let n=new t(void 0,{granularity:`word`}),r=0;for(let t of n.segment(e))t.isWordLike&&r++;return r}function U(e){let t=P.test(e)?1.5:4;return Math.ceil(e.length/t)}function W(e){return e?{words:P.test(e)?H(e):V(e),chars:e.length,tokens:U(e)}:{words:0,chars:0,tokens:0}}function G(e){if(!e)return{words:0,chars:0,tokens:0};let{body:t}=p(e);return t.trim()?W(B(t)):{words:0,chars:0,tokens:0}}function K(e,{isMarkdown:t}){let n=e.trim();return n?W(t?B(e):n):N}var q=new Map,J=new Set,Y=(e,t)=>`${t}:${e}`;function X(){for(let e of J)e()}function Z(e,t,n){let r=Y(e,t);if(n===null){q.delete(r)&&X();return}let i=q.get(r);i&&i.words===n.words&&i.chars===n.chars&&i.tokens===n.tokens||(q.set(r,n),X())}function Q(e,t){return e===null?null:q.get(Y(e,t))??null}function $(e){return J.add(e),()=>{J.delete(e)}}function ue(e){let{from:t,to:n,empty:r}=e.state.selection;if(r)return null;let i=e.state.doc.textBetween(t,n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CFjPhJqf.js";import{n as t}from"./compiler-runtime-CVnuRdak.js";import{r as n}from"./dist-CQw2y-s3.js";import{t as r}from"./createLucideIcon-BPhNPfG7.js";import{
|
|
1
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{n as t}from"./compiler-runtime-CVnuRdak.js";import{r as n}from"./dist-CQw2y-s3.js";import{t as r}from"./createLucideIcon-BPhNPfG7.js";import{hn as i}from"./dist-DwvfOBE4.js";var a=r(`copy-plus`,[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),o=r(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),s=r(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),c=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),l=[`global`,`project`];function u(e){return{project:new Set(e.filter(e=>e.scope===`project`).map(e=>e.name)),global:new Set(e.filter(e=>e.scope===`global`).map(e=>e.name))}}var d=`open-knowledge-pack-`;function f(e){return e.startsWith(d)?e.slice(20):e}function p(){let{_:e}=n();return{project:e({id:`e0NrBM`}),global:e({id:`2GT3Hf`})}}function m(){let{_:e}=n();return{project:e({id:`HyvSqq`}),global:e({id:`C7XjNB`})}}var h=e(t(),1);function g(){let[e]=(0,h.useState)(_);return e}function _(){return i()!=null}function v(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var y=/\.(md|mdx)$/i;function b(e){return y.test(e)?e:`${e}.md`}export{f as a,m as c,o as d,a as f,l as i,c as l,v as n,u as o,g as r,p as s,b as t,s as u};
|
package/dist/public/index.html
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
-->
|
|
49
49
|
<script>(() => { let t = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (r === 'light' || r === 'dark' || r === 'system') t = r; } catch {} let dark = t === 'dark'; if (t === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } if (dark) document.documentElement.classList.add('dark'); if (window.okDesktop) document.documentElement.classList.add('electron-mode'); })();</script>
|
|
50
50
|
<style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
|
|
51
|
-
<script type="module" crossorigin src="./assets/index-
|
|
51
|
+
<script type="module" crossorigin src="./assets/index-BDOi3sKE.js"></script>
|
|
52
52
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CFjPhJqf.js">
|
|
53
53
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-2ej06EnG.js">
|
|
54
54
|
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-VSld09PZ.js">
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
<link rel="modulepreload" crossorigin href="./assets/stex-C0Jw9RbH.js">
|
|
65
65
|
<link rel="modulepreload" crossorigin href="./assets/floating-ui.dom-B3TJy2Tg.js">
|
|
66
66
|
<link rel="modulepreload" crossorigin href="./assets/trace-api-DN18ByDo.js">
|
|
67
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
67
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DwvfOBE4.js">
|
|
68
68
|
<link rel="modulepreload" crossorigin href="./assets/compiler-runtime-CVnuRdak.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="./assets/dist-BVOt51sU.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/config-context-GBTLA0Td.js">
|
|
71
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
71
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-CPU__wB0.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/dist-Bvqpz5aH.js">
|
|
73
73
|
<link rel="modulepreload" crossorigin href="./assets/dist-CQw2y-s3.js">
|
|
74
74
|
<link rel="modulepreload" crossorigin href="./assets/createLucideIcon-BPhNPfG7.js">
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
<link rel="modulepreload" crossorigin href="./assets/trash-2-410fw8eF.js">
|
|
78
78
|
<link rel="modulepreload" crossorigin href="./assets/triangle-alert-Bo8gNh02.js">
|
|
79
79
|
<link rel="modulepreload" crossorigin href="./assets/react-dom-C-oc-P2K.js">
|
|
80
|
-
<link rel="modulepreload" crossorigin href="./assets/doc-hash-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-
|
|
80
|
+
<link rel="modulepreload" crossorigin href="./assets/doc-hash-BtUMDwMU.js">
|
|
81
|
+
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-C8x96muf.js">
|
|
82
82
|
<link rel="modulepreload" crossorigin href="./assets/external-link-PPmVWR7S.js">
|
|
83
83
|
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-D9Azkuau.js">
|
|
84
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
86
|
-
<link rel="modulepreload" crossorigin href="./assets/documents-events-
|
|
84
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-DNVWCpb0.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-BJTNIx2m.js">
|
|
86
|
+
<link rel="modulepreload" crossorigin href="./assets/documents-events-DrrEYmNa.js">
|
|
87
87
|
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-D_SUnYAN.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-
|
|
88
|
+
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-C7sLBkCv.js">
|
|
89
89
|
<link rel="modulepreload" crossorigin href="./assets/dist-BhVkC6Rc.js">
|
|
90
90
|
<link rel="modulepreload" crossorigin href="./assets/dist-D-nYc0c5.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="./assets/dist-CCW5cnWo.js">
|
|
@@ -102,47 +102,47 @@
|
|
|
102
102
|
<link rel="modulepreload" crossorigin href="./assets/chevron-right-C6588edp.js">
|
|
103
103
|
<link rel="modulepreload" crossorigin href="./assets/circle-alert-sOrK-E2e.js">
|
|
104
104
|
<link rel="modulepreload" crossorigin href="./assets/startup-marks-DdXX18dm.js">
|
|
105
|
-
<link rel="modulepreload" crossorigin href="./assets/prop-types-
|
|
106
|
-
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-
|
|
105
|
+
<link rel="modulepreload" crossorigin href="./assets/prop-types-589M92VT.js">
|
|
106
|
+
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-AsbfFKxa.js">
|
|
107
107
|
<link rel="modulepreload" crossorigin href="./assets/eye-W_Da58Av.js">
|
|
108
108
|
<link rel="modulepreload" crossorigin href="./assets/info-p7xnknfW.js">
|
|
109
109
|
<link rel="modulepreload" crossorigin href="./assets/loader-circle-Cu01Ckhe.js">
|
|
110
110
|
<link rel="modulepreload" crossorigin href="./assets/dist-K3kyyBcW.js">
|
|
111
111
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-rename-validation-DEJ31Vcw.js">
|
|
112
112
|
<link rel="modulepreload" crossorigin href="./assets/input-DBQZgTXT.js">
|
|
113
|
-
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-
|
|
113
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-Dc9Bp6oO.js">
|
|
114
114
|
<link rel="modulepreload" crossorigin href="./assets/checkbox-09LNjybZ.js">
|
|
115
115
|
<link rel="modulepreload" crossorigin href="./assets/dist-DlBs2Z86.js">
|
|
116
|
-
<link rel="modulepreload" crossorigin href="./assets/skills-api-
|
|
116
|
+
<link rel="modulepreload" crossorigin href="./assets/skills-api-DULTMJrv.js">
|
|
117
117
|
<link rel="modulepreload" crossorigin href="./assets/label-BpH34DoN.js">
|
|
118
118
|
<link rel="modulepreload" crossorigin href="./assets/radio-group-CkH5F_ZT.js">
|
|
119
|
-
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-
|
|
119
|
+
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-BRji_vuj.js">
|
|
120
120
|
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-Vg7lRNno.js">
|
|
121
121
|
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-C9i-ShKk.js">
|
|
122
122
|
<link rel="modulepreload" crossorigin href="./assets/cursor-CouJSC9c.js">
|
|
123
123
|
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-BscVzpz1.js">
|
|
124
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-actions-
|
|
124
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-actions-DbGgyPDT.js">
|
|
125
125
|
<link rel="modulepreload" crossorigin href="./assets/textarea-BBYgAifm.js">
|
|
126
|
-
<link rel="modulepreload" crossorigin href="./assets/keyboard-shortcuts-
|
|
127
|
-
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-
|
|
126
|
+
<link rel="modulepreload" crossorigin href="./assets/keyboard-shortcuts-CH4qhzpw.js">
|
|
127
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-DewLLWl7.js">
|
|
128
128
|
<link rel="modulepreload" crossorigin href="./assets/toggle-group-B_aSxEq-.js">
|
|
129
129
|
<link rel="modulepreload" crossorigin href="./assets/panel-HcGnbQ9h.js">
|
|
130
130
|
<link rel="modulepreload" crossorigin href="./assets/format-ReH7V0UD.js">
|
|
131
|
-
<link rel="modulepreload" crossorigin href="./assets/selection-context-
|
|
132
|
-
<link rel="modulepreload" crossorigin href="./assets/PropertyPanel-
|
|
131
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-D_zj8y90.js">
|
|
132
|
+
<link rel="modulepreload" crossorigin href="./assets/PropertyPanel-CvVf4BX_.js">
|
|
133
133
|
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-DxVemLe3.js">
|
|
134
|
-
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-
|
|
134
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-D83rXcWH.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/chevron-left-SSPDkqEW.js">
|
|
136
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-presence-
|
|
137
|
-
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-
|
|
136
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-presence-BgZw7jcH.js">
|
|
137
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-BCt9a4xO.js">
|
|
138
138
|
<link rel="modulepreload" crossorigin href="./assets/project-paths-Bg2cu_Xr.js">
|
|
139
|
-
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-
|
|
140
|
-
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-
|
|
139
|
+
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-BiXhoQNr.js">
|
|
140
|
+
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-BrbTHf_2.js">
|
|
141
141
|
<link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-3q0L29vA.js">
|
|
142
|
-
<link rel="modulepreload" crossorigin href="./assets/receive-store-
|
|
142
|
+
<link rel="modulepreload" crossorigin href="./assets/receive-store-DUmQ9Q7m.js">
|
|
143
143
|
<link rel="modulepreload" crossorigin href="./assets/worktree-store-CLuGV1SL.js">
|
|
144
144
|
<link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
|
|
145
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
145
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Bai-YKSb.css">
|
|
146
146
|
</head>
|
|
147
147
|
|
|
148
148
|
<body class="antialiased">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./launch-json-removal-
|
|
2
|
-
//# sourceMappingURL=repair-launch-json-
|
|
1
|
+
import{t as e}from"./launch-json-removal-TcMw8bt1.mjs";import{join as t}from"node:path";function n(n){let i=n.logger??r,a=t(n.projectDir,`.claude`,`launch.json`);if(n.reclaimDisableEnv===`1`)return i({event:`launch-json-repair-skipped`,reason:`reclaim-disabled`}),{outcome:{configPath:a,outcome:`skipped-reclaim-disabled`},repairedCount:0};let o;try{o=e(n.projectDir)}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`launch-json-repair-write-failed`,configPath:a}),{outcome:{configPath:a,outcome:`write-failed`,error:t},repairedCount:0}}let s=o.kind===`removed`||o.kind===`removed-file`;return s&&i({event:`launch-json-repair-removed`,configPath:a}),{outcome:{configPath:a,outcome:o.kind},repairedCount:s?1:0}}function r(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{n as repairLaunchJson};
|
|
2
|
+
//# sourceMappingURL=repair-launch-json-Du0EU3Si.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,v as t}from"./init-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{d as e,v as t}from"./init-CWVdQeQP.mjs";import{_ as n,d as r,s as i}from"./write-project-skill-DyoxYjJB.mjs";import{t as a}from"./mcp-migrate-event-CyH1VVyy.mjs";import{homedir as o}from"node:os";function s(e){let t=e.logger??u,n=e.home??o(),a=[];if(e.reclaimDisableEnv===`1`)return t({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of i){let i=r[o],s=c(()=>i.configPath(``,n));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:i,home:n,cwd:``,configPath:s,configPathOverride:void 0,logger:t})),i.projectConfigPath){let n=i.projectConfigPath,r=c(()=>n(e.projectDir));r!==null&&a.push(l({scope:`project`,editorId:o,target:i,home:void 0,cwd:e.projectDir,configPath:r,configPathOverride:r,logger:t}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(r){let i={scope:r.scope,editorId:r.editorId,configPath:r.configPath},o=e(r.target,r.cwd,r.home,r.configPathOverride);if(o===null)return{...i,outcome:`no-entry`};if(n(o))return{...i,outcome:`canonical`};r.logger(a({scope:r.scope,surface:`cli-repair`,editorId:r.editorId,configPath:r.configPath,priorEntry:o}));let s=t(r.target,r.cwd,{mode:`published`,skipAvailabilityCheck:!0},r.home,r.configPathOverride);if(s.action===`failed`){let e=s.error??`unknown write failure`;return r.logger({event:`mcp-config-repair-write-failed`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,error:e}),{...i,outcome:`write-failed`,error:e}}return s.action===`declined`?(r.logger({event:`mcp-config-repair-declined`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,reason:s.declineReason}),{...i,outcome:`declined`}):{...i,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
|
|
2
|
+
//# sourceMappingURL=repair-mcp-configs-DCP-rfpP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-DuNm-kMp.mjs";export{e as repairSkills};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ha as e}from"./server-lock-iLcBw_q0-nWzkxbfg.mjs";import{Gr as t,Ir as n,Pr as r,Vr as i,Zr as a,aa as o,d as s,lt as c,ta as l}from"./dist-Pe1Q8dMj.mjs";import{t as u}from"./esm-CsQUg9js.mjs";import{a as d,d as f,f as p,t as m}from"./write-project-skill-DyoxYjJB.mjs";import{dirname as h,join as g,resolve as _}from"node:path";import{homedir as v}from"node:os";import{existsSync as y,mkdirSync as b,readFileSync as x,readdirSync as S,rmSync as C,statSync as w,writeFileSync as T}from"node:fs";const E={existsSync:e=>y(e),isDirectory:e=>{try{return w(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>S(e),readFileSync:e=>x(e),writeFileSync:(e,t)=>{T(e,t)},mkdirSync:(e,t)=>{b(e,t)},rmSync:(e,t)=>{C(e,t)}},D={resolveProjectBundledSkillDir:()=>a(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>a(e,{checkDesktop:!1}),readBundledVersion:()=>n(),readRecordedVersion:e=>i(e,`cli-hosts`),writeRecordedVersion:(e,t)=>o(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>t(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,t,n)=>l(e,t,n),removeBundleFromDisk:(e,t)=>d(e,t)};function O(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function k(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(h(t),{recursive:!0}),A(e,t,n)}function A(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=g(e,r),a=g(t,r);n.isDirectory(i)?A(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function j(e,t,n,r,i,a){let o=[],s=g(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{k(n,s,r),l=!0,o.push({kind:`central`,path:s,outcome:c?`overwritten`:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:c,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=g(e,c.hostDir),u=g(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}let d=r.existsSync(u);try{k(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:d?`overwritten`:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:d,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:l}}function M(e,t){if(!e)return!1;try{if(!t.existsSync(e))return!1;let n=t.readFileSync(e).toString(`utf8`);return n.includes(`# ok-mcp-v1`)||n.includes(`# ok-mcp-win-v1`)}catch{return!1}}function N(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=g(e,t.hostDir,`skills`,`open-knowledge`),s=g(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&M(l,n);if(!c&&!u){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{m(o,e),k(i,o,n);let s=c?`reclaimed`:`created`;a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:s}),r({event:c?`project-skill-reclaim-reclaimed`:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function P(t,n,r,i){let a=e=>{n.recordEvent(e).catch(()=>{})},o=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),a({ts:o(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){i({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of c)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return i({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),a({ts:o(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let a of d){let o=s[a.id],c=r.existsSync(g(t,`.agents`,`skills`,o)),l=await n.readBundleDecision(t,o).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,a.id),i({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:a.id})}catch(e){i({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,o,!0)}catch(e){i({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}p.push(a)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(g(t,`.agents`,`skills`,s[e.id])));if(u!==null&&u===l&&m)return i({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],_=d.length===c.length,v=!0;for(let{id:e,sourceDir:n}of p){let a=j(t,s[e],n,r,i,l);h.push(...a.entries),a.centralWritten||(v=!1)}let y=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(_&&v&&y){let e=null;try{await n.writeRecordedVersion(t,l),i({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),i({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t}of p)a({ts:o(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);a({ts:o(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:l,entries:h}}async function F(e){let t=e.logger??O,n=e.fs??E,r=e.home??v(),i={...D,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:N(e.projectDir,i,n,t),user:await P(r,i,n,t)}}function I(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function L(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
|
|
2
2
|
`)}function R(){return new u(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").action(async()=>{let e=await F({projectDir:_(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${L(e)}\n`),process.exitCode=I(e)})}export{R as n,F as t};
|
|
3
|
-
//# sourceMappingURL=repair-skills-
|
|
3
|
+
//# sourceMappingURL=repair-skills-DuNm-kMp.mjs.map
|
|
@@ -180,6 +180,23 @@
|
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
"additionalProperties": {}
|
|
183
|
+
},
|
|
184
|
+
"linkPreviews": {
|
|
185
|
+
"default": {
|
|
186
|
+
"enabled": false
|
|
187
|
+
},
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"enabled": {
|
|
191
|
+
"default": false,
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"scope": "project-local",
|
|
194
|
+
"agentSettable": false,
|
|
195
|
+
"defaultScope": "project-local",
|
|
196
|
+
"description": "Show a rich preview card (site name, page title, description, favicon) when you hover an external link in the editor. When ON, hovering an external link sends that link's URL to the destination site to fetch its preview metadata — outbound egress, one request per previewed link. Default OFF. Per-machine (project-local) — not shared with collaborators. Previews of links to other documents in this project are read from the local index with no network request and are always on."
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"additionalProperties": {}
|
|
183
200
|
}
|
|
184
201
|
},
|
|
185
202
|
"additionalProperties": {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,f as t,y as n}from"./server-lock-iLcBw_q0-nWzkxbfg.mjs";export{t as markServerLockDraining,e as releaseServerLock,n as updateServerLockPort};
|