claude-code-session-manager 0.130.0 → 0.130.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentLibrary-ctvNes4y.js → AgentLibrary-Bfj862qf.js} +1 -1
- package/dist/assets/{AppSettings-C03qTDSi.js → AppSettings-Bpwynea4.js} +1 -1
- package/dist/assets/{Button-fOCJry21.js → Button-DSoqrxCB.js} +1 -1
- package/dist/assets/{Extensions-BWiDwigT.js → Extensions-BziIutWV.js} +3 -3
- package/dist/assets/{History-BIQFPXM8.js → History-DzMo9Otn.js} +1 -1
- package/dist/assets/{Library-BGmD-xZN.js → Library-C5wKMTSn.js} +1 -1
- package/dist/assets/{ListDetail-BeO3lY8t.js → ListDetail-DDQ1S0yu.js} +1 -1
- package/dist/assets/{Memory-BeXuYIcE.js → Memory-Bq5T33d2.js} +1 -1
- package/dist/assets/{Panel-OUbLHNsS.js → Panel-B-3NWUlv.js} +1 -1
- package/dist/assets/{ProvenanceBadge-kr7arZqu.js → ProvenanceBadge-CUChwz4Z.js} +1 -1
- package/dist/assets/{Scheduler-DycegnjH.js → Scheduler-CkGHMXvo.js} +1 -1
- package/dist/assets/{Settings-BSq6VASG.js → Settings-DGxvyajs.js} +1 -1
- package/dist/assets/{SkillReferenceGraph-CvPdxg56.js → SkillReferenceGraph-C6JEdypC.js} +1 -1
- package/dist/assets/{SourceChip-C2YMnlV8.js → SourceChip-DcBNYYhe.js} +1 -1
- package/dist/assets/{SystemPrompt-fpXEK_Rm.js → SystemPrompt-CfozyVQx.js} +1 -1
- package/dist/assets/{TiptapBody-DusJg0je.js → TiptapBody-DiVYC-_O.js} +1 -1
- package/dist/assets/{Toggle-BnJF4V6k.js → Toggle-Cs3k6I96.js} +1 -1
- package/dist/assets/{ViewTabs-BYrRSHb6.js → ViewTabs-DFXH03tb.js} +1 -1
- package/dist/assets/{VoiceButton-Bk66E-fP.js → VoiceButton-C3NLotUZ.js} +1 -1
- package/dist/assets/{historyTotals-DnuVADtI.js → historyTotals-f-E0L9Xw.js} +1 -1
- package/dist/assets/{index-DfWJO7nP.js → index-CuAfFXNd.js} +304 -304
- package/dist/index.html +1 -1
- package/dist-web/app.js +339 -339
- package/package.json +1 -1
- package/src/main/build-info.json +4 -4
- package/src/main/lib/activeSessions.cjs +6 -2
- package/src/main/promptSessionsIpc.cjs +39 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aJ as a,b3 as g,at as e,a7 as M,a$ as B,b8 as $,ar as z,as as H,aX as J,ab as V,f as W,i as U,s as A,r as F,j as X,ae as q,b9 as G,C as K,l as I,ad as Q}from"./index-
|
|
1
|
+
import{aJ as a,b3 as g,at as e,a7 as M,a$ as B,b8 as $,ar as z,as as H,aX as J,ab as V,f as W,i as U,s as A,r as F,j as X,ae as q,b9 as G,C as K,l as I,ad as Q}from"./index-CuAfFXNd.js";import{P as Y}from"./Panel-B-3NWUlv.js";import{S as Z,I as ee}from"./Library-C5wKMTSn.js";import{S as te}from"./SourceChip-DcBNYYhe.js";import"./monaco-editor-BsIlgG7c.js";import"./Button-DSoqrxCB.js";const se=300;function re({activePath:r,selectedPath:s,onSelect:n}){const[u,t]=a.useState([]),p=a.useRef(0),N=a.useRef(n);N.current=n;const j=g(i=>{var o;return r?(o=i.files[r])==null?void 0:o.diskRaw:void 0}),m=a.useRef(null);if(a.useEffect(()=>{N.current(null)},[r]),a.useEffect(()=>{if(p.current+=1,!r){m.current=null,t([]);return}const i=m.current!==r;m.current=r;let o=!1;const f=()=>{p.current+=1;const h=p.current;window.api.config.parseImports(r).then(b=>{o||p.current!==h||(b.ok?t(b.imports):(t([]),B.error(b.error||"failed to parse @-imports")))})},y=i?null:setTimeout(f,se);return i&&f(),()=>{o=!0,y&&clearTimeout(y)}},[r,j]),u.length===0||!r)return null;const d=s===r||s===null;return e.jsxs("div",{className:"w-64 shrink-0 border-r border-line bg-bg-elev overflow-auto","data-testid":"referenced-files-rail",children:[e.jsxs("div",{className:"px-3 py-2 text-[10px] uppercase tracking-wide text-fg-faint border-b border-line",children:["Documents · ",u.length+1]}),e.jsxs("button",{type:"button",onClick:()=>n(null),"aria-current":d,"data-testid":"referenced-file-root",className:`w-full text-left px-3 py-2 border-b border-line ${d?"bg-bg-hi text-fg":"text-fg-dim hover:bg-bg"}`,children:[e.jsx("div",{className:"text-[11.5px] font-medium truncate",children:M(r)}),e.jsx("div",{className:"text-[10px] text-fg-faint truncate",title:r,children:"this system prompt"})]}),u.map(i=>{const o=!i.ok||!i.exists,f=s===i.path;return e.jsxs("button",{type:"button",onClick:()=>n(i),"aria-current":f,"data-testid":"referenced-file-row",className:`w-full text-left px-3 py-2 border-b border-line last:border-b-0 ${f?"bg-bg-hi text-fg":"text-fg-dim hover:bg-bg"}`,children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[11.5px] font-medium truncate flex-1",children:M(i.path)}),o&&e.jsx("span",{className:"shrink-0 px-1.5 py-0.5 rounded text-[9px] uppercase tracking-wide text-amber-400/90 border border-amber-400/30","data-testid":"referenced-file-missing",children:"missing"})]}),e.jsx("div",{className:"text-[10px] text-fg-faint truncate",title:i.path,children:i.path}),e.jsxs("div",{className:"text-[10px] text-fg-faint",children:[i.sizeBytes.toLocaleString()," bytes · ~",i.tokenEstimate.toLocaleString()," tokens"]})]},i.path)})]})}function ne({path:r,value:s,onChange:n,onSave:u,readOnly:t,defaultMode:p,headerRight:N,hideStatusBar:j}){const m=$(),d=z(r),i=H(r),o=J(r),[f,y]=a.useState(()=>t&&i?"preview":p??V(r)),[h,b]=a.useState(!0),[D,v]=a.useState(null),C=a.useRef(null),k=a.useRef(null),x=a.useCallback(c=>{C.current=c},[]),S=a.useCallback(()=>C.current,[]),R=t?i?["preview","edit"]:[]:o?["edit","preview","split"]:i?["edit","preview"]:[],w=i?f:"edit",E=e.jsx(W,{path:r,name:M(r),value:s,onChange:n,onSave:()=>u==null?void 0:u(),onReady:x,onCursor:v,readOnly:t});return e.jsxs("div",{className:"flex flex-col h-full min-h-0","data-testid":"document-editor-pane",children:[e.jsxs("div",{className:"flex items-center gap-1 px-2 h-7 shrink-0 border-b border-line bg-bg-elev",children:[e.jsx("span",{className:"text-[11px] font-medium text-fg truncate",children:M(r)}),t&&e.jsx("span",{className:"ml-1 px-1.5 py-0.5 rounded text-[9px] uppercase tracking-wide text-fg-faint border border-line",children:"read-only"}),e.jsx("div",{className:"flex-1"}),N,d&&(w==="preview"||w==="split")&&e.jsx("button",{onClick:()=>b(c=>!c),"data-testid":"document-outline-toggle",className:`px-2 py-0.5 text-[10px] border border-line rounded ${h?"bg-bg-hi text-fg":"text-fg-faint hover:text-fg"}`,title:"Toggle document outline",children:"Outline"}),R.length>0&&e.jsx("div",{className:"flex items-center ml-1 rounded border border-line overflow-hidden","data-testid":"document-mode-toggle",children:R.map(c=>e.jsx("button",{onClick:()=>y(c),className:`px-2 py-0.5 text-[10px] capitalize transition-colors ${w===c?"bg-bg-hi text-fg":"text-fg-faint hover:text-fg"}`,children:c},c))})]}),e.jsx("div",{className:"flex-1 min-h-0",children:w==="split"&&d?e.jsxs("div",{className:"flex h-full",children:[h&&e.jsx(U,{text:s,scrollRef:k}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col border-r border-line",children:[!t&&e.jsx(A,{getEditor:S}),e.jsx("div",{className:"flex-1 min-h-0",children:E})]}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(F,{ref:k,text:s,flush:!0,wideMeasure:m.wideMeasure})})]}):w==="preview"&&d?e.jsxs("div",{className:"flex h-full",children:[h&&e.jsx(U,{text:s,scrollRef:k}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(F,{ref:k,text:s,wideMeasure:m.wideMeasure})})]}):d?e.jsxs("div",{className:"flex flex-col h-full",children:[!t&&e.jsx(A,{getEditor:S}),e.jsx("div",{className:"flex-1 min-h-0",children:E})]}):E}),!j&&e.jsx(X,{text:s,cursor:D,language:q(r)||void 0})]})}const O={title:"User system prompt",body:"This is the real ~/.claude/CLAUDE.md on disk — the instructions the claude CLI loads into every session it starts on this machine, in every project. A project's own CLAUDE.md / CLAUDE.local.md are read from that project's directory when a session launches there; they are not edited here."};function le(){const r=G(),s=a.useMemo(()=>r?K.resolve("user",r,null):null,[r]),[n,u]=a.useState(null),t=(n==null?void 0:n.path)??s,[p,N]=a.useState({});a.useEffect(()=>{const l=n==null?void 0:n.path;if(!l||!n.ok||!n.exists)return;let L=!0;return Promise.resolve().then(()=>window.api.config.canWrite(l)).then(P=>{L&&N(_=>({..._,[l]:P===!1}))}).catch(()=>{}),()=>{L=!1}},[n]);const j=!!n&&p[n.path]===!0,m=!!n&&(!n.ok||!n.exists||j),d=g(l=>l.files),i=g(l=>l.loadText),o=g(l=>l.setDraft),f=g(l=>l.saveText),y=g(l=>l.revert),h=g(l=>l.watchFile),b=g(l=>l.unwatchFile);a.useEffect(()=>{if(s)return i(s,!0),h(s),()=>{b(s)}},[s]),a.useEffect(()=>{if(!(!t||t===s))return i(t,!0),h(t),()=>{b(t)}},[t,s]);const[D,v]=a.useState(null),C=a.useCallback(l=>{v(null),u(l)},[]);if(!r)return e.jsx(I,{title:"loading…"});const k=s?d[s]:null,x=t?d[t]:null,S=(x==null?void 0:x.draftRaw)??"",R=Q(S),w=S.length,E=m&&!j,c=m,T=async()=>{if(!t)return;v(null);const l=await f(t);l.ok||v(l.error??"save failed")};return e.jsx(Y,{toolbar:e.jsxs(e.Fragment,{children:[s&&e.jsx(ee,{path:s,disabled:!!n}),e.jsx("span",{className:"mx-2 text-fg-faint",children:"·"}),e.jsx("span",{className:"text-fg-dim",children:"User scope"}),e.jsx("span",{className:"ml-3 text-fg-faint truncate",children:t??"—"}),s&&e.jsx("span",{className:"ml-3",children:e.jsx(te,{path:s})}),e.jsx("div",{className:"flex-1"}),e.jsxs("span",{className:"text-fg-faint",children:[w.toLocaleString()," chars · ~",R.toLocaleString()," tokens"]})]}),footer:t&&x&&!c?e.jsx(Z,{dirty:x.dirty,busy:x.busy,parseError:D,lastSavedAt:x.lastSavedAt,leading:x.exists?n?e.jsx("span",{children:"editing an imported file"}):null:e.jsx("span",{children:"file will be created on save"}),onSave:T,onRevert:()=>{v(null),y(t)}}):null,children:s&&k?e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{"data-testid":"system-prompt-scope-note",className:"shrink-0 border-b border-line bg-bg-elev px-3 py-2 text-[11.5px] leading-snug",children:[e.jsx("span",{className:"font-semibold text-fg",children:O.title}),e.jsx("span",{className:"mx-1.5 text-fg-faint",children:"·"}),e.jsx("span",{className:"text-fg-dim",children:O.body}),e.jsx("span",{className:"ml-1.5 font-mono text-fg-faint",children:s})]}),e.jsxs("div",{className:"flex-1 min-h-0 flex",children:[e.jsx(re,{activePath:s,selectedPath:t,onSelect:C}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[E&&e.jsx("div",{"data-testid":"system-prompt-missing-note",className:"shrink-0 border-b border-line bg-bg-elev px-3 py-1.5 text-[11px] text-amber-400/90",children:"This import does not resolve to a readable file — the CLI will skip it."}),j&&n&&e.jsxs("div",{"data-testid":"system-prompt-readonly-note",className:"shrink-0 border-b border-line bg-bg-elev px-3 py-1.5 text-[11px] text-amber-400/90",children:["Read-only: ",e.jsx("span",{className:"font-mono",children:n.path})," is outside the folders Session Manager may write to."]}),t&&e.jsx("div",{className:"flex-1 min-h-0",children:e.jsx(ne,{path:t,value:S,readOnly:c,defaultMode:"split",onChange:l=>{v(null),o(t,l)},onSave:()=>{T()}},t)})]})]})]}):e.jsx(I,{title:"resolving…"})})}const ue=a.memo(le);export{ue as SystemPrompt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as aa,aJ as G,R as Pt,at as R,G as Nf,aq as If,a5 as Rf}from"./index-
|
|
1
|
+
import{aO as aa,aJ as G,R as Pt,at as R,G as Nf,aq as If,a5 as Rf}from"./index-CuAfFXNd.js";import"./monaco-editor-BsIlgG7c.js";var zi={exports:{}},$i={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.js
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{at as r}from"./index-
|
|
1
|
+
import{at as r}from"./index-CuAfFXNd.js";function a({checked:t,onChange:e,label:n,disabled:s}){return r.jsxs("label",{className:`inline-flex items-center gap-2 text-xs ${s?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:[r.jsx("button",{type:"button",role:"switch","aria-checked":t,disabled:s,onClick:()=>!s&&e(!t),className:`relative w-7 h-4 rounded-full transition-colors ${t?"bg-accent":"bg-bg-hi border border-line"}`,children:r.jsx("span",{className:`absolute top-0.5 w-3 h-3 rounded-full bg-fg transition-transform ${t?"translate-x-3.5":"translate-x-0.5"}`})}),n&&r.jsx("span",{className:"text-fg-dim",children:n})]})}export{a as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{at as t}from"./index-
|
|
1
|
+
import{at as t}from"./index-CuAfFXNd.js";function n({options:r,active:o,onChange:i}){return t.jsx("div",{className:"flex rounded border border-line overflow-hidden",children:r.map(({key:e,label:s})=>t.jsx("button",{onClick:()=>i(e),className:`px-2 py-0.5 text-xs ${o===e?"bg-bg-hi text-fg":"text-fg-dim hover:text-fg hover:bg-bg-hi"}`,children:s},e))})}export{n as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bn as o,bl as m,a8 as j,at as e,aS as l,bk as b,aw as R}from"./index-
|
|
1
|
+
import{bn as o,bl as m,a8 as j,at as e,aS as l,bk as b,aw as R}from"./index-CuAfFXNd.js";let u=0;const T=1e3;function w(n){const s=performance.now();s-u<T||(u=s,R.debug("voice","mic.gate.click_rejected",{reason:n}))}function y(){const n=o(t=>t.isRecording),s=o(t=>t.error),i=o(t=>t.loadingProgress),r=o(m(l)),x=()=>{const t=o.getState(),{canRecord:h,reason:a}=l(t);if(t.isRecording)return t.stopRecording();if(t.wizardArmed&&!t.wizardOpen){t.openWizard();return}if(a==="error"||a==="load-timeout"){t.resetAndRetryModel();return}if(!h)return w(a);const c=b.getState().activeTabId;c&&t.startRecording(c)},d=j(r.reason,{loadingPct:i,errorMessage:s,isRecording:n}),g=r.reason==="unsupported",p=!r.canRecord,f=r.reason==="loading"?"text-fg-faint animate-pulse cursor-wait":r.reason==="error"||r.reason==="load-timeout"?"text-red-400 cursor-pointer":r.reason==="permission-denied"?"text-amber-400 cursor-pointer":r.reason==="idle"?"text-fg-faint cursor-pointer":r.reason==="unsupported"?"text-fg-faint cursor-not-allowed":n?"text-red-400 ring-2 ring-red-400 animate-pulse":"text-fg-dim hover:text-fg";return e.jsx("button",{onClick:x,disabled:g,"aria-disabled":p,"aria-label":d,title:d,"data-testid":"mic-button","data-state":r.reason,className:`p-1.5 rounded transition-colors ${f}`,children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"9",y:"1",width:"6",height:"12",rx:"3"}),e.jsx("path",{d:"M5 10a7 7 0 0 0 14 0"}),e.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"}),e.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"})]})})}function v(){const n=o(i=>i.ttsEnabled),s=o(i=>i.toggleTTS);return e.jsxs("button",{onClick:s,title:n?"Read Claude replies aloud: ON":"Read Claude replies aloud: OFF",className:`px-1.5 py-1 rounded transition-colors flex items-center gap-1 ${n?"text-accent":"text-fg-dim hover:text-fg"}`,children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),n?e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),e.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]}):e.jsxs(e.Fragment,{children:[e.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),e.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})]}),e.jsx("span",{className:"text-[10px] font-medium tracking-wide",children:"TTS"})]})}export{v as T,y as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bq as s}from"./index-
|
|
1
|
+
import{bq as s}from"./index-CuAfFXNd.js";function a(t){const e=Number.isFinite(t)?t:0,r=Math.abs(e)<1?4:2;return`$${e.toFixed(r)}`}function u(t){const e=Number.isFinite(t)?t:0,r=Math.abs(e);return r>=1e9?`${(e/1e9).toFixed(1)}B`:r>=1e6?`${(e/1e6).toFixed(1)}M`:r>=1e3?`${(e/1e3).toFixed(1)}K`:`${Math.round(e)}`}function f(t){const e=Number.isFinite(t)?t:0;return Math.round(e).toLocaleString("en-US")}function m(t){const e=Math.max(0,Math.round(Number.isFinite(t)?t:0));if(e<60)return`${e}m`;const r=Math.floor(e/60),n=e%60;return n===0?`${r}h`:`${r}h ${n}m`}function h(t){return Number.isFinite(t)?t>0&&t<1?"<1%":`${t.toFixed(1)}%`:"0.0%"}async function l(t,e=5e3){try{return{ok:!0,data:await s(Promise.resolve().then(()=>window.api.history.dashboard({rangeDays:t})),e,"history.dashboard")}}catch(r){return{ok:!1,error:r instanceof Error?r.message:String(r)}}}function c(t){return`${a(t.costUsd)} · ${u(t.tokens)} tok`}function b(t,e){const r=e!=null&&e.day?t.days.filter(o=>o.date===e.day).flatMap(o=>Object.values(o.byProject)):[t.totals];let n=0,i=0;for(const o of r)n+=o.estimatedCostUsd,i+=o.inputTokens+o.outputTokens+o.cacheReadTokens+o.cacheCreationTokens;return{costUsd:n,tokens:i,label:c({costUsd:n,tokens:i})}}export{c as a,l as f,f as i,m,h as p,b as s,u as t,a as u};
|