@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/README.md +5 -7
- package/dist/{chunk-56TTQYS7.js → chunk-3PGURFAM.js} +2 -2
- package/dist/{chunk-FXPDLGDN.js → chunk-ITONR5ML.js} +124 -28
- package/dist/chunk-ITONR5ML.js.map +1 -0
- package/dist/{chunk-LSPAGZXL.js → chunk-OGMD7Z2F.js} +409 -33
- package/dist/chunk-OGMD7Z2F.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/index.d.ts +11 -8
- package/dist/index.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-FXPDLGDN.js.map +0 -1
- package/dist/chunk-LSPAGZXL.js.map +0 -1
- /package/dist/{chunk-56TTQYS7.js.map → chunk-3PGURFAM.js.map} +0 -0
package/dist/daemon.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ClientRunner,
|
|
5
5
|
registerRoutes,
|
|
6
6
|
scaffoldFirstRun
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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,
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
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
|
-
*
|
|
1969
|
-
*
|
|
1970
|
-
*
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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/
|
|
52
|
-
"@toon-protocol/
|
|
53
|
-
"@toon-protocol/
|
|
54
|
-
"@toon-protocol/
|
|
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"
|