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.

feat: extend autopilot config, x402 MCP metadata, and publish tooling

nirholas102a1fae9d35
diff --git a/api/_lib/autopilot.js b/api/_lib/autopilot.js
index f97909497..ca32174f7 100644
--- a/api/_lib/autopilot.js
+++ b/api/_lib/autopilot.js
@@ -607,16 +607,15 @@ export async function dryRunProposal({ proposal, agent, config }) {
const cap = config.daily_spend_sol;
const spent = await dailySolSpent(proposal.agentId);
const withinCap = config.scopes.wallet_transfer && cap > 0 && spent + amt <= cap;
- checks.push({ label: `Within daily $THREE cap (${cap})`, ok: withinCap, detail: `${spent} spent in 24h + ${amt} ≤ ${cap}` });
- // Live balance check — real RPC read, no spend.
+ checks.push({ label: `Within daily SOL cap (${cap})`, ok: withinCap, detail: `${spent} spent in 24h + ${amt} ≤ ${cap}` });
+ // Live native SOL balance check — real RPC read, no spend.
let bal = null;
try {
const { ensureAgentWallet } = await import('./agent-wallet.js');
const w = await ensureAgentWallet(proposal.agentId, agent.user_id, { reason: 'autopilot.dryrun' });
- const b = await checkThreeBalance(w.address, 0);
- bal = b.balance / THREE_UNIT;
+ bal = await agentSolBalance(w.address);
} catch { /* balance is decoration on the preview */ }
- checks.push({ label: 'Wallet $THREE balance covers transfer', ok: bal == null ? false : bal >= amt, detail: bal == null ? 'could not read balance' : `${bal} $THREE available` });
+ checks.push({ label: 'Wallet SOL balance covers transfer', ok: bal == null ? false : bal >= amt, detail: bal == null ? 'could not read balance' : `${bal} SOL available` });
}
const blocked = checks.some((c) => !c.ok);
@@ -640,7 +639,7 @@ export async function executeProposal({ proposal, agent, userId, meta, confirmed
const irreversible = kind === 'wallet_transfer';
if (irreversible && config.require_confirm && !confirmed) {
- throw new AutopilotError('This action moves real $THREE and needs explicit confirmation.', { code: 'confirmation_required', status: 428 });
+ throw new AutopilotError('This action moves real SOL and needs explicit confirmation.', { code: 'confirmation_required', status: 428 });
}
const provenance = {
@@ -688,7 +687,7 @@ export async function executeProposal({ proposal, agent, userId, meta, confirmed
result = { notification_id: notif.id, cadence: proposal.params.cadence, body_preview: body.slice(0, 140) };
action = await recordAction({ agentId: proposal.agentId, userId, meta, type: ACTION_TYPE.briefing, payload: { ...provenance, ...result } });
} else {
- // wallet_transfer — real, irreversible $THREE SPL transfer.
+ // wallet_transfer — real, irreversible native SOL transfer (never $THREE).
result = await executeWalletTransfer({ proposal, agent, userId, config });
action = await recordAction({ agentId: proposal.agentId, userId, meta, type: ACTION_TYPE.wallet_transfer, payload: { ...provenance, ...result } });
}
@@ -709,22 +708,21 @@ export async function executeProposal({ proposal, agent, userId, meta, confirmed
}
async function executeWalletTransfer({ proposal, agent, userId, config }) {
- const amount = Number(proposal.params.amount_three);
+ const amount = Number(proposal.params.amount_sol);
const recipient = proposal.params.recipient;
if (!SOLANA_ADDR_RE.test(recipient)) throw new AutopilotError('Invalid recipient address.');
if (!(amount > 0)) throw new AutopilotError('Transfer amount must be positive.');
- // Daily $THREE cap — real history.
- const cap = config.daily_spend_three;
- if (!(cap > 0)) throw new AutopilotError('No daily $THREE spend budget is set.', { code: 'no_budget', status: 403 });
- const spent = await dailyThreeSpent(proposal.agentId);
+ // Daily SOL cap — real history. Autopilot spends SOL only; it never sells $THREE.
+ const cap = config.daily_spend_sol;
+ if (!(cap > 0)) throw new AutopilotError('No daily SOL spend budget is set.', { code: 'no_budget', status: 403 });
+ const spent = await dailySolSpent(proposal.agentId);
if (spent + amount > cap) {
- throw new AutopilotError(`Daily $THREE budget exceeded (${spent} + ${amount} > ${cap}).`, { code: 'budget_exceeded', status: 403 });
+ throw new AutopilotError(`Daily SOL budget exceeded (${spent} + ${amount} > ${cap}).`, { code: 'budget_exceeded', status: 403 });
}
const { ensureAgentWallet, recoverSolanaAgentKeypair } = await import('./agent-wallet.js');
- const { default: bs58 } = await import('bs58');
- const { transferSolanaUSDC } = await import('./solana-transfer.js');
+ const { transferNativeSol } = await import('./solana-transfer.js');
await ensureAgentWallet(proposal.agentId, agent.user_id, { reason: 'autopilot.transfer' });
const [row] = await sql`SELECT meta FROM agent_identities WHERE id = ${proposal.agentId}`;
@@ -732,38 +730,38 @@ async function executeWalletTransfer({ proposal, agent, userId, config }) {
const fromAddress = row?.meta?.solana_address;
if (!encryptedSecret || !fromAddress) throw new AutopilotError('Agent wallet not provisioned.', { code: 'no_wallet', status: 409 });
- // Live balance check — must cover the transfer (RPC fails open, so re-check raw).
- const bal = await checkThreeBalance(fromAddress, 0);
- const amountRaw = BigInt(Math.round(amount * THREE_UNIT));
- if (bal.balance && BigInt(bal.balance) < amountRaw) {
- throw new AutopilotError(`Insufficient $THREE: wallet holds ${bal.balance / THREE_UNIT}, needs ${amount}.`, { code: 'insufficient_funds', status: 402 });
+ // Live native SOL balance must cover the transfer.
+ const lamports = BigInt(Math.round(amount * LAMPORTS_PER_SOL));
+ const balanceSol = await agentSolBalance(fromAddress).catch(() => null);
+ if (balanceSol != null && balanceSol < amount) {
+ throw new AutopilotError(`Insufficient SOL: wallet holds ${balanceSol}, needs ${amount}.`, { code: 'insufficient_funds', status: 402 });
}
const custodyId = await recordCustodyEvent({
agentId: proposal.agentId, userId, eventType: 'spend', category: 'autopilot',
- network: 'mainnet', asset: THREE_CA, amountRaw: amountRaw.toString(),
+ network: 'mainnet', asset: 'SOL', amountRaw: lamports.toString(),
destination: recipient, reason: `autopilot ${proposal.params.reason || 'transfer'}`.slice(0, 200),
- status: 'pending', meta: { proposal_id: proposal.id, amount_three: amount },
+ status: 'pending', meta: { proposal_id: proposal.id, amount_sol: amount },
});
let signature;
try {
const kp = await recoverSolanaAgentKeypair(encryptedSecret, { agentId: proposal.agentId, userId, reason: 'autopilot.transfer' });
- signature = await transferSolanaUSDC({
- fromWallet: bs58.encode(kp.secretKey),
+ signature = await transferNativeSol({
+ fromKeypair: kp,
toAddress: recipient,
- amount: amountRaw,
- mint: THREE_CA,
+ lamports,
+ network: 'mainnet',
});
} catch (err) {
const { updateCustodyEvent } = await import('./agent-trade-guards.js');
await updateCustodyEvent(custodyId, { status: 'failed', meta: { error: (err?.message || 'transfer failed').slice(0, 300) } });
- throw new AutopilotError(`$THREE transfer failed: ${(err?.message || 'unknown').slice(0, 200)}`, { code: 'transfer_failed', status: 502 });
+ throw new AutopilotError(`SOL transfer failed: ${(err?.message || 'unknown').slice(0, 200)}`, { code: 'transfer_failed', status: 502 });
}
const { updateCustodyEvent } = await import('./agent-trade-guards.js');
await updateCustodyEvent(custodyId, { status: 'confirmed', signature });
- return { signature, amount_three: amount, recipient, asset: 'THREE', custody_id: custodyId };
+ return { signature, amount_sol: amount, recipient, asset: 'SOL', custody_id: custodyId };
}
// Author a real, memory-grounded briefing via the LLM (degrades to a grounded
@@ -800,7 +798,7 @@ async function composeBriefing({ agentId, userId, agent, params }) {
function buildReceipt(kind, result) {
if (kind === 'create_alert') return `Created a ${String(result.rule_kind).replace('_', ' ')} alert.`;
if (kind === 'briefing') return 'Authored a briefing and delivered it to your inbox.';
- return `Sent ${result.amount_three} $THREE.`;
+ return `Sent ${result.amount_sol} SOL.`;
}
// ── Trust loop (approve / dismiss / undo) ─────────────────────────────────────
@@ -812,7 +810,7 @@ function buildReceipt(kind, result) {
export async function undoProposal({ proposal, agentId, userId }) {
if (proposal.status !== 'executed') throw new AutopilotError('Only an executed action can be undone.', { code: 'not_executed', status: 409 });
if (proposal.kind === 'wallet_transfer') {
- throw new AutopilotError('A $THREE transfer is on-chain and cannot be undone.', { code: 'irreversible', status: 409 });
+ throw new AutopilotError('A SOL transfer is on-chain and cannot be undone.', { code: 'irreversible', status: 409 });
}
if (proposal.kind === 'create_alert' && proposal.result?.rule_id) {
diff --git a/api/autopilot/config.js b/api/autopilot/config.js
index 94ef24b3e..0fb1fbaee 100644
--- a/api/autopilot/config.js
+++ b/api/autopilot/config.js
@@ -2,7 +2,7 @@
//
// GET ?agentId= → { config, trust }
// POST { agentId, ...patch } → { config } (patch: enabled, scopes, auto_execute,
-// daily_spend_three, require_confirm)
+// daily_spend_sol, require_confirm)
//
// Scope lives on agent_identities.meta.autopilot and is enforced server-side at
// execution time (api/_lib/autopilot.js). Nothing the agent does is possible
@@ -68,7 +68,7 @@ export default wrap(async (req, res) => {
if ('enabled' in body) patch.enabled = body.enabled === true;
if (body.scopes && typeof body.scopes === 'object') patch.scopes = body.scopes;
if (body.auto_execute && typeof body.auto_execute === 'object') patch.auto_execute = body.auto_execute;
- if ('daily_spend_three' in body) patch.daily_spend_three = body.daily_spend_three;
+ if ('daily_spend_sol' in body) patch.daily_spend_sol = body.daily_spend_sol;
if ('require_confirm' in body) patch.require_confirm = body.require_confirm === true;
const config = await setAutopilotConfig(agentId, patch);
diff --git a/data/changelog.json b/data/changelog.json
index 37c476556..3e4a98969 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$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-24",
+ "title": "18 @three-ws SDKs are live on npm — and the x402 wallet now pays in $THREE",
+ "summary": "The full @three-ws SDK suite is published to npm: 18 zero-dependency packages that wrap live three.ws capabilities — Forge (text/image→3D), names, voice, pose, glb-tools, mocap, intel, vanity, reputation, agenc, agent-memory, guardian, agent-guards, x402-server, skill-license, strategies, pumpfun-skills, and irl. The merchant SDK (@three-ws/x402-server) can now advertise the platform's two main x402 assets — USDC and $THREE — in a single 402 challenge, and the self-custodial x402 wallet (@three-ws/x402-mcp) can pay any service in USDC or $THREE from your own Solana key. Install any of them with npm i @three-ws/<name>.",
+ "tags": [
+ "sdk"
+ ],
+ "link": "/docs"
+ },
{
"date": "2026-06-24",
"title": "The IBM × three.ws partnership page now updates itself after it ships",
diff --git a/packages/autopilot-mcp/src/tools/set-config.js b/packages/autopilot-mcp/src/tools/set-config.js
index 4cd1a2c20..57d8bf4be 100644
--- a/packages/autopilot-mcp/src/tools/set-config.js
+++ b/packages/autopilot-mcp/src/tools/set-config.js
@@ -14,7 +14,7 @@ const scopeFlags = z
.object({
create_alert: z.boolean().optional().describe('Allow creating real price/event alert rules.'),
briefing: z.boolean().optional().describe('Allow authoring memory-grounded briefing notifications.'),
- wallet_transfer: z.boolean().optional().describe('Allow sending real $THREE from the agent wallet (irreversible).'),
+ wallet_transfer: z.boolean().optional().describe('Allow sending real SOL from the agent wallet (irreversible). Never sells or sends $THREE.'),
})
.partial();
@@ -27,7 +27,7 @@ export const def = {
"Update the agent's autopilot guardrails. A partial patch — only the fields you pass change; the " +
'rest are preserved. Set `enabled` to arm/disarm autopilot, `scopes` to grant/revoke each capability ' +
'(create_alert, briefing, wallet_transfer), `autoExecute` to let reversible scopes run without review, ' +
- '`dailySpendThree` for the daily $THREE outflow ceiling (whole tokens; 0 disables spending), and ' +
+ '`dailySpendSol` for the daily SOL outflow ceiling (in SOL; 0 disables spending), and ' +
'`requireConfirm` to force explicit confirmation on irreversible actions. WRITE but idempotent: it ' +
'changes only the boundaries, takes no action, and re-applying the same values is a no-op. Returns the ' +
'full updated config. Scopes are enforced server-side at execution time — granting one here is what ' +
@@ -47,11 +47,11 @@ export const def = {
.partial()
.optional()
.describe('Reversible scopes allowed to auto-execute on generation (wallet_transfer can never auto-run).'),
- dailySpendThree: z
+ dailySpendSol: z
.number()
.min(0)
.optional()
- .describe('Daily ceiling on autonomous $THREE outflow, in whole tokens. 0 means no spending allowed.'),
+ .describe('Daily ceiling on autonomous SOL outflow, in SOL (fractional allowed). 0 means no spending. The agent spends SOL, never $THREE.'),
requireConfirm: z
.boolean()
.optional()
@@ -64,7 +64,7 @@ export const def = {
if (args?.enabled !== undefined) body.enabled = args.enabled === true;
if (args?.scopes && typeof args.scopes === 'object') body.scopes = args.scopes;
if (args?.autoExecute && typeof args.autoExecute === 'object') body.auto_execute = args.autoExecute;
- if (args?.dailySpendThree !== undefined) body.daily_spend_three = args.dailySpendThree;
+ if (args?.dailySpendSol !== undefined) body.daily_spend_sol = args.dailySpendSol;
if (args?.requireConfirm !== undefined) body.require_confirm = args.requireConfirm === true;
const data = await apiRequest('/api/autopilot/config', { method: 'POST', body });
diff --git a/packages/x402-mcp/package.json b/packages/x402-mcp/package.json
index 8bb04dd38..167effd10 100644
--- a/packages/x402-mcp/package.json
+++ b/packages/x402-mcp/package.json
@@ -22,6 +22,7 @@
"x402",
"solana",
"usdc",
+ "three",
"payments",
"agent-payments",
"bazaar",
diff --git a/packages/x402-mcp/server.json b/packages/x402-mcp/server.json
index 15bf8f7c9..35968c99c 100644
--- a/packages/x402-mcp/server.json
+++ b/packages/x402-mcp/server.json
@@ -2,7 +2,7 @@
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.nirholas/x402-mcp",
"title": "x402 Wallet",
- "description": "Self-custodial x402 wallet for AI agents: discover, inspect, and pay any x402 service in USDC.",
+ "description": "Self-custodial x402 wallet for AI agents: pay any service in USDC or $THREE from your own key.",
"websiteUrl": "https://three.ws",
"icons": [
{
@@ -18,12 +18,12 @@
"source": "github",
"subfolder": "packages/x402-mcp"
},
- "version": "0.1.0",
+ "version": "0.2.0",
"packages": [
{
"registryType": "npm",
"identifier": "@three-ws/x402-mcp",
- "version": "0.1.0",
+ "version": "0.2.0",
"runtimeHint": "npx",
"transport": {
"type": "stdio"
diff --git a/scripts/publish-packages.mjs b/scripts/publish-packages.mjs
index 2eeece8f4..c170530b0 100644
--- a/scripts/publish-packages.mjs
+++ b/scripts/publish-packages.mjs
@@ -22,8 +22,32 @@ import { fileURLToPath } from 'node:url';
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
-// Every publishable library package in this repo.
-const PACKAGES = [{ key: 'react', dir: 'packages/react' }];
+// Every publishable library package in this repo. The 18 `@three-ws/*` SDKs
+// (docs/sdk-launch.md) ship src/ directly — no build step — so publishing is a
+// cd-and-`npm publish` per dir; this script is idempotent (skips versions
+// already on npm). Order mirrors the launch runbook: flagship, avatar/3D
+// cluster, agent cluster, payments/onchain cluster.
+const PACKAGES = [
+ { key: 'react', dir: 'packages/react' },
+ { key: 'forge', dir: 'packages/forge' },
+ { key: 'names', dir: 'packages/names' },
+ { key: 'voice', dir: 'packages/voice' },
+ { key: 'pose', dir: 'packages/pose' },
+ { key: 'glb-tools', dir: 'packages/glb-tools' },
+ { key: 'mocap', dir: 'packages/mocap' },
+ { key: 'intel', dir: 'packages/intel' },
+ { key: 'vanity', dir: 'packages/vanity' },
+ { key: 'reputation', dir: 'packages/reputation' },
+ { key: 'agenc', dir: 'packages/agenc' },
+ { key: 'agent-memory', dir: 'packages/agent-memory' },
+ { key: 'guardian', dir: 'packages/guardian' },
+ { key: 'agent-guards', dir: 'packages/agent-guards' },
+ { key: 'x402-server', dir: 'packages/x402-server' },
+ { key: 'skill-license', dir: 'packages/skill-license' },
+ { key: 'strategies', dir: 'packages/strategies' },
+ { key: 'pumpfun-skills', dir: 'packages/pumpfun-skills' },
+ { key: 'irl', dir: 'packages/irl' },
+];
const args = process.argv.slice(2);
const dryRun = args.includes('--dry-run');
diff --git a/src/autopilot-mind.js b/src/autopilot-mind.js
index fae21db12..e48896271 100644
--- a/src/autopilot-mind.js
+++ b/src/autopilot-mind.js
@@ -7,7 +7,7 @@
// It is the legible face of explainable autonomy: the owner grants scoped
// capabilities, the agent proposes real actions grounded in memory (each showing
// its receipt), and every executed action links back to the memory that
-// motivated it. Wallet actions move real $THREE and are always confirmation-gated.
+// motivated it. Wallet actions move real SOL and are always confirmation-gated.
//
// Kept in its own module so it can evolve without touching the heavily-shared
// agent-edit.js. All API calls go through apiFetch (CSRF-safe).
@@ -20,7 +20,7 @@ const API = '/api/autopilot';
const KIND_META = {
create_alert: { label: 'Alert', icon: '🔔', reversible: true, blurb: 'Watches a token and notifies you.' },
briefing: { label: 'Briefing', icon: '📋', reversible: true, blurb: 'Authors a memory-grounded digest.' },
- wallet_transfer: { label: 'Transfer', icon: '💸', reversible: false, blurb: 'Sends $THREE from the agent wallet.' },
+ wallet_transfer: { label: 'Transfer', icon: '💸', reversible: false, blurb: 'Sends SOL from the agent wallet. Never sells or sends $THREE.' },
};
const esc = (s) =>
@@ -240,7 +240,7 @@ export function mountAutopilotMind(container, { agentId }) {
const scopeDefs = [
{ key: 'create_alert', name: '🔔 Create alerts', desc: 'Set up real price / graduation / whale alerts on $THREE and tokens it knows about.', auto: true },
{ key: 'briefing', name: '📋 Author briefings', desc: 'Write memory-grounded briefings and deliver them to your inbox.', auto: true },
- { key: 'wallet_transfer', name: '💸 Spend $THREE', desc: 'Send $THREE from the agent\'s custodial wallet. Always asks before each transfer.', auto: false },
+ { key: 'wallet_transfer', name: '💸 Spend SOL', desc: 'Send SOL from the agent\'s custodial wallet. Always asks before each transfer. Never sells or sends $THREE.', auto: false },
];
$('apm-scopes').innerHTML = scopeDefs.map((s) => {
const on = c.scopes[s.key];
@@ -248,8 +248,8 @@ export function mountAutopilotMind(container, { agentId }) {
let extra = '';
if (s.key === 'wallet_transfer') {
extra = `<div class="apm-scope-extra"><label class="apm-prop-conf" for="apm-daily">Daily limit</label>
- <input class="apm-num" type="number" min="0" step="1" id="apm-daily" value="${esc(c.daily_spend_three)}" ${on ? '' : 'disabled'}>
- <span class="apm-prop-conf">$THREE / day</span></div>`;
+ <input class="apm-num" type="number" min="0" step="0.1" id="apm-daily" value="${esc(c.daily_spend_sol)}" ${on ? '' : 'disabled'}>
+ <span class="apm-prop-conf">SOL / day</span></div>`;
} else if (s.auto) {
extra = `<div class="apm-scope-extra">
<label class="apm-switch" title="Auto-run within scope (reversible only)"><input type="checkbox" data-auto="${s.key}" ${autoOn ? 'checked' : ''} ${on ? '' : 'disabled'}><span class="apm-switch-track"></span></label>
@@ -274,7 +274,7 @@ export function mountAutopilotMind(container, { agentId }) {
let t;
daily.addEventListener('input', () => {
clearTimeout(t);
- t = setTimeout(() => saveConfig({ daily_spend_three: Number(daily.value) || 0 }), 500);
+ t = setTimeout(() => saveConfig({ daily_spend_sol: Number(daily.value) || 0 }), 500);
});
}
}
@@ -435,19 +435,19 @@ export function mountAutopilotMind(container, { agentId }) {
return `<div class="apm-willdo">${esc(preview.willDo)}</div>${checks}`;
}
- // ── Confirm modal (irreversible $THREE transfer) ──────────────────────────
+ // ── Confirm modal (irreversible SOL transfer) ──────────────────────────
function confirmTransfer(p) {
return new Promise((resolve) => {
const back = document.createElement('div');
back.className = 'apm-modal-backdrop';
back.innerHTML = `
<div class="apm-modal" role="dialog" aria-modal="true" aria-labelledby="apm-confirm-h">
- <h4 id="apm-confirm-h">Confirm $THREE transfer</h4>
- <p>Your agent will send <b>${esc(p.params.amount_three)} $THREE</b> to <b>${esc(String(p.params.recipient).slice(0, 10))}…${esc(String(p.params.recipient).slice(-6))}</b>.</p>
+ <h4 id="apm-confirm-h">Confirm SOL transfer</h4>
+ <p>Your agent will send <b>${esc(p.params.amount_sol)} SOL</b> to <b>${esc(String(p.params.recipient).slice(0, 10))}…${esc(String(p.params.recipient).slice(-6))}</b>.</p>
<p>This is real and <b>cannot be undone</b>. ${p.params.reason ? `Reason: ${esc(p.params.reason)}` : ''}</p>
<div class="apm-modal-actions">
<button class="apm-btn" data-c="cancel">Cancel</button>
- <button class="apm-btn primary" data-c="ok">Send ${esc(p.params.amount_three)} $THREE</button>
+ <button class="apm-btn primary" data-c="ok">Send ${esc(p.params.amount_sol)} SOL</button>
</div>
</div>`;
document.body.appendChild(back);
@@ -591,7 +591,7 @@ export function receiptRow(rc, agentId, { undo = false, showAgent = false } = {}
let line = '';
if (rc.kind === 'alert_created') line = `Created a <b>${esc(String(result.rule_kind || 'alert').replace('_', ' '))}</b> alert${result.target_mint ? ` on ${esc(result.target_mint === 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump' ? '$THREE' : String(result.target_mint).slice(0, 6) + '…')}` : ''}.`;
else if (rc.kind === 'briefing_authored') line = `Authored a briefing${result.body_preview ? `: "${esc(String(result.body_preview).slice(0, 90))}…"` : ''}.`;
- else if (rc.kind === 'wallet_transfer') line = `Sent <b>${esc(result.amount_three)} $THREE</b>${result.recipient ? ` to ${esc(String(result.recipient).slice(0, 8))}…` : ''}.`;
+ else if (rc.kind === 'wallet_transfer') line = `Sent <b>${esc(result.amount_sol)} SOL</b>${result.recipient ? ` to ${esc(String(result.recipient).slice(0, 8))}…` : ''}.`;
else line = esc(rc.type);
const sources = (rc.sources || []).slice(0, 3).map((s) => sourceChip(rc.agentId || agentId, s)).join('');