@shumai-one/shumai 0.4.7 → 0.4.8
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/bin/{chunk-6rjkbwz6.js → chunk-07pgpftg.js} +7 -7
- package/bin/{chunk-wvq717b5.js → chunk-0b5s5ge0.js} +2 -2
- package/bin/{chunk-zz0522zr.js → chunk-0jaj2807.js} +3 -3
- package/bin/{chunk-5qkwpy8c.js → chunk-1qk4e3j9.js} +2 -2
- package/bin/{chunk-3b6h719s.js → chunk-1y7nvhgx.js} +2 -2
- package/bin/{chunk-yqvhgtez.js → chunk-1ymyhrh2.js} +2 -2
- package/bin/{chunk-j41mya13.js → chunk-1zpsbvq9.js} +2 -2
- package/bin/{chunk-vdnmq163.js → chunk-251rat7t.js} +1 -1
- package/bin/{chunk-p5fwjk5c.js → chunk-29wjvgwv.js} +1 -1
- package/bin/{chunk-fk712d68.js → chunk-2ftmxhr5.js} +1 -1
- package/bin/{chunk-fvgb6rps.js → chunk-2y7y60pc.js} +2 -2
- package/bin/{chunk-rkqpnyzx.js → chunk-3rjdkmhb.js} +1 -1
- package/bin/{chunk-q6jsw0rr.js → chunk-43dzhk24.js} +48 -48
- package/bin/{chunk-3g5pyw2e.js → chunk-45mheqnm.js} +2 -2
- package/bin/{chunk-b3aqmcps.js → chunk-4sq35ks7.js} +2 -2
- package/bin/{chunk-fhazy8f9.js → chunk-4tm9cw4v.js} +1 -1
- package/bin/{chunk-kg2c445x.js → chunk-4tpkx2ft.js} +1 -1
- package/bin/chunk-55n569j1.js +1 -0
- package/bin/{chunk-887pj9xd.js → chunk-5pcv139g.js} +2 -2
- package/bin/{chunk-8gna37dd.js → chunk-65ets3f0.js} +1 -1
- package/bin/{chunk-8ystwvdt.js → chunk-67ewr4j4.js} +1 -1
- package/bin/{chunk-xca338dw.js → chunk-6h76kqv2.js} +3 -3
- package/bin/chunk-6jaf9hxa.js +1 -0
- package/bin/{chunk-k810fstm.js → chunk-6t5r26bm.js} +1 -1
- package/bin/{chunk-camzbwqh.js → chunk-6vst0k0k.js} +1 -1
- package/bin/{chunk-an6nsq1t.js → chunk-6xqpbkb6.js} +1 -1
- package/bin/{chunk-radcwage.js → chunk-75x3b8ds.js} +2 -2
- package/bin/chunk-7hxd4st0.js +1 -0
- package/bin/{chunk-3h9c5ak3.js → chunk-7nv7r7zx.js} +1 -1
- package/bin/{chunk-s41mgkse.js → chunk-7rvyq5gr.js} +1 -1
- package/bin/{chunk-m638fg4n.js → chunk-9ht2kr33.js} +5 -5
- package/bin/chunk-9kb55e6b.js +1 -0
- package/bin/{chunk-h3wr8nnk.js → chunk-9v10mkts.js} +1 -1
- package/bin/{chunk-05tnmf8h.js → chunk-afsm0ct9.js} +2 -2
- package/bin/{chunk-njabdtvb.js → chunk-b93qxjts.js} +2 -2
- package/bin/{chunk-xzyfnfck.js → chunk-b9p9yhky.js} +2 -2
- package/bin/{chunk-v1sgrg0r.js → chunk-bbk5v964.js} +1 -1
- package/bin/{chunk-rdscv38p.js → chunk-bcjkapyp.js} +1 -1
- package/bin/{chunk-4a88wwg2.js → chunk-bcqhjbpy.js} +1 -1
- package/bin/{chunk-zcdqsp1e.js → chunk-bxksbrcm.js} +1 -1
- package/bin/chunk-c1a1srsw.js +2 -0
- package/bin/chunk-c7yxnyep.js +1 -0
- package/bin/{chunk-8b1w6bj9.js → chunk-czwpfv0w.js} +1 -1
- package/bin/{chunk-ebx3bd4c.js → chunk-d9dmr2vc.js} +1 -1
- package/bin/chunk-da4fd4f8.js +2 -0
- package/bin/{chunk-kq2qbwx1.js → chunk-dk2trprj.js} +1 -1
- package/bin/{chunk-m2h7a172.js → chunk-dmewtzbe.js} +1 -1
- package/bin/{chunk-pa1fmskf.js → chunk-dp1mrw7m.js} +1 -1
- package/bin/{chunk-dyq6h9ha.js → chunk-dpn61sht.js} +1 -1
- package/bin/{chunk-781990k7.js → chunk-drpdjxmw.js} +1 -1
- package/bin/{chunk-b0rjvx5g.js → chunk-e333evwr.js} +2 -2
- package/bin/{chunk-gf4n4ahk.js → chunk-e3qxpswy.js} +1 -1
- package/bin/chunk-faaqparg.js +2 -0
- package/bin/{chunk-4jgq9m51.js → chunk-fezar34g.js} +2 -2
- package/bin/{chunk-pcspeqwq.js → chunk-fnca3xqw.js} +2 -2
- package/bin/{chunk-6kdf411z.js → chunk-frma9pgq.js} +1 -1
- package/bin/chunk-g82qnxw6.js +2 -0
- package/bin/{chunk-4f5pnnah.js → chunk-gj3vrbkx.js} +12 -12
- package/bin/{chunk-mm1a0zja.js → chunk-hed37kyr.js} +1 -1
- package/bin/{chunk-nnq8g9yy.js → chunk-ht64xpjp.js} +3 -3
- package/bin/{chunk-nn5hyf6f.js → chunk-j3qz3wa3.js} +1 -1
- package/bin/chunk-j6ptdqp9.js +2 -0
- package/bin/{chunk-9va1mzeq.js → chunk-j95fjg69.js} +1 -1
- package/bin/{chunk-q1d7x1cc.js → chunk-jgnp68ez.js} +1 -1
- package/bin/{chunk-0ygtayqf.js → chunk-jhxcm88f.js} +1 -1
- package/bin/{chunk-ccvjwhqq.js → chunk-jwhgybtg.js} +1 -1
- package/bin/chunk-kdg245g7.js +1 -0
- package/bin/{chunk-8sf106rq.js → chunk-mcq3pe4v.js} +1 -1
- package/bin/chunk-mg4p33eg.js +2 -0
- package/bin/{chunk-z9jpgxf1.js → chunk-mn9ax7qa.js} +1 -1
- package/bin/chunk-mrdznst9.js +1 -0
- package/bin/chunk-msg8j3hj.css +1 -0
- package/bin/{chunk-1ntn42d2.js → chunk-n4f1he1g.js} +3 -3
- package/bin/{chunk-twyxs4z2.js → chunk-nradb5py.js} +1 -1
- package/bin/chunk-nsvfcp3f.js +1 -0
- package/bin/{chunk-9v6eqa3n.js → chunk-nx782n1x.js} +2 -2
- package/bin/{chunk-3m5kwcj7.js → chunk-p4hwyysm.js} +1 -1
- package/bin/{chunk-dkzyv61a.js → chunk-p706vjvr.js} +2 -2
- package/bin/{chunk-jde9r5mj.js → chunk-pbmkewt5.js} +1 -1
- package/bin/{chunk-3tyk9xgf.js → chunk-pbq64m5k.js} +2 -2
- package/bin/{chunk-njqf50vw.js → chunk-pg5mayjc.js} +1 -1
- package/bin/{chunk-rbagbd0e.js → chunk-pq3pyrvy.js} +1 -1
- package/bin/{chunk-e17daz1x.js → chunk-qje7g7t7.js} +1 -1
- package/bin/{chunk-r55htzxr.js → chunk-qn37fsy3.js} +1 -1
- package/bin/{chunk-3r5yc5wm.js → chunk-qrmkkxjh.js} +4 -4
- package/bin/chunk-qw4v0qdg.js +1 -0
- package/bin/{chunk-zr11zfwc.js → chunk-qw76wcrb.js} +1 -1
- package/bin/{chunk-ebf1r872.js → chunk-r8ss8xm1.js} +4 -4
- package/bin/{chunk-s63vj79f.js → chunk-rvj965cr.js} +1 -1
- package/bin/{chunk-4m8gk79m.js → chunk-rzannb5e.js} +2 -2
- package/bin/{chunk-yr03tf5r.js → chunk-s26a26h3.js} +1 -1
- package/bin/{chunk-jt04mf5s.js → chunk-sf9ezxgy.js} +1 -1
- package/bin/{chunk-hye75kp0.js → chunk-t2sqtc9p.js} +2 -2
- package/bin/{chunk-k3qypq3x.js → chunk-tf3hke5h.js} +1 -1
- package/bin/{chunk-vx66rms0.js → chunk-tjhbr5ks.js} +1 -1
- package/bin/chunk-twwpbp8d.js +2 -0
- package/bin/{chunk-xznabrt2.js → chunk-twx715xf.js} +1 -1
- package/bin/{chunk-zmjtv19e.js → chunk-tycap2k9.js} +1 -1
- package/bin/chunk-v3yfee88.js +2 -0
- package/bin/{chunk-typ46eqd.js → chunk-v6tjp5qt.js} +4 -4
- package/bin/{chunk-ycw3rwhx.js → chunk-vfv27kve.js} +3 -3
- package/bin/chunk-vq24vj88.js +1 -0
- package/bin/{chunk-53vtc74g.js → chunk-w53gqdnw.js} +2 -2
- package/bin/{chunk-q45n02fs.js → chunk-wdbew0hx.js} +1 -1
- package/bin/{chunk-11c93g1m.js → chunk-wqqdy0xb.js} +2 -2
- package/bin/{chunk-s30fjvzs.js → chunk-ws216bmf.js} +1 -1
- package/bin/{chunk-5v4s2kp4.js → chunk-x33bf3ay.js} +1 -1
- package/bin/{chunk-5rk7dyx9.js → chunk-x79scans.js} +51 -51
- package/bin/chunk-xktxk53n.js +1 -0
- package/bin/{chunk-rkafv27g.js → chunk-xmn5v64e.js} +1 -1
- package/bin/{chunk-zbt4h7n0.js → chunk-y4pe65d1.js} +1 -1
- package/bin/{chunk-ny7qjn6s.js → chunk-ybnykjsg.js} +1 -1
- package/bin/{chunk-3p1bb08a.js → chunk-yeb5bcxz.js} +1 -1
- package/bin/{chunk-ayq8dskd.js → chunk-yvz2b957.js} +1 -1
- package/bin/{chunk-t3t7dcfq.js → chunk-ze3msq86.js} +1 -1
- package/bin/{chunk-5wp37g6w.js → chunk-zhx4vsgt.js} +2 -2
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +258 -257
- package/package.json +7 -7
- package/bin/chunk-0xsgx9ep.js +0 -1
- package/bin/chunk-1ajgdv26.js +0 -1
- package/bin/chunk-30dsxm8s.js +0 -1
- package/bin/chunk-58e1a3re.js +0 -2
- package/bin/chunk-6ksrrayx.css +0 -1
- package/bin/chunk-bgm76rzj.js +0 -1
- package/bin/chunk-btmxr226.js +0 -1
- package/bin/chunk-ee3mrvqp.js +0 -2
- package/bin/chunk-fg6zf2gb.js +0 -2
- package/bin/chunk-g9gmht89.js +0 -2
- package/bin/chunk-htpjtarr.js +0 -2
- package/bin/chunk-j547gtag.js +0 -2
- package/bin/chunk-jf4kcad0.js +0 -1
- package/bin/chunk-k5hnrtrt.js +0 -1
- package/bin/chunk-qjzyze00.js +0 -1
- package/bin/chunk-rfhmk32e.js +0 -1
- package/bin/chunk-xbge27m4.js +0 -1
- package/bin/chunk-xcsz1wp7.js +0 -1
- package/bin/chunk-zb0az2tq.js +0 -2
- package/bin/chunk-zej27b5c.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let e=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let g of m(a))if(!j.call(e,g))f(e,g,{get:n.bind(a,g),enumerable:!0})}if(d)h.set(a,e);return e};var w=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var Oe=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var
|
|
3
|
-
export{z,w,Oe,
|
|
2
|
+
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let e=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let g of m(a))if(!j.call(e,g))f(e,g,{get:n.bind(a,g),enumerable:!0})}if(d)h.set(a,e);return e};var w=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var Oe=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var gm=(a,b,c)=>()=>{if(a)try{b=a(a=0)}catch(d){c=[d]}if(c)throw c[0];return b};var Am=(a)=>JSON.parse(a);var _m=(a,b,c)=>{for(var d in b)f(a,d,{get:b[d],set:c[d],enumerable:!0,configurable:!0})},G=import.meta.require;
|
|
3
|
+
export{z,w,Oe,gm,Am,_m,G};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Cn,S,t,o,Z,A,
|
|
1
|
+
import{Cn,S,t,o,Z,A,VA,JA,Ef,pd,jf,Rx,XE,xp,Pg,LC,Lp,Zp,gn,ue,ie,me,le,Tt,pA,Mn,so,Eo,pe}from"./chunk-43dzhk24.js";import{Io}from"./chunk-sf9ezxgy.js";S();var y=(g)=>g.replace(/<@([a-zA-Z0-9_-]+)>/g,"@$1").replace(/^\[([^\]]+)\]:/gm,"\\[$1\\]:");function jl({sessionId:g,open:N,onOpenChange:_}){let{data:x,isLoading:D}=Z({queryKey:["agent-sessions",g,"entries"],queryFn:async()=>{if(!g)return[];let s=await A.api["agent-sessions"][":sessionId"].entries.$get({param:{sessionId:g}});if(!s.ok)throw Error("Failed to fetch session logs");return await s.json()},enabled:N&&!!g});return t(ue,{open:N,onOpenChange:_,children:o(ie,{className:"sm:max-w-2xl max-h-[80vh] flex flex-col p-6 overflow-hidden bg-background/95 backdrop-blur-md border border-foreground/15 shadow-2xl",children:[o(me,{className:"pb-4 border-b border-foreground/15",children:[o(le,{className:"flex items-center gap-2 text-xl font-bold",children:[t(Io,{className:"w-5 h-5 text-violet-500"}),JA()]}),t(Tt,{children:VA()})]}),t("div",{className:"flex-1 overflow-y-auto pr-1 py-4 space-y-4 min-h-0 select-text",children:D?o("div",{className:"space-y-4",children:[o("div",{className:"flex gap-4",children:[t(pe,{className:"h-5 w-5 rounded-full shrink-0"}),o("div",{className:"flex-1 space-y-2",children:[t(pe,{className:"h-4 w-1/4"}),t(pe,{className:"h-20 w-full"})]})]}),o("div",{className:"flex gap-4",children:[t(pe,{className:"h-5 w-5 rounded-full shrink-0"}),o("div",{className:"flex-1 space-y-2",children:[t(pe,{className:"h-4 w-1/4"}),t(pe,{className:"h-12 w-full"})]})]})]}):x&&x.length>0?t("div",{className:"flex flex-col",children:x.map((s)=>{let a=s.entry,b=a?.timestamp||s.timestamp,f="";if(typeof b==="string"||typeof b==="number"){let e=new Date(b);if(!isNaN(e.getTime()))f=Mn(e.toISOString())}if(a&&typeof a==="object"){if(a.type==="custom_message"){if(a.customType==="context")return null;if(a.customType==="shumai_message"){let e=pA(a.details),m=typeof a.content==="string"?a.content:"",p=e?`${m}
|
|
2
2
|
|
|
3
|
-
${e}`.trim():m,w="bg-primary/10 text-primary",v=
|
|
3
|
+
${e}`.trim():m,w="bg-primary/10 text-primary",v=Pg();return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:"absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background flex items-center justify-center bg-primary"}),o("div",{className:"flex flex-col gap-1.5 bg-muted/30 dark:bg-muted/10 p-3 rounded-lg border border-foreground/5 backdrop-blur-xs w-full",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 flex-wrap",children:[t("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-semibold uppercase tracking-wider bg-primary/10 text-primary",children:v}),o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:pd(),children:[pd(),": ",s.id]})]}),t("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:f})]}),t("div",{className:"text-xs text-foreground/90 whitespace-pre-wrap leading-relaxed font-sans",children:p})]})]},s.id)}}if(a.type==="message"&&a.message){let e=a.message,m="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",p=String(e.role||"");if(e.role==="user")m="bg-primary/10 text-primary",p=Pg();else if(e.role==="assistant")m="bg-violet-100 text-violet-800 dark:bg-violet-900/30 dark:text-violet-300",p=XE();else if(e.role==="toolResult")m=e.isError?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300":"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-300",p=Zp({name:String(e.toolName||gn())});else if(e.role==="thought")m="bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",p=xp();let w=(n)=>{let r=n;if(typeof n==="string")try{r=JSON.parse(n)}catch{}if(r&&typeof r==="object"&&!Array.isArray(r))return t("div",{className:"mt-1 space-y-1.5 pt-3",children:Object.entries(r).map(([l,i])=>{let c=i&&typeof i==="object"?JSON.stringify(i,null,2):String(i);return o("div",{className:"text-xs leading-relaxed break-words",children:[o("span",{className:"font-semibold text-violet-600 dark:text-violet-400",children:[l,":"]})," ",t("span",{className:"text-foreground/90 font-mono whitespace-pre-wrap",children:c})]},l)})});return t("div",{className:"text-xs font-mono whitespace-pre-wrap",children:String(n)})},v=()=>{let n=e.content;if(!n)return null;if(typeof n==="string"){if(!n.trim())return null;return t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Eo,{children:y(n)})})}if(Array.isArray(n)){let r=[];if(n.forEach((d,l)=>{if(!d)return;if(typeof d==="string"){if(!d.trim())return;r.push(t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Eo,{children:y(d)})},`str-${l}`));return}if(typeof d==="object"){let i=d,c=i.type;if(c==="text"){let u=i.text;if(typeof u!=="string"||!u.trim())return;r.push(t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Eo,{children:y(u)})},`txt-${l}`));return}if(c==="toolCall"){let u=String(i.name||i.toolName||gn()),h=i.arguments||i.args;r.push(o("div",{className:"text-xs space-y-2 py-1",children:[o("div",{className:"font-semibold text-violet-600 dark:text-violet-400 flex items-center gap-1.5",children:[Ef()," ",t("span",{className:"font-mono bg-violet-500/10 px-1 py-0.5 rounded text-[11px]",children:u})]}),!!h&&o("div",{className:"space-y-1 pt-3",children:[t("div",{className:"text-[10px] text-muted-foreground/60 uppercase font-bold tracking-wider",children:Lp()}),w(h)]})]},`tool-${l}`));return}if(c==="image"){r.push(t("div",{className:"text-xs text-muted-foreground italic flex items-center gap-1.5 py-1",children:jf()},`img-${l}`));return}let k=JSON.stringify(d,null,2);if(k==="{}")return;r.push(t("pre",{className:"text-xs text-foreground/80 font-mono whitespace-pre-wrap break-words bg-muted/20 p-2 rounded",children:k},`other-${l}`))}}),r.length===0)return null;return t("div",{className:"space-y-3 w-full",children:r.map((d,l)=>o(Cn,{children:[l>0&&t(so,{className:"my-3 opacity-50"}),d]},l))})}return null};return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:`absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background flex items-center justify-center ${e.role==="user"?"bg-primary":e.role==="assistant"?"bg-violet-500":e.role==="toolResult"?e.isError?"bg-red-500":"bg-emerald-500":"bg-amber-500"}`}),o("div",{className:"flex flex-col gap-1.5 bg-muted/30 dark:bg-muted/10 p-3 rounded-lg border border-foreground/5 backdrop-blur-xs w-full",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 flex-wrap",children:[t("span",{className:`text-[10px] px-2 py-0.5 rounded-full font-semibold uppercase tracking-wider ${m}`,children:p}),o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:pd(),children:[pd(),": ",s.id]})]}),t("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:f})]}),v()]})]},s.id)}}return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:"absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background bg-gray-400"}),o("div",{className:"bg-muted/30 p-3 rounded-lg border border-foreground/5",children:[o("div",{className:"flex items-center justify-between gap-2 mb-1.5 flex-wrap",children:[o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:"Entry ID",children:["ID: ",s.id]}),t("div",{className:"text-[10px] text-muted-foreground/60",children:f})]}),t("pre",{className:"text-xs text-foreground/80 font-mono whitespace-pre-wrap break-words",children:JSON.stringify(s.entry,null,2)})]})]},s.id)})}):o("div",{className:"flex flex-col items-center justify-center py-12 text-center text-muted-foreground",children:[t(Io,{className:"w-8 h-8 text-muted-foreground/40 mb-2 animate-pulse"}),t("p",{className:"text-sm font-medium",children:Rx()}),t("p",{className:"text-xs text-muted-foreground/60 mt-1",children:LC()})]})})]})})}
|
|
4
4
|
export{jl};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Vo}from"./chunk-
|
|
2
|
+
import{Vo}from"./chunk-tjhbr5ks.js";import{Dt}from"./chunk-ws216bmf.js";import{$e,Jt,qt}from"./chunk-drpdjxmw.js";import{z}from"./chunk-1ymyhrh2.js";var N=z(Dt()),c=z($e()),w=z(Vo());import L from"fs/promises";var l=z($e());var O="169.254.170.2",y="169.254.170.23",v="[fd00:ec2::23]",A=(e,o)=>{if(e.protocol==="https:")return;if(e.hostname===O||e.hostname===y||e.hostname===v)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let n=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(n[0]==="127"&&r(n[1])&&r(n[2])&&r(n[3])&&n.length===4)return}throw new l.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
3
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
4
|
- ECS container host 169.254.170.2
|
|
5
5
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:o})};var i=z($e()),C=z(qt()),p=z(Jt()),_=z(Jt());function f(e){return new C.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((o,[n,r])=>(o[n]=r,o),{}),fragment:e.hash})}async function I(e,o){let r=await _.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new i.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:o});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:p.parseRfc3339DateTime(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new i.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:o}),{Code:t.Code,Message:t.Message})}throw new i.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:o})}var u=(e,o,n)=>async()=>{for(let r=0;r<o;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,n))}return await e()};var U="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",k="http://169.254.170.2",H="AWS_CONTAINER_CREDENTIALS_FULL_URI",K="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",P="AWS_CONTAINER_AUTHORIZATION_TOKEN",F=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let o,n=e.awsContainerCredentialsRelativeUri??process.env[U],r=e.awsContainerCredentialsFullUri??process.env[H],t=e.awsContainerAuthorizationToken??process.env[P],s=e.awsContainerAuthorizationTokenFile??process.env[K],a=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&r)a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.");if(t&&s)a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.");if(n)o=`${k}${n}`;else if(r)o=r;else throw new c.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{De,fr}from"./chunk-
|
|
2
|
+
import{De,fr}from"./chunk-0b5s5ge0.js";import{Zn,Jr,En}from"./chunk-b93qxjts.js";var n=class{get supportsCreateIfNotExists(){return!0}get supportsTransactionalDdl(){return!1}get supportsReturning(){return!0}async acquireMigrationLock(){}async releaseMigrationLock(){}get supportsOutput(){return!0}},s=class{#e;#t=new o;#r;#a;constructor(e){this.#e={...e}}async init(){if(this.#r=this.#e.database,this.#a=new i(this.#r),this.#e.onCreateConnection)await this.#e.onCreateConnection(this.#a)}async acquireConnection(){return await this.#t.lock(),this.#a}async beginTransaction(e){await e.executeQuery(fr.raw("begin"))}async commitTransaction(e){await e.executeQuery(fr.raw("commit"))}async rollbackTransaction(e){await e.executeQuery(fr.raw("rollback"))}async releaseConnection(){this.#t.unlock()}async destroy(){this.#r?.close()}},i=class{#e;constructor(e){this.#e=e}executeQuery(e){let{sql:r,parameters:a}=e,t=this.#e.prepare(r);return Promise.resolve({rows:t.all(a)})}async*streamQuery(){throw Error("Streaming query is not supported by SQLite driver.")}},o=class{#e;#t;async lock(){while(this.#e!==void 0)await this.#e;this.#e=new Promise((e)=>{this.#t=e})}unlock(){let e=this.#t;this.#e=void 0,this.#t=void 0,e?.()}},c=class{#e;constructor(e){this.#e=e}async getSchemas(){return[]}async getTables(e={withInternalKyselyTables:!1}){let r=this.#e.selectFrom("sqlite_schema").where("type","=","table").where("name","not like","sqlite_%").select("name").$castTo();if(!e.withInternalKyselyTables)r=r.where("name","!=",Jr).where("name","!=",En);let a=await r.execute();return Promise.all(a.map(({name:t})=>this.#t(t)))}async getMetadata(e){return{tables:await this.getTables(e)}}async#t(e){let r=this.#e,a=(await r.selectFrom("sqlite_master").where("name","=",e).select("sql").$castTo().execute())[0]?.sql?.split(/[\(\),]/)?.find((t)=>t.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g,"");return{name:e,columns:(await r.selectFrom(De`pragma_table_info(${e})`.as("table_info")).select(["name","type","notnull","dflt_value"]).execute()).map((t)=>({name:t.name,dataType:t.type,isNullable:!t.notnull,isAutoIncrementing:t.name===a,hasDefaultValue:t.dflt_value!=null})),isView:!0}}},l=class extends Zn{getCurrentParameterPlaceholder(){return"?"}getLeftIdentifierWrapper(){return'"'}getRightIdentifierWrapper(){return'"'}getAutoIncrement(){return"autoincrement"}},m=class{#e;constructor(e){this.#e={...e}}createDriver(){return new s(this.#e)}createQueryCompiler(){return new l}createAdapter(){return new n}createIntrospector(e){return new c(e)}};export{m as BunSqliteDialect};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I}from"./chunk-
|
|
1
|
+
import{I}from"./chunk-43dzhk24.js";var e=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Ql=I("code",e);
|
|
2
2
|
export{Ql};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{w,G}from"./chunk-
|
|
3
|
-
export{
|
|
2
|
+
import{w,G}from"./chunk-1ymyhrh2.js";var Wi=w(function(ar,D){var{defineProperty:k,getOwnPropertyDescriptor:re,getOwnPropertyNames:te}=Object,oe=Object.prototype.hasOwnProperty,ne=(e,r)=>{for(var t in r)k(e,t,{get:r[t],enumerable:!0})},se=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of te(r))if(!oe.call(e,o)&&o!==t)k(e,o,{get:()=>r[o],enumerable:!(n=re(r,o))||n.enumerable})}return e},ie=(e)=>se(k({},"__esModule",{value:!0}),e),E={};ne(E,{VercelOidcTokenError:()=>m});D.exports=ie(E);class m extends Error{constructor(e,r){super(e);this.name="VercelOidcTokenError",this.cause=r}toString(){if(this.cause)return`${this.name}: ${this.message}: ${this.cause}`;return`${this.name}: ${this.message}`}}});var V=w(function(cr,S){var{create:ae,defineProperty:_,getOwnPropertyDescriptor:ce,getOwnPropertyNames:ue,getPrototypeOf:pe}=Object,le=Object.prototype.hasOwnProperty,fe=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},x=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of ue(r))if(!le.call(e,o)&&o!==t)_(e,o,{get:()=>r[o],enumerable:!(n=ce(r,o))||n.enumerable})}return e},g=(e,r,t)=>(t=e!=null?ae(pe(e)):{},x(r||!e||!e.__esModule?_(t,"default",{value:e,enumerable:!0}):t,e)),_e=(e)=>x(_({},"__esModule",{value:!0}),e),A={};fe(A,{findRootDir:()=>ve,getUserDataDir:()=>ke});S.exports=_e(A);var p=g(G("path")),de=g(G("fs")),y=g(G("os")),he=Wi();function ve(){try{let e=process.cwd();while(e!==p.default.dirname(e)){let r=p.default.join(e,".vercel");if(de.default.existsSync(r))return e;e=p.default.dirname(e)}}catch(e){throw new he.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function ke(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(y.default.platform()){case"darwin":return p.default.join(y.default.homedir(),"Library/Application Support");case"linux":return p.default.join(y.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}});var F=w(function(ur,q){var{create:ye,defineProperty:d,getOwnPropertyDescriptor:we,getOwnPropertyNames:ge,getPrototypeOf:Oe}=Object,Pe=Object.prototype.hasOwnProperty,be=(e,r)=>{for(var t in r)d(e,t,{get:r[t],enumerable:!0})},C=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of ge(r))if(!Pe.call(e,o)&&o!==t)d(e,o,{get:()=>r[o],enumerable:!(n=we(r,o))||n.enumerable})}return e},R=(e,r,t)=>(t=e!=null?ye(Oe(e)):{},C(r||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),je=(e)=>C(d({},"__esModule",{value:!0}),e),M={};be(M,{isValidAccessToken:()=>De,readAuthConfig:()=>Ee,writeAuthConfig:()=>me});q.exports=je(M);var l=R(G("fs")),I=R(G("path")),Te=Yi();function N(){let e=(0,Te.getVercelDataDir)();if(!e)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return I.join(e,"auth.json")}function Ee(){try{let e=N();if(!l.existsSync(e))return null;let r=l.readFileSync(e,"utf8");if(!r)return null;return JSON.parse(r)}catch(e){return null}}function me(e){let r=N(),t=I.dirname(r);if(!l.existsSync(t))l.mkdirSync(t,{mode:504,recursive:!0});l.writeFileSync(r,JSON.stringify(e,null,2),{mode:384})}function De(e,r=0){if(!e.token)return!1;if(typeof e.expiresAt!=="number")return!0;let t=Math.floor(Date.now()/1000),n=r/1000;return e.expiresAt>=t+n}});var B=w(function(pr,L){var{defineProperty:b,getOwnPropertyDescriptor:xe,getOwnPropertyNames:Ae}=Object,Se=Object.prototype.hasOwnProperty,Ve=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},Ce=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Ae(r))if(!Se.call(e,o)&&o!==t)b(e,o,{get:()=>r[o],enumerable:!(n=xe(r,o))||n.enumerable})}return e},Re=(e)=>Ce(b({},"__esModule",{value:!0}),e),U={};Ve(U,{processTokenResponse:()=>Fe,refreshTokenRequest:()=>qe});L.exports=Re(U);var O=G("os"),Me="https://vercel.com",Ie="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",J=`@vercel/oidc node-${process.version} ${(0,O.platform)()} (${(0,O.arch)()}) ${(0,O.hostname)()}`,P=null;async function Ne(){if(P)return P;let e=`${Me}/.well-known/openid-configuration`,r=await fetch(e,{headers:{"user-agent":J}});if(!r.ok)throw Error("Failed to discover OAuth endpoints");let t=await r.json();if(!t||typeof t.token_endpoint!=="string")throw Error("Invalid OAuth discovery response");let n=t.token_endpoint;return P=n,n}async function qe(e){let r=await Ne();return await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":J},body:new URLSearchParams({client_id:Ie,grant_type:"refresh_token",...e})})}async function Fe(e){let r=await e.json();if(!e.ok){let t=typeof r==="object"&&r&&"error"in r?String(r.error):"Token refresh failed";return[Error(t)]}if(typeof r!=="object"||r===null)return[Error("Invalid token response")];if(typeof r.access_token!=="string")return[Error("Missing access_token in response")];if(r.token_type!=="Bearer")return[Error("Invalid token_type in response")];if(typeof r.expires_in!=="number")return[Error("Missing expires_in in response")];return[null,r]}});var sf=w(function(lr,Y){var{defineProperty:j,getOwnPropertyDescriptor:$e,getOwnPropertyNames:Ue}=Object,Je=Object.prototype.hasOwnProperty,Le=(e,r)=>{for(var t in r)j(e,t,{get:r[t],enumerable:!0})},Be=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Ue(r))if(!Je.call(e,o)&&o!==t)j(e,o,{get:()=>r[o],enumerable:!(n=$e(r,o))||n.enumerable})}return e},He=(e)=>Be(j({},"__esModule",{value:!0}),e),H={};Le(H,{AccessTokenMissingError:()=>z,RefreshAccessTokenFailedError:()=>X});Y.exports=He(H);class z extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login).");this.name="AccessTokenMissingError"}}class X extends Error{constructor(e){super("Failed to refresh authentication token.",{cause:e});this.name="RefreshAccessTokenFailedError"}}});var Yi=w(function(fr,ee){var{create:ze,defineProperty:h,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Xe,getPrototypeOf:Ye}=Object,Qe=Object.prototype.hasOwnProperty,Ze=(e,r)=>{for(var t in r)h(e,t,{get:r[t],enumerable:!0})},Z=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Xe(r))if(!Qe.call(e,o)&&o!==t)h(e,o,{get:()=>r[o],enumerable:!(n=Ge(r,o))||n.enumerable})}return e},K=(e,r,t)=>(t=e!=null?ze(Ye(e)):{},Z(r||!e||!e.__esModule?h(t,"default",{value:e,enumerable:!0}):t,e)),Ke=(e)=>Z(h({},"__esModule",{value:!0}),e),W={};Ze(W,{assertVercelOidcTokenResponse:()=>T,findProjectInfo:()=>tr,getTokenPayload:()=>sr,getVercelDataDir:()=>We,getVercelOidcToken:()=>rr,getVercelToken:()=>er,isExpired:()=>ir,loadToken:()=>nr,saveToken:()=>or});ee.exports=Ke(W);var f=K(G("path")),s=K(G("fs")),u=Wi(),v=V(),a=F(),Q=B(),c=sf();function We(){let r=(0,v.getUserDataDir)();if(!r)return null;return f.join(r,"com.vercel.cli")}async function er(e){let r=(0,a.readAuthConfig)();if(!r?.token)throw new c.AccessTokenMissingError;if((0,a.isValidAccessToken)(r,e?.expirationBufferMs))return r.token;if(!r.refreshToken)throw(0,a.writeAuthConfig)({}),new c.RefreshAccessTokenFailedError("No refresh token available");try{let t=await(0,Q.refreshTokenRequest)({refresh_token:r.refreshToken}),[n,o]=await(0,Q.processTokenResponse)(t);if(n||!o)throw(0,a.writeAuthConfig)({}),new c.RefreshAccessTokenFailedError(n);let i={token:o.access_token,expiresAt:Math.floor(Date.now()/1000)+o.expires_in};if(o.refresh_token)i.refreshToken=o.refresh_token;return(0,a.writeAuthConfig)(i),i.token}catch(t){if((0,a.writeAuthConfig)({}),t instanceof c.AccessTokenMissingError||t instanceof c.RefreshAccessTokenFailedError)throw t;throw new c.RefreshAccessTokenFailedError(t)}}async function rr(e,r,t){let n=`https://api.vercel.com/v1/projects/${r}/token?source=vercel-oidc-refresh${t?`&teamId=${t}`:""}`,o=await fetch(n,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(!o.ok)throw new u.VercelOidcTokenError(`Failed to refresh OIDC token: ${o.statusText}`);let i=await o.json();return T(i),i}function T(e){if(!e||typeof e!=="object")throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in e)||typeof e.token!=="string")throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function tr(){let e=(0,v.findRootDir)();if(!e)throw new u.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let r=f.join(e,".vercel","project.json");if(!s.existsSync(r))throw new u.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let t=JSON.parse(s.readFileSync(r,"utf8"));if(typeof t.projectId!=="string"&&typeof t.orgId!=="string")throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:t.projectId,teamId:t.orgId}}function or(e,r){let t=(0,v.getUserDataDir)();if(!t)throw new u.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let n=f.join(t,"com.vercel.token",`${r}.json`),o=JSON.stringify(e);s.mkdirSync(f.dirname(n),{mode:504,recursive:!0}),s.writeFileSync(n,o),s.chmodSync(n,432);return}function nr(e){let r=(0,v.getUserDataDir)();if(!r)throw new u.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let t=f.join(r,"com.vercel.token",`${e}.json`);if(!s.existsSync(t))return null;let n=JSON.parse(s.readFileSync(t,"utf8"));return T(n),n}function sr(e){let r=e.split(".");if(r.length!==3)throw new u.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let t=r[1].replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(Buffer.from(n,"base64").toString("utf8"))}function ir(e,r=0){return e.exp*1000<Date.now()+r}});
|
|
3
|
+
export{Wi,sf,Yi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dt}from"./chunk-
|
|
2
|
+
import{Dt}from"./chunk-ws216bmf.js";import{$e}from"./chunk-drpdjxmw.js";import{z}from"./chunk-1ymyhrh2.js";var _=z(Dt()),N=z($e()),wc="AWS_ACCESS_KEY_ID",xc="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",p="AWS_ACCOUNT_ID",Lu=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[wc],E=process.env[xc],r=process.env[S],n=process.env[C],s=process.env[A],t=process.env[p];if(o&&E){let c={accessKeyId:o,secretAccessKey:E,...r&&{sessionToken:r},...n&&{expiration:new Date(n)},...s&&{credentialScope:s},...t&&{accountId:t}};return _.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new N.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{wc,xc,Lu};
|