@toon-protocol/client-mcp 0.18.0 → 0.19.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.
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-ITONR5ML.js";
8
8
  import {
9
9
  ControlClient,
10
10
  ToonClient,
@@ -17,7 +17,7 @@ import {
17
17
  resolveConfig,
18
18
  spawnDaemonDetached,
19
19
  waitForReady
20
- } from "./chunk-LSPAGZXL.js";
20
+ } from "./chunk-OGMD7Z2F.js";
21
21
  import "./chunk-CTDRHEDX.js";
22
22
  import "./chunk-LR7W2ISE.js";
23
23
  import "./chunk-32QD72IL.js";
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-ITONR5ML.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-3PGURFAM.js";
22
22
  import {
23
23
  ControlApiError,
24
24
  ControlClient,
@@ -36,7 +36,7 @@ import {
36
36
  resolveMnemonic,
37
37
  spawnDaemonDetached,
38
38
  waitForReady
39
- } from "./chunk-LSPAGZXL.js";
39
+ } from "./chunk-OGMD7Z2F.js";
40
40
  import "./chunk-CTDRHEDX.js";
41
41
  import "./chunk-LR7W2ISE.js";
42
42
  import "./chunk-32QD72IL.js";
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-3PGURFAM.js";
8
8
  import {
9
9
  ARWEAVE_GATEWAYS,
10
10
  ControlClient,
@@ -13,7 +13,7 @@ import {
13
13
  readConfigFile,
14
14
  spawnDaemonDetached,
15
15
  waitForReady
16
- } from "./chunk-LSPAGZXL.js";
16
+ } from "./chunk-OGMD7Z2F.js";
17
17
  import "./chunk-CTDRHEDX.js";
18
18
  import "./chunk-LR7W2ISE.js";
19
19
  import "./chunk-32QD72IL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toon-protocol/client-mcp",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Always-on local daemon + MCP server letting a Claude agent (Desktop or Code) act as a TOON Protocol client: pay-to-write publishing, free reads, channel/balance management, and swaps.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Green",
@@ -48,10 +48,10 @@
48
48
  "tsx": "^4.19.2",
49
49
  "typescript": "^5.3.0",
50
50
  "vitest": "^1.0.0",
51
- "@toon-protocol/arweave": "0.2.0",
52
- "@toon-protocol/client": "0.18.0",
53
- "@toon-protocol/rig": "2.6.3",
54
- "@toon-protocol/views": "0.18.0"
51
+ "@toon-protocol/client": "0.19.0",
52
+ "@toon-protocol/rig": "2.6.4",
53
+ "@toon-protocol/views": "0.19.0",
54
+ "@toon-protocol/arweave": "0.2.0"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=20"