@gbasin/agentboard-linux-x64 0.2.20 → 0.2.21

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.
@@ -228,7 +228,7 @@ void main() {
228
228
  select-none
229
229
  transition-all duration-75
230
230
  ${l===g?"bg-accent text-white scale-110":"bg-white/90 text-gray-800"}
231
- `,style:{width:fs,height:ps,WebkitUserSelect:"none",userSelect:"none"},children:g},w):T.jsx("div",{style:{width:fs,height:ps}},w))}),T.jsx("div",{className:"text-center text-white text-sm font-medium select-none h-5",style:{marginTop:Ir+2},children:l?`Release to send "${l}"`:" "})]})})]})]})}const ZD=T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:T.jsx("path",{d:"M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"})}),eM=T.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),T.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"})]}),tM=T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2"}),T.jsx("line",{x1:"6",y1:"8",x2:"6",y2:"8"}),T.jsx("line",{x1:"10",y1:"8",x2:"10",y2:"8"}),T.jsx("line",{x1:"14",y1:"8",x2:"14",y2:"8"}),T.jsx("line",{x1:"18",y1:"8",x2:"18",y2:"8"}),T.jsx("line",{x1:"6",y1:"12",x2:"6",y2:"12"}),T.jsx("line",{x1:"10",y1:"12",x2:"10",y2:"12"}),T.jsx("line",{x1:"14",y1:"12",x2:"14",y2:"12"}),T.jsx("line",{x1:"18",y1:"12",x2:"18",y2:"12"}),T.jsx("line",{x1:"7",y1:"16",x2:"17",y2:"16"})]}),rM=[{label:"esc",key:"\x1B"}],nM=[{label:ZD,key:"",ariaLabel:"Delete word"},{label:T.jsx(vC,{width:18,height:18}),key:"\r",grow:!0,className:"bg-accent/20 text-accent border-accent/40",ariaLabel:"Enter"}];function rs(){"vibrate"in navigator&&navigator.vibrate(10)}function bu(e,t){if(!t||e.length!==1)return{output:e,consumeCtrl:!1};const r=e.toUpperCase().charCodeAt(0);return r>=65&&r<=90?{output:String.fromCharCode(r-64),consumeCtrl:!0}:{output:e,consumeCtrl:!0}}const sM={working:"bg-working",waiting:"bg-waiting",permission:"bg-approval",unknown:"bg-muted"};function iM({onSendKey:e,disabled:t=!1,sessions:r,currentSessionId:n,onSelectSession:i,hideSessionSwitcher:a=!1,onRefocus:l,isKeyboardVisible:s,onEnterTextMode:o}){const[c,f]=E.useState(!1),[u,p]=E.useState(""),[_,y]=E.useState(!1),[v,h]=E.useState(!1),m=E.useRef(null),d=E.useRef(null),g=E.useRef(0),w=E.useRef(null);E.useEffect(()=>{c&&m.current&&m.current.focus()},[c]),E.useEffect(()=>{const F=w.current;if(!F)return;const $=I=>{t||F.contains(I.target)&&s!=null&&s()&&I.preventDefault()};return F.addEventListener("touchstart",$,{passive:!1,capture:!0}),()=>{F.removeEventListener("touchstart",$,{capture:!0})}},[t,s]),E.useEffect(()=>{if(!v||t||typeof document>"u")return;const F=$=>{const{output:I,consumeCtrl:R}=bu($.key,!0);R&&($.preventDefault(),$.stopPropagation(),rs(),e(I),h(!1))};return document.addEventListener("keydown",F,{capture:!0}),()=>{document.removeEventListener("keydown",F,{capture:!0})}},[v,t,e]),E.useEffect(()=>{if(!c)return;const F=d.current;if(!F)return;const $=async I=>{var P;const R=(P=I.clipboardData)==null?void 0:P.items;if(R){for(const N of R)if(N.type.startsWith("image/")){I.preventDefault();const j=N.getAsFile();if(!j)continue;y(!0);try{const W=new FormData;W.append("image",j,`paste.${N.type.split("/")[1]||"png"}`);const V=await fetch("/api/paste-image",{method:"POST",body:W});if(V.ok){const{path:ee}=await V.json();e(ee),f(!1),p(""),l==null||l()}}finally{y(!1)}return}}};return F.addEventListener("paste",$),()=>F.removeEventListener("paste",$)},[c,e,l]);const b=F=>{if(t)return;const $=(s==null?void 0:s())??!1;rs();const{output:I,consumeCtrl:R}=bu(F,v);R&&h(!1),e(I),$&&(l==null||l())},x=()=>{t||(rs(),h(!v))},C=F=>{const{output:$,consumeCtrl:I}=bu(F,v);I&&h(!1),e($)},S=async()=>{if(t)return;const F=(s==null?void 0:s())??!1;rs();try{const $=await navigator.clipboard.read();for(const I of $){const R=I.types.find(P=>P.startsWith("image/"));if(R){const P=await I.getType(R),N=new FormData;N.append("image",P,`paste.${R.split("/")[1]||"png"}`);const j=await fetch("/api/paste-image",{method:"POST",body:N});if(j.ok){const{path:W}=await j.json();e(W),F&&(l==null||l());return}}if(I.types.includes("text/plain")){const N=await(await I.getType("text/plain")).text();if(N){e(N),F&&(l==null||l());return}}}}catch{try{const $=await navigator.clipboard.readText();if($){e($),F&&(l==null||l());return}}catch{}}f(!0),p("")},k=()=>{u&&(rs(),e(u)),f(!1),p(""),l==null||l()},L=()=>{f(!1),p(""),l==null||l()},A=F=>{rs(),i(F)},M=()=>{t||(rs(),s!=null&&s()?document.activeElement instanceof HTMLElement&&document.activeElement.blur():o==null||o())},D=r.length>1&&!a,O=F=>$=>{t||($.preventDefault(),$.stopPropagation(),g.current=Date.now(),F())},z=F=>()=>{t||Date.now()-g.current<700||F()};return T.jsxs("div",{ref:w,className:`terminal-controls flex flex-col gap-1.5 px-2 py-2.5 bg-elevated border-t border-border ${Zo()?"":"md:hidden"}`,children:[D&&T.jsxs("div",{className:"relative -mx-2",children:[T.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-3 bg-gradient-to-r from-elevated to-transparent z-10 pointer-events-none"}),T.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-3 bg-gradient-to-l from-elevated to-transparent z-10 pointer-events-none"}),T.jsx("div",{className:"flex items-center gap-1.5 px-3 overflow-x-auto scrollbar-none scroll-smooth snap-x snap-mandatory",style:{WebkitOverflowScrolling:"touch"},children:r.map((F,$)=>{const I=F.id===n;return T.jsxs("button",{type:"button",className:`
231
+ `,style:{width:fs,height:ps,WebkitUserSelect:"none",userSelect:"none"},children:g},w):T.jsx("div",{style:{width:fs,height:ps}},w))}),T.jsx("div",{className:"text-center text-white text-sm font-medium select-none h-5",style:{marginTop:Ir+2},children:l?`Release to send "${l}"`:" "})]})})]})]})}const ZD=T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:T.jsx("path",{d:"M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"})}),eM=T.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),T.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"})]}),tM=T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2"}),T.jsx("line",{x1:"6",y1:"8",x2:"6",y2:"8"}),T.jsx("line",{x1:"10",y1:"8",x2:"10",y2:"8"}),T.jsx("line",{x1:"14",y1:"8",x2:"14",y2:"8"}),T.jsx("line",{x1:"18",y1:"8",x2:"18",y2:"8"}),T.jsx("line",{x1:"6",y1:"12",x2:"6",y2:"12"}),T.jsx("line",{x1:"10",y1:"12",x2:"10",y2:"12"}),T.jsx("line",{x1:"14",y1:"12",x2:"14",y2:"12"}),T.jsx("line",{x1:"18",y1:"12",x2:"18",y2:"12"}),T.jsx("line",{x1:"7",y1:"16",x2:"17",y2:"16"})]}),rM=[{label:"esc",key:"\x1B"},{label:"tab",key:" "}],nM=[{label:ZD,key:"",ariaLabel:"Delete word"},{label:T.jsx(vC,{width:18,height:18}),key:"\r",grow:!0,className:"bg-accent/20 text-accent border-accent/40",ariaLabel:"Enter"}];function rs(){"vibrate"in navigator&&navigator.vibrate(10)}function bu(e,t){if(!t||e.length!==1)return{output:e,consumeCtrl:!1};const r=e.toUpperCase().charCodeAt(0);return r>=65&&r<=90?{output:String.fromCharCode(r-64),consumeCtrl:!0}:{output:e,consumeCtrl:!0}}const sM={working:"bg-working",waiting:"bg-waiting",permission:"bg-approval",unknown:"bg-muted"};function iM({onSendKey:e,disabled:t=!1,sessions:r,currentSessionId:n,onSelectSession:i,hideSessionSwitcher:a=!1,onRefocus:l,isKeyboardVisible:s,onEnterTextMode:o}){const[c,f]=E.useState(!1),[u,p]=E.useState(""),[_,y]=E.useState(!1),[v,h]=E.useState(!1),m=E.useRef(null),d=E.useRef(null),g=E.useRef(0),w=E.useRef(null);E.useEffect(()=>{c&&m.current&&m.current.focus()},[c]),E.useEffect(()=>{const F=w.current;if(!F)return;const $=I=>{t||F.contains(I.target)&&s!=null&&s()&&I.preventDefault()};return F.addEventListener("touchstart",$,{passive:!1,capture:!0}),()=>{F.removeEventListener("touchstart",$,{capture:!0})}},[t,s]),E.useEffect(()=>{if(!v||t||typeof document>"u")return;const F=$=>{const{output:I,consumeCtrl:R}=bu($.key,!0);R&&($.preventDefault(),$.stopPropagation(),rs(),e(I),h(!1))};return document.addEventListener("keydown",F,{capture:!0}),()=>{document.removeEventListener("keydown",F,{capture:!0})}},[v,t,e]),E.useEffect(()=>{if(!c)return;const F=d.current;if(!F)return;const $=async I=>{var P;const R=(P=I.clipboardData)==null?void 0:P.items;if(R){for(const N of R)if(N.type.startsWith("image/")){I.preventDefault();const j=N.getAsFile();if(!j)continue;y(!0);try{const W=new FormData;W.append("image",j,`paste.${N.type.split("/")[1]||"png"}`);const V=await fetch("/api/paste-image",{method:"POST",body:W});if(V.ok){const{path:ee}=await V.json();e(ee),f(!1),p(""),l==null||l()}}finally{y(!1)}return}}};return F.addEventListener("paste",$),()=>F.removeEventListener("paste",$)},[c,e,l]);const b=F=>{if(t)return;const $=(s==null?void 0:s())??!1;rs();const{output:I,consumeCtrl:R}=bu(F,v);R&&h(!1),e(I),$&&(l==null||l())},x=()=>{t||(rs(),h(!v))},C=F=>{const{output:$,consumeCtrl:I}=bu(F,v);I&&h(!1),e($)},S=async()=>{if(t)return;const F=(s==null?void 0:s())??!1;rs();try{const $=await navigator.clipboard.read();for(const I of $){const R=I.types.find(P=>P.startsWith("image/"));if(R){const P=await I.getType(R),N=new FormData;N.append("image",P,`paste.${R.split("/")[1]||"png"}`);const j=await fetch("/api/paste-image",{method:"POST",body:N});if(j.ok){const{path:W}=await j.json();e(W),F&&(l==null||l());return}}if(I.types.includes("text/plain")){const N=await(await I.getType("text/plain")).text();if(N){e(N),F&&(l==null||l());return}}}}catch{try{const $=await navigator.clipboard.readText();if($){e($),F&&(l==null||l());return}}catch{}}f(!0),p("")},k=()=>{u&&(rs(),e(u)),f(!1),p(""),l==null||l()},L=()=>{f(!1),p(""),l==null||l()},A=F=>{rs(),i(F)},M=()=>{t||(rs(),s!=null&&s()?document.activeElement instanceof HTMLElement&&document.activeElement.blur():o==null||o())},D=r.length>1&&!a,O=F=>$=>{t||($.preventDefault(),$.stopPropagation(),g.current=Date.now(),F())},z=F=>()=>{t||Date.now()-g.current<700||F()};return T.jsxs("div",{ref:w,className:`terminal-controls flex flex-col gap-1.5 px-2 py-2.5 bg-elevated border-t border-border ${Zo()?"":"md:hidden"}`,children:[D&&T.jsxs("div",{className:"relative -mx-2",children:[T.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-3 bg-gradient-to-r from-elevated to-transparent z-10 pointer-events-none"}),T.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-3 bg-gradient-to-l from-elevated to-transparent z-10 pointer-events-none"}),T.jsx("div",{className:"flex items-center gap-1.5 px-3 overflow-x-auto scrollbar-none scroll-smooth snap-x snap-mandatory",style:{WebkitOverflowScrolling:"touch"},children:r.map((F,$)=>{const I=F.id===n;return T.jsxs("button",{type:"button",className:`
232
232
  terminal-key flex items-center justify-center gap-1.5 shrink-0 snap-start
233
233
  h-8 min-w-[3rem] px-2.5 text-xs font-medium rounded-md
234
234
  active:scale-95 transition-transform duration-75
@@ -8,7 +8,7 @@
8
8
  <title>Agentboard</title>
9
9
  <link rel="apple-touch-icon" href="/icons/pwa-192x192.png" />
10
10
  <meta name="theme-color" content="#0f172a" />
11
- <script type="module" crossorigin src="/assets/index-CJf4l-Mm.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-Beg2D28R.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-CX44X0Mv.css">
13
13
  <link rel="manifest" href="/manifest.webmanifest"></head>
14
14
  <body>
package/dist/client/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,n={};const i=(i,o)=>(i=new URL(i+".js",o).href,n[i]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=n,document.head.appendChild(e)}else e=i,importScripts(i),n()}).then(()=>{let e=n[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(o,s)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(n[r])return;let t={};const f=e=>i(e,r),d={module:{uri:r},exports:t,require:f};n[r]=Promise.all(o.map(e=>d[e]||f(e))).then(e=>(s(...e),t))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"97e613cc989680201b4d965a5c10b0e1"},{url:"favicon.svg",revision:"12048a608dedfc53518ddc59c07e41b6"},{url:"icons/pwa-512x512.png",revision:"eb82042b3e4ed505f3efe1b79622d998"},{url:"icons/pwa-192x192.png",revision:"affb57c15619ee7223d1adea372ad514"},{url:"fonts/jetbrains-mono-vietnamese-wght-normal.woff2",revision:"ddf99e6e35c6ee9f00a41d2567b0e77f"},{url:"fonts/jetbrains-mono-latin-wght-normal.woff2",revision:"b058178d7f309414f8f856b99fd80d9b"},{url:"fonts/jetbrains-mono-latin-ext-wght-normal.woff2",revision:"e36841ed93d5bfe6b1d487d18ad7e90b"},{url:"fonts/jetbrains-mono-greek-wght-normal.woff2",revision:"51671ed9eb64e29390d4791ab0023c8e"},{url:"fonts/jetbrains-mono-cyrillic-wght-normal.woff2",revision:"615bf869ebeb5998734d81fc8958116c"},{url:"fonts/jetbrains-mono-cyrillic-ext-wght-normal.woff2",revision:"742dd0628e0118d32dccf0437900670b"},{url:"assets/workbox-window.prod.es5-vqzQaGvo.js",revision:null},{url:"assets/index-CX44X0Mv.css",revision:null},{url:"assets/index-CJf4l-Mm.js",revision:null},{url:"icons/pwa-192x192.png",revision:"affb57c15619ee7223d1adea372ad514"},{url:"icons/pwa-512x512.png",revision:"eb82042b3e4ed505f3efe1b79622d998"},{url:"manifest.webmanifest",revision:"b6d4b3666a548fa0f0c6919d31ec2eee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"),{denylist:[/^\/api(?:\/|$)/,/^\/ws(?:\/|$)/]}))});
1
+ if(!self.define){let e,n={};const i=(i,o)=>(i=new URL(i+".js",o).href,n[i]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=n,document.head.appendChild(e)}else e=i,importScripts(i),n()}).then(()=>{let e=n[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(o,s)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(n[r])return;let f={};const t=e=>i(e,r),d={module:{uri:r},exports:f,require:t};n[r]=Promise.all(o.map(e=>d[e]||t(e))).then(e=>(s(...e),f))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"7dc6bf7d8fe8053ba3356402df19e537"},{url:"favicon.svg",revision:"12048a608dedfc53518ddc59c07e41b6"},{url:"icons/pwa-512x512.png",revision:"eb82042b3e4ed505f3efe1b79622d998"},{url:"icons/pwa-192x192.png",revision:"affb57c15619ee7223d1adea372ad514"},{url:"fonts/jetbrains-mono-vietnamese-wght-normal.woff2",revision:"ddf99e6e35c6ee9f00a41d2567b0e77f"},{url:"fonts/jetbrains-mono-latin-wght-normal.woff2",revision:"b058178d7f309414f8f856b99fd80d9b"},{url:"fonts/jetbrains-mono-latin-ext-wght-normal.woff2",revision:"e36841ed93d5bfe6b1d487d18ad7e90b"},{url:"fonts/jetbrains-mono-greek-wght-normal.woff2",revision:"51671ed9eb64e29390d4791ab0023c8e"},{url:"fonts/jetbrains-mono-cyrillic-wght-normal.woff2",revision:"615bf869ebeb5998734d81fc8958116c"},{url:"fonts/jetbrains-mono-cyrillic-ext-wght-normal.woff2",revision:"742dd0628e0118d32dccf0437900670b"},{url:"assets/workbox-window.prod.es5-vqzQaGvo.js",revision:null},{url:"assets/index-CX44X0Mv.css",revision:null},{url:"assets/index-Beg2D28R.js",revision:null},{url:"icons/pwa-192x192.png",revision:"affb57c15619ee7223d1adea372ad514"},{url:"icons/pwa-512x512.png",revision:"eb82042b3e4ed505f3efe1b79622d998"},{url:"manifest.webmanifest",revision:"b6d4b3666a548fa0f0c6919d31ec2eee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"),{denylist:[/^\/api(?:\/|$)/,/^\/ws(?:\/|$)/]}))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbasin/agentboard-linux-x64",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "agentboard binary for linux-x64",
5
5
  "repository": {
6
6
  "type": "git",