@agenticmail/enterprise 0.5.483 → 0.5.485
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/agent-heartbeat-7ZC3JQZF.js +518 -0
- package/dist/agent-tools-AMTJZ6DX.js +14677 -0
- package/dist/chunk-7LQISMIC.js +7754 -0
- package/dist/chunk-7PHW3GAU.js +5562 -0
- package/dist/chunk-DYLYEMAT.js +1657 -0
- package/dist/chunk-FDOK2L5M.js +409 -0
- package/dist/chunk-HWRM64VJ.js +2282 -0
- package/dist/chunk-OSH6KF4V.js +623 -0
- package/dist/chunk-PPSLXFMX.js +26381 -0
- package/dist/chunk-PYEHCZZH.js +5722 -0
- package/dist/chunk-PZDID3L4.js +1728 -0
- package/dist/chunk-TCVD36NA.js +5977 -0
- package/dist/chunk-TXZWO3T4.js +2641 -0
- package/dist/cli-agent-BEURSMRN.js +2804 -0
- package/dist/cli-serve-E45SJNHP.js +322 -0
- package/dist/cli-validate-HM4X2PNB.js +150 -0
- package/dist/cli.js +4 -4
- package/dist/dashboard/pages/polymarket.js +39 -39
- package/dist/index.js +11 -11
- package/dist/pipeline-J3O3UC2X.js +15 -0
- package/dist/polymarket-52W7AN3N.js +17 -0
- package/dist/polymarket-runtime-AAONNUDG.js +108 -0
- package/dist/polymarket-watcher-UHAEXPF3.js +23 -0
- package/dist/routes-OSTTX7K7.js +94 -0
- package/dist/runtime-W2GYHVKX.js +50 -0
- package/dist/screener-QCKU3QIJ.js +26 -0
- package/dist/server-UZ3PL6QJ.js +36 -0
- package/dist/setup-PBA5XGI3.js +20 -0
- package/dist/skills-7DYRO2AM.js +16 -0
- package/logs/cloudflared-error.log +156 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { HelpButton } from '../components/help-button.js';
|
|
|
6
6
|
import { Modal } from '../components/modal.js';
|
|
7
7
|
import { useOrgContext } from '../components/org-switcher.js';
|
|
8
8
|
|
|
9
|
-
var CHART_COLORS = ['#6366f1', '#10b981', '#
|
|
9
|
+
var CHART_COLORS = ['#6366f1', '#10b981', '#b45309', '#ef4444', '#8b5cf6', '#06b6d4', '#ec4899', '#14b8a6', '#f97316', '#84cc16'];
|
|
10
10
|
|
|
11
11
|
export function PolymarketPage() {
|
|
12
12
|
var orgCtx = useOrgContext();
|
|
@@ -446,7 +446,7 @@ export function PolymarketPage() {
|
|
|
446
446
|
var scoreColor = function(score) {
|
|
447
447
|
if (score >= 70) return '#10b981';
|
|
448
448
|
if (score >= 50) return '#3b82f6';
|
|
449
|
-
if (score >= 30) return '#
|
|
449
|
+
if (score >= 30) return '#b45309';
|
|
450
450
|
return '#6b7280';
|
|
451
451
|
};
|
|
452
452
|
var liquidityGrade = function(m) {
|
|
@@ -454,12 +454,12 @@ export function PolymarketPage() {
|
|
|
454
454
|
var liq = s.liquidity || 0;
|
|
455
455
|
if (liq >= 20 && s.spread >= 10) return { grade: 'A', color: '#10b981', label: 'Excellent' };
|
|
456
456
|
if (liq >= 15) return { grade: 'B', color: '#3b82f6', label: 'Good' };
|
|
457
|
-
if (liq >= 8) return { grade: 'C', color: '#
|
|
457
|
+
if (liq >= 8) return { grade: 'C', color: '#b45309', label: 'Fair' };
|
|
458
458
|
return { grade: 'D', color: '#ef4444', label: 'Thin' };
|
|
459
459
|
};
|
|
460
460
|
var scoreBar = function(label, value, max) {
|
|
461
461
|
var pct = Math.min(100, (value / (max || 25)) * 100);
|
|
462
|
-
var clr = value >= max * 0.7 ? '#10b981' : value >= max * 0.4 ? '#3b82f6' : value >= max * 0.2 ? '#
|
|
462
|
+
var clr = value >= max * 0.7 ? '#10b981' : value >= max * 0.4 ? '#3b82f6' : value >= max * 0.2 ? '#b45309' : '#6b7280';
|
|
463
463
|
return h('div', { style: { display: 'flex', alignItems: 'center', gap: 6, fontSize: 11, marginBottom: 4 } },
|
|
464
464
|
h('span', { style: { width: 60, color: 'var(--text-muted)', fontWeight: 500 } }, label),
|
|
465
465
|
h('div', { style: { flex: 1, height: 6, background: 'var(--bg-secondary)', borderRadius: 3, overflow: 'hidden' } },
|
|
@@ -571,7 +571,7 @@ export function PolymarketPage() {
|
|
|
571
571
|
onMouseEnter: function(e) { showTip(e, ['Liquidity: ' + liq.grade + ' \u2014 ' + liq.label, '$' + fmtCompact(m.liquidity) + ' available liquidity']); }, onMouseLeave: hideTip
|
|
572
572
|
}, liq.grade),
|
|
573
573
|
pl.regime && h('span', { style: { fontSize: 8, color: 'var(--text-muted)' } }, pl.regime),
|
|
574
|
-
pl.manipulation_risk && pl.manipulation_risk !== 'LOW' && h('span', { style: { fontSize: 8, color: pl.manipulation_risk === 'HIGH' ? '#ef4444' : '#
|
|
574
|
+
pl.manipulation_risk && pl.manipulation_risk !== 'LOW' && h('span', { style: { fontSize: 8, color: pl.manipulation_risk === 'HIGH' ? '#ef4444' : '#b45309' } }, '\u26a0 ' + pl.manipulation_risk),
|
|
575
575
|
m.volume24hr > 0 && h('span', { style: { fontSize: 9, color: 'var(--text-muted)' } }, 'Vol $' + fmtCompact(m.volume24hr)),
|
|
576
576
|
m.liquidity > 0 && h('span', { style: { fontSize: 9, color: 'var(--text-muted)' } }, 'Liq $' + fmtCompact(m.liquidity)),
|
|
577
577
|
pl.confidence ? h('span', { style: { fontSize: 9, color: 'var(--text-muted)' } }, pl.confidence.toFixed(0) + '% conf') : rec.confidence && h('span', { style: { fontSize: 9, color: 'var(--text-muted)' } }, rec.confidence.toFixed(0) + '% conf')
|
|
@@ -1364,7 +1364,7 @@ export function PolymarketPage() {
|
|
|
1364
1364
|
h('div', { className: 'card-header' }, h('h3', { style: { fontSize: 14, fontWeight: 600, display: 'flex', alignItems: 'center', gap: 8 } },
|
|
1365
1365
|
'Live Position Prices',
|
|
1366
1366
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: 4 } },
|
|
1367
|
-
h('div', { style: { width: 6, height: 6, borderRadius: '50%', background: hasPositions ? '#
|
|
1367
|
+
h('div', { style: { width: 6, height: 6, borderRadius: '50%', background: hasPositions ? '#b45309' : 'var(--text-muted)' } }),
|
|
1368
1368
|
h('span', { style: { fontSize: 11, color: 'var(--text-muted)' } }, hasPositions ? 'Waiting for data...' : 'No positions')
|
|
1369
1369
|
)
|
|
1370
1370
|
)),
|
|
@@ -1570,7 +1570,7 @@ export function PolymarketPage() {
|
|
|
1570
1570
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Available'),
|
|
1571
1571
|
h('span', { style: { fontWeight: 600, color: insufficientFunds ? '#ef4444' : '#10b981' } }, '$' + availableCash.toFixed(2))
|
|
1572
1572
|
),
|
|
1573
|
-
size < 5 && h('div', { style: { color: '#
|
|
1573
|
+
size < 5 && h('div', { style: { color: '#b45309', marginTop: 4 } }, '\u26a0 Min 5 shares'),
|
|
1574
1574
|
insufficientFunds && h('div', { style: { color: '#ef4444', fontWeight: 600, marginTop: 4 } }, '\u26d4 Need $' + (cost - availableCash).toFixed(2) + ' more')
|
|
1575
1575
|
),
|
|
1576
1576
|
// Pipeline analysis (compact)
|
|
@@ -1588,7 +1588,7 @@ export function PolymarketPage() {
|
|
|
1588
1588
|
var sigColor = bsPl.action?.includes('BUY') ? '#10b981' : bsPl.action?.includes('SELL') ? '#ef4444' : '#6b7280';
|
|
1589
1589
|
return h('div', { style: { padding: '8px 12px', background: sigColor + '08', borderRadius: 8, marginBottom: 14, border: '1px solid ' + sigColor + '20', fontSize: 11, lineHeight: 1.6 } },
|
|
1590
1590
|
h('div', { style: { fontSize: 9, fontWeight: 700, textTransform: 'uppercase', letterSpacing: 0.5, color: sigColor, marginBottom: 4 } }, 'Analysis Pipeline'),
|
|
1591
|
-
insights.map(function(line, li) { return h('div', { key: li, style: { color: line.startsWith('\u26a0') ? '#
|
|
1591
|
+
insights.map(function(line, li) { return h('div', { key: li, style: { color: line.startsWith('\u26a0') ? '#b45309' : 'var(--text-muted)' } }, line); })
|
|
1592
1592
|
);
|
|
1593
1593
|
})(),
|
|
1594
1594
|
// Actions
|
|
@@ -1858,7 +1858,7 @@ export function PolymarketPage() {
|
|
|
1858
1858
|
h('span', null, '\u23F3'),
|
|
1859
1859
|
h('span', null, h('strong', null, autoPlaced.length), ' order(s) placed and awaiting exchange execution'),
|
|
1860
1860
|
),
|
|
1861
|
-
needsApproval.length > 0 && h('div', { style: { padding: '8px 12px', background: 'rgba(
|
|
1861
|
+
needsApproval.length > 0 && h('div', { style: { padding: '8px 12px', background: 'rgba(180,83,9,0.08)', borderRadius: 8, border: '1px solid rgba(180,83,9,0.2)', marginBottom: 12, fontSize: 12, display: 'flex', alignItems: 'center', gap: 8 } },
|
|
1862
1862
|
h('span', null, '\u26A0\uFE0F'),
|
|
1863
1863
|
h('span', null, h('strong', null, needsApproval.length), ' order(s) awaiting your approval'),
|
|
1864
1864
|
)
|
|
@@ -1987,7 +1987,7 @@ export function PolymarketPage() {
|
|
|
1987
1987
|
h('div', { style: { display: 'flex', justifyContent: 'flex-end', gap: 8, marginBottom: 8 } },
|
|
1988
1988
|
livePrices.positions.some(function(p) { return p.redeemable && !p.isLost; })
|
|
1989
1989
|
? h('button', { className: 'btn btn-sm', disabled: redeemExecuting === 'all',
|
|
1990
|
-
style: { background: 'rgba(
|
|
1990
|
+
style: { background: 'rgba(180,83,9,0.15)', border: '1px solid rgba(180,83,9,0.3)', color: '#b45309', fontWeight: 600, cursor: redeemExecuting === 'all' ? 'not-allowed' : 'pointer' },
|
|
1991
1991
|
onClick: executeRedeemAll
|
|
1992
1992
|
}, redeemExecuting === 'all' ? 'Claiming All...' : I('award'), ' Redeem All Winnings')
|
|
1993
1993
|
: null,
|
|
@@ -2003,7 +2003,7 @@ export function PolymarketPage() {
|
|
|
2003
2003
|
var cost = (p.entry || 0) * (p.size || 0);
|
|
2004
2004
|
var winAmount = (p.size || 0); // each winning share pays $1, so total payout = number of shares
|
|
2005
2005
|
var statusBadge = p.redeemable
|
|
2006
|
-
? h('span', { className: 'badge', style: { background: 'rgba(
|
|
2006
|
+
? h('span', { className: 'badge', style: { background: 'rgba(180,83,9,0.15)', color: '#b45309', fontSize: 9, marginLeft: 6 } }, 'REDEEM')
|
|
2007
2007
|
: isWon
|
|
2008
2008
|
? h('span', { className: 'badge', style: { background: 'rgba(16,185,129,0.15)', color: '#10b981', fontSize: 9, marginLeft: 6 } }, 'WON')
|
|
2009
2009
|
: isLost
|
|
@@ -2046,15 +2046,15 @@ export function PolymarketPage() {
|
|
|
2046
2046
|
var days = Math.floor(diff / 86400000);
|
|
2047
2047
|
var label = d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
|
|
2048
2048
|
if (diff < 0) return h('span', { style: { color: '#ef4444' } }, 'Ended');
|
|
2049
|
-
if (days === 0) return h('span', { style: { color: '#
|
|
2050
|
-
if (days <= 3) return h('span', { style: { color: '#
|
|
2049
|
+
if (days === 0) return h('span', { style: { color: '#b45309', fontWeight: 600 } }, 'Today');
|
|
2050
|
+
if (days <= 3) return h('span', { style: { color: '#b45309' } }, days + 'd · ' + label);
|
|
2051
2051
|
return label;
|
|
2052
2052
|
})() : '--'
|
|
2053
2053
|
),
|
|
2054
2054
|
h('td', { key: 'act' },
|
|
2055
2055
|
p.redeemable && !isLost
|
|
2056
2056
|
? h('button', { className: 'btn btn-sm', disabled: redeemExecuting === p.conditionId || redeemExecuting === 'all',
|
|
2057
|
-
style: { minWidth: 50, fontSize: 11, background: 'rgba(
|
|
2057
|
+
style: { minWidth: 50, fontSize: 11, background: 'rgba(180,83,9,0.15)', border: '1px solid rgba(180,83,9,0.3)', color: '#b45309', fontWeight: 600, cursor: (redeemExecuting === p.conditionId || redeemExecuting === 'all') ? 'not-allowed' : 'pointer' },
|
|
2058
2058
|
onClick: function(e) { e.stopPropagation(); executeRedeem(p); }
|
|
2059
2059
|
}, redeemExecuting === p.conditionId ? 'Claiming...' : 'Redeem')
|
|
2060
2060
|
: isLost
|
|
@@ -2094,7 +2094,7 @@ export function PolymarketPage() {
|
|
|
2094
2094
|
)
|
|
2095
2095
|
),
|
|
2096
2096
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: 6 } },
|
|
2097
|
-
walletLoading && h('div', { style: { width: 8, height: 8, borderRadius: '50%', background: '#
|
|
2097
|
+
walletLoading && h('div', { style: { width: 8, height: 8, borderRadius: '50%', background: '#b45309', animation: 'pulse 1s infinite' } }),
|
|
2098
2098
|
h('span', { style: { fontSize: 11, color: 'var(--text-muted)' } }, walletLoading ? 'Refreshing...' : 'Auto-refreshes every 15s')
|
|
2099
2099
|
)
|
|
2100
2100
|
),
|
|
@@ -2120,14 +2120,14 @@ export function PolymarketPage() {
|
|
|
2120
2120
|
);
|
|
2121
2121
|
})(),
|
|
2122
2122
|
// Native USDC (not directly usable on Polymarket)
|
|
2123
|
-
(walletBalance.balances.usdcNative != null && walletBalance.balances.usdcNative > 0) && h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', padding: '12px 16px', background: 'rgba(
|
|
2123
|
+
(walletBalance.balances.usdcNative != null && walletBalance.balances.usdcNative > 0) && h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', padding: '12px 16px', background: 'rgba(180,83,9,0.06)', borderRadius: 8, border: '1px solid rgba(180,83,9,0.2)' } },
|
|
2124
2124
|
h('div', null,
|
|
2125
2125
|
h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginBottom: 2, display: 'flex', alignItems: 'center', gap: 6 } }, 'USDC (Native)',
|
|
2126
|
-
h('span', { style: { fontSize: 9, padding: '1px 5px', background: 'rgba(
|
|
2126
|
+
h('span', { style: { fontSize: 9, padding: '1px 5px', background: 'rgba(180,83,9,0.15)', borderRadius: 4, color: '#b45309', fontWeight: 600 } }, 'NEEDS SWAP')
|
|
2127
2127
|
),
|
|
2128
2128
|
h('div', { style: { fontSize: 18, fontWeight: 600 } }, '$' + (walletBalance.balances.usdcNative || 0).toFixed(2))
|
|
2129
2129
|
),
|
|
2130
|
-
h('div', { style: { fontSize: 11, color: '#
|
|
2130
|
+
h('div', { style: { fontSize: 11, color: '#b45309', textAlign: 'right' } },
|
|
2131
2131
|
h('div', null, 'Not usable on Polymarket'),
|
|
2132
2132
|
h('div', null, 'Swap to USDC.e to trade')
|
|
2133
2133
|
)
|
|
@@ -2160,7 +2160,7 @@ export function PolymarketPage() {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
}, 'Swap USDC.e \u2192 Native USDC')
|
|
2162
2162
|
),
|
|
2163
|
-
walletBalance.needsSwap && h('div', { style: { marginTop: 8, fontSize: 11, color: '#
|
|
2163
|
+
walletBalance.needsSwap && h('div', { style: { marginTop: 8, fontSize: 11, color: '#b45309' } },
|
|
2164
2164
|
'\u26A0\uFE0F Polymarket requires USDC.e. Swap your native USDC above to start trading.'
|
|
2165
2165
|
)
|
|
2166
2166
|
),
|
|
@@ -2230,7 +2230,7 @@ export function PolymarketPage() {
|
|
|
2230
2230
|
h('li', null, 'You can also deposit via ', h('a', { href: 'https://polymarket.com', target: '_blank', style: { color: 'var(--brand)' } }, 'polymarket.com'), ' bridge from Ethereum, Arbitrum, Base, or Optimism')
|
|
2231
2231
|
)
|
|
2232
2232
|
),
|
|
2233
|
-
h('div', { style: { marginTop: 12, padding: 10, background: 'rgba(
|
|
2233
|
+
h('div', { style: { marginTop: 12, padding: 10, background: 'rgba(180,83,9,0.1)', border: '1px solid rgba(180,83,9,0.2)', borderRadius: 6, fontSize: 12, color: '#b45309' } },
|
|
2234
2234
|
h('strong', null, '\u26A0 '), 'Only send USDC on Polygon. Sending other tokens or on other networks will result in loss of funds.'
|
|
2235
2235
|
)
|
|
2236
2236
|
)
|
|
@@ -2312,7 +2312,7 @@ export function PolymarketPage() {
|
|
|
2312
2312
|
)
|
|
2313
2313
|
},
|
|
2314
2314
|
h('div', { style: { display: 'flex', flexDirection: 'column', gap: 16 } },
|
|
2315
|
-
h('div', { style: { padding: 12, background: swapModal.direction === 'native_to_bridged' ? 'rgba(
|
|
2315
|
+
h('div', { style: { padding: 12, background: swapModal.direction === 'native_to_bridged' ? 'rgba(180,83,9,0.08)' : 'rgba(99,102,241,0.08)', borderRadius: 8, fontSize: 13, lineHeight: 1.6 } },
|
|
2316
2316
|
swapModal.direction === 'native_to_bridged'
|
|
2317
2317
|
? 'Convert your native USDC to USDC.e (bridged), which is required for trading on Polymarket.'
|
|
2318
2318
|
: 'Convert your USDC.e (bridged) back to native USDC. Note: Native USDC cannot be used for trading on Polymarket.'
|
|
@@ -2376,8 +2376,8 @@ export function PolymarketPage() {
|
|
|
2376
2376
|
walletSecurity && walletSecurity.hasPin && h('button', { className: 'btn btn-secondary', style: { marginBottom: 8, width: '100%' }, onClick: function() { setTransferVerifyStep('pin'); setTransferCode(''); } },
|
|
2377
2377
|
I('key'), ' Verify with Wallet PIN'
|
|
2378
2378
|
),
|
|
2379
|
-
(!walletSecurity || (!walletSecurity.has2fa && !walletSecurity.hasPin)) && h('div', { style: { padding: 16, background: 'rgba(
|
|
2380
|
-
h('p', { style: { fontWeight: 600, marginBottom: 8, color: '#
|
|
2379
|
+
(!walletSecurity || (!walletSecurity.has2fa && !walletSecurity.hasPin)) && h('div', { style: { padding: 16, background: 'rgba(180,83,9,0.08)', borderRadius: 8, border: '1px solid rgba(180,83,9,0.2)', marginTop: 12 } },
|
|
2380
|
+
h('p', { style: { fontWeight: 600, marginBottom: 8, color: '#b45309', display: 'flex', alignItems: 'center', gap: 6 } }, I('warning'), ' No Security Method Set Up'),
|
|
2381
2381
|
h('p', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 12 } }, 'You need to set up either 2FA (from Settings page) or a 6-digit Wallet PIN to enable transfers.'),
|
|
2382
2382
|
h('button', { className: 'btn btn-warning', style: { width: '100%' }, onClick: function() { setTransferVerifyStep('setup_pin'); setTransferPinSetup({ pin: '', confirm: '' }); } },
|
|
2383
2383
|
I('plus'), ' Set Up Wallet PIN'
|
|
@@ -2501,7 +2501,7 @@ export function PolymarketPage() {
|
|
|
2501
2501
|
h('option', { value: '' }, 'Select whitelisted address...'),
|
|
2502
2502
|
whitelist.map(function(a) { return h('option', { key: a.address, value: a.address }, a.label + ' (' + a.address.slice(0,6) + '...' + a.address.slice(-4) + ')'); })
|
|
2503
2503
|
)
|
|
2504
|
-
: h('div', { style: { fontSize: 12, color: '#
|
|
2504
|
+
: h('div', { style: { fontSize: 12, color: '#b45309', padding: '8px 12px', background: 'rgba(180,83,9,0.08)', borderRadius: 6, display: 'flex', alignItems: 'center', gap: 6 } }, I('warning'), ' No whitelisted addresses. Add one in the Withdrawal Addresses section first.')
|
|
2505
2505
|
),
|
|
2506
2506
|
h('div', { style: { display: 'flex', gap: 8, marginBottom: 12 } },
|
|
2507
2507
|
h('div', { style: { flex: 1 } },
|
|
@@ -2620,7 +2620,7 @@ export function PolymarketPage() {
|
|
|
2620
2620
|
createdWallet.address, ' ', h('span', { style: { color: 'var(--text-muted)', fontSize: 11 } }, '(click to copy)')
|
|
2621
2621
|
),
|
|
2622
2622
|
h('label', { style: Object.assign({}, _labelStyle, { marginTop: 12 }) }, 'Private Key'),
|
|
2623
|
-
h('div', { style: Object.assign({}, _inputStyle, { fontFamily: 'monospace', fontSize: 12, cursor: 'pointer', background: 'rgba(
|
|
2623
|
+
h('div', { style: Object.assign({}, _inputStyle, { fontFamily: 'monospace', fontSize: 12, cursor: 'pointer', background: 'rgba(180,83,9,0.06)', border: '1px solid rgba(180,83,9,0.2)', wordBreak: 'break-all' }), onClick: function() { navigator.clipboard.writeText(createdWallet.privateKey); toast('Private key copied', 'success'); } },
|
|
2624
2624
|
createdWallet.privateKey, ' ', h('span', { style: { color: 'var(--text-muted)', fontSize: 11 } }, '(click to copy)')
|
|
2625
2625
|
),
|
|
2626
2626
|
h('div', { style: { marginTop: 12, padding: '10px 14px', background: 'rgba(239,68,68,0.08)', borderRadius: 6, border: '1px solid rgba(239,68,68,0.2)', fontSize: 12, color: '#ef4444', lineHeight: 1.5 } },
|
|
@@ -2664,7 +2664,7 @@ export function PolymarketPage() {
|
|
|
2664
2664
|
placeholder: '0x...', value: importKey,
|
|
2665
2665
|
onChange: function(e) { setImportKey(e.target.value); },
|
|
2666
2666
|
}),
|
|
2667
|
-
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8, padding: '8px 12px', background: 'rgba(
|
|
2667
|
+
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8, padding: '8px 12px', background: 'rgba(180,83,9,0.08)', borderRadius: 6, border: '1px solid rgba(180,83,9,0.2)' } },
|
|
2668
2668
|
I('shield'),
|
|
2669
2669
|
h('span', { style: { fontSize: 12, color: 'var(--text-muted)' } }, 'Encrypted with AES-256-GCM. Never leaves the server.')
|
|
2670
2670
|
),
|
|
@@ -2701,7 +2701,7 @@ export function PolymarketPage() {
|
|
|
2701
2701
|
h('input', { type: 'password', style: Object.assign({}, _inputStyle, { fontFamily: 'monospace', fontSize: 13 }), placeholder: 'Hex passphrase', value: apiCredsForm.api_passphrase, onChange: function(e) { setApiCredsForm(Object.assign({}, apiCredsForm, { api_passphrase: e.target.value })); } }),
|
|
2702
2702
|
h('label', { style: Object.assign({}, _labelStyle, { marginTop: 10 }) }, 'Wallet Address (optional)'),
|
|
2703
2703
|
h('input', { type: 'text', style: Object.assign({}, _inputStyle, { fontFamily: 'monospace', fontSize: 13 }), placeholder: '0x... (shown in your Polymarket profile)', value: apiCredsForm.wallet_address, onChange: function(e) { setApiCredsForm(Object.assign({}, apiCredsForm, { wallet_address: e.target.value })); } }),
|
|
2704
|
-
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8, padding: '8px 12px', background: 'rgba(
|
|
2704
|
+
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8, padding: '8px 12px', background: 'rgba(180,83,9,0.08)', borderRadius: 6, border: '1px solid rgba(180,83,9,0.2)' } },
|
|
2705
2705
|
I('shield'),
|
|
2706
2706
|
h('span', { style: { fontSize: 12, color: 'var(--text-muted)' } }, 'All credentials are encrypted with AES-256-GCM before storage.')
|
|
2707
2707
|
)
|
|
@@ -2935,7 +2935,7 @@ export function PolymarketPage() {
|
|
|
2935
2935
|
),
|
|
2936
2936
|
|
|
2937
2937
|
// ── Pending Transfers (approval required) ──
|
|
2938
|
-
transfers.filter(function(t) { return t.status === 'pending'; }).length > 0 && h('div', { className: 'card', style: { padding: 20, marginTop: 16, border: '1px solid rgba(
|
|
2938
|
+
transfers.filter(function(t) { return t.status === 'pending'; }).length > 0 && h('div', { className: 'card', style: { padding: 20, marginTop: 16, border: '1px solid rgba(180,83,9,0.3)', background: 'rgba(180,83,9,0.04)' } },
|
|
2939
2939
|
h('div', { style: { fontSize: 14, fontWeight: 700, marginBottom: 12, display: 'flex', alignItems: 'center', gap: 8 } },
|
|
2940
2940
|
I('zap'), 'Pending Transfers ',
|
|
2941
2941
|
h(HelpButton, { label: 'Pending Transfers' },
|
|
@@ -3037,7 +3037,7 @@ export function PolymarketPage() {
|
|
|
3037
3037
|
h('button', { className: 'btn btn-ghost btn-icon', onClick: function() { setShowAddAddr(false); } }, '\u00d7')
|
|
3038
3038
|
),
|
|
3039
3039
|
h('div', { className: 'modal-body', style: { padding: 20 } },
|
|
3040
|
-
h('div', { style: { padding: 12, background: 'rgba(
|
|
3040
|
+
h('div', { style: { padding: 12, background: 'rgba(180,83,9,0.08)', border: '1px solid rgba(180,83,9,0.25)', borderRadius: 8, marginBottom: 16, fontSize: 12, color: '#b45309', lineHeight: 1.6 } },
|
|
3041
3041
|
h('strong', null, '\u26A0 Cooling Period'), h('br'),
|
|
3042
3042
|
'New addresses cannot receive transfers for the configured cooling period after being added. This protects against unauthorized address additions. Set to 0 to disable (not recommended).'
|
|
3043
3043
|
),
|
|
@@ -3743,7 +3743,7 @@ export function PolymarketPage() {
|
|
|
3743
3743
|
function(s) { return [
|
|
3744
3744
|
h('td', null, '$' + (s.total_value || 0).toFixed(2)),
|
|
3745
3745
|
h('td', null, '$' + (s.peak_value || 0).toFixed(2)),
|
|
3746
|
-
h('td', null, h('span', { style: { color: s.drawdown_pct > 15 ? '#ef4444' : s.drawdown_pct > 10 ? '#
|
|
3746
|
+
h('td', null, h('span', { style: { color: s.drawdown_pct > 15 ? '#ef4444' : s.drawdown_pct > 10 ? '#b45309' : '#10b981' } }, s.drawdown_pct?.toFixed(1) + '%')),
|
|
3747
3747
|
h('td', null, pnlCell(s.unrealized_pnl)),
|
|
3748
3748
|
h('td', null, fmtDate(s.timestamp)),
|
|
3749
3749
|
]; },
|
|
@@ -3836,7 +3836,7 @@ export function PolymarketPage() {
|
|
|
3836
3836
|
h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginTop: 4 } }, 'Goals Met')
|
|
3837
3837
|
),
|
|
3838
3838
|
h('div', { className: 'card', style: { padding: 16, textAlign: 'center' } },
|
|
3839
|
-
h('div', { style: { fontSize: 24, fontWeight: 700, color: overallProgress >= 75 ? '#10b981' : overallProgress >= 50 ? '#
|
|
3839
|
+
h('div', { style: { fontSize: 24, fontWeight: 700, color: overallProgress >= 75 ? '#10b981' : overallProgress >= 50 ? '#b45309' : '#ef4444' } }, overallProgress.toFixed(0) + '%'),
|
|
3840
3840
|
h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginTop: 4 } }, 'Overall Progress')
|
|
3841
3841
|
),
|
|
3842
3842
|
h('div', { className: 'card', style: { padding: 16, textAlign: 'center' } },
|
|
@@ -3923,14 +3923,14 @@ export function PolymarketPage() {
|
|
|
3923
3923
|
goal.type.includes('pct') || goal.type === 'win_rate' || goal.type === 'max_drawdown' ? '%' : goal.type.includes('usd') || goal.type === 'portfolio_value' || goal.type === 'balance_target' ? '$' : ''
|
|
3924
3924
|
)
|
|
3925
3925
|
),
|
|
3926
|
-
!met && remaining > 0 && h('div', { style: { fontSize: 11, color: '#
|
|
3926
|
+
!met && remaining > 0 && h('div', { style: { fontSize: 11, color: '#b45309' } }, remaining.toFixed(2) + ' remaining')
|
|
3927
3927
|
)
|
|
3928
3928
|
),
|
|
3929
3929
|
// Progress bar
|
|
3930
3930
|
h('div', { style: { height: 6, background: 'var(--bg-secondary)', borderRadius: 3, overflow: 'hidden' } },
|
|
3931
3931
|
h('div', { style: { height: '100%', borderRadius: 3, transition: 'width 0.3s',
|
|
3932
3932
|
width: progress + '%',
|
|
3933
|
-
background: met ? '#10b981' : progress >= 75 ? '#
|
|
3933
|
+
background: met ? '#10b981' : progress >= 75 ? '#b45309' : progress >= 50 ? '#3b82f6' : '#ef4444'
|
|
3934
3934
|
} })
|
|
3935
3935
|
),
|
|
3936
3936
|
// Stats row
|
|
@@ -4361,9 +4361,9 @@ export function PolymarketPage() {
|
|
|
4361
4361
|
),
|
|
4362
4362
|
|
|
4363
4363
|
// Explainer banner
|
|
4364
|
-
h('div', { className: 'card', style: { padding: 16, marginBottom: 20, background: 'rgba(
|
|
4364
|
+
h('div', { className: 'card', style: { padding: 16, marginBottom: 20, background: 'rgba(180,83,9,0.1)', border: '1px solid rgba(180,83,9,0.3)', borderRadius: 8 } },
|
|
4365
4365
|
h('div', { style: { display: 'flex', gap: 10, alignItems: 'flex-start' } },
|
|
4366
|
-
I('alert-triangle', { style: { color: '#
|
|
4366
|
+
I('alert-triangle', { style: { color: '#b45309', flexShrink: 0 } }),
|
|
4367
4367
|
h('div', null,
|
|
4368
4368
|
h('div', { style: { fontWeight: 700, marginBottom: 4 } }, 'Why do I need this?'),
|
|
4369
4369
|
h('p', { style: { margin: '0 0 8px 0', fontSize: 13, color: 'var(--text-muted)', lineHeight: 1.5 } },
|
|
@@ -4513,7 +4513,7 @@ export function PolymarketPage() {
|
|
|
4513
4513
|
var r = await apiCall('/polymarket/proxy/setup', { method: 'POST', body: JSON.stringify(body) });
|
|
4514
4514
|
if (logEl && r.logs) {
|
|
4515
4515
|
logEl.innerHTML = r.logs.map(function(l) {
|
|
4516
|
-
var color = l.includes('Warning') ? '#
|
|
4516
|
+
var color = l.includes('Warning') ? '#b45309' : l.includes('failed') || l.includes('Failed') ? '#f85149' : '#8b949e';
|
|
4517
4517
|
return '<div style="color:' + color + '">▶ ' + l + '</div>';
|
|
4518
4518
|
}).join('');
|
|
4519
4519
|
}
|
|
@@ -4526,11 +4526,11 @@ export function PolymarketPage() {
|
|
|
4526
4526
|
if (logEl) logEl.innerHTML += '<div style="color:#3fb950;font-weight:bold">Connected! Orders will now route through your proxy.</div>';
|
|
4527
4527
|
toast('All set! Proxy is active.', 'success');
|
|
4528
4528
|
} else {
|
|
4529
|
-
if (logEl) logEl.innerHTML += '<div style="color:#
|
|
4529
|
+
if (logEl) logEl.innerHTML += '<div style="color:#b45309">Setup done but auto-connect failed. Click the Connect button above.</div>';
|
|
4530
4530
|
toast('Setup done! Click Connect above to activate.', 'success');
|
|
4531
4531
|
}
|
|
4532
4532
|
} catch(ce) {
|
|
4533
|
-
if (logEl) logEl.innerHTML += '<div style="color:#
|
|
4533
|
+
if (logEl) logEl.innerHTML += '<div style="color:#b45309">Setup done! Click the Connect button above to activate.</div>';
|
|
4534
4534
|
}
|
|
4535
4535
|
loadProxyStatus();
|
|
4536
4536
|
} else {
|
|
@@ -4566,7 +4566,7 @@ export function PolymarketPage() {
|
|
|
4566
4566
|
// Recommended provider
|
|
4567
4567
|
h('div', { style: { padding: 16, background: 'rgba(16,185,129,0.08)', border: '1px solid rgba(16,185,129,0.25)', borderRadius: 10, marginBottom: 16 } },
|
|
4568
4568
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginBottom: 8 } },
|
|
4569
|
-
I('star', { style: { color: '#
|
|
4569
|
+
I('star', { style: { color: '#b45309' } }),
|
|
4570
4570
|
h('span', { style: { fontWeight: 700, fontSize: 14 } }, 'Recommended: Vultr (Mumbai, India) \u2014 $5/mo')
|
|
4571
4571
|
),
|
|
4572
4572
|
h('a', { href: 'https://www.vultr.com/', target: '_blank', style: { display: 'inline-block', padding: '8px 16px', background: '#6366f1', color: '#fff', borderRadius: 6, textDecoration: 'none', fontWeight: 600, fontSize: 13, marginBottom: 12 } }, 'Sign Up at Vultr \u2192'),
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
provision,
|
|
9
9
|
runSetupWizard
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PZDID3L4.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-
|
|
31
|
+
} from "./chunk-7PHW3GAU.js";
|
|
32
32
|
import "./chunk-CFR5OSMI.js";
|
|
33
33
|
import {
|
|
34
34
|
ValidationError,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requireRole,
|
|
44
44
|
securityHeaders,
|
|
45
45
|
validate
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7LQISMIC.js";
|
|
47
47
|
import "./chunk-DJBCRQTD.js";
|
|
48
48
|
import {
|
|
49
49
|
PROVIDER_REGISTRY,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
init_storage_manager,
|
|
84
84
|
init_tenant,
|
|
85
85
|
init_workforce
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-PPSLXFMX.js";
|
|
87
87
|
import "./chunk-3UAFHUEC.js";
|
|
88
88
|
import {
|
|
89
89
|
ENGINE_TABLES,
|
|
@@ -110,25 +110,25 @@ import {
|
|
|
110
110
|
PRESET_PROFILES,
|
|
111
111
|
PermissionEngine,
|
|
112
112
|
init_skills
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-OSH6KF4V.js";
|
|
114
114
|
import {
|
|
115
115
|
AgentConfigGenerator,
|
|
116
116
|
DeploymentEngine,
|
|
117
117
|
init_agent_config,
|
|
118
118
|
init_deployer
|
|
119
119
|
} from "./chunk-PSZU6FMQ.js";
|
|
120
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-PYEHCZZH.js";
|
|
121
121
|
import "./chunk-X5IZUXDC.js";
|
|
122
122
|
import "./chunk-I5IGHBXW.js";
|
|
123
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-DYLYEMAT.js";
|
|
124
124
|
import {
|
|
125
125
|
SecureVault,
|
|
126
126
|
init_vault
|
|
127
127
|
} from "./chunk-WUAWWKTN.js";
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-TXZWO3T4.js";
|
|
129
|
+
import "./chunk-FDOK2L5M.js";
|
|
130
130
|
import "./chunk-CVFIM72Q.js";
|
|
131
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-HWRM64VJ.js";
|
|
132
132
|
import {
|
|
133
133
|
CircuitBreaker,
|
|
134
134
|
CircuitOpenError,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
generateToolPolicy,
|
|
158
158
|
getToolsBySkill,
|
|
159
159
|
init_tool_catalog
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-TCVD36NA.js";
|
|
161
161
|
import {
|
|
162
162
|
VALID_CATEGORIES,
|
|
163
163
|
VALID_RISK_LEVELS,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
batchScreen,
|
|
3
|
+
fullAnalysis,
|
|
4
|
+
portfolioReview,
|
|
5
|
+
quickAnalysis
|
|
6
|
+
} from "./chunk-TXZWO3T4.js";
|
|
7
|
+
import "./chunk-FDOK2L5M.js";
|
|
8
|
+
import "./chunk-CVFIM72Q.js";
|
|
9
|
+
import "./chunk-KFQGP6VL.js";
|
|
10
|
+
export {
|
|
11
|
+
batchScreen,
|
|
12
|
+
fullAnalysis,
|
|
13
|
+
portfolioReview,
|
|
14
|
+
quickAnalysis
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPolymarketTools,
|
|
3
|
+
executeOrder
|
|
4
|
+
} from "./chunk-PYEHCZZH.js";
|
|
5
|
+
import "./chunk-X5IZUXDC.js";
|
|
6
|
+
import "./chunk-I5IGHBXW.js";
|
|
7
|
+
import "./chunk-DYLYEMAT.js";
|
|
8
|
+
import "./chunk-WUAWWKTN.js";
|
|
9
|
+
import "./chunk-TXZWO3T4.js";
|
|
10
|
+
import "./chunk-FDOK2L5M.js";
|
|
11
|
+
import "./chunk-CVFIM72Q.js";
|
|
12
|
+
import "./chunk-HWRM64VJ.js";
|
|
13
|
+
import "./chunk-KFQGP6VL.js";
|
|
14
|
+
export {
|
|
15
|
+
createPolymarketTools,
|
|
16
|
+
executeOrder
|
|
17
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
autoConnectProxy,
|
|
3
|
+
cancelBracketSibling,
|
|
4
|
+
checkAlerts,
|
|
5
|
+
createBracketAlerts,
|
|
6
|
+
deleteAlert,
|
|
7
|
+
deleteAllAlerts,
|
|
8
|
+
deleteAutoApproveRule,
|
|
9
|
+
deployProxyToVPS,
|
|
10
|
+
ensureSDK,
|
|
11
|
+
generateWallet,
|
|
12
|
+
getAlerts,
|
|
13
|
+
getAutoApproveRules,
|
|
14
|
+
getBracketConfig,
|
|
15
|
+
getCalibration,
|
|
16
|
+
getClobClient,
|
|
17
|
+
getClobUrl,
|
|
18
|
+
getDailyCounter,
|
|
19
|
+
getPaperPositions,
|
|
20
|
+
getPendingTrades,
|
|
21
|
+
getProxyState,
|
|
22
|
+
getResolvedPredictions,
|
|
23
|
+
getSocksAgent,
|
|
24
|
+
getStrategyPerformance,
|
|
25
|
+
getUnresolvedPredictions,
|
|
26
|
+
importSDK,
|
|
27
|
+
incrementDailyCounter,
|
|
28
|
+
initLearningDB,
|
|
29
|
+
initPolymarketDB,
|
|
30
|
+
isPostgresDB,
|
|
31
|
+
isProxyEnabled,
|
|
32
|
+
loadConfig,
|
|
33
|
+
loadProxyConfig,
|
|
34
|
+
loadWalletCredentials,
|
|
35
|
+
logTrade,
|
|
36
|
+
markLessonsExtracted,
|
|
37
|
+
pauseTrading,
|
|
38
|
+
recallLessons,
|
|
39
|
+
recordPrediction,
|
|
40
|
+
resolvePendingTrade,
|
|
41
|
+
resolvePrediction,
|
|
42
|
+
resumeTrading,
|
|
43
|
+
saveAlert,
|
|
44
|
+
saveAutoApproveRule,
|
|
45
|
+
saveConfig,
|
|
46
|
+
savePaperPosition,
|
|
47
|
+
savePendingTrade,
|
|
48
|
+
saveProxyConfig,
|
|
49
|
+
saveWalletCredentials,
|
|
50
|
+
startProxy,
|
|
51
|
+
stopProxy,
|
|
52
|
+
storeLesson
|
|
53
|
+
} from "./chunk-DYLYEMAT.js";
|
|
54
|
+
import "./chunk-WUAWWKTN.js";
|
|
55
|
+
import "./chunk-KFQGP6VL.js";
|
|
56
|
+
export {
|
|
57
|
+
autoConnectProxy,
|
|
58
|
+
cancelBracketSibling,
|
|
59
|
+
checkAlerts,
|
|
60
|
+
createBracketAlerts,
|
|
61
|
+
deleteAlert,
|
|
62
|
+
deleteAllAlerts,
|
|
63
|
+
deleteAutoApproveRule,
|
|
64
|
+
deployProxyToVPS,
|
|
65
|
+
ensureSDK,
|
|
66
|
+
generateWallet,
|
|
67
|
+
getAlerts,
|
|
68
|
+
getAutoApproveRules,
|
|
69
|
+
getBracketConfig,
|
|
70
|
+
getCalibration,
|
|
71
|
+
getClobClient,
|
|
72
|
+
getClobUrl,
|
|
73
|
+
getDailyCounter,
|
|
74
|
+
getPaperPositions,
|
|
75
|
+
getPendingTrades,
|
|
76
|
+
getProxyState,
|
|
77
|
+
getResolvedPredictions,
|
|
78
|
+
getSocksAgent,
|
|
79
|
+
getStrategyPerformance,
|
|
80
|
+
getUnresolvedPredictions,
|
|
81
|
+
importSDK,
|
|
82
|
+
incrementDailyCounter,
|
|
83
|
+
initLearningDB,
|
|
84
|
+
initPolymarketDB,
|
|
85
|
+
isPostgresDB,
|
|
86
|
+
isProxyEnabled,
|
|
87
|
+
loadConfig,
|
|
88
|
+
loadProxyConfig,
|
|
89
|
+
loadWalletCredentials,
|
|
90
|
+
logTrade,
|
|
91
|
+
markLessonsExtracted,
|
|
92
|
+
pauseTrading,
|
|
93
|
+
recallLessons,
|
|
94
|
+
recordPrediction,
|
|
95
|
+
resolvePendingTrade,
|
|
96
|
+
resolvePrediction,
|
|
97
|
+
resumeTrading,
|
|
98
|
+
saveAlert,
|
|
99
|
+
saveAutoApproveRule,
|
|
100
|
+
saveConfig,
|
|
101
|
+
savePaperPosition,
|
|
102
|
+
savePendingTrade,
|
|
103
|
+
saveProxyConfig,
|
|
104
|
+
saveWalletCredentials,
|
|
105
|
+
startProxy,
|
|
106
|
+
stopProxy,
|
|
107
|
+
storeLesson
|
|
108
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
analyzeWithAI,
|
|
3
|
+
controlWatcherEngine,
|
|
4
|
+
createWatcherTools,
|
|
5
|
+
getAIConfig,
|
|
6
|
+
getWatcherEngineStatus,
|
|
7
|
+
initWatcherTables,
|
|
8
|
+
setWatcherRuntime,
|
|
9
|
+
startWatcherEngine,
|
|
10
|
+
stopWatcherEngine
|
|
11
|
+
} from "./chunk-HWRM64VJ.js";
|
|
12
|
+
import "./chunk-KFQGP6VL.js";
|
|
13
|
+
export {
|
|
14
|
+
analyzeWithAI,
|
|
15
|
+
controlWatcherEngine,
|
|
16
|
+
createWatcherTools,
|
|
17
|
+
getAIConfig,
|
|
18
|
+
getWatcherEngineStatus,
|
|
19
|
+
initWatcherTables,
|
|
20
|
+
setWatcherRuntime,
|
|
21
|
+
startWatcherEngine,
|
|
22
|
+
stopWatcherEngine
|
|
23
|
+
};
|