@yukino.js/yukino 0.0.12 → 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 +14 -69
  2. package/dist/{a2a-RMMY65QU.js → a2a-DKWMWGID.js} +2 -2
  3. package/dist/{acp-WY6JO5LK.js → acp-RL6DKS3R.js} +1 -1
  4. package/dist/{anthropic-55TYAIKB.js → anthropic-74ALYMH2.js} +1 -1
  5. package/dist/{chunk-SYKQXO6W.js → chunk-556TRLPT.js} +1 -1
  6. package/dist/{chunk-7TZ52NFW.js → chunk-6FSIG63T.js} +25 -25
  7. package/dist/{chunk-HTLXOBAC.js → chunk-6JUOKMSJ.js} +1 -1
  8. package/dist/{chunk-V7Q2SA7H.js → chunk-A5G5NTDB.js} +179 -173
  9. package/dist/{chunk-4CLD7LEU.js → chunk-A7CJPQC5.js} +1 -1
  10. package/dist/{chunk-33HUTVDG.js → chunk-APJAUOF6.js} +1 -1
  11. package/dist/{chunk-IX65B3M7.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-WL3ML2TB.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 +61 -38
  25. package/dist/lib/index.js +383 -202
  26. package/dist/lib/{openai-54IQOU6Y.js → openai-B3I5WBFT.js} +3 -3
  27. package/dist/lib/{providers-DPVHJZAX.js → providers-EJ4VBHNP.js} +2 -2
  28. package/dist/lib/{tool-filter-5Z6UTRRR.js → tool-filter-TURPCYFR.js} +3 -3
  29. package/dist/{main-L3JP6JDZ.js → main-JEEKFCGX.js} +226 -217
  30. package/dist/main.js +11 -2
  31. package/dist/{openai-I2TTMBWK.js → openai-7C6BVQ7M.js} +1 -1
  32. package/dist/{providers-VFEHLGQG.js → providers-U23PWAHG.js} +1 -1
  33. package/dist/{server-F4PJ3W62.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-D4MZQCMB.js +0 -59
  37. package/dist/chunk-PWLFGDME.js +0 -4
  38. package/dist/tool-filter-5WW6YGKC.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-33HUTVDG.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};