@vibelet/cli 1.2.190 → 1.2.192

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 (26) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/inventory-scan-worker.cjs +1 -1
  3. package/dist/runtime-version.cjs +1 -1
  4. package/dist/tailcat/vibelet-tailcat-darwin-amd64 +0 -0
  5. package/dist/tailcat/vibelet-tailcat-darwin-arm64 +0 -0
  6. package/dist/tailcat/vibelet-tailcat-linux-amd64 +0 -0
  7. package/dist/tailcat/vibelet-tailcat-linux-arm64 +0 -0
  8. package/dist/tailcat/vibelet-tailcat-win32-amd64.exe +0 -0
  9. package/dist/tailcat/vibelet-tailcat-win32-arm64.exe +0 -0
  10. package/dist/vibelet.mjs +18 -12
  11. package/dist/web/assets/{App-DASv9GGS.js → App-B3LwKWyA.js} +9 -9
  12. package/dist/web/assets/{ArchiveSyncPanel-BcKfVT49.js → ArchiveSyncPanel-C-Tbn1vV.js} +1 -1
  13. package/dist/web/assets/{ConnectionSettingsPanel-DQBEBng6.js → ConnectionSettingsPanel-CX75MnTZ.js} +1 -1
  14. package/dist/web/assets/{DaemonSettingsPanel-BBVWzRl3.js → DaemonSettingsPanel-D03ppR7J.js} +1 -1
  15. package/dist/web/assets/{DiffDrawer-CdTSA2mo.js → DiffDrawer-C0RXtX50.js} +1 -1
  16. package/dist/web/assets/{FilesControlPanel-HIuHTgVJ.js → FilesControlPanel-CtJsAPhT.js} +2 -2
  17. package/dist/web/assets/{LanguageSettingsPanel-jIZ0c8Pt.js → LanguageSettingsPanel-DlASFe3l.js} +1 -1
  18. package/dist/web/assets/{NotificationSettingsPanel-DcZxLYYl.js → NotificationSettingsPanel-D9gyyx_f.js} +1 -1
  19. package/dist/web/assets/{SavedTargetsPanel-DWDhYuUH.js → SavedTargetsPanel-DUWF6KsZ.js} +1 -1
  20. package/dist/web/assets/{ThemeSettingsPanel-na6n39Ea.js → ThemeSettingsPanel-eRcoNRN_.js} +1 -1
  21. package/dist/web/assets/{file-text-D0U66V5d.js → file-text-DQlA2X1a.js} +1 -1
  22. package/dist/web/assets/{highlighted-body-TPN3WLV5-WUXG77Uc.js → highlighted-body-TPN3WLV5-CAoiz3gR.js} +1 -1
  23. package/dist/web/assets/{index-9EF9r07v.js → index-D8gFpCtl.js} +1 -1
  24. package/dist/web/assets/{mermaid-O7DHMXV3-C6asakbE.js → mermaid-O7DHMXV3-D1Gq7e8w.js} +3 -3
  25. package/dist/web/index.html +1 -1
  26. package/package.json +1 -1
@@ -1 +1 @@
1
- import{c as a,j as e,D as p}from"./index-9EF9r07v.js";const u=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],x=a("archive-restore",u);const v=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],k=a("git-merge",v);const m=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],S=a("upload",m);function g({busy:n,connected:s,dismissed:r,feedback:i,synced:o,t:c,onPull:h,onPushMerge:l,onPushReplace:y,onSkip:d}){const t=!s||n!==null;return e.jsxs("section",{className:"control-section compact-section archive-sync-panel",children:[e.jsx("h2",{children:c.archiveSyncTitle}),e.jsx("p",{className:"empty-copy",children:o?c.archiveSyncSynced:r?c.archiveSyncSkippedState:c.archiveSyncBody}),e.jsxs("div",{className:"action-grid archive-sync-actions",children:[e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:l,type:"button",children:[e.jsx(k,{"aria-hidden":"true"}),n==="pushMerge"?c.archiveSyncSyncing:c.archiveSyncPushMerge]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:h,type:"button",children:[e.jsx(p,{"aria-hidden":"true"}),n==="pull"?c.archiveSyncSyncing:c.archiveSyncPull]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:y,type:"button",children:[e.jsx(S,{"aria-hidden":"true"}),n==="pushReplace"?c.archiveSyncSyncing:c.archiveSyncPushReplace]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:d,type:"button",children:[e.jsx(x,{"aria-hidden":"true"}),c.archiveSyncSkip]})]}),i?e.jsx("p",{className:`empty-copy ${i.tone==="error"?"error-copy":"success-copy"}`,children:i.message}):null]})}export{g as ArchiveSyncPanel};
1
+ import{c as a,j as e,D as p}from"./index-D8gFpCtl.js";const u=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],x=a("archive-restore",u);const v=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],k=a("git-merge",v);const m=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],S=a("upload",m);function g({busy:n,connected:s,dismissed:r,feedback:i,synced:o,t:c,onPull:h,onPushMerge:l,onPushReplace:y,onSkip:d}){const t=!s||n!==null;return e.jsxs("section",{className:"control-section compact-section archive-sync-panel",children:[e.jsx("h2",{children:c.archiveSyncTitle}),e.jsx("p",{className:"empty-copy",children:o?c.archiveSyncSynced:r?c.archiveSyncSkippedState:c.archiveSyncBody}),e.jsxs("div",{className:"action-grid archive-sync-actions",children:[e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:l,type:"button",children:[e.jsx(k,{"aria-hidden":"true"}),n==="pushMerge"?c.archiveSyncSyncing:c.archiveSyncPushMerge]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:h,type:"button",children:[e.jsx(p,{"aria-hidden":"true"}),n==="pull"?c.archiveSyncSyncing:c.archiveSyncPull]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:y,type:"button",children:[e.jsx(S,{"aria-hidden":"true"}),n==="pushReplace"?c.archiveSyncSyncing:c.archiveSyncPushReplace]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:d,type:"button",children:[e.jsx(x,{"aria-hidden":"true"}),c.archiveSyncSkip]})]}),i?e.jsx("p",{className:`empty-copy ${i.tone==="error"?"error-copy":"success-copy"}`,children:i.message}):null]})}export{g as ArchiveSyncPanel};
@@ -1 +1 @@
1
- import{j as e}from"./index-9EF9r07v.js";import{K as o}from"./App-DASv9GGS.js";function l({pairing:s,phase:d,t:n,onForgetPairing:t}){const c=d==="connected"?"connected":s?d:n.notPaired;return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:n.currentDevice}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:n.daemon}),e.jsx("dd",{children:s?.displayName??s?.daemonId??n.notPaired})]}),e.jsxs("div",{children:[e.jsx("dt",{children:n.status}),e.jsx("dd",{children:c})]})]}),e.jsx("div",{className:"action-grid",children:e.jsxs("button",{className:"danger-button",disabled:!s,onClick:t,type:"button",children:[e.jsx(o,{"aria-hidden":"true"}),n.forget]})})]})}export{l as ConnectionSettingsPanel};
1
+ import{j as e}from"./index-D8gFpCtl.js";import{K as o}from"./App-B3LwKWyA.js";function l({pairing:s,phase:d,t:n,onForgetPairing:t}){const c=d==="connected"?"connected":s?d:n.notPaired;return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:n.currentDevice}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:n.daemon}),e.jsx("dd",{children:s?.displayName??s?.daemonId??n.notPaired})]}),e.jsxs("div",{children:[e.jsx("dt",{children:n.status}),e.jsx("dd",{children:c})]})]}),e.jsx("div",{className:"action-grid",children:e.jsxs("button",{className:"danger-button",disabled:!s,onClick:t,type:"button",children:[e.jsx(o,{"aria-hidden":"true"}),n.forget]})})]})}export{l as ConnectionSettingsPanel};
@@ -1 +1 @@
1
- import{j as n,D as h}from"./index-9EF9r07v.js";import{R as j}from"./App-DASv9GGS.js";function a({connected:r,metadata:s,showUpdate:o,updateBusy:l,restartBusy:i,t:e,updateStatus:c,onUpdate:d,onRestart:t}){const x=s.version&&s.latestVersion&&o?`${s.version} -> ${s.latestVersion}`:s.version||e.unknown;return n.jsxs("section",{className:"control-section compact-section",children:[n.jsx("h2",{children:e.desktopConnector}),n.jsx("dl",{children:n.jsxs("div",{children:[n.jsx("dt",{children:e.version}),n.jsx("dd",{children:s.loading?e.checking:x})]})}),n.jsxs("div",{className:"action-grid",children:[o?n.jsxs("button",{className:"primary-button",disabled:!r||l||i,onClick:d,type:"button",children:[n.jsx(h,{"aria-hidden":"true"}),l?e.updating:e.update]}):null,n.jsxs("button",{className:"danger-button",disabled:!r||i,onClick:t,type:"button",children:[n.jsx(j,{"aria-hidden":"true"}),i?e.restarting:e.restart]})]}),s.error?n.jsx("p",{className:"empty-copy",children:s.error}):null,c?n.jsx("p",{className:"empty-copy",children:c}):null]})}export{a as DaemonSettingsPanel};
1
+ import{j as n,D as h}from"./index-D8gFpCtl.js";import{R as j}from"./App-B3LwKWyA.js";function a({connected:r,metadata:s,showUpdate:o,updateBusy:l,restartBusy:i,t:e,updateStatus:c,onUpdate:d,onRestart:t}){const x=s.version&&s.latestVersion&&o?`${s.version} -> ${s.latestVersion}`:s.version||e.unknown;return n.jsxs("section",{className:"control-section compact-section",children:[n.jsx("h2",{children:e.desktopConnector}),n.jsx("dl",{children:n.jsxs("div",{children:[n.jsx("dt",{children:e.version}),n.jsx("dd",{children:s.loading?e.checking:x})]})}),n.jsxs("div",{className:"action-grid",children:[o?n.jsxs("button",{className:"primary-button",disabled:!r||l||i,onClick:d,type:"button",children:[n.jsx(h,{"aria-hidden":"true"}),l?e.updating:e.update]}):null,n.jsxs("button",{className:"danger-button",disabled:!r||i,onClick:t,type:"button",children:[n.jsx(j,{"aria-hidden":"true"}),i?e.restarting:e.restart]})]}),s.error?n.jsx("p",{className:"empty-copy",children:s.error}):null,c?n.jsx("p",{className:"empty-copy",children:c}):null]})}export{a as DaemonSettingsPanel};
@@ -1,2 +1,2 @@
1
- import{r as l,j as e}from"./index-9EF9r07v.js";import{u as C,X as F}from"./App-DASv9GGS.js";import{F as W}from"./file-text-D0U66V5d.js";const E={loading:!1,files:null,error:null};function q({client:t,sessionId:f,sessionTitle:x,t:i,onClose:o}){const h=l.useRef(null),j=C(o,h),[n,w]=l.useState("unstaged"),[d,g]=l.useState({unstaged:E,staged:E}),[u,y]=l.useState(null),[p,b]=l.useState(null),[k,N]=l.useState(!1),[S,m]=l.useState(null),c=d[n],v=l.useCallback(async s=>{g(a=>({...a,[s]:{loading:!0,files:a[s].files,error:null}}));try{const a=await t.request({action:"session.gitDiff.list",id:t.makeId("gitDiffList"),sessionId:f,scope:s});g(r=>({...r,[s]:{loading:!1,files:a.files,error:null}}))}catch(a){g(r=>({...r,[s]:{loading:!1,files:null,error:a instanceof Error?a.message:String(a)}}))}},[t,f]);l.useEffect(()=>{!d[n].files&&!d[n].loading&&!d[n].error&&v(n)},[n,d,v]),l.useEffect(()=>{y(null),b(null),m(null)},[n]),l.useEffect(()=>{if(!u){b(null),m(null);return}let s=!1;return N(!0),m(null),t.request({action:"session.gitDiff.file",id:t.makeId("gitDiffFile"),sessionId:f,scope:n,path:u}).then(a=>{s||(b(a),N(!1))}).catch(a=>{s||(m(a instanceof Error?a.message:String(a)),N(!1))}),()=>{s=!0}},[t,f,n,u]);const P=l.useMemo(()=>{const s=a=>a?a.reduce((r,D)=>({adds:r.adds+D.additions,dels:r.dels+D.deletions,count:r.count+1}),{adds:0,dels:0,count:0}):{adds:0,dels:0,count:0};return{unstaged:s(d.unstaged.files),staged:s(d.staged.files)}},[d]);return e.jsxs("div",{"aria-labelledby":"diff-drawer-title","aria-modal":"true",className:"diff-drawer",ref:j,role:"dialog",tabIndex:-1,children:[e.jsx("div",{className:"diff-drawer-backdrop",onClick:o,"aria-hidden":"true"}),e.jsxs("div",{className:"diff-drawer-panel",children:[e.jsxs("header",{className:"diff-drawer-header",children:[e.jsxs("div",{children:[e.jsx("strong",{id:"diff-drawer-title",children:i.changes}),e.jsx("span",{children:x})]}),e.jsx("button",{"aria-label":i.closeChanges,className:"icon-button",onClick:o,ref:h,type:"button",children:e.jsx(F,{"aria-hidden":"true"})})]}),e.jsx("div",{className:"diff-tabs",role:"tablist",children:["unstaged","staged"].map(s=>{const a=P[s],r=n===s;return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,className:`diff-tab ${r?"active":""}`,onClick:()=>w(s),children:[e.jsx("span",{className:"diff-tab-label",children:s==="unstaged"?i.workingChanges:i.stagedChanges}),a.count>0?e.jsxs("span",{className:"diff-tab-meta",children:[e.jsxs("span",{className:"diff-add",children:["+",a.adds]}),e.jsxs("span",{className:"diff-del",children:["-",a.dels]})]}):null]},s)})}),e.jsxs("div",{className:"diff-body",children:[e.jsxs("aside",{className:"diff-files","aria-label":i.changedFiles,children:[c.loading&&!c.files?e.jsx("p",{className:"diff-empty",children:i.loading}):null,c.error?e.jsx("p",{className:"diff-empty diff-error",children:c.error}):null,c.files&&c.files.length===0?e.jsx("p",{className:"diff-empty",children:i.noChanges}):null,c.files?.map(s=>e.jsxs("button",{type:"button",className:`diff-file ${u===s.path?"active":""}`,onClick:()=>y(s.path),children:[e.jsx("span",{className:`diff-status diff-status-${s.status}`,children:s.status}),e.jsx("span",{className:"diff-file-path",title:s.path,children:s.path}),e.jsxs("span",{className:"diff-file-stats",children:[s.binary?e.jsx("span",{className:"diff-binary",children:"bin"}):null,!s.binary&&s.additions>0?e.jsxs("span",{className:"diff-add",children:["+",s.additions]}):null,!s.binary&&s.deletions>0?e.jsxs("span",{className:"diff-del",children:["-",s.deletions]}):null]})]},s.path))]}),e.jsx("section",{className:"diff-patch","aria-label":i.fileDiff,children:u?k?e.jsx("p",{className:"diff-empty",children:i.loadingPatch}):S?e.jsx("p",{className:"diff-empty diff-error",children:S}):p?.binary?e.jsx("p",{className:"diff-empty",children:i.binaryDiffUnavailable}):p?e.jsx(T,{patch:p.patch,truncated:p.truncated,truncatedLabel:i.patchTruncated}):null:e.jsxs("div",{className:"diff-empty",children:[e.jsx(W,{"aria-hidden":"true"}),e.jsx("p",{children:i.selectFileForDiff})]})})]})]})]})}function T({patch:t,truncated:f,truncatedLabel:x}){const i=l.useMemo(()=>t.split(`
1
+ import{r as l,j as e}from"./index-D8gFpCtl.js";import{u as C,X as F}from"./App-B3LwKWyA.js";import{F as W}from"./file-text-DQlA2X1a.js";const E={loading:!1,files:null,error:null};function q({client:t,sessionId:f,sessionTitle:x,t:i,onClose:o}){const h=l.useRef(null),j=C(o,h),[n,w]=l.useState("unstaged"),[d,g]=l.useState({unstaged:E,staged:E}),[u,y]=l.useState(null),[p,b]=l.useState(null),[k,N]=l.useState(!1),[S,m]=l.useState(null),c=d[n],v=l.useCallback(async s=>{g(a=>({...a,[s]:{loading:!0,files:a[s].files,error:null}}));try{const a=await t.request({action:"session.gitDiff.list",id:t.makeId("gitDiffList"),sessionId:f,scope:s});g(r=>({...r,[s]:{loading:!1,files:a.files,error:null}}))}catch(a){g(r=>({...r,[s]:{loading:!1,files:null,error:a instanceof Error?a.message:String(a)}}))}},[t,f]);l.useEffect(()=>{!d[n].files&&!d[n].loading&&!d[n].error&&v(n)},[n,d,v]),l.useEffect(()=>{y(null),b(null),m(null)},[n]),l.useEffect(()=>{if(!u){b(null),m(null);return}let s=!1;return N(!0),m(null),t.request({action:"session.gitDiff.file",id:t.makeId("gitDiffFile"),sessionId:f,scope:n,path:u}).then(a=>{s||(b(a),N(!1))}).catch(a=>{s||(m(a instanceof Error?a.message:String(a)),N(!1))}),()=>{s=!0}},[t,f,n,u]);const P=l.useMemo(()=>{const s=a=>a?a.reduce((r,D)=>({adds:r.adds+D.additions,dels:r.dels+D.deletions,count:r.count+1}),{adds:0,dels:0,count:0}):{adds:0,dels:0,count:0};return{unstaged:s(d.unstaged.files),staged:s(d.staged.files)}},[d]);return e.jsxs("div",{"aria-labelledby":"diff-drawer-title","aria-modal":"true",className:"diff-drawer",ref:j,role:"dialog",tabIndex:-1,children:[e.jsx("div",{className:"diff-drawer-backdrop",onClick:o,"aria-hidden":"true"}),e.jsxs("div",{className:"diff-drawer-panel",children:[e.jsxs("header",{className:"diff-drawer-header",children:[e.jsxs("div",{children:[e.jsx("strong",{id:"diff-drawer-title",children:i.changes}),e.jsx("span",{children:x})]}),e.jsx("button",{"aria-label":i.closeChanges,className:"icon-button",onClick:o,ref:h,type:"button",children:e.jsx(F,{"aria-hidden":"true"})})]}),e.jsx("div",{className:"diff-tabs",role:"tablist",children:["unstaged","staged"].map(s=>{const a=P[s],r=n===s;return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,className:`diff-tab ${r?"active":""}`,onClick:()=>w(s),children:[e.jsx("span",{className:"diff-tab-label",children:s==="unstaged"?i.workingChanges:i.stagedChanges}),a.count>0?e.jsxs("span",{className:"diff-tab-meta",children:[e.jsxs("span",{className:"diff-add",children:["+",a.adds]}),e.jsxs("span",{className:"diff-del",children:["-",a.dels]})]}):null]},s)})}),e.jsxs("div",{className:"diff-body",children:[e.jsxs("aside",{className:"diff-files","aria-label":i.changedFiles,children:[c.loading&&!c.files?e.jsx("p",{className:"diff-empty",children:i.loading}):null,c.error?e.jsx("p",{className:"diff-empty diff-error",children:c.error}):null,c.files&&c.files.length===0?e.jsx("p",{className:"diff-empty",children:i.noChanges}):null,c.files?.map(s=>e.jsxs("button",{type:"button",className:`diff-file ${u===s.path?"active":""}`,onClick:()=>y(s.path),children:[e.jsx("span",{className:`diff-status diff-status-${s.status}`,children:s.status}),e.jsx("span",{className:"diff-file-path",title:s.path,children:s.path}),e.jsxs("span",{className:"diff-file-stats",children:[s.binary?e.jsx("span",{className:"diff-binary",children:"bin"}):null,!s.binary&&s.additions>0?e.jsxs("span",{className:"diff-add",children:["+",s.additions]}):null,!s.binary&&s.deletions>0?e.jsxs("span",{className:"diff-del",children:["-",s.deletions]}):null]})]},s.path))]}),e.jsx("section",{className:"diff-patch","aria-label":i.fileDiff,children:u?k?e.jsx("p",{className:"diff-empty",children:i.loadingPatch}):S?e.jsx("p",{className:"diff-empty diff-error",children:S}):p?.binary?e.jsx("p",{className:"diff-empty",children:i.binaryDiffUnavailable}):p?e.jsx(T,{patch:p.patch,truncated:p.truncated,truncatedLabel:i.patchTruncated}):null:e.jsxs("div",{className:"diff-empty",children:[e.jsx(W,{"aria-hidden":"true"}),e.jsx("p",{children:i.selectFileForDiff})]})})]})]})]})}function T({patch:t,truncated:f,truncatedLabel:x}){const i=l.useMemo(()=>t.split(`
2
2
  `),[t]);return e.jsxs("div",{className:"diff-patch-view",children:[i.map((o,h)=>{const j=L(o);return e.jsx("div",{className:`diff-line ${j}`,children:e.jsx("span",{className:"diff-line-text",children:o||" "})},h)}),f?e.jsx("p",{className:"diff-empty",children:x}):null]})}function L(t){return t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("---")||t.startsWith("+++")?"header":t.startsWith("@@")?"hunk":t.startsWith("+")?"add":t.startsWith("-")?"del":"ctx"}export{q as DiffDrawer};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-O7DHMXV3-C6asakbE.js","assets/index-9EF9r07v.js","assets/index-Bh-D235e.css","assets/App-DASv9GGS.js","assets/mermaid-O7DHMXV3-BPtfCfol.css"])))=>i.map(i=>d[i]);
2
- import{c as b,j as e,r as v,_ as C,D as _}from"./index-9EF9r07v.js";import{L as P,R as M,p as m,a as T,j as D,b as g,c as u,d as E,e as I,g as L}from"./App-DASv9GGS.js";import{F as y}from"./file-text-D0U66V5d.js";const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],R=b("image",z);const S=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],U=b("save",S);function V({cwd:n,entries:i,error:t,loaded:l,loading:c,path:s,t:d,onPathChange:a,onListDirectory:o,onOpenRemoteFile:x}){return e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:"field",children:[e.jsx("span",{children:d.path}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:s,onChange:r=>a(r.target.value)}),e.jsx("button",{className:"icon-button",onClick:()=>o(),type:"button",children:c?e.jsx(P,{"aria-hidden":"true"}):e.jsx(M,{"aria-hidden":"true"})})]})]}),t?e.jsx("p",{className:"empty-copy",children:t}):null,c?e.jsx("p",{className:"empty-copy",children:d.loadingFiles}):null,e.jsxs("div",{className:"file-list tree-list",children:[m(s)?e.jsxs("button",{onClick:()=>o(m(s)??s),type:"button",children:[e.jsx(T,{"aria-hidden":"true"}),".."]}):null,i.map(r=>{const h=D(s,r.name);return e.jsxs("button",{onClick:()=>r.isDirectory?o(h):x(h,n),type:"button",children:[r.isDirectory?e.jsx(g,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),r.name]},`${r.name}:${r.isDirectory}`)})]}),l&&!c&&!t&&i.length===0?e.jsx("p",{className:"empty-copy",children:d.noFilesInDirectory}):null]})}const $=v.lazy(()=>C(()=>import("./mermaid-O7DHMXV3-C6asakbE.js").then(n=>n.a),__vite__mapDeps([0,1,2,3,4])).then(n=>({default:n.MessageMarkdown})));function F({file:n,mode:i,onModeChange:t,onOpenRemoteFile:l,onTextChange:c}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"segmented editor-mode-tabs",children:[e.jsx("button",{className:i==="edit"?"selected":"",onClick:()=>t("edit"),type:"button",children:"Editor"}),e.jsx("button",{className:i==="preview"?"selected":"",onClick:()=>t("preview"),type:"button",children:"Preview"}),e.jsx("button",{className:i==="source"?"selected":"",onClick:()=>t("source"),type:"button",children:"Source"})]}),i==="edit"?e.jsx("textarea",{className:"remote-editor",value:n.text,onChange:s=>c(s.target.value),rows:14}):i==="preview"?e.jsx("div",{className:"remote-markdown-preview",children:e.jsx(v.Suspense,{fallback:e.jsx("pre",{className:"json-box source-viewer",children:n.text}),children:e.jsx($,{content:n.text,baseCwd:n.cwd,onOpenRemoteFile:l})})}):e.jsx("pre",{className:"json-box source-viewer",children:n.text})]})}function B({busy:n,cwd:i,directory:t,newDirName:l,remoteFileMode:c,remoteFile:s,remoteFileConflict:d,t:a,onCreateDirectory:o,onDirectoryPathChange:x,onDownloadRemoteFile:r,onListDirectory:h,onNewDirNameChange:N,onOpenRemoteFile:j,onRemoteFileModeChange:w,onRemoteFileTextChange:k,onSaveRemoteFile:p}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section",children:[e.jsx("h2",{children:a.fileTree}),e.jsx(V,{cwd:i,entries:t.entries,error:t.error,loaded:t.loaded,loading:t.loading,path:t.path,t:a,onListDirectory:h,onOpenRemoteFile:j,onPathChange:x}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:l,onChange:f=>N(f.target.value),placeholder:a.newFolder}),e.jsxs("button",{className:"icon-text-button",onClick:o,type:"button",disabled:!l.trim(),children:[e.jsx(g,{"aria-hidden":"true"}),a.create]})]})]}),e.jsxs("section",{className:"control-section remote-file-section",children:[e.jsx("h2",{children:a.remoteFile}),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"file-title",children:[s.kind==="image"?e.jsx(R,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:u(s.path)}),e.jsxs("span",{children:[s.contentType," · ",E(s.size)]})]})]}),e.jsxs("div",{className:"attention-actions",children:[e.jsxs("button",{className:"icon-text-button",onClick:r,type:"button",children:[e.jsx(_,{"aria-hidden":"true"}),a.download]}),e.jsxs("button",{className:"icon-text-button",onClick:()=>navigator.clipboard?.writeText(s.path),type:"button",children:[e.jsx(I,{"aria-hidden":"true"}),a.copyPath]})]}),s.kind==="text"?e.jsxs(e.Fragment,{children:[e.jsx(F,{file:s,mode:c,onModeChange:w,onOpenRemoteFile:j,onTextChange:k}),e.jsxs("button",{className:"primary-button full-width",disabled:!s.dirty||n,onClick:()=>p(),type:"button",children:[e.jsx(U,{"aria-hidden":"true"}),a.saveFile]}),d?e.jsxs("div",{className:"notice warning inline-notice",children:[e.jsx(L,{"aria-hidden":"true"}),e.jsx("span",{children:a.remoteFileConflict(s.path)}),e.jsx("button",{className:"danger-button",disabled:n,onClick:()=>window.confirm(a.confirmOverwrite(u(s.path)))&&p({force:!0}),type:"button",children:a.forceSave})]}):null]}):s.kind==="image"&&s.objectUrl?e.jsx("img",{className:"remote-image",src:s.objectUrl,alt:u(s.path)}):e.jsx("p",{className:"empty-copy",children:a.binaryPreviewUnavailable})]}):e.jsx("p",{className:"empty-copy",children:a.selectRemoteFile})]})]})}export{B as FilesControlPanel};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-O7DHMXV3-D1Gq7e8w.js","assets/index-D8gFpCtl.js","assets/index-Bh-D235e.css","assets/App-B3LwKWyA.js","assets/mermaid-O7DHMXV3-BPtfCfol.css"])))=>i.map(i=>d[i]);
2
+ import{c as b,j as e,r as v,_ as C,D as _}from"./index-D8gFpCtl.js";import{L as P,R as M,p as m,a as T,j as D,b as g,c as u,d as E,e as I,g as L}from"./App-B3LwKWyA.js";import{F as y}from"./file-text-DQlA2X1a.js";const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],R=b("image",z);const S=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],U=b("save",S);function V({cwd:n,entries:i,error:t,loaded:l,loading:c,path:s,t:d,onPathChange:a,onListDirectory:o,onOpenRemoteFile:x}){return e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:"field",children:[e.jsx("span",{children:d.path}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:s,onChange:r=>a(r.target.value)}),e.jsx("button",{className:"icon-button",onClick:()=>o(),type:"button",children:c?e.jsx(P,{"aria-hidden":"true"}):e.jsx(M,{"aria-hidden":"true"})})]})]}),t?e.jsx("p",{className:"empty-copy",children:t}):null,c?e.jsx("p",{className:"empty-copy",children:d.loadingFiles}):null,e.jsxs("div",{className:"file-list tree-list",children:[m(s)?e.jsxs("button",{onClick:()=>o(m(s)??s),type:"button",children:[e.jsx(T,{"aria-hidden":"true"}),".."]}):null,i.map(r=>{const h=D(s,r.name);return e.jsxs("button",{onClick:()=>r.isDirectory?o(h):x(h,n),type:"button",children:[r.isDirectory?e.jsx(g,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),r.name]},`${r.name}:${r.isDirectory}`)})]}),l&&!c&&!t&&i.length===0?e.jsx("p",{className:"empty-copy",children:d.noFilesInDirectory}):null]})}const $=v.lazy(()=>C(()=>import("./mermaid-O7DHMXV3-D1Gq7e8w.js").then(n=>n.a),__vite__mapDeps([0,1,2,3,4])).then(n=>({default:n.MessageMarkdown})));function F({file:n,mode:i,onModeChange:t,onOpenRemoteFile:l,onTextChange:c}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"segmented editor-mode-tabs",children:[e.jsx("button",{className:i==="edit"?"selected":"",onClick:()=>t("edit"),type:"button",children:"Editor"}),e.jsx("button",{className:i==="preview"?"selected":"",onClick:()=>t("preview"),type:"button",children:"Preview"}),e.jsx("button",{className:i==="source"?"selected":"",onClick:()=>t("source"),type:"button",children:"Source"})]}),i==="edit"?e.jsx("textarea",{className:"remote-editor",value:n.text,onChange:s=>c(s.target.value),rows:14}):i==="preview"?e.jsx("div",{className:"remote-markdown-preview",children:e.jsx(v.Suspense,{fallback:e.jsx("pre",{className:"json-box source-viewer",children:n.text}),children:e.jsx($,{content:n.text,baseCwd:n.cwd,onOpenRemoteFile:l})})}):e.jsx("pre",{className:"json-box source-viewer",children:n.text})]})}function B({busy:n,cwd:i,directory:t,newDirName:l,remoteFileMode:c,remoteFile:s,remoteFileConflict:d,t:a,onCreateDirectory:o,onDirectoryPathChange:x,onDownloadRemoteFile:r,onListDirectory:h,onNewDirNameChange:N,onOpenRemoteFile:j,onRemoteFileModeChange:w,onRemoteFileTextChange:k,onSaveRemoteFile:p}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section",children:[e.jsx("h2",{children:a.fileTree}),e.jsx(V,{cwd:i,entries:t.entries,error:t.error,loaded:t.loaded,loading:t.loading,path:t.path,t:a,onListDirectory:h,onOpenRemoteFile:j,onPathChange:x}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:l,onChange:f=>N(f.target.value),placeholder:a.newFolder}),e.jsxs("button",{className:"icon-text-button",onClick:o,type:"button",disabled:!l.trim(),children:[e.jsx(g,{"aria-hidden":"true"}),a.create]})]})]}),e.jsxs("section",{className:"control-section remote-file-section",children:[e.jsx("h2",{children:a.remoteFile}),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"file-title",children:[s.kind==="image"?e.jsx(R,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:u(s.path)}),e.jsxs("span",{children:[s.contentType," · ",E(s.size)]})]})]}),e.jsxs("div",{className:"attention-actions",children:[e.jsxs("button",{className:"icon-text-button",onClick:r,type:"button",children:[e.jsx(_,{"aria-hidden":"true"}),a.download]}),e.jsxs("button",{className:"icon-text-button",onClick:()=>navigator.clipboard?.writeText(s.path),type:"button",children:[e.jsx(I,{"aria-hidden":"true"}),a.copyPath]})]}),s.kind==="text"?e.jsxs(e.Fragment,{children:[e.jsx(F,{file:s,mode:c,onModeChange:w,onOpenRemoteFile:j,onTextChange:k}),e.jsxs("button",{className:"primary-button full-width",disabled:!s.dirty||n,onClick:()=>p(),type:"button",children:[e.jsx(U,{"aria-hidden":"true"}),a.saveFile]}),d?e.jsxs("div",{className:"notice warning inline-notice",children:[e.jsx(L,{"aria-hidden":"true"}),e.jsx("span",{children:a.remoteFileConflict(s.path)}),e.jsx("button",{className:"danger-button",disabled:n,onClick:()=>window.confirm(a.confirmOverwrite(u(s.path)))&&p({force:!0}),type:"button",children:a.forceSave})]}):null]}):s.kind==="image"&&s.objectUrl?e.jsx("img",{className:"remote-image",src:s.objectUrl,alt:u(s.path)}):e.jsx("p",{className:"empty-copy",children:a.binaryPreviewUnavailable})]}):e.jsx("p",{className:"empty-copy",children:a.selectRemoteFile})]})]})}export{B as FilesControlPanel};
@@ -1 +1 @@
1
- import{j as e}from"./index-9EF9r07v.js";import{C as i,F as o}from"./App-DASv9GGS.js";function t({language:s,t:a,onLanguageChange:l}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.language}),e.jsxs("label",{className:"field",children:[e.jsx("span",{children:a.displayLanguage}),e.jsx(i,{ariaLabel:a.displayLanguage,options:[{value:"system",label:a.followSystem},{value:"en",label:a.english},{value:"zh",label:a.chinese}],value:s,onChange:n=>l(n)})]})]}),e.jsx(o,{language:s})]})}export{t as LanguageSettingsPanel};
1
+ import{j as e}from"./index-D8gFpCtl.js";import{C as i,F as o}from"./App-B3LwKWyA.js";function t({language:s,t:a,onLanguageChange:l}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.language}),e.jsxs("label",{className:"field",children:[e.jsx("span",{children:a.displayLanguage}),e.jsx(i,{ariaLabel:a.displayLanguage,options:[{value:"system",label:a.followSystem},{value:"en",label:a.english},{value:"zh",label:a.chinese}],value:s,onChange:n=>l(n)})]})]}),e.jsx(o,{language:s})]})}export{t as LanguageSettingsPanel};
@@ -1 +1 @@
1
- import{c as l,j as e}from"./index-9EF9r07v.js";const o=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],r=l("bell",o);function h({notificationsBlocked:s,permission:t,settings:n,t:c,onToggleEnabled:a}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:c.notifications}),e.jsxs("label",{className:`toggle-field notification-toggle ${s?"disabled":""}`,children:[e.jsxs("span",{children:[e.jsx(r,{"aria-hidden":"true"}),c.browserAlerts]}),e.jsx("input",{type:"checkbox",checked:n.enabled&&!s&&t==="granted",disabled:s,onChange:i=>a(i.target.checked)})]}),s?e.jsx("p",{className:"empty-copy",children:c.notificationsBlocked}):null]})}export{h as NotificationSettingsPanel};
1
+ import{c as l,j as e}from"./index-D8gFpCtl.js";const o=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],r=l("bell",o);function h({notificationsBlocked:s,permission:t,settings:n,t:c,onToggleEnabled:a}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:c.notifications}),e.jsxs("label",{className:`toggle-field notification-toggle ${s?"disabled":""}`,children:[e.jsxs("span",{children:[e.jsx(r,{"aria-hidden":"true"}),c.browserAlerts]}),e.jsx("input",{type:"checkbox",checked:n.enabled&&!s&&t==="granted",disabled:s,onChange:i=>a(i.target.checked)})]}),s?e.jsx("p",{className:"empty-copy",children:c.notificationsBlocked}):null]})}export{h as NotificationSettingsPanel};
@@ -1 +1 @@
1
- import{c as i,j as e}from"./index-9EF9r07v.js";import{f as t,T as m}from"./App-DASv9GGS.js";const r=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],h=i("plug-zap",r);function j({activeDaemonId:c,busy:n,t:a,targets:o,onConnect:d,onForget:l}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.savedDevices}),e.jsxs("div",{className:"stack-list",children:[o.map(s=>e.jsxs("div",{className:"data-row target-row",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:[s.label,s.daemonId===c?` · ${a.active}`:""]}),e.jsxs("span",{children:[s.displayName??s.daemonId," ·"," ",s.lastConnectedAt?t(s.lastConnectedAt):a.notConnectedRecently]})]}),e.jsxs("div",{className:"row-actions",children:[e.jsx("button",{"aria-label":`Connect to ${s.label}`,className:"icon-button",disabled:n,onClick:()=>d(s),type:"button",children:e.jsx(h,{"aria-hidden":"true"})}),e.jsx("button",{"aria-label":`Forget ${s.label}`,className:"icon-button danger-icon",disabled:n,onClick:()=>l(s.daemonId),type:"button",children:e.jsx(m,{"aria-hidden":"true"})})]})]},s.daemonId)),o.length===0?e.jsx("p",{className:"empty-copy",children:a.noSavedDevices}):null]})]})}export{j as SavedTargetsPanel};
1
+ import{c as i,j as e}from"./index-D8gFpCtl.js";import{f as t,T as m}from"./App-B3LwKWyA.js";const r=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],h=i("plug-zap",r);function j({activeDaemonId:c,busy:n,t:a,targets:o,onConnect:d,onForget:l}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.savedDevices}),e.jsxs("div",{className:"stack-list",children:[o.map(s=>e.jsxs("div",{className:"data-row target-row",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:[s.label,s.daemonId===c?` · ${a.active}`:""]}),e.jsxs("span",{children:[s.displayName??s.daemonId," ·"," ",s.lastConnectedAt?t(s.lastConnectedAt):a.notConnectedRecently]})]}),e.jsxs("div",{className:"row-actions",children:[e.jsx("button",{"aria-label":`Connect to ${s.label}`,className:"icon-button",disabled:n,onClick:()=>d(s),type:"button",children:e.jsx(h,{"aria-hidden":"true"})}),e.jsx("button",{"aria-label":`Forget ${s.label}`,className:"icon-button danger-icon",disabled:n,onClick:()=>l(s.daemonId),type:"button",children:e.jsx(m,{"aria-hidden":"true"})})]})]},s.daemonId)),o.length===0?e.jsx("p",{className:"empty-copy",children:a.noSavedDevices}):null]})]})}export{j as SavedTargetsPanel};
@@ -1 +1 @@
1
- import{j as a}from"./index-9EF9r07v.js";import{C as i}from"./App-DASv9GGS.js";function o({t:e,theme:s,onThemeChange:l}){return a.jsxs("section",{className:"control-section compact-section",children:[a.jsx("h2",{children:e.appearance}),a.jsxs("label",{className:"field",children:[a.jsx("span",{children:e.displayTheme}),a.jsx(i,{ariaLabel:e.displayTheme,options:[{value:"system",label:e.systemTheme},{value:"light",label:e.lightTheme},{value:"dark",label:e.darkTheme}],value:s,onChange:l})]})]})}export{o as ThemeSettingsPanel};
1
+ import{j as a}from"./index-D8gFpCtl.js";import{C as i}from"./App-B3LwKWyA.js";function o({t:e,theme:s,onThemeChange:l}){return a.jsxs("section",{className:"control-section compact-section",children:[a.jsx("h2",{children:e.appearance}),a.jsxs("label",{className:"field",children:[a.jsx("span",{children:e.displayTheme}),a.jsx(i,{ariaLabel:e.displayTheme,options:[{value:"system",label:e.systemTheme},{value:"light",label:e.lightTheme},{value:"dark",label:e.darkTheme}],value:s,onChange:l})]})]})}export{o as ThemeSettingsPanel};
@@ -1 +1 @@
1
- import{c as e}from"./index-9EF9r07v.js";const a=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
1
+ import{c as e}from"./index-D8gFpCtl.js";const a=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
@@ -1 +1 @@
1
- import{R as c,M as p,B as x}from"./mermaid-O7DHMXV3-C6asakbE.js";import{r,j as d}from"./index-9EF9r07v.js";import"./App-DASv9GGS.js";var j=({code:i,language:e,raw:t,className:g,startLine:m,...u})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:m,...u})};export{j as HighlightedCodeBlockBody};
1
+ import{R as c,M as p,B as x}from"./mermaid-O7DHMXV3-D1Gq7e8w.js";import{r,j as d}from"./index-D8gFpCtl.js";import"./App-B3LwKWyA.js";var j=({code:i,language:e,raw:t,className:g,startLine:m,...u})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:m,...u})};export{j as HighlightedCodeBlockBody};
@@ -12,4 +12,4 @@ Error generating stack: `+a.message+`
12
12
 
13
13
  This action cannot be undone from Vibelet Web.`,binaryPreviewUnavailable:"Binary preview is not available. Use download to inspect this file.",selectRemoteFile:"Select an attachment or a file from the directory browser.",copyResumeCommand:"Copy resume command",viewChanges:"View changes",pin:"Pin",unpin:"Unpin",archive:"Archive",unarchive:"Unarchive",delete:"Delete",connectedTo:f=>`Connected to ${f}`,connectingToDaemon:"Opening secure daemon channel",reconnectingToDaemon:"Reconnecting to daemon",connectionFailed:"Connection failed",pairingFailed:"Pairing failed",pairingLinkExpired:"This pairing link has expired. Open a fresh Vibelet Web link from the host computer.",missingPair:"Open the link printed by vibelet",pendingActions:"Pending Actions",noPendingActions:"No approvals or questions.",approvalRequired:"Approval Required",approvalMode:"Approval mode",inputNeeded:"Input Needed",deny:"Deny",approve:"Approve",cancel:"Cancel",submit:"Submit",clear:"Clear",restoreSnapshot:"Restore daemon snapshot",refreshSessions:"Refresh sessions",workspaceTools:"Workspace",moreActions:"More session actions",openDaemonWebLink:"Open the daemon web link",openDaemonWebLinkHint:"Run Vibelet with remote access and open the Web UI link printed by the CLI.",copyStartCommand:"Copy start command",commandCopied:"Command copied",connectionGuideFootnote:"Run the command on your computer, then open the secure Web link it prints.",loadingHistory:"Loading history",historyRequestTimedOut:"History request timed out.",historyPrefetchTimedOut:"History prefetch timed out.",noVisibleMessages:"No visible messages yet",startDaemonSession:"Start a daemon session",emptyChatHint:"Send a prompt from this browser; the daemon keeps Claude or Codex running on the host machine.",agentResponding:"Agent is responding",stopGenerating:"Stop",scrollToLatest:"Scroll to latest",newMessages:"New messages",showEarlierMessages:f=>`Show ${f} earlier conversation items`,showLatestMessages:f=>`Show ${f} newer conversation items`,retry:"Try again",sendFailed:"Message not sent",sendFailedNetwork:"The connection was interrupted. Your message and attachments are preserved.",sendFailedTimeout:"The daemon did not respond in time. Retrying will not duplicate the message.",sendFailedPermission:"The paired computer rejected this request.",sendFailedSubscription:"This action is not available with the current subscription.",sendFailedMissingResource:"A referenced skill or resource is unavailable on the paired computer.",sendFailedUnknown:"The daemon could not accept this message. Your original input is preserved.",retrySend:"Resend",retrying:"Resending…",messageCopied:"Message copied",copyFailed:"Could not copy message",currentDevice:"Current Device",daemon:"Daemon",status:"Status",active:"active",notPaired:"not paired",forget:"Forget",notifications:"Notifications",browserAlerts:"Browser alerts",notificationsBlocked:"Notifications are blocked by this browser.",savedDevices:"Saved Devices",noSavedDevices:"No saved devices yet.",notConnectedRecently:"not connected recently",desktopConnector:"Desktop Connector",version:"Version",checking:"checking...",unknown:"unknown",update:"Update",updating:"Updating...",restart:"Restart",restarting:"Restarting...",language:"Language",displayLanguage:"Display language",followSystem:"Auto",english:"English",chinese:"中文",skills:"Skills",closeSkills:"Close skills",noSkillsFound:"No skills found.",messagePlaceholder:"Type a message or $ for skills...",uploadFiles:"Upload files",showQuickReplies:"Show quick replies",hideQuickReplies:"Hide quick replies",removeAttachment:"Remove attachment",send:"Send",sendShortcut:"Send shortcut",model:"Model",defaultOption:"Default",useDaemonDefaultModel:"Use daemon default model",effort:"Effort",useDaemonDefault:"Use daemon default",effortMinimal:"Minimal",effortLow:"Low",effortMedium:"Medium",effortHigh:"High",effortXHigh:"X High",effortMax:"Max",effortUltra:"Ultra",approvalNormal:"Normal",approvalNormalDescription:"Ask before risky actions",approvalPlan:"Plan",approvalPlanDescription:"Plan before edits",approvalEdits:"Edits",approvalEditsDescription:"Auto-accept file edits",approvalAuto:"Auto",approvalAutoDescription:"Approve supported actions",normal:"Normal",fast:"Fast",fastMode:"Fast mode",standardExecution:"Use standard execution",preferFasterResponses:"Prefer faster responses",sendShortcutEnter:"Enter",sendShortcutEnterDescription:"Enter sends; Shift+Enter inserts a newline",sendShortcutModEnter:"Mod+Enter",sendShortcutModEnterDescription:"Cmd/Ctrl+Enter sends; Enter inserts a newline",uploading:"Uploading...",commands:"Commands",closeCommands:"Close commands",noCommandsFound:"No commands found.",directoryTags:"Directory tags",editDirectoryTags:"Edit directory tags",browseFolder:"Browse folder",archiveSyncTitle:"Archive sync",archiveSyncBody:"Sync archived sessions with the paired desktop connector.",archiveSyncSynced:"Archive state is synced with this connector.",archiveSyncSkippedState:"Archive sync was skipped for this connector.",archiveSyncPushReplace:"Use browser",archiveSyncPushMerge:"Merge",archiveSyncPull:"Use desktop",archiveSyncSkip:"Skip",archiveSyncSyncing:"Syncing...",archiveSyncSuccessPush:"Desktop archive updated with {n} sessions.",archiveSyncSuccessMerge:"Merged. {n} archived sessions now stored on the paired computer.",archiveSyncSuccessPull:"Pulled {n} archived sessions from the paired computer.",archiveSyncSkipped:"Skipped archive sync for this connector.",archiveSyncFailedTimeout:"Sync timed out. Please try again.",archiveSyncFailedDisconnected:"Not connected to a paired computer.",archiveSyncFailedGeneric:"Sync failed: {error}"},zh:{...rv,daemonWorkspace:"Daemon 工作区",openingVibeletWeb:"正在打开 Vibelet Web",preparingWorkspace:"正在准备工作区…",pwaUpdateReady:"Vibelet Web 新版本已就绪",pwaUpdateHint:"方便时重新加载即可使用最新版本。",reloadToUpdate:"重新加载并更新",sameOriginAccess:"同源 daemon 访问",sessions:"会话",chat:"聊天",agentMayBeStalled:"Agent 可能已停滞",loadingControls:"正在加载控制面板…",resizeSessionSidebar:"调整会话侧栏宽度",resizeControlsSidebar:"调整控制侧栏宽度",vibeletWorkspace:"Vibelet 工作区",controls:"控制面板",sessionControls:"会话控制",files:"文件",settings:"设置",preparingVibeletWeb:"正在准备 Vibelet Web",connected:"已连接",connectedIndexing:"已连接,正在索引本地会话",connectorVersionFailed:"无法读取连接器版本。",skipToConversation:"跳到会话内容",webSocketNotConnected:"WebSocket 尚未连接。",webSocketClosedRetrying:"Daemon WebSocket 已关闭,Vibelet Web 将自动重试。",sessionIdMissing:"Daemon 未返回会话 ID。",newClaudeSession:"新建 Claude 会话",newCodexSession:"新建 Codex 会话",uploadFailed:"上传失败。",uploadPathMissing:"Daemon 未返回上传文件路径。",fileOpenFailed:"打开文件失败。",fileSaveFailed:"保存文件失败。",downloadFailed:"下载失败。",directoryListTimedOut:"目录列表请求超时。",directoryCreationTimedOut:"创建目录请求超时。",toolCallLabel:"工具调用",notificationApprovalTitle:"Vibelet 需要审批",notificationQuestionTitle:"Vibelet 需要输入",notificationQuestionCount:f=>`有 ${f} 个问题等待回答`,notificationReplyTitle:"Vibelet 回复已就绪",notificationReplyBody:"Agent 已完成本轮回复。",collapseSessionSidebar:"隐藏会话侧栏",expandSessionSidebar:"显示会话侧栏",collapseControlsSidebar:"隐藏控制侧栏",expandControlsSidebar:"显示控制侧栏",newSession:"新建会话",claudeSession:"Claude 会话",codexSession:"Codex 会话",workingDirectory:"工作目录",workingDirectoryPlaceholder:"~/project 或 /repo",browseDirectories:"浏览目录",chooseThisFolder:"选择此文件夹",newFolder:"新建文件夹",newFolderPlaceholder:"文件夹名称",folderCreateFailed:"无法创建文件夹。",loadingDirectories:"正在加载文件夹...",remoteFolderEmpty:"此目录下没有文件夹。",create:"创建",searchSessions:"搜索会话",searchThisSession:"搜索当前会话",searchMessages:"搜索消息",allMessages:"全部消息",clearMessageSearch:"清除消息搜索",messageSearchMatches:f=>`${f} 个匹配项`,searchResultCount:f=>f===0?"没有结果":`${f} 个结果`,sessionFilters:"会话筛选",filterViewOptions:"视图选项",resetFilters:"重置筛选",searchTimeRangeLabel:"搜索范围",searchTimeRangeLast7Days:"近 7 天",searchTimeRangeLast30Days:"近 30 天",searchTimeRangeLast90Days:"近 90 天",searchTimeRangeAllTime:"全部时间",agentFilterLabel:"助手",agentFilterAll:"全部助手",agentFilterClaude:"Claude",agentFilterCodex:"Codex",groupByFolder:"按文件夹分组",hideArchived:"仅显示活跃会话",noSessionsMatch:"没有符合条件的会话。",open:"打开",details:"详情",pinned:"已置顶",archived:"已归档",closeSessionDetails:"关闭会话详情",rename:"重命名",messages:"消息",session:"会话",runtime:"运行状态",changes:"变更",browseFiles:"浏览文件",exportSession:"导出",usage:"用量",created:"创建于",closeChanges:"关闭变更",workingChanges:"工作区",stagedChanges:"已暂存",changedFiles:"已变更文件",loading:"加载中…",noChanges:"没有变更。",fileDiff:"文件差异",selectFileForDiff:"选择文件以查看差异。",loadingPatch:"正在加载差异…",binaryDiffUnavailable:"二进制文件无法内联显示差异。",patchTruncated:"差异内容已截断,文件超过内联显示限制。",attachments:"附件",closeAttachmentPreview:"关闭附件预览",fileCount:f=>`${f} 个文件`,messageActions:"消息操作",copyMessage:"复制消息",viewMarkdownSource:"查看 Markdown 源码",hideMarkdownSource:"隐藏 Markdown 源码",markdownSource:"Markdown 源码",copyMarkdownSource:"复制 Markdown 源码",closeSource:"关闭源码",tool:"工具",toolDetails:"工具详情",toolDetail:"工具详情",toolCallCount:f=>`${f} 次工具调用`,copyOutput:"复制输出",closeToolDetails:"关闭工具详情",preview:"预览",fileTree:"文件树",remoteFile:"远程文件",path:"路径",loadingFiles:"正在加载文件…",noFilesInDirectory:"此目录中没有文件。",download:"下载",copyPath:"复制路径",saveFile:"保存文件",forceSave:"强制保存",remoteFileConflict:f=>`远程文件在保存前已发生变化:${f}。请查看最新内容,或强制保存以覆盖。`,confirmOverwrite:f=>`覆盖 ${f}?
14
14
 
15
- 此操作无法从 Vibelet Web 撤销。`,binaryPreviewUnavailable:"暂不支持预览二进制文件,请下载后查看。",selectRemoteFile:"请从目录浏览器中选择附件或文件。",copyResumeCommand:"复制恢复命令",viewChanges:"查看变更",pin:"置顶",unpin:"取消置顶",archive:"归档",unarchive:"取消归档",delete:"删除",connectedTo:f=>`已连接到 ${f}`,connectingToDaemon:"正在打开安全 daemon 通道",reconnectingToDaemon:"正在重连 daemon",connectionFailed:"连接失败",pairingFailed:"配对失败",pairingLinkExpired:"这个配对链接已过期。请在主机上重新打开 vibelet 打印的新 Web 链接。",missingPair:"打开 vibelet 打印的链接",pendingActions:"待处理",noPendingActions:"没有需要处理的审批或问题。",approvalRequired:"需要审批",approvalMode:"审批模式",inputNeeded:"需要输入",deny:"拒绝",approve:"同意",cancel:"取消",submit:"提交",clear:"清除",restoreSnapshot:"恢复 daemon 快照",refreshSessions:"刷新会话",workspaceTools:"工作区",moreActions:"更多会话操作",openDaemonWebLink:"打开 daemon web 链接",openDaemonWebLinkHint:"用远程访问启动 Vibelet,然后打开 CLI 打印的 Web UI 链接。",copyStartCommand:"复制启动命令",commandCopied:"命令已复制",connectionGuideFootnote:"在电脑上运行该命令,然后打开它输出的安全 Web 链接。",loadingHistory:"正在加载历史",historyRequestTimedOut:"历史消息请求超时。",historyPrefetchTimedOut:"历史消息预加载超时。",noVisibleMessages:"还没有可见消息",startDaemonSession:"开始 daemon 会话",emptyChatHint:"从浏览器发送提示词;daemon 会在主机上保持 Claude 或 Codex 运行。",agentResponding:"Agent 正在回复",stopGenerating:"停止",scrollToLatest:"滚动到最新",newMessages:"查看新消息",showEarlierMessages:f=>`显示更早的 ${f} 条会话内容`,showLatestMessages:f=>`显示更新的 ${f} 条会话内容`,retry:"重试",sendFailed:"消息未发送",sendFailedNetwork:"连接已中断,原消息和附件均已保留。",sendFailedTimeout:"Daemon 未及时响应;重发不会重复创建消息。",sendFailedPermission:"配对电脑拒绝了这次请求。",sendFailedSubscription:"当前订阅暂不支持此操作。",sendFailedMissingResource:"配对电脑上缺少引用的 Skill 或资源。",sendFailedUnknown:"Daemon 未能接收这条消息,原始输入已保留。",retrySend:"重新发送",retrying:"正在重发…",messageCopied:"已复制消息",copyFailed:"无法复制消息",currentDevice:"当前设备",daemon:"Daemon",status:"状态",active:"当前",notPaired:"未配对",forget:"忘记",notifications:"通知",browserAlerts:"浏览器提醒",notificationsBlocked:"浏览器已阻止通知。",savedDevices:"已保存设备",noSavedDevices:"还没有保存的设备。",notConnectedRecently:"最近未连接",desktopConnector:"桌面连接器",version:"版本",checking:"检查中...",unknown:"未知",update:"更新",updating:"更新中...",restart:"重启",restarting:"重启中...",language:"语言",displayLanguage:"显示语言",followSystem:"自动",english:"English",chinese:"中文",skills:"技能",closeSkills:"关闭技能",noSkillsFound:"没有找到技能。",messagePlaceholder:"输入消息,或输入 $ 选择技能...",uploadFiles:"上传文件",showQuickReplies:"显示快捷回复",hideQuickReplies:"隐藏快捷回复",removeAttachment:"移除附件",send:"发送",sendShortcut:"发送快捷键",model:"模型",defaultOption:"默认",useDaemonDefaultModel:"使用 Daemon 默认模型",effort:"推理强度",useDaemonDefault:"使用 Daemon 默认值",effortMinimal:"极简",effortLow:"低",effortMedium:"中",effortHigh:"高",effortXHigh:"极高",effortMax:"最大",effortUltra:"超高",approvalNormal:"普通",approvalNormalDescription:"高风险操作前询问",approvalPlan:"计划",approvalPlanDescription:"编辑前先制定计划",approvalEdits:"编辑",approvalEditsDescription:"自动接受文件编辑",approvalAuto:"自动",approvalAutoDescription:"自动批准支持的操作",normal:"普通",fast:"快速",fastMode:"快速模式",standardExecution:"使用标准执行模式",preferFasterResponses:"优先更快响应",sendShortcutEnter:"回车",sendShortcutEnterDescription:"回车发送;Shift+回车换行",sendShortcutModEnter:"Cmd/Ctrl+回车",sendShortcutModEnterDescription:"Cmd/Ctrl+回车发送;回车换行",uploading:"上传中...",commands:"命令",closeCommands:"关闭命令",noCommandsFound:"没有找到命令。",directoryTags:"目录标签",editDirectoryTags:"编辑目录标签",browseFolder:"浏览文件夹",archiveSyncTitle:"归档同步",archiveSyncBody:"将已归档会话与配对的桌面连接器同步。",archiveSyncSynced:"归档状态已与此连接器同步。",archiveSyncSkippedState:"此连接器已跳过归档同步。",archiveSyncPushReplace:"以浏览器为准",archiveSyncPushMerge:"合并",archiveSyncPull:"以桌面端为准",archiveSyncSkip:"跳过",archiveSyncSyncing:"同步中...",archiveSyncSuccessPush:"已用浏览器归档列表覆盖桌面端({n} 条)。",archiveSyncSuccessMerge:"已合并完成,桌面端当前共 {n} 条归档。",archiveSyncSuccessPull:"已从桌面端拉取 {n} 条归档到浏览器。",archiveSyncSkipped:"已跳过此连接器的归档同步。",archiveSyncFailedTimeout:"同步超时,请稍后重试。",archiveSyncFailedDisconnected:"当前未连接到配对电脑。",archiveSyncFailedGeneric:"同步失败:{error}"}},dv=ge.lazy(async()=>ky(()=>import("./App-DASv9GGS.js").then(f=>f.A),[]).then(f=>({default:f.App}))),em="(max-width: 767px), (hover: none) and (pointer: coarse) and (max-width: 1024px)",mv={en:"https://vibelet.icu/#get-app",zh:"https://vibelet.icu/zh/#get-app"},hv="https://apps.apple.com/app/id6761245790",yv="https://www.feishu.cn/file/RUnbb7INMocEFjxj5AWcC7WEn6d",vv={en:{eyebrow:"Vibelet Web",title:"Use the Vibelet app on mobile",description:"The Web workspace is available for desktop browsers only. Install the mobile app, then pair it with the desktop connector on your computer.",primary:"Open app download page",ios:"App Store",android:"Android APK",desktopOnly:"Desktop browser only",desktopHint:"Open this Web link on a desktop browser to continue here.",pairingBefore:"Run",pairingAfter:"on your computer, then scan the QR code from the app."},zh:{eyebrow:"Vibelet Web",title:"手机端请使用 Vibelet App",description:"Web 工作台只面向桌面浏览器。请安装手机 App,再和电脑上的桌面连接器完成配对。",primary:"打开 App 下载页",ios:"App Store",android:"Android APK",desktopOnly:"仅支持桌面浏览器",desktopHint:"如果要继续使用 Web,请在桌面浏览器打开这个链接。",pairingBefore:"在电脑上运行",pairingAfter:"然后用 App 扫描二维码。"}};function gv(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(em).matches}function tm(){try{return Vd(Fd().language)}catch{return Vd("system")}}function Sv(){const f=tm(),A=vv[f],D=mv[f];return G.jsx("main",{className:"mobile-app-gate","aria-labelledby":"mobile-app-gate-title",children:G.jsxs("section",{className:"mobile-app-panel",children:[G.jsxs("div",{className:"mobile-app-hero",children:[G.jsx("span",{className:"mobile-app-icon","aria-hidden":"true",children:G.jsx(iv,{})}),G.jsx("span",{className:"mobile-app-eyebrow",children:A.eyebrow}),G.jsx("h1",{id:"mobile-app-gate-title",children:A.title}),G.jsx("p",{children:A.description})]}),G.jsxs("div",{className:"mobile-app-actions",role:"group","aria-label":A.primary,children:[G.jsxs("a",{className:"mobile-app-primary-link",href:D,children:[G.jsx(Ld,{"aria-hidden":"true"}),G.jsx("span",{children:A.primary})]}),G.jsxs("a",{className:"mobile-app-secondary-link",href:hv,rel:"noopener noreferrer",target:"_blank",children:[G.jsx(av,{"aria-hidden":"true"}),G.jsx("span",{children:A.ios})]}),G.jsxs("a",{className:"mobile-app-secondary-link",download:!0,href:yv,children:[G.jsx(Ld,{"aria-hidden":"true"}),G.jsx("span",{children:A.android})]})]}),G.jsxs("div",{className:"mobile-app-note",children:[G.jsx(Id,{"aria-hidden":"true"}),G.jsxs("div",{children:[G.jsx("strong",{children:A.desktopOnly}),G.jsx("span",{children:A.desktopHint})]})]}),G.jsxs("p",{className:"mobile-app-footnote",children:[G.jsx("span",{children:A.pairingBefore}),G.jsx("code",{children:"npx vibelet"}),G.jsx("span",{children:A.pairingAfter})]})]})})}function pv({language:f}){const A=lm[f];return G.jsxs("main",{className:"workspace-loading","aria-live":"polite","aria-busy":"true",children:[G.jsx("span",{className:"workspace-loading-mark","aria-hidden":"true",children:G.jsx(Id,{})}),G.jsx("strong",{children:A.openingVibeletWeb}),G.jsx("span",{children:A.preparingWorkspace})]})}function bv({language:f}){const[A,D]=ge.useState(!1),d=lm[f];return ge.useEffect(()=>fv(()=>D(!0)),[]),A?G.jsxs("div",{className:"pwa-update-notice",role:"status",children:[G.jsxs("span",{children:[G.jsx("strong",{children:d.pwaUpdateReady}),d.pwaUpdateHint]}),G.jsx("button",{onClick:sv,type:"button",children:d.reloadToUpdate})]}):null}function Tv(){const[f,A]=ge.useState(gv),D=tm();return ge.useEffect(()=>{if(typeof window.matchMedia!="function")return;const d=window.matchMedia(em),M=()=>A(d.matches);return M(),typeof d.addEventListener=="function"?(d.addEventListener("change",M),()=>d.removeEventListener("change",M)):(d.addListener(M),()=>d.removeListener(M))},[]),f?G.jsx(Sv,{}):G.jsxs(G.Fragment,{children:[G.jsx(ge.Suspense,{fallback:G.jsx(pv,{language:D}),children:G.jsx(dv,{})}),G.jsx(bv,{language:D})]})}Ky(Fd().theme);qy.createRoot(document.getElementById("root")).render(G.jsx(ge.StrictMode,{children:G.jsx(Tv,{})}));export{Ld as D,av as E,lm as W,ky as _,Vd as a,Ny as b,Zu as c,zv as d,Dv as e,Ky as f,Mv as g,_v as h,Ov as i,G as j,Fd as l,Av as p,ge as r,Ev as s};
15
+ 此操作无法从 Vibelet Web 撤销。`,binaryPreviewUnavailable:"暂不支持预览二进制文件,请下载后查看。",selectRemoteFile:"请从目录浏览器中选择附件或文件。",copyResumeCommand:"复制恢复命令",viewChanges:"查看变更",pin:"置顶",unpin:"取消置顶",archive:"归档",unarchive:"取消归档",delete:"删除",connectedTo:f=>`已连接到 ${f}`,connectingToDaemon:"正在打开安全 daemon 通道",reconnectingToDaemon:"正在重连 daemon",connectionFailed:"连接失败",pairingFailed:"配对失败",pairingLinkExpired:"这个配对链接已过期。请在主机上重新打开 vibelet 打印的新 Web 链接。",missingPair:"打开 vibelet 打印的链接",pendingActions:"待处理",noPendingActions:"没有需要处理的审批或问题。",approvalRequired:"需要审批",approvalMode:"审批模式",inputNeeded:"需要输入",deny:"拒绝",approve:"同意",cancel:"取消",submit:"提交",clear:"清除",restoreSnapshot:"恢复 daemon 快照",refreshSessions:"刷新会话",workspaceTools:"工作区",moreActions:"更多会话操作",openDaemonWebLink:"打开 daemon web 链接",openDaemonWebLinkHint:"用远程访问启动 Vibelet,然后打开 CLI 打印的 Web UI 链接。",copyStartCommand:"复制启动命令",commandCopied:"命令已复制",connectionGuideFootnote:"在电脑上运行该命令,然后打开它输出的安全 Web 链接。",loadingHistory:"正在加载历史",historyRequestTimedOut:"历史消息请求超时。",historyPrefetchTimedOut:"历史消息预加载超时。",noVisibleMessages:"还没有可见消息",startDaemonSession:"开始 daemon 会话",emptyChatHint:"从浏览器发送提示词;daemon 会在主机上保持 Claude 或 Codex 运行。",agentResponding:"Agent 正在回复",stopGenerating:"停止",scrollToLatest:"滚动到最新",newMessages:"查看新消息",showEarlierMessages:f=>`显示更早的 ${f} 条会话内容`,showLatestMessages:f=>`显示更新的 ${f} 条会话内容`,retry:"重试",sendFailed:"消息未发送",sendFailedNetwork:"连接已中断,原消息和附件均已保留。",sendFailedTimeout:"Daemon 未及时响应;重发不会重复创建消息。",sendFailedPermission:"配对电脑拒绝了这次请求。",sendFailedSubscription:"当前订阅暂不支持此操作。",sendFailedMissingResource:"配对电脑上缺少引用的 Skill 或资源。",sendFailedUnknown:"Daemon 未能接收这条消息,原始输入已保留。",retrySend:"重新发送",retrying:"正在重发…",messageCopied:"已复制消息",copyFailed:"无法复制消息",currentDevice:"当前设备",daemon:"Daemon",status:"状态",active:"当前",notPaired:"未配对",forget:"忘记",notifications:"通知",browserAlerts:"浏览器提醒",notificationsBlocked:"浏览器已阻止通知。",savedDevices:"已保存设备",noSavedDevices:"还没有保存的设备。",notConnectedRecently:"最近未连接",desktopConnector:"桌面连接器",version:"版本",checking:"检查中...",unknown:"未知",update:"更新",updating:"更新中...",restart:"重启",restarting:"重启中...",language:"语言",displayLanguage:"显示语言",followSystem:"自动",english:"English",chinese:"中文",skills:"技能",closeSkills:"关闭技能",noSkillsFound:"没有找到技能。",messagePlaceholder:"输入消息,或输入 $ 选择技能...",uploadFiles:"上传文件",showQuickReplies:"显示快捷回复",hideQuickReplies:"隐藏快捷回复",removeAttachment:"移除附件",send:"发送",sendShortcut:"发送快捷键",model:"模型",defaultOption:"默认",useDaemonDefaultModel:"使用 Daemon 默认模型",effort:"推理强度",useDaemonDefault:"使用 Daemon 默认值",effortMinimal:"极简",effortLow:"低",effortMedium:"中",effortHigh:"高",effortXHigh:"极高",effortMax:"最大",effortUltra:"超高",approvalNormal:"普通",approvalNormalDescription:"高风险操作前询问",approvalPlan:"计划",approvalPlanDescription:"编辑前先制定计划",approvalEdits:"编辑",approvalEditsDescription:"自动接受文件编辑",approvalAuto:"自动",approvalAutoDescription:"自动批准支持的操作",normal:"普通",fast:"快速",fastMode:"快速模式",standardExecution:"使用标准执行模式",preferFasterResponses:"优先更快响应",sendShortcutEnter:"回车",sendShortcutEnterDescription:"回车发送;Shift+回车换行",sendShortcutModEnter:"Cmd/Ctrl+回车",sendShortcutModEnterDescription:"Cmd/Ctrl+回车发送;回车换行",uploading:"上传中...",commands:"命令",closeCommands:"关闭命令",noCommandsFound:"没有找到命令。",directoryTags:"目录标签",editDirectoryTags:"编辑目录标签",browseFolder:"浏览文件夹",archiveSyncTitle:"归档同步",archiveSyncBody:"将已归档会话与配对的桌面连接器同步。",archiveSyncSynced:"归档状态已与此连接器同步。",archiveSyncSkippedState:"此连接器已跳过归档同步。",archiveSyncPushReplace:"以浏览器为准",archiveSyncPushMerge:"合并",archiveSyncPull:"以桌面端为准",archiveSyncSkip:"跳过",archiveSyncSyncing:"同步中...",archiveSyncSuccessPush:"已用浏览器归档列表覆盖桌面端({n} 条)。",archiveSyncSuccessMerge:"已合并完成,桌面端当前共 {n} 条归档。",archiveSyncSuccessPull:"已从桌面端拉取 {n} 条归档到浏览器。",archiveSyncSkipped:"已跳过此连接器的归档同步。",archiveSyncFailedTimeout:"同步超时,请稍后重试。",archiveSyncFailedDisconnected:"当前未连接到配对电脑。",archiveSyncFailedGeneric:"同步失败:{error}"}},dv=ge.lazy(async()=>ky(()=>import("./App-B3LwKWyA.js").then(f=>f.A),[]).then(f=>({default:f.App}))),em="(max-width: 767px), (hover: none) and (pointer: coarse) and (max-width: 1024px)",mv={en:"https://vibelet.icu/#get-app",zh:"https://vibelet.icu/zh/#get-app"},hv="https://apps.apple.com/app/id6761245790",yv="https://www.feishu.cn/file/RUnbb7INMocEFjxj5AWcC7WEn6d",vv={en:{eyebrow:"Vibelet Web",title:"Use the Vibelet app on mobile",description:"The Web workspace is available for desktop browsers only. Install the mobile app, then pair it with the desktop connector on your computer.",primary:"Open app download page",ios:"App Store",android:"Android APK",desktopOnly:"Desktop browser only",desktopHint:"Open this Web link on a desktop browser to continue here.",pairingBefore:"Run",pairingAfter:"on your computer, then scan the QR code from the app."},zh:{eyebrow:"Vibelet Web",title:"手机端请使用 Vibelet App",description:"Web 工作台只面向桌面浏览器。请安装手机 App,再和电脑上的桌面连接器完成配对。",primary:"打开 App 下载页",ios:"App Store",android:"Android APK",desktopOnly:"仅支持桌面浏览器",desktopHint:"如果要继续使用 Web,请在桌面浏览器打开这个链接。",pairingBefore:"在电脑上运行",pairingAfter:"然后用 App 扫描二维码。"}};function gv(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(em).matches}function tm(){try{return Vd(Fd().language)}catch{return Vd("system")}}function Sv(){const f=tm(),A=vv[f],D=mv[f];return G.jsx("main",{className:"mobile-app-gate","aria-labelledby":"mobile-app-gate-title",children:G.jsxs("section",{className:"mobile-app-panel",children:[G.jsxs("div",{className:"mobile-app-hero",children:[G.jsx("span",{className:"mobile-app-icon","aria-hidden":"true",children:G.jsx(iv,{})}),G.jsx("span",{className:"mobile-app-eyebrow",children:A.eyebrow}),G.jsx("h1",{id:"mobile-app-gate-title",children:A.title}),G.jsx("p",{children:A.description})]}),G.jsxs("div",{className:"mobile-app-actions",role:"group","aria-label":A.primary,children:[G.jsxs("a",{className:"mobile-app-primary-link",href:D,children:[G.jsx(Ld,{"aria-hidden":"true"}),G.jsx("span",{children:A.primary})]}),G.jsxs("a",{className:"mobile-app-secondary-link",href:hv,rel:"noopener noreferrer",target:"_blank",children:[G.jsx(av,{"aria-hidden":"true"}),G.jsx("span",{children:A.ios})]}),G.jsxs("a",{className:"mobile-app-secondary-link",download:!0,href:yv,children:[G.jsx(Ld,{"aria-hidden":"true"}),G.jsx("span",{children:A.android})]})]}),G.jsxs("div",{className:"mobile-app-note",children:[G.jsx(Id,{"aria-hidden":"true"}),G.jsxs("div",{children:[G.jsx("strong",{children:A.desktopOnly}),G.jsx("span",{children:A.desktopHint})]})]}),G.jsxs("p",{className:"mobile-app-footnote",children:[G.jsx("span",{children:A.pairingBefore}),G.jsx("code",{children:"npx vibelet"}),G.jsx("span",{children:A.pairingAfter})]})]})})}function pv({language:f}){const A=lm[f];return G.jsxs("main",{className:"workspace-loading","aria-live":"polite","aria-busy":"true",children:[G.jsx("span",{className:"workspace-loading-mark","aria-hidden":"true",children:G.jsx(Id,{})}),G.jsx("strong",{children:A.openingVibeletWeb}),G.jsx("span",{children:A.preparingWorkspace})]})}function bv({language:f}){const[A,D]=ge.useState(!1),d=lm[f];return ge.useEffect(()=>fv(()=>D(!0)),[]),A?G.jsxs("div",{className:"pwa-update-notice",role:"status",children:[G.jsxs("span",{children:[G.jsx("strong",{children:d.pwaUpdateReady}),d.pwaUpdateHint]}),G.jsx("button",{onClick:sv,type:"button",children:d.reloadToUpdate})]}):null}function Tv(){const[f,A]=ge.useState(gv),D=tm();return ge.useEffect(()=>{if(typeof window.matchMedia!="function")return;const d=window.matchMedia(em),M=()=>A(d.matches);return M(),typeof d.addEventListener=="function"?(d.addEventListener("change",M),()=>d.removeEventListener("change",M)):(d.addListener(M),()=>d.removeListener(M))},[]),f?G.jsx(Sv,{}):G.jsxs(G.Fragment,{children:[G.jsx(ge.Suspense,{fallback:G.jsx(pv,{language:D}),children:G.jsx(dv,{})}),G.jsx(bv,{language:D})]})}Ky(Fd().theme);qy.createRoot(document.getElementById("root")).render(G.jsx(ge.StrictMode,{children:G.jsx(Tv,{})}));export{Ld as D,av as E,lm as W,ky as _,Vd as a,Ny as b,Zu as c,zv as d,Dv as e,Ky as f,Mv as g,_v as h,Ov as i,G as j,Fd as l,Av as p,ge as r,Ev as s};