@toon-protocol/client-mcp 0.1.0

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 +302 -0
  2. package/dist/anon-proxy-W3KMM7GU-FN7ZJY7P.js +25 -0
  3. package/dist/anon-proxy-W3KMM7GU-FN7ZJY7P.js.map +1 -0
  4. package/dist/chunk-32QD72IL.js +83 -0
  5. package/dist/chunk-32QD72IL.js.map +1 -0
  6. package/dist/chunk-3NAWISI5.js +2245 -0
  7. package/dist/chunk-3NAWISI5.js.map +1 -0
  8. package/dist/chunk-5KFXUT5Q.js +11321 -0
  9. package/dist/chunk-5KFXUT5Q.js.map +1 -0
  10. package/dist/chunk-F22GNSF6.js +12 -0
  11. package/dist/chunk-F22GNSF6.js.map +1 -0
  12. package/dist/chunk-FSS45ZX3.js +2633 -0
  13. package/dist/chunk-FSS45ZX3.js.map +1 -0
  14. package/dist/chunk-LR7W2ISE.js +657 -0
  15. package/dist/chunk-LR7W2ISE.js.map +1 -0
  16. package/dist/chunk-SKQTKZIH.js +278 -0
  17. package/dist/chunk-SKQTKZIH.js.map +1 -0
  18. package/dist/chunk-VA7XC4FD.js +185 -0
  19. package/dist/chunk-VA7XC4FD.js.map +1 -0
  20. package/dist/chunk-ZQKYZJWT.js +359 -0
  21. package/dist/chunk-ZQKYZJWT.js.map +1 -0
  22. package/dist/daemon.d.ts +1 -0
  23. package/dist/daemon.js +141 -0
  24. package/dist/daemon.js.map +1 -0
  25. package/dist/ed25519-2QVPINLS.js +27 -0
  26. package/dist/ed25519-2QVPINLS.js.map +1 -0
  27. package/dist/gateway-QOK47RKS-SEGTXBR3.js +16 -0
  28. package/dist/gateway-QOK47RKS-SEGTXBR3.js.map +1 -0
  29. package/dist/hmac-26UC6YKX.js +12 -0
  30. package/dist/hmac-26UC6YKX.js.map +1 -0
  31. package/dist/index.d.ts +965 -0
  32. package/dist/index.js +68 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/mcp.d.ts +1 -0
  35. package/dist/mcp.js +81 -0
  36. package/dist/mcp.js.map +1 -0
  37. package/dist/sha512-WYC446ZM.js +34 -0
  38. package/dist/sha512-WYC446ZM.js.map +1 -0
  39. package/dist/socks5-WTJBYGME-6COK4LXW.js +139 -0
  40. package/dist/socks5-WTJBYGME-6COK4LXW.js.map +1 -0
  41. package/package.json +60 -0
@@ -0,0 +1,16 @@
1
+ import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);
2
+ import "./chunk-F22GNSF6.js";
3
+
4
+ // ../client/dist/gateway-QOK47RKS.js
5
+ function rewriteUrlsForGateway(gatewayUrl, btpUrl, connectorUrl) {
6
+ const base = gatewayUrl.replace(/\/$/, "");
7
+ const wsBase = base.replace(/^https:/, "wss:").replace(/^http:/, "ws:");
8
+ return {
9
+ btpUrl: btpUrl ? `${wsBase}/btp` : void 0,
10
+ connectorUrl: connectorUrl ? `${base}/api` : void 0
11
+ };
12
+ }
13
+ export {
14
+ rewriteUrlsForGateway
15
+ };
16
+ //# sourceMappingURL=gateway-QOK47RKS-SEGTXBR3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../client/src/transport/gateway.ts"],"sourcesContent":["/**\n * Gateway transport for browser environments.\n *\n * Rewrites BTP and HTTP URLs to route through an ator gateway that handles\n * SOCKS5 proxying server-side. Browser clients connect to the gateway via\n * standard WebSocket/HTTP — no special transport code needed.\n */\n\n/**\n * Rewrites btpUrl and connectorUrl to route through a gateway.\n *\n * Gateway endpoint conventions:\n * - WebSocket: `ws(s)://<gateway>/btp` — proxies BTP connections\n * - HTTP: `http(s)://<gateway>/api` — proxies connector admin API\n *\n * @param gatewayUrl - Base URL of the ator gateway (http:// or https://)\n * @param btpUrl - Original BTP WebSocket URL (optional)\n * @param connectorUrl - Original connector HTTP URL (optional)\n */\nexport function rewriteUrlsForGateway(\n gatewayUrl: string,\n btpUrl?: string,\n connectorUrl?: string\n): { btpUrl?: string; connectorUrl?: string } {\n const base = gatewayUrl.replace(/\\/$/, '');\n\n // Derive WebSocket scheme from HTTP scheme\n const wsBase = base.replace(/^https:/, 'wss:').replace(/^http:/, 'ws:');\n\n return {\n btpUrl: btpUrl ? `${wsBase}/btp` : undefined,\n connectorUrl: connectorUrl ? `${base}/api` : undefined,\n };\n}\n"],"mappings":";;;;AAmBO,SAAS,sBACd,YACA,QACA,cAC4C;AAC5C,QAAM,OAAO,WAAW,QAAQ,OAAO,EAAE;AAGzC,QAAM,SAAS,KAAK,QAAQ,WAAW,MAAM,EAAE,QAAQ,UAAU,KAAK;AAEtE,SAAO;IACL,QAAQ,SAAS,GAAG,MAAM,SAAS;IACnC,cAAc,eAAe,GAAG,IAAI,SAAS;EAC/C;AACF;","names":[]}
@@ -0,0 +1,12 @@
1
+ import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);
2
+ import {
3
+ HMAC,
4
+ hmac
5
+ } from "./chunk-32QD72IL.js";
6
+ import "./chunk-VA7XC4FD.js";
7
+ import "./chunk-F22GNSF6.js";
8
+ export {
9
+ HMAC,
10
+ hmac
11
+ };
12
+ //# sourceMappingURL=hmac-26UC6YKX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}