codesesh 1.0.9 → 1.0.10
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/README.md +3 -0
- package/dist/{chunk-MOZLVHCC.js → chunk-2LXZFMSH.js} +10 -2
- package/dist/{chunk-MOZLVHCC.js.map → chunk-2LXZFMSH.js.map} +1 -1
- package/dist/{chunk-5YY675UR.js → chunk-543OWZIC.js} +2 -2
- package/dist/{chunk-CIMPLUT6.js → chunk-56FKVL5K.js} +5 -5
- package/dist/{chunk-QFG33PKR.js → chunk-CYZ6OC6J.js} +2 -2
- package/dist/{chunk-RDTQ2WPR.js → chunk-DWY4HWVI.js} +2 -2
- package/dist/{chunk-ZLU7ODBV.js → chunk-R6QKSHPH.js} +2 -2
- package/dist/{chunk-ZDH2BKQK.js → chunk-WRVILHZR.js} +366 -25
- package/dist/chunk-WRVILHZR.js.map +1 -0
- package/dist/{discovery-MS2ZSMZ5.js → discovery-NTMSA6UE.js} +5 -5
- package/dist/index.js +36 -9
- package/dist/index.js.map +1 -1
- package/dist/project-identity-worker.js +4 -4
- package/dist/scan-refresh-worker.js +6 -6
- package/dist/search-index-worker.js +6 -6
- package/dist/session-detail-worker.js +6 -6
- package/dist/smart-tag-worker.js +3 -3
- package/dist/web/assets/{DetailLanding-Dgb2Qg8H.js → DetailLanding-D1FLK4EW.js} +1 -1
- package/dist/web/assets/{InteractiveReceipt-SckXLiPB.js → InteractiveReceipt-C7FJhzdv.js} +1 -1
- package/dist/web/assets/{OverviewScreen-D44AMeDu.js → OverviewScreen-DX7F_6dH.js} +1 -1
- package/dist/web/assets/{PrismHighlighter-D7JLjKja.js → PrismHighlighter-DZ2CWVc0.js} +1 -1
- package/dist/web/assets/{Projects-DVHOqH2Z.js → Projects-B_7w5TDw.js} +1 -1
- package/dist/web/assets/{SearchResultsPanel-B1WEw9Q5.js → SearchResultsPanel-BMBhKuPS.js} +1 -1
- package/dist/web/assets/SessionDetail-wJYzzF0i.js +53 -0
- package/dist/web/assets/{index-BIpTq_7T.js → index-DUcpWdzX.js} +2 -2
- package/dist/web/icon/agent/minimax-code.svg +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZDH2BKQK.js.map +0 -1
- package/dist/web/assets/SessionDetail-J00I4QfE.js +0 -53
- /package/dist/{chunk-5YY675UR.js.map → chunk-543OWZIC.js.map} +0 -0
- /package/dist/{chunk-CIMPLUT6.js.map → chunk-56FKVL5K.js.map} +0 -0
- /package/dist/{chunk-QFG33PKR.js.map → chunk-CYZ6OC6J.js.map} +0 -0
- /package/dist/{chunk-RDTQ2WPR.js.map → chunk-DWY4HWVI.js.map} +0 -0
- /package/dist/{chunk-ZLU7ODBV.js.map → chunk-R6QKSHPH.js.map} +0 -0
- /package/dist/{discovery-MS2ZSMZ5.js.map → discovery-NTMSA6UE.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-D3jfb0Ew.js";import{j as t,n,t as r}from"./translate-CLoII3EO.js";import{t as i}from"./SmartTagChips-BMP9pPRw.js";import{o as a}from"./session-indexes-3LjxBYNe.js";import{W as o,lt as s}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-D3jfb0Ew.js";import{j as t,n,t as r}from"./translate-CLoII3EO.js";import{t as i}from"./SmartTagChips-BMP9pPRw.js";import{o as a}from"./session-indexes-3LjxBYNe.js";import{W as o,lt as s}from"./index-DUcpWdzX.js";var c=e(),l={recent:`Recent`,title:`Title`,user_message:`User message`,assistant_reply:`Assistant reply`,tool_output:`Tool output`,file_path:`File path`};function u(e,t){let n=[],r=0;for(let{start:i,end:a}of t)i<r||a<=i||a>e.length||(i>r&&n.push(e.slice(r,i)),n.push((0,c.jsx)(`mark`,{children:e.slice(i,a)},`${i}-${a}`)),r=a);return r<e.length&&n.push(e.slice(r)),n}function d({query:e,state:d,agentNameMap:f,agents:p,projects:m,filters:h,onChangeFilters:g,onOpenResult:_,onRetry:v,selectedIndex:y,registerResultRef:b}){n();let x=d.status===`loaded`?d.results:[],S=(0,c.jsx)(s,{agents:p,projects:m,filters:h,onChangeFilters:g});return d.status===`loading`?(0,c.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[S,(0,c.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:r(`Searching…`)}),(0,c.jsx)(`div`,{className:`grid gap-3`,children:Array.from({length:4}).map((e,t)=>(0,c.jsxs)(`div`,{"data-testid":`search-result-skeleton`,className:`rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-4 shadow-[var(--shadow-raised)]`,children:[(0,c.jsx)(`div`,{className:`skeleton-shimmer h-3 w-32 rounded-sm`}),(0,c.jsx)(`div`,{className:`skeleton-shimmer mt-3 h-4 w-2/3 rounded-sm`}),(0,c.jsx)(`div`,{className:`skeleton-shimmer mt-2 h-3 w-full rounded-sm`}),(0,c.jsx)(`div`,{className:`skeleton-shimmer mt-1 h-3 w-5/6 rounded-sm`})]},t))})]}):d.status===`failed`?(0,c.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[S,(0,c.jsxs)(`div`,{className:`rounded-lg border border-[var(--console-error-border)] bg-[var(--console-error-bg)] p-6`,"aria-live":`polite`,children:[(0,c.jsx)(`h2`,{className:`console-display text-[15px] font-semibold text-[var(--console-error)]`,children:r(`Search Failed`)}),(0,c.jsxs)(`p`,{className:`console-mono mt-2 break-words text-xs text-[var(--console-error)]`,children:[d.error,r(`. Check the server connection, then try again.`)]}),(0,c.jsx)(`button`,{type:`button`,onClick:v,className:`console-mono motion-hover motion-press mt-4 rounded-sm border border-[var(--console-error-border)] bg-[var(--console-surface)] px-3 py-1.5 text-xs font-semibold text-[var(--console-error)] hover:bg-[var(--console-error-bg)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none`,children:r(`Retry Search`)})]})]}):x.length===0?(0,c.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[S,(0,c.jsxs)(`div`,{className:`rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-6 shadow-[var(--shadow-raised)]`,children:[(0,c.jsx)(`h2`,{className:`console-display text-[15px] font-semibold text-[var(--console-text)]`,children:r(e?`No matches`:`No recent sessions`)}),e?(0,c.jsxs)(`p`,{className:`console-mono mt-2 text-xs text-[var(--console-muted)]`,children:[r(`Query:`),` `,e]}):null]})]}):(0,c.jsxs)(`div`,{className:`grid gap-3`,children:[S,(0,c.jsx)(`div`,{className:`console-mono text-[11px] text-[var(--console-muted)]`,children:r(`Navigate j k · Open Enter · Exit Esc`)}),x.map((n,s)=>{let d=n.reference.agentName.toLowerCase(),p=f.get(d)??n.reference.agentName,m=`${n.reference.agentName}/${n.reference.sessionId}`,h=s===y,g=!!n.session.parent_reference&&!n.parent;return(0,c.jsxs)(a,{ref:e=>b(m,e),to:t(n.reference),state:{searchQuery:e},onClick:_,"data-selected":h?`true`:void 0,className:`rounded-lg border bg-[var(--console-surface)] p-4 shadow-[var(--shadow-raised)] motion-hover hover:border-[var(--console-border-strong)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none ${h?`border-[var(--brand)]`:`border-[var(--console-border)]`}`,children:[(0,c.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,c.jsx)(`span`,{className:`console-mono rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-1.5 py-0.5 text-[10px] uppercase text-[var(--console-muted)]`,children:p}),(0,c.jsx)(`span`,{className:`console-mono rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] px-1.5 py-0.5 text-[10px] uppercase text-[var(--console-muted)]`,children:r(l[n.matchType])}),g?(0,c.jsx)(`span`,{className:`console-mono rounded-sm border border-[var(--console-border-strong)] px-1.5 py-0.5 text-[10px] text-[var(--console-muted)]`,children:r(`Unmounted`)}):null,(0,c.jsx)(`span`,{className:`console-mono text-[11px] text-[var(--console-muted)]`,children:n.session.directory})]}),n.parent?(0,c.jsx)(`p`,{className:`console-mono mt-3 line-clamp-1 text-[11px] text-[var(--console-muted)]`,children:n.parent.title}):null,(0,c.jsxs)(`h2`,{className:`text-[13px] font-semibold text-[var(--console-text)] ${n.parent?`mt-1 flex items-center gap-1.5 pl-3`:`mt-3`}`,children:[n.parent?(0,c.jsx)(`span`,{"aria-hidden":`true`,className:`console-mono text-[var(--brand)]`,children:`›`}):null,o(n.session)]}),(0,c.jsx)(i,{tags:n.session.smart_tags,className:`mt-2`}),(0,c.jsx)(`p`,{className:`mt-2 text-xs leading-6 text-[var(--console-text-secondary)]`,children:u(n.snippet||o(n.session),n.snippet?n.snippetHighlights:[])})]},m)})]})}export{d as SearchResultsPanel};
|