@toon-protocol/client-mcp 0.5.3 → 0.6.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/index.d.ts CHANGED
@@ -658,6 +658,20 @@ interface DaemonConfigFile {
658
658
  relayUrl?: string;
659
659
  /** Default ILP publish destination. Default `g.townhouse.town`. */
660
660
  destination?: string;
661
+ /**
662
+ * Default ILP destination for PUBLISHES (relay writes → `POST /write`). Falls
663
+ * back to `destination` when unset. On the devnet proxy set `g.proxy.relay`
664
+ * (the relay terminate route) — NOT `g.proxy.relay.store`, which the apex
665
+ * forwards to the store and which 404s a `/write`. Env:
666
+ * `TOON_CLIENT_PUBLISH_DESTINATION`.
667
+ */
668
+ publishDestination?: string;
669
+ /**
670
+ * Default ILP destination for UPLOADS (kind:5094 blob → `POST /store` →
671
+ * Arweave). Falls back to `destination` when unset. On the devnet proxy set
672
+ * `g.proxy.store`. Env: `TOON_CLIENT_STORE_DESTINATION`.
673
+ */
674
+ storeDestination?: string;
661
675
  /** Default fee per paid write, base units. Default `1`. */
662
676
  feePerEvent?: string;
663
677
  /** Channel nonce-watermark persistence file. Default `<dir>/channels.json`. */
@@ -697,6 +711,13 @@ interface DaemonConfigFile {
697
711
  solanaChannel?: ToonClientConfig['solanaChannel'];
698
712
  /** Mina on-chain payment-channel params (required when `chain` is mina). */
699
713
  minaChannel?: ToonClientConfig['minaChannel'];
714
+ /**
715
+ * Ordered Arweave gateways (primary first) used to stamp uploaded-media URLs:
716
+ * the primary becomes the `imeta` `url`, the rest become `fallback` mirrors.
717
+ * Default: the shared `ARWEAVE_GATEWAYS` (ar.io → arweave.net → permagate.io).
718
+ * Env override: `TOON_CLIENT_ARWEAVE_GATEWAYS` (comma-separated).
719
+ */
720
+ arweaveGateways?: string[];
700
721
  }
701
722
  interface ResolvedDaemonConfig {
702
723
  httpPort: number;
@@ -713,6 +734,10 @@ interface ResolvedDaemonConfig {
713
734
  /** Devnet faucet base URL, when configured. */
714
735
  faucetUrl?: string;
715
736
  destination: string;
737
+ /** Resolved default destination for relay-write publishes (falls back to `destination`). */
738
+ publishDestination: string;
739
+ /** Resolved default destination for store/Arweave uploads (falls back to `destination`). */
740
+ storeDestination: string;
716
741
  feePerEvent: bigint;
717
742
  apex?: ApexNegotiationConfig;
718
743
  /** Apex child peers reached via the same apex channel (e.g. dvm, mill). */
@@ -724,6 +749,13 @@ interface ResolvedDaemonConfig {
724
749
  /** Fully-built config for the `ToonClient` constructor. */
725
750
  toonClientConfig: ToonClientConfig;
726
751
  network?: string;
752
+ /**
753
+ * Ordered Arweave gateways for stamping uploaded-media URLs (primary first).
754
+ * Always populated by `resolveConfig` (default = shared `ARWEAVE_GATEWAYS`);
755
+ * optional only so manually-built configs (tests) may omit it — consumers
756
+ * fall back to the shared default when it is absent.
757
+ */
758
+ arweaveGateways?: string[];
727
759
  }
728
760
  /**
729
761
  * Password used to encrypt an auto-generated keystore (#251 first-run
@@ -741,13 +773,6 @@ declare function defaultConfigPath(): string;
741
773
  declare function readConfigFile(path: string): DaemonConfigFile;
742
774
  /** Resolve the mnemonic from env / keystore / config (in precedence order). */
743
775
  declare function resolveMnemonic(file: DaemonConfigFile): string;
744
- /**
745
- * Build the full resolved daemon config (file overlaid with env, mnemonic
746
- * resolved, ToonClientConfig assembled). Env overrides supported:
747
- * TOON_CLIENT_BTP_URL, TOON_CLIENT_PROXY_URL, TOON_CLIENT_FAUCET_URL,
748
- * TOON_CLIENT_RELAY_URL, TOON_CLIENT_HTTP_PORT, TOON_CLIENT_NETWORK,
749
- * TOON_CLIENT_DESTINATION.
750
- */
751
776
  declare function resolveConfig(file: DaemonConfigFile): ResolvedDaemonConfig;
752
777
 
753
778
  /**
@@ -1012,7 +1037,11 @@ declare class ClientRunner {
1012
1037
  private buildTemplate;
1013
1038
  /** Latest self-authored event of `kind` currently in the merged read buffer. */
1014
1039
  private latestSelfReplaceable;
1015
- /** Tags for a published media event referencing an Arweave URL. */
1040
+ /**
1041
+ * Tags for a published media event referencing an Arweave URL. `url` is the
1042
+ * primary gateway; `fallbacks` are mirror URLs for the same tx id on other
1043
+ * gateways, emitted so readers can fail over if the primary is unreachable.
1044
+ */
1016
1045
  private buildMediaTags;
1017
1046
  /** Open (or return) a payment channel on the selected (or default) apex. */
1018
1047
  openChannel(destination?: string, btpUrl?: string): Promise<{
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  hasConfiguredIdentity,
9
9
  registerRoutes,
10
10
  scaffoldFirstRun
11
- } from "./chunk-CAGUIHZV.js";
11
+ } from "./chunk-XBD4J7XA.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-DZ4NGYFA.js";
21
+ } from "./chunk-V2SV6C3U.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-3UECPDBJ.js";
39
+ } from "./chunk-TDXKG3EI.js";
40
40
  import "./chunk-32QD72IL.js";
41
41
  import "./chunk-DLYE6U2Z.js";
42
42
  import "./chunk-LR7W2ISE.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-DZ4NGYFA.js";
7
+ } from "./chunk-V2SV6C3U.js";
8
8
  import {
9
9
  ControlClient,
10
10
  defaultConfigPath,
@@ -12,7 +12,7 @@ import {
12
12
  readConfigFile,
13
13
  spawnDaemonDetached,
14
14
  waitForReady
15
- } from "./chunk-3UECPDBJ.js";
15
+ } from "./chunk-TDXKG3EI.js";
16
16
  import "./chunk-32QD72IL.js";
17
17
  import "./chunk-DLYE6U2Z.js";
18
18
  import "./chunk-LR7W2ISE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toon-protocol/client-mcp",
3
- "version": "0.5.3",
3
+ "version": "0.6.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,8 +48,9 @@
48
48
  "tsx": "^4.19.2",
49
49
  "typescript": "^5.3.0",
50
50
  "vitest": "^1.0.0",
51
- "@toon-protocol/client": "0.14.1",
52
- "@toon-protocol/views": "0.6.1"
51
+ "@toon-protocol/arweave": "0.1.1",
52
+ "@toon-protocol/client": "0.14.2",
53
+ "@toon-protocol/views": "0.7.0"
53
54
  },
54
55
  "engines": {
55
56
  "node": ">=20"