@inkeep/open-knowledge 0.77.7-beta.4 → 0.77.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +6 -6
- package/dist/constants-CvuxsKVE.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-C11NQko2.mjs +1 -0
- package/dist/{init-CAwZY72n.mjs → init-Fc-maKX4.mjs} +2 -2
- package/dist/{launch-json-removal-B1NgX2N8.mjs → launch-json-removal-DghVCU7h.mjs} +1 -1
- package/dist/loader-5gxNszzg.mjs +1 -0
- package/dist/{loader-Dj2Rl54I.mjs → loader-DrN7MW98.mjs} +1 -1
- package/dist/preview-BWVtojyb.mjs +1 -0
- package/dist/{preview-D2Wl935u.mjs → preview-C6MJfbQd.mjs} +1 -1
- package/dist/public/assets/{ActivityModeContent-BjDWNpz1.js → ActivityModeContent-BTRKebRf.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BqZFw6JO.js → AddPropertiesButton-41iqYn-6.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-Dzb-mPId.js → AgentDiffPane-BoEqZcqN.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-cERwj1ys.js → AgentIconCluster-DkJ-D2tt.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BZmb-suD.js → CodeMirrorPropInput-DsvT6SLO.js} +1 -1
- package/dist/public/assets/{DocumentContext-Dh2ZXbr_.js → DocumentContext-BHc80TVw.js} +1 -1
- package/dist/public/assets/{EditorModeToggle-BXIg1kOx.js → EditorModeToggle-CxuSMz32.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-WhCjmy90.js → EnableSyncConfirmDialog-KeKg-O8L.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-DsWFj752.js → ExcalidrawDocEditor-DawY7RpP.js} +1 -1
- package/dist/public/assets/FeedbackForm-24E2qtZO.js +1 -0
- package/dist/public/assets/{ImportSkillDialog-Dvjesl68.js → ImportSkillDialog-Bz5RsFee.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-GJZlvLhn.js → LintConfigEditor-DTMTjLG4.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BhlRHx7s.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-D4G3_sHZ.js → ManagedArtifactProperties-CyS3bvYu.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-dEKgWP3l.js → MermaidDocEditor-DBdPjX9c.js} +1 -1
- package/dist/public/assets/{OpenInAgentMenuItem-CGwHGCv5.js → OpenInAgentMenuItem-CKyowfPQ.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-Bj0EWAs8.js → PropertyDisplayRow-CMiI-D28.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-C7xRA6GC.js → SchemaConfigEditor-V3nlG0MD.js} +1 -1
- package/dist/public/assets/{SessionsHost-P70XIbxX.js → SessionsHost-DrxBw5Dc.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Q-L-UPUQ.js → SettingsDialogBody-DeuPEB3Q.js} +4 -4
- package/dist/public/assets/{ShareReceiveMissDialog-DT0hbjTF.js → ShareReceiveMissDialog-CdDoqkZv.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-ysiXTvdY.js → SkillInstallMenu-Cx6cgqnH.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-DWxwlyfH.js → SkillToolbarControls-D35d-Oj8.js} +1 -1
- package/dist/public/assets/{SourceEditor-BN6X7IRW.js → SourceEditor-BgvLLI0d.js} +1 -1
- package/dist/public/assets/{TerminalPanel-C-NyJi62.js → TerminalPanel-Dg47DX_x.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-DF0E4pon.js → TerminalWindowApp-Vt9D2o-y.js} +1 -1
- package/dist/public/assets/{TextDocEditor-BozDySpx.js → TextDocEditor-B9bqs1MT.js} +1 -1
- package/dist/public/assets/ThreadView-DS70KbeD.js +20 -0
- package/dist/public/assets/{TimelineDiffPane-Czh9F_fu.js → TimelineDiffPane-BRiKDmPH.js} +1 -1
- package/dist/public/assets/{agent-connection-status-CeUzHEIL.js → agent-connection-status-DbJS_ULi.js} +1 -1
- package/dist/public/assets/{auth-state-cache-C2_qOfVn.js → auth-state-cache-DZtrWMYM.js} +1 -1
- package/dist/public/assets/comment-chips-Cuyn_4Fh.js +5 -0
- package/dist/public/assets/{config-provider-Bkag5Iab.js → config-provider-DRHyD36b.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-Fse4pmbv.js → doc-undo-manager-C9a-4Gm_.js} +1 -1
- package/dist/public/assets/dropdown-menu-DjQ8GtwR.js +1 -0
- package/dist/public/assets/globals-CwqlIq2i.css +1 -0
- package/dist/public/assets/index-tlKQFOsy.js +2205 -0
- package/dist/public/assets/messages-7aQTPkc5.js +1 -0
- package/dist/public/assets/messages-BPxIWASJ.js +1 -0
- package/dist/public/assets/messages-BUWmr2Pn.js +1 -0
- package/dist/public/assets/messages-BXcvq9qG.js +1 -0
- package/dist/public/assets/messages-CZiRl6yz.js +1 -0
- package/dist/public/assets/messages-ChsGacob.js +1 -0
- package/dist/public/assets/messages-DEAZTfDp.js +1 -0
- package/dist/public/assets/messages-DJR1CmqL.js +1 -0
- package/dist/public/assets/messages-DiiQo6pk.js +1 -0
- package/dist/public/assets/messages-DpCIJH-2.js +1 -0
- package/dist/public/assets/messages-EW5nIoq6.js +1 -0
- package/dist/public/assets/messages-LtGjx2xP.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-CnNtkubw.js → pending-receive-nav-store-CSKqTmWR.js} +1 -1
- package/dist/public/assets/preferred-session-events-CKKv-6Zd.js +1 -0
- package/dist/public/assets/progress-DmWzzM8E.js +9 -0
- package/dist/public/assets/{selection-context-CE0z-gA_.js → selection-context-B1dn3Qb3.js} +1 -1
- package/dist/public/assets/{src-4gYTOeT6.js → src-Bu9qvuvv.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BQL7fOrv.js → typing-burst-detector-Bke0myUp.js} +1 -1
- package/dist/public/assets/{uninstall-B0BbTXcU.js → uninstall-BszI1y_c.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BU0vPfg2.js → use-activity-panel-Dsib3Ksp.js} +1 -1
- package/dist/public/assets/{use-apply-config-language-CGsU-KWQ.js → use-apply-config-language-i4AxUNII.js} +2 -2
- package/dist/public/assets/{use-open-skill-CiWKdiJM.js → use-open-skill-De2c2NlI.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-Cm8GBt0F.js → use-terminal-enabled-DvWv2i4b.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-CMi-eKDV.js → use-timeline-entry-diff-CCKkFAh5.js} +1 -1
- package/dist/public/index.html +28 -28
- package/dist/public/uninstall.html +5 -5
- package/dist/{registry-probes-ClYZX-0c.mjs → registry-probes-DklD43I6.mjs} +1 -1
- package/dist/{removal-file-path-s_1XSsua.mjs → removal-file-path-CONvutwY.mjs} +1 -1
- package/dist/{repair-launch-json-CHWGEp6L.mjs → repair-launch-json-AycZYoJb.mjs} +1 -1
- package/dist/{repair-mcp-configs-D9t-jNEE.mjs → repair-mcp-configs-CRmpLxi2.mjs} +1 -1
- package/dist/src-BS3cdrpc.mjs +1 -0
- package/dist/{src-BPaX4UM8.mjs → src-qQh3l1wr.mjs} +1 -1
- package/dist/{start-CJG5O-l2.mjs → start-C3-GITha.mjs} +2 -2
- package/dist/start-CAuW-SxU.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-CSiEclh7.mjs +0 -1
- package/dist/init-DRj8rHcg.mjs +0 -1
- package/dist/loader-DUZ1zqhf.mjs +0 -1
- package/dist/preview-DohU1m-S.mjs +0 -1
- package/dist/public/assets/FeedbackForm-uNK1r5L4.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Dn726l4R.js +0 -1
- package/dist/public/assets/ThreadView-DGH55YzH.js +0 -20
- package/dist/public/assets/comment-chips-BgwLv8Hr.js +0 -5
- package/dist/public/assets/dropdown-menu-BdVv44EO.js +0 -1
- package/dist/public/assets/globals-COaj4vYH.css +0 -1
- package/dist/public/assets/index-eT3H0uG8.js +0 -2205
- package/dist/public/assets/messages-ALZVWgcA.js +0 -1
- package/dist/public/assets/messages-BBuikFTN.js +0 -1
- package/dist/public/assets/messages-BdMaFk9p.js +0 -1
- package/dist/public/assets/messages-Bn1_08f0.js +0 -1
- package/dist/public/assets/messages-CH85mC4z.js +0 -1
- package/dist/public/assets/messages-CJQZ4pG6.js +0 -1
- package/dist/public/assets/messages-CMVUUHOC.js +0 -1
- package/dist/public/assets/messages-DJLSxeV6.js +0 -1
- package/dist/public/assets/messages-DLxeITeT.js +0 -1
- package/dist/public/assets/messages-DZh_70lh.js +0 -1
- package/dist/public/assets/messages-Dj4gUBL7.js +0 -1
- package/dist/public/assets/messages-DuiRtbNh.js +0 -1
- package/dist/public/assets/preferred-session-events-DL2IsSJX.js +0 -1
- package/dist/public/assets/progress-CyNiWd3G.js +0 -9
- package/dist/src-BLZyx-uZ.mjs +0 -1
- package/dist/start-NiiKnUCH.mjs +0 -1
- /package/dist/public/assets/{globals-ZOPZYJO0.js → globals-qdENuIBB.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-Dh2ZXbr_.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{t as ee}from"./createLucideIcon-B6ULg5PN.js";import{Mt as te}from"./CodeMirrorPropInput-BZmb-suD.js";import{t as ne}from"./x-DIayTyoR.js";import{f as re}from"./doc-paths-dCv8glmi.js";var E=ee(`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`}]]),D=f(),ie=`var(--ok-comment-hue, rgb(37 99 235))`,ae={fill:.22,line:.7},O={fill:.45,line:1},oe=.45;function k(e){return`color-mix(in srgb,${ie} ${e*100}%,transparent)`}function se(e,t){let{fill:n,line:r}=t?O:ae;return[`border-radius:2px`,`padding-bottom:1px`,...e.id===null?[]:[`cursor:pointer`],`background-color:${k(n)}`,`box-shadow:inset 0 -2px 0 ${k(r)}`,``].join(`;`)}function A(e){return e.map(e=>e.id??`·`).join(`|`)}function ce(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 j(e,t){return e.id===null||e.id===t}function M(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=>j(e,t));i.push({from:a.from,to:a.to,style:se(e??a.covering[0],e!==void 0),threadId:ce(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&&A(a.covering)===A(s)){a.to=i;continue}o(),a={from:t,to:i,covering:s}}return o(),i}var N=`data-comment-reveal`;function P(e){return typeof CSS<`u`&&CSS.escape?CSS.escape(e):e}function F(e){return e===``?null:document.querySelector(`[data-testid="property-row"][data-key="${P(e)}"]`)}function le(e){let t=F(e);if(t===null)return null;let n=t.getBoundingClientRect();return n.height===0&&n.width===0?null:n}function ue(e){F(e)?.scrollIntoView({block:`center`,behavior:`smooth`})}function I(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="${P(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=L(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 L(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`,k(oe)),e.setAttribute(N,`true`);let t=()=>{e.removeAttribute(N),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 R(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 z(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=z(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 fe(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=R(e),n=null;return(r,i)=>{let a=H(t,r,i);return a===null?(n??=R(e,{includeBlockComponents:!0}),H(n,r,i)):a}}var pe=220,me=24;function he(e){let t=e.viewTop+e.insetTop,n=e.viewBottom-pe;return e.anchorTop>=t&&e.anchorBottom<=n?0:e.anchorTop-(t+me)}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=te(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=he({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 ge=1e4,_e=80,ve=1500,Y=[`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(re(e.docName));let d=!1,f=()=>{if(!d){d=!0,h(),window.clearInterval(g),window.clearTimeout(_);for(let e of Y)window.removeEventListener(e,p,!0)}},p=()=>f(),m=()=>{u()&&n!==null&&Date.now()-n>=ve&&f()},h=a(m),g=window.setInterval(m,_e),_=window.setTimeout(()=>{n===null&&w.error(t?T._({id:`KeXgA-`}):T._({id:`JDQ5I5`})),f()},ge);for(let e of Y)window.addEventListener(e,p,!0);m()}var X=e();function be(){return c().length}function xe(){let e=(0,D.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,D.c)(26),{count:n,docs:r,onDismiss:i}=e,a;t[0]===r?a=t[1]:(a=r===void 0?[]:r,t[0]=r,t[1]=a);let o=a,{_:s}=d();if(n===0)return null;let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=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[2]=c):c=t[2];let l;t[3]===s?l=t[4]:(l=s({id:`2zvUIK`}),t[3]=s,t[4]=l);let f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,X.jsx)(E,{className:`size-3`}),t[5]=f):f=t[5];let v;t[6]!==n||t[7]!==o.length?(v=o.length>1?(0,X.jsx)(u,{id:`5TmrYN`,values:{0:o.length,count:n}}):(0,X.jsx)(u,{id:`eiUA4k`,values:{count:n}}),t[6]=n,t[7]=o.length,t[8]=v):v=t[8];let y;t[9]!==l||t[10]!==v?(y=(0,X.jsx)(h,{asChild:!0,children:(0,X.jsxs)(m,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":l,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:[f,v]})}),t[9]=l,t[10]=v,t[11]=y):y=t[11];let b;t[12]===o?b=t[13]:(b=(0,X.jsx)(g,{className:`max-w-64`,children:o.length>1?(0,X.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:o.map(we)}):(0,X.jsx)(u,{id:`2zvUIK`})}),t[12]=o,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,X.jsxs)(_,{children:[y,b]}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;t[17]===s?S=t[18]:(S=s({id:`pFRz_E`}),t[17]=s,t[18]=S);let C;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,X.jsx)(ne,{className:`size-3`}),t[19]=C):C=t[19];let w;t[20]!==i||t[21]!==S?(w=(0,X.jsx)(m,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":S,onClick:i,className:`size-4 p-0 text-muted-foreground hover:text-foreground`,children:C}),t[20]=i,t[21]=S,t[22]=w):w=t[22];let T;return t[23]!==w||t[24]!==x?(T=(0,X.jsxs)(`span`,{"data-testid":`composer-context-chip-comments`,className:c,children:[x,w]}),t[23]=w,t[24]=x,t[25]=T):T=t[25],T}function we(e){return(0,X.jsxs)(`li`,{className:`flex items-baseline gap-1.5`,children:[(0,X.jsx)(`span`,{className:`tabular-nums`,children:e.count}),(0,X.jsx)(`span`,{className:`truncate`,children:Z(e.docName)})]},e.docName)}function Te(){return s()}function Z(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Q(e,t){let n=e;for(let e of t)n+=typeof e==`number`?`[${e}]`:`.${e}`;return n}function Ee(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=()=>{I({key:t.key,path:t.path,quote:n.quote,start:n.start,end:n.end})||(r+=1,!(r>=De)&&requestAnimationFrame(i))};requestAnimationFrame(i)}var De=30;function Oe(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 ke(e){let t=e.replace(/\s+/g,` `).trimStart();return t.length>$?`…${t.slice(-$)}`:t}function Ae(e){let t=e.replace(/\s+/g,` `).trimEnd();return t.length>$?`${t.slice(0,$)}…`:t}function je(e){if(!e.repeats)return null;let t=ke(e.prefix),n=Ae(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 Me(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=je(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{I as _,Ee as a,E as b,xe as c,q as d,fe as f,le as g,L as h,Q as i,K as l,W as m,Me as n,Oe as o,G as p,Z as r,be as s,Ce as t,J as u,ue as v,M 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:ps-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 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-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 end-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 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-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 end-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:ps-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)(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(`ms-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,C.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function I(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 L(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:ps-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:`ms-auto text-muted-foreground`}),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 R(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,I as f,E as h,O as i,M as l,L as m,A as n,N as o,R as p,D as r,T as s,w as t,P as u};
|