Skip to content
Merged

s #90

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
14f3208
fix(api): harden ai chat handshake and concrete failure diagnostics
DarkModder33 Mar 12, 2026
824144f
feat(prod): unify neural pipeline, harden ai handshakes, and remove l…
DarkModder33 Mar 12, 2026
2727f38
chore(release): confirm sessions API handler and redeploy tradehax.net
DarkModder33 Mar 12, 2026
0d4502b
fix(web): remove invalid forced gzip headers causing app load freeze
DarkModder33 Mar 12, 2026
07619f7
feat(web): restore all-in-one landing with music and services hubs
DarkModder33 Mar 12, 2026
bee48c1
fix(ai): block simulator/debug artifact leakage in chat responses
DarkModder33 Mar 12, 2026
6daa4db
chore(api): sync chat endpoint history with deployed guardrail update
DarkModder33 Mar 12, 2026
479be79
feat: wire Supabase API clients, health checks, and deployment docs
DarkModder33 Mar 12, 2026
b5192a0
Automated: push, commit, and deploy all changes for domain and endpoi…
DarkModder33 Mar 13, 2026
d33edb3
Resolve merge conflicts in web/api/sessions/index.ts, web/package.jso…
DarkModder33 Mar 13, 2026
2e4fc3c
Fix Vite 8+ build: CSS @media syntax, terserOptions, and manualChunks…
DarkModder33 Mar 14, 2026
92d7664
Connect old .env.local for endpoints and domain, force add for deploy
DarkModder33 Mar 14, 2026
629cf8f
chore: add all missing .env keys and create Stripe webhook handler fo…
DarkModder33 Mar 14, 2026
130de7e
chore: stage all changes for deployment
DarkModder33 Mar 14, 2026
ff04582
Fix: domain-specific build separation and endpoint corrections
DarkModder33 Mar 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions components/trading/SignalTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const OUTCOME_ICON = {
*/
export function SignalTimeline({ signals }: SignalTimelineProps) {
if (signals.length === 0) {
return <p className="text-xs text-muted-foreground">No similar signals found.</p>;
return <p className="text-xs text-muted-foreground" aria-live="polite">No similar signals found.</p>;
}

return (
Expand All @@ -41,7 +41,8 @@ export function SignalTimeline({ signals }: SignalTimelineProps) {
sig.returnPct >= 0 ? "text-green-400" : "text-red-400";

return (
<div key={sig.id} role="listitem" className="relative flex items-start gap-3">
<div key={sig.id} role="listitem" className="relative flex items-start gap-3" tabIndex={0} aria-label={`Signal ${sig.symbol} ${sig.action} ${date} ${sig.outcome}`}
style={{ outline: 'none' }}>
{/* Timeline dot */}
<div className="absolute -left-3 top-1 w-2 h-2 rounded-full bg-primary border border-background" aria-hidden="true" />

Expand Down
6 changes: 4 additions & 2 deletions lib/trading/tradehax-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
resolveDefaultAdapterId,
} from "@/lib/trading/chain-adapter";

import { SIGNAL_THRESHOLDS } from "../../main/web/src/lib/signal-parameters";

export interface TradeSignal {
symbol: string;
action: "buy" | "sell" | "hold";
Expand Down Expand Up @@ -93,13 +95,13 @@ class TradehaxBot {
}

const lastExecAt = this.lastExecutionAtBySymbol.get(signal.symbol) || 0;
if (Date.now() - lastExecAt < this.config.cooldownPeriod) {
if (Date.now() - lastExecAt < SIGNAL_THRESHOLDS.cooldownPeriodMs) {
console.log(`[TradeHax] Cooldown active for ${signal.symbol}`);
return;
}

// Validate signal confidence
if (signal.confidence < 0.65) {
if (signal.confidence < SIGNAL_THRESHOLDS.minSignalConfidence) {
console.log(`[TradeHax] Signal confidence too low (${signal.confidence})`);
return;
}
Expand Down
70 changes: 70 additions & 0 deletions main/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Version control
.git
.gitignore

# Dependencies
node_modules/
npm-debug.log
yarn-error.log
package-lock.json
yarn.lock

# Build outputs
dist/
build/
.next/
out/

# Environment files (don't include in image)
.env*
!.env.example

# IDE and editor
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# OS files
Thumbs.db
.DS_Store

# Testing
.nyc_output/
coverage/
*.lcov

# Temporary files
tmp/
temp/
*.log

# Docker and deployment
docker-compose.yml
docker-compose.*.yml
Dockerfile*
.dockerignore

# CI/CD
.github/
.gitlab-ci.yml
.circleci/

# Documentation and guides
*.md
*.txt
Documentation/
docs/

# Development scripts and configs
scripts/
*.ps1
*.sh
backup*/
*.bak

# Vercel and platform-specific
.vercel/
.vercelignore
1 change: 1 addition & 0 deletions main/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ logs/


.vercel
.env*.local
Loading
Loading