@inkeep/open-knowledge 0.77.7-beta.2 → 0.77.7-beta.4

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 (110) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/constants-CSiEclh7.mjs +1 -0
  3. package/dist/index.mjs +1 -1
  4. package/dist/{init-OTkr7QmO.mjs → init-CAwZY72n.mjs} +2 -2
  5. package/dist/init-DRj8rHcg.mjs +1 -0
  6. package/dist/{launch-json-removal-CxEjvfvw.mjs → launch-json-removal-B1NgX2N8.mjs} +1 -1
  7. package/dist/loader-DUZ1zqhf.mjs +1 -0
  8. package/dist/{loader-6pO7ckZs.mjs → loader-Dj2Rl54I.mjs} +1 -1
  9. package/dist/{preview-CCa3EQkb.mjs → preview-D2Wl935u.mjs} +1 -1
  10. package/dist/preview-DohU1m-S.mjs +1 -0
  11. package/dist/public/assets/{ActivityModeContent-BTRKebRf.js → ActivityModeContent-BjDWNpz1.js} +1 -1
  12. package/dist/public/assets/{AddPropertiesButton-41iqYn-6.js → AddPropertiesButton-BqZFw6JO.js} +1 -1
  13. package/dist/public/assets/{AgentDiffPane-BoEqZcqN.js → AgentDiffPane-Dzb-mPId.js} +1 -1
  14. package/dist/public/assets/{AgentIconCluster-DkJ-D2tt.js → AgentIconCluster-cERwj1ys.js} +1 -1
  15. package/dist/public/assets/{CodeMirrorPropInput-DsvT6SLO.js → CodeMirrorPropInput-BZmb-suD.js} +1 -1
  16. package/dist/public/assets/{DocumentContext-BHc80TVw.js → DocumentContext-Dh2ZXbr_.js} +1 -1
  17. package/dist/public/assets/{EditorModeToggle-CxuSMz32.js → EditorModeToggle-BXIg1kOx.js} +1 -1
  18. package/dist/public/assets/{EnableSyncConfirmDialog-KeKg-O8L.js → EnableSyncConfirmDialog-WhCjmy90.js} +1 -1
  19. package/dist/public/assets/{ExcalidrawDocEditor-DawY7RpP.js → ExcalidrawDocEditor-DsWFj752.js} +1 -1
  20. package/dist/public/assets/FeedbackForm-uNK1r5L4.js +1 -0
  21. package/dist/public/assets/{ImportSkillDialog-Bz5RsFee.js → ImportSkillDialog-Dvjesl68.js} +1 -1
  22. package/dist/public/assets/{LintConfigEditor-DTMTjLG4.js → LintConfigEditor-GJZlvLhn.js} +1 -1
  23. package/dist/public/assets/{ManagedArtifactProperties-CyS3bvYu.js → ManagedArtifactProperties-D4G3_sHZ.js} +1 -1
  24. package/dist/public/assets/ManagedArtifactProperties-Dn726l4R.js +1 -0
  25. package/dist/public/assets/{MermaidDocEditor-DBdPjX9c.js → MermaidDocEditor-dEKgWP3l.js} +1 -1
  26. package/dist/public/assets/{OpenInAgentMenuItem-CKyowfPQ.js → OpenInAgentMenuItem-CGwHGCv5.js} +1 -1
  27. package/dist/public/assets/{PropertyDisplayRow-CMiI-D28.js → PropertyDisplayRow-Bj0EWAs8.js} +1 -1
  28. package/dist/public/assets/{SchemaConfigEditor-V3nlG0MD.js → SchemaConfigEditor-C7xRA6GC.js} +1 -1
  29. package/dist/public/assets/{SessionsHost-DrxBw5Dc.js → SessionsHost-P70XIbxX.js} +2 -2
  30. package/dist/public/assets/{SettingsDialogBody-DeuPEB3Q.js → SettingsDialogBody-Q-L-UPUQ.js} +4 -4
  31. package/dist/public/assets/{ShareReceiveMissDialog-CdDoqkZv.js → ShareReceiveMissDialog-DT0hbjTF.js} +1 -1
  32. package/dist/public/assets/{SkillInstallMenu-Cx6cgqnH.js → SkillInstallMenu-ysiXTvdY.js} +1 -1
  33. package/dist/public/assets/{SkillToolbarControls-D35d-Oj8.js → SkillToolbarControls-DWxwlyfH.js} +1 -1
  34. package/dist/public/assets/{SourceEditor-BgvLLI0d.js → SourceEditor-BN6X7IRW.js} +1 -1
  35. package/dist/public/assets/{TerminalPanel-Dg47DX_x.js → TerminalPanel-C-NyJi62.js} +1 -1
  36. package/dist/public/assets/{TerminalWindowApp-Vt9D2o-y.js → TerminalWindowApp-DF0E4pon.js} +1 -1
  37. package/dist/public/assets/{TextDocEditor-B9bqs1MT.js → TextDocEditor-BozDySpx.js} +1 -1
  38. package/dist/public/assets/ThreadView-DGH55YzH.js +20 -0
  39. package/dist/public/assets/{TimelineDiffPane-BRiKDmPH.js → TimelineDiffPane-Czh9F_fu.js} +1 -1
  40. package/dist/public/assets/{agent-connection-status-DbJS_ULi.js → agent-connection-status-CeUzHEIL.js} +1 -1
  41. package/dist/public/assets/{auth-state-cache-DZtrWMYM.js → auth-state-cache-C2_qOfVn.js} +1 -1
  42. package/dist/public/assets/comment-chips-BgwLv8Hr.js +5 -0
  43. package/dist/public/assets/{config-provider-DRHyD36b.js → config-provider-Bkag5Iab.js} +1 -1
  44. package/dist/public/assets/{doc-undo-manager-C9a-4Gm_.js → doc-undo-manager-Fse4pmbv.js} +1 -1
  45. package/dist/public/assets/dropdown-menu-BdVv44EO.js +1 -0
  46. package/dist/public/assets/globals-COaj4vYH.css +1 -0
  47. package/dist/public/assets/index-eT3H0uG8.js +2205 -0
  48. package/dist/public/assets/messages-ALZVWgcA.js +1 -0
  49. package/dist/public/assets/messages-BBuikFTN.js +1 -0
  50. package/dist/public/assets/messages-BdMaFk9p.js +1 -0
  51. package/dist/public/assets/messages-Bn1_08f0.js +1 -0
  52. package/dist/public/assets/messages-CH85mC4z.js +1 -0
  53. package/dist/public/assets/messages-CJQZ4pG6.js +1 -0
  54. package/dist/public/assets/messages-CMVUUHOC.js +1 -0
  55. package/dist/public/assets/messages-DJLSxeV6.js +1 -0
  56. package/dist/public/assets/messages-DLxeITeT.js +1 -0
  57. package/dist/public/assets/messages-DZh_70lh.js +1 -0
  58. package/dist/public/assets/messages-Dj4gUBL7.js +1 -0
  59. package/dist/public/assets/messages-DuiRtbNh.js +1 -0
  60. package/dist/public/assets/{pending-receive-nav-store-CSKqTmWR.js → pending-receive-nav-store-CnNtkubw.js} +1 -1
  61. package/dist/public/assets/preferred-session-events-DL2IsSJX.js +1 -0
  62. package/dist/public/assets/progress-CyNiWd3G.js +9 -0
  63. package/dist/public/assets/{selection-context-B1dn3Qb3.js → selection-context-CE0z-gA_.js} +1 -1
  64. package/dist/public/assets/{src-Bu9qvuvv.js → src-4gYTOeT6.js} +1 -1
  65. package/dist/public/assets/{typing-burst-detector-Bke0myUp.js → typing-burst-detector-BQL7fOrv.js} +1 -1
  66. package/dist/public/assets/{uninstall-BszI1y_c.js → uninstall-B0BbTXcU.js} +1 -1
  67. package/dist/public/assets/{use-activity-panel-Dsib3Ksp.js → use-activity-panel-BU0vPfg2.js} +1 -1
  68. package/dist/public/assets/{use-apply-config-language-i4AxUNII.js → use-apply-config-language-CGsU-KWQ.js} +2 -2
  69. package/dist/public/assets/{use-open-skill-De2c2NlI.js → use-open-skill-CiWKdiJM.js} +1 -1
  70. package/dist/public/assets/{use-terminal-enabled-DvWv2i4b.js → use-terminal-enabled-Cm8GBt0F.js} +1 -1
  71. package/dist/public/assets/{use-timeline-entry-diff-CCKkFAh5.js → use-timeline-entry-diff-CMi-eKDV.js} +1 -1
  72. package/dist/public/index.html +28 -28
  73. package/dist/public/uninstall.html +5 -5
  74. package/dist/{registry-probes-BTqn1CNM.mjs → registry-probes-ClYZX-0c.mjs} +1 -1
  75. package/dist/{removal-file-path-BOh3xyoC.mjs → removal-file-path-s_1XSsua.mjs} +1 -1
  76. package/dist/{repair-launch-json-DdyW2EpJ.mjs → repair-launch-json-CHWGEp6L.mjs} +1 -1
  77. package/dist/{repair-mcp-configs-CdWTVZX4.mjs → repair-mcp-configs-D9t-jNEE.mjs} +1 -1
  78. package/dist/src-BLZyx-uZ.mjs +1 -0
  79. package/dist/{src-AyMeUG8R.mjs → src-BPaX4UM8.mjs} +1 -1
  80. package/dist/{start-RhVQasEb.mjs → start-CJG5O-l2.mjs} +2 -2
  81. package/dist/start-NiiKnUCH.mjs +1 -0
  82. package/package.json +4 -4
  83. package/dist/constants-DeXTpyKJ.mjs +0 -1
  84. package/dist/init-CllsV_j1.mjs +0 -1
  85. package/dist/loader-Bmuo_oRk.mjs +0 -1
  86. package/dist/preview-CG78N4zV.mjs +0 -1
  87. package/dist/public/assets/FeedbackForm-24E2qtZO.js +0 -1
  88. package/dist/public/assets/ManagedArtifactProperties-BhlRHx7s.js +0 -1
  89. package/dist/public/assets/ThreadView-DS70KbeD.js +0 -20
  90. package/dist/public/assets/comment-chips-Cuyn_4Fh.js +0 -5
  91. package/dist/public/assets/dropdown-menu-DjQ8GtwR.js +0 -1
  92. package/dist/public/assets/globals-CwqlIq2i.css +0 -1
  93. package/dist/public/assets/index-tlKQFOsy.js +0 -2205
  94. package/dist/public/assets/messages-7aQTPkc5.js +0 -1
  95. package/dist/public/assets/messages-BPxIWASJ.js +0 -1
  96. package/dist/public/assets/messages-BUWmr2Pn.js +0 -1
  97. package/dist/public/assets/messages-BXcvq9qG.js +0 -1
  98. package/dist/public/assets/messages-CZiRl6yz.js +0 -1
  99. package/dist/public/assets/messages-ChsGacob.js +0 -1
  100. package/dist/public/assets/messages-DEAZTfDp.js +0 -1
  101. package/dist/public/assets/messages-DJR1CmqL.js +0 -1
  102. package/dist/public/assets/messages-DiiQo6pk.js +0 -1
  103. package/dist/public/assets/messages-DpCIJH-2.js +0 -1
  104. package/dist/public/assets/messages-EW5nIoq6.js +0 -1
  105. package/dist/public/assets/messages-LtGjx2xP.js +0 -1
  106. package/dist/public/assets/preferred-session-events-CKKv-6Zd.js +0 -1
  107. package/dist/public/assets/progress-DmWzzM8E.js +0 -9
  108. package/dist/src-CkAjRp1w.mjs +0 -1
  109. package/dist/start-DbwVbV4y.mjs +0 -1
  110. /package/dist/public/assets/{globals-qdENuIBB.js → globals-ZOPZYJO0.js} +0 -0
@@ -1,5 +0,0 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{Br as t,In as n,Nr as r,Pr as i,Qn as a,Xn as o,oi as s,ri as c,ui as l}from"./DocumentContext-BHc80TVw.js";import{n as u,r as d}from"./dist-Nvb76hAm.js";import{t as f}from"./compiler-runtime-BfE3aGVn.js";import{t as p}from"./utils-CPqDy6Hr.js";import{t as m}from"./button-HKX9wT1K.js";import{i as h,n as g,t as _}from"./tooltip-BnyyQDRs.js";import{Dr as v,Kn as y,cr as b,ea as x,lr as S,qn as C}from"./dist-C_owXiVJ.js";import{n as w}from"./dist-CJhtNlOm2.js";import{t as T}from"./dist-Cr4-nBVI.js";import{a as ee}from"./local-menu-action-bus-DaoT7_kL.js";import{t as E}from"./createLucideIcon-B6ULg5PN.js";import{Mt as D}from"./CodeMirrorPropInput-DsvT6SLO.js";import{t as te}from"./x-DIayTyoR.js";import{f as ne}from"./doc-paths-dCv8glmi.js";var O=E(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),k=f(),re=`var(--ok-comment-hue, rgb(37 99 235))`,ie={fill:.22,line:.7},ae={fill:.45,line:1},oe=.45;function A(e){return`color-mix(in srgb,${re} ${e*100}%,transparent)`}function se(e,t){let{fill:n,line:r}=t?ae:ie;return[`border-radius:2px`,`padding-bottom:1px`,...e.id===null?[]:[`cursor:pointer`],`background-color:${A(n)}`,`box-shadow:inset 0 -2px 0 ${A(r)}`,``].join(`;`)}function j(e){return e.map(e=>e.id??`·`).join(`|`)}function M(e){let t=null;for(let n of e)n.id!==null&&(t===null||n.to-n.from<t.to-t.from)&&(t=n);return t?.id??null}function N(e,t){return e.id===null||e.id===t}function ce(e,t=null){let n=[...e].filter(e=>e.from<e.to).sort((e,t)=>e.from-t.from||e.to-t.to||(e.id??``).localeCompare(t.id??``));if(n.length===0)return[];let r=[...new Set(n.flatMap(e=>[e.from,e.to]))].sort((e,t)=>e-t),i=[],a=null,o=()=>{if(a===null)return;let e=a.covering.find(e=>N(e,t));i.push({from:a.from,to:a.to,style:se(e??a.covering[0],e!==void 0),threadId:M(a.covering)}),a=null};for(let e=0;e<r.length-1;e++){let t=r[e],i=r[e+1],s=n.filter(e=>e.from<=t&&e.to>=i);if(s.length===0){o();continue}if(a!==null&&a.to===t&&j(a.covering)===j(s)){a.to=i;continue}o(),a={from:t,to:i,covering:s}}return o(),i}var P=`data-comment-reveal`;function F(e){return typeof CSS<`u`&&CSS.escape?CSS.escape(e):e}function I(e){return e===``?null:document.querySelector(`[data-testid="property-row"][data-key="${F(e)}"]`)}function le(e){let t=I(e);if(t===null)return null;let n=t.getBoundingClientRect();return n.height===0&&n.width===0?null:n}function ue(e){I(e)?.scrollIntoView({block:`center`,behavior:`smooth`})}function L(e){if(e.quote===``)return!1;let t=e.path.length===0?e.key:e.path[e.path.length-1],n=Array.from(document.querySelectorAll(`[data-testid="property-row"][data-key="${F(String(t))}"]`)),r=Array.from(document.querySelectorAll(`[data-testid="property-row"]`));for(let t of[...n,...r]){let n=t.querySelector(`textarea, input`);if(n===null)continue;let r=R(n.value,e.quote,e.start,e.end);if(r!==null)return t.scrollIntoView({block:`center`,behavior:`smooth`}),n.focus(),n.setSelectionRange(r.start,r.end),de(n),!0}return!1}function R(e,t,n,r){if(n!==void 0&&r!==void 0&&e.slice(n,r)===t)return{start:n,end:r};let i=e.indexOf(t);return i<0?null:{start:i,end:i+t.length}}function de(e){e.style.setProperty(`--comment-reveal-fill`,A(oe)),e.setAttribute(P,`true`);let t=()=>{e.removeAttribute(P),e.style.removeProperty(`--comment-reveal-fill`)};e.addEventListener(`blur`,t,{once:!0}),e.addEventListener(`pointerdown`,t,{once:!0}),e.addEventListener(`keydown`,t,{once:!0})}function z(e,{includeBlockComponents:t=!1}={}){let n=``,r=[];return e.descendants((e,i)=>{if(e.isText&&e.text){for(let t=0;t<e.text.length;t++)n+=e.text[t],r.push(i+t);return!0}if(e.isBlock&&!t)return!0;let a=y(e);if(a.length>0){let t=i+e.nodeSize-1;for(let e=0;e<a.length;e++)n+=a[e],r.push(e===a.length-1?t:i)}return!0}),{text:n,positions:r}}function fe(e,t){let n=[];if(t===``)return n;let r=e.indexOf(t);for(;r!==-1;)n.push(r),r=e.indexOf(t,r+1);return n}function B(e,t,n){let r=n?.prefix??``,i=n?.suffix??``;if(r===``&&i===``)return null;let a=r===``?[0]:v(e,r,{syntaxIn:`needle`}).map(e=>e.end),o=i===``?[e.length]:v(e,i,{syntaxIn:`needle`}).map(e=>e.start);if(a.length!==1||o.length!==1)return null;let s=a[0],c=o[0];for(;s<c&&/\s/.test(e[s]??``);)s+=1;for(;c>s&&/\s/.test(e[c-1]??``);)--c;if(c<=s)return null;let l=x(t.length);return c-s>l?null:{start:s,end:c}}function V(e,t){let n=e.positions[t.start],r=e.positions[t.end-1];return n==null||r==null?null:{from:n,to:r+1}}function H(e,t,n){if(t.length===0)return null;let r=fe(e.text,t).map(e=>({start:e,end:e+t.length}));if(r.length===0&&(r=v(e.text,t,{syntaxIn:`needle`})),r.length===0){let r=B(e.text,t,n);return r===null?null:V(e,r)}let i=n?.prefix??``,a=n?.suffix??``,o=t=>e.text.includes(t)||v(e.text,t,{syntaxIn:`needle`}).length>0;if(i!==``&&a!==``&&!o(i+t+a)&&o(i+a))return null;let s=b({prefix:i,suffix:a},{syntaxInContext:!0}),c=t=>s===0||S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0})>=s;if(r.length===1){if(!c(r[0])){let r=B(e.text,t,n);return r===null?null:V(e,r)}return V(e,r[0])}let l=[],u=-1;for(let t of r){let n=S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0});n>u?(u=n,l=[t]):n===u&&l.push(t)}if(!c(l[0])){let r=B(e.text,t,n);return r===null?null:V(e,r)}return V(e,l[0])}var U=64;function pe(e,t,n){return{prefix:C(e,Math.max(0,t-U),t),suffix:C(e,n,Math.min(e.content.size,n+U))}}function W(e,t,n){return G(e)(t,n)}function G(e){let t=z(e),n=null;return(r,i)=>{let a=H(t,r,i);return a===null?(n??=z(e,{includeBlockComponents:!0}),H(n,r,i)):a}}var me=220,he=24;function ge(e){let t=e.viewTop+e.insetTop,n=e.viewBottom-me;return e.anchorTop>=t&&e.anchorBottom<=n?0:e.anchorTop-(t+he)}function K(e){let t=e?.parentElement??null;for(;t;){let e=getComputedStyle(t).overflowY;if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return null}function q(e){let t=Number.parseFloat(getComputedStyle(e).scrollPaddingTop);return Number.isFinite(t)?t:0}function J(e,t,r,i){let a=D(e);if(!a)return!1;let o=K(a.dom);if(!o)return n(r,`comment-reveal`,()=>e.commands.scrollIntoView());let s,c;try{s=a.coordsAtPos(t.from),c=a.coordsAtPos(t.to)}catch{return!1}let l=o.getBoundingClientRect(),u=ge({anchorTop:s.top,anchorBottom:Math.max(s.bottom,c.bottom),viewTop:l.top,viewBottom:l.bottom,insetTop:q(o)});if(u===0)return!0;let d=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;return n(r,`comment-reveal`,()=>o.scrollTo({top:o.scrollTop+u,behavior:i?.instant||d?`auto`:`smooth`}))}var _e=1e4,Y=80,ve=1500,X=[`wheel`,`touchstart`,`mousedown`,`keydown`];function ye(e){let t=!1,n=null,s=null,c=-1,u=()=>{let a=o(e.docName);if(!a||a.isDestroyed)return!1;if(t||(t=!0,r(e.threadId)),e.quote===``)return n===null&&(n=Date.now(),i(e.threadId)),!0;let l=a.state.doc.content.size;return(s===null||l!==c)&&(s=W(a.state.doc,e.quote,e.context),c=l),!s||!J(a,s,e.docName,{instant:!0})?!1:(n===null&&(n=Date.now(),i(e.threadId)),!0)};l(`comments`),u(),o(e.docName)===null&&window.location.assign(ne(e.docName));let d=!1,f=()=>{if(!d){d=!0,h(),window.clearInterval(g),window.clearTimeout(_);for(let e of X)window.removeEventListener(e,p,!0)}},p=()=>f(),m=()=>{u()&&n!==null&&Date.now()-n>=ve&&f()},h=a(m),g=window.setInterval(m,Y),_=window.setTimeout(()=>{n===null&&w.error(t?T._({id:`KeXgA-`}):T._({id:`JDQ5I5`})),f()},_e);for(let e of X)window.addEventListener(e,p,!0);m()}var Z=e();function be(){return c().length}function xe(){let e=(0,k.c)(4),n=c(),r;if(e[0]!==n){r=new Map;for(let e of n){let n=t(e)?.docName;n!==void 0&&r.set(n,(r.get(n)??0)+1)}e[0]=n,e[1]=r}else r=e[1];let i;return e[2]===r?i=e[3]:(i=[...r].map(Se),e[2]=r,e[3]=i),i}function Se(e){let[t,n]=e;return{docName:t,count:n}}function Ce(e){let t=(0,k.c)(34),{count:n,docs:r,attached:i,onAttach:a,onDismiss:o}=e,s;t[0]===r?s=t[1]:(s=r===void 0?[]:r,t[0]=r,t[1]=s);let c=s,{_:l}=d();if(n===0)return null;if(!i){let e;t[2]===l?e=t[3]:(e=l({id:`UpOct_`}),t[2]=l,t[3]=e);let n,r,i;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=p(`h-auto min-h-0 gap-1 rounded-md border border-dashed bg-transparent px-1.5 py-0.5`,`text-xs font-normal text-muted-foreground hover:bg-muted/60 hover:text-foreground`),r=(0,Z.jsx)(ee,{className:`size-3`}),i=(0,Z.jsx)(u,{id:`VbyRUy`}),t[4]=n,t[5]=r,t[6]=i):(n=t[4],r=t[5],i=t[6]);let o;return t[7]!==a||t[8]!==e?(o=(0,Z.jsxs)(m,{type:`button`,size:`sm`,variant:`ghost`,"aria-pressed":!1,"aria-label":e,onClick:a,"data-testid":`composer-context-chip-comments`,className:n,children:[r,i]}),t[7]=a,t[8]=e,t[9]=o):o=t[9],o}let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=p(`inline-flex items-center gap-1 rounded-md border bg-muted/60 py-0.5 pr-0.5 pl-1.5`,`text-xs text-muted-foreground`),t[10]=f):f=t[10];let v;t[11]===l?v=t[12]:(v=l({id:`2zvUIK`}),t[11]=l,t[12]=v);let y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(O,{className:`size-3`}),t[13]=y):y=t[13];let b;t[14]!==n||t[15]!==c.length?(b=c.length>1?(0,Z.jsx)(u,{id:`5TmrYN`,values:{0:c.length,count:n}}):(0,Z.jsx)(u,{id:`eiUA4k`,values:{count:n}}),t[14]=n,t[15]=c.length,t[16]=b):b=t[16];let x;t[17]!==v||t[18]!==b?(x=(0,Z.jsx)(h,{asChild:!0,children:(0,Z.jsxs)(m,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":v,onClick:Te,"data-testid":`composer-comments-open-panel`,className:`h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground`,children:[y,b]})}),t[17]=v,t[18]=b,t[19]=x):x=t[19];let S;t[20]===c?S=t[21]:(S=(0,Z.jsx)(g,{className:`max-w-64`,children:c.length>1?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:c.map(we)}):(0,Z.jsx)(u,{id:`2zvUIK`})}),t[20]=c,t[21]=S);let C;t[22]!==x||t[23]!==S?(C=(0,Z.jsxs)(_,{children:[x,S]}),t[22]=x,t[23]=S,t[24]=C):C=t[24];let w;t[25]===l?w=t[26]:(w=l({id:`pFRz_E`}),t[25]=l,t[26]=w);let T;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Z.jsx)(te,{className:`size-3`}),t[27]=T):T=t[27];let E;t[28]!==o||t[29]!==w?(E=(0,Z.jsx)(m,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":w,onClick:o,className:`size-4 p-0 text-muted-foreground hover:text-foreground`,children:T}),t[28]=o,t[29]=w,t[30]=E):E=t[30];let D;return t[31]!==E||t[32]!==C?(D=(0,Z.jsxs)(`span`,{"data-testid":`composer-context-chip-comments`,className:f,children:[C,E]}),t[31]=E,t[32]=C,t[33]=D):D=t[33],D}function we(e){return(0,Z.jsxs)(`li`,{className:`flex items-baseline gap-1.5`,children:[(0,Z.jsx)(`span`,{className:`tabular-nums`,children:e.count}),(0,Z.jsx)(`span`,{className:`truncate`,children:Q(e.docName)})]},e.docName)}function Te(){return s()}function Q(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Ee(e,t){let n=e;for(let e of t)n+=typeof e==`number`?`[${e}]`:`.${e}`;return n}function De(e){ye({docName:e.docName,quote:e.target.kind===`property`?``:e.anchor?.quote??``,threadId:e.id,context:e.anchor??void 0});let{target:t,anchor:n}=e;if(t.kind!==`property`||n===null)return;let r=0,i=()=>{L({key:t.key,path:t.path,quote:n.quote,start:n.start,end:n.end})||(r+=1,!(r>=Oe)&&requestAnimationFrame(i))};requestAnimationFrame(i)}var Oe=30;function ke(e){return{docName:e.docName,body:e.instruction,propertyKey:e.property,quote:e.passage?.exact??``,anchorLost:e.anchorLost,prefix:e.passage?.prefix??``,suffix:e.passage?.suffix??``,repeats:e.passageRepeats}}var $=48;function Ae(e){let t=e.replace(/\s+/g,` `).trimStart();return t.length>$?`…${t.slice(-$)}`:t}function je(e){let t=e.replace(/\s+/g,` `).trimEnd();return t.length>$?`${t.slice(0,$)}…`:t}function Me(e){if(!e.repeats)return null;let t=Ae(e.prefix),n=je(e.suffix);return t===``&&n===``?null:`(This text appears more than once in the file. The one meant is ${t===``?`at the start of the file, followed by "${n}"`:n===``?`at the end of the file, preceded by "${t}"`:`between "${t}" and "${n}"`} — match that context rather than the first occurrence.)`}function Ne(e,t,n){let r=t.trim(),i=[];if(i.push(r.length>0?r:`Address the following review comments by editing the documents directly.`),i.push(``),i.push(e.length===1?`The comment:`:`The ${e.length} comments:`),e.forEach((e,t)=>{if(i.push(``),e.propertyKey){let n=e.quote.trim();if(n===``)i.push(`${t+1}. In \`${e.docName}\`, on the \`${e.propertyKey}\` property (frontmatter):`),i.push(``),i.push(` ${e.body.trim()}`);else{i.push(`${t+1}. In \`${e.docName}\`, on this text within the \`${e.propertyKey}\` property (frontmatter):`),i.push(``);for(let e of n.split(`
2
- `))i.push(` > ${e}`);i.push(``),i.push(` ${e.body.trim()}`)}e.anchorLost&&(i.push(``),i.push(n===``?` (Note: \`${e.propertyKey}\` is no longer in this document's frontmatter — it was renamed or removed since the comment was written. Do not apply this to a different property; if you cannot tell what it now refers to, say so instead of guessing.)`:` (Note: that text is no longer in \`${e.propertyKey}\` — the value was edited, reshaped, or removed since the comment was written. Do not apply this to a different property or a different part of the value; if you cannot tell what it now refers to, say so instead of guessing.)`));return}i.push(`${t+1}. In \`${e.docName}\`, on this passage:`),i.push(``);for(let t of e.quote.split(`
3
- `))i.push(` > ${t}`);i.push(``),i.push(` ${e.body.trim()}`);let n=Me(e);n!==null&&(i.push(``),i.push(` ${n}`)),e.anchorLost&&(i.push(``),i.push(` (Note: this passage is no longer in the document — it was edited or removed since the comment was written. Do not apply this to a different passage; if you cannot tell what it now refers to, say so instead of guessing.)`))}),n&&n.markdown.trim().length>0){i.push(``),i.push(`Also in scope, selected in \`${n.docName}\` (not a comment):`),i.push(``);for(let e of n.markdown.trim().split(`
4
- `))i.push(`> ${e}`)}return i.join(`
5
- `)}export{L as _,De as a,O as b,xe as c,q as d,pe as f,le as g,R as h,Ee as i,K as l,W as m,Ne as n,ke as o,G as p,Q as r,be as s,Ce as t,J as u,ue as v,ce as y};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{t as n}from"./utils-CPqDy6Hr.js";import{a as r,c as i,d as a,f as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _}from"./dist-BX7qfUal.js";import{t as v}from"./createLucideIcon-B6ULg5PN.js";import{t as y}from"./check-BzfGb3KU.js";import{t as b}from"./chevron-right-C-g4JuT4.js";var x=v(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),S=t(),C=e();function w(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(_,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function T(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(h,{"data-slot":`dropdown-menu-portal`,...n}),t[2]=n,t[3]=r),r}function E(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(s,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function D(e){let t=(0,S.c)(12),r,i,a,o;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4]):({className:r,align:a,sideOffset:o,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o);let s=a===void 0?`start`:a,c=o===void 0?4:o,l;t[5]===r?l=t[6]:(l=n(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 data-[state=closed]:overflow-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0 subtle-scrollbar`,r),t[5]=r,t[6]=l);let u;return t[7]!==s||t[8]!==i||t[9]!==c||t[10]!==l?(u=(0,C.jsx)(h,{children:(0,C.jsx)(d,{"data-slot":`dropdown-menu-content`,sideOffset:c,align:s,className:l,...i})}),t[7]=s,t[8]=i,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function O(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(m,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function k(e){let t=(0,S.c)(12),r,i,a,o;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4]):({className:r,inset:i,variant:o,...a}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o);let s=o===void 0?`default`:o,l;t[5]===r?l=t[6]:(l=n(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,r),t[5]=r,t[6]=l);let u;return t[7]!==i||t[8]!==a||t[9]!==l||t[10]!==s?(u=(0,C.jsx)(c,{"data-slot":`dropdown-menu-item`,"data-inset":i,"data-variant":s,className:l,...a}),t[7]=i,t[8]=a,t[9]=l,t[10]=s,t[11]=u):u=t[11],u}function A(e){let t=(0,S.c)(15),i,a,o,s,c;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4],c=t[5]):({className:o,children:a,checked:i,inset:s,...c}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=c);let l;t[6]===o?l=t[7]:(l=n(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,o),t[6]=o,t[7]=l);let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,C.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,C.jsx)(r,{children:(0,C.jsx)(y,{})})}),t[8]=u):u=t[8];let d;return t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==c||t[13]!==l?(d=(0,C.jsxs)(g,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":s,className:l,checked:i,...c,children:[u,a]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c,t[13]=l,t[14]=d):d=t[14],d}function j(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(i,{"data-slot":`dropdown-menu-radio-group`,...n}),t[2]=n,t[3]=r),r}function M(e){let t=(0,S.c)(13),i,a,o,s;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4]):({className:a,children:i,inset:o,...s}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s);let c;t[5]===a?c=t[6]:(c=n(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,a),t[5]=a,t[6]=c);let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,C.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-radio-item-indicator`,children:(0,C.jsx)(r,{children:(0,C.jsx)(x,{className:`size-2 fill-current`})})}),t[7]=u):u=t[7];let d;return t[8]!==i||t[9]!==o||t[10]!==s||t[11]!==c?(d=(0,C.jsxs)(l,{"data-slot":`dropdown-menu-radio-item`,"data-inset":o,className:c,...s,children:[u,i]}),t[8]=i,t[9]=o,t[10]=s,t[11]=c,t[12]=d):d=t[12],d}function N(e){let t=(0,S.c)(10),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({className:r,inset:i,...a}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o;t[4]===r?o=t[5]:(o=n(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7`,r),t[4]=r,t[5]=o);let s;return t[6]!==i||t[7]!==a||t[8]!==o?(s=(0,C.jsx)(f,{"data-slot":`dropdown-menu-label`,"data-inset":i,className:o,...a}),t[6]=i,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function P(e){let t=(0,S.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`-mx-1 my-1 h-px bg-border`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,C.jsx)(a,{"data-slot":`dropdown-menu-separator`,className:o,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function F(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(o,{"data-slot":`dropdown-menu-sub`,...n}),t[2]=n,t[3]=r),r}function I(e){let t=(0,S.c)(13),r,i,a,o;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4]):({className:i,inset:a,children:r,...o}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o);let s;t[5]===i?s=t[6]:(s=n(`flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),t[5]=i,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,C.jsx)(b,{className:`ml-auto`}),t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==a||t[10]!==o||t[11]!==s?(l=(0,C.jsxs)(u,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":a,className:s,...o,children:[r,c]}),t[8]=r,t[9]=a,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function L(e){let t=(0,S.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 data-[state=closed]:overflow-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0 subtle-scrollbar`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,C.jsx)(p,{"data-slot":`dropdown-menu-sub-content`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{k as a,j as c,F as d,L as f,O as i,M as l,E as m,A as n,N as o,I as p,D as r,T as s,w as t,P as u};