@inkeep/open-knowledge 0.43.0-beta.4 → 0.43.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.
Files changed (122) hide show
  1. package/dist/{acp-harness-probe-C29TtpFg.mjs → acp-harness-probe-lMMnSjqP.mjs} +2 -2
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/assets/skills/write-skill/SKILL.md +1 -1
  5. package/dist/cli.mjs +49 -49
  6. package/dist/constants-DI_gr5ih.mjs +2 -0
  7. package/dist/{git-handle-0K5bXuUv.mjs → git-handle-B0U6AD0P.mjs} +2 -2
  8. package/dist/git-handle-CAmPAeqb.mjs +1 -0
  9. package/dist/index.mjs +1 -1
  10. package/dist/{init-DtjPtze9.mjs → init-CirugI37.mjs} +3 -3
  11. package/dist/init-CxiSUQf2.mjs +1 -0
  12. package/dist/{launch-json-removal-CV_EUvf8.mjs → launch-json-removal-BZnOXYQ-.mjs} +2 -2
  13. package/dist/loader-BbtvxjVj.mjs +1 -0
  14. package/dist/{loader-Ctk_4chy.mjs → loader-C3d0s2-M.mjs} +2 -2
  15. package/dist/md-manager-CSd1MWq_.mjs +2 -0
  16. package/dist/{open-browser-Cc2LbDpE.mjs → open-browser-BrU96UMi.mjs} +2 -2
  17. package/dist/parse-worker.mjs +1 -1
  18. package/dist/{preview-CXgePDni.mjs → preview-BL2u7TEI.mjs} +2 -2
  19. package/dist/preview-CPdu4CHM.mjs +1 -0
  20. package/dist/public/assets/{ActivityModeContent-BO0ca8eq.js → ActivityModeContent-CZvf7vaT.js} +1 -1
  21. package/dist/public/assets/{AgentDiffPane-V2iLRBtO.js → AgentDiffPane-srNk6utW.js} +1 -1
  22. package/dist/public/assets/{AgentThreadClientBinder-CZAUfo3B.js → AgentThreadClientBinder-B_xu_F7T.js} +1 -1
  23. package/dist/public/assets/{CodeMirrorPropInput-BLK9R867.js → CodeMirrorPropInput-BkZa8s6u.js} +2 -2
  24. package/dist/public/assets/DocumentContext-_HmmdzDY.js +38 -0
  25. package/dist/public/assets/{EditorModeToggle-DddZKvDr.js → EditorModeToggle-CYYxR5D6.js} +1 -1
  26. package/dist/public/assets/{EnableSyncConfirmDialog-B90yUF0U.js → EnableSyncConfirmDialog-70LUF0BM.js} +1 -1
  27. package/dist/public/assets/FeedbackForm-Dpnyx8Bz.js +1 -0
  28. package/dist/public/assets/{GraphPanel-DR7F40NO.js → GraphPanel-Cpyav3kr.js} +1 -1
  29. package/dist/public/assets/LintConfigEditor-C235lTrG.js +1 -0
  30. package/dist/public/assets/{ManagedArtifactProperties-BR9c9CMw.js → ManagedArtifactProperties-xdcG7g6i.js} +1 -1
  31. package/dist/public/assets/{McpConsentDialogBody-Cp2diEY-.js → McpConsentDialogBody-CBP-q0Ps.js} +1 -1
  32. package/dist/public/assets/{MermaidDocEditor-CmqbkkkT.js → MermaidDocEditor-CBlxkKRh.js} +1 -1
  33. package/dist/public/assets/{PropertyPanel-DngwQ5B6.js → PropertyPanel-CyKA9aT3.js} +1 -1
  34. package/dist/public/assets/{ReportBugDialogBody-SE8y_5JJ.js → ReportBugDialogBody-BNPoUjQC.js} +1 -1
  35. package/dist/public/assets/{SchemaConfigEditor-Wf9EcJyx.js → SchemaConfigEditor-SNtb0-ip.js} +1 -1
  36. package/dist/public/assets/{SettingsDialogBody-ld6RZ6z0.js → SettingsDialogBody-BUm5bI4O.js} +1 -1
  37. package/dist/public/assets/{ShareBranchSwitchDialog-BhpdFPhB.js → ShareBranchSwitchDialog-DAdfkMmL.js} +1 -1
  38. package/dist/public/assets/{ShareReceiveDialog-BjLjRQLF.js → ShareReceiveDialog-D6W2uERu.js} +1 -1
  39. package/dist/public/assets/{ShareReceiveMissDialog-DrKVsCbl.js → ShareReceiveMissDialog-y0j89UFf.js} +1 -1
  40. package/dist/public/assets/{SkillEditorActions-BvixdvJz.js → SkillEditorActions-CEwn16Tc.js} +1 -1
  41. package/dist/public/assets/SourceEditor-gJWLMSB0.js +1 -0
  42. package/dist/public/assets/{TerminalPanel-BPpr1BLq.js → TerminalPanel-B1gBGZxV.js} +1 -1
  43. package/dist/public/assets/{TerminalSessionsHost-CTgtneAy.js → TerminalSessionsHost-DzxIw4MP.js} +2 -2
  44. package/dist/public/assets/{TerminalWindowApp-BZmQ1Iuk.js → TerminalWindowApp-BHIljFR0.js} +1 -1
  45. package/dist/public/assets/{ThreadView-B4be_-pW.js → ThreadView-B-R_hzDk.js} +3 -3
  46. package/dist/public/assets/{TimelineDiffPane-axMRctYB.js → TimelineDiffPane-Be0SpZDg.js} +1 -1
  47. package/dist/public/assets/{agent-diff-store-DcigMIWV.js → agent-diff-store-L0QRqFhx.js} +1 -1
  48. package/dist/public/assets/{agent-visibility-hcnW3ePC.js → agent-visibility-CL_tNGWg.js} +1 -1
  49. package/dist/public/assets/{auth-state-cache-9XP-_-7q.js → auth-state-cache-l1Vfn_MK.js} +1 -1
  50. package/dist/public/assets/client-version-D6r-zu-F.js +1 -0
  51. package/dist/public/assets/{config-provider-D_pm5JRC.js → config-provider-CwPQy5rX.js} +1 -1
  52. package/dist/public/assets/{dist-DQ935rCy.js → dist-CuWeCBEf.js} +1 -1
  53. package/dist/public/assets/{doc-hash-B6EHixE8.js → doc-hash-BVKebTVG.js} +1 -1
  54. package/dist/public/assets/{documents-events-ClVYn3ZQ.js → documents-events-B5wmrm16.js} +1 -1
  55. package/dist/public/assets/{file-tree-adapter-WO2eqOUz.js → file-tree-adapter-yYBioQs5.js} +1 -1
  56. package/dist/public/assets/{file-tree-utils-U3Z7J-KU.js → file-tree-utils-DfqWA_5n.js} +1 -1
  57. package/dist/public/assets/{globals-BzYms-F0.js → globals-BrJQliEr.js} +1 -1
  58. package/dist/public/assets/{globals-88oPHAs4.css → globals-DwTVKVQU.css} +1 -1
  59. package/dist/public/assets/index-hiHNx_VS.js +2013 -0
  60. package/dist/public/assets/{lint-config-client-DWV4JDNv.js → lint-config-client-5R8jfpMC.js} +1 -1
  61. package/dist/public/assets/{markdownlint-rule-browser-ChtLptSn.js → markdownlint-rule-browser-B10BhLO-.js} +1 -1
  62. package/dist/public/assets/{navigation-targets-7F-Mry5A.js → navigation-targets-CHJwvlLn.js} +1 -1
  63. package/dist/public/assets/{open-managed-artifact-tab-6locbLa6.js → open-managed-artifact-tab-DU2wriss.js} +1 -1
  64. package/dist/public/assets/pending-receive-nav-store-vEz7n7hI.js +1 -0
  65. package/dist/public/assets/{prop-types-BgTwd2fB.js → prop-types-BKQrBeTE.js} +1 -1
  66. package/dist/public/assets/{receive-store-B4EnORIw.js → receive-store-Cai4Ylv2.js} +1 -1
  67. package/dist/public/assets/{selection-context-A5zmusm7.js → selection-context-BfNuCyz7.js} +1 -1
  68. package/dist/public/assets/{skill-actions-CAOP92og.js → skill-actions-CqHp5fhi.js} +1 -1
  69. package/dist/public/assets/{skills-api-BdOAo6gy.js → skills-api-CakWD1yl.js} +1 -1
  70. package/dist/public/assets/{src-BnHStkus.js → src-CzOcS7Os.js} +1 -1
  71. package/dist/public/assets/{tag-pill-input-Bj6ZOu8R.js → tag-pill-input-DrBsmU2V.js} +1 -1
  72. package/dist/public/assets/{target-navigation-intent-Clc1xeK7.js → target-navigation-intent-BvA7kyRG.js} +1 -1
  73. package/dist/public/assets/{telemetry-impl-rSw405SP.js → telemetry-impl-Bl_U4MrE.js} +1 -1
  74. package/dist/public/assets/{telemetry-startup-CfHWVhDL.js → telemetry-startup-DXlGUC0d.js} +1 -1
  75. package/dist/public/assets/{terminal-launch-events-DbAuazOA.js → terminal-launch-events-C02gKY4p.js} +1 -1
  76. package/dist/public/assets/{terminal-telemetry-DAKSL1YG.js → terminal-telemetry-WPPXmVH6.js} +1 -1
  77. package/dist/public/assets/typing-burst-detector-BGhFSaCK.js +8 -0
  78. package/dist/public/assets/{uninstall-BJWUalRu.js → uninstall-CjMD-IxK.js} +1 -1
  79. package/dist/public/assets/{use-activity-panel-C7sGg6Yo.js → use-activity-panel-DoDwyzOZ.js} +1 -1
  80. package/dist/public/assets/{use-apply-config-color-theme-D6i9A1kb.js → use-apply-config-color-theme-0KmFjCFT.js} +1 -1
  81. package/dist/public/assets/{use-collab-url-DkF-dRYD.js → use-collab-url-DQjlkOUP.js} +1 -1
  82. package/dist/public/assets/{use-live-xterm-theme-hXLlj822.js → use-live-xterm-theme-CM3UGTWm.js} +1 -1
  83. package/dist/public/assets/use-settings-route-0Taj5Wwx.js +1 -0
  84. package/dist/public/assets/{use-terminal-enabled-kukfhICN.js → use-terminal-enabled-BTOXFzup.js} +1 -1
  85. package/dist/public/assets/{use-timeline-entry-diff-lQP59BiR.js → use-timeline-entry-diff-DFXSuMB3.js} +2 -2
  86. package/dist/public/assets/{use-workspace-vn1ZfUTi.js → use-workspace-D2do84a0.js} +1 -1
  87. package/dist/public/assets/{workspace-paths-BbK6w2GI.js → workspace-paths-hoX5L8bW.js} +1 -1
  88. package/dist/public/index.html +37 -37
  89. package/dist/public/uninstall.html +4 -4
  90. package/dist/{repair-launch-json-D2cDfheC.mjs → repair-launch-json-DR9LNeHq.mjs} +2 -2
  91. package/dist/{repair-mcp-configs-DZnzv4nx.mjs → repair-mcp-configs-D-W0Trir.mjs} +2 -2
  92. package/dist/{repair-skills-BdKXPoDn.mjs → repair-skills-D8zfBuEH.mjs} +2 -2
  93. package/dist/repair-skills-Z6x_KZdO.mjs +1 -0
  94. package/dist/{server-lock-gEf34yIk.mjs → server-lock-Dvu9Crm-.mjs} +2 -2
  95. package/dist/server-lock-PrjHr5-L.mjs +1 -0
  96. package/dist/src-B-HV6HNi.mjs +1 -0
  97. package/dist/{src-Gc6Vd31B.mjs → src-CMWx7wd8.mjs} +301 -299
  98. package/dist/{src-BhYwnO0x.mjs → src-DRjy7jah.mjs} +3 -3
  99. package/dist/{src-D7dScWZV.mjs → src-DTzbBBWG.mjs} +6 -6
  100. package/dist/{start-B_yeELeJ.mjs → start-BmMsXVx3.mjs} +3 -3
  101. package/dist/start-Ca3be5dp.mjs +1 -0
  102. package/dist/{write-project-skill-DOa5Y3Pj.mjs → write-project-skill--6mgOtCu.mjs} +4 -4
  103. package/package.json +4 -4
  104. package/dist/constants-CKomzGE-.mjs +0 -2
  105. package/dist/git-handle-CHTTRKG_.mjs +0 -1
  106. package/dist/init-Bku_ZC-n.mjs +0 -1
  107. package/dist/loader-C-uoLcwu.mjs +0 -1
  108. package/dist/md-manager-CoB3aHic.mjs +0 -2
  109. package/dist/preview-bI5ACHfH.mjs +0 -1
  110. package/dist/public/assets/DocumentContext-Bftf-RO1.js +0 -38
  111. package/dist/public/assets/FeedbackForm-qjgK9hU-.js +0 -1
  112. package/dist/public/assets/LintConfigEditor-CZZG_L9N.js +0 -1
  113. package/dist/public/assets/SourceEditor-Ds_8a-DF.js +0 -1
  114. package/dist/public/assets/client-version-yC4_z6w2.js +0 -1
  115. package/dist/public/assets/index-Ci23rOfo.js +0 -2014
  116. package/dist/public/assets/pending-receive-nav-store-Cr7aLSIB.js +0 -1
  117. package/dist/public/assets/typing-burst-detector-CgO-p170.js +0 -6
  118. package/dist/public/assets/use-settings-route-BAyd5rTq.js +0 -1
  119. package/dist/repair-skills-BqsCjDWo.mjs +0 -1
  120. package/dist/server-lock-DrpjR6w5.mjs +0 -1
  121. package/dist/src-BgGi12hW.mjs +0 -1
  122. package/dist/start-BHIlj-HZ.mjs +0 -1
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./createLucideIcon-DAkhoPjT.js";import{t as s}from"./button-Gol9BgNB.js";import{c,d as l,i as u,n as d,o as f,p,s as m,t as h}from"./EnableSyncConfirmDialog-B90yUF0U.js";import{t as g}from"./arrow-up-right-obRIg3Sv.js";import{t as _}from"./check-GqWaoTdV.js";import{t as v}from"./folder-open-wLd69QUc.js";import{t as y}from"./info-yKMseklR.js";import{t as b}from"./loader-circle-Cg5SU7AZ.js";import{n as x}from"./miss-dialog-store-Bx4JLuKB.js";import{t as S}from"./refresh-cw-BfeWGCsv.js";import{t as C}from"./triangle-alert-Clgvyc7B.js";import{n as w}from"./dist-BLAMau9Z.js";import{r as T,u as E,v as D}from"./doc-hash-B6EHixE8.js";import{t as O}from"./external-link-T4Nj1gcG.js";var k=o(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),A=o(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),j=o(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),M=a(),N=e(n(),1),P=t(),F=`https://git-scm.com/docs/git-push`;function I(e,t){return!(e!==`stale`&&e!==`absent`||e===`stale`&&t?.syncEnabled===!0)}function L(e){return e?e.state!==`dormant`&&e.state!==`disabled`&&e.state!==`auth-error`&&e.state!==`conflict`:!1}function R(e){let t=(0,M.c)(47),{freshness:n,status:a,kind:o}=e,{_:c}=i(),{confirmOpen:l,setConfirmOpen:p,onToggleRequest:m,onConfirm:v}=u(f()),[b,x]=(0,N.useState)(`idle`),w=(0,N.useRef)(null),T,E;if(t[0]!==a||t[1]!==b?(T=()=>{if(!(b!==`pending`||!a)){if(a.pushError||a.pushErrorCode){x(`idle`);return}(a.lastSyncUtc??null)!==w.current&&x(`synced`)}},E=[b,a],t[0]=a,t[1]=b,t[2]=T,t[3]=E):(T=t[2],E=t[3]),(0,N.useEffect)(T,E),!I(n,a))return null;if(b===`synced`){let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[(0,P.jsx)(_,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{children:(0,P.jsx)(r,{id:`fxbCNQ`})})]}),t[4]=e):e=t[4],e}let D=a?.syncEnabled===!0,O=a?.pushPermission?.checkStatus===`denied`,k=!!(a?.pushError||a?.pushErrorCode),A=O||k,j=n===`absent`&&!D,R;if(n===`absent`&&!D){let e;t[5]!==c||t[6]!==o?(e=c(o===`folder`?{id:`PrJYSN`}:{id:`3BnyYc`}),t[5]=c,t[6]=o,t[7]=e):e=t[7],R=e}else if(n===`stale`){let e;t[8]!==c||t[9]!==o?(e=c(o===`folder`?{id:`Gt4gOO`}:{id:`2IYGkU`}),t[8]=c,t[9]=o,t[10]=e):e=t[10],R=e}else{let e;t[11]!==c||t[12]!==o?(e=c(o===`folder`?{id:`nqV0Kk`}:{id:`gwykHF`}),t[11]=c,t[12]=o,t[13]=e):e=t[13],R=e}let V;t[14]!==c||t[15]!==k||t[16]!==O?(V=O?c({id:`9OIqw4`}):k?c({id:`K6MQQk`}):null,t[14]=c,t[15]=k,t[16]=O,t[17]=V):V=t[17];let H=V,U;t[18]===a?.lastSyncUtc?U=t[19]:(U=()=>{w.current=a?.lastSyncUtc??null,x(`pending`),d(`sync`).catch(e=>{console.warn(`[share-freshness] sync trigger failed`,e instanceof Error?e.message:e),x(`idle`)})},t[18]=a?.lastSyncUtc,t[19]=U);let W=U,G=j?C:y,K;t[20]===G?K=t[21]:(K=(0,P.jsx)(G,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[20]=G,t[21]=K);let q;t[22]===R?q=t[23]:(q=(0,P.jsx)(`span`,{children:R}),t[22]=R,t[23]=q);let J;t[24]===H?J=t[25]:(J=H?(0,P.jsx)(`span`,{children:H}):null,t[24]=H,t[25]=J);let Y;t[26]!==A||t[27]!==W||t[28]!==m||t[29]!==a||t[30]!==D||t[31]!==b?(Y=A?null:D?L(a)?(0,P.jsx)(`div`,{children:b===`pending`?(0,P.jsxs)(s,{variant:`outline`,size:`xs`,disabled:!0,children:[(0,P.jsx)(S,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsx)(s,{variant:`outline`,size:`xs`,onClick:W,children:(0,P.jsx)(r,{id:`lb_UU4`})})}):null:(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,P.jsx)(s,{variant:`outline`,size:`xs`,onClick:()=>m(!0),children:(0,P.jsx)(r,{id:`XU0OXn`})}),(0,P.jsxs)(`a`,{href:F,target:`_blank`,rel:`noopener noreferrer`,onClick:B,onAuxClick:z,className:`inline-flex items-center gap-1 transition-colors hover:text-primary`,children:[(0,P.jsx)(r,{id:`GLxIKR`}),(0,P.jsx)(g,{className:`size-3 shrink-0`,"aria-hidden":`true`})]})]}),t[26]=A,t[27]=W,t[28]=m,t[29]=a,t[30]=D,t[31]=b,t[32]=Y):Y=t[32];let X;t[33]!==q||t[34]!==J||t[35]!==Y?(X=(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[q,J,Y]}),t[33]=q,t[34]=J,t[35]=Y,t[36]=X):X=t[36];let Z;t[37]!==K||t[38]!==X?(Z=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[K,X]}),t[37]=K,t[38]=X,t[39]=Z):Z=t[39];let Q;t[40]!==l||t[41]!==v||t[42]!==p?(Q=(0,P.jsx)(h,{open:l,onOpenChange:p,onConfirm:v}),t[40]=l,t[41]=v,t[42]=p,t[43]=Q):Q=t[43];let $;return t[44]!==Z||t[45]!==Q?($=(0,P.jsxs)(P.Fragment,{children:[Z,Q]}),t[44]=Z,t[45]=Q,t[46]=$):$=t[46],$}function z(e){return O(e,F)}function B(e){return O(e,F)}function V(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function H(e){let t=(0,M.c)(13),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={phase:`pending`},t[0]=n):n=t[0];let[r,i]=(0,N.useState)(n),[a,o]=(0,N.useState)(0),s=e.branch,c;t[1]!==s||t[2]!==e.kind||t[3]!==e.path?(c=()=>{let t=window.okDesktop??null;if(!t||s===null){i({phase:`resolved`,resolution:{verdict:`unknown`}});return}let n=!1;return t.project.fetchTargetStatus({projectPath:t.config.projectPath,branch:s,path:e.path,kind:e.kind}).then(e=>{n||i({phase:`resolved`,resolution:e??{verdict:`unknown`}})}).catch(e=>{n||(console.warn(`[receive] miss target-status fetch failed`,e instanceof Error?e.message:e),i({phase:`resolved`,resolution:{verdict:`unknown`}}))}),()=>{n=!0}},t[1]=s,t[2]=e.kind,t[3]=e.path,t[4]=c):c=t[4];let l;t[5]!==s||t[6]!==a||t[7]!==e.kind||t[8]!==e.path?(l=[s,e.kind,e.path,a],t[5]=s,t[6]=a,t[7]=e.kind,t[8]=e.path,t[9]=l):l=t[9],(0,N.useEffect)(c,l);let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i({phase:`pending`}),o(U)},t[10]=u):u=t[10];let d;return t[11]===r?d=t[12]:(d={state:r,refetch:u},t[11]=r,t[12]=d),d}function U(e){return e+1}function W(e){let t=(0,M.c)(15),{onEnabled:n}=e,i=f(),a;t[0]===n?a=t[1]:(a={onEnabled:n},t[0]=n,t[1]=a);let{confirmOpen:o,setConfirmOpen:c,onToggleRequest:l,onConfirm:d}=u(i,a),p;t[2]===l?p=t[3]:(p=()=>l(!0),t[2]=l,t[3]=p);let m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,P.jsx)(S,{className:`size-4`,"aria-hidden":`true`}),g=(0,P.jsx)(r,{id:`XU0OXn`}),t[4]=m,t[5]=g):(m=t[4],g=t[5]);let _;t[6]===p?_=t[7]:(_=(0,P.jsxs)(s,{onClick:p,"data-testid":`share-receive-miss-enable-sync`,children:[m,g]}),t[6]=p,t[7]=_);let v;t[8]!==o||t[9]!==d||t[10]!==c?(v=(0,P.jsx)(h,{open:o,onOpenChange:c,onConfirm:d}),t[8]=o,t[9]=d,t[10]=c,t[11]=v):v=t[11];let y;return t[12]!==_||t[13]!==v?(y=(0,P.jsxs)(P.Fragment,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14],y}function G(e){let t=(0,M.c)(23),{status:n,onSyncCompleted:a}=e,{_:o}=i(),[c,l]=(0,N.useState)(!1),u=(0,N.useRef)(null),f;t[0]!==a||t[1]!==c||t[2]!==n.lastSyncUtc||t[3]!==n.pushError||t[4]!==n.pushErrorCode?(f=()=>{if(c){if(n.pushError||n.pushErrorCode){l(!1);return}(n.lastSyncUtc??null)!==u.current&&(l(!1),a?.())}},t[0]=a,t[1]=c,t[2]=n.lastSyncUtc,t[3]=n.pushError,t[4]=n.pushErrorCode,t[5]=f):f=t[5];let p;t[6]!==a||t[7]!==c||t[8]!==n?(p=[c,n,a],t[6]=a,t[7]=c,t[8]=n,t[9]=p):p=t[9],(0,N.useEffect)(f,p);let m;t[10]!==o||t[11]!==n.lastSyncUtc?(m=()=>{u.current=n.lastSyncUtc??null,l(!0),d(`sync`).catch(e=>{console.warn(`[receive] miss sync trigger failed`,e instanceof Error?e.message:e),l(!1),w.error(o({id:`1u-mAI`}))})},t[10]=o,t[11]=n.lastSyncUtc,t[12]=m):m=t[12];let h=m,g;t[13]!==h||t[14]!==c?(g=c?(0,P.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(S,{className:`size-4 animate-spin`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsxs)(s,{onClick:h,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(S,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`lb_UU4`})]}),t[13]=h,t[14]=c,t[15]=g):g=t[15];let _;t[16]===c?_=t[17]:(_=c?(0,P.jsx)(r,{id:`dXOolp`}):null,t[16]=c,t[17]=_);let v;t[18]===_?v=t[19]:(v=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-sync-status`,children:_}),t[18]=_,t[19]=v);let y;return t[20]!==g||t[21]!==v?(y=(0,P.jsxs)(P.Fragment,{children:[g,v]}),t[20]=g,t[21]=v,t[22]=y):y=t[22],y}var K=!1;function q(e){return!K&&e!==null&&e.syncEnabled!==!0}function J(e){return e===null?!1:e.hasRemote&&e.lastPullUtc!==void 0&&e.state!==`conflict`}function Y(e,t){let n=(0,M.c)(15),[r,i]=(0,N.useState)(!1),[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(null),u,f;n[0]!==t||n[1]!==r||n[2]!==e?(u=()=>{if(!r||(e?.lastPullUtc??null)===l.current)return;i(!1);let n=e?.lastPullOutcome??null;if(n===null){t?.();return}switch(n){case`refused`:case`error`:o(n);return;case`succeeded`:case`up-to-date`:if(q(e)){K=!0,c(!0);return}t?.();return;case`conflict`:t?.();return;default:t?.();return}},f=[r,e,t],n[0]=t,n[1]=r,n[2]=e,n[3]=u,n[4]=f):(u=n[3],f=n[4]),(0,N.useEffect)(u,f);let p;n[5]===t?p=n[6]:(p=()=>{c(!1),t?.()},n[5]=t,n[6]=p);let m;n[7]===e?.lastPullUtc?m=n[8]:(m=()=>{l.current=e?.lastPullUtc??null,o(null),i(!0),d(`pull`).catch(e=>{console.warn(`[receive] miss pull trigger failed`,e instanceof Error?e.message:e),i(!1),o(`error`)})},n[7]=e?.lastPullUtc,n[8]=m);let h;return n[9]!==a||n[10]!==s||n[11]!==r||n[12]!==p||n[13]!==m?(h={pending:r,failure:a,offering:s,resolveOffer:p,start:m},n[9]=a,n[10]=s,n[11]=r,n[12]=p,n[13]=m,n[14]=h):h=n[14],h}function X(e){let t=(0,M.c)(10),{pending:n,onPull:i}=e,a;t[0]!==i||t[1]!==n?(a=n?(0,P.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(S,{className:`size-4 animate-spin`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`4uNLmk`})]}):(0,P.jsxs)(s,{onClick:i,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(p,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`fevEu0`})]}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let o;t[3]===n?o=t[4]:(o=n?(0,P.jsx)(r,{id:`glG1TR`}):null,t[3]=n,t[4]=o);let c;t[5]===o?c=t[6]:(c=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-pull-status`,children:o}),t[5]=o,t[6]=c);let l;return t[7]!==a||t[8]!==c?(l=(0,P.jsxs)(P.Fragment,{children:[a,c]}),t[7]=a,t[8]=c,t[9]=l):l=t[9],l}function Z(e){let t=(0,M.c)(18),{onResolve:n,strandedCommitCount:r}=e,i=c(),a=(0,N.useRef)(!1),o;t[0]===n?o=t[1]:(o=function(){a.current||(a.current=!0,n())},t[0]=n,t[1]=o);let s=o,l;t[2]===s?l=t[3]:(l={onApplied:s},t[2]=s,t[3]=l);let{confirmOpen:u,setConfirmOpen:d,onModeSelect:f,onConfirm:p}=m(i,`off`,l),g=(0,N.useRef)(!1),_,v;t[4]===f?(_=t[5],v=t[6]):(_=()=>{g.current||(g.current=!0,f(`follow`))},v=[f],t[4]=f,t[5]=_,t[6]=v),(0,N.useEffect)(_,v);let y;t[7]!==s||t[8]!==d?(y=e=>{d(e),e||s()},t[7]=s,t[8]=d,t[9]=y):y=t[9];let b;t[10]!==p||t[11]!==s?(b=()=>{p(),s()},t[10]=p,t[11]=s,t[12]=b):b=t[12];let x;return t[13]!==u||t[14]!==r||t[15]!==y||t[16]!==b?(x=(0,P.jsx)(h,{open:u,onOpenChange:y,onConfirm:b,variant:`follow`,strandedCommitCount:r}),t[13]=u,t[14]=r,t[15]=y,t[16]=b,t[17]=x):x=t[17],x}function Q(e){let t=(0,M.c)(89),{nav:n,state:a,onBrowseFolder:o,onOpenRenamed:c,onEnableAutoSync:u,onSyncCompleted:d,onPullApplied:f}=e,{_:m}=i(),h=l(),g=Y(h,f),_=n.branch,y;t[0]!==m||t[1]!==n.kind?(y=n.kind===`folder`?m({id:`ugoTXs`}):m({id:`XH30C4`}),t[0]=m,t[1]=n.kind,t[2]=y):y=t[2];let S=y;if(a.phase===`pending`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(b,{className:`size-5 animate-spin`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`c8jBgX`})]}),t[3]=e):e=t[3],e}let{resolution:C}=a,w,T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,P.jsx)(v,{className:`size-4`,"aria-hidden":`true`}),T=(0,P.jsx)(r,{id:`hItdtk`}),t[4]=w,t[5]=T):(w=t[4],T=t[5]);let E;t[6]===o?E=t[7]:(E=(0,P.jsxs)(s,{variant:`outline`,onClick:o,"data-testid":`share-receive-miss-browse`,children:[w,T]}),t[6]=o,t[7]=E);let D=E,O,N,F,I=null;if(C.verdict===`renamed`){let e;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(x,{className:`size-9`,"aria-hidden":`true`}),t[8]=e):e=t[8],O=e;let n;t[9]!==C.renamedTo||t[10]!==S?(n={0:C.renamedTo,targetNoun:S},t[9]=C.renamedTo,t[10]=S,t[11]=n):n=t[11];let i;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[12]=i):i=t[12];let a;t[13]===n?a=t[14]:(a=(0,P.jsx)(r,{id:`P0HC30`,values:n,components:i}),t[13]=n,t[14]=a),N=a;let o;t[15]!==c||t[16]!==C.renamedTo?(o=()=>c(C.renamedTo),t[15]=c,t[16]=C.renamedTo,t[17]=o):o=t[17];let l,u;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsx)(x,{className:`size-4`,"aria-hidden":`true`}),u=(0,P.jsx)(r,{id:`AItsE5`}),t[18]=l,t[19]=u):(l=t[18],u=t[19]);let d;t[20]===o?d=t[21]:(d=(0,P.jsxs)(s,{onClick:o,"data-testid":`share-receive-miss-open-renamed`,children:[l,u]}),t[20]=o,t[21]=d);let f;t[22]!==D||t[23]!==d?(f=(0,P.jsxs)(P.Fragment,{children:[d,D]}),t[22]=D,t[23]=d,t[24]=f):f=t[24],F=f}else if(C.verdict===`deleted`){let e;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(j,{className:`size-9`,"aria-hidden":`true`}),t[25]=e):e=t[25],O=e;let n;t[26]!==_||t[27]!==S?(n={targetNoun:S,branch:_},t[26]=_,t[27]=S,t[28]=n):n=t[28];let i;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[29]=i):i=t[29];let a;t[30]===n?a=t[31]:(a=(0,P.jsx)(r,{id:`kpqWwG`,values:n,components:i}),t[30]=n,t[31]=a),N=a,F=D}else if(C.verdict===`never-on-branch`){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(A,{className:`size-9`,"aria-hidden":`true`}),t[32]=e):e=t[32],O=e;let n;t[33]!==_||t[34]!==S?(n={targetNoun:S,branch:_},t[33]=_,t[34]=S,t[35]=n):n=t[35];let i;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[36]=i):i=t[36];let a;t[37]===n?a=t[38]:(a=(0,P.jsx)(r,{id:`i9TPUi`,values:n,components:i}),t[37]=n,t[38]=a),N=a,F=D}else if(C.verdict===`changed-locally`){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(k,{className:`size-9`,"aria-hidden":`true`}),t[39]=e):e=t[39],O=e;let n=h?.syncEnabled===!0,i=h?.pushPermission?.checkStatus===`denied`||!!(h?.pushError||h?.pushErrorCode);if(n){let e;t[40]!==_||t[41]!==S?(e=_===null?(0,P.jsx)(r,{id:`RyIKxy`,values:{targetNoun:S}}):(0,P.jsx)(r,{id:`l6kpzR`,values:{targetNoun:S,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[40]=_,t[41]=S,t[42]=e):e=t[42],N=e}else{let e;t[43]!==_||t[44]!==S?(e=_===null?(0,P.jsx)(r,{id:`UuYo7g`,values:{targetNoun:S}}):(0,P.jsx)(r,{id:`HoWElC`,values:{targetNoun:S,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[43]=_,t[44]=S,t[45]=e):e=t[45],N=e}let a=null;if(h?.syncEnabled){if(L(h)&&!i){let e;t[46]!==d||t[47]!==h?(e=(0,P.jsx)(G,{status:h,onSyncCompleted:d}),t[46]=d,t[47]=h,t[48]=e):e=t[48],a=e}}else if(h!==null){let e;t[49]===u?e=t[50]:(e=(0,P.jsx)(W,{onEnabled:u}),t[49]=u,t[50]=e),a=e}let o;t[51]!==D||t[52]!==a?(o=(0,P.jsxs)(P.Fragment,{children:[a,D]}),t[51]=D,t[52]=a,t[53]=o):o=t[53],F=o}else{let e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(p,{className:`size-9`,"aria-hidden":`true`}),t[54]=e):e=t[54],O=e;let n;t[55]===h?n=t[56]:(n=J(h),t[55]=h,t[56]=n);let i=n;if(i){let e;t[57]===_?e=t[58]:(e=_===null?(0,P.jsx)(r,{id:`gwEcOD`}):(0,P.jsx)(r,{id:`wvK7Ay`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[57]=_,t[58]=e),N=e}else{let e;t[59]===_?e=t[60]:(e=_===null?(0,P.jsx)(r,{id:`Xewl6B`}):(0,P.jsx)(r,{id:`d1JjXo`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[59]=_,t[60]=e),N=e}let a=g.failure===null?`sr-only`:`max-w-md text-balance text-1sm text-destructive`,o;t[61]===g.failure?o=t[62]:(o=g.failure===`refused`?(0,P.jsx)(r,{id:`Xp7Kq4`}):g.failure===`error`?(0,P.jsx)(r,{id:`JG_8KT`}):null,t[61]=g.failure,t[62]=o);let s;t[63]!==a||t[64]!==o?(s=(0,P.jsx)(`p`,{role:`alert`,className:a,"data-testid":`share-receive-miss-pull-error`,children:o}),t[63]=a,t[64]=o,t[65]=s):s=t[65],I=s;let c;t[66]!==i||t[67]!==g.pending||t[68]!==g.start?(c=i?(0,P.jsx)(X,{pending:g.pending,onPull:g.start}):null,t[66]=i,t[67]=g.pending,t[68]=g.start,t[69]=c):c=t[69];let l;t[70]!==g.offering||t[71]!==g.resolveOffer||t[72]!==h?.ahead?(l=g.offering?(0,P.jsx)(Z,{onResolve:g.resolveOffer,strandedCommitCount:h?.ahead??0}):null,t[70]=g.offering,t[71]=g.resolveOffer,t[72]=h?.ahead,t[73]=l):l=t[73];let u;t[74]!==D||t[75]!==c||t[76]!==l?(u=(0,P.jsxs)(P.Fragment,{children:[c,D,l]}),t[74]=D,t[75]=c,t[76]=l,t[77]=u):u=t[77],F=u}let R;t[78]===O?R=t[79]:(R=(0,P.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-full border bg-muted/40 text-muted-foreground`,children:O}),t[78]=O,t[79]=R);let z;t[80]===N?z=t[81]:(z=(0,P.jsx)(`p`,{className:`max-w-md text-balance text-base leading-6 text-foreground/90`,children:N}),t[80]=N,t[81]=z);let B;t[82]===F?B=t[83]:(B=(0,P.jsx)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-center`,children:F}),t[82]=F,t[83]=B);let V;return t[84]!==I||t[85]!==R||t[86]!==z||t[87]!==B?(V=(0,P.jsxs)(P.Fragment,{children:[R,z,I,B]}),t[84]=I,t[85]=R,t[86]=z,t[87]=B,t[88]=V):V=t[88],V}function $(e){return e.replace(/^\/+|\/+$/g,``)}function ee(e,t){if(t.kind===`folder`){if(E(e))return $(t.path)===``;let n=T(e);return n!==null&&$(n)===$(t.path)}let n=T(e);return n===null?!1:D(n)===D(t.path)}function te(){let e=null,t=new Set,n=!1;function r(){for(let e of t)e()}function i(t){e!==t&&(e=t,r())}function a(){e!==null&&(ee(window.location.hash,e)||i(null))}function o(){n||typeof window>`u`||(n=!0,window.addEventListener(`hashchange`,a))}return{arm(e){o(),i(e)},clear(){i(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dispose(){n&&typeof window<`u`&&(window.removeEventListener(`hashchange`,a),n=!1),i(null)}}}var ne=te();function re(e,t){return e===null||e.kind!==`missing`||t===null||D(t.path)!==e.target?null:t}export{H as a,V as i,ne as n,R as o,Q as r,I as s,re as t};
@@ -1,6 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{C as n,nn as r,r as i}from"./DocumentContext-Bftf-RO1.js";import{t as a}from"./react-f2sANaYj.js";import{n as o,r as s}from"./dist-Nvb76hAm.js";import{r as c,t as l}from"./useQuery-ZeEDLtxh.js";import{t as u}from"./compiler-runtime-BfE3aGVn.js";import{s as d}from"./createLucideIcon-DAkhoPjT.js";import{t as f}from"./button-Gol9BgNB.js";import{i as p,n as m,t as h}from"./tooltip-B4J7VHmA.js";import{n as g,r as _,t as v}from"./collapsible-B1mS1n9y.js";import{N as y,ct as b,k as x}from"./CodeMirrorPropInput-BLK9R867.js";import{n as S,t as C}from"./toggle-group-CjXmmTGy.js";import{Jt as w,br as T,gt as E,oi as D,yt as O}from"./dist-DQ935rCy.js";import{t as k}from"./chevron-right-C8oTR6gu.js";import{n as A}from"./CopyButton-1Q6Wnnjb.js";import{i as j,r as M}from"./prop-types-BgTwd2fB.js";import{l as N}from"./workspace-paths-BbK6w2GI.js";import{t as P}from"./refresh-cw-BfeWGCsv.js";import{t as F}from"./triangle-alert-Clgvyc7B.js";import{t as I}from"./wrench-BfoTvqT9.js";import{n as L}from"./dist-BLAMau9Z.js";import{t as R}from"./dist-q14fBS3T.js";import{a as z}from"./use-settings-route-BAyd5rTq.js";import{c as B}from"./documents-events-ClVYn3ZQ.js";import{i as V}from"./startup-marks-CqVzdU1y.js";import{a as H,s as U}from"./doc-hash-B6EHixE8.js";import{t as W}from"./badge-Dba4cvJR.js";import{a as G,i as ee,n as te,o as ne,r as re,s as ie,t as ae}from"./panel-C8ZhM4q-.js";import{t as oe}from"./lint-plugin-meta-J-wb-uxW.js";import{t as K}from"./skeleton-BG12Hmzn.js";import{a as se,d as ce}from"./lint-config-client-DWV4JDNv.js";var q=e(a(),1),J=u(),le=3e4,Y=new Map;function X(e){return e?Date.now()-e.rememberedAt>le?null:e.navigation:null}function ue(e,t){Y.set(e,{navigation:t,rememberedAt:Date.now()})}function Z(e){return X(Y.get(e))}function de(e){let t=Y.get(e);return Y.delete(e),X(t)}function fe(e){Y.delete(e)}function pe(e,t){let n=(0,J.c)(4),r=t===void 0?!1:t,[i,a]=(0,q.useState)(void 0),o=(0,q.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,q.useEffect)(s,c),i}var Q=t(),me=300;async function he(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new y(R._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=O.safeParse(n);throw e.success?Error(e.data.title):new y(R._({id:`zlErBl`}),{status:t.status})}let r=E.safeParse(n);if(!r.success)throw new y(R._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var ge=32,_e=12,ve=6,ye=`open-knowledge:outline-nav`;function be(e){let t=(0,J.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Q.jsx)(V,{name:`outline-panel`,children:(0,Q.jsx)(xe,{...e})}),t[0]=e,t[1]=n),n}function xe(e){let t=(0,J.c)(50),{docName:n,isSourceMode:r,className:a}=e,u=a===void 0?``:a,{_:f}=s(),{pages:p,loading:m}=j(),h=c(),{activeProvider:g,activeDocName:_}=i(),v,y;t[0]===n?(v=t[1],y=t[2]):(v=[`page-headings`,n],y=()=>he(n),t[0]=n,t[1]=v,t[2]=y);let b;t[3]!==n||t[4]!==m||t[5]!==p?(b=!m&&(p.has(n)||T(n)),t[3]=n,t[4]=m,t[5]=p,t[6]=b):b=t[6];let x;t[7]!==v||t[8]!==y||t[9]!==b?(x={queryKey:v,queryFn:y,enabled:b,staleTime:1/0},t[7]=v,t[8]=y,t[9]=b,t[10]=x):x=t[10];let{data:S,isLoading:C,error:w}=l(x),E;t[11]===S?E=t[12]:(E=S===void 0?[]:S,t[11]=S,t[12]=E);let D=E,O,k;t[13]!==_||t[14]!==g||t[15]!==n||t[16]!==h?(O=()=>{if(!g||_!==n)return;let e=g.document,t=null,r=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,h.invalidateQueries({queryKey:[`page-headings`,n]})},me)};return e.on(`update`,r),()=>{e.off(`update`,r),t!==null&&clearTimeout(t)}},k=[g,_,n,h],t[13]=_,t[14]=g,t[15]=n,t[16]=h,t[17]=O,t[18]=k):(O=t[17],k=t[18]),(0,q.useEffect)(O,k);let A;t[19]===D?A=t[20]:(A=D.map(Se),t[19]=D,t[20]=A);let M=pe(A,r),N;t[21]!==M||t[22]!==D?(N=M?D.findIndex(e=>e.slug===M):-1,t[21]=M,t[22]=D,t[23]=N):N=t[23];let P=N,F;t[24]!==n||t[25]!==r?(F=function(e,t){let i={index:e,slug:t,mode:r?`source`:`wysiwyg`};i.mode===`source`&&ue(n,{kind:`outline`,detail:i}),window.dispatchEvent(new CustomEvent(ye,{detail:i}))},t[24]=n,t[25]=r,t[26]=F):F=t[26];let I=F,L=((P>=0?D[P].level:1)-1)*_e+(_e-ve)/2,R=P*ge+(ge-ve)/2,z;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,Q.jsx)(ie,{children:(0,Q.jsx)(o,{id:`dD7NPy`})}),t[27]=z):z=t[27];let B;t[28]!==D.length||t[29]!==C?(B=!C&&(0,Q.jsx)(re,{children:D.length}),t[28]=D.length,t[29]=C,t[30]=B):B=t[30];let V;t[31]===B?V=t[32]:(V=(0,Q.jsxs)(ne,{children:[z,B]}),t[31]=B,t[32]=V);let H;t[33]!==f||t[34]!==P||t[35]!==M||t[36]!==w||t[37]!==I||t[38]!==D||t[39]!==C||t[40]!==L||t[41]!==R?(H=w?(0,Q.jsx)(G,{className:`px-2`,children:w instanceof Error?w.message:f({id:`GuqOb1`})}):D.length===0&&!C?(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`0BB9ID`})}):(0,Q.jsxs)(`nav`,{"aria-label":f({id:`BymzO4`}),className:`relative`,children:[P>=0&&(0,Q.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:ve,height:ve,transform:`translate(${L}px, ${R}px)`}}),D.map((e,t)=>{let n=e.slug===M;return(0,Q.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>I(t,e.slug),className:d(`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)*_e+20}px`},title:e.text,children:e.text},t)})]}),t[33]=f,t[34]=P,t[35]=M,t[36]=w,t[37]=I,t[38]=D,t[39]=C,t[40]=L,t[41]=R,t[42]=H):H=t[42];let U;t[43]!==C||t[44]!==H?(U=(0,Q.jsx)(te,{className:`px-3 py-2`,"aria-busy":C,children:H}),t[43]=C,t[44]=H,t[45]=U):U=t[45];let W;return t[46]!==u||t[47]!==V||t[48]!==U?(W=(0,Q.jsxs)(ae,{className:u,children:[V,U]}),t[46]=u,t[47]=V,t[48]=U,t[49]=W):W=t[49],W}function Se(e){return e.slug}function Ce(e){let t=(0,J.c)(10),{scope:n,onScopeChange:r}=e,{_:i}=s(),a;t[0]===r?a=t[1]:(a=e=>{e&&r(e)},t[0]=r,t[1]=a);let c;t[2]===i?c=t[3]:(c=i({id:`aBgwis`}),t[2]=i,t[3]=c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(S,{value:`doc`,className:`flex-1`,"data-testid":`panel-scope-doc`,children:(0,Q.jsx)(o,{id:`UpCz01`})}),t[4]=l):l=t[4];let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(S,{value:`project`,className:`flex-1`,"data-testid":`panel-scope-project`,children:(0,Q.jsx)(o,{id:`e0NrBM`})}),t[5]=u):u=t[5];let d;return t[6]!==n||t[7]!==a||t[8]!==c?(d=(0,Q.jsx)(`div`,{className:`shrink-0 px-4 pb-2`,children:(0,Q.jsxs)(C,{type:`single`,variant:`segmented`,size:`sm`,spacing:1,value:n,onValueChange:a,"aria-label":c,className:`w-full rounded-md bg-muted p-0.5 dark:bg-background`,children:[l,u]})}),t[6]=n,t[7]=a,t[8]=c,t[9]=d):d=t[9],d}async function we(e={kind:`project`}){try{let t=e.kind===`path`?`?path=${encodeURIComponent(e.path)}`:e.kind===`doc`?`?doc=${encodeURIComponent(e.docName)}`:``,n=await fetch(`/api/audit${t}`);if(!n.ok)return console.warn(`[audit] request failed`,n.status,n.statusText),null;let r=await n.json().catch(()=>null),i=w.safeParse(r);return i.success?i.data:(console.warn(`[audit] response failed schema validation`,i.error.issues),null)}catch(e){return console.warn(`[audit] fetch threw`,e),null}}function Te(e){let t=(0,J.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),a,o;return t[1]===e?(a=t[2],o=t[3]):(a=()=>{if(i(Oe),e===null)return;let t=!1,n=()=>{we({kind:`doc`,docName:e}).then(e=>{if(t||e===null)return;let n=e.files.flatMap(De).filter(Ee);i(e=>e.length===0&&n.length===0?e:n)})};n();let r=B(e=>{e.includes(`backlinks`)&&n()});return()=>{t=!0,r()}},o=[e],t[1]=e,t[2]=a,t[3]=o),(0,q.useEffect)(a,o),r}function Ee(e){return e.source===`links`}function De(e){return e.diagnostics}function Oe(e){return e.length===0?e:[]}var ke={errorCount:0,warningCount:0},$=new Map,Ae=new Set,je=new Map;function Me(){let e=new Map;for(let[t,n]of $){let r=n.lint.errorCount+n.links.errorCount,i=n.lint.warningCount+n.links.warningCount;r===0&&i===0||e.set(t,{errorCount:r,warningCount:i})}je=e;for(let e of Ae)e()}function Ne(e){let t={lint:{errorCount:0,warningCount:0},links:{errorCount:0,warningCount:0}};for(let n of e){let e=n.source===`links`?t.links:t.lint;n.severity===`error`?e.errorCount+=1:e.warningCount+=1}return t}function Pe(e){return Ae.add(e),()=>{Ae.delete(e)}}function Fe(){return je}function Ie(e){$.clear();for(let t of e)$.set(H(t.file),Ne(t.diagnostics));Me()}function Le(e,t){$.set(e,Ne(t)),Me()}function Re(e,t,n){let r=$.get(e)??{lint:ke,links:ke},i=r[t];i.errorCount===n.errorCount&&i.warningCount===n.warningCount||($.set(e,{...r,[t]:n}),Me())}var ze=`open-knowledge:lint-nav`;function Be(e,t){return e.range.start.line-t.range.start.line||e.range.start.character-t.range.start.character}function Ve(e){return{line:e.range.start.line+1,column:e.range.start.character+1}}function He(e){let t=(0,J.c)(29),{diagnostic:n}=e,{_:i}=s(),a=n.severity===`error`?A:F,c=`${n.source}/${n.code}`,l=n.range.start.line+1,u=n.source===`links`,f=n.severity===`error`?`text-destructive`:`text-amber-500`,p;t[0]===f?p=t[1]:(p=d(`mt-0.5 size-3.5 shrink-0`,f),t[0]=f,t[1]=p);let m;t[2]!==a||t[3]!==p?(m=(0,Q.jsx)(a,{"aria-hidden":`true`,className:p}),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]===n.message?h=t[6]:(h=(0,Q.jsx)(`span`,{className:`text-foreground`,children:n.message}),t[5]=n.message,t[6]=h);let g;t[7]!==m||t[8]!==h?(g=(0,Q.jsxs)(`span`,{className:`flex items-start gap-1.5 text-sm`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _=u&&`gap-0.5`,v;t[10]===_?v=t[11]:(v=d(`h-4 shrink-0 px-1 font-sans text-[10px] uppercase leading-none`,_),t[10]=_,t[11]=v);let y;t[12]===u?y=t[13]:(y=u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(r,{"aria-hidden":`true`,className:`size-2.5`}),(0,Q.jsx)(o,{id:`LdyooL`})]}):(0,Q.jsx)(o,{id:`STOrpI`}),t[12]=u,t[13]=y);let b;t[14]!==v||t[15]!==y?(b=(0,Q.jsx)(W,{variant:`gray`,"data-testid":`problems-source-tag`,className:v,children:y}),t[14]=v,t[15]=y,t[16]=b):b=t[16];let x;t[17]!==i||t[18]!==l?(x=i({id:`enPTnx`,values:{displayLine:l}}),t[17]=i,t[18]=l,t[19]=x):x=t[19];let S;t[20]!==c||t[21]!==x?(S=(0,Q.jsxs)(`span`,{className:`min-w-0 truncate`,children:[c,` · `,x]}),t[20]=c,t[21]=x,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==b?(C=(0,Q.jsxs)(`span`,{className:`flex items-center gap-1.5 ps-5 font-mono text-xs text-muted-foreground`,children:[b,S]}),t[23]=S,t[24]=b,t[25]=C):C=t[25];let w;return t[26]!==C||t[27]!==g?(w=(0,Q.jsxs)(Q.Fragment,{children:[g,C]}),t[26]=C,t[27]=g,t[28]=w):w=t[28],w}function Ue(e){return`${e.source}/${e.code}-${e.range.start.line}-${e.range.start.character}-${e.message}`}function We(e){return e.reduce((e,t)=>e+ +((t.fixes?.length??0)>0),0)}function Ge(e){let t=(0,J.c)(11),{target:n,creating:r,disabled:i,onCreate:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==n?(l=c({id:`oWsZk8`,values:{target:n}}),t[0]=c,t[1]=n,t[2]=l):l=t[2];let u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(b,{"aria-hidden":`true`,className:`size-3`}),t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r?(0,Q.jsx)(o,{id:`E9bKSA`}):(0,Q.jsx)(o,{id:`XRuL0i`}),t[4]=r,t[5]=d);let p;return t[6]!==i||t[7]!==a||t[8]!==l||t[9]!==d?(p=(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:i,onClick:a,"aria-label":l,"data-testid":`problems-create-page`,children:[u,d]}),t[6]=i,t[7]=a,t[8]=l,t[9]=d,t[10]=p):p=t[10],p}function Ke(e){let t=(0,J.c)(13),{count:n,disabled:r,onClick:i,children:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==a||t[2]!==n?(l=a===void 0?c({id:`Izb10l`,values:{count:n}}):void 0,t[0]=c,t[1]=a,t[2]=n,t[3]=l):l=t[3];let u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(I,{"aria-hidden":`true`,className:`size-3`}),t[4]=u):u=t[4];let d;t[5]!==a||t[6]!==n?(d=a??(0,Q.jsx)(o,{id:`5_8TCr`,values:{count:n}}),t[5]=a,t[6]=n,t[7]=d):d=t[7];let p;return t[8]!==r||t[9]!==i||t[10]!==l||t[11]!==d?(p=(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:r,onClick:i,"aria-label":l,"data-testid":`problems-fix-all`,children:[u,d]}),t[8]=r,t[9]=i,t[10]=l,t[11]=d,t[12]=p):p=t[12],p}function qe(e){let t=(0,J.c)(14),{docName:r,diagnostics:i,onFix:a,onFixAll:c,onAskAi:l}=e,{_:u}=s(),[d,g]=(0,q.useState)(`doc`),{data:_}=ce(),v=_===null?null:_.effective.enabled?oe.filter(e=>_.effective.plugins[e.id].enabled):[],y=v!==null&&v.length===0,b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={status:`idle`},t[0]=b):b=t[0];let[x,S]=(0,q.useState)(b),[C,w]=(0,q.useState)(null),T=M(),[E,D]=(0,q.useState)(null),O=(0,q.useRef)(!0),k,A;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>(O.current=!0,()=>{O.current=!1}),A=[],t[1]=k,t[2]=A):(k=t[1],A=t[2]),(0,q.useEffect)(k,A);let j=[...i].sort(Be),P=async function(e){let t=e.linkTarget;if(!(t===void 0||E!==null||T===null)){D(t);try{await n({initialDir:``,suggestedName:t},{addPage:T.addPage})}catch(e){let t=e;L.error(t instanceof Error?t.message:u({id:`tfi40B`})),O.current&&D(null);return}L.success(u({id:`EWCJFu`,values:{target:t}})),O.current&&D(null),O.current&&x.status===`loaded`&&await F()}};async function F(){S({status:`loading`});let e=await we();e!==null&&Ie(e.files),O.current&&S(e===null?{status:`failed`}:{status:`loaded`,result:e})}let R=x.status===`loaded`?x.result.files.filter(Ze):[],B=async function(){if(C!==null||R.length===0)return;w({done:0,total:R.length});let e=[];for(let t of R){let n=await se(H(t.file));if(!O.current)return;n.ok||e.push({file:t.file,detail:n.errorDetail}),w(Xe)}if(w(null),e.length>0){let t=e[0];L.error(u({id:`fru3T7`,values:{0:e.length,1:R.length}}),{description:t===void 0?void 0:`${t.file}${t.detail===null?``:` — ${t.detail}`}`})}try{await F()}catch{O.current&&S({status:`failed`})}},V=function(e){g(e),e===`project`&&x.status===`idle`&&F()},W;t[3]===r?W=t[4]:(W=function(e){let t=Ve(e);ue(r,{kind:`lint`,detail:t}),window.dispatchEvent(new CustomEvent(ze,{detail:t}))},t[3]=r,t[4]=W);let G=W,K;t[5]!==r||t[6]!==G?(K=function(e,t){let n=H(e);if(n===r){G(t);return}ue(n,{kind:`lint`,detail:Ve(t)}),window.location.hash=U(n)},t[5]=r,t[6]=G,t[7]=K):K=t[7];let le=K,Y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,Q.jsx)(ie,{children:(0,Q.jsx)(o,{id:`OXdGnd`})}),t[8]=Y):Y=t[8];let X=v!==null&&v.length>0&&(0,Q.jsxs)(h,{children:[(0,Q.jsx)(p,{className:`shrink-0 cursor-default rounded-md bg-muted-foreground/5 px-2 py-1 font-mono text-xs text-muted-foreground`,"data-testid":`problems-active-plugins`,children:(0,Q.jsx)(o,{id:`yxF19Y`,values:{0:v.length}})}),(0,Q.jsx)(m,{"data-testid":`problems-active-plugins-tooltip`,children:(0,Q.jsx)(o,{id:`ws5o1F`,values:{0:v.map(Ye).join(`, `)}})})]}),Z;t[9]===X?Z=t[10]:(Z=(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[Y,X]}),t[9]=X,t[10]=Z);let de=d===`doc`&&j.length>0&&(0,Q.jsx)(re,{children:j.length}),fe;return t[11]!==de||t[12]!==Z?(fe=(0,Q.jsxs)(ne,{children:[Z,de]}),t[11]=de,t[12]=Z,t[13]=fe):fe=t[13],(0,Q.jsxs)(ae,{children:[fe,(0,Q.jsx)(Ce,{scope:d,onScopeChange:V}),d===`doc`?(0,Q.jsx)(te,{className:`px-2 py-2`,children:j.length===0?y?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ee,{className:`px-2`,"data-testid":`problems-no-plugins`,children:(0,Q.jsx)(o,{id:`Hngy37`})}),(0,Q.jsx)(`div`,{className:`px-2 pt-2`,children:(0,Q.jsx)(f,{variant:`outline`,size:`sm`,onClick:z,"data-testid":`problems-enable-plugins`,children:(0,Q.jsx)(o,{id:`rnX-1S`})})})]}):(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`ZI8uvA`})}):(0,Q.jsxs)(Q.Fragment,{children:[c!==void 0&&(0,Q.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-2 pb-1`,children:(0,Q.jsx)(Ke,{count:We(j),disabled:We(j)===0,onClick:c})}),(0,Q.jsx)(`ul`,{"aria-label":u({id:`OXdGnd`}),className:`flex flex-col gap-0.5`,children:j.map(e=>{let t=e.range.start.line+1,n=a!==void 0&&(e.fixes?.length??0)>0,r=e.linkTarget!==void 0&&T!==null,i=`${e.source}/${e.code}`;return(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,Q.jsx)(`button`,{type:`button`,onClick:()=>G(e),className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:u({id:`aHPdYV`,values:{displayLine:t}}),children:(0,Q.jsx)(He,{diagnostic:e})}),n||l!==void 0||r?(0,Q.jsxs)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:[r?(0,Q.jsx)(Ge,{target:e.linkTarget??``,creating:E===e.linkTarget,disabled:E!==null,onCreate:()=>void P(e)}):null,n?(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>a?.(e),"aria-label":u({id:`fZj9em`,values:{flatId:i}}),"data-testid":`problems-fix`,children:[(0,Q.jsx)(I,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(o,{id:`c4fVUV`})]}):null,l===void 0?null:(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>l(e),"aria-label":u({id:`hh4mVC`,values:{flatId:i}}),"data-testid":`problems-ask-ai`,children:[(0,Q.jsx)(N,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(o,{id:`xWEvuo`})]})]}):null]},Ue(e))})})]})}):(0,Q.jsx)($e,{audit:x,onRefresh:()=>void F(),onNavigate:le,fixableCount:R.reduce(Je,0),fixing:C,onFixAll:()=>void B(),onCreateTarget:T===null?void 0:e=>void P(e),creatingTarget:E})]})}function Je(e,t){return e+We(t.diagnostics)}function Ye(e){return e.label}function Xe(e){return e===null?e:{...e,done:e.done+1}}function Ze(e){return e.diagnostics.some(Qe)}function Qe(e){return(e.fixes?.length??0)>0}function $e(e){let t=(0,J.c)(45),{audit:n,onRefresh:r,onNavigate:i,fixableCount:a,fixing:c,onFixAll:l,onCreateTarget:u,creatingTarget:d}=e,{_:p}=s(),m=n.status===`loading`||n.status===`idle`,h;t[0]!==n.result||t[1]!==n.status?(h=n.status===`loaded`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(o,{id:`DsDwR-`,values:{0:n.result.errorCount}}),` · `,(0,Q.jsx)(o,{id:`W1SI2K`,values:{0:n.result.warningCount}})]}),t[0]=n.result,t[1]=n.status,t[2]=h):h=t[2];let g;t[3]===h?g=t[4]:(g=(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,"data-testid":`problems-audit-summary`,children:h}),t[3]=h,t[4]=g);let _;t[5]!==p||t[6]!==c?(_=c===null?null:(0,Q.jsx)(`span`,{className:`sr-only`,role:`status`,children:p({id:`gZElfU`,values:{0:c.done,1:c.total}})}),t[5]=p,t[6]=c,t[7]=_):_=t[7];let v=m||c!==null||a===0,y;t[8]===c?y=t[9]:(y=c===null?void 0:(0,Q.jsx)(o,{id:`S9t1PI`,values:{0:c.done,1:c.total}}),t[8]=c,t[9]=y);let b;t[10]!==a||t[11]!==l||t[12]!==v||t[13]!==y?(b=(0,Q.jsx)(Ke,{count:a,disabled:v,onClick:l,children:y}),t[10]=a,t[11]=l,t[12]=v,t[13]=y,t[14]=b):b=t[14];let x;t[15]===p?x=t[16]:(x=p({id:`WRdYfS`}),t[15]=p,t[16]=x);let S=m||c!==null,C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Q.jsx)(P,{"aria-hidden":`true`,className:`size-3.5`}),t[17]=C):C=t[17];let w;t[18]!==r||t[19]!==x||t[20]!==S?(w=(0,Q.jsx)(f,{variant:`ghost`,size:`icon`,className:`size-6 shrink-0 text-muted-foreground`,"aria-label":x,"data-testid":`problems-audit-refresh`,disabled:S,onClick:r,children:C}),t[18]=r,t[19]=x,t[20]=S,t[21]=w):w=t[21];let T;t[22]!==w||t[23]!==_||t[24]!==b?(T=(0,Q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[_,b,w]}),t[22]=w,t[23]=_,t[24]=b,t[25]=T):T=t[25];let E;t[26]!==T||t[27]!==g?(E=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-2 pb-1`,children:[g,T]}),t[26]=T,t[27]=g,t[28]=E):E=t[28];let D;t[29]!==p||t[30]!==m?(D=m&&(0,Q.jsx)(`div`,{className:`flex flex-col gap-1`,role:`status`,"aria-busy":`true`,"aria-label":p({id:`dx-TwN`}),children:[1,2,3].map(et)}),t[29]=p,t[30]=m,t[31]=D):D=t[31];let O;t[32]===n.status?O=t[33]:(O=n.status===`failed`&&(0,Q.jsx)(G,{className:`px-2 text-xs`,children:(0,Q.jsx)(o,{id:`IFezUv`})}),t[32]=n.status,t[33]=O);let k;t[34]!==n.result||t[35]!==n.status||t[36]!==d||t[37]!==u||t[38]!==i?(k=n.status===`loaded`&&(0,Q.jsx)(tt,{result:n.result,onNavigate:i,onCreateTarget:u,creatingTarget:d}),t[34]=n.result,t[35]=n.status,t[36]=d,t[37]=u,t[38]=i,t[39]=k):k=t[39];let A;return t[40]!==E||t[41]!==D||t[42]!==O||t[43]!==k?(A=(0,Q.jsxs)(te,{className:`px-2 py-2`,"data-testid":`problems-project-scope`,children:[E,D,O,k]}),t[40]=E,t[41]=D,t[42]=O,t[43]=k,t[44]=A):A=t[44],A}function et(e){return(0,Q.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded px-2 py-1.5`,children:[(0,Q.jsx)(K,{className:`mt-0.5 size-3.5 shrink-0 rounded`}),(0,Q.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,Q.jsx)(K,{className:`h-3 w-28`}),(0,Q.jsx)(K,{className:`h-3 w-40`})]})]},e)}function tt(e){let t=(0,J.c)(12),{result:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==n.warnings?(l=n.warnings.length>0&&(0,Q.jsx)(`ul`,{"aria-label":c({id:`Rsdhj9`}),className:`flex flex-col gap-0.5 pb-1`,children:n.warnings.map(nt)}),t[0]=c,t[1]=n.warnings,t[2]=l):l=t[2];let u;t[3]!==a||t[4]!==i||t[5]!==r||t[6]!==n.fileCount||t[7]!==n.files?(u=n.files.length===0?(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`k_Dqw1`,values:{0:n.fileCount}})}):n.files.map(e=>(0,Q.jsx)(rt,{file:e,onNavigate:r,onCreateTarget:i,creatingTarget:a},e.file)),t[3]=a,t[4]=i,t[5]=r,t[6]=n.fileCount,t[7]=n.files,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}function nt(e,t){return(0,Q.jsxs)(`li`,{className:`flex items-start gap-1.5 px-2 text-xs`,children:[(0,Q.jsx)(F,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-500`}),(0,Q.jsx)(`span`,{className:`min-w-0 text-foreground`,children:e})]},`${t}-${e}`)}function rt(e){let t=(0,J.c)(41),{file:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:o}=s(),c,l,u,d,f,p,m,h,y;if(t[0]!==o||t[1]!==a||t[2]!==n.diagnostics||t[3]!==n.file||t[4]!==i||t[5]!==r){let e=[...n.diagnostics].sort(Be);l=v,m=!0,h=`problems-audit-group`;let s;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(k,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[15]=s):s=t[15];let b;t[16]===n.file?b=t[17]:(b=(0,Q.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,title:n.file,children:n.file}),t[16]=n.file,t[17]=b),y=(0,Q.jsxs)(_,{className:`group flex w-full cursor-pointer items-center gap-1.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:[s,b,(0,Q.jsx)(W,{variant:`gray`,"data-testid":`problems-audit-file-count`,className:`shrink-0`,children:e.length})]}),c=g,p=`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,t[18]!==o||t[19]!==n.file?(u=o({id:`zAJzIg`,values:{0:n.file}}),t[18]=o,t[19]=n.file,t[20]=u):u=t[20],d=`flex flex-col gap-0.5 pb-1 ps-3`;let x;t[21]!==o||t[22]!==a||t[23]!==n.file||t[24]!==i||t[25]!==r?(x=e=>{let t=e.range.start.line+1,s=e.linkTarget!==void 0&&i!==void 0;return(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,Q.jsx)(`button`,{type:`button`,onClick:()=>r(n.file,e),className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:o({id:`kDwcbW`,values:{0:n.file,displayLine:t}}),children:(0,Q.jsx)(He,{diagnostic:e})}),s?(0,Q.jsx)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:(0,Q.jsx)(Ge,{target:e.linkTarget??``,creating:a===e.linkTarget,disabled:a!==null,onCreate:()=>i?.(e)})}):null]},Ue(e))},t[21]=o,t[22]=a,t[23]=n.file,t[24]=i,t[25]=r,t[26]=x):x=t[26],f=e.map(x),t[0]=o,t[1]=a,t[2]=n.diagnostics,t[3]=n.file,t[4]=i,t[5]=r,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=y}else c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],y=t[14];let b;t[27]!==u||t[28]!==d||t[29]!==f?(b=(0,Q.jsx)(`ul`,{"aria-label":u,className:d,children:f}),t[27]=u,t[28]=d,t[29]=f,t[30]=b):b=t[30];let x;t[31]!==c||t[32]!==p||t[33]!==b?(x=(0,Q.jsx)(c,{className:p,children:b}),t[31]=c,t[32]=p,t[33]=b,t[34]=x):x=t[34];let S;return t[35]!==l||t[36]!==m||t[37]!==h||t[38]!==y||t[39]!==x?(S=(0,Q.jsxs)(l,{defaultOpen:m,"data-testid":h,children:[y,x]}),t[35]=l,t[36]=m,t[37]=h,t[38]=y,t[39]=x,t[40]=S):S=t[40],S}var it={words:0,chars:0,tokens:0},at=/[ -〿぀-ゟ゠-ヿ㐀-䶿一-鿿豈-﫿＀-￯฀-๿ក-៿]/,ot=/[\p{L}\p{N}]/u,st=new Set([`text`,`inlineCode`,`code`,`tag`]),ct=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),lt=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function ut(e,t){if(!e)return;let n=e.type;if(!ct.has(n)){if(st.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
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)ut(n,t);if(lt.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
3
- `)&&t.push(`
4
- `)}}}}function dt(e){try{let t=x().parseToMdast(e),n=[];return ut(t,n),n.join(``).trim()}catch(t){return console.warn(`[document-stats] mdast parse failed, falling back to raw text`,t),e.trim()}}function ft(e){if(!e)return 0;let t=0;for(let n of e.split(/\s+/))ot.test(n)&&t++;return t}function pt(e){let t=globalThis.Intl.Segmenter;if(!t)return ft(e);let n=new t(void 0,{granularity:`word`}),r=0;for(let t of n.segment(e))t.isWordLike&&r++;return r}function mt(e){let t=at.test(e)?1.5:4;return Math.ceil(e.length/t)}function ht(e){return e?{words:at.test(e)?pt(e):ft(e),chars:e.length,tokens:mt(e)}:{words:0,chars:0,tokens:0}}function gt(e){if(!e)return{words:0,chars:0,tokens:0};let{body:t}=D(e);return t.trim()?ht(dt(t)):{words:0,chars:0,tokens:0}}function _t(e,{isMarkdown:t}){let n=e.trim();return n?ht(t?dt(e):n):it}var vt=new Map,yt=new Set,bt=(e,t)=>`${t}:${e}`;function xt(){for(let e of yt)e()}function St(e,t,n){let r=bt(e,t);if(n===null){vt.delete(r)&&xt();return}let i=vt.get(r);i&&i.words===n.words&&i.chars===n.chars&&i.tokens===n.tokens||(vt.set(r,n),xt())}function Ct(e,t){return e===null?null:vt.get(bt(e,t))??null}function wt(e){return yt.add(e),()=>{yt.delete(e)}}function Tt(e){let{from:t,to:n,empty:r}=e.state.selection;if(r)return null;let i=e.state.doc.textBetween(t,n,`
5
- `,` `);return i.trim()?_t(i,{isMarkdown:!1}):null}function Et(e){let t=[];for(let n of e.state.selection.ranges)n.empty||t.push(e.state.sliceDoc(n.from,n.to));if(t.length===0)return null;let n=t.join(`
6
- `);return n.trim()?_t(n,{isMarkdown:!0}):null}export{be as _,wt as a,Z as b,ze as c,Le as d,Re as f,ye as g,Te as h,Tt as i,qe as l,we as m,St as n,it as o,Pe as p,Et as r,gt as s,Ct as t,Fe as u,fe as v,ue as x,de as y};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{qi as r}from"./dist-DQ935rCy.js";var i=e(t(),1),a=n(),o={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},s=Object.keys(o),c=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`l9HUtd`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],l=c,u=new Map(c.map(e=>[e.id,e]));function d(e){let t=u.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function f(){return r()?`mac`:`windowsLinux`}var p=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function m(e){return e.split(` / `).map(e=>p.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function h(e,t=f()){return t===`mac`?e.mac:e.windowsLinux}function g(e,t=f()){return m(h(e,t))}function _(e,t=f()){return h(d(e).bindings[0],t)}function v(e,t=f()){return g(d(e).bindings[0],t)}function y(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function b(e,t,n=f()){return d(t).bindings.some(t=>{let r=x(t.match,n);return r?C(e,r,n):!1})}function x(e,t){return e?S(e)?e:e[t]??null:null}function S(e){return`key`in e||`code`in e}function C(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var w=`#settings`;function T(e){return`#settings/${e}`}var E=`configure-agents`;function D(){if(typeof window>`u`)return;let e=T(E);window.location.hash!==e&&(window.location.hash=e)}var O=`plugins-manage`;function k(){if(typeof window>`u`)return;let e=T(O);window.location.hash!==e&&(window.location.hash=e)}function A(e){return y(e.target)?!1:b(e,`settings`)}function j(e){let t=e.replace(/^#/,``);return t===`settings`?!0:t.startsWith(`settings/`)&&t.length>9}function M(e){let t=e.replace(/^#/,``);if(!t.startsWith(`settings/`))return null;let n=t.slice(9);return n.length>0?n:null}function N(){return typeof window>`u`?``:window.location.hash}function P(){let e=(0,a.c)(5),[t,n]=(0,i.useState)(L),[r,o]=(0,i.useState)(I),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{(0,i.startTransition)(()=>{let e=N();n(j(e)),o(M(e))})};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l=F,u;return e[2]!==t||e[3]!==r?(u={open:t,section:r,close:l},e[2]=t,e[3]=r,e[4]=u):u=e[4],u}function F(){typeof window>`u`||j(N())&&window.history.back()}function I(){return M(N())}function L(){return j(N())}export{k as a,o as c,h as d,g as f,b as g,y as h,D as i,s as l,m,j as n,P as o,v as p,A as r,l as s,w as t,_ as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./repair-skills-BdKXPoDn.mjs";export{e as repairSkills};
@@ -1 +0,0 @@
1
- import{a as e,o as t,r as n}from"./server-lock-gEf34yIk.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
@@ -1 +0,0 @@
1
- import{C as e,Fa as t,Na as n,Pa as r,Ya as i,Za as a,d as o,l as s,so as c,xo as l,y as u}from"./src-BhYwnO0x.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dt as N,E as P,Ei as F,En as I,Er as L,Et as R,F as z,Fi as B,Fn as V,Fr as H,Ft as U,G as W,Gi as G,Gn as K,Gr as q,Gt as J,H as Y,Hi as X,Hn as Z,Hr as Q,Ht as $,I as ee,Ii as te,In as ne,Ir as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lr as ve,Lt as ye,M as be,Mi as xe,Mn as Se,Mr as Ce,Mt as we,N as Te,Ni as Ee,Nn as De,Nr as Oe,Nt as ke,O as Ae,Oi as je,On as Me,Ot as Ne,P as Pe,Pi as Fe,Pn as Ie,Pr as Le,Pt as Re,Q as ze,Qi as Be,Qn as Ve,Qr as He,Qt as Ue,R as We,Ri as Ge,Rn as Ke,Rr as qe,Rt as Je,S as Ye,Si as Xe,Sn as Ze,Sr as Qe,St as $e,T as et,Ti as tt,Tn as nt,Tr as rt,Tt as it,U as at,Ui as ot,Un as st,Ur as ct,Ut as lt,V as ut,Vi as dt,Vn as ft,Vr as pt,Vt as mt,W as ht,Wi as gt,Wn as _t,Wr as vt,Wt as yt,X as bt,Xi as xt,Xn as St,Xr as Ct,Xt as wt,Y as Tt,Yi as Et,Yn as Dt,Yr as Ot,Yt as kt,Z as At,Zi as jt,Zn as Mt,Zr as Nt,Zt as Pt,_ as Ft,_a as It,_i as Lt,_n as Rt,_r as zt,_t as Bt,a as Vt,aa as Ht,ai as Ut,an as Wt,ar as Gt,at as Kt,b as qt,bi as Jt,bn as Yt,br as Xt,bt as Zt,c as Qt,ca as $t,ci as en,cn as tn,cr as nn,ct as rn,d as an,da as on,di as sn,dn as cn,dr as ln,ea as un,ei as dn,en as fn,er as pn,et as mn,f as hn,fa as gn,fi as _n,fn as vn,fr as yn,g as bn,ga as xn,gi as Sn,gn as Cn,gr as wn,gt as Tn,h as En,ha as Dn,hi as On,hn as kn,hr as An,i as jn,ia as Mn,ii as Nn,in as Pn,ir as Fn,it as In,j as Ln,ji as Rn,jn as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kt as Wn,l as Gn,la as Kn,li as qn,ln as Jn,lr as Yn,lt as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,n as nr,na as rr,ni as ir,nn as ar,nr as or,nt as sr,o as cr,oa as lr,oi as ur,on as dr,or as fr,ot as pr,p as mr,pa as hr,pi as gr,pn as _r,pr as vr,q as yr,qi as br,qn as xr,qr as Sr,qt as Cr,r as wr,ra as Tr,ri as Er,rn as Dr,rr as Or,rt as kr,s as Ar,sa as jr,si as Mr,sn as Nr,sr as Pr,st as Fr,t as Ir,ta as Lr,ti as Rr,tn as zr,tr as Br,tt as Vr,u as Hr,ua as Ur,ui as Wr,un as Gr,ur as Kr,v as qr,va as Jr,vi as Yr,vn as Xr,vr as Zr,vt as Qr,w as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xi as ai,xn as oi,xr as si,xt as ci,y as li,ya as ui,yi as di,yn as fi,yr as pi,yt as mi,z as hi,zi as gi,zn as _i,zr as vi,zt as yi}from"./src-Gc6Vd31B.mjs";import{C as bi,E as xi,T as Si,_ as Ci,b as wi,c as Ti,d as Ei,g as Di,i as Oi,l as ki,m as Ai,n as ji,p as Mi,s as Ni,t as Pi,u as Fi,v as Ii,w as Li,x as Ri,y as zi}from"./fs-traced-DDm-belY.mjs";import{a as Bi,d as Vi,f as Hi,i as Ui,l as Wi,n as Gi,r as Ki,t as qi,u as Ji}from"./logger-B7Z8XO-z.mjs";import{S as Yi,_ as Xi,a as Zi,c as Qi,f as $i,g as ea,h as ta,i as na,l as ra,m as ia,n as aa,o as oa,p as sa,r as ca,s as la,t as ua,u as da,v as fa,x as pa}from"./server-lock-gEf34yIk.mjs";export{Ur as AGENT_ID_MAX_LEN,on as AGENT_ID_RE,F as AGENT_WRITE_ORIGIN,It as AcpPermissionStore,Qn as AcpRegistry,E as AcpThreadManager,ai as AgentFocusBroadcaster,Jt as AgentPresenceBroadcaster,j as AgentSessionCapacityError,je as AgentSessionManager,Bt as AutoStartDisabledError,yn as BUNDLE_IDS,vr as BUNDLE_SCOPE,tr as BUNDLE_SKILL_NAME,zn as BacklinkIndex,Ge as CC1Broadcaster,a as CC1_CONTRACT_VERSION,ar as CONFIG_FILENAME,I as CONFLICT_MARKER_RE,re as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Ft as ConfigSchema,gt as DEFAULT_CHECKPOINT_RETENTION,He as DEFAULT_EMBEDDINGS_DIMENSIONS,U as DEFAULT_PACK_ID,Y as DocumentDurabilityState,m as EMBEDDINGS_API_KEY_ENV,Dn as FEATURED_AGENT_IDS,G as FILE_SYSTEM_WRITER,v as FILE_WATCHER_ORIGIN,pe as FileEmbeddingsBackend,Pt as GIT_PREFLIGHT_FAIL_SPAN_NAME,de as GIT_UPSTREAM_WRITER,Jr as GitDirAccessError,Ke as GitNotAvailableError,_i as GitTooOldError,Qr as HOCUSPOCUS_AUTH_REJECTION_REASONS,mi as HocuspocusAuthRejection,Zt as HocuspocusAuthTokenSchema,Q as INSTALLED_AGENTS_SCHEMES,i as LINEAGE_EPOCH_KEY,hi as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,R as MANAGED_RENAME_ORIGIN,ei as MAX_ACP_THREADS,Hn as MAX_AGENT_SESSIONS,rn as MCP_CONNECTION_ID_HEADER,n as MCP_SERVER_NAME,_ as MIN_EVICTABLE_IDLE_MS,S as MIN_GIT_VERSION,at as MISSING_OK_CONFIG_MESSAGE,ui as MalformedGitPointerError,mn as McpLogger,ht as MissingOkConfigError,xe as OBSERVER_SYNC_ORIGIN,Dr as OK_OKIGNORE_TEMPLATE,r as ORPHAN_MODES,l as PROTOCOL_VERSION,qi as PinoLogger,Qi as ProcessLockCollisionError,Gn as ProjectGitInitError,N as ROLLBACK_ORIGIN,Pn as ROOT_GITIGNORE_TEMPLATE,ea as RUNTIME_VERSION,$n as RemoteConfigError,br as SERVICE_WRITER,Pr as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,ye as STARTER_FOLDERS,Je as STARTER_FOLDER_FRONTMATTER_FILENAME,yi as STARTER_PACKS,w as STARTER_PACK_IDS,mt as STARTER_TEMPLATES,P as STATE_MANIFEST_FILENAME,Xi as STATE_SCHEMA_VERSION,c as SYSTEM_DOC_NAME,Cr as SeedPrerequisiteError,le as SeedRootDirError,ua as ServerLockCollisionError,Ir as SingleFileNotAFileError,nr as SingleFileNotFoundError,wr as SingleFileNotMarkdownError,A as StateManifestError,et as TagIndex,An as USER_GLOBAL_BUNDLE_IDS,De as UiLockCollisionError,Ne as __getShowAllWalkStatsForTesting,Wn as __resetShowAllWalkStatsForTesting,ra as acquireProcessLock,aa as acquireServerLock,Ie as acquireUiLock,Rn as applyAgentMarkdownWrite,ti as applyExternalChange,Re as applySeed,Ae as assertCompatibleStateManifest,ft as assertGitAvailable,vn as assertNeverDiskEvent,Xe as attachAcpThreadSocket,Tn as attachIdleShutdown,qr as bootServer,St as buildAndOpenSkill,Wt as buildConfigYmlContent,Tt as buildExecResult,tt as buildOkMcpStdioCommand,Yn as buildSkillZip,$ as buildStarterFolderFrontmatterYaml,oe as buildWipTree,wn as bundleSkillMdPath,Sr as canonicalProjectKey,_r as classifyEvents,Pi as classifyFsPath,ce as clearAllEmbeddingsKeys,Rr as clearContributors,lt as coercePackId,s as colorFromSeed,Et as commitUpstreamImport,xt as commitWip,jt as commitWipFromTree,Z as compareSemver,pi as composeEffectiveLinterConfig,Xt as composeFrontmatterSchemasConfig,M as containsConflictMarkers,er as contentHash,ir as contributorCount,z as countShadowObjects,ee as countStaleAgentWipRefs,he as countWipRefs,y as createApiExtension,sn as createAssetServeMiddleware,Ce as createContentFilter,Oe as createContentFilterAsync,Ot as createEmbeddingsSecretStore,jn as createEphemeralProjectDir,nt as createExternalChangeHandler,hn as createFileLogger,b as createLiveDerivedIndexExtension,yr as createMcpHttpHandler,ct as createOsProbe,Pe as createPersistenceExtension,T as createServer,be as createServerObserverExtension,B as createStreamingErrorWriter,Gi as createTestLogger,Ct as describeStoredEmbeddingsKey,bn as detectClaudeDesktopPresence,st as detectGit,Vn as detectProjectShape,Mt as detectUserSkillHosts,kr as discoverLockDirs,O as discoverMarkdownlintConfig,Ue as emitPreflightFailureSpan,bt as encodeDocName,At as encodeFolderRoute,ze as encodeSkillRoute,Hr as ensureProjectGit,dr as ensureProjectSkillGitignore,te as errorResponse,kn as evictStaleTrackerEntries,In as extractOkBinaryPath,Se as extractWikiLinksFromMarkdown,_t as fallbackPaths,an as findEnclosingGitRoot,Gr as findEnclosingProjectRoot,ni as findNativeMarkdownlintFile,mr as flushFileLogger,ci as formatAuthRejectionWire,Er as formatContributors,Nn as formatContributorsFrom,we as formatPackRationale,Be as gcCheckpointRefs,Vr as getCurrentMcpLogger,en as getLocalDir,Zn as getLogFilePath,Ki as getLogger,En as getLogsDir,fa as getMachineId,zi as getMeter,Ht as getMetrics,wi as getTracer,lr as handleCollabSocketError,ve as handleSpawnCursor,On as hasForwardingHeaders,We as hasGcLogLatch,o as iconFromClientName,jr as incrementCollabSocketFilteredError,$t as incrementServerObserverFire,Nr as initContent,f as initShadowRepo,Ri as initTelemetry,qt as initToleranceTelemetryWriter,Fr as installPrettyZodErrors,Ui as installTestLoggers,Ve as installUserSkill,gr as isAllowedApiOrigin,Yr as isAllowedWorkspaceHostHeader,gi as isConfigDoc,$e as isHocuspocusAuthRejectionReason,yt as isKnownPackId,x as isLinkIndexExcludedDoc,di as isLoopbackAddress,dt as isManagedArtifactDoc,t as isOrphanMode,Ee as isPairedWriteOrigin,qe as isPathWithinDir,pa as isProcessAlive,cn as isProjectRoot,fe as isProjectSkillManaged,Sn as isRemoteAdmitted,X as isReservedForUserTree,Cn as isSelfWrite,ot as isSystemDoc,ii as isToleranceTelemetryEnabled,Yi as isValidLockPid,Rt as lastKnownHash,un as listRescueCheckpoints,J as listStarterPacks,xn as loadCustomAgents,Te as loadPrincipal,da as lockFilePath,Bi as loggerFactory,Wi as logsCurrentPath,Ji as logsPreviousPath,Nt as makeLazyEmbeddingsKeyStore,ca as markServerLockDraining,W as mountMcpAndApi,ji as normalizeFsPath,zt as originGitHubHost,tn as packageVersionMajorMinor,k as parseAuthRejectionWire,K as parseGitVersion,ri as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,Xr as pathToDocName,ke as planSeed,Vt as prepareSingleFileOpen,Kt as processCommand,pr as processUsage,p as readAllTargets,pn as readBundleDecision,rt as readOwnNativeRules,$i as readProcessLock,sa as readProcessLockDetailed,ut as readProjectHeadState,q as readProjectLocalSemanticConfig,na as readServerLock,Br as readServerPackageVersion,or as readSkillInstallStateSnapshot,xr as readSkillManagement,g as readStateManifest,Or as readTargetRecordedAt,Fn as readTargetVersion,V as readUiLock,Me as reconcile,Ut as recordContributor,nn as recordSkillInstallEvent,ae as registerAllTools,fi as registerWrite,ia as releaseProcessLock,Zi as releaseServerLock,ne as releaseUiLock,Yt as removeLastKnownHash,Kn as resetMetrics,e as resolveBundleEnabled,Kr as resolveBundledSkillDir,qn as resolveContentDir,vi as resolveCursorBinaryDefault,C as resolveCursorSpawnInvocation,si as resolveEffectiveLinterConfig,dn as resolveEmbeddingsCredential,Wr as resolveLockDir,Qe as resolveNativeConfigForDoc,L as resolveNativeMarkdownlintConfig,me as resolvePack,Ar as resolvePackageVersion,Lt as resolveRemoteAccess,d as resolveUiInfo,ur as restoreContributors,li as restoreLifecycleFromConflictsJson,Le as rewriteMarkdownLinksForDocumentRename,H as rewriteWikiLinksForDocumentRename,h as runAuthReposSubprocess,fn as runAuthStatusSubprocess,kt as runCloneSubprocess,zr as runDeviceFlowSubprocess,sr as runWithMcpLogger,_n as safeContentPath,Bn as safeSubdir,Lr as safetyCheckpoint,Xn as sanitizeClientName,rr as saveInMemoryCheckpoint,Tr as saveVersion,it as seedBasenameIndex,cr as serializeError,bi as setActiveSpanAttributes,Fe as setupServerObservers,Mn as shadowGit,Li as shutdownTelemetry,se as skillManagementPath,Vi as spansCurrentPath,Hi as spansPreviousPath,pt as spawnDetached,Un as splitMarkdownBlocks,oi as startWatcher,ge as streamingProblemEvent,Mr as swapContributors,Ye as teardownToleranceTelemetryWriter,gn as toBroadcasterKey,Oi as tracedAppendFileSync,Ni as tracedLinkSync,Ti as tracedMkdir,ki as tracedMkdirSync,Fi as tracedRename,Ei as tracedRenameSync,Mi as tracedRmSync,Ai as tracedRmdirSync,Di as tracedUnlinkSync,Ci as tracedWriteFile,Ii as tracedWriteFileSync,$r as trustSystemCertificates,Qt as untrackTrackedProjectSkillProjection,Ze as updateLastKnownHash,ta as updateProcessLockPort,oa as updateServerLockPort,_e as updateUiLockPort,hr as validateAgentId,wt as validateCloneInputs,ln as validateSkillZip,la as waitForServerLockDrain,vt as withHiddenWindowsConsole,Si as withSpan,xi as withSpanSync,Gt as writeBundleDecision,Zr as writeMarkdownlintRule,Jn as writeRootGitignoreForNewRepo,Dt as writeSkillManagement,Ln as writeStateManifest,fr as writeTargetVersion,D as writeTracker};
@@ -1 +0,0 @@
1
- import{p as e,r as t,v as n}from"./start-B_yeELeJ.mjs";export{t as bootStartServer,e as resolveHost,n as startCommand};