keyring-agent-core 0.3.8 → 0.3.10

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
@@ -1746,6 +1746,19 @@ interface SubagentTask {
1746
1746
  * action-button prompts) in the right language. Empty when undetected.
1747
1747
  */
1748
1748
  language?: string;
1749
+ /**
1750
+ * Canonical name of the network THIS turn explicitly named (e.g. "optimism",
1751
+ * "base"), as extracted by the QueryRewriter; absent when none was named.
1752
+ *
1753
+ * Why it exists: the router rewrites the user's message into a focused
1754
+ * sub-query, and a network named only inside that prose ("swap eth on
1755
+ * optimism") can be dropped in the rewrite — after which nothing downstream
1756
+ * can tell it was ever named, and the action silently runs on the connected
1757
+ * wallet chain. The rewriter already identifies the network deterministically
1758
+ * (for unsupported-chain gating); carrying the same value here makes a named
1759
+ * network survive independently of how the router phrased the sub-query.
1760
+ */
1761
+ mentionedChain?: string;
1749
1762
  }
1750
1763
  /** Output of a single subagent run (tool calls + final summary). */
1751
1764
  interface SubagentResult {
@@ -9993,6 +10006,7 @@ declare abstract class BaseWalletActionTool extends BaseTool {
9993
10006
  amount: string;
9994
10007
  } | {
9995
10008
  error: string;
10009
+ chain?: string;
9996
10010
  _instructions: string;
9997
10011
  } | null>;
9998
10012
  /**
@@ -10086,6 +10100,7 @@ declare class SendNativeTool extends BaseWalletActionTool {
10086
10100
  parameters: ToolParameter[];
10087
10101
  protected buildParameters(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, string> | {
10088
10102
  error: string;
10103
+ chain?: string;
10089
10104
  _instructions: string;
10090
10105
  }>;
10091
10106
  }
@@ -10117,6 +10132,7 @@ declare class SendTokenTool extends BaseWalletActionTool {
10117
10132
  parameters: ToolParameter[];
10118
10133
  protected buildParameters(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, string> | {
10119
10134
  error: string;
10135
+ chain?: string;
10120
10136
  _instructions: string;
10121
10137
  } | {
10122
10138
  actionButtons: {