Skip to content

Commit f4b9b33

Browse files
committed
Squashed commit of the following:
commit 8d99875 Author: Matt <mdrong2@gmail.com> Date: Wed Mar 25 14:19:07 2026 -0500 updated commodities commit a9d77d9 Author: Matt-Drong <mathias.drong@creospan.com> Date: Wed Mar 25 13:44:05 2026 -0500 Squashed commit of the following: commit 53f6d81 Merge: 8c1ea37 5c08355 Author: Calesthio <celesthioailabs@gmail.com> Date: Wed Mar 25 10:21:02 2026 -0700 Merge pull request calesthio#68 from schergr/fix/osint-signal-truncation Fix remaining OSINT signal text truncation commit 5c08355 Author: calesthio <celesthioailabs@gmail.com> Date: Tue Mar 24 18:48:55 2026 -0700 Fix Telegram dedup identity and legacy Markdown escaping commit b7322f1 Author: Greg Scher <greg@212southadvisors.com> Date: Mon Mar 23 13:01:32 2026 -0400 Fix HTML entity decoding and broaden OSINT dedup window - Replace single &calesthio#39; handler with generic numeric/hex entity decoder so &calesthio#39; and other unpadded entities are properly converted - Dedup urgent OSINT posts against all hot memory runs (last 3 sweeps) instead of only the previous sweep, preventing posts that drop out of one sweep from reappearing as "new" in the next Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> commit 31c305c Author: Greg Scher <greg@212southadvisors.com> Date: Mon Mar 23 12:57:37 2026 -0400 Escape Markdown in alert signals and cap OSINT text in ideas prompt Addresses PR review: escape Markdown-sensitive characters in _formatTieredAlert signal bullets to prevent Telegram Bot API rejections, and add a 1500-char budget for URGENT_OSINT in compactSweepForLLM to bound prompt size while keeping full text upstream. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> commit 2d166c2 Author: Greg Scher <greg@212southadvisors.com> Date: Sat Mar 21 12:59:30 2026 -0400 Remove remaining text truncation across delta engine, memory, and ideas The prior fix (753c676) only removed truncation at source ingestion and alert formatting. Signals were still being cut to 120 chars in the delta engine, 80 chars in memory snapshots, and 120 chars in the ideas LLM context — so OSINT posts arrived at the alerter already truncated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> commit 753c676 Author: Greg Scher <greg@212southadvisors.com> Date: Fri Mar 20 16:49:58 2026 -0400 Remove text truncation limits from Telegram posts Posts were being cut to 300 chars (source ingestion) and 150 chars (alert evaluation), losing valuable OSINT context. The sendMessage chunker already handles the 4096-char Telegram API limit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> commit b54ddce Author: Matt <mdrong2@gmail.com> Date: Wed Mar 25 02:22:48 2026 -0500 sure why not
1 parent de2ddcb commit f4b9b33

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

apis/sources/yfinance.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ const SYMBOLS = {
2020
// Commodities
2121
'GC=F': 'Gold',
2222
'SI=F': 'Silver',
23-
'CL=F': 'WTI Crude',
24-
'BZ=F': 'Brent Crude',
25-
'NG=F': 'Natural Gas',
2623
// Crypto
2724
'BTC-USD': 'Bitcoin',
2825
'ETH-USD': 'Ethereum',
@@ -119,7 +116,7 @@ export async function collect() {
119116
},
120117
indexes: pickGroup(quotes, ['SPY', 'QQQ', 'DIA', 'IWM']),
121118
rates: pickGroup(quotes, ['TLT', 'HYG', 'LQD']),
122-
commodities: pickGroup(quotes, ['GC=F', 'SI=F', 'CL=F', 'BZ=F', 'NG=F']),
119+
commodities: pickGroup(quotes, ['GC=F', 'SI=F']),
123120
crypto: pickGroup(quotes, ['BTC-USD', 'ETH-USD']),
124121
volatility: pickGroup(quotes, ['^VIX']),
125122
};

dashboard/public/jarvis.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,8 @@ function renderLower(){
10291029
const indexCards = (mkt.indexes||[]).map(mktCard).join('');
10301030
const cryptoCards = (mkt.crypto||[]).map(mktCard).join('');
10311031
const rateCards = (mkt.rates||[]).map(mktCard).join('');
1032-
const commodityCards = (mkt.commodities || []).map(mktCard).join('');
1033-
const hasMarkets = indexCards || cryptoCards || commodityCards;
1032+
const metalsCards = (mkt.commodities || []).map(mktCard).join('');
1033+
const hasMarkets = indexCards || cryptoCards || metalsCards;
10341034

10351035
const srcHtml=D.health.map(s=>`<div class="src-item"><div class="sd ${s.err?'err':'ok'}"></div><span>${s.n}</span></div>`).join('');
10361036

@@ -1093,14 +1093,15 @@ function renderLower(){
10931093
<div style="font-family:var(--mono);font-size:9px;color:var(--dim);margin-bottom:4px;letter-spacing:1px">INDEXES</div>
10941094
<div class="metrics-row">${indexCards}</div>
10951095
</div>
1096+
<div style="margin-bottom:8px">
1097+
<div style="font-family:var(--mono);font-size:9px;color:var(--dim);margin-bottom:4px;letter-spacing:1px">METALS</div>
1098+
<div class="metrics-row">${metalsCards}</div>
1099+
</div>
10961100
<div style="margin-bottom:8px">
10971101
<div style="font-family:var(--mono);font-size:9px;color:var(--dim);margin-bottom:4px;letter-spacing:1px">CRYPTO</div>
10981102
<div class="metrics-row">${cryptoCards}</div>
10991103
</div>
1100-
<div style="margin-bottom:8px">
1101-
<div style="font-family:var(--mono);font-size:9px;color:var(--dim);margin-bottom:4px;letter-spacing:1px">COMMODITIES</div>
1102-
<div class="metrics-row">${commodityCards}</div>
1103-
</div>`:''}
1104+
`:''}
11041105
<div style="margin-bottom:8px">
11051106
<div style="font-family:var(--mono);font-size:9px;color:var(--dim);margin-bottom:4px;letter-spacing:1px">ENERGY + MACRO</div>
11061107
<div class="metrics-row">${metrics.map(m=>{

lib/alerts/telegram.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class TelegramAlerter {
8181

8282
if (!res.ok) {
8383
const err = await res.text().catch(() => '');
84-
console.error(`[Telegram] Send failed (${res.status}): ${err.substring(0, 200)}`);
84+
console.error(`[Telegram] Send failed (${res.status}): ${err.substring(0, 200)} \n Message: ${message}`);
8585
return lastResult;
8686
}
8787

0 commit comments

Comments
 (0)