@exagent/sdk 0.1.7 → 0.1.8

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.mts CHANGED
@@ -87,6 +87,8 @@ interface TradeIntent {
87
87
  minAmountOut?: bigint;
88
88
  maxSlippageBps?: number;
89
89
  deadline?: number;
90
+ /** LLM config hash (bytes32) for epoch attribution — passed to on-chain router */
91
+ configHash?: `0x${string}`;
90
92
  }
91
93
  /**
92
94
  * M2M service request
package/dist/index.d.ts CHANGED
@@ -87,6 +87,8 @@ interface TradeIntent {
87
87
  minAmountOut?: bigint;
88
88
  maxSlippageBps?: number;
89
89
  deadline?: number;
90
+ /** LLM config hash (bytes32) for epoch attribution — passed to on-chain router */
91
+ configHash?: `0x${string}`;
90
92
  }
91
93
  /**
92
94
  * M2M service request
package/dist/index.js CHANGED
@@ -2361,7 +2361,8 @@ var ExagentClient = class {
2361
2361
  tokenOut: intent.tokenOut,
2362
2362
  amountIn: intent.amountIn.toString(),
2363
2363
  slippageBps: intent.maxSlippageBps ?? 50,
2364
- taker: this.account.address
2364
+ taker: this.account.address,
2365
+ ...intent.configHash && { configHash: intent.configHash }
2365
2366
  })
2366
2367
  });
2367
2368
  if (!response.ok) {
package/dist/index.mjs CHANGED
@@ -2326,7 +2326,8 @@ var ExagentClient = class {
2326
2326
  tokenOut: intent.tokenOut,
2327
2327
  amountIn: intent.amountIn.toString(),
2328
2328
  slippageBps: intent.maxSlippageBps ?? 50,
2329
- taker: this.account.address
2329
+ taker: this.account.address,
2330
+ ...intent.configHash && { configHash: intent.configHash }
2330
2331
  })
2331
2332
  });
2332
2333
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exagent/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "TypeScript SDK for Exagent",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",