@toon-protocol/client-mcp 0.18.0 → 0.20.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 (33) hide show
  1. package/README.md +5 -7
  2. package/dist/app/index.html +69 -69
  3. package/dist/{chunk-VA7XC4FD.js → chunk-3DDN4CJQ.js} +17 -1
  4. package/dist/{chunk-VA7XC4FD.js.map → chunk-3DDN4CJQ.js.map} +1 -1
  5. package/dist/{chunk-FXPDLGDN.js → chunk-5SFBB4PJ.js} +168 -38
  6. package/dist/chunk-5SFBB4PJ.js.map +1 -0
  7. package/dist/{chunk-LR7W2ISE.js → chunk-HMD5EVQI.js} +11 -2
  8. package/dist/{chunk-LR7W2ISE.js.map → chunk-HMD5EVQI.js.map} +1 -1
  9. package/dist/{chunk-LSPAGZXL.js → chunk-HSSJFB3I.js} +1426 -213
  10. package/dist/chunk-HSSJFB3I.js.map +1 -0
  11. package/dist/{chunk-56TTQYS7.js → chunk-KYQUVXEY.js} +2 -2
  12. package/dist/{chunk-XQUUFAIM.js → chunk-LN2OF264.js} +4 -2
  13. package/dist/{chunk-CTDRHEDX.js → chunk-SLMGETW7.js} +2 -2
  14. package/dist/{chunk-CTDRHEDX.js.map → chunk-SLMGETW7.js.map} +1 -1
  15. package/dist/{chunk-32QD72IL.js → chunk-T3WCTWRP.js} +2 -2
  16. package/dist/daemon.js +7 -7
  17. package/dist/{ed25519-U4PTEOFD.js → ed25519-VBPL32VX.js} +2 -2
  18. package/dist/{hmac-CMZORX4Y.js → hmac-GNBDA4UC.js} +3 -3
  19. package/dist/index.d.ts +11 -8
  20. package/dist/index.js +8 -8
  21. package/dist/mcp.js +7 -7
  22. package/dist/{node-WPA2UDEH-72L4MKGB.js → node-WPA2UDEH-SRYDHHAV.js} +3 -3
  23. package/dist/{node-WPA2UDEH-72L4MKGB.js.map → node-WPA2UDEH-SRYDHHAV.js.map} +1 -1
  24. package/dist/{sha512-4LOCATJH.js → sha512-D7TTPT7I.js} +3 -3
  25. package/package.json +6 -6
  26. package/dist/chunk-FXPDLGDN.js.map +0 -1
  27. package/dist/chunk-LSPAGZXL.js.map +0 -1
  28. /package/dist/{chunk-56TTQYS7.js.map → chunk-KYQUVXEY.js.map} +0 -0
  29. /package/dist/{chunk-XQUUFAIM.js.map → chunk-LN2OF264.js.map} +0 -0
  30. /package/dist/{chunk-32QD72IL.js.map → chunk-T3WCTWRP.js.map} +0 -0
  31. /package/dist/{ed25519-U4PTEOFD.js.map → ed25519-VBPL32VX.js.map} +0 -0
  32. /package/dist/{hmac-CMZORX4Y.js.map → hmac-GNBDA4UC.js.map} +0 -0
  33. /package/dist/{sha512-4LOCATJH.js.map → sha512-D7TTPT7I.js.map} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as __cr } from 'module'; const require = __cr(import.meta
2
2
  import {
3
3
  ControlApiError,
4
4
  DaemonUnreachableError
5
- } from "./chunk-LSPAGZXL.js";
5
+ } from "./chunk-HSSJFB3I.js";
6
6
 
7
7
  // ../views/dist/tool-names.js
8
8
  var PUBLISH_TOOL = "toon_publish_unsigned";
@@ -1870,4 +1870,4 @@ export {
1870
1870
  TOOL_DEFINITIONS,
1871
1871
  dispatchTool
1872
1872
  };
1873
- //# sourceMappingURL=chunk-56TTQYS7.js.map
1873
+ //# sourceMappingURL=chunk-KYQUVXEY.js.map
@@ -3918,18 +3918,20 @@ export {
3918
3918
  bytesToHex,
3919
3919
  hexToBytes,
3920
3920
  createHasher,
3921
+ randomBytes,
3921
3922
  sha256,
3922
3923
  abytes2,
3923
3924
  bytesToHex2,
3924
3925
  concatBytes2 as concatBytes,
3925
3926
  hexToBytes2,
3926
3927
  isBytes2 as isBytes,
3927
- randomBytes2 as randomBytes,
3928
+ randomBytes2,
3928
3929
  abool,
3929
3930
  abignumber,
3930
3931
  asafenumber,
3931
3932
  numberToHexUnpadded,
3932
3933
  bytesToNumberBE,
3934
+ asciiToBytes,
3933
3935
  aInRange,
3934
3936
  bitLen,
3935
3937
  bitMask,
@@ -3969,4 +3971,4 @@ export {
3969
3971
  @noble/curves/ed25519.js:
3970
3972
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
3971
3973
  */
3972
- //# sourceMappingURL=chunk-XQUUFAIM.js.map
3974
+ //# sourceMappingURL=chunk-LN2OF264.js.map
@@ -3,7 +3,7 @@ import {
3
3
  __require
4
4
  } from "./chunk-I7TGLGN6.js";
5
5
 
6
- // ../../node_modules/.pnpm/@toon-protocol+sdk@2.1.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js
6
+ // ../../node_modules/.pnpm/@toon-protocol+sdk@3.0.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js
7
7
  var __defProp = Object.defineProperty;
8
8
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
9
  var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
@@ -29,4 +29,4 @@ export {
29
29
  __commonJS,
30
30
  __export
31
31
  };
32
- //# sourceMappingURL=chunk-CTDRHEDX.js.map
32
+ //# sourceMappingURL=chunk-SLMGETW7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@toon-protocol+sdk@2.1.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __esm = (fn, res) => function __init() {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n};\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\nexport {\n __require,\n __esm,\n __commonJS,\n __export,\n __toCommonJS\n};\n//# sourceMappingURL=chunk-UP2VWCW5.js.map"],"mappings":";;;;;;AAAA,IAAI,YAAY,OAAO;AAEvB,IAAI,oBAAoB,OAAO;AAE/B,IAAIA,aAA6B,kBAAC,MAAM,OAAO,cAAY,cAAc,YAAU,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG;AAAA,EAC7H,KAAK,CAAC,GAAG,OAAO,OAAO,cAAY,cAAc,YAAU,GAAG,CAAC;AACjE,CAAC,IAAI,GAAG,SAAS,GAAG;AAClB,MAAI,OAAO,cAAY,YAAa,QAAO,UAAQ,MAAM,MAAM,SAAS;AACxE,QAAM,MAAM,yBAAyB,IAAI,oBAAoB;AAC/D,CAAC;AACD,IAAI,QAAQ,CAAC,IAAI,QAAQ,SAAS,SAAS;AACzC,SAAO,OAAO,OAAO,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI;AAClE;AACA,IAAI,aAAa,CAAC,IAAI,QAAQ,SAASC,cAAa;AAClD,SAAO,QAAQ,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,GAAG,IAAI;AAC7F;AACA,IAAI,WAAW,CAAC,QAAQ,QAAQ;AAC9B,WAAS,QAAQ;AACf,cAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAChE;","names":["__require","__require2"]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@toon-protocol+sdk@3.0.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __esm = (fn, res) => function __init() {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n};\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\nexport {\n __require,\n __esm,\n __commonJS,\n __export,\n __toCommonJS\n};\n//# sourceMappingURL=chunk-UP2VWCW5.js.map"],"mappings":";;;;;;AAAA,IAAI,YAAY,OAAO;AAEvB,IAAI,oBAAoB,OAAO;AAE/B,IAAIA,aAA6B,kBAAC,MAAM,OAAO,cAAY,cAAc,YAAU,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG;AAAA,EAC7H,KAAK,CAAC,GAAG,OAAO,OAAO,cAAY,cAAc,YAAU,GAAG,CAAC;AACjE,CAAC,IAAI,GAAG,SAAS,GAAG;AAClB,MAAI,OAAO,cAAY,YAAa,QAAO,UAAQ,MAAM,MAAM,SAAS;AACxE,QAAM,MAAM,yBAAyB,IAAI,oBAAoB;AAC/D,CAAC;AACD,IAAI,QAAQ,CAAC,IAAI,QAAQ,SAAS,SAAS;AACzC,SAAO,OAAO,OAAO,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI;AAClE;AACA,IAAI,aAAa,CAAC,IAAI,QAAQ,SAASC,cAAa;AAClD,SAAO,QAAQ,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,GAAG,IAAI;AAC7F;AACA,IAAI,WAAW,CAAC,QAAQ,QAAQ;AAC9B,WAAS,QAAQ;AACf,cAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAChE;","names":["__require","__require2"]}
@@ -6,7 +6,7 @@ import {
6
6
  ahash,
7
7
  clean,
8
8
  toBytes
9
- } from "./chunk-VA7XC4FD.js";
9
+ } from "./chunk-3DDN4CJQ.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
12
12
  var HMAC = class extends Hash {
@@ -80,4 +80,4 @@ export {
80
80
  HMAC,
81
81
  hmac
82
82
  };
83
- //# sourceMappingURL=chunk-32QD72IL.js.map
83
+ //# sourceMappingURL=chunk-T3WCTWRP.js.map
package/dist/daemon.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  ClientRunner,
5
5
  registerRoutes,
6
6
  scaffoldFirstRun
7
- } from "./chunk-FXPDLGDN.js";
7
+ } from "./chunk-5SFBB4PJ.js";
8
8
  import {
9
9
  ControlClient,
10
10
  ToonClient,
@@ -17,12 +17,12 @@ import {
17
17
  resolveConfig,
18
18
  spawnDaemonDetached,
19
19
  waitForReady
20
- } from "./chunk-LSPAGZXL.js";
21
- import "./chunk-CTDRHEDX.js";
22
- import "./chunk-LR7W2ISE.js";
23
- import "./chunk-32QD72IL.js";
24
- import "./chunk-VA7XC4FD.js";
25
- import "./chunk-XQUUFAIM.js";
20
+ } from "./chunk-HSSJFB3I.js";
21
+ import "./chunk-SLMGETW7.js";
22
+ import "./chunk-HMD5EVQI.js";
23
+ import "./chunk-T3WCTWRP.js";
24
+ import "./chunk-3DDN4CJQ.js";
25
+ import "./chunk-LN2OF264.js";
26
26
  import "./chunk-NL7NYWPC.js";
27
27
  import "./chunk-I7TGLGN6.js";
28
28
 
@@ -12,7 +12,7 @@ import {
12
12
  ristretto255_hasher,
13
13
  ristretto255_oprf,
14
14
  x25519
15
- } from "./chunk-XQUUFAIM.js";
15
+ } from "./chunk-LN2OF264.js";
16
16
  import "./chunk-I7TGLGN6.js";
17
17
  export {
18
18
  ED25519_TORSION_SUBGROUP,
@@ -28,4 +28,4 @@ export {
28
28
  ristretto255_oprf,
29
29
  x25519
30
30
  };
31
- //# sourceMappingURL=ed25519-U4PTEOFD.js.map
31
+ //# sourceMappingURL=ed25519-VBPL32VX.js.map
@@ -2,11 +2,11 @@ import { createRequire as __cr } from 'module'; const require = __cr(import.meta
2
2
  import {
3
3
  HMAC,
4
4
  hmac
5
- } from "./chunk-32QD72IL.js";
6
- import "./chunk-VA7XC4FD.js";
5
+ } from "./chunk-T3WCTWRP.js";
6
+ import "./chunk-3DDN4CJQ.js";
7
7
  import "./chunk-I7TGLGN6.js";
8
8
  export {
9
9
  HMAC,
10
10
  hmac
11
11
  };
12
- //# sourceMappingURL=hmac-CMZORX4Y.js.map
12
+ //# sourceMappingURL=hmac-GNBDA4UC.js.map
package/dist/index.d.ts CHANGED
@@ -1961,15 +1961,18 @@ declare class ClientRunner {
1961
1961
  * Wrap an apex client so each `sendSwapPacket` call carries a freshly
1962
1962
  * minted sender-chosen execution condition (one preimage per packet, spec
1963
1963
  * R1 — reuse would let an observer of packet *i* fulfill packet *i+1*).
1964
- * `streamSwap` calls `sendSwapPacket` once per packet, so minting here
1965
- * yields exactly one condition per packet. The transports verify each
1966
- * FULFILL's preimage against the condition and fail the packet on mismatch.
1964
+ * `streamSwap` calls `sendSwapPacket` once per packet, in strictly
1965
+ * increasing `packetIndex` order, so minting here yields exactly one
1966
+ * condition per packet and the local counter tracks `packetIndex`. The
1967
+ * transports verify each FULFILL's preimage against the condition and fail
1968
+ * the packet on mismatch.
1967
1969
  *
1968
- * NOTE: the minted preimage is intentionally NOT retained yet — leg-B
1969
- * receive-side ingestion (where the sender reveals `P_i`) is a separate
1970
- * rolling-swap workstream (toon-meta docs/rolling-swap.md §3.2). Until a
1971
- * maker implements the connector#309 contract end-to-end, packets sent with
1972
- * conditions will fail closed rather than settle unverified.
1970
+ * Preimage retention (toon-client#360, spec §3.2 leg-B reveal): every minted
1971
+ * `P_i` is retained in `preimages`, keyed by `packetIndex` the identifier
1972
+ * shared with `AccumulatedClaim.packetIndex` so the receive-side reveal
1973
+ * step (`ingestAndReveal`) can correlate and consume the preimage for the
1974
+ * claim it commits. Retention is session-scoped (one store per `swap()`
1975
+ * call); a fresh stream mints fresh preimages.
1973
1976
  */
1974
1977
  private withSenderConditions;
1975
1978
  /**
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  hasConfiguredIdentity,
9
9
  registerRoutes,
10
10
  scaffoldFirstRun
11
- } from "./chunk-FXPDLGDN.js";
11
+ } from "./chunk-5SFBB4PJ.js";
12
12
  import {
13
13
  PUBLISH_TOOL,
14
14
  TOOL_DEFINITIONS,
@@ -18,7 +18,7 @@ import {
18
18
  buildFollowListFilter,
19
19
  buildProfileFilter,
20
20
  dispatchTool
21
- } from "./chunk-56TTQYS7.js";
21
+ } from "./chunk-KYQUVXEY.js";
22
22
  import {
23
23
  ControlApiError,
24
24
  ControlClient,
@@ -36,12 +36,12 @@ import {
36
36
  resolveMnemonic,
37
37
  spawnDaemonDetached,
38
38
  waitForReady
39
- } from "./chunk-LSPAGZXL.js";
40
- import "./chunk-CTDRHEDX.js";
41
- import "./chunk-LR7W2ISE.js";
42
- import "./chunk-32QD72IL.js";
43
- import "./chunk-VA7XC4FD.js";
44
- import "./chunk-XQUUFAIM.js";
39
+ } from "./chunk-HSSJFB3I.js";
40
+ import "./chunk-SLMGETW7.js";
41
+ import "./chunk-HMD5EVQI.js";
42
+ import "./chunk-T3WCTWRP.js";
43
+ import "./chunk-3DDN4CJQ.js";
44
+ import "./chunk-LN2OF264.js";
45
45
  import "./chunk-NL7NYWPC.js";
46
46
  import "./chunk-I7TGLGN6.js";
47
47
 
package/dist/mcp.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  APP_RESOURCE_URI,
5
5
  TOOL_DEFINITIONS,
6
6
  dispatchTool
7
- } from "./chunk-56TTQYS7.js";
7
+ } from "./chunk-KYQUVXEY.js";
8
8
  import {
9
9
  ARWEAVE_GATEWAYS,
10
10
  ControlClient,
@@ -13,12 +13,12 @@ import {
13
13
  readConfigFile,
14
14
  spawnDaemonDetached,
15
15
  waitForReady
16
- } from "./chunk-LSPAGZXL.js";
17
- import "./chunk-CTDRHEDX.js";
18
- import "./chunk-LR7W2ISE.js";
19
- import "./chunk-32QD72IL.js";
20
- import "./chunk-VA7XC4FD.js";
21
- import "./chunk-XQUUFAIM.js";
16
+ } from "./chunk-HSSJFB3I.js";
17
+ import "./chunk-SLMGETW7.js";
18
+ import "./chunk-HMD5EVQI.js";
19
+ import "./chunk-T3WCTWRP.js";
20
+ import "./chunk-3DDN4CJQ.js";
21
+ import "./chunk-LN2OF264.js";
22
22
  import "./chunk-NL7NYWPC.js";
23
23
  import "./chunk-I7TGLGN6.js";
24
24
 
@@ -4,10 +4,10 @@ import {
4
4
  __esm,
5
5
  __export,
6
6
  __require
7
- } from "./chunk-CTDRHEDX.js";
7
+ } from "./chunk-SLMGETW7.js";
8
8
  import "./chunk-I7TGLGN6.js";
9
9
 
10
- // ../../node_modules/.pnpm/@toon-protocol+sdk@2.1.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/node-WPA2UDEH.js
10
+ // ../../node_modules/.pnpm/@toon-protocol+sdk@3.0.0_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/node-WPA2UDEH.js
11
11
  var require_bignumber = __commonJS({
12
12
  "../../node_modules/.pnpm/bignumber.js@9.3.1/node_modules/bignumber.js/bignumber.js"(exports, module) {
13
13
  "use strict";
@@ -8144,4 +8144,4 @@ var node_WPA2UDEH_default = require_node2();
8144
8144
  export {
8145
8145
  node_WPA2UDEH_default as default
8146
8146
  };
8147
- //# sourceMappingURL=node-WPA2UDEH-72L4MKGB.js.map
8147
+ //# sourceMappingURL=node-WPA2UDEH-SRYDHHAV.js.map