@swifty.js/swifty 0.0.31 → 0.0.32

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 (41) hide show
  1. package/README.md +46 -3
  2. package/dist/agent-2DUTUJFX.js +4 -0
  3. package/dist/{anthropic-CFM2DXMB.js → anthropic-KR5MXB5I.js} +1 -1
  4. package/dist/{checker-A6PGACKZ.js → checker-RKAWOOXC.js} +1 -1
  5. package/dist/{chunk-OQCEP2F5.js → chunk-2EV72T5X.js} +1 -1
  6. package/dist/{chunk-MVVSONAE.js → chunk-4YVJP2CO.js} +1 -1
  7. package/dist/chunk-BWWNI2FK.js +121 -0
  8. package/dist/{chunk-AGJYBJ5M.js → chunk-JMF2DWGY.js} +1 -1
  9. package/dist/{chunk-4ABFUBO4.js → chunk-LTFPTWX4.js} +117 -106
  10. package/dist/chunk-NERVCUWE.js +4 -0
  11. package/dist/chunk-S35E7OYL.js +5 -0
  12. package/dist/{chunk-C3WGLVVZ.js → chunk-TKQ5T5VO.js} +1 -1
  13. package/dist/{chunk-YAXZ2OUD.js → chunk-TW7RHCDS.js} +1 -1
  14. package/dist/lib/agent-3OEC4SOB.js +10 -0
  15. package/dist/lib/{anthropic-R6DMXE7U.js → anthropic-B33M2AVN.js} +4 -4
  16. package/dist/lib/{checker-M7RKMKJQ.js → checker-QNMXPZ7C.js} +3 -3
  17. package/dist/lib/{chunk-OQIQOU5S.js → chunk-3OFLDUAW.js} +121 -1
  18. package/dist/lib/{chunk-EY7HE52Q.js → chunk-3XCGUKGJ.js} +18 -24
  19. package/dist/lib/{chunk-EWE5IWZE.js → chunk-4BPKIIQD.js} +9 -0
  20. package/dist/lib/{chunk-FZ4Y6MBN.js → chunk-BCBD34D2.js} +1 -1
  21. package/dist/lib/{chunk-4MDCRPVV.js → chunk-FODSMOWP.js} +6 -6
  22. package/dist/lib/{chunk-A4MXZA5Q.js → chunk-SOOSTGHI.js} +2 -2
  23. package/dist/lib/{chunk-OEPCNATU.js → chunk-TJLAJGG4.js} +2 -2
  24. package/dist/lib/{chunk-J6AV7SIF.js → chunk-UH5M7FDP.js} +9 -5
  25. package/dist/lib/index.d.ts +1402 -721
  26. package/dist/lib/index.js +11656 -10928
  27. package/dist/lib/{openai-5N42ZYIJ.js → openai-C2PZFGJ2.js} +3 -3
  28. package/dist/lib/{tool-filter-XG2GXFVN.js → tool-filter-IMIU7CW2.js} +1 -1
  29. package/dist/main.js +175 -176
  30. package/dist/{node-4LTSRXL2.js → node-GXMM4JG3.js} +1 -1
  31. package/dist/{openai-NQYARTT6.js → openai-M7B2TITO.js} +1 -1
  32. package/dist/seatbelt-3GM2YGXV.js +5 -0
  33. package/dist/{server-BNT2IIKB.js → server-QMMIYNXW.js} +10 -17
  34. package/dist/{tool-filter-5NDJMSTD.js → tool-filter-7LLVAHD5.js} +1 -1
  35. package/package.json +9 -12
  36. package/dist/agent-O6C4FCQY.js +0 -4
  37. package/dist/chunk-AQ3A5CF4.js +0 -5
  38. package/dist/chunk-OTVZGPHD.js +0 -121
  39. package/dist/chunk-Y2UUXOQA.js +0 -4
  40. package/dist/lib/agent-YRTROHXU.js +0 -10
  41. package/dist/seatbelt-YXUQ5XR3.js +0 -5
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __swiftyCreateRequire } from "node:module";
3
3
  const require = __swiftyCreateRequire(import.meta.url);
4
- import{a as i,d as s}from"./chunk-OQCEP2F5.js";var a=10,p=2.5,E="advanced-tool-use-2025-11-20",f=new Set(["api.anthropic.com"]),d="SWIFTY_MCP_LOADING";function u(o){if(!o)return!0;try{return f.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function l(o){return Math.floor(o/p)}function m(o,t,e,n=a){let r=(process.env[d]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r;if(e<=0)return"eager";let c=t*n/100;return l(e)<c?"eager":u(o)?"native":"dispatch"}function g(o){let t=0;for(let e of o.listTools())if(e.name.startsWith(i))try{t+=JSON.stringify(e.schema()).length}catch{t+=e.name.length+(e.description?.length??0)}return t}function T(o,t){o.mcpLoadingMode=t;let e=t==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!e);o.exposeToolSearch=!e,o.exposeMcpCall=t==="dispatch"}function M(o,t,e){let n=m(t,e,g(o));return T(o,n),n}export{E as a,T as b,M as c};
4
+ import{a as i,d as s}from"./chunk-2EV72T5X.js";var a=10,p=2.5,E="advanced-tool-use-2025-11-20",f=new Set(["api.anthropic.com"]),d="SWIFTY_MCP_LOADING";function u(o){if(!o)return!0;try{return f.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function l(o){return Math.floor(o/p)}function m(o,t,e,n=a){let r=(process.env[d]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r;if(e<=0)return"eager";let c=t*n/100;return l(e)<c?"eager":u(o)?"native":"dispatch"}function g(o){let t=0;for(let e of o.listTools())if(e.name.startsWith(i))try{t+=JSON.stringify(e.schema()).length}catch{t+=e.name.length+(e.description?.length??0)}return t}function T(o,t){o.mcpLoadingMode=t;let e=t==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!e);o.exposeToolSearch=!e,o.exposeMcpCall=t==="dispatch"}function M(o,t,e){let n=m(t,e,g(o));return T(o,n),n}export{E as a,T as b,M as c};