@exagent/agent 0.1.3 → 0.1.4

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.
@@ -1750,15 +1750,25 @@ var AgentRuntime = class {
1750
1750
  const agent = await this.client.registry.getAgent(agentId);
1751
1751
  if (agent?.owner.toLowerCase() !== address.toLowerCase()) {
1752
1752
  const ccUrl = `https://exagent.io/agents/${encodeURIComponent(this.config.name)}/command-center`;
1753
+ const nonce = await this.client.registry.getNonce(address);
1754
+ const linkMessage = ExagentRegistry.generateLinkMessage(
1755
+ address,
1756
+ agentId,
1757
+ nonce
1758
+ );
1759
+ const linkSignature = await this.client.signMessage(linkMessage);
1753
1760
  console.log("");
1754
1761
  console.log("=== WALLET LINKING REQUIRED ===");
1755
1762
  console.log("");
1756
- console.log(` Agent owner: ${agent?.owner}`);
1757
- console.log(` Trading wallet: ${address}`);
1758
- console.log("");
1759
1763
  console.log(" Your trading wallet needs to be linked to your agent.");
1760
- console.log(" Opening the command center in your browser...");
1761
- console.log(` ${ccUrl}`);
1764
+ console.log(" Open the command center and paste the values below.");
1765
+ console.log("");
1766
+ console.log(` Command Center: ${ccUrl}`);
1767
+ console.log("");
1768
+ console.log(" \u2500\u2500 Copy these two values \u2500\u2500");
1769
+ console.log("");
1770
+ console.log(` Wallet: ${address}`);
1771
+ console.log(` Signature: ${linkSignature}`);
1762
1772
  console.log("");
1763
1773
  openBrowser(ccUrl);
1764
1774
  console.log(" Waiting for wallet to be linked... (checking every 15s)");
package/dist/cli.js CHANGED
@@ -1771,15 +1771,25 @@ var AgentRuntime = class {
1771
1771
  const agent = await this.client.registry.getAgent(agentId);
1772
1772
  if (agent?.owner.toLowerCase() !== address.toLowerCase()) {
1773
1773
  const ccUrl = `https://exagent.io/agents/${encodeURIComponent(this.config.name)}/command-center`;
1774
+ const nonce = await this.client.registry.getNonce(address);
1775
+ const linkMessage = import_sdk.ExagentRegistry.generateLinkMessage(
1776
+ address,
1777
+ agentId,
1778
+ nonce
1779
+ );
1780
+ const linkSignature = await this.client.signMessage(linkMessage);
1774
1781
  console.log("");
1775
1782
  console.log("=== WALLET LINKING REQUIRED ===");
1776
1783
  console.log("");
1777
- console.log(` Agent owner: ${agent?.owner}`);
1778
- console.log(` Trading wallet: ${address}`);
1779
- console.log("");
1780
1784
  console.log(" Your trading wallet needs to be linked to your agent.");
1781
- console.log(" Opening the command center in your browser...");
1782
- console.log(` ${ccUrl}`);
1785
+ console.log(" Open the command center and paste the values below.");
1786
+ console.log("");
1787
+ console.log(` Command Center: ${ccUrl}`);
1788
+ console.log("");
1789
+ console.log(" \u2500\u2500 Copy these two values \u2500\u2500");
1790
+ console.log("");
1791
+ console.log(` Wallet: ${address}`);
1792
+ console.log(` Signature: ${linkSignature}`);
1783
1793
  console.log("");
1784
1794
  openBrowser(ccUrl);
1785
1795
  console.log(" Waiting for wallet to be linked... (checking every 15s)");
package/dist/cli.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  loadConfig,
7
7
  loadSecureEnv,
8
8
  validateConfig
9
- } from "./chunk-JIXMEAUD.mjs";
9
+ } from "./chunk-3JJNKVB6.mjs";
10
10
 
11
11
  // src/cli.ts
12
12
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -1815,15 +1815,25 @@ var AgentRuntime = class {
1815
1815
  const agent = await this.client.registry.getAgent(agentId);
1816
1816
  if (agent?.owner.toLowerCase() !== address.toLowerCase()) {
1817
1817
  const ccUrl = `https://exagent.io/agents/${encodeURIComponent(this.config.name)}/command-center`;
1818
+ const nonce = await this.client.registry.getNonce(address);
1819
+ const linkMessage = import_sdk.ExagentRegistry.generateLinkMessage(
1820
+ address,
1821
+ agentId,
1822
+ nonce
1823
+ );
1824
+ const linkSignature = await this.client.signMessage(linkMessage);
1818
1825
  console.log("");
1819
1826
  console.log("=== WALLET LINKING REQUIRED ===");
1820
1827
  console.log("");
1821
- console.log(` Agent owner: ${agent?.owner}`);
1822
- console.log(` Trading wallet: ${address}`);
1823
- console.log("");
1824
1828
  console.log(" Your trading wallet needs to be linked to your agent.");
1825
- console.log(" Opening the command center in your browser...");
1826
- console.log(` ${ccUrl}`);
1829
+ console.log(" Open the command center and paste the values below.");
1830
+ console.log("");
1831
+ console.log(` Command Center: ${ccUrl}`);
1832
+ console.log("");
1833
+ console.log(" \u2500\u2500 Copy these two values \u2500\u2500");
1834
+ console.log("");
1835
+ console.log(` Wallet: ${address}`);
1836
+ console.log(` Signature: ${linkSignature}`);
1827
1837
  console.log("");
1828
1838
  openBrowser(ccUrl);
1829
1839
  console.log(" Waiting for wallet to be linked... (checking every 15s)");
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  loadStrategy,
35
35
  validateConfig,
36
36
  validateStrategy
37
- } from "./chunk-JIXMEAUD.mjs";
37
+ } from "./chunk-3JJNKVB6.mjs";
38
38
  export {
39
39
  AgentConfigSchema,
40
40
  AgentRuntime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exagent/agent",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Autonomous trading agent runtime for Exagent",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",