@exagent/agent 0.3.5 → 0.3.7

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.
Files changed (78) hide show
  1. package/dist/chunk-7UGLJO6W.js +6392 -0
  2. package/dist/chunk-EHAOPCTJ.js +6406 -0
  3. package/dist/chunk-FGMXTW5I.js +6540 -0
  4. package/dist/chunk-IVA2SCSN.js +6756 -0
  5. package/dist/chunk-JHXCSGPC.js +6352 -0
  6. package/dist/chunk-V6O4UXVN.js +6345 -0
  7. package/dist/chunk-ZRAOPQQW.js +6406 -0
  8. package/dist/cli.js +40 -98
  9. package/dist/index.d.ts +24 -2
  10. package/dist/index.js +1 -1
  11. package/package.json +17 -14
  12. package/.turbo/turbo-build.log +0 -17
  13. package/src/bridge/across.ts +0 -240
  14. package/src/bridge/bridge-manager.ts +0 -87
  15. package/src/bridge/index.ts +0 -9
  16. package/src/bridge/types.ts +0 -77
  17. package/src/chains.ts +0 -105
  18. package/src/cli.ts +0 -244
  19. package/src/config.ts +0 -499
  20. package/src/diagnostics.ts +0 -335
  21. package/src/index.ts +0 -98
  22. package/src/llm/anthropic.ts +0 -63
  23. package/src/llm/base.ts +0 -264
  24. package/src/llm/deepseek.ts +0 -48
  25. package/src/llm/google.ts +0 -63
  26. package/src/llm/groq.ts +0 -48
  27. package/src/llm/index.ts +0 -42
  28. package/src/llm/mistral.ts +0 -48
  29. package/src/llm/ollama.ts +0 -52
  30. package/src/llm/openai.ts +0 -51
  31. package/src/llm/together.ts +0 -48
  32. package/src/llm-providers.ts +0 -100
  33. package/src/logger.ts +0 -137
  34. package/src/paper/executor.ts +0 -201
  35. package/src/paper/index.ts +0 -1
  36. package/src/perp/client.ts +0 -200
  37. package/src/perp/index.ts +0 -12
  38. package/src/perp/msgpack.ts +0 -272
  39. package/src/perp/orders.ts +0 -234
  40. package/src/perp/positions.ts +0 -126
  41. package/src/perp/signer.ts +0 -277
  42. package/src/perp/types.ts +0 -192
  43. package/src/perp/websocket.ts +0 -274
  44. package/src/position-tracker.ts +0 -243
  45. package/src/prediction/client.ts +0 -281
  46. package/src/prediction/index.ts +0 -3
  47. package/src/prediction/order-manager.ts +0 -297
  48. package/src/prediction/types.ts +0 -151
  49. package/src/relay.ts +0 -254
  50. package/src/runtime.ts +0 -1755
  51. package/src/scrub-secrets.ts +0 -39
  52. package/src/setup.ts +0 -384
  53. package/src/signal.ts +0 -212
  54. package/src/spot/aerodrome.ts +0 -158
  55. package/src/spot/client.ts +0 -138
  56. package/src/spot/index.ts +0 -11
  57. package/src/spot/swap-manager.ts +0 -219
  58. package/src/spot/types.ts +0 -203
  59. package/src/spot/uniswap.ts +0 -150
  60. package/src/store.ts +0 -50
  61. package/src/strategy/index.ts +0 -2
  62. package/src/strategy/loader.ts +0 -191
  63. package/src/strategy/templates.ts +0 -125
  64. package/src/trading/index.ts +0 -2
  65. package/src/trading/market.ts +0 -120
  66. package/src/trading/risk.ts +0 -107
  67. package/src/ui.ts +0 -75
  68. package/test-bridge-arb-to-base.mjs +0 -223
  69. package/test-funded-check.mjs +0 -79
  70. package/test-funded-phase19.mjs +0 -933
  71. package/test-hl-deposit-recover.mjs +0 -281
  72. package/test-hl-withdraw.mjs +0 -372
  73. package/test-live-signing.mjs +0 -374
  74. package/test-phase7.mjs +0 -416
  75. package/test-recover-arb.mjs +0 -206
  76. package/test-spot-bridge.mjs +0 -248
  77. package/test-wallet-setup.mjs +0 -126
  78. package/tsconfig.json +0 -8
@@ -1,79 +0,0 @@
1
- /**
2
- * Check deployer and test wallet balances before funded tests.
3
- * Read-only — no transactions.
4
- */
5
-
6
- import { createPublicClient, http, formatEther, formatUnits } from 'viem';
7
- import { base, arbitrum, polygon } from 'viem/chains';
8
-
9
- const DEPLOYER = '0x1374Ee64A05011877660fD53A0D757B65Cbc73ce';
10
- const TEST_WALLET_1 = '0xf5C450448E531162141e69c70F9D8cfA637604F4';
11
-
12
- const ERC20_ABI = [
13
- { type: 'function', name: 'balanceOf', inputs: [{ name: 'account', type: 'address' }], outputs: [{ type: 'uint256' }], stateMutability: 'view' },
14
- { type: 'function', name: 'decimals', inputs: [], outputs: [{ type: 'uint8' }], stateMutability: 'view' },
15
- { type: 'function', name: 'symbol', inputs: [], outputs: [{ type: 'string' }], stateMutability: 'view' },
16
- ];
17
-
18
- const TOKENS = {
19
- base: {
20
- USDC: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
21
- USDbC: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
22
- },
23
- arbitrum: {
24
- USDC: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
25
- 'USDC.e': '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
26
- },
27
- polygon: {
28
- USDC: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359',
29
- 'USDC.e': '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
30
- },
31
- };
32
-
33
- const clients = {
34
- base: createPublicClient({ chain: base, transport: http('https://mainnet.base.org') }),
35
- arbitrum: createPublicClient({ chain: arbitrum, transport: http('https://arb1.arbitrum.io/rpc') }),
36
- polygon: createPublicClient({ chain: polygon, transport: http('https://polygon-bor-rpc.publicnode.com') }),
37
- };
38
-
39
- async function checkWallet(name, address) {
40
- console.log(`\n─── ${name}: ${address} ───`);
41
-
42
- for (const [chainName, client] of Object.entries(clients)) {
43
- try {
44
- const ethBal = await client.getBalance({ address });
45
- const ethStr = formatEther(ethBal);
46
- const nativeName = chainName === 'polygon' ? 'POL' : 'ETH';
47
-
48
- const tokens = TOKENS[chainName];
49
- let tokenLine = '';
50
- for (const [symbol, tokenAddr] of Object.entries(tokens)) {
51
- try {
52
- const bal = await client.readContract({ address: tokenAddr, abi: ERC20_ABI, functionName: 'balanceOf', args: [address] });
53
- const decimals = await client.readContract({ address: tokenAddr, abi: ERC20_ABI, functionName: 'decimals' });
54
- const formatted = formatUnits(bal, decimals);
55
- if (parseFloat(formatted) > 0) {
56
- tokenLine += ` | ${formatted} ${symbol}`;
57
- }
58
- } catch {
59
- // token might not exist on chain
60
- }
61
- }
62
-
63
- if (parseFloat(ethStr) > 0 || tokenLine) {
64
- console.log(` ${chainName}: ${ethStr} ${nativeName}${tokenLine}`);
65
- }
66
- } catch (err) {
67
- console.log(` ${chainName}: RPC error (${err.shortMessage || err.message})`);
68
- }
69
- }
70
- }
71
-
72
- console.log('Wallet Balance Check');
73
- console.log('====================');
74
-
75
- await checkWallet('Deployer', DEPLOYER);
76
- await checkWallet('Test Wallet 1 (Phase 7)', TEST_WALLET_1);
77
-
78
- console.log('\n====================');
79
- console.log('Done. Use these balances to plan funded tests.');