@agenticmail/enterprise 0.5.525 → 0.5.528
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-tools-JLIDLCYB.js +14677 -0
- package/dist/agent-tools-JW2ILLFM.js +14677 -0
- package/dist/chunk-2DT6AIHU.js +7908 -0
- package/dist/chunk-3556ZWOT.js +1728 -0
- package/dist/chunk-5CENM5VB.js +2281 -0
- package/dist/chunk-5EKY6W2K.js +1687 -0
- package/dist/chunk-7OINTHV5.js +5703 -0
- package/dist/chunk-AFVQ2MLV.js +5953 -0
- package/dist/chunk-APNB5LUP.js +6024 -0
- package/dist/chunk-HP63Q326.js +1249 -0
- package/dist/chunk-ILFP55AY.js +1728 -0
- package/dist/chunk-LQ5OYZ7O.js +7908 -0
- package/dist/chunk-MINHAUO7.js +5703 -0
- package/dist/chunk-MKE6LND3.js +1687 -0
- package/dist/chunk-NFUE25E4.js +2281 -0
- package/dist/cli-agent-3BKS4UR7.js +2882 -0
- package/dist/cli-agent-HTPQCEN4.js +2882 -0
- package/dist/cli-serve-HIJZC75J.js +322 -0
- package/dist/cli-serve-R4K2E4ZR.js +322 -0
- package/dist/cli.js +3 -3
- package/dist/dashboard/pages/polymarket.js +100 -13
- package/dist/index.js +7 -7
- package/dist/polymarket-6VEZTYWD.js +17 -0
- package/dist/polymarket-B3YXJIH2.js +17 -0
- package/dist/polymarket-S6BKUPNP.js +7 -0
- package/dist/polymarket-runtime-BDU5OSSJ.js +108 -0
- package/dist/polymarket-runtime-DLFKYZQ2.js +108 -0
- package/dist/polymarket-watcher-PM5ZIVBH.js +23 -0
- package/dist/polymarket-watcher-RZGVLK42.js +23 -0
- package/dist/runtime-ANL77CJQ.js +50 -0
- package/dist/runtime-NYAEU2RB.js +50 -0
- package/dist/server-QIEU6CLS.js +36 -0
- package/dist/server-QUMXSXKX.js +36 -0
- package/dist/setup-C66RQXDO.js +20 -0
- package/dist/setup-Q5TVKSJJ.js +20 -0
- package/dist/system-prompts-S2MYX3MQ.js +69 -0
- package/logs/cloudflared-error.log +46 -0
- package/package.json +1 -1
|
@@ -131,6 +131,7 @@ export function PolymarketPage() {
|
|
|
131
131
|
const [swapAmount, setSwapAmount] = useState('');
|
|
132
132
|
const [swapLoading, setSwapLoading] = useState(false);
|
|
133
133
|
const [swapCountdown, setSwapCountdown] = useState(0);
|
|
134
|
+
const [chartVisible, setChartVisible] = useState(function() { try { return localStorage.getItem('pm_chart_visible') !== 'false'; } catch { return true; } });
|
|
134
135
|
|
|
135
136
|
// Countdown timer during swap
|
|
136
137
|
useEffect(function() {
|
|
@@ -1041,6 +1042,7 @@ export function PolymarketPage() {
|
|
|
1041
1042
|
function renderFilteredTable(tabId, data, emptyMsg, headers, rowFn, opts) {
|
|
1042
1043
|
var clickFn = opts.onRowClick || function(item) { setSelectedRow({ tab: tabId, data: item }); };
|
|
1043
1044
|
var filtered = applySearchFilter(data, tabId, opts.searchFields || [], opts.filters || []);
|
|
1045
|
+
if (opts.sortFn) filtered = filtered.slice().sort(opts.sortFn);
|
|
1044
1046
|
var result = paginateData(filtered, tabId, opts.pageSize);
|
|
1045
1047
|
var hasData = data && data.length > 0;
|
|
1046
1048
|
var s = getTC(tabId);
|
|
@@ -1066,6 +1068,43 @@ export function PolymarketPage() {
|
|
|
1066
1068
|
function renderDetailModal() {
|
|
1067
1069
|
if (!selectedRow) return null;
|
|
1068
1070
|
var d = selectedRow.data;
|
|
1071
|
+
|
|
1072
|
+
// Custom modal for pending orders on a position
|
|
1073
|
+
if (selectedRow.tab === 'pendingForPosition' && d.orders) {
|
|
1074
|
+
return h('div', { className: 'modal-overlay', onClick: function() { setSelectedRow(null); } },
|
|
1075
|
+
h('div', { className: 'modal-content', style: { maxWidth: 560, maxHeight: '80vh', overflow: 'auto' }, onClick: function(e) { e.stopPropagation(); } },
|
|
1076
|
+
h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 } },
|
|
1077
|
+
h('h3', { style: { margin: 0 } }, 'Pending Orders'),
|
|
1078
|
+
h('button', { className: 'btn btn-sm btn-secondary', onClick: function() { setSelectedRow(null); } }, '\u2715')
|
|
1079
|
+
),
|
|
1080
|
+
h('div', { style: { marginBottom: 16, padding: '10px 14px', background: 'var(--bg-secondary)', borderRadius: 8, fontSize: 13 } },
|
|
1081
|
+
h('div', { style: { fontWeight: 600, marginBottom: 4 } }, d.market || 'Position'),
|
|
1082
|
+
h('div', { style: { color: 'var(--text-muted)' } }, 'Filled shares: ', h('strong', null, (d.filled_shares || 0).toFixed(1)),
|
|
1083
|
+
' \u00b7 Pending orders: ', h('strong', null, d.orders.length))
|
|
1084
|
+
),
|
|
1085
|
+
h('table', { className: 'data-table', style: { width: '100%' } },
|
|
1086
|
+
h('thead', null, h('tr', null,
|
|
1087
|
+
h('th', null, 'Side'), h('th', null, 'Outcome'), h('th', null, 'Shares'), h('th', null, 'Price'), h('th', null, 'Cost'), h('th', null, 'Placed')
|
|
1088
|
+
)),
|
|
1089
|
+
h('tbody', null, d.orders.map(function(o, i) {
|
|
1090
|
+
return h('tr', { key: i },
|
|
1091
|
+
h('td', null, sideBadge(o.side)),
|
|
1092
|
+
h('td', null, o.outcome
|
|
1093
|
+
? h('span', { className: 'badge ' + (o.outcome.toLowerCase() === 'yes' ? 'badge-success' : 'badge-danger') }, o.outcome)
|
|
1094
|
+
: '--'),
|
|
1095
|
+
h('td', null, (o.size || 0).toFixed(1)),
|
|
1096
|
+
h('td', null, ((o.price || 0) * 100).toFixed(1) + '\u00a2'),
|
|
1097
|
+
h('td', null, '$' + ((o.price || 0) * (o.size || 0)).toFixed(2)),
|
|
1098
|
+
h('td', { style: { fontSize: 11, color: 'var(--text-muted)' } }, fmtDate(o.created_at))
|
|
1099
|
+
);
|
|
1100
|
+
}))
|
|
1101
|
+
),
|
|
1102
|
+
h('div', { style: { marginTop: 12, fontSize: 12, color: 'var(--text-muted)', fontStyle: 'italic' } },
|
|
1103
|
+
'Total pending capital: $' + d.orders.reduce(function(s, o) { return s + (o.price || 0) * (o.size || 0); }, 0).toFixed(2))
|
|
1104
|
+
)
|
|
1105
|
+
);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1069
1108
|
var title = d.market_question || d.title || d.headline || d.strategy_name || d.strategy ||
|
|
1070
1109
|
d.topic || d.label || d.signal_source || d.category || d.name ||
|
|
1071
1110
|
(d.lesson ? (d.lesson.length > 60 ? d.lesson.slice(0, 60) + '\u2026' : d.lesson) : null) ||
|
|
@@ -1678,9 +1717,20 @@ export function PolymarketPage() {
|
|
|
1678
1717
|
);
|
|
1679
1718
|
})(),
|
|
1680
1719
|
|
|
1681
|
-
// ═══ HEADER P&L CHART (sticky —
|
|
1720
|
+
// ═══ HEADER P&L CHART (sticky — toggle visibility, persisted to localStorage) ═══
|
|
1682
1721
|
h('div', { style: { position: 'sticky', top: 0, zIndex: 20, background: 'var(--bg)', borderBottom: '1px solid var(--border)', padding: 0, marginTop: '-16px' } },
|
|
1683
|
-
|
|
1722
|
+
h('div', { style: { display: 'flex', justifyContent: 'flex-end', padding: '4px 8px 0' } },
|
|
1723
|
+
h('button', {
|
|
1724
|
+
className: 'btn btn-sm',
|
|
1725
|
+
style: { fontSize: 11, padding: '2px 8px', opacity: 0.7 },
|
|
1726
|
+
onClick: function() {
|
|
1727
|
+
var next = !chartVisible;
|
|
1728
|
+
setChartVisible(next);
|
|
1729
|
+
try { localStorage.setItem('pm_chart_visible', String(next)); } catch {}
|
|
1730
|
+
}
|
|
1731
|
+
}, chartVisible ? 'Hide Chart' : 'Show Chart')
|
|
1732
|
+
),
|
|
1733
|
+
chartVisible ? renderLiveChart() : null
|
|
1684
1734
|
),
|
|
1685
1735
|
|
|
1686
1736
|
h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16, flexWrap: 'wrap', gap: 12 } },
|
|
@@ -1879,8 +1929,9 @@ export function PolymarketPage() {
|
|
|
1879
1929
|
h('ul', { style: _ul },
|
|
1880
1930
|
h('li', null, h('strong', null, 'Pending Buy Orders'), ' — Buy orders placed by the agent or awaiting approval before execution.'),
|
|
1881
1931
|
h('li', null, h('strong', null, 'Pending Sell Orders'), ' — Sell orders placed automatically (e.g. stop-loss, take-profit) or manually, awaiting execution.'),
|
|
1882
|
-
h('li', null, h('strong', null, '
|
|
1883
|
-
h('li', null, h('strong', null, '
|
|
1932
|
+
h('li', null, h('strong', null, 'Awaiting fill'), ' — Order is on the exchange, waiting to be matched. No action needed.'),
|
|
1933
|
+
h('li', null, h('strong', null, 'Approve'), ' — (Approval mode only) Executes the trade on Polymarket via the CLOB API.'),
|
|
1934
|
+
h('li', null, h('strong', null, 'Reject'), ' — (Approval mode only) Cancels the trade. The agent learns from rejections.')
|
|
1884
1935
|
),
|
|
1885
1936
|
h('div', { style: _tip }, h('strong', null, 'Tip: '), 'Switch to "autonomous" mode in Config to let the agent trade without approval (within risk limits).')
|
|
1886
1937
|
)
|
|
@@ -1930,14 +1981,18 @@ export function PolymarketPage() {
|
|
|
1930
1981
|
h('td', null, '$' + ((t.price || 0) * (t.size || 0)).toFixed(2)),
|
|
1931
1982
|
h('td', null, h('span', { className: 'badge badge-' + (t.urgency === 'high' ? 'warning' : 'secondary') }, t.urgency || 'normal')),
|
|
1932
1983
|
h('td', null, fmtDate(t.created_at)),
|
|
1933
|
-
h('td', null,
|
|
1934
|
-
h('
|
|
1935
|
-
h('
|
|
1936
|
-
|
|
1984
|
+
h('td', null, t.source === 'placed' || t.status === 'placed'
|
|
1985
|
+
? h('span', { style: { fontSize: 11, color: 'var(--text-muted)', fontStyle: 'italic' } }, 'Awaiting fill')
|
|
1986
|
+
: h('div', { style: { display: "flex", gap: "4px" } },
|
|
1987
|
+
h('button', { className: 'btn btn-sm btn-success', onClick: function() { decideTrade(t.id, 'approve'); } }, I('check')),
|
|
1988
|
+
h('button', { className: 'btn btn-sm btn-danger', onClick: function() { decideTrade(t.id, 'reject'); } }, I('x'))
|
|
1989
|
+
)
|
|
1990
|
+
),
|
|
1937
1991
|
]; },
|
|
1938
1992
|
{ searchFields: ['market_question', 'outcome'], filters: [
|
|
1939
1993
|
{ key: 'side', label: 'Side', options: ['BUY', 'SELL'] },
|
|
1940
|
-
{ key: 'status', label: 'Status', options: ['pending', 'placed'
|
|
1994
|
+
{ key: 'status', label: 'Status', options: ['pending', 'placed'] },
|
|
1995
|
+
{ key: 'source', label: 'Type', options: ['approval', 'placed'] },
|
|
1941
1996
|
{ key: 'urgency', label: 'Urgency', options: ['normal', 'high'] }
|
|
1942
1997
|
]}
|
|
1943
1998
|
)),
|
|
@@ -1993,8 +2048,11 @@ export function PolymarketPage() {
|
|
|
1993
2048
|
{ searchFields: ['market_question', 'token_id', 'outcome'], filters: [
|
|
1994
2049
|
{ key: 'side', label: 'Side', options: ['BUY', 'SELL'] },
|
|
1995
2050
|
{ key: 'outcome', label: 'Outcome', options: ['Yes', 'No'] },
|
|
1996
|
-
{ key: 'status', label: 'Status', options: ['
|
|
1997
|
-
]
|
|
2051
|
+
{ key: 'status', label: 'Status', options: ['filled', 'failed', 'no_wallet', 'cancelled', 'rejected'] }
|
|
2052
|
+
], sortFn: function(a, b) {
|
|
2053
|
+
// Most recent first
|
|
2054
|
+
return new Date(b.created_at || 0).getTime() - new Date(a.created_at || 0).getTime();
|
|
2055
|
+
}}
|
|
1998
2056
|
)),
|
|
1999
2057
|
|
|
2000
2058
|
// ═══ WALLET ═══
|
|
@@ -2070,7 +2128,26 @@ export function PolymarketPage() {
|
|
|
2070
2128
|
? h('span', { className: 'badge ' + (oc.toLowerCase() === 'yes' ? 'badge-success' : oc.toLowerCase() === 'no' ? 'badge-danger' : 'badge-secondary') }, oc)
|
|
2071
2129
|
: h('span', { className: 'text-muted' }, '--')
|
|
2072
2130
|
),
|
|
2073
|
-
h('td', { key: 'sh' }, (
|
|
2131
|
+
h('td', { key: 'sh' }, h('div', { style: { display: 'flex', alignItems: 'center', gap: 4 } },
|
|
2132
|
+
(p.size || 0).toFixed(1),
|
|
2133
|
+
(function() {
|
|
2134
|
+
var pendingForToken = pendingTrades.filter(function(pt) { return pt.token_id === p.token_id && (pt.status === 'placed' || pt.source === 'placed'); });
|
|
2135
|
+
if (!pendingForToken.length) return null;
|
|
2136
|
+
return h('button', {
|
|
2137
|
+
title: pendingForToken.length + ' pending order(s)',
|
|
2138
|
+
style: { background: 'rgba(180,83,9,0.15)', border: '1px solid rgba(180,83,9,0.3)', borderRadius: 4, padding: '1px 5px', cursor: 'pointer', fontSize: 10, color: '#b45309', fontWeight: 600, display: 'inline-flex', alignItems: 'center', gap: 3 },
|
|
2139
|
+
onClick: function(e) {
|
|
2140
|
+
e.stopPropagation();
|
|
2141
|
+
setSelectedRow({ tab: 'pendingForPosition', data: {
|
|
2142
|
+
market: p.market || shortId(p.token_id),
|
|
2143
|
+
token_id: p.token_id,
|
|
2144
|
+
filled_shares: p.size || 0,
|
|
2145
|
+
orders: pendingForToken,
|
|
2146
|
+
}});
|
|
2147
|
+
}
|
|
2148
|
+
}, I('clock'), ' ' + pendingForToken.length);
|
|
2149
|
+
})()
|
|
2150
|
+
)),
|
|
2074
2151
|
h('td', { key: 'e' }, (p.entry * 100).toFixed(1) + '\u00a2'),
|
|
2075
2152
|
h('td', { key: 'c', style: { fontWeight: 600, color: isWon ? '#10b981' : isLost ? '#ef4444' : undefined } },
|
|
2076
2153
|
isWon ? '100.0\u00a2' : isLost ? '0.0\u00a2' : (p.current * 100).toFixed(1) + '\u00a2'
|
|
@@ -2119,7 +2196,17 @@ export function PolymarketPage() {
|
|
|
2119
2196
|
}, sellExecuting === p.token_id ? '...' : 'Sell')
|
|
2120
2197
|
)
|
|
2121
2198
|
];
|
|
2122
|
-
}, {
|
|
2199
|
+
}, { searchFields: ['market', 'outcome', 'token_id'], filters: [
|
|
2200
|
+
{ key: 'side', label: 'Side', options: ['BUY', 'SELL'] },
|
|
2201
|
+
{ key: 'outcome', label: 'Outcome', options: ['Yes', 'No'] },
|
|
2202
|
+
], sortFn: function(a, b) {
|
|
2203
|
+
// Sort by closing date — soonest first
|
|
2204
|
+
var aEnd = a.endDate ? new Date(a.endDate).getTime() : Infinity;
|
|
2205
|
+
var bEnd = b.endDate ? new Date(b.endDate).getTime() : Infinity;
|
|
2206
|
+
if (isNaN(aEnd)) aEnd = Infinity;
|
|
2207
|
+
if (isNaN(bEnd)) bEnd = Infinity;
|
|
2208
|
+
return aEnd - bEnd;
|
|
2209
|
+
}, pageSize: 10 }
|
|
2123
2210
|
)
|
|
2124
2211
|
),
|
|
2125
2212
|
|
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-ILFP55AY.js";
|
|
11
11
|
import {
|
|
12
12
|
AgenticMailManager,
|
|
13
13
|
GoogleEmailProvider,
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
executeTool,
|
|
29
29
|
runAgentLoop,
|
|
30
30
|
toolsToDefinitions
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7OINTHV5.js";
|
|
32
|
+
import "./chunk-HP63Q326.js";
|
|
33
33
|
import {
|
|
34
34
|
ValidationError,
|
|
35
35
|
auditLogger,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requireRole,
|
|
44
44
|
securityHeaders,
|
|
45
45
|
validate
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-LQ5OYZ7O.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-
|
|
120
|
+
import "./chunk-APNB5LUP.js";
|
|
121
121
|
import "./chunk-X5IZUXDC.js";
|
|
122
122
|
import "./chunk-I5IGHBXW.js";
|
|
123
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-MKE6LND3.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-
|
|
131
|
+
import "./chunk-5CENM5VB.js";
|
|
132
132
|
import {
|
|
133
133
|
CircuitBreaker,
|
|
134
134
|
CircuitOpenError,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPolymarketTools,
|
|
3
|
+
executeOrder
|
|
4
|
+
} from "./chunk-APNB5LUP.js";
|
|
5
|
+
import "./chunk-X5IZUXDC.js";
|
|
6
|
+
import "./chunk-I5IGHBXW.js";
|
|
7
|
+
import "./chunk-MKE6LND3.js";
|
|
8
|
+
import "./chunk-WUAWWKTN.js";
|
|
9
|
+
import "./chunk-2CDGYMJK.js";
|
|
10
|
+
import "./chunk-V3LPIDTL.js";
|
|
11
|
+
import "./chunk-A4CX3XQS.js";
|
|
12
|
+
import "./chunk-5CENM5VB.js";
|
|
13
|
+
import "./chunk-KFQGP6VL.js";
|
|
14
|
+
export {
|
|
15
|
+
createPolymarketTools,
|
|
16
|
+
executeOrder
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPolymarketTools,
|
|
3
|
+
executeOrder
|
|
4
|
+
} from "./chunk-AFVQ2MLV.js";
|
|
5
|
+
import "./chunk-X5IZUXDC.js";
|
|
6
|
+
import "./chunk-I5IGHBXW.js";
|
|
7
|
+
import "./chunk-5EKY6W2K.js";
|
|
8
|
+
import "./chunk-WUAWWKTN.js";
|
|
9
|
+
import "./chunk-2CDGYMJK.js";
|
|
10
|
+
import "./chunk-V3LPIDTL.js";
|
|
11
|
+
import "./chunk-A4CX3XQS.js";
|
|
12
|
+
import "./chunk-NFUE25E4.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
|
+
flushClobClient,
|
|
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-5EKY6W2K.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
|
+
flushClobClient,
|
|
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,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
autoConnectProxy,
|
|
3
|
+
cancelBracketSibling,
|
|
4
|
+
checkAlerts,
|
|
5
|
+
createBracketAlerts,
|
|
6
|
+
deleteAlert,
|
|
7
|
+
deleteAllAlerts,
|
|
8
|
+
deleteAutoApproveRule,
|
|
9
|
+
deployProxyToVPS,
|
|
10
|
+
ensureSDK,
|
|
11
|
+
flushClobClient,
|
|
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-MKE6LND3.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
|
+
flushClobClient,
|
|
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-5CENM5VB.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
|
+
};
|
|
@@ -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-NFUE25E4.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
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentRuntime,
|
|
3
|
+
EmailChannel,
|
|
4
|
+
FollowUpScheduler,
|
|
5
|
+
SessionManager,
|
|
6
|
+
SubAgentManager,
|
|
7
|
+
ToolRegistry,
|
|
8
|
+
ageStaleMessages,
|
|
9
|
+
callLLM,
|
|
10
|
+
createAgentRuntime,
|
|
11
|
+
createNoopHooks,
|
|
12
|
+
createRuntimeHooks,
|
|
13
|
+
estimateMessageTokens,
|
|
14
|
+
estimateTokens,
|
|
15
|
+
executeTool,
|
|
16
|
+
runAgentLoop,
|
|
17
|
+
toolsToDefinitions,
|
|
18
|
+
truncateToolResults
|
|
19
|
+
} from "./chunk-7OINTHV5.js";
|
|
20
|
+
import "./chunk-HP63Q326.js";
|
|
21
|
+
import {
|
|
22
|
+
PROVIDER_REGISTRY,
|
|
23
|
+
listAllProviders,
|
|
24
|
+
resolveApiKeyForProvider,
|
|
25
|
+
resolveProvider
|
|
26
|
+
} from "./chunk-UF3ZJMJO.js";
|
|
27
|
+
import "./chunk-KFQGP6VL.js";
|
|
28
|
+
export {
|
|
29
|
+
AgentRuntime,
|
|
30
|
+
EmailChannel,
|
|
31
|
+
FollowUpScheduler,
|
|
32
|
+
PROVIDER_REGISTRY,
|
|
33
|
+
SessionManager,
|
|
34
|
+
SubAgentManager,
|
|
35
|
+
ToolRegistry,
|
|
36
|
+
ageStaleMessages,
|
|
37
|
+
callLLM,
|
|
38
|
+
createAgentRuntime,
|
|
39
|
+
createNoopHooks,
|
|
40
|
+
createRuntimeHooks,
|
|
41
|
+
estimateMessageTokens,
|
|
42
|
+
estimateTokens,
|
|
43
|
+
executeTool,
|
|
44
|
+
listAllProviders,
|
|
45
|
+
resolveApiKeyForProvider,
|
|
46
|
+
resolveProvider,
|
|
47
|
+
runAgentLoop,
|
|
48
|
+
toolsToDefinitions,
|
|
49
|
+
truncateToolResults
|
|
50
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentRuntime,
|
|
3
|
+
EmailChannel,
|
|
4
|
+
FollowUpScheduler,
|
|
5
|
+
SessionManager,
|
|
6
|
+
SubAgentManager,
|
|
7
|
+
ToolRegistry,
|
|
8
|
+
ageStaleMessages,
|
|
9
|
+
callLLM,
|
|
10
|
+
createAgentRuntime,
|
|
11
|
+
createNoopHooks,
|
|
12
|
+
createRuntimeHooks,
|
|
13
|
+
estimateMessageTokens,
|
|
14
|
+
estimateTokens,
|
|
15
|
+
executeTool,
|
|
16
|
+
runAgentLoop,
|
|
17
|
+
toolsToDefinitions,
|
|
18
|
+
truncateToolResults
|
|
19
|
+
} from "./chunk-MINHAUO7.js";
|
|
20
|
+
import "./chunk-R3LFL3TN.js";
|
|
21
|
+
import {
|
|
22
|
+
PROVIDER_REGISTRY,
|
|
23
|
+
listAllProviders,
|
|
24
|
+
resolveApiKeyForProvider,
|
|
25
|
+
resolveProvider
|
|
26
|
+
} from "./chunk-UF3ZJMJO.js";
|
|
27
|
+
import "./chunk-KFQGP6VL.js";
|
|
28
|
+
export {
|
|
29
|
+
AgentRuntime,
|
|
30
|
+
EmailChannel,
|
|
31
|
+
FollowUpScheduler,
|
|
32
|
+
PROVIDER_REGISTRY,
|
|
33
|
+
SessionManager,
|
|
34
|
+
SubAgentManager,
|
|
35
|
+
ToolRegistry,
|
|
36
|
+
ageStaleMessages,
|
|
37
|
+
callLLM,
|
|
38
|
+
createAgentRuntime,
|
|
39
|
+
createNoopHooks,
|
|
40
|
+
createRuntimeHooks,
|
|
41
|
+
estimateMessageTokens,
|
|
42
|
+
estimateTokens,
|
|
43
|
+
executeTool,
|
|
44
|
+
listAllProviders,
|
|
45
|
+
resolveApiKeyForProvider,
|
|
46
|
+
resolveProvider,
|
|
47
|
+
runAgentLoop,
|
|
48
|
+
toolsToDefinitions,
|
|
49
|
+
truncateToolResults
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-2DT6AIHU.js";
|
|
4
|
+
import "./chunk-DJBCRQTD.js";
|
|
5
|
+
import "./chunk-UF3ZJMJO.js";
|
|
6
|
+
import "./chunk-TPL2J2U2.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-K2GKUQSB.js";
|
|
15
|
+
import "./chunk-NCODRQSS.js";
|
|
16
|
+
import "./chunk-PSZU6FMQ.js";
|
|
17
|
+
import "./chunk-AFVQ2MLV.js";
|
|
18
|
+
import "./chunk-X5IZUXDC.js";
|
|
19
|
+
import "./chunk-I5IGHBXW.js";
|
|
20
|
+
import "./chunk-5EKY6W2K.js";
|
|
21
|
+
import "./chunk-WUAWWKTN.js";
|
|
22
|
+
import "./chunk-2CDGYMJK.js";
|
|
23
|
+
import "./chunk-V3LPIDTL.js";
|
|
24
|
+
import "./chunk-A4CX3XQS.js";
|
|
25
|
+
import "./chunk-NFUE25E4.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
|
+
};
|