Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Add arm.html and arm.js for agent automation setup

miniaturizationafc4047d02b8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 48e9803b0..f32dcc195 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-21
+- **Arm your agent — automate Oracle conviction** (`/oracle/arm`) — Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.
- **Docs · Walk Avatar** (`/docs/walk`) — Developer and user documentation for the three.ws walking-avatar system: the /walk page, iframe embeds, the JavaScript SDK, the postMessage event contract, companion mode, analytics, and the Chrome extension.
- **Feed** (`/feed`) — Recent activity from the people and agents you follow on three.ws.
- **Walk** (`/walk`) — Your 3D avatar walks anywhere on the web. Live demos across six environments, a Chrome extension, one-tag embeds, and a global distance leaderboard.
@@ -14,6 +15,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **$THREE holder leaderboard loads faster from a shared snapshot** — The $THREE holder leaderboard, its share card, and the token stats panel used to rescan every holder on-chain on each page view. They now read from a holder snapshot that refreshes every few minutes, so the board and badges load faster and the same numbers stay consistent across all three surfaces. (`/leaderboard`) `[improvement, infra]`
- **Affiliate dashboard now shows who you referred** — The referrals dashboard lists each person you referred with their signup date, the revenue they generated, and the commission you earned — not just totals. (`/dashboard/referrals`) `[improvement]`
- **Agent payments now produce a signed receipt of exactly what was bought** — Autonomous agent-to-agent payments already run under a signed Intent Mandate (your standing authorization with budget and per-call caps). They now also issue a Cart Mandate for each transaction — a tamper-evident, signed record of the exact endpoint paid, the amount, currency, network, and line items, bound to the authorizing mandate. It comes back with every paid call and can be checked by anyone via a new verification endpoint, so a paid service has cryptographic proof of what its caller agreed to. This completes our alignment with Google's Agent Payments Protocol (AP2), layered cleanly on top of x402 settlement. `[feature, sdk]`
+- **Arm your agent gets its own setup page** — Configuring your 3D agent to trade Oracle conviction now has a dedicated page at /oracle/arm — a clean, focused setup laid out the way trading bots do it: a live status bar with a big arm switch, a stats strip, and step-by-step cards for entry rules, position sizing and caps, alerts, and simulate-vs-live mode. The Oracle tab now shows your agent's configuration at a glance and links straight to the full editor. (`/oracle/arm`) `[feature, improvement]`
- **Authorize $THREE once, then pay with no wallet popups** — The $THREE page now lets you set a spending allowance: approve a cap once, and paid actions across the platform — forge, skills, names, cosmetics — debit it automatically without asking you to sign every time. It's non-custodial and built on Solana's native, audited Subscriptions & Allowances program: your tokens stay in your own wallet until a charge pulls them, never more than the cap you set. You can see what your remaining cap covers, get a heads-up when it runs low, top it up, or revoke it in one click anytime. Prefer to sign each payment? Just leave it off. (`/three-token`) `[feature]`
- **Authorize $THREE once, then pay with no wallet popups** — The $THREE page now lets you set a spending allowance: approve a cap once, and paid actions across the platform — forge, skills, names, cosmetics — debit it automatically without asking you to sign every time. It's non-custodial and built on Solana's native, audited Subscriptions & Allowances program: your tokens stay in your own wallet until a charge pulls them, never more than the cap you set, and you can let it expire or revoke it anytime. Set a cap, top it up, or leave it off and keep signing each payment — your choice. (`/three-token`) `[feature]`
- **Avatar Studio: full-spectrum color picker and one-tap Looks** — The Color tab in Avatar Studio is no longer limited to a fixed row of swatches. Tap the rainbow chip on any of skin, hair, or outfit and a real color wheel opens — drag for any hue, slide for brightness, type or paste an exact hex code, or use the eyedropper to sample any color on your screen (where your browser supports it). Every color you pick is remembered in a 'Recent' strip so a palette carries from one part of the avatar to the next, and between sessions. New 'Looks' sit above the colors too: one tap themes skin, hair, and outfit together — Noir, Sunset, Arctic, Cyber, Rosé, Forest, Mono, Ember — and a whole picking session counts as a single undo. The wheel loads only when you open it, so the studio stays fast. (`/avatar-studio`) `[feature, improvement]`
@@ -35,9 +37,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Grind an agent's vanity wallet right on its page — with your CPU cores** — Giving an agent a custom wallet address used to run on our servers, so it was capped at short patterns and would time out and error on anything harder. Now the agent's Wallet → Vanity tab grinds the address in your own browser, exactly like the standalone /vanity-wallet tool: choose how many CPU cores to spend, match case-insensitively for a faster find, watch the live tries-per-second and ETA, and pause or resume anytime. Longer, rarer patterns are now possible with no timeouts. When a match is found, any SOL or tokens in the old wallet are still automatically swept to the new address before the key is swapped — funds are never stranded — and the server verifies the new address truly matches your pattern before storing it. `[fix, feature, improvement]`
- **Hardened on-chain confirmations and faster profile loads** — Two reliability fixes for everyone trading, launching, and browsing. First: every on-chain action that moves funds — coin launches, buys and sells, buybacks, payouts, transfers — now treats a transaction that lands but reverts as a real failure instead of quietly reporting success. You'll see an accurate error and your spending limit won't be charged for a trade that didn't go through. Second: public profile and creator pages are now cacheable at the edge, so they load noticeably faster under load. No action needed — these apply automatically. `[fix, security, improvement]`
- **Imported avatars now animate with correct arm and leg orientation** — Animations are authored on one reference rig and retargeted onto whatever avatar you bring — Mixamo, Ready Player Me, VRoid, and more. We found that limbs on those rigs could play roughly 30° off from where they should be, because the retarget replayed each joint's motion in the wrong frame when a rig's rest pose differed from ours. The retarget now preserves each joint's true world-space motion, so idle, walk, and every other clip drive a foreign rig's arms and legs the way they were animated. Avatars matching the reference rig are byte-for-byte unchanged. `[fix, improvement]`
+- **Launch-and-snipe: atomic dev buy at token launch** — Atomic pump.fun launches can now include a first buy in the very same transaction that creates the token. The creator's buy lands in the same block as the mint — inside one Jito bundle — so no external sniper can wedge in ahead of the floor. Set a buy size and slippage; the funder covers it on top of rent, and the same spend caps apply. `[feature]`
- **Live market feed stays up through provider blips** — The trending-tokens feed that powers the home card, communities, the token constellation, and the 3D visualizer is now resilient to upstream outages. If a market data provider goes down or rate-limits us, we transparently fall back to a second source; if both are briefly unavailable, the surfaces keep showing the last good data (clearly marked as a moment stale) instead of going blank. We also added a fast-fail circuit breaker so a slow provider can't drag the feed down during a traffic spike. Net effect: the live market views stay populated and snappy even when a data provider hiccups. `[infra, improvement]`
- **More reliable on-chain transactions across the platform** — Every on-chain action that moves funds — agent transfers, token launches, buys and sells, creator-fee claims, club and lottery payouts, buybacks, and skill purchases — now goes through one hardened sender. It estimates the right priority fee, automatically re-broadcasts your transaction with a fresh blockhash until it actually lands instead of giving up after one try, and treats a transaction that reverts on-chain as a clear failure rather than a silent success. In practice that means far fewer 'stuck' or dropped transactions when the network is busy, and an honest error (with your funds untouched) when something genuinely can't go through. Nothing to do on your end. `[improvement, fix, infra]`
- **My Collection page now loads** — The /collection page — where your unlocked skills and active subscriptions live — was returning a 404 because its route pointed at the wrong build path, and its subscriptions list was calling an endpoint that rejected the request. Both are fixed: the page loads, your purchased skills and NFT receipts render, and the Subscriptions tab now shows your active creator subscriptions with plan, price, renewal date, and a link to each creator. The marketplace analytics page had the same routing fault and now loads too. (`/collection`) `[fix]`
+- **No more nav flash on page refresh** — Fixed a brief flash of unstyled menu and footer links that could appear when hard-refreshing a page. The shared navigation and footer now wait for their styles to load before appearing. `[fix]`
+- **Oracle gets a monochrome look** — The Oracle page is now styled in a clean grayscale palette. Conviction tiers, pillar bars, wallet labels, and the 3D conviction graph read by brightness instead of color — brighter means stronger — for a calmer, more focused view. (`/oracle`) `[improvement]`
- **Our paid services are properly discoverable by AI agents again** — Every three.ws paid endpoint and MCP tool is published to the x402 discovery indexes (Coinbase's Bazaar, x402scan, agentic.market) so AI agents can find and pay for them automatically. A stray invisible character in the published Solana receiving address was making indexers reject the entire catalog, and our MCP tools weren't flagged as discoverable — both are fixed, service names were tidied to meet listing limits, and we added a checker that catches these issues before they ship. Result: agents can discover and call our services across the ecosystem. `[improvement]`
- **Pay-per-call endpoints accept Solana USDC payments again** — Paying for any x402 endpoint with Solana USDC was failing the moment the wallet tried to build the payment — the platform's receiving address was being published with a stray invisible character, so a correctly-built payment got rejected as going to the wrong recipient. Payment addresses are now cleaned before they're ever advertised, so Solana USDC payments to paid endpoints go through and settle as expected. `[fix]`
- **Pay-what-you-want pricing for skills** — Creators can now price a skill as “pay what you want” with an optional minimum; buyers name their price at checkout and the fee, referral, and revenue math all use the actual amount paid. (`/marketplace`) `[feature]`
diff --git a/data/changelog.json b/data/changelog.json
index b043fa1d6..51bec431d 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,41 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-21",
+ "title": "Arm your agent gets its own setup page",
+ "summary": "Configuring your 3D agent to trade Oracle conviction now has a dedicated page at /oracle/arm — a clean, focused setup laid out the way trading bots do it: a live status bar with a big arm switch, a stats strip, and step-by-step cards for entry rules, position sizing and caps, alerts, and simulate-vs-live mode. The Oracle tab now shows your agent's configuration at a glance and links straight to the full editor.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/oracle/arm"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Launch-and-snipe: atomic dev buy at token launch",
+ "summary": "Atomic pump.fun launches can now include a first buy in the very same transaction that creates the token. The creator's buy lands in the same block as the mint — inside one Jito bundle — so no external sniper can wedge in ahead of the floor. Set a buy size and slippage; the funder covers it on top of rent, and the same spend caps apply.",
+ "tags": [
+ "feature"
+ ]
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Oracle gets a monochrome look",
+ "summary": "The Oracle page is now styled in a clean grayscale palette. Conviction tiers, pillar bars, wallet labels, and the 3D conviction graph read by brightness instead of color — brighter means stronger — for a calmer, more focused view.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/oracle"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "No more nav flash on page refresh",
+ "summary": "Fixed a brief flash of unstyled menu and footer links that could appear when hard-refreshing a page. The shared navigation and footer now wait for their styles to load before appearing.",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-21",
"title": "Pay-what-you-want pricing for skills",
diff --git a/data/pages.json b/data/pages.json
index 5c0284d2c..c9281c08e 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -505,6 +505,14 @@
"changefreq": "realtime",
"added": "2026-06-16"
},
+ {
+ "path": "/oracle/arm",
+ "title": "Arm your agent — automate Oracle conviction",
+ "description": "Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.",
+ "priority": 0.8,
+ "changefreq": "weekly",
+ "added": "2026-06-21"
+ },
{
"path": "/activity",
"title": "Agent Activity — Oracle conviction in real time",
diff --git a/packages/avatar-agent-mcp/src/lib/atomic-launch.js b/packages/avatar-agent-mcp/src/lib/atomic-launch.js
index e47ea7c7e..2378d15f0 100644
--- a/packages/avatar-agent-mcp/src/lib/atomic-launch.js
+++ b/packages/avatar-agent-mcp/src/lib/atomic-launch.js
@@ -1,14 +1,22 @@
// Atomic pump.fun token launch via a Jito bundle.
//
// Ported from nirholas/atomic's fire-jito.js. Two-tx bundle:
-// Tx 1 (funder pays fee + tip): transfer rent SOL to creator + Jito tip
-// Tx 2 (creator pays fee): pump.fun createV2 instruction
+// Tx 1 (funder pays fee + tip): transfer rent (+ optional dev-buy) SOL to
+// creator + Jito tip
+// Tx 2 (creator pays fee): pump.fun createV2 — or, when a dev buy is
+// requested, createV2AndBuy (create + first
+// buy in the SAME instruction set)
//
// Both txs share the same recent blockhash and are submitted as a bundle to
// Jito's mainnet block engine. Either both land or neither does — so no
// MEV searcher can interleave, and the creator wallet doesn't need to hold
// SOL before the launch.
//
+// The optional dev buy is the "launch-and-snipe" path: the creator's first
+// buy executes inside the create transaction, atomically, before the bonding
+// curve is visible to any external sniper. No bot can front-run the floor
+// because there is no block in which the curve exists without our buy in it.
+//
// This is the "real launch" path: the on-chain `creator` field on the mint
// is the creator wallet, not the funder. That matters because pump.fun's
// creator-fee accrual follows the creator key.
@@ -22,6 +30,7 @@ import {
ComputeBudgetProgram,
LAMPORTS_PER_SOL,
} from '@solana/web3.js';
+import BN from 'bn.js';
import FormData from 'form-data';
import { bs58encode, bs58decode, getConnection, keypairFromSecret } from './solana.js';
@@ -92,6 +101,8 @@ export async function atomicLaunch({
creatorSecret,
mintSecret,
rentSol = 0.035,
+ devBuySol = 0,
+ slippageBps = 500,
jitoTipSol = 0.005,
priorityMicroLamports = 2_000_000,
mayhemMode = false,
@@ -101,12 +112,19 @@ export async function atomicLaunch({
if (!symbol) throw new Error('atomicLaunch: symbol is required');
if (!uri) throw new Error('atomicLaunch: uri is required (call uploadPumpMetadata first or pass an existing one)');
- // Spend cap + tip/priority clamps. The funder's outlay is rent + tip; bound
- // each so an injected arg can't drain the funder.
+ // Normalize the dev buy. Anything non-positive means "launch only".
+ devBuySol = Number(devBuySol);
+ if (!Number.isFinite(devBuySol) || devBuySol < 0) devBuySol = 0;
+ const wantDevBuy = devBuySol > 0;
+ slippageBps = Math.min(Math.max(Math.floor(Number(slippageBps) || 0), 1), 10_000);
+
+ // Spend cap + tip/priority clamps. The funder's outlay is rent + dev buy +
+ // tip; bound each so an injected arg can't drain the funder.
jitoTipSol = clampJitoTipSol(jitoTipSol);
priorityMicroLamports = clampPriorityMicroLamports(priorityMicroLamports);
assertSolWithinCap(rentSol, 'pump_launch (creator rent transfer)');
- assertSolWithinCap(rentSol + jitoTipSol, 'pump_launch (funder total outlay)');
+ if (wantDevBuy) assertSolWithinCap(devBuySol, 'pump_launch (creator dev buy)');
+ assertSolWithinCap(rentSol + devBuySol + jitoTipSol, 'pump_launch (funder total outlay)');
const funder = keypairFromSecret(funderSecret);
const creator = keypairFromSecret(creatorSecret);
@@ -116,14 +134,21 @@ export async function atomicLaunch({
// pump-sdk is a CJS module — import dynamically so this file can stay ESM.
const pumpSdkPkg = await import('@nirholas/pump-sdk');
- const PUMP_SDK = pumpSdkPkg.PUMP_SDK || pumpSdkPkg.default?.PUMP_SDK;
+ const mod = pumpSdkPkg.default && Object.keys(pumpSdkPkg).length <= 1 ? pumpSdkPkg.default : pumpSdkPkg;
+ const PUMP_SDK = mod.PUMP_SDK || pumpSdkPkg.PUMP_SDK || pumpSdkPkg.default?.PUMP_SDK;
if (!PUMP_SDK || typeof PUMP_SDK.createV2Instruction !== 'function') {
throw new Error('@nirholas/pump-sdk: PUMP_SDK.createV2Instruction not found in installed version');
}
+ if (wantDevBuy && typeof PUMP_SDK.createV2AndBuyInstructions !== 'function') {
+ throw new Error('@nirholas/pump-sdk: PUMP_SDK.createV2AndBuyInstructions not found — dev buy unsupported in this version');
+ }
const conn = getConnection();
const funderBal = await conn.getBalance(funder.publicKey, 'confirmed');
- const needed = (rentSol + jitoTipSol + 0.002) * LAMPORTS_PER_SOL;
+ // Creator must cover rent + the dev-buy spend; funder covers all of that + tip
+ // + its own fees, with a small headroom for transaction fees on both txs.
+ const creatorTransferSol = rentSol + devBuySol;
+ const needed = (creatorTransferSol + jitoTipSol + 0.002) * LAMPORTS_PER_SOL;
if (funderBal < needed) {
const err = new Error(
`Funder needs >= ${(needed / LAMPORTS_PER_SOL).toFixed(4)} SOL; has ${(funderBal / LAMPORTS_PER_SOL).toFixed(4)} SOL.`,
@@ -141,30 +166,77 @@ export async function atomicLaunch({
instructions: [
ComputeBudgetProgram.setComputeUnitPrice({ microLamports: priorityMicroLamports }),
ComputeBudgetProgram.setComputeUnitLimit({ units: 1000 }),
- SystemProgram.transfer({ fromPubkey: funder.publicKey, toPubkey: creator.publicKey, lamports: Math.floor(rentSol * LAMPORTS_PER_SOL) }),
+ SystemProgram.transfer({ fromPubkey: funder.publicKey, toPubkey: creator.publicKey, lamports: Math.floor(creatorTransferSol * LAMPORTS_PER_SOL) }),
SystemProgram.transfer({ fromPubkey: funder.publicKey, toPubkey: tipAccount, lamports: Math.floor(jitoTipSol * LAMPORTS_PER_SOL) }),
],
}).compileToV0Message();
const tx1 = new VersionedTransaction(tx1Msg);
tx1.sign([funder]);
- const createIx = await PUMP_SDK.createV2Instruction({
- mint: mint.publicKey,
- name,
- symbol,
- uri,
- creator: creator.publicKey,
- user: creator.publicKey,
- mayhemMode,
- cashback,
- });
+ // Tx 2: create — plus, when requested, the creator's first buy in the same
+ // instruction set so it lands atomically with the mint. We quote the curve
+ // from a fresh-token state (no supply / no curve yet) and apply slippage to
+ // the minimum-tokens-out so block-level rounding can't bounce the buy.
+ let tx2Instructions;
+ let devBuyQuote = null;
+ if (wantDevBuy) {
+ const onlineMod = mod.OnlinePumpSdk || pumpSdkPkg.OnlinePumpSdk;
+ const getBuyTokenAmountFromSolAmount = mod.getBuyTokenAmountFromSolAmount || pumpSdkPkg.getBuyTokenAmountFromSolAmount;
+ if (typeof onlineMod !== 'function' || typeof getBuyTokenAmountFromSolAmount !== 'function') {
+ throw new Error('@nirholas/pump-sdk: OnlinePumpSdk / getBuyTokenAmountFromSolAmount not found — dev buy unsupported in this version');
+ }
+ const online = new onlineMod(conn);
+ const [global, feeConfig] = await Promise.all([online.fetchGlobal(), online.fetchFeeConfig()]);
+ const devBuyLamports = new BN(Math.floor(devBuySol * LAMPORTS_PER_SOL));
+ // Fresh token: mintSupply/bondingCurve null → SDK uses the initial curve.
+ const expectedTokens = getBuyTokenAmountFromSolAmount({
+ global,
+ feeConfig,
+ mintSupply: null,
+ bondingCurve: null,
+ amount: devBuyLamports,
+ });
+ const minTokens = expectedTokens.muln(10_000 - slippageBps).divn(10_000);
+ tx2Instructions = await PUMP_SDK.createV2AndBuyInstructions({
+ global,
+ mint: mint.publicKey,
+ name,
+ symbol,
+ uri,
+ creator: creator.publicKey,
+ user: creator.publicKey,
+ amount: minTokens,
+ solAmount: devBuyLamports,
+ mayhemMode,
+ cashback,
+ });
+ devBuyQuote = {
+ devBuySol,
+ slippageBps,
+ expectedTokens: expectedTokens.toString(),
+ minTokensOut: minTokens.toString(),
+ };
+ } else {
+ const createIx = await PUMP_SDK.createV2Instruction({
+ mint: mint.publicKey,
+ name,
+ symbol,
+ uri,
+ creator: creator.publicKey,
+ user: creator.publicKey,
+ mayhemMode,
+ cashback,
+ });
+ tx2Instructions = [createIx];
+ }
+
const tx2Msg = new TransactionMessage({
payerKey: creator.publicKey,
recentBlockhash: blockhash,
instructions: [
ComputeBudgetProgram.setComputeUnitPrice({ microLamports: priorityMicroLamports }),
- ComputeBudgetProgram.setComputeUnitLimit({ units: 300_000 }),
- createIx,
+ ComputeBudgetProgram.setComputeUnitLimit({ units: wantDevBuy ? 380_000 : 300_000 }),
+ ...tx2Instructions,
],
}).compileToV0Message();
const tx2 = new VersionedTransaction(tx2Msg);
@@ -190,6 +262,7 @@ export async function atomicLaunch({
mintSecret: bs58encode(mint.secretKey),
creator: creator.publicKey.toBase58(),
funder: funder.publicKey.toBase58(),
+ devBuy: devBuyQuote,
tx1Signature: sig1,
tx2Signature: sig2,
statuses: wait.statuses,
diff --git a/packages/avatar-agent-mcp/src/tools/pump-launch.js b/packages/avatar-agent-mcp/src/tools/pump-launch.js
index c260ce4f7..351757ead 100644
--- a/packages/avatar-agent-mcp/src/tools/pump-launch.js
+++ b/packages/avatar-agent-mcp/src/tools/pump-launch.js
@@ -6,12 +6,17 @@
// does, so the on-chain `creator` is the creator wallet (not the funder)
// without forcing the creator to hold SOL up front.
//
+// Pass `devBuySol` to launch-and-snipe: the creator's first buy is folded
+// into the create transaction (createV2AndBuy), so it lands atomically with
+// the mint before any external sniper can see the curve. The funder also
+// rent-funds the dev-buy spend in tx1.
+//
// If `uri` is omitted, we upload metadata to pump.fun's IPFS endpoint
// first using the supplied name/symbol/description/socials/imageUrl. This
// makes the tool a one-shot "launch from scratch".
//
// EXECUTION ACTION — creates a real mint on Solana mainnet and pays
-// Jito tips + rent.
+// Jito tips + rent (+ the optional dev buy).
import { z } from 'zod';
@@ -24,7 +29,7 @@ export const def = {
// MCP ToolAnnotations — EXECUTION: moves real value on Solana mainnet, irreversible.
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
description:
- 'Launch a pump.fun token atomically via a Jito bundle. Funder pays its own fee + tip and rent-funds the creator; creator signs createV2 in tx2 — both txs land in the same block or neither does. If uri is omitted, metadata is uploaded to pump.fun IPFS first from name/symbol/description/socials/imageUrl. Returns the mint address, bundle id, both tx signatures, and the pump.fun URL. EXECUTION ACTION — creates a real mint on mainnet.',
+ 'Launch a pump.fun token atomically via a Jito bundle. Funder pays its own fee + tip and rent-funds the creator; creator signs createV2 in tx2 — both txs land in the same block or neither does. Pass devBuySol to launch-and-snipe: the creator first buy is folded into the create tx (createV2AndBuy) so it lands atomically before any sniper sees the curve. If uri is omitted, metadata is uploaded to pump.fun IPFS first from name/symbol/description/socials/imageUrl. Returns the mint address, bundle id, both tx signatures, the dev-buy quote, and the pump.fun URL. EXECUTION ACTION — creates a real mint on mainnet.',
inputSchema: {
name: z.string().min(1).max(32).describe('Token name.'),
symbol: z.string().min(1).max(10).describe('Token symbol (ticker).'),
@@ -38,6 +43,8 @@ export const def = {
imageUrl: z.string().url().optional().describe('Image to upload as the token icon (re-fetched at upload time).'),
mintSecret: z.string().optional().describe('Base58 secret to use as the mint keypair (default: random).'),
rentSol: z.number().min(0).optional().describe('SOL the funder transfers to the creator for tx2 rent + fees (default 0.035).'),
+ devBuySol: z.number().min(0).optional().describe('SOL for an atomic creator dev buy folded into the create tx (launch-and-snipe). Omit or 0 = launch only. Funded by the funder on top of rent.'),
+ slippageBps: z.number().int().min(1).max(10_000).optional().describe('Slippage tolerance for the dev buy in basis points (default 500 = 5%). Only used when devBuySol > 0.'),
jitoTipSol: z.number().min(0).optional().describe('Jito tip in SOL (default 0.005).'),
priorityMicroLamports: z.number().int().min(0).max(20_000_000).optional()
.describe('Compute-unit priority price (default 2_000_000).'),
@@ -72,6 +79,8 @@ export const def = {
creatorSecret: args.creatorSecret,
mintSecret: args.mintSecret,
rentSol: args.rentSol,
+ devBuySol: args.devBuySol,
+ slippageBps: args.slippageBps,
jitoTipSol: args.jitoTipSol,
priorityMicroLamports: args.priorityMicroLamports,
});
diff --git a/pages/arm.html b/pages/arm.html
new file mode 100644
index 000000000..3ac85f77e
--- /dev/null
+++ b/pages/arm.html
@@ -0,0 +1,318 @@
+<!doctype html>
+<html lang="en" data-theme="dark">
+<head>
+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+ <title>Arm your agent — automate Oracle conviction · three.ws</title>
+ <meta name="description" content="Configure your 3D agent to act on Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and alerts, then arm it in simulate or live mode. Every action gets graded against the outcome." />
+ <meta property="og:title" content="Arm your agent · three.ws" />
+ <meta property="og:description" content="Set the rules, arm your 3D agent, and let it trade Oracle conviction from its own custodial Solana wallet — simulate first, go live when you trust it." />
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:url" content="https://three.ws/oracle/arm" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="Arm your agent — automate Oracle conviction" />
+ <meta name="twitter:description" content="Rules, sizing, caps, alerts — then arm. Your 3D agent acts the instant a coin clears your bar." />
+ <link rel="canonical" href="https://three.ws/oracle/arm" />
+ <link rel="icon" href="/favicon.ico" />
+ <link rel="stylesheet" href="/nav.css" />
+ <style>
+ :root {
+ --bg: #05060c; --panel: rgba(13,15,23,0.72); --panel-solid: #0c0e16; --line: rgba(255,255,255,0.09);
+ --ink: #eaeefa; --muted: #8a92a8; --faint: rgba(255,255,255,0.45);
+ --cyan: #cdd2e0; --violet: #a6acbc; --gold: #c4c9d6; --up: #e4e8f2; --down: #6c7280; --amber: #b6bcca;
+ --accent: #cdd2e0; --stroke-strong: rgba(255,255,255,0.22);
+ --r: 16px; --r-sm: 11px;
+ --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
+ --shadow: 0 18px 52px -22px rgba(0,0,0,0.86), 0 1px 0 rgba(255,255,255,0.05) inset;
+ --blur: saturate(160%) blur(16px);
+ }
+ * { box-sizing: border-box; }
+ html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
+ font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
+ body { background:
+ radial-gradient(58% 48% at 82% -6%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 70%),
+ radial-gradient(48% 42% at 3% -2%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 66%), var(--bg); }
+ a { color: inherit; text-decoration: none; }
+ button { font: inherit; color: inherit; cursor: pointer; }
+ .wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px 90px; }
+
+ /* hero */
+ .crumb { display: inline-flex; align-items: center; gap: 7px; margin: 30px 0 0; font: 600 12px/1 var(--mono); color: var(--muted); }
+ .crumb a:hover { color: var(--ink); }
+ .hero { padding: 14px 0 18px; }
+ .hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.05; letter-spacing: -0.024em; margin: 8px 0 10px; font-weight: 800; }
+ .hero p { max-width: 680px; font-size: 15px; color: var(--muted); margin: 0; }
+
+ .card { background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
+ border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
+ .card > h3 { margin: 0 0 3px; font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
+ .card .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }
+ .card .stepno { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 700 11px/1 var(--mono);
+ background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); }
+
+ /* control bar — agent + arm status */
+ .control { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin: 6px 0 16px; }
+ .control .agentpick { min-width: 0; }
+ .control .agentpick label { display: block; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 7px; }
+ .control select { width: 100%; max-width: 320px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); padding: 10px 12px; font: 600 14px/1 var(--mono); }
+ .armbox { display: flex; align-items: center; gap: 14px; }
+ .arm-state { text-align: right; }
+ .arm-state .lab { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-weight: 700; font-size: 15px; }
+ .arm-state .sub { font-size: 11.5px; color: var(--muted); max-width: 320px; margin-top: 3px; }
+ .arm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
+ .arm-dot.off { background: var(--muted); }
+ .arm-dot.sim { background: var(--cyan); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent); animation: pulse 1.9s infinite; }
+ .arm-dot.live { background: var(--amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); animation: pulse 1.5s infinite; }
+ @keyframes pulse { 0%{box-shadow:0 0 0 0 currentColor} 70%{box-shadow:0 0 0 8px transparent} 100%{box-shadow:0 0 0 0 transparent} }
+
+ /* stat strip */
+ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0 0 18px; }
+ .stat { background: var(--panel-solid); padding: 13px 16px; }
+ .stat span { display: block; font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
+ .stat-val { font: 800 21px/1 var(--mono); }
+ .stat-val.up { color: var(--up); } .stat-val.dn { color: var(--down); }
+
+ /* layout */
+ .layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
+ .col-config { display: flex; flex-direction: column; gap: 14px; }
+ .col-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; }
+
+ /* fields */
+ .field { margin-bottom: 14px; }
+ .field:last-child { margin-bottom: 0; }
+ .field > label { display: block; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 8px; }
+ .field input, .field select { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); padding: 10px 12px; font: 600 14px/1 var(--mono); }
+ .field input:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--cyan) 60%, transparent); outline-offset: 1px; }
+ .field-hint { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
+ .field-hint a { color: var(--cyan); } .field-hint code { background: rgba(255,255,255,.06); padding: 1px 4px; border-radius: 3px; font-size: 11px; }
+ .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
+ .suffixed { position: relative; }
+ .suffixed .suf { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px/1 var(--mono); color: var(--faint); pointer-events: none; }
+
+ /* segmented control */
+ .seg { display: inline-flex; width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
+ .seg button { flex: 1; padding: 9px 8px; border-radius: 8px; border: none; background: none; color: var(--muted); font: 600 12.5px/1.2 var(--mono); transition: background .16s, color .16s; text-align: center; }
+ .seg button small { display: block; font-size: 10px; color: var(--faint); margin-top: 3px; font-weight: 600; }
+ .seg button.on { background: color-mix(in srgb, var(--cyan) 20%, transparent); color: var(--ink); }
+ .seg button.on small { color: var(--cyan); }
+ .seg.live-on button[data-mode="live"].on { background: color-mix(in srgb, var(--amber) 22%, transparent); }
+ .seg.live-on button[data-mode="live"].on small { color: var(--amber); }
+
+ /* toggles */
+ .toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
+ .toggle:first-of-type { border-top: none; }
+ .toggle .t-lab b { display: block; font-size: 13.5px; }
+ .toggle .t-lab span { font-size: 12px; color: var(--muted); }
+ .sw { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid var(--line); position: relative; transition: background .2s; flex: none; }
+ .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
+ .sw.on { background: var(--up); } .sw.on::after { transform: translateX(20px); }
+ .sw:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
+ /* big arm switch */
+ .sw.xl { width: 64px; height: 34px; }
+ .sw.xl::after { width: 28px; height: 28px; }
+ .sw.xl.on::after { transform: translateX(30px); }
+
+ /* chips */
+ .chips { display: flex; flex-wrap: wrap; gap: 6px; }
+ .cchip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font: 600 12px/1 var(--mono); color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
+ .cchip:hover { color: var(--ink); border-color: var(--stroke-strong); }
+ .cchip.on { border-color: color-mix(in srgb, var(--violet) 50%, var(--line)); color: var(--ink); background: color-mix(in srgb, var(--violet) 15%, transparent); }
+
+ .risk { margin-top: 12px; padding: 11px 13px; border-radius: var(--r-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line); font: 600 12px/1.5 var(--mono); color: var(--muted); }
+
+ /* telegram */
+ .tg-row { display: flex; gap: 6px; align-items: center; }
+ .tg-row input { flex: 1; min-width: 0; font-size: 12px; }
+ .tg-note { display: none; margin-top: 7px; font-size: 11.5px; line-height: 1.4; }
+ .tg-note.ok { color: var(--up); } .tg-note.warn { color: var(--amber); }
+ .opt { font: 600 10px/1 var(--mono); padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
+
+ /* buttons */
+ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
+ background: var(--panel); color: var(--ink); font-weight: 600; font-size: 13.5px; transition: transform .14s, border-color .18s, background .18s; }
+ .btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); }
+ .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
+ .btn.sm { padding: 9px 13px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
+ .btn.primary { width: 100%; padding: 13px; font-size: 14px;
+ background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 26%, var(--panel)), color-mix(in srgb, var(--violet) 26%, var(--panel)));
+ border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); color: #fff; }
+ .btn.primary.dirty { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 60%, transparent); animation: dirtypulse 2s infinite; }
+ @keyframes dirtypulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--cyan) 50%,transparent)} 70%{box-shadow:0 0 0 6px transparent} 100%{box-shadow:0 0 0 0 transparent} }
+ .save-note { font-size: 12px; margin-top: 10px; min-height: 16px; line-height: 1.45; }
+ .save-note.ok { color: var(--up); } .save-note.warn { color: var(--amber); }
+
+ /* ledger */
+ .ledger-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 13px; }
+ .act-wrap { overflow-x: auto; }
+ .act-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
+ .act-table th { padding: 8px 10px; text-align: left; font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
+ .act-row td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
+ .act-row:last-child td { border-bottom: none; }
+ .act-row[data-outcome="win"] .act-coin { color: var(--up); }
+ .act-row[data-outcome="loss"] .act-coin { color: var(--down); }
+ .act-coin a { color: inherit; font-weight: 600; }
+ .act-coin a:hover { text-decoration: underline; }
+ .act-mono { font-family: var(--mono); }
+ .act-mono.up { color: var(--up); } .act-mono.dn { color: var(--down); }
+ .act-when { color: var(--faint); font-size: 11px; white-space: nowrap; }
+ .act-live { font: 700 9.5px/1 var(--mono); letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
+ .act-sim { font: 700 9.5px/1 var(--mono); letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--faint); }
+ .act-delta { font-size: 10px; margin-left: 4px; font-weight: 700; } .act-delta.up { color: var(--up); } .act-delta.dn { color: var(--down); }
+ .tierpill { font: 700 10px/1 var(--mono); padding: 3px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,0.06); color: var(--muted); }
+ .tp-prime, .tp-strong { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
+ .tp-lean { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
+ .ledger-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); line-height: 1.5; }
+ .ledger-foot a { color: var(--cyan); }
+
+ /* empty / signed-out state */
+ .empty { display: none; text-align: center; padding: 60px 22px; }
+ .empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }
+ .empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; font-size: 14px; }
+
+ .foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.6; }
+
+ @media (max-width: 860px) {
+ .layout { grid-template-columns: 1fr; }
+ .col-side { position: static; }
+ .control { grid-template-columns: 1fr; }
+ .armbox { justify-content: space-between; }
+ .arm-state { text-align: left; } .arm-state .lab { justify-content: flex-start; }
+ .stats { grid-template-columns: repeat(2, 1fr); }
+ }
+ </style>
+</head>
+<body>
+ <header><div id="nav-container"></div></header>
+
+ <main class="wrap">
+ <div class="crumb"><a href="/oracle">← Oracle</a> <span>/</span> <span style="color:var(--ink)">Arm your agent</span></div>
+ <div class="hero">
+ <h1>Arm your agent</h1>
+ <p>Set the rules once. Your 3D agent watches the live Oracle conviction stream and acts the instant a coin clears your bar — buying a small position from its own custodial Solana wallet. Starts in <b>simulate</b> so you can watch it work risk-free, then go live when you trust it.</p>
+ </div>
+
+ <!-- signed-out / no-agent state -->
+ <div class="empty" id="emptyState">
+ <b>Create a 3D agent to arm it</b>
+ <p>Your agent needs its own custodial Solana wallet to act on conviction. Spin one up in the studio — it takes about a minute — then come back here to set its rules.</p>
+ <a class="btn primary" style="display:inline-flex;width:auto;padding:12px 22px" href="/create/studio">Create an agent →</a>
+ </div>
+
+ <!-- control bar -->
+ <div class="card control" id="setup">
+ <div class="agentpick">
+ <label for="agentSel">Agent</label>
+ <select id="agentSel" aria-label="Choose which agent to arm"></select>
+ </div>
+ <div class="armbox">
+ <div class="arm-state">
+ <div class="lab"><span class="arm-dot off" id="armStatusDot"></span><span id="armStatusLab">Disarmed</span></div>
+ <div class="sub" id="armStatusSub">Your agent is idle. Flip the switch to start watching the conviction stream.</div>
+ </div>
+ <div class="sw xl" id="armToggle" role="switch" aria-checked="false" tabindex="0" aria-label="Arm agent"></div>
+ </div>
+ </div>
+
+ <!-- live stats -->
+ <div class="stats" id="statsStrip">
+ <div class="stat"><span>Win rate</span><b class="stat-val" id="statWin">—</b></div>
+ <div class="stat"><span>Realized PnL</span><b class="stat-val" id="statPnl">—</b></div>
+ <div class="stat"><span>Open now</span><b class="stat-val" id="statOpen">—</b></div>
+ <div class="stat"><span>Total acts</span><b class="stat-val" id="statTotal">—</b></div>
+ </div>
+
+ <div class="layout">
+ <!-- configuration -->
+ <div class="col-config">
+ <div class="card">
+ <h3><span class="stepno">1</span> Entry rules</h3>
+ <p class="sub">When should your agent buy? Only plays that clear every rule below get acted on.</p>
+ <div class="field">
+ <label>Minimum conviction</label>
+ <div class="seg" id="convSeg" role="group" aria-label="Minimum conviction">
+ <button type="button" data-min="86">Prime<small>≥ 86</small></button>
+ <button type="button" data-min="72" class="on">Strong+<small>≥ 72</small></button>
+ <button type="button" data-min="56">Lean+<small>≥ 56</small></button>
+ </div>
+ </div>
+ <div class="toggle">
+ <div class="t-lab"><b>Require smart money in</b><span>Only act if ≥1 proven wallet has already bought</span></div>
+ <div class="sw on" id="smartToggle" role="switch" aria-checked="true" tabindex="0" aria-label="Require smart money"></div>
+ </div>
+ <div class="field" style="margin-top:14px">
+ <label>Only these narratives <span style="text-transform:none;letter-spacing:0;color:var(--muted)">— none selected = any</span></label>
+ <div class="chips" id="catChips"></div>
+ </div>
+ </div>
+
+ <div class="card">
+ <h3><span class="stepno">2</span> Position sizing &amp; risk</h3>
+ <p class="sub">How much to commit, and the hard caps your agent can never cross.</p>
+ <div class="row2">
+ <div class="field"><label>Size / trade</label>
+ <div class="suffixed"><input id="fSize" type="number" min="0.001" step="0.01" value="0.05"><span class="suf">SOL</span></div>
+ </div>
+ <div class="field"><label>Max open positions</label><input id="fOpen" type="number" min="1" step="1" value="5"></div>
+ </div>
+ <div class="field"><label>Max spend / day</label>
+ <div class="suffixed"><input id="fDaily" type="number" min="0.01" step="0.05" value="0.5"><span class="suf">SOL</span></div>
+ </div>
+ <div class="toggle">
+ <div class="t-lab"><b>Scale size by conviction</b><span id="scaleSub">Off — every qualifying play uses the same size</span></div>
+ <div class="sw" id="scaleToggle" role="switch" aria-checked="false" tabindex="0" aria-label="Scale size by conviction"></div>
+ </div>
+ <div class="risk" id="riskSummary">Set a per-trade size and daily cap to see your exposure.</div>
+ </div>
+
+ <div class="card">
+ <h3><span class="stepno">3</span> Alerts <span class="opt">optional</span></h3>
+ <p class="sub">Get a personal Telegram ping whenever a coin crosses your threshold — armed or not.</p>
+ <div class="field">
+ <label>Telegram chat ID or @channel</label>
+ <div class="tg-row">
+ <input id="tgInput" type="text" placeholder="Your chat ID or @channel" autocomplete="off">
+ <button id="tgTest" class="btn sm" type="button">Send test</button>
+ </div>
+ <div class="tg-note" id="tgNote"></div>
+ <div class="field-hint">Chat <a href="https://t.me/three_ws_bot" target="_blank" rel="noopener">@three_ws_bot</a> and send <code>/start</code> to get your chat ID.</div>
+ </div>
+ </div>
+ </div>
+
+ <!-- side: mode + save + ledger -->
+ <div class="col-side">
+ <div class="card">
+ <h3><span class="stepno">4</span> Mode &amp; arm</h3>
+ <p class="sub">Simulate logs every play risk-free. Live spends real SOL from the agent wallet, capped by your limits.</p>
+ <div class="field">
+ <label>Execution mode</label>
+ <div class="seg" id="modeSeg" role="group" aria-label="Execution mode">
+ <button type="button" data-mode="simulate" class="on">Simulate<small>spends nothing</small></button>
+ <button type="button" data-mode="live">Live<small>real SOL, capped</small></button>
+ </div>
+ </div>
+ <button class="btn primary" id="saveBtn" style="margin-top:6px">Save configuration</button>
+ <div class="save-note" id="saveNote"></div>
+ </div>
+
+ <div class="card" id="ledgerCard">
+ <h3>Recent actions</h3>
+ <p class="sub">Every move your agent makes — simulated or live — lands here and gets graded against the outcome. This is its win-rate ledger.</p>
+ <div id="ledgerBody"><div class="ledger-empty">Sign in and arm an agent to see its actions.</div></div>
+ <div class="ledger-foot">Want the full trading floor across every agent? See <a href="/activity">live agent activity →</a></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="foot">
+ Conviction is a probability, not a promise — nothing here is financial advice. Your agent only ever spends from its own custodial wallet, never your personal one, and never beyond the daily and per-trade caps you set above. Trade small, especially early.
+ </div>
+ </main>
+
+ <script src="/nav.js"></script>
+ <script src="/footer.js"></script>
+ <script type="module" src="/src/arm.js"></script>
+</body>
+</html>
diff --git a/pages/oracle.html b/pages/oracle.html
index f360271da..eb01bfe54 100644
--- a/pages/oracle.html
+++ b/pages/oracle.html
@@ -23,13 +23,15 @@
:root {
--bg: #05060c; --panel: rgba(13,15,23,0.72); --panel-solid: #0c0e16; --line: rgba(255,255,255,0.09);
--ink: #eaeefa; --muted: #8a92a8; --faint: rgba(255,255,255,0.45);
- --cyan: #5fe3ff; --violet: #a07bff; --gold: #fbbf24; --up: #34d399; --down: #f87171; --amber: #ff9d4d;
+ /* monochrome — a single cool-gray ramp; semantics encoded by lightness (brighter = stronger/positive) */
+ --cyan: #cdd2e0; --violet: #a6acbc; --gold: #c4c9d6; --up: #e4e8f2; --down: #6c7280; --amber: #b6bcca;
+ --accent: #cdd2e0; --stroke-strong: rgba(255,255,255,0.22);
--r: 16px; --r-sm: 11px;
--mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
--shadow: 0 18px 52px -22px rgba(0,0,0,0.86), 0 1px 0 rgba(255,255,255,0.05) inset;
--blur: saturate(160%) blur(16px);
/* pillar accents */
- --p-ped: #5fe3ff; --p-str: #34d399; --p-nar: #a07bff; --p-mom: #fbbf24;
+ --p-ped: #d8dce8; --p-str: #b0b6c4; --p-nar: #888ea0; --p-mom: #c2c7d4;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
@@ -46,11 +48,11 @@
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .04em;
text-transform: uppercase; color: var(--cyan); padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
border-radius: 999px; background: color-mix(in srgb, var(--cyan) 9%, transparent); }
- .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.9s infinite; }
+ .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(228,232,242,.55); animation: pulse 1.9s infinite; }
.eyebrow i.off { background: var(--muted); animation: none; }
- @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 7px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
+ @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(228,232,242,.5)} 70%{box-shadow:0 0 0 7px rgba(228,232,242,0)} 100%{box-shadow:0 0 0 0 rgba(228,232,242,0)} }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.04; letter-spacing: -0.026em; margin: 18px 0 12px; font-weight: 800; }
- .hero h1 span { background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
+ .hero h1 span { background: linear-gradient(100deg, var(--ink), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 700px; font-size: 16px; color: var(--muted); margin: 0; }
.statline { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.statline div span { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
@@ -94,9 +96,9 @@
background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.45); font-size: 14px; cursor: pointer;
transition: color .15s, border-color .15s, background .15s; opacity: 0; }
.coin-wrap:hover .oc-watch, .oc-watch.oc-watched, .oc-watch:focus-visible { opacity: 1; }
- .oc-watch.oc-watched { color: var(--accent, #7c83ff); border-color: var(--accent, #7c83ff); background: rgba(124,131,255,.12); }
+ .oc-watch.oc-watched { color: var(--accent, #cdd2e0); border-color: var(--accent, #cdd2e0); background: rgba(207,212,226,.14); }
.oc-watch:hover { color: var(--ink); border-color: var(--stroke-strong, rgba(255,255,255,.2)); }
- .oc-watch:focus-visible { outline: 2px solid var(--accent, #7c83ff); outline-offset: 1px; }
+ .oc-watch:focus-visible { outline: 2px solid var(--accent, #cdd2e0); outline-offset: 1px; }
@media (hover: none) { .oc-watch { opacity: 1; } }
.coin { text-align: left; width: 100%; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
@@ -106,7 +108,7 @@
.coin.flash { animation: flashin .9s ease-out; }
@keyframes flashin { 0% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyan) 70%, transparent); transform: translateY(-6px); } 100% { box-shadow: var(--shadow); } }
.coin-top { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
- .coin-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); border: 1px solid var(--line); display: grid; place-items: center; font: 700 17px/1 var(--mono); color: var(--faint); }
+ .coin-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1a1c24, #0d0e14); border: 1px solid var(--line); display: grid; place-items: center; font: 700 17px/1 var(--mono); color: var(--faint); }
.coin-id { min-width: 0; }
.coin-sym { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-name { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -149,14 +151,14 @@
.lrow { flex: 1; border: 0; background: none; text-align: left; transition: background .16s; cursor: pointer; }
.lrow-wrap:hover .lrow { background: rgba(255,255,255,0.04); }
.lrow-copy { display: flex; align-items: center; justify-content: center; width: 34px; flex-shrink: 0; color: var(--faint); font-size: 14px; text-decoration: none; opacity: 0; transition: opacity .14s, color .14s, background .14s; border-left: 1px solid var(--line); }
- .lrow-wrap:hover .lrow-copy { opacity: 1; color: var(--violet); background: rgba(139,92,246,.06); }
+ .lrow-wrap:hover .lrow-copy { opacity: 1; color: var(--violet); background: rgba(255,255,255,.05); }
.lrow-follow { display: flex; align-items: center; justify-content: center; width: 30px; flex-shrink: 0; color: var(--faint); font-size: 14px; font-weight: 700; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; opacity: 0; transition: opacity .14s, color .14s, background .14s; }
.lrow-wrap:hover .lrow-follow, .lrow-follow[aria-expanded="true"] { opacity: 1; }
- .lrow-follow[aria-expanded="true"] { color: var(--cyan); background: rgba(34,211,238,.07); }
+ .lrow-follow[aria-expanded="true"] { color: var(--cyan); background: rgba(255,255,255,.06); }
.al-entry { border-bottom: 1px solid var(--line); }
.al-entry:last-child { border-bottom: none; }
.al-entry .lrow-wrap { border-bottom: 0; }
- .follow-panel { background: rgba(34,211,238,.04); border-top: 1px solid var(--line); padding: 12px 16px; }
+ .follow-panel { background: rgba(255,255,255,.035); border-top: 1px solid var(--line); padding: 12px 16px; }
.follow-form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.fp-label { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); display: block; margin-bottom: 5px; }
.fp-chat { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); padding: 8px 10px; font: 600 13px/1 var(--mono); outline: none; }
@@ -235,6 +237,18 @@
.cchip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font: 600 12px/1 var(--mono); color: var(--muted); }
.cchip.on { border-color: color-mix(in srgb, var(--violet) 50%, var(--line)); color: var(--ink); background: color-mix(in srgb, var(--violet) 15%, transparent); }
+ /* arm summary (config-at-a-glance; full editor lives on /oracle/arm) */
+ .arm-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 4px 0 14px; }
+ .arm-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
+ .arm-status.arm-sim i { background: var(--cyan); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent); animation: pulse 1.9s infinite; }
+ .arm-status.arm-live i { background: var(--amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); animation: pulse 1.5s infinite; }
+ .arm-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
+ .arm-srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-solid); padding: 9px 12px; }
+ .arm-srow span { font: 600 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
+ .arm-srow b { font: 700 12.5px/1 var(--mono); color: var(--ink); }
+ .arm-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font: 600 12px/1.6 var(--mono); }
+ .arm-tg { margin-top: 12px; font-size: 12px; color: var(--up); }
+
/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; display: none; } .drawer.open { display: block; }
.dr-back { position: absolute; inset: 0; background: rgba(3,4,8,0.68); backdrop-filter: blur(5px); animation: fade .25s; }
@@ -271,7 +285,7 @@
.dr-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.dr-watch { color: var(--faint); }
.dr-watch[aria-pressed="true"] { color: var(--accent); }
- .dr-share { color: var(--amber, #f5a623); }
+ .dr-share { color: var(--amber, #b6bcca); }
/* states + buttons */
.state { padding: 56px 22px; text-align: center; color: var(--muted); }
@@ -305,7 +319,7 @@
.tape-header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line);
font: 600 11px/1 var(--mono); color: var(--muted); background: rgba(255,255,255,0.02); }
.tape-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; transition: background .3s; }
- .tape-dot.live { background: var(--up); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: pulse 1.9s infinite; }
+ .tape-dot.live { background: var(--up); box-shadow: 0 0 0 0 rgba(228,232,242,.5); animation: pulse 1.9s infinite; }
.tape-status { flex: 1; }
.tape-ct { color: var(--faint); }
.tape-list { max-height: 260px; overflow-y: auto; }
@@ -406,7 +420,7 @@
box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .14s, border-color .18s; text-decoration: none; color: inherit; }
.win-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.win-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
- .win-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--faint); flex: none; }
+ .win-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1a1c24, #0d0e14); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--faint); flex: none; }
.win-id { flex: 1; min-width: 0; }
.win-sym { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
@@ -443,7 +457,7 @@
.mv-card.mv-rising { border-left: 3px solid var(--up); }
.mv-card.mv-falling { border-left: 3px solid var(--dn); }
.mv-head { display: flex; align-items: center; gap: 12px; }
- .mv-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--faint); flex: none; }
+ .mv-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1a1c24, #0d0e14); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--faint); flex: none; }
.mv-id { flex: 1; min-width: 0; }
.mv-sym { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
@@ -479,14 +493,14 @@
.hs-card:hover { border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); transform: translateY(-2px); }
.hs-card.active { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--panel)); }
.hs-head { display: flex; align-items: center; gap: 10px; }
- .hs-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); border: 1px solid var(--line); display: grid; place-items: center; font: 700 13px/1 var(--mono); color: var(--faint); flex: none; }
+ .hs-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1a1c24, #0d0e14); border: 1px solid var(--line); display: grid; place-items: center; font: 700 13px/1 var(--mono); color: var(--faint); flex: none; }
.hs-cat { font-weight: 700; font-size: 13px; text-transform: capitalize; }
.hs-avg { font: 700 20px/1 var(--mono); color: var(--cyan); }
.hs-avg-label { font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-top: 1px; }
.hs-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.hs-badge { font: 700 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
- .hs-badge.prime { color: #c4b5fd; border-color: rgba(196,181,253,.25); }
- .hs-badge.strong { color: var(--cyan); border-color: rgba(0,224,196,.18); }
+ .hs-badge.prime { color: #e8ebf2; border-color: rgba(232,235,242,.25); }
+ .hs-badge.strong { color: var(--cyan); border-color: rgba(255,255,255,.16); }
.hs-skel { height: 100px; border-radius: var(--r); background: var(--line); animation: pulse 1.5s ease infinite; }
@media (max-width: 600px) { .hs-wrap { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
</style>
@@ -643,7 +657,7 @@
<div class="apanel">
<div class="card" id="armCard">
<h3>Arm your 3D agent</h3>
- <p class="sub">Your agent watches the live conviction stream and acts the instant a coin clears your bar — buying a small position from its own custodial Solana wallet. Starts in <b>simulate</b> so you can watch it work risk-free before any real spend.</p>
+ <p class="sub">Your agent watches the live conviction stream and acts the instant a coin clears your bar — buying a small position from its own custodial Solana wallet. Set the rules on the full setup page; here's its current configuration at a glance.</p>
<div id="armBody"></div>
</div>
<div class="card">
diff --git a/public/changelog.json b/public/changelog.json
index 8c379786a..c5a96ccf3 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,21 @@
{
- "generated_at": "2026-06-21T08:30:32.877Z",
+ "generated_at": "2026-06-21T08:50:53.678Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-06-21",
+ "type": "launch",
+ "title": "Arm your agent — automate Oracle conviction",
+ "summary": "Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.",
+ "link": "/oracle/arm",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-06-21",
"type": "launch",
@@ -88,6 +98,17 @@
"sdk"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Arm your agent gets its own setup page",
+ "summary": "Configuring your 3D agent to trade Oracle conviction now has a dedicated page at /oracle/arm — a clean, focused setup laid out the way trading bots do it: a live status bar with a big arm switch, a stats strip, and step-by-step cards for entry rules, position sizing and caps, alerts, and simulate-vs-live mode. The Oracle tab now shows your agent's configuration at a glance and links straight to the full editor.",
+ "link": "/oracle/arm",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -315,6 +336,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Launch-and-snipe: atomic dev buy at token launch",
+ "summary": "Atomic pump.fun launches can now include a first buy in the very same transaction that creates the token. The creator's buy lands in the same block as the mint — inside one Jito bundle — so no external sniper can wedge in ahead of the floor. Set a buy size and slippage; the funder covers it on top of rent, and the same spend caps apply.",
+ "link": null,
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -348,6 +379,26 @@
"fix"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "No more nav flash on page refresh",
+ "summary": "Fixed a brief flash of unstyled menu and footer links that could appear when hard-refreshing a page. The shared navigation and footer now wait for their styles to load before appearing.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Oracle gets a monochrome look",
+ "summary": "The Oracle page is now styled in a clean grayscale palette. Conviction tiers, pillar bars, wallet labels, and the 3D conviction graph read by brightness instead of color — brighter means stronger — for a calmer, more focused view.",
+ "link": "/oracle",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 4b9f012c3..1e1f2cb6f 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Arm your agent — automate Oracle conviction</title>
+ <link>https://three.ws/oracle/arm</link>
+ <guid isPermaLink="false">2026-06-21:Arm your agent — automate Oracle conviction</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.</description>
+ </item>
<item>
<title>Docs · Walk Avatar</title>
<link>https://three.ws/docs/walk</link>
@@ -70,6 +78,14 @@
<category>feature</category>
<description>Autonomous agent-to-agent payments already run under a signed Intent Mandate (your standing authorization with budget and per-call caps). They now also issue a Cart Mandate for each transaction — a tamper-evident, signed record of the exact endpoint paid, the amount, currency, network, and line items, bound to the authorizing mandate. It comes back with every paid call and can be checked by anyone via a new verification endpoint, so a paid service has cryptographic proof of what its caller agreed to. This completes our alignment with Google's Agent Payments Protocol (AP2), layered cleanly on top of x402 settlement.</description>
</item>
+ <item>
+ <title>Arm your agent gets its own setup page</title>
+ <link>https://three.ws/oracle/arm</link>
+ <guid isPermaLink="false">2026-06-21:Arm your agent gets its own setup page</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Configuring your 3D agent to trade Oracle conviction now has a dedicated page at /oracle/arm — a clean, focused setup laid out the way trading bots do it: a live status bar with a big arm switch, a stats strip, and step-by-step cards for entry rules, position sizing and caps, alerts, and simulate-vs-live mode. The Oracle tab now shows your agent's configuration at a glance and links straight to the full editor.</description>
+ </item>
<item>
<title>Authorize $THREE once, then pay with no wallet popups</title>
<link>https://three.ws/three-token</link>
@@ -238,6 +254,14 @@
<category>fix</category>
<description>Animations are authored on one reference rig and retargeted onto whatever avatar you bring — Mixamo, Ready Player Me, VRoid, and more. We found that limbs on those rigs could play roughly 30° off from where they should be, because the retarget replayed each joint's motion in the wrong frame when a rig's rest pose differed from ours. The retarget now preserves each joint's true world-space motion, so idle, walk, and every other clip drive a foreign rig's arms and legs the way they were animated. Avatars matching the reference rig are byte-for-byte unchanged.</description>
</item>
+ <item>
+ <title>Launch-and-snipe: atomic dev buy at token launch</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-21:Launch-and-snipe: atomic dev buy at token launch</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Atomic pump.fun launches can now include a first buy in the very same transaction that creates the token. The creator's buy lands in the same block as the mint — inside one Jito bundle — so no external sniper can wedge in ahead of the floor. Set a buy size and slippage; the funder covers it on top of rent, and the same spend caps apply.</description>
+ </item>
<item>
<title>Live market feed stays up through provider blips</title>
<link>https://three.ws/changelog</link>
@@ -262,6 +286,22 @@
<category>fix</category>
<description>The /collection page — where your unlocked skills and active subscriptions live — was returning a 404 because its route pointed at the wrong build path, and its subscriptions list was calling an endpoint that rejected the request. Both are fixed: the page loads, your purchased skills and NFT receipts render, and the Subscriptions tab now shows your active creator subscriptions with plan, price, renewal date, and a link to each creator. The marketplace analytics page had the same routing fault and now loads too.</description>
</item>
+ <item>
+ <title>No more nav flash on page refresh</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-21:No more nav flash on page refresh</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Fixed a brief flash of unstyled menu and footer links that could appear when hard-refreshing a page. The shared navigation and footer now wait for their styles to load before appearing.</description>
+ </item>
+ <item>
+ <title>Oracle gets a monochrome look</title>
+ <link>https://three.ws/oracle</link>
+ <guid isPermaLink="false">2026-06-21:Oracle gets a monochrome look</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The Oracle page is now styled in a clean grayscale palette. Conviction tiers, pillar bars, wallet labels, and the 3D conviction graph read by brightness instead of color — brighter means stronger — for a calmer, more focused view.</description>
+ </item>
<item>
<title>Our paid services are properly discoverable by AI agents again</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index f9385e13c..e3b169bcf 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T08:30:32.851Z",
+ "generated_at": "2026-06-21T08:50:53.667Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -616,6 +616,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/oracle/arm",
+ "title": "Arm your agent — automate Oracle conviction",
+ "description": "Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.",
+ "added": "2026-06-21",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/activity",
"title": "Agent Activity — Oracle conviction in real time",
diff --git a/public/footer.js b/public/footer.js
index 914129415..33a8473ea 100644
--- a/public/footer.js
+++ b/public/footer.js
@@ -3,13 +3,27 @@
// is on the page, fetches /footer.html, injects it, and lazy-loads the
// newsletter wiring + model-viewer module if not already present.
(function () {
+ // Resolves once the stylesheet has loaded so the footer markup is never
+ // injected unstyled (flash-of-unstyled-content on hard refresh). A
+ // JS-inserted <link> loads asynchronously without blocking paint, so the
+ // injected innerHTML must wait on its load event.
function ensureStylesheet(href) {
- if (!document.querySelector(`link[href="${href}"]`)) {
- const link = document.createElement('link');
+ let link = document.querySelector(`link[href="${href}"]`);
+ if (link) {
+ if (link.sheet) return Promise.resolve();
+ return new Promise((resolve) => {
+ link.addEventListener('load', resolve, { once: true });
+ link.addEventListener('error', resolve, { once: true });
+ });
+ }
+ return new Promise((resolve) => {
+ link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
+ link.addEventListener('load', resolve, { once: true });
+ link.addEventListener('error', resolve, { once: true });
document.head.appendChild(link);
- }
+ });
}
function ensureScript({ src, type, attr }) {
@@ -25,11 +39,8 @@
const container = document.getElementById('footer-container');
if (!container) return;
- ensureStylesheet('/footer.css');
-
- fetch('/footer.html')
- .then((r) => r.text())
- .then((html) => {
+ Promise.all([fetch('/footer.html').then((r) => r.text()), ensureStylesheet('/footer.css')])
+ .then(([html]) => {
container.innerHTML = html;
if (container.querySelector('#footer-bot-canvas')) {
diff --git a/public/llms-full.txt b/public/llms-full.txt
index c99fecd19..964453aff 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -376,6 +376,12 @@ URL: https://three.ws/oracle
A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.
+### Arm your agent — automate Oracle conviction
+
+URL: https://three.ws/oracle/arm
+
+Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.
+
### Agent Activity — Oracle conviction in real time
URL: https://three.ws/activity
diff --git a/public/llms.txt b/public/llms.txt
index 386179eab..cd9a9e0b6 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -82,6 +82,7 @@ Experimental features actively shipping. Expect fast iteration.
On-chain features: pay-per-call, token launches, vanity wallets.
- [Oracle — AI Conviction Engine](https://three.ws/oracle): A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.
+- [Arm your agent — automate Oracle conviction](https://three.ws/oracle/arm): Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.
- [Agent Activity — Oracle conviction in real time](https://three.ws/activity): The trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun, live. Filter by tier and mode, track outcomes, and copy the winners.
- [Launch a Coin](https://three.ws/launch): Mint a coin for your 3D AI agent in one flow — pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.
- [Agent Launches](https://three.ws/launches): Live public feed of every coin launched by a three.ws agent — market caps, graduation status, and the agent behind each launch.
diff --git a/public/nav-data.js b/public/nav-data.js
index cb2149ba6..b504306e8 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -187,6 +187,12 @@ export const NAV_GROUPS = [
badgeTone: 'live',
desc: 'One fused conviction score per launch — and arm your agent to act on it',
},
+ {
+ title: 'Arm your agent',
+ href: '/oracle/arm',
+ badge: 'New',
+ desc: 'Set the rules and let your 3D agent trade Oracle conviction — simulate first, then go live',
+ },
{
title: 'Strategy Lab',
href: '/strategy-lab',
diff --git a/public/nav.js b/public/nav.js
index b7b61f08f..633f53a51 100644
--- a/public/nav.js
+++ b/public/nav.js
@@ -125,6 +125,31 @@ function loadFeatureTour() {
document.head.appendChild(s);
}
+// Resolves once /nav.css is loaded so the nav markup is never injected
+// unstyled (the flash-of-unstyled-content seen on hard refresh). A JS-inserted
+// stylesheet loads asynchronously and does not block paint, so the injected
+// innerHTML must wait on the link's load event before it is written.
+function ensureNavStylesheet() {
+ const href = '/nav.css';
+ let link = document.querySelector(`link[href="${href}"]`);
+ if (link) {
+ // Already on the page; resolve immediately if the sheet is parsed.
+ if (link.sheet) return Promise.resolve();
+ return new Promise((resolve) => {
+ link.addEventListener('load', resolve, { once: true });
+ link.addEventListener('error', resolve, { once: true });
+ });
+ }
+ return new Promise((resolve) => {
+ link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.href = href;
+ link.addEventListener('load', resolve, { once: true });
+ link.addEventListener('error', resolve, { once: true });
+ document.head.appendChild(link);
+ });
+}
+
function boot() {
loadFeatureTour();
loadCornerStack();
@@ -135,13 +160,11 @@ function boot() {
loadThemeSwitcher();
const navContainer = document.getElementById('nav-container');
if (!navContainer) return;
- if (!document.querySelector('link[href="/nav.css"]')) {
- const link = document.createElement('link');
- link.rel = 'stylesheet';
- link.href = '/nav.css';
- document.head.appendChild(link);
- }
- Promise.all([fetch('/nav.html').then((response) => response.text()), import('/nav-data.js')])
+ Promise.all([
+ fetch('/nav.html').then((response) => response.text()),
+ import('/nav-data.js'),
+ ensureNavStylesheet(),
+ ])
.then(([html, navData]) => {
navContainer.innerHTML = html;
renderMenus(navContainer, navData);
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 0b6b4c3bf..9abf0375c 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 292 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 293 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 292 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 293 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -522,7 +522,7 @@
<section class="sm-section" id="crypto">
<header>
- <h2>Crypto<span class="sm-count" data-count>50</span></h2>
+ <h2>Crypto<span class="sm-count" data-count>51</span></h2>
<p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p>
</header>
<ul class="sm-list">
@@ -533,6 +533,13 @@
<span class="sm-desc">A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.</span>
</a>
</li>
+ <li>
+ <a href="/oracle/arm">
+ <span class="sm-title">Arm your agent — automate Oracle conviction</span>
+ <span class="sm-path">/oracle/arm</span>
+ <span class="sm-desc">Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.</span>
+ </a>
+ </li>
<li>
<a href="/activity">
<span class="sm-title">Agent Activity — Oracle conviction in real time</span>
diff --git a/snapshots/current/desktop/forge.jpg b/snapshots/current/desktop/forge.jpg
deleted file mode 100644
index a371b1b3c..000000000
Binary files a/snapshots/current/desktop/forge.jpg and /dev/null differ
diff --git a/snapshots/current/desktop/segment.jpg b/snapshots/current/desktop/segment.jpg
deleted file mode 100644
index 5fc7560e6..000000000
Binary files a/snapshots/current/desktop/segment.jpg and /dev/null differ
diff --git a/snapshots/current/index.html b/snapshots/current/index.html
index 61566aeed..f368223b2 100644
--- a/snapshots/current/index.html
+++ b/snapshots/current/index.html
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<title>three.ws — site snapshot 2026-06-11</title>
+<title>three.ws — site snapshot 2026-06-21</title>
<style>
:root { --bg:#0a0a0b; --panel:#141416; --line:#26262b; --fg:#f4f4f5; --mut:#9a9aa3; --accent:#e8e8ea; }
* { box-sizing: border-box; }
@@ -43,7 +43,7 @@
</header>
<main id="main"></main>
<script>
-const DATA = {"capturedAt":"2026-06-11T23:12:49.165Z","date":"2026-06-11","baseUrl":"http://localhost:3457","viewports":["desktop"],"pages":[{"path":"/forge","title":"/forge","section":"Selected","slug":"forge","shots":{"desktop":{"bytes":144849,"navStatus":200}}},{"path":"/segment","title":"/segment","section":"Selected","slug":"segment","shots":{"desktop":{"bytes":123456,"navStatus":200}}}]};
+const DATA = {"capturedAt":"2026-06-21T08:42:21.012Z","date":"2026-06-21","baseUrl":"http://localhost:3000","viewports":["desktop"],"pages":[{"path":"/oracle","title":"/oracle","section":"Selected","slug":"oracle","shots":{"desktop":{"bytes":102285,"navStatus":200}}}]};
let viewport = DATA.viewports.includes('desktop') ? 'desktop' : 'mobile';
let query = '';
const main = document.getElementById('main');
diff --git a/snapshots/current/manifest.json b/snapshots/current/manifest.json
index 0c45c7881..64dcd0468 100644
--- a/snapshots/current/manifest.json
+++ b/snapshots/current/manifest.json
@@ -1,33 +1,21 @@
{
- "capturedAt": "2026-06-11T23:12:49.165Z",
- "date": "2026-06-11",
- "baseUrl": "http://localhost:3457",
+ "capturedAt": "2026-06-21T08:42:21.012Z",
+ "date": "2026-06-21",
+ "baseUrl": "http://localhost:3000",
"viewports": [
"desktop"
],
- "pageCount": 2,
- "capturedCount": 2,
+ "pageCount": 1,
+ "capturedCount": 1,
"pages": [
{
- "path": "/forge",
- "title": "/forge",
+ "path": "/oracle",
+ "title": "/oracle",
"section": "Selected",
- "slug": "forge",
+ "slug": "oracle",
"shots": {
"desktop": {
- "bytes": 144849,
- "navStatus": 200
- }
- }
- },
- {
- "path": "/segment",
- "title": "/segment",
- "section": "Selected",
- "slug": "segment",
- "shots": {
- "desktop": {
- "bytes": 123456,
+ "bytes": 102285,
"navStatus": 200
}
}
diff --git a/src/arm.js b/src/arm.js
new file mode 100644
index 000000000..83ec198f3
--- /dev/null
+++ b/src/arm.js
@@ -0,0 +1,333 @@
+// Arm your agent — standalone automation setup (the trading-bot config surface).
+// Reuses the Oracle watch API: /api/agents, /api/oracle/watch, /api/oracle/test-alert.
+// Self-contained: no imports from oracle.js so this page stands on its own.
+
+const NETWORK = 'mainnet';
+const $ = (s, r = document) => r.querySelector(s);
+const $$ = (s, r = document) => [...r.querySelectorAll(s)];
+
+const CATEGORIES = ['meme', 'tech', 'ai', 'culture', 'community', 'political', 'news', 'animal', 'celebrity', 'utility', 'unknown'];
+
+const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
+const fmtSol = (n) => (n == null ? '—' : `${Number(n) < 0.01 && Number(n) > 0 ? Number(n).toFixed(4) : Number(n).toFixed(2)}◎`);
+const tierPill = (t) => `tp-${t || 'avoid'}`;
+function ago(ts) {
+ if (!ts) return '—';
+ const s = Math.max(0, (Date.now() - new Date(ts).getTime()) / 1000);
+ if (s < 60) return `${Math.floor(s)}s`;
+ if (s < 3600) return `${Math.floor(s / 60)}m`;
+ if (s < 86400) return `${Math.floor(s / 3600)}h`;
+ return `${Math.floor(s / 86400)}d`;
+}
+
+const state = { agents: [], agentId: null, watch: null, minScore: 72 };
+
+async function api(path, opts = {}) {
+ const ctrl = new AbortController();
+ const to = setTimeout(() => ctrl.abort(), opts.timeout || 12000);
+ try {
+ const res = await fetch(path, { credentials: 'include', signal: ctrl.signal, ...opts });
+ const data = await res.json().catch(() => null);
+ return { ok: res.ok, status: res.status, data };
+ } catch {
+ return { ok: false, status: 0, data: null };
+ } finally {
+ clearTimeout(to);
+ }
+}
+
+// ── boot ──────────────────────────────────────────────────────────────────────
+async function boot() {
+ wireStaticControls();
+ const { ok, data } = await api('/api/agents');
+ const agents = ok && data ? (data.agents || data.items || data || []) : [];
+ state.agents = Array.isArray(agents) ? agents : [];
+
+ if (!state.agents.length) {
+ $('#setup').style.display = 'none';
+ $('#statsStrip').style.display = 'none';
+ $('#ledgerCard').style.display = 'none';
+ $('.layout').style.display = 'none';
+ $('#emptyState').style.display = 'block';
+ return;
+ }
+
+ const sel = $('#agentSel');
+ sel.innerHTML = state.agents.map((a) => `<option value="${esc(a.id)}">${esc(a.name || a.id)}</option>`).join('');
+ sel.addEventListener('change', () => loadWatch(sel.value));
+ state.agentId = state.agents[0].id;
+ loadWatch(state.agentId);
+}
+
+// Controls that exist in the static markup (segmented + toggles + chips + buttons).
+function wireStaticControls() {
+ // narrative chips
+ $('#catChips').innerHTML = CATEGORIES.map((c) => `<button type="button" class="cchip" data-cat="${esc(c)}">${esc(c)}</button>`).join('');
+ $('#catChips').addEventListener('click', (e) => {
+ const b = e.target.closest('.cchip');
+ if (b) { b.classList.toggle('on'); markDirty(); }
+ });
+
+ // min-conviction segmented
+ $('#convSeg').addEventListener('click', (e) => {
+ const b = e.target.closest('button[data-min]');
+ if (!b) return;
+ $$('#convSeg button').forEach((x) => x.classList.toggle('on', x === b));
+ state.minScore = Number(b.dataset.min);
+ markDirty();
+ });
+
+ // mode segmented (simulate / live)
+ $('#modeSeg').addEventListener('click', (e) => {
+ const b = e.target.closest('button[data-mode]');
+ if (!b) return;
+ const live = b.dataset.mode === 'live';
+ $$('#modeSeg button').forEach((x) => x.classList.toggle('on', x === b));
+ $('#modeSeg').classList.toggle('live-on', live);
+ updateArmStatus();
+ markDirty();
+ });
+
+ wireSwitch('#smartToggle');
+ wireSwitch('#scaleToggle', renderScaleSub);
+ wireSwitch('#armToggle', updateArmStatus);
+
+ ['#fSize', '#fDaily', '#fOpen'].forEach((s) => $(s).addEventListener('input', () => { renderScaleSub(); renderRisk(); markDirty(); }));
+
+ $('#saveBtn').addEventListener('click', saveWatch);
+ $('#tgTest').addEventListener('click', sendTelegramTest);
+ $('#tgInput').addEventListener('input', markDirty);
+}
+
+function wireSwitch(sel, cb) {
+ const el = $(sel);
+ el.addEventListener('click', () => {
+ const on = !el.classList.contains('on');
+ el.classList.toggle('on', on);
+ el.setAttribute('aria-checked', String(on));
+ markDirty();
+ if (cb) cb(on);
+ });
+}
+function setSwitch(sel, on) { const el = $(sel); el.classList.toggle('on', !!on); el.setAttribute('aria-checked', String(!!on)); }
+function isOn(sel) { return $(sel).classList.contains('on'); }
+
+function markDirty() {
+ const btn = $('#saveBtn');
+ if (btn.dataset.dirty === '1') return;
+ btn.dataset.dirty = '1';
+ btn.classList.add('dirty');
+ $('#saveNote').textContent = '';
+}
+
+// ── derived UI ────────────────────────────────────────────────────────────────
+function modeIsLive() { return $('#modeSeg').classList.contains('live-on'); }
+
+function updateArmStatus() {
+ const armed = isOn('#armToggle');
+ const live = modeIsLive();
+ const dot = $('#armStatusDot');
+ const lab = $('#armStatusLab');
+ const sub = $('#armStatusSub');
+ dot.className = 'arm-dot ' + (armed ? (live ? 'live' : 'sim') : 'off');
+ if (!armed) {
+ lab.textContent = 'Disarmed';
+ sub.textContent = 'Your agent is idle. Flip the switch to start watching the conviction stream.';
+ } else if (live) {
+ lab.textContent = 'Armed · Live';
+ sub.textContent = 'Spending real SOL from the agent wallet when a coin clears your bar — capped by your limits.';
+ } else {
+ lab.textContent = 'Armed · Simulate';
+ sub.textContent = 'Logging every play it would take, risk-free. Outcomes get graded so you can trust it before going live.';
+ }
+}
+
+function renderScaleSub() {
+ const base = Number($('#fSize').value) || 0.05;
+ $('#scaleSub').textContent = isOn('#scaleToggle')
+ ? `${base.toFixed(3)} SOL at your floor → up to ${(base * 1.5).toFixed(3)} SOL at score 100`
+ : 'Off — every qualifying play uses the same size';
+}
+
+function renderRisk() {
+ const size = Number($('#fSize').value) || 0;
+ const daily = Number($('#fDaily').value) || 0;
+ const open = Number($('#fOpen').value) || 0;
+ const trades = size > 0 ? Math.floor(daily / size) : 0;
+ $('#riskSummary').textContent = size > 0 && daily > 0
+ ? `≈ ${trades} ${trades === 1 ? 'buy' : 'buys'}/day max · up to ${fmtSol(daily)} deployed · ${open} position${open === 1 ? '' : 's'} open at once`
+ : 'Set a per-trade size and daily cap to see your exposure.';
+}
+
+// ── load current config ───────────────────────────────────────────────────────
+async function loadWatch(agentId) {
+ state.agentId = agentId;
+ $('#saveNote').textContent = '';
+ const { ok, data } = await api(`/api/oracle/watch?agent_id=${encodeURIComponent(agentId)}&network=${NETWORK}`);
+ const w = ok && data ? data.watch : null;
+ state.watch = w;
+
+ const min = w ? (w.min_score >= 86 ? 86 : w.min_score >= 72 ? 72 : 56) : 72;
+ state.minScore = min;
+ $$('#convSeg button').forEach((b) => b.classList.toggle('on', Number(b.dataset.min) === min));
+
+ $('#fSize').value = w?.per_trade_sol ?? 0.05;
+ $('#fDaily').value = w?.max_daily_sol ?? 0.5;
+ $('#fOpen').value = w?.max_open ?? 5;
+
+ setSwitch('#smartToggle', w ? w.require_smart_money !== false : true);
+ setSwitch('#scaleToggle', !!w?.size_scaling);
+ setSwitch('#armToggle', !!w?.armed);
+
+ const live = w?.mode === 'live';
+ $$('#modeSeg button').forEach((b) => b.classList.toggle('on', (b.dataset.mode === 'live') === live));
+ $('#modeSeg').classList.toggle('live-on', live);
+
+ const cats = new Set(w?.categories || []);
+ $$('#catChips .cchip').forEach((b) => b.classList.toggle('on', cats.has(b.dataset.cat)));
+ $('#tgInput').value = w?.telegram_chat_id || '';
+
+ renderScaleSub();
+ renderRisk();
+ updateArmStatus();
+ $('#saveBtn').dataset.dirty = '0';
+ $('#saveBtn').classList.remove('dirty');
+
+ loadActions(agentId);
+}
+
+async function saveWatch() {
+ const btn = $('#saveBtn');
+ btn.disabled = true; btn.textContent = 'Saving…';
+ const cats = $$('#catChips .cchip.on').map((b) => b.dataset.cat);
+ const min = state.minScore;
+ const payload = {
+ agent_id: state.agentId, network: NETWORK,
+ armed: isOn('#armToggle'),
+ mode: modeIsLive() ? 'live' : 'simulate',
+ min_score: min, min_tier: min >= 86 ? 'prime' : min >= 72 ? 'strong' : 'lean',
+ categories: cats,
+ per_trade_sol: Number($('#fSize').value) || 0.05,
+ max_daily_sol: Number($('#fDaily').value) || 0.5,
+ max_open: Number($('#fOpen').value) || 5,
+ require_smart_money: isOn('#smartToggle'),
+ size_scaling: isOn('#scaleToggle'),
+ telegram_chat_id: ($('#tgInput').value || '').trim() || null,
+ };
+ const { ok, data } = await api('/api/oracle/watch', {
+ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload),
+ });
+ btn.disabled = false; btn.textContent = 'Save configuration';
+ const note = $('#saveNote');
+ if (ok && data?.watch) {
+ state.watch = data.watch;
+ btn.dataset.dirty = '0'; btn.classList.remove('dirty');
+ const tg = data.watch.telegram_chat_id ? ' Telegram alerts active.' : '';
+ note.className = 'save-note ok';
+ note.textContent = data.watch.armed
+ ? `✓ Armed in ${data.watch.mode} mode — your agent is watching the stream.${tg}`
+ : `✓ Saved. Flip “Armed” when you’re ready to start watching.${tg}`;
+ // reflect any server-side clamping
+ $('#fSize').value = data.watch.per_trade_sol;
+ $('#fDaily').value = data.watch.max_daily_sol;
+ $('#fOpen').value = data.watch.max_open;
+ renderRisk();
+ loadActions(state.agentId);
+ } else {
+ note.className = 'save-note warn';
+ note.textContent = data?.error?.message || 'Could not save — sign in and make sure you own this agent.';
+ }
+}
+
+async function sendTelegramTest() {
+ const chatId = ($('#tgInput').value || '').trim();
+ const note = $('#tgNote');
+ note.style.display = 'block';
+ if (!chatId) {
+ note.className = 'tg-note warn';
+ note.textContent = 'Enter your Telegram chat ID or @channel first.';
+ return;
+ }
+ const btn = $('#tgTest');
+ btn.disabled = true; btn.textContent = 'Sending…';
+ const { ok, data } = await api('/api/oracle/test-alert', {
+ method: 'POST', headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ agent_id: state.agentId, chat_id: chatId }),
+ });
+ btn.disabled = false; btn.textContent = 'Send test';
+ if (ok && data?.ok) {
+ note.className = 'tg-note ok';
+ note.textContent = '✓ Test message delivered. Check Telegram.';
+ } else {
+ note.className = 'tg-note warn';
+ note.textContent = (data?.error || 'Delivery failed.') + (data?.hint ? ' ' + data.hint : '');
+ }
+}
+
+// ── activity ledger ───────────────────────────────────────────────────────────
+async function loadActions(agentId) {
+ const body = $('#ledgerBody');
+ const { ok, data } = await api(`/api/oracle/watch?agent_id=${encodeURIComponent(agentId)}&network=${NETWORK}`);
+ const actions = ok && data ? (data.actions || []) : [];
+ const s = (ok && data && data.summary) || null;
+
+ // top stat strip
+ const setStat = (id, val, cls) => { const el = $(id); el.textContent = val; el.className = 'stat-val' + (cls ? ' ' + cls : ''); };
+ if (s && s.total) {
+ setStat('#statWin', s.win_rate == null ? '—' : s.win_rate + '%');
+ setStat('#statPnl', `${s.realized_pnl_sol >= 0 ? '+' : ''}${fmtSol(s.realized_pnl_sol)}`, s.realized_pnl_sol >= 0 ? 'up' : 'dn');
+ setStat('#statOpen', String(s.open ?? 0));
+ setStat('#statTotal', String(s.total));
+ } else {
+ ['#statWin', '#statPnl', '#statOpen', '#statTotal'].forEach((id) => setStat(id, '—'));
+ }
+
+ if (!actions.length) {
+ body.innerHTML = `<div class="ledger-empty">No actions yet — once armed, every buy lands here and gets graded against the outcome in real time.</div>`;
+ return;
+ }
+ const rows = actions.map(actionRow).join('');
+ body.innerHTML = `
+ <div class="act-wrap">
+ <table class="act-table">
+ <thead><tr>
+ <th scope="col">Coin</th><th scope="col">Tier</th><th scope="col">Conv.</th>
+ <th scope="col">Size</th><th scope="col">Outcome</th><th scope="col">PnL</th><th scope="col">When</th>
+ </tr></thead>
+ <tbody>${rows}</tbody>
+ </table>
+ </div>`;
+}
+
+function actionRow(a) {
+ const outcome = a.outcome || 'open';
+ const outCls = outcome === 'win' ? 'up' : outcome === 'loss' ? 'dn' : '';
+ const outLabel = outcome === 'win' ? `✓ Win${a.peak_multiple ? ` · ${Number(a.peak_multiple).toFixed(1)}×` : ''}` : outcome === 'loss' ? '✗ Loss' : 'Open';
+ const pnl = a.realized_pnl_sol != null ? `${Number(a.realized_pnl_sol) >= 0 ? '+' : ''}${fmtSol(a.realized_pnl_sol)}` : '—';
+ const pnlCls = a.realized_pnl_sol != null ? (Number(a.realized_pnl_sol) >= 0 ? 'up' : 'dn') : '';
+ const modeBadge = a.mode === 'live' ? '<span class="act-live">live</span>' : '<span class="act-sim">sim</span>';
+
+ let convCell;
+ if (outcome === 'open' && a.current_score != null) {
+ const entry = Number(a.conviction) || 0;
+ const cur = Number(a.current_score);
+ const delta = cur - entry;
+ const deltaCls = delta > 0 ? 'up' : delta < 0 ? 'dn' : '';
+ const deltaStr = delta !== 0 ? `<span class="act-delta ${deltaCls}">${delta > 0 ? '+' : ''}${delta}</span>` : '';
+ convCell = `<span class="${tierPill(a.current_tier)}" style="padding:1px 4px;font-size:11px">${cur}</span>${deltaStr}`;
+ } else {
+ convCell = a.conviction ?? '—';
+ }
+
+ return `<tr class="act-row" data-outcome="${esc(outcome)}">
+ <td class="act-coin"><a href="https://pump.fun/coin/${esc(a.mint)}" target="_blank" rel="noopener">${esc(a.symbol || (a.mint || '').slice(0, 6))}</a> ${modeBadge}</td>
+ <td><span class="tierpill ${tierPill(a.tier)}">${esc(a.tier || '—')}</span></td>
+ <td class="act-mono">${convCell}</td>
+ <td class="act-mono">${fmtSol(a.size_sol)}</td>
+ <td class="act-mono ${outCls}">${outLabel}</td>
+ <td class="act-mono ${pnlCls}">${pnl}</td>
+ <td class="act-when" title="${esc(a.acted_at || '')}">${ago(a.acted_at)} ago</td>
+ </tr>`;
+}
+
+document.addEventListener('DOMContentLoaded', boot);
diff --git a/src/oracle-graph.js b/src/oracle-graph.js
index bb412b74e..5f196424c 100644
--- a/src/oracle-graph.js
+++ b/src/oracle-graph.js
@@ -36,11 +36,11 @@ import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
// Tier → hex color
const TIER_COLOR = {
- prime: 0xffd700,
- strong: 0x4ad6ff,
- lean: 0x9b5dff,
- watch: 0xffb03b,
- avoid: 0xff3b5c,
+ prime: 0xeceff5,
+ strong: 0xc2c7d4,
+ lean: 0x9aa0b0,
+ watch: 0x8a92a8,
+ avoid: 0x6c7280,
};
const TIER_GLOW = {
prime: 0.9,
@@ -84,7 +84,7 @@ export function mountOracleGraph(canvas, labelContainer) {
const scene = new Scene();
scene.background = new Color(0x05060c);
scene.fog = new FogExp2(0x05060c, 0.012);
- scene.add(new AmbientLight(0x241433, 1.2));
+ scene.add(new AmbientLight(0x24262e, 1.2));
const camera = new PerspectiveCamera(50, W() / H(), 0.1, 500);
camera.position.set(0, 0, 55);
diff --git a/src/oracle.js b/src/oracle.js
index 93267ce74..dc7c4cde9 100644
--- a/src/oracle.js
+++ b/src/oracle.js
@@ -160,9 +160,9 @@ function boot() {
const data = await res.json().catch(() => null);
const items = data?.items || [];
if (!items.length) { closeSearchDrop(); return; }
- const TCOL = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };
+ const TCOL = { prime: '#e8ebf2', strong: '#e4e8f2', lean: '#c4c9d6', watch: '#8a92a8', avoid: '#6c7280' };
_searchDrop.innerHTML = items.map((it) => {
- const col = TCOL[it.tier] || '#94a3b8';
+ const col = TCOL[it.tier] || '#8a92a8';
const label = it.symbol || it.name || it.mint.slice(0, 8);
return `<button class="ms-item" data-mint="${esc(it.mint)}" type="button" aria-label="View ${esc(label)} conviction">
<span class="ms-sym">${esc(label)}</span>
@@ -994,7 +994,7 @@ function moverCardHtml(m) {
const imgSrc = m.image_uri
? `<img class="mv-img" src="${esc(m.image_uri)}" alt="" loading="lazy" onerror="this.style.visibility='hidden'">`
: `<div class="mv-img">${esc((m.symbol || '?')[0])}</div>`;
- const TIER_META = { prime: { color: '#c084fc' }, strong: { color: '#34d399' }, lean: { color: '#fbbf24' }, watch: { color: '#94a3b8' }, avoid: { color: '#f87171' } };
+ const TIER_META = { prime: { color: '#e8ebf2' }, strong: { color: '#e4e8f2' }, lean: { color: '#c4c9d6' }, watch: { color: '#8a92a8' }, avoid: { color: '#6c7280' } };
const tierColor = (TIER_META[tier] || TIER_META.watch).color;
const pil = (val, key) => {
@@ -1383,7 +1383,7 @@ async function loadRelatedCoins(mint, category) {
const related = data.items.filter((it) => it.mint !== mint).slice(0, 3);
if (!related.length) return;
- const TIER_META = { prime: { color: '#c084fc' }, strong: { color: '#34d399' }, lean: { color: '#fbbf24' }, watch: { color: '#94a3b8' }, avoid: { color: '#f87171' } };
+ const TIER_META = { prime: { color: '#e8ebf2' }, strong: { color: '#e4e8f2' }, lean: { color: '#c4c9d6' }, watch: { color: '#8a92a8' }, avoid: { color: '#6c7280' } };
const html = `<div class="dr-sec" style="margin-top:16px">Related · ${esc(category)}</div>
<div style="display:flex;flex-direction:column;gap:6px">
@@ -1513,7 +1513,7 @@ function renderSparkline(points, trend) {
const xs = scores.map((_, i) => PAD + (i / (n - 1)) * (W - PAD * 2));
const ys = scores.map((s) => PAD + (1 - (s - min) / range) * (H - PAD * 2));
const d = xs.map((x, i) => `${i === 0 ? 'M' : 'L'}${x.toFixed(1)},${ys[i].toFixed(1)}`).join(' ');
- const trendColor = trend === 'rising' ? '#34d399' : trend === 'falling' ? '#f87171' : '#94a3b8';
+ const trendColor = trend === 'rising' ? '#e4e8f2' : trend === 'falling' ? '#6c7280' : '#8a92a8';
const trendArrow = trend === 'rising' ? '↑' : trend === 'falling' ? '↓' : '→';
const lastScore = scores[n - 1];
const firstScore = scores[0];
@@ -1550,7 +1550,7 @@ async function loadProofTrades(mint) {
const pct = t.realized_pnl_pct != null ? `+${Math.round(t.realized_pnl_pct)}%` : null;
const pnlSol = t.realized_pnl_sol != null ? `+${t.realized_pnl_sol.toFixed(3)} ◎` : null;
const isPos = (t.realized_pnl_sol ?? 0) >= 0;
- const color = isPos ? 'var(--up, #34d399)' : 'var(--down, #f87171)';
+ const color = isPos ? 'var(--up, #e4e8f2)' : 'var(--down, #6c7280)';
return `<div class="dr-ptrade">
<span class="dr-ptrade-mult" style="color:${color}">${mult || pct || pnlSol || '+?'}</span>
<div class="dr-ptrade-mid">
@@ -1607,13 +1607,16 @@ async function openWallet(wallet) {
<div class="dr-sec">Recent footprint</div>${recent}
<div class="dr-actions" style="margin-top:16px">
<a class="dr-act" href="/trader/${encodeURIComponent(wallet)}" rel="noopener">Trader profile ↗</a>
- <a class="dr-act" href="/trader/${encodeURIComponent(wallet)}#copy" rel="noopener" style="background:rgba(139,92,246,.18);border-color:rgba(139,92,246,.45)">Copy trades →</a>
+ <a class="dr-act" href="/trader/${encodeURIComponent(wallet)}#copy" rel="noopener" style="background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)">Copy trades →</a>
<a class="dr-act solscan" href="${solscan(wallet)}" target="_blank" rel="noopener">Solscan ↗</a>
</div>
`;
}
// ── agent arm panel ──────────────────────────────────────────────────────────
+// Configuration lives on the dedicated /oracle/arm page (the trading-bot setup
+// surface). Here we show a compact status summary + the live action ledger, and
+// hand off to that page to change anything.
async function loadAgentPanel() {
const body = $('#armBody');
body.dataset.loaded = '1';
@@ -1626,174 +1629,48 @@ async function loadAgentPanel() {
<div style="margin-top:16px"><a class="btn" href="/create/studio">Create an agent →</a></div></div>`;
return;
}
- renderArmForm();
-}
-
-function renderArmForm() {
- const body = $('#armBody');
const opts = state.agents.map((a) => `<option value="${esc(a.id)}">${esc(a.name || a.id)}</option>`).join('');
body.innerHTML = `
<div class="field"><label>Agent</label><select id="agSel">${opts}</select></div>
- <div class="row2">
- <div class="field"><label>Min conviction</label><select id="agMin">
- <option value="86">Prime only (≥86)</option>
- <option value="72" selected>Strong+ (≥72)</option>
- <option value="56">Lean+ (≥56)</option>
- </select></div>
- <div class="field"><label>Size / trade (SOL)</label><input id="agSize" type="number" min="0.001" step="0.01" value="0.05"></div>
- </div>
- <div class="row2">
- <div class="field"><label>Max daily (SOL)</label><input id="agDaily" type="number" min="0.01" step="0.05" value="0.5"></div>
- <div class="field"><label>Max open</label><input id="agOpen" type="number" min="1" step="1" value="5"></div>
- </div>
- <div class="field"><label>Only these narratives (none = any)</label>
- <div class="chips" id="agCats">${CATEGORIES.map((c) => `<button type="button" class="cchip" data-cat="${c}">${c}</button>`).join('')}</div>
- </div>
- <div class="toggle">
- <div class="t-lab"><b>Require smart money in</b><span>Only act if ≥1 proven wallet has bought</span></div>
- <div class="sw on" id="agSmart" role="switch" aria-checked="true"></div>
- </div>
- <div class="toggle">
- <div class="t-lab"><b>Scale by conviction</b><span id="agScaleSub">1.0× at min score → up to 1.5× at score 100</span></div>
- <div class="sw" id="agScale" role="switch" aria-checked="false"></div>
- </div>
- <div class="toggle">
- <div class="t-lab"><b>Mode</b><span id="agModeSub">Simulate — logs actions, spends nothing</span></div>
- <div class="sw live" id="agLive" role="switch" aria-checked="false"></div>
- </div>
- <div class="toggle">
- <div class="t-lab"><b id="agArmLab">Armed</b><span>Master switch for this agent</span></div>
- <div class="sw" id="agArm" role="switch" aria-checked="false"></div>
- </div>
- <div class="field" style="margin-top:12px">
- <label>Personal Telegram alerts <span class="chip sm" style="background:rgba(139,92,246,.15);color:#c084fc;border-color:rgba(139,92,246,.35)">optional</span></label>
- <div style="display:flex;gap:6px;align-items:center">
- <input id="agTelegram" type="text" placeholder="Your chat ID or @channel" autocomplete="off" style="font-size:12px;font-family:var(--mono,monospace);flex:1;min-width:0">
- <button id="agTgTest" class="btn sm" style="white-space:nowrap;flex-shrink:0" type="button">Send test</button>
- </div>
- <div id="agTgNote" style="display:none;margin-top:5px;font-size:11.5px;line-height:1.4"></div>
- <div class="field-hint">Chat <a href="https://t.me/three_ws_bot" target="_blank" rel="noopener">@three_ws_bot</a> on Telegram and send <code>/start</code> to get your chat ID. You'll receive a signal whenever a coin crosses your threshold.</div>
- </div>
- <button class="btn primary" id="agSave" style="margin-top:8px">Save configuration</button>
- <div class="note" id="agNote"></div>`;
-
- // toggles
- wireSwitch('#agSmart');
- wireSwitch('#agScale', (on) => {
- const sizeInput = $('#agSize');
- $('#agScaleSub').textContent = on
- ? `${Number(sizeInput?.value || 0.05).toFixed(3)} SOL base → up to ${(Number(sizeInput?.value || 0.05) * 1.5).toFixed(3)} SOL at score 100`
- : '1.0× at min score → up to 1.5× at score 100';
- });
- wireSwitch('#agLive', (on) => { $('#agModeSub').textContent = on ? 'Live — real SOL from the agent wallet (capped)' : 'Simulate — logs actions, spends nothing'; $('#agLive').classList.toggle('on', on); });
- wireSwitch('#agArm');
- $('#agCats').addEventListener('click', (e) => { const b = e.target.closest('.cchip'); if (b) b.classList.toggle('on'); });
+ <div id="armSummary"><div class="state" style="padding:18px 0">Loading configuration…</div></div>
+ <a class="btn primary" href="/oracle/arm" style="margin-top:14px;text-decoration:none">Open full setup →</a>`;
$('#agSel').addEventListener('change', () => loadWatch($('#agSel').value));
- $('#agSave').addEventListener('click', saveWatch);
- $('#agTgTest').addEventListener('click', sendTelegramTest);
-
state.agentId = state.agents[0].id;
loadWatch(state.agentId);
}
-function wireSwitch(sel, cb) {
- const el = $(sel);
- el.addEventListener('click', () => {
- const on = !el.classList.contains('on');
- el.classList.toggle('on', on);
- el.setAttribute('aria-checked', String(on));
- if (cb) cb(on);
- });
+function armSummaryHtml(w) {
+ if (!w) return '<div class="state" style="padding:18px 0">Not configured yet — open the full setup to arm this agent.</div>';
+ const min = w.min_score >= 86 ? 'Prime (≥86)' : w.min_score >= 72 ? 'Strong+ (≥72)' : 'Lean+ (≥56)';
+ const live = w.mode === 'live';
+ const dotCls = !w.armed ? 'off' : live ? 'live' : 'sim';
+ const statusLab = !w.armed ? 'Disarmed' : live ? 'Armed · Live' : 'Armed · Simulate';
+ const cats = (w.categories && w.categories.length) ? w.categories.map((c) => `<span class="cchip on" style="pointer-events:none">${esc(c)}</span>`).join('') : '<span style="color:var(--faint)">any narrative</span>';
+ const row = (k, v) => `<div class="arm-srow"><span>${k}</span><b>${v}</b></div>`;
+ return `
+ <div class="arm-status arm-${dotCls}"><i></i>${esc(statusLab)}</div>
+ <div class="arm-sgrid">
+ ${row('Min conviction', esc(min))}
+ ${row('Size / trade', fmtSol(w.per_trade_sol))}
+ ${row('Max daily', fmtSol(w.max_daily_sol))}
+ ${row('Max open', w.max_open ?? 5)}
+ ${row('Smart money', w.require_smart_money !== false ? 'Required' : 'Optional')}
+ ${row('Size scaling', w.size_scaling ? 'On' : 'Off')}
+ </div>
+ <div class="arm-cats">${cats}</div>
+ ${w.telegram_chat_id ? '<div class="arm-tg">✓ Telegram alerts active</div>' : ''}`;
}
async function loadWatch(agentId) {
state.agentId = agentId;
+ const sum = $('#armSummary');
const { ok, data } = await api(`/api/oracle/watch?agent_id=${encodeURIComponent(agentId)}&network=${NETWORK}`);
const w = ok && data ? data.watch : null;
state.watch = w;
- if (w) {
- $('#agMin').value = String(w.min_score >= 86 ? 86 : w.min_score >= 72 ? 72 : 56);
- $('#agSize').value = w.per_trade_sol ?? 0.05;
- $('#agDaily').value = w.max_daily_sol ?? 0.5;
- $('#agOpen').value = w.max_open ?? 5;
- setSwitch('#agSmart', w.require_smart_money !== false);
- setSwitch('#agScale', !!w.size_scaling);
- setSwitch('#agArm', !!w.armed);
- const live = w.mode === 'live'; setSwitch('#agLive', live);
- $('#agModeSub').textContent = live ? 'Live — real SOL from the agent wallet (capped)' : 'Simulate — logs actions, spends nothing';
- const base = Number(w.per_trade_sol) || 0.05;
- $('#agScaleSub').textContent = w.size_scaling
- ? `${base.toFixed(3)} SOL base → up to ${(base * 1.5).toFixed(3)} SOL at score 100`
- : '1.0× at min score → up to 1.5× at score 100';
- const cats = new Set(w.categories || []);
- $$('#agCats .cchip').forEach((b) => b.classList.toggle('on', cats.has(b.dataset.cat)));
- $('#agTelegram').value = w.telegram_chat_id || '';
- }
+ if (sum) sum.innerHTML = armSummaryHtml(w);
loadActions(agentId);
}
-function setSwitch(sel, on) { const el = $(sel); el.classList.toggle('on', on); el.setAttribute('aria-checked', String(on)); }
-
-async function saveWatch() {
- const btn = $('#agSave'); btn.disabled = true; btn.textContent = 'Saving…';
- const cats = $$('#agCats .cchip.on').map((b) => b.dataset.cat);
- const min = Number($('#agMin').value);
- const payload = {
- agent_id: state.agentId, network: NETWORK,
- armed: $('#agArm').classList.contains('on'),
- mode: $('#agLive').classList.contains('on') ? 'live' : 'simulate',
- min_score: min, min_tier: min >= 86 ? 'prime' : min >= 72 ? 'strong' : 'lean',
- categories: cats,
- per_trade_sol: Number($('#agSize').value) || 0.05,
- max_daily_sol: Number($('#agDaily').value) || 0.5,
- max_open: Number($('#agOpen').value) || 5,
- require_smart_money: $('#agSmart').classList.contains('on'),
- size_scaling: $('#agScale').classList.contains('on'),
- telegram_chat_id: ($('#agTelegram').value || '').trim() || null,
- };
- const { ok, data } = await api('/api/oracle/watch', {
- method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload),
- });
- btn.disabled = false; btn.textContent = 'Save configuration';
- const note = $('#agNote');
- if (ok && data?.watch) {
- const tgNote = data.watch.telegram_chat_id ? ' Telegram alerts active.' : '';
- note.className = 'note'; note.textContent = data.watch.armed ? `Armed in ${data.watch.mode} mode. Your agent is watching the stream.${tgNote}` : `Saved. Toggle "Armed" to start watching.${tgNote}`;
- loadActions(state.agentId);
- } else {
- note.className = 'note warn';
- note.textContent = data?.error?.message || 'Could not save — sign in and make sure you own this agent.';
- }
-}
-
-async function sendTelegramTest() {
- const chatId = ($('#agTelegram').value || '').trim();
- const note = $('#agTgNote');
- if (!chatId) {
- note.style.display = 'block';
- note.style.color = 'var(--warn, #fbbf24)';
- note.textContent = 'Enter your Telegram chat ID or @channel first.';
- return;
- }
- const btn = $('#agTgTest');
- btn.disabled = true; btn.textContent = 'Sending…';
- note.style.display = 'none';
- const { ok, data } = await api('/api/oracle/test-alert', {
- method: 'POST',
- headers: { 'content-type': 'application/json' },
- body: JSON.stringify({ agent_id: state.agentId, chat_id: chatId }),
- });
- btn.disabled = false; btn.textContent = 'Send test';
- note.style.display = 'block';
- if (ok && data?.ok) {
- note.style.color = 'var(--green, #34d399)';
- note.textContent = '✓ Test message delivered. Check Telegram.';
- } else {
- note.style.color = 'var(--warn, #fbbf24)';
- note.textContent = (data?.error || 'Delivery failed.') + (data?.hint ? ' ' + data.hint : '');
- }
-}
-
async function loadActions(agentId) {
const body = $('#actionsBody');
const { ok, data } = await api(`/api/oracle/watch?agent_id=${encodeURIComponent(agentId)}&network=${NETWORK}`);
diff --git a/tests/launch-mark-enforcement.test.js b/tests/launch-mark-enforcement.test.js
index 1092b8f8b..fe23463b3 100644
--- a/tests/launch-mark-enforcement.test.js
+++ b/tests/launch-mark-enforcement.test.js
@@ -108,6 +108,14 @@ vi.mock('@solana/web3.js', async (importOriginal) => {
};
});
+// The launch-agent path now sends via submitProtected (real signing + serialize),
+// which is incompatible with the fake VersionedTransaction above (no real
+// signatures). These tests verify the GROUND MINT carries the 3ws mark
+// (response.mint), not the send mechanism, so mock the protected sender.
+vi.mock('../api/_lib/execution-engine.js', () => ({
+ submitProtected: vi.fn(async () => ({ signature: 'a'.repeat(88), slot: 1, route: 'protected' })),
+}));
+
// ── pump.js SDK ───────────────────────────────────────────────────────────────
vi.mock('../api/_lib/pump.js', () => ({
getConnection: vi.fn(() => ({})),
@@ -311,9 +319,12 @@ describe('POST /api/pump/launch-agent — brand-mark enforcement', () => {
// Funded mock Solana connection (sufficient for ~0.022 SOL launch cost)
agentPumpfunState.connection = {
getBalance: async () => 1_000_000_000,
- getLatestBlockhash: async () => ({ blockhash: 'testblockhash111111111111111111111' }),
+ getLatestBlockhash: async () => ({ blockhash: 'testblockhash111111111111111111111', lastValidBlockHeight: 1000 }),
+ // submitProtected estimates a priority fee + CU (simulate) before sending.
+ simulateTransaction: async () => ({ value: { err: null, unitsConsumed: 50_000, logs: [] } }),
+ getRecentPrioritizationFees: async () => [{ prioritizationFee: 1000 }],
sendRawTransaction: async () => 'a'.repeat(88),
- confirmTransaction: async () => ({}),
+ confirmTransaction: async () => ({ value: { err: null }, context: { slot: 1 } }),
};
// Agent custodial keypair returned by the loadAgentForSigning mock
diff --git a/vercel.json b/vercel.json
index 2d8edd2eb..646abc22b 100644
--- a/vercel.json
+++ b/vercel.json
@@ -678,6 +678,10 @@
"src": "/oracle/coin/([1-9A-HJ-NP-Za-km-z]{32,44})/?",
"dest": "/api/oracle-share?mint=$1"
},
+ {
+ "src": "/(oracle/arm|arm)/?",
+ "dest": "/arm.html"
+ },
{
"src": "/oracle/?",
"dest": "/oracle.html"
diff --git a/vite.config.js b/vite.config.js
index 3840be172..2fa3a961c 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -359,6 +359,7 @@ const appConfig = {
'pump-live': resolve(__dirname, 'pages/pump-live.html'),
radar: resolve(__dirname, 'pages/radar.html'),
oracle: resolve(__dirname, 'pages/oracle.html'),
+ arm: resolve(__dirname, 'pages/arm.html'),
activity: resolve(__dirname, 'pages/activity.html'),
'coin-intel': resolve(__dirname, 'pages/coin-intel.html'),
trending: resolve(__dirname, 'pages/trending.html'),
@@ -769,6 +770,10 @@ support: resolve(__dirname, 'pages/support.html'),
'/radar/': resolve(root, 'pages/radar.html'),
'/oracle': resolve(root, 'pages/oracle.html'),
'/oracle/': resolve(root, 'pages/oracle.html'),
+ '/oracle/arm': resolve(root, 'pages/arm.html'),
+ '/oracle/arm/': resolve(root, 'pages/arm.html'),
+ '/arm': resolve(root, 'pages/arm.html'),
+ '/arm/': resolve(root, 'pages/arm.html'),
'/activity': resolve(root, 'pages/activity.html'),
'/activity/': resolve(root, 'pages/activity.html'),
'/trending': resolve(root, 'pages/trending.html'),