@yukino.js/yukino 0.0.13-dev → 0.0.13

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 (38) hide show
  1. package/README.md +9 -7
  2. package/dist/{a2a-DG2JNM3U.js → a2a-DKWMWGID.js} +2 -2
  3. package/dist/{acp-DCZDS6FQ.js → acp-RL6DKS3R.js} +1 -1
  4. package/dist/{anthropic-5BTWVZVT.js → anthropic-74ALYMH2.js} +1 -1
  5. package/dist/{chunk-SZXXASVH.js → chunk-556TRLPT.js} +1 -1
  6. package/dist/{chunk-IWMCIYOG.js → chunk-6FSIG63T.js} +25 -25
  7. package/dist/{chunk-5DK2M7VI.js → chunk-6JUOKMSJ.js} +1 -1
  8. package/dist/{chunk-COHBT6M7.js → chunk-A5G5NTDB.js} +88 -88
  9. package/dist/{chunk-4CLD7LEU.js → chunk-A7CJPQC5.js} +1 -1
  10. package/dist/{chunk-AZQD75PX.js → chunk-APJAUOF6.js} +1 -1
  11. package/dist/{chunk-BDLFNDC4.js → chunk-CJSMVCUF.js} +1 -1
  12. package/dist/{chunk-OI2W6R6H.js → chunk-HWCLMDQF.js} +8 -8
  13. package/dist/chunk-NEU4ER5V.js +4 -0
  14. package/dist/{chunk-5URXBVET.js → chunk-OREDGNI6.js} +1 -1
  15. package/dist/chunk-SCR7NDDL.js +63 -0
  16. package/dist/lib/{anthropic-AVZIC22O.js → anthropic-EQRUGP2C.js} +4 -4
  17. package/dist/lib/{chunk-XH7D5FLE.js → chunk-CDMR25FD.js} +3 -3
  18. package/dist/lib/{chunk-O2H6VKKR.js → chunk-EGT7BJRD.js} +2 -2
  19. package/dist/lib/{chunk-LSI3T24Q.js → chunk-FUJDUZTH.js} +1 -1
  20. package/dist/lib/{chunk-GVI5R2DA.js → chunk-HUTUNNDX.js} +1 -1
  21. package/dist/lib/{chunk-EGJKLA2W.js → chunk-JYCSWXCR.js} +2 -2
  22. package/dist/lib/{chunk-QJ32WYQY.js → chunk-UBVKYJFI.js} +124 -27
  23. package/dist/lib/{chunk-TUNZLQLO.js → chunk-WWCSFKMR.js} +1 -1
  24. package/dist/lib/index.d.ts +49 -24
  25. package/dist/lib/index.js +186 -91
  26. package/dist/lib/{openai-54IQOU6Y.js → openai-B3I5WBFT.js} +3 -3
  27. package/dist/lib/{providers-MOCB6Y5L.js → providers-EJ4VBHNP.js} +2 -2
  28. package/dist/lib/{tool-filter-5Z6UTRRR.js → tool-filter-TURPCYFR.js} +3 -3
  29. package/dist/{main-IA22XMQR.js → main-JEEKFCGX.js} +226 -216
  30. package/dist/main.js +11 -2
  31. package/dist/{openai-I2TTMBWK.js → openai-7C6BVQ7M.js} +1 -1
  32. package/dist/{providers-DXQRJUIY.js → providers-U23PWAHG.js} +1 -1
  33. package/dist/{server-QS7CX37F.js → server-EOSEQPNY.js} +1 -1
  34. package/dist/tool-filter-UDSHRE5F.js +4 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-CW5XFH7H.js +0 -59
  37. package/dist/chunk-UGX62ZSO.js +0 -4
  38. package/dist/tool-filter-KDQMXIDC.js +0 -4
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{c,f as s}from"./chunk-AZQD75PX.js";var p=10,f=2.5,_="advanced-tool-use-2025-11-20",d=new Set(["api.anthropic.com"]),l="YUKINO_MCP_LOADING";function u(o){if(!o)return!0;try{return d.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function g(o){return Math.floor(o/f)}function m(o,e,t,n,i=p){let r=(process.env[l]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r==="native"&&e!=="anthropic"?"dispatch":r;if(n<=0)return"eager";let a=t*i/100;return g(n)<a?"eager":e==="anthropic"&&u(o)?"native":"dispatch"}function h(o){let e=0;for(let t of o.listTools())if(t.name.startsWith(c))try{e+=JSON.stringify(t.schema()).length}catch{e+=t.name.length+(t.description?.length??0)}return e}function T(o,e){o.mcpLoadingMode=e;let t=e==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!t);o.exposeToolSearch=!t,o.exposeMcpCall=e==="dispatch"}function v(o,e,t,n){let i=m(e,t,n,h(o));return T(o,i),i}export{_ as a,u as b,T as c,v as d};
4
+ import{c,f as s}from"./chunk-APJAUOF6.js";var p=10,f=2.5,_="advanced-tool-use-2025-11-20",d=new Set(["api.anthropic.com"]),l="YUKINO_MCP_LOADING";function u(o){if(!o)return!0;try{return d.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function g(o){return Math.floor(o/f)}function m(o,e,t,n,i=p){let r=(process.env[l]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r==="native"&&e!=="anthropic"?"dispatch":r;if(n<=0)return"eager";let a=t*i/100;return g(n)<a?"eager":e==="anthropic"&&u(o)?"native":"dispatch"}function h(o){let e=0;for(let t of o.listTools())if(t.name.startsWith(c))try{e+=JSON.stringify(t.schema()).length}catch{e+=t.name.length+(t.description?.length??0)}return e}function T(o,e){o.mcpLoadingMode=e;let t=e==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!t);o.exposeToolSearch=!t,o.exposeMcpCall=e==="dispatch"}function v(o,e,t,n){let i=m(e,t,n,h(o));return T(o,i),i}export{_ as a,u as b,T as c,v as d};