@yukino.js/yukino 0.0.7 → 0.0.9

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 (53) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +131 -26
  3. package/dist/a2a-C65LD3SC.js +14 -0
  4. package/dist/acp-SNG4K2LG.js +14 -0
  5. package/dist/anthropic-E7KF3CEK.js +4 -0
  6. package/dist/chunk-4RUACBRP.js +5 -0
  7. package/dist/chunk-BQGLVWJ2.js +363 -0
  8. package/dist/chunk-COBTQXCB.js +88 -0
  9. package/dist/chunk-GTWPLFAN.js +38 -0
  10. package/dist/chunk-HZFKNHPB.js +4 -0
  11. package/dist/chunk-PP5WWNTV.js +4 -0
  12. package/dist/chunk-QEUO5B7I.js +1033 -0
  13. package/dist/{chunk-HWDSXNX4.js → chunk-SQ26ASOB.js} +3 -3
  14. package/dist/chunk-WGFROGUC.js +8 -0
  15. package/dist/esm-4KOJC56H.js +225 -0
  16. package/dist/fe/dist/index.html +21 -0
  17. package/dist/fe/dist/static/index.css +2 -0
  18. package/dist/fe/dist/static/index.js +203 -0
  19. package/dist/lib/{anthropic-CDPTNR5L.js → anthropic-XFZKSPOX.js} +3 -2
  20. package/dist/lib/{chunk-6NYUYSER.js → chunk-7EWMQYVH.js} +12 -3
  21. package/dist/lib/{chunk-OYQY3Q45.js → chunk-K532PPI6.js} +0 -2
  22. package/dist/lib/{chunk-PEV5NGQ2.js → chunk-KUA7U27R.js} +8 -3
  23. package/dist/lib/{chunk-TKCJSTWI.js → chunk-LHIQSMGD.js} +12 -7
  24. package/dist/lib/{chunk-HE4RUUZP.js → chunk-MFEAVGDX.js} +291 -592
  25. package/dist/lib/chunk-Q3EV2REC.js +260 -0
  26. package/dist/lib/{chunk-EO23VPDZ.js → chunk-RY7EXVHD.js} +18 -15
  27. package/dist/lib/index.d.ts +476 -3675
  28. package/dist/lib/index.js +4800 -3279
  29. package/dist/lib/{openai-TEFKPV7T.js → openai-QSDLFAKO.js} +3 -2
  30. package/dist/lib/{providers-2X5JB2JX.js → providers-TL72PZZD.js} +2 -1
  31. package/dist/lib/{seatbelt-VE3I3EGH.js → seatbelt-MRJ25UBQ.js} +1 -1
  32. package/dist/lib/{tool-filter-HUVHJN3O.js → tool-filter-F4S25GMJ.js} +1 -1
  33. package/dist/main.js +366 -237
  34. package/dist/{openai-RYXW7AKZ.js → openai-XNFC4DJ2.js} +13 -13
  35. package/dist/{providers-YG2HYIG6.js → providers-XEORRTYK.js} +1 -1
  36. package/dist/{seatbelt-3YN3GMQO.js → seatbelt-FU3EQ42H.js} +1 -1
  37. package/dist/server-35JMM5JU.js +4 -0
  38. package/package.json +11 -12
  39. package/dist/acp-76S2XII3.js +0 -14
  40. package/dist/anthropic-WK6EYMUE.js +0 -4
  41. package/dist/chunk-3OULXPVI.js +0 -5
  42. package/dist/chunk-4GE22WHI.js +0 -4
  43. package/dist/chunk-7PPWFSIC.js +0 -4
  44. package/dist/chunk-7ZBAF7M4.js +0 -4
  45. package/dist/chunk-IW5L5276.js +0 -65
  46. package/dist/chunk-NG62ISUV.js +0 -61
  47. package/dist/chunk-QQZCYWYI.js +0 -241
  48. package/dist/chunk-QRO6H32L.js +0 -1031
  49. package/dist/esm-5V3TYPZK.js +0 -229
  50. package/dist/lib/chunk-EFNPK4SJ.js +0 -137
  51. package/dist/lib/sandbox-runtime-QDN5SXPM.js +0 -9
  52. package/dist/sandbox-runtime-ELKAYRIL.js +0 -4
  53. package/dist/server-66HLMSUR.js +0 -4
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __yukinoCreateRequire } from "node:module";
3
+ const require = __yukinoCreateRequire(import.meta.url);
4
+ import{b as Z,c as H}from"./chunk-VU3JWAJR.js";import{a as B,c as b,f as W}from"./chunk-7MKA3SHV.js";var M=b((me,q)=>{"use strict";var F=1e3,g=F*60,y=g*60,h=y*24,K=h*7,Q=h*365.25;q.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return R(e);if(t==="number"&&isFinite(e))return r.long?X(e):V(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function R(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*Q;case"weeks":case"week":case"w":return t*K;case"days":case"day":case"d":return t*h;case"hours":case"hour":case"hrs":case"hr":case"h":return t*y;case"minutes":case"minute":case"mins":case"min":case"m":return t*g;case"seconds":case"second":case"secs":case"sec":case"s":return t*F;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function V(e){var r=Math.abs(e);return r>=h?Math.round(e/h)+"d":r>=y?Math.round(e/y)+"h":r>=g?Math.round(e/g)+"m":r>=F?Math.round(e/F)+"s":e+"ms"}function X(e){var r=Math.abs(e);return r>=h?x(e,r,h,"day"):r>=y?x(e,r,y,"hour"):r>=g?x(e,r,g,"minute"):r>=F?x(e,r,F,"second"):e+" ms"}function x(e,r,t,o){var d=r>=t*1.5;return Math.round(e/t)+" "+o+(d?"s":"")}});var j=b((Fe,S)=>{"use strict";function Y(e){t.debug=t,t.default=t,t.coerce=N,t.disable=L,t.enable=d,t.enabled=G,t.humanize=M(),t.destroy=$,Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={};function r(n){let s=0;for(let i=0;i<n.length;i++)s=(s<<5)-s+n.charCodeAt(i),s|=0;return t.colors[Math.abs(s)%t.colors.length]}t.selectColor=r;function t(n){let s,i=null,u,m;function a(...f){if(!a.enabled)return;let p=a,w=Number(new Date),J=w-(s||w);p.diff=J,p.prev=s,p.curr=w,s=w,f[0]=t.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");let v=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(k,P)=>{if(k==="%%")return"%";v++;let D=t.formatters[P];if(typeof D=="function"){let T=f[v];k=D.call(p,T),f.splice(v,1),v--}return k}),t.formatArgs.call(p,f),(p.log||t.log).apply(p,f)}return a.namespace=n,a.useColors=t.useColors(),a.color=t.selectColor(n),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>i!==null?i:(u!==t.namespaces&&(u=t.namespaces,m=t.enabled(n)),m),set:f=>{i=f}}),typeof t.init=="function"&&t.init(a),a}function o(n,s){let i=t(this.namespace+(typeof s>"u"?":":s)+n);return i.log=this.log,i}function d(n){t.save(n),t.namespaces=n,t.names=[],t.skips=[];let s=(typeof n=="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let i of s)i[0]==="-"?t.skips.push(i.slice(1)):t.names.push(i)}function C(n,s){let i=0,u=0,m=-1,a=0;for(;i<n.length;)if(u<s.length&&(s[u]===n[i]||s[u]==="*"))s[u]==="*"?(m=u,a=i,u++):(i++,u++);else if(m!==-1)u=m+1,a++,i=a;else return!1;for(;u<s.length&&s[u]==="*";)u++;return u===s.length}function L(){let n=[...t.names,...t.skips.map(s=>"-"+s)].join(",");return t.enable(""),n}function G(n){for(let s of t.skips)if(C(n,s))return!1;for(let s of t.names)if(C(n,s))return!0;return!1}function N(n){return n instanceof Error?n.stack||n.message:n}function $(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}S.exports=Y});var U=b((l,O)=>{"use strict";l.formatArgs=te;l.save=re;l.load=ne;l.useColors=ee;l.storage=se();l.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();l.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ee(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function te(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+O.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let t=0,o=0;e[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(t++,d==="%c"&&(o=t))}),e.splice(o,0,r)}l.log=console.debug||console.log||(()=>{});function re(e){try{e?l.storage.setItem("debug",e):l.storage.removeItem("debug")}catch{}}function ne(){let e;try{e=l.storage.getItem("debug")||l.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function se(){try{return localStorage}catch{}}O.exports=j()(l);var{formatters:oe}=O.exports;oe.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});var z=b((c,I)=>{"use strict";var ie=B("tty"),A=B("util");c.init=Ce;c.log=le;c.formatArgs=ue;c.save=fe;c.load=de;c.useColors=ce;c.destroy=A.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c.colors=[6,2,3,4,5,1];try{let e=(H(),W(Z));e&&(e.stderr||e).level>=2&&(c.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}c.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,r)=>{let t=r.substring(6).toLowerCase().replace(/_([a-z])/g,(d,C)=>C.toUpperCase()),o=process.env[r];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),e[t]=o,e},{});function ce(){return"colors"in c.inspectOpts?!!c.inspectOpts.colors:ie.isatty(process.stderr.fd)}function ue(e){let{namespace:r,useColors:t}=this;if(t){let o=this.color,d="\x1B[3"+(o<8?o:"8;5;"+o),C=` ${d};1m${r} \x1B[0m`;e[0]=C+e[0].split(`
5
+ `).join(`
6
+ `+C),e.push(d+"m+"+I.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ae()+r+" "+e[0]}function ae(){return c.inspectOpts.hideDate?"":new Date().toISOString()+" "}function le(...e){return process.stderr.write(A.formatWithOptions(c.inspectOpts,...e)+`
7
+ `)}function fe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function de(){return process.env.DEBUG}function Ce(e){e.inspectOpts={};let r=Object.keys(c.inspectOpts);for(let t=0;t<r.length;t++)e.inspectOpts[r[t]]=c.inspectOpts[r[t]]}I.exports=j()(c);var{formatters:_}=I.exports;_.o=function(e){return this.inspectOpts.colors=this.useColors,A.inspect(e,this.inspectOpts).split(`
8
+ `).map(r=>r.trim()).join(" ")};_.O=function(e){return this.inspectOpts.colors=this.useColors,A.inspect(e,this.inspectOpts)}});var pe=b((ge,E)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?E.exports=U():E.exports=z()});export{M as a,pe as b};