@agenticmail/enterprise 0.5.519 → 0.5.521

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.
@@ -1787,8 +1787,19 @@ export function PolymarketPage() {
1787
1787
  h('div', { style: _tip }, h('strong', null, 'Tip: '), 'Create an agent with the "Polymarket Trader" template (Finance category) to get started.')
1788
1788
  )
1789
1789
  ),
1790
+ wallet && wallet.mismatch && h('div', { style: { padding: '12px 16px', marginBottom: 16, background: 'rgba(239,68,68,0.1)', border: '2px solid rgba(239,68,68,0.4)', borderRadius: 8, color: '#dc2626' } },
1791
+ h('strong', null, '\u26A0 WALLET KEY MISMATCH — '),
1792
+ 'The private key in the database derives address ',
1793
+ h('code', { style: { fontSize: 12 } }, shortAddr(wallet.signerAddress)),
1794
+ ' but your funded wallet is ',
1795
+ h('code', { style: { fontSize: 12 } }, shortAddr(wallet.address)),
1796
+ '. The agent cannot access funds at the stored address. ',
1797
+ h('strong', null, 'This is likely caused by a VAULT_KEY change. '),
1798
+ 'Check your VAULT_KEY environment variable matches the one used when the wallet was created, then restart.'
1799
+ ),
1790
1800
  h('div', { className: 'stats-grid', style: { display: "grid", gridTemplateColumns: "repeat(auto-fill,minmax(160px,1fr))", gap: "12px", marginBottom: "24px" } },
1791
- statCard('Wallet', wallet ? shortAddr(wallet.address) : 'Not set', wallet ? 'Connected' : null),
1801
+ statCard('Funder', wallet ? shortAddr(wallet.address) : 'Not set', wallet ? (wallet.mismatch ? 'KEY MISMATCH' : 'Connected') : null),
1802
+ wallet && wallet.signerAddress && wallet.signerAddress !== wallet.address ? statCard('Signer', shortAddr(wallet.signerAddress), wallet.mismatch ? 'Wrong key!' : 'Trading key') : null,
1792
1803
  statCard('Mode', config?.mode || 'N/A'),
1793
1804
  statCard('Pending', pendingTrades.length),
1794
1805
  statCard('Live Positions', livePositions.length),
@@ -2295,7 +2306,7 @@ export function PolymarketPage() {
2295
2306
  } catch (e) { toast(e.message, 'error'); setTxHistory([]); }
2296
2307
  setTxLoading(false);
2297
2308
  } }, I('clock'), ' Transaction History'),
2298
- h('a', { href: 'https://polygonscan.com/address/' + (wallet?.address || walletBalance?.address), target: '_blank', className: 'btn btn-sm btn-secondary' }, I('globe'), ' View on PolygonScan'),
2309
+ h('a', { href: 'https://polygonscan.com/address/' + (wallet?.signerAddress || wallet?.address || walletBalance?.address), target: '_blank', className: 'btn btn-sm btn-secondary' }, I('globe'), ' View on PolygonScan'),
2299
2310
  h('button', { className: 'btn btn-sm btn-secondary', title: 'Flush in-memory wallet cache and reload from database', onClick: async function() {
2300
2311
  try {
2301
2312
  var res = await apiCall('/polymarket/' + selectedAgent + '/wallet/sync', { method: 'POST' });
@@ -2949,9 +2960,20 @@ export function PolymarketPage() {
2949
2960
  h('strong', null, '\u26A0 SECURITY WARNING'), h('br'),
2950
2961
  'Anyone with this key has FULL CONTROL of this wallet and all funds. Never share it. Never paste it into untrusted sites.'
2951
2962
  ),
2963
+ exportedKey.mismatch && h('div', { style: { padding: 12, background: 'rgba(239,68,68,0.15)', border: '2px solid rgba(239,68,68,0.5)', borderRadius: 8, marginBottom: 16, fontSize: 12, color: '#dc2626', lineHeight: 1.6 } },
2964
+ h('strong', null, '\u26A0 CRITICAL: KEY MISMATCH'), h('br'),
2965
+ 'This private key derives address ', h('code', null, exportedKey.address),
2966
+ ' but your funded wallet is ', h('code', null, exportedKey.storedFunderAddress), '. ',
2967
+ h('br'), h('strong', null, 'The agent CANNOT access funds at the stored address. '),
2968
+ 'This is likely caused by a VAULT_KEY environment variable change. Restore the original VAULT_KEY and restart to recover access.'
2969
+ ),
2952
2970
  h('div', { style: { marginBottom: 16 } },
2953
- h('label', { style: _labelStyle }, 'Wallet Address'),
2954
- h('div', { style: { fontFamily: 'var(--font-mono)', fontSize: 13, padding: '10px 12px', background: 'var(--bg-secondary)', borderRadius: 6, wordBreak: 'break-all', userSelect: 'all' } }, exportedKey.address)
2971
+ h('label', { style: _labelStyle }, exportedKey.mismatch ? 'Derived Address (from private key)' : 'Wallet Address'),
2972
+ h('div', { style: { fontFamily: 'var(--font-mono)', fontSize: 13, padding: '10px 12px', background: 'var(--bg-secondary)', borderRadius: 6, wordBreak: 'break-all', userSelect: 'all' } }, exportedKey.address),
2973
+ exportedKey.mismatch && h('div', { style: { marginTop: 8 } },
2974
+ h('label', { style: _labelStyle }, 'Stored Funder Address (has funds)'),
2975
+ h('div', { style: { fontFamily: 'var(--font-mono)', fontSize: 13, padding: '10px 12px', background: 'rgba(239,68,68,0.06)', borderRadius: 6, wordBreak: 'break-all', userSelect: 'all', border: '1px solid rgba(239,68,68,0.2)' } }, exportedKey.storedFunderAddress)
2976
+ )
2955
2977
  ),
2956
2978
  h('div', { style: { marginBottom: 16 } },
2957
2979
  h('label', { style: _labelStyle }, 'Private Key'),
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  provision,
9
9
  runSetupWizard
10
- } from "./chunk-25OCLUUZ.js";
10
+ } from "./chunk-OW7QTPAQ.js";
11
11
  import {
12
12
  AgenticMailManager,
13
13
  GoogleEmailProvider,
@@ -28,7 +28,7 @@ import {
28
28
  executeTool,
29
29
  runAgentLoop,
30
30
  toolsToDefinitions
31
- } from "./chunk-OUO2AFEC.js";
31
+ } from "./chunk-4CNU5AJR.js";
32
32
  import "./chunk-UBXXLAND.js";
33
33
  import {
34
34
  ValidationError,
@@ -43,7 +43,7 @@ import {
43
43
  requireRole,
44
44
  securityHeaders,
45
45
  validate
46
- } from "./chunk-TSF3ORQ6.js";
46
+ } from "./chunk-ALQ4KGMS.js";
47
47
  import "./chunk-DJBCRQTD.js";
48
48
  import {
49
49
  PROVIDER_REGISTRY,
@@ -117,10 +117,10 @@ import {
117
117
  init_agent_config,
118
118
  init_deployer
119
119
  } from "./chunk-PSZU6FMQ.js";
120
- import "./chunk-FQJM7KTU.js";
120
+ import "./chunk-PV334IXV.js";
121
121
  import "./chunk-X5IZUXDC.js";
122
122
  import "./chunk-I5IGHBXW.js";
123
- import "./chunk-4CUK5HGE.js";
123
+ import "./chunk-3OB247K5.js";
124
124
  import {
125
125
  SecureVault,
126
126
  init_vault
@@ -128,7 +128,7 @@ import {
128
128
  import "./chunk-2CDGYMJK.js";
129
129
  import "./chunk-V3LPIDTL.js";
130
130
  import "./chunk-A4CX3XQS.js";
131
- import "./chunk-JJ35EU2Z.js";
131
+ import "./chunk-BUJVI44B.js";
132
132
  import {
133
133
  CircuitBreaker,
134
134
  CircuitOpenError,
@@ -0,0 +1,36 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-ALQ4KGMS.js";
4
+ import "./chunk-DJBCRQTD.js";
5
+ import "./chunk-UF3ZJMJO.js";
6
+ import "./chunk-UEUOUZOD.js";
7
+ import "./chunk-TK55CSBH.js";
8
+ import "./chunk-Z7NVD3OQ.js";
9
+ import "./chunk-VSBC4SWO.js";
10
+ import "./chunk-AF3WSNVX.js";
11
+ import "./chunk-74ZCQKYU.js";
12
+ import "./chunk-ET6WZFPS.js";
13
+ import "./chunk-FQWJMPKW.js";
14
+ import "./chunk-ZW7JLXWZ.js";
15
+ import "./chunk-NCODRQSS.js";
16
+ import "./chunk-PSZU6FMQ.js";
17
+ import "./chunk-PV334IXV.js";
18
+ import "./chunk-X5IZUXDC.js";
19
+ import "./chunk-I5IGHBXW.js";
20
+ import "./chunk-3OB247K5.js";
21
+ import "./chunk-WUAWWKTN.js";
22
+ import "./chunk-2CDGYMJK.js";
23
+ import "./chunk-V3LPIDTL.js";
24
+ import "./chunk-A4CX3XQS.js";
25
+ import "./chunk-BUJVI44B.js";
26
+ import "./chunk-YDD5TC5Q.js";
27
+ import "./chunk-37ABTUFU.js";
28
+ import "./chunk-NU657BBQ.js";
29
+ import "./chunk-PGAU3W3M.js";
30
+ import "./chunk-FLQ5FLHW.js";
31
+ import "./chunk-TOGMCQSJ.js";
32
+ import "./chunk-22U7TZPN.js";
33
+ import "./chunk-KFQGP6VL.js";
34
+ export {
35
+ createServer
36
+ };
@@ -0,0 +1,36 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-TVYI4NSK.js";
4
+ import "./chunk-DJBCRQTD.js";
5
+ import "./chunk-UF3ZJMJO.js";
6
+ import "./chunk-UEUOUZOD.js";
7
+ import "./chunk-TK55CSBH.js";
8
+ import "./chunk-Z7NVD3OQ.js";
9
+ import "./chunk-VSBC4SWO.js";
10
+ import "./chunk-AF3WSNVX.js";
11
+ import "./chunk-74ZCQKYU.js";
12
+ import "./chunk-ET6WZFPS.js";
13
+ import "./chunk-FQWJMPKW.js";
14
+ import "./chunk-ZW7JLXWZ.js";
15
+ import "./chunk-NCODRQSS.js";
16
+ import "./chunk-PSZU6FMQ.js";
17
+ import "./chunk-PV334IXV.js";
18
+ import "./chunk-X5IZUXDC.js";
19
+ import "./chunk-I5IGHBXW.js";
20
+ import "./chunk-3OB247K5.js";
21
+ import "./chunk-WUAWWKTN.js";
22
+ import "./chunk-2CDGYMJK.js";
23
+ import "./chunk-V3LPIDTL.js";
24
+ import "./chunk-A4CX3XQS.js";
25
+ import "./chunk-BUJVI44B.js";
26
+ import "./chunk-YDD5TC5Q.js";
27
+ import "./chunk-37ABTUFU.js";
28
+ import "./chunk-NU657BBQ.js";
29
+ import "./chunk-PGAU3W3M.js";
30
+ import "./chunk-FLQ5FLHW.js";
31
+ import "./chunk-TOGMCQSJ.js";
32
+ import "./chunk-22U7TZPN.js";
33
+ import "./chunk-KFQGP6VL.js";
34
+ export {
35
+ createServer
36
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-43TMKHKH.js";
10
+ import "./chunk-5KB5MAZK.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-OW7QTPAQ.js";
10
+ import "./chunk-5KB5MAZK.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
@@ -82,3 +82,7 @@
82
82
  2026-03-15 01:46:09: 2026-03-15T00:46:09Z ERR Request failed error="stream 8165 canceled by remote with error code 0" connIndex=3 dest=https://enterprise.agenticmail.io/api/polymarket/67ba24f1-c8af-40b4-9df5-c05b81fc1e7a/price-stream event=0 ip=198.41.200.23 type=http
83
83
  2026-03-15 01:46:15: 2026-03-15T00:46:15Z ERR error="stream 405 canceled by remote with error code 0" connIndex=2 event=1 ingressRule=0 originService=http://localhost:3100
84
84
  2026-03-15 01:46:15: 2026-03-15T00:46:15Z ERR Request failed error="stream 405 canceled by remote with error code 0" connIndex=2 dest=https://enterprise.agenticmail.io/api/polymarket/stream?agentId=67ba24f1-c8af-40b4-9df5-c05b81fc1e7a event=0 ip=198.41.192.167 type=http
85
+ 2026-03-15 02:06:35: 2026-03-15T01:06:35Z ERR error="stream 8853 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:3100
86
+ 2026-03-15 02:06:35: 2026-03-15T01:06:35Z ERR Request failed error="stream 8853 canceled by remote with error code 0" connIndex=3 dest=https://enterprise.agenticmail.io/api/polymarket/67ba24f1-c8af-40b4-9df5-c05b81fc1e7a/price-stream event=0 ip=198.41.200.23 type=http
87
+ 2026-03-15 02:06:41: 2026-03-15T01:06:41Z ERR error="stream 8857 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:3100
88
+ 2026-03-15 02:06:41: 2026-03-15T01:06:41Z ERR Request failed error="stream 8857 canceled by remote with error code 0" connIndex=3 dest=https://enterprise.agenticmail.io/api/polymarket/stream?agentId=67ba24f1-c8af-40b4-9df5-c05b81fc1e7a event=0 ip=198.41.200.23 type=http
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.519",
3
+ "version": "0.5.521",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {