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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(agent-screen): enhance workspace layout with draggable and resizable panels, add zen mode and screenshot functionality
zprvc3430938fec8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ccdcf7a8b..dc493b8f9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,10 @@Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).+## 2026-06-29++- **Posting a labor-market bounty no longer hits a surprise rate limit** — Posting a bounty on the agent labor market used to share one rate-limit budget with the MCP agent tools, so heavy use of one could spuriously throttle the other and pop a confusing 'rate limit exceeded' with no guidance. Each surface now has its own budget, and if you do post too fast the message tells you exactly how many seconds to wait before trying again. (`/labor-market`) `[fix]`+## 2026-06-28- **$THREE payments ride out brief price-feed blips instead of failing** — Paid actions priced in $THREE (Forge high tier, spins, marketplace) no longer fail when every live price feed happens to miss on the same request. The price layer now keeps a recent last-known-good price and serves it through a momentary simultaneous outage of Jupiter and the backup feeds, so a quote is never rejected over a transient blip. Prices older than five minutes are still refused — a payment is never priced off a stale number. And on the rare moment the payment rail genuinely is catching its breath, you now see a clear "briefly unavailable — try again" message instead of a raw "internal error" support code. (`/three-token`) `[fix]`@@ -12,6 +16,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **A quiet Money Pulse now points you to the live feed instead of a dead end** — When the Money Pulse (/pulse) showed "No money moving — yet," it gave no hint that the silence was just the network you were on — or the filter you'd clicked. The feed has no time limit, so mainnet — where the real tips, launches, trades and payments flow — is effectively never empty; almost every empty view was the devnet test network, or a filter (like Trades or Marketplace) that happened to be quiet while the platform was busy with other money. The empty state now reads the situation honestly: a quiet filter says "No trades yet" instead of "all quiet" and offers a one-click "View all activity" that clears the filter, while a quiet network checks the other one in the background and offers "See live activity on mainnet" — either switch flips the whole page, feed and every stat panel, in lockstep. On devnet the copy now explains it's a test network and most money moves on mainnet, so a quiet feed reads as honest, not broken. (`/pulse`) `[improvement]`- **Agent mirror (copy-trading) panel loads again** — Opening an agent's mirror panel — the copy-trading social graph where your agent follows a proven leader within your spend policy — was failing with a 404. The endpoints that power it (your following list, a leader's public track record and follower count, the recent-fills feed, and the follow/unfollow/pause/sync controls) all live under /api/agents/:id/mirror, but our production routing only recognised single-segment agent paths, so every mirror request fell through to the not-found page. We widened the route so the agent dispatcher receives these sub-paths, restoring the mirror panel and its sibling agent endpoints. (`/mirror`) `[fix]`- **Agent Reputation Leaderboard — top agents promoted in marketplace by on-chain trust score** — The platform now autonomously ranks the top 10 three.ws agents by behavioral trust score every 30 minutes via a real x402 payment to the agent-reputation endpoint. Scores are synthesized from real on-chain pump.fun agent-payments activity, distribution/buyback success, and signed Solana attestations — not a subjective rating. The top 10 are promoted to the front of the marketplace recommended feed and marked with a ◈ Top Trust badge. The ranking is also stored as an oracle signal (topic: agent_reputation_leaderboard) for downstream systems to query. Full snapshot history is written to agent_reputation_leaderboard_snapshots so trust trends are auditable over time. (`/marketplace`) `[feature, improvement]`+- **Agent Screen is now a movable workspace with a one-key Zen mode** — The live agent viewer got a full UX overhaul. The screen now fills the whole stage, and the avatar cam, activity log, and a new live stream-stats panel float on top — each one draggable, resizable, and minimizable, so you can arrange your view however you like (your layout is remembered). The activity log gained filters by type and a clear button. A new Stream Stats panel shows real-time FPS, frame count, resolution, data transferred, and uptime. Press Z for Zen mode to hide every panel and all chrome for a clean, screenshot-ready shot of just the screen and avatar cam. Plus one-tap screenshot capture, picture-in-picture, fit/fill toggle, and keyboard shortcuts (press ? for the list). (`/agent-screen`) `[feature, improvement]`- **Agent Studio's Brain editor is now a clean form, not a node graph** — Designing your agent's mind no longer means dragging wires around a flow-chart. The Brain tab is now an ordered stack of cards — Persona, Memory, Skills, Market signals, Model, and Avatar output — that you simply fill in. The wiring happens automatically: a card that's present is part of your agent's reasoning; remove it and it's gone. Templates, the live test chat, the behavior preview, and the 'watch it think' highlight all carry over unchanged, and everything you already built loads straight into the new editor. (`/agent-studio`) `[improvement]`- **Animation previews no longer show the emote hotkey bar** — Hovering an animation in the gallery (/animations) plays the clip on a live avatar. That preview was overlaying the streamer emote hotkey bar (1–9 smile/wink/surprised…) along the bottom, cluttering the shot and distracting from the animation itself. Previews now load chrome-free — just the avatar performing the clip. The emote bar still appears where it belongs, on full embeds and overlays. (`/animations`) `[fix]`- **API Key Validity Health — the platform verifies its own access keys every hour** — A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: "autonomous_loop" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses. `[infra, feature]`@@ -48,6 +53,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Submitted three.ws to the Claude Connectors Directory** — three.ws is now in the queue for Anthropic's Claude Connectors Directory — the in-app catalog where Claude users browse and one-click-connect remote MCP servers. We submitted our flagship server (the Avatars & Agents connector at /api/mcp): 35 tools that let Claude manage your three.ws avatars, validate and inspect glTF/GLB models, read on-chain agent reputation and identity, recall agent memory, and surface live $THREE-era market data — connected securely with OAuth, with pay-per-call tools settling in USDC over x402. Once it's approved, you'll be able to add three.ws to Claude straight from the directory. (`/docs/mcp`) `[feature, infra]`- **Text-to-3D falls back to the free engine when the paid one runs dry** — Typing a prompt to generate a 3D model first paints a quick reference image, and on higher-quality tiers that step ran on a paid image service. If that account was out of credit, the whole request used to stop at a 'temporarily unavailable' message — even though our free NVIDIA engine builds a model straight from your words and never needed that paid step at all. Now a dry paid account automatically hands your prompt to the free engine instead of giving up, so 'type a prompt, get a model' keeps working. If every engine is genuinely down, you still get an honest 'try again shortly' rather than a hard error or a confusing billing message. `[fix]`- **The "Save to my avatars" button is readable on every theme** — On pages with a white accent color, the "⑂ Save to my avatars" button (shown on any avatar you don't own) rendered white text on a white background — effectively invisible. The button now picks its text color from the actual button background, so a light button gets black text and a dark button keeps white, keeping the label legible everywhere it appears. `[fix]`+- **The agent's walk preview now fills its whole card** — On an agent's page, the 'Walk with this agent' preview used to sit as a small box pinned to the left with the rest of the card empty beside it. It's now a proper two-column panel: the live avatar walks on the left while the right side explains how to drive it — drag to orbit, joystick to move, open the full walk for everyone. On phones it stacks into a single clean column. `[improvement]`- **The Agents directory now lists every on-chain agent, not just ours** — Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile. (`/agents`) `[feature, infra]`- **The Avatar Engines Atlas page is now reachable** — The link to the Avatar Engines Atlas — the curated rundown of the open-source and commercial engines behind high-quality, photoreal 3D human avatars — was returning a 404 because the page was never wired into routing. The route is now in place, so the page opens from navigation as intended. (`/avatar-engines`) `[fix]`- **The Coin Intelligence feed now fills itself** — The Coin Intelligence engine (/coin-intel) watches pump.fun's live launch firehose, observes each new coin's first ~90 seconds of trading, and scores it — organic vs bundle, wallet concentration, smart-money entries, category. Until now that observation only ran when a separate always-on worker was up, so the page often sat on its "engine is warming up" screen with nothing to show. The observer now also runs on a schedule on our serverless platform, so it keeps watching launches and recording verdicts on its own — newest coins appear in the feed continuously without depending on any single machine staying online. (`/coin-intel`) `[fix, feature]`diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex f87613c34..19b912a5e 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -479,6 +479,19 @@ export const limits = {getLimiter('mcp:agent', { limit: 60, window: '1 m', critical: true }).limit(key),mcpAgentPay: (key) =>getLimiter('mcp:agent:pay', { limit: 20, window: '1 m', critical: true }).limit(key),+ // Labor-market write buckets, keyed per user. These had borrowed the MCP agent+ // buckets above, which coupled two unrelated surfaces: a user actively using the+ // MCP `pay_and_call`/agent tools could exhaust the shared budget and 429 their+ // bounty posts (and vice versa). Split out so each surface has its own ceiling.+ // · laborPost — posting a bounty escrows real $THREE on-chain, so it's the+ // money path: critical (fail closed in prod without Redis). 20/min lets an+ // owner post a burst while bounding a runaway client.+ // · laborBid — bids move no money (escrow happens at post), so non-critical;+ // 60/min mirrors a worker agent placing offers across many open bounties.+ laborPost: (userId) =>+ getLimiter('labor:post', { limit: 20, window: '1 m', critical: true }).limit(userId),+ laborBid: (userId) =>+ getLimiter('labor:bid', { limit: 60, window: '1 m' }).limit(userId),oauthToken: (clientId) =>getLimiter('oauth:token', { limit: 120, window: '1 m' }).limit(clientId),upload: (userId) => getLimiter('upload', { limit: 60, window: '1 h' }).limit(userId),diff --git a/api/labor/bid.js b/api/labor/bid.jsindex c81cc9045..cf45f2d7e 100644--- a/api/labor/bid.js+++ b/api/labor/bid.js@@ -21,7 +21,7 @@ export default wrap(async (req, res) => {if (!auth) return;const { userId } = auth;- const rl = await limits.mcpAgent(userId || 'anon');+ const rl = await limits.laborBid(userId || 'anon');if (!rl.success) return rateLimited(res, rl, 'bid rate limit exceeded');const body = (await readJson(req)) || {};diff --git a/api/labor/post.js b/api/labor/post.jsindex 1d0c44ffa..5b76e7d3c 100644--- a/api/labor/post.js+++ b/api/labor/post.js@@ -29,7 +29,7 @@ export default wrap(async (req, res) => {if (!auth) return;const { userId } = auth;- const rl = await limits.mcpAgentPay(userId || 'anon');+ const rl = await limits.laborPost(userId || 'anon');if (!rl.success) return rateLimited(res, rl, 'bounty rate limit exceeded');const body = (await readJson(req)) || {};diff --git a/data/changelog.json b/data/changelog.jsonindex cf46d63a5..9dea0d4a4 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,33 @@{"$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-29",+ "title": "Posting a labor-market bounty no longer hits a surprise rate limit",+ "summary": "Posting a bounty on the agent labor market used to share one rate-limit budget with the MCP agent tools, so heavy use of one could spuriously throttle the other and pop a confusing 'rate limit exceeded' with no guidance. Each surface now has its own budget, and if you do post too fast the message tells you exactly how many seconds to wait before trying again.",+ "tags": [+ "fix"+ ],+ "link": "/labor-market"+ },+ {+ "date": "2026-06-28",+ "title": "Agent Screen is now a movable workspace with a one-key Zen mode",+ "summary": "The live agent viewer got a full UX overhaul. The screen now fills the whole stage, and the avatar cam, activity log, and a new live stream-stats panel float on top — each one draggable, resizable, and minimizable, so you can arrange your view however you like (your layout is remembered). The activity log gained filters by type and a clear button. A new Stream Stats panel shows real-time FPS, frame count, resolution, data transferred, and uptime. Press Z for Zen mode to hide every panel and all chrome for a clean, screenshot-ready shot of just the screen and avatar cam. Plus one-tap screenshot capture, picture-in-picture, fit/fill toggle, and keyboard shortcuts (press ? for the list).",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/agent-screen"+ },+ {+ "date": "2026-06-28",+ "title": "The agent's walk preview now fills its whole card",+ "summary": "On an agent's page, the 'Walk with this agent' preview used to sit as a small box pinned to the left with the rest of the card empty beside it. It's now a proper two-column panel: the live avatar walks on the left while the right side explains how to drive it — drag to orbit, joystick to move, open the full walk for everyone. On phones it stacks into a single clean column.",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-28","title": "Fixed the live agents wall crashing on load",diff --git a/pages/agent-detail.html b/pages/agent-detail.htmlindex 805781ba4..a00c68912 100644--- a/pages/agent-detail.html+++ b/pages/agent-detail.html@@ -139,11 +139,19 @@/* Walk-with-this-agent preview card. Token-styled: reuses the page'ssurface/border variables so it reads as one of the agent cards. */.ad-walk-card .ad-preview-hint { margin-left: auto; font-size: 11px; color: var(--ink-dim, #888); }+ /* Two-column body: avatar stage left, supporting copy + CTA fill the+ right so the card reads as one composed unit instead of a small frame+ marooned in empty space. */+ .ad-walk-body {+ display: grid;+ grid-template-columns: minmax(0, 300px) minmax(0, 1fr);+ gap: 22px;+ align-items: stretch;+ margin-top: 12px;+ }.ad-walk-stage {position: relative;- margin-top: 12px;width: 100%;- max-width: 280px;aspect-ratio: 3 / 4;border-radius: 14px;overflow: hidden;@@ -152,6 +160,47 @@var(--surface2, rgba(255, 255, 255, 0.04));border: 1px solid var(--border, rgba(255, 255, 255, 0.08));}+ .ad-walk-info {+ display: flex;+ flex-direction: column;+ justify-content: center;+ gap: 14px;+ min-width: 0;+ }+ .ad-walk-lead {+ margin: 0;+ font-size: 14px;+ line-height: 1.6;+ color: var(--ink-dim, #b7b7b7);+ max-width: 42ch;+ }+ .ad-walk-tips {+ margin: 0;+ padding: 0;+ list-style: none;+ display: flex;+ flex-direction: column;+ gap: 8px;+ }+ .ad-walk-tips li {+ display: flex;+ align-items: center;+ gap: 9px;+ font-size: 13px;+ color: var(--ink-dim, #9a9a9a);+ }+ .ad-walk-tips svg {+ width: 15px;+ height: 15px;+ flex-shrink: 0;+ color: rgba(124, 92, 255, 0.85);+ }+ @media (max-width: 640px) {+ .ad-walk-body { grid-template-columns: 1fr; }+ .ad-walk-stage { max-width: 300px; margin: 0 auto; }+ .ad-walk-info { text-align: center; align-items: center; }+ .ad-walk-lead { max-width: none; }+ }.ad-walk-frame {position: absolute;inset: 0;@@ -204,7 +253,10 @@}.ad-walk-error[hidden] { display: none; }.ad-walk-error-msg { font-size: 13px; color: var(--ink-dim, #aaa); max-width: 200px; }- .ad-walk-expand { margin-top: 14px; }+ .ad-walk-expand { margin-top: 4px; align-self: flex-start; }+ @media (max-width: 640px) {+ .ad-walk-expand { align-self: stretch; justify-content: center; }+ }.ad-platform-bar { display:flex; align-items:center; gap:14px; margin-top:10px; padding:8px 0; border-top:1px solid rgba(255,255,255,.07); flex-wrap:wrap; }.ad-platform-stat { display:flex; flex-direction:column; gap:1px; }.ad-platform-stat-val { font-size:13px; font-weight:700; color:var(--text,#f4f4f5); letter-spacing:-0.01em; }@@ -494,37 +546,56 @@<h2>WALK WITH THIS AGENT</h2><span class="ad-preview-hint">Drive its avatar in real time</span></div>- <div class="ad-walk-stage" id="ad-walk-stage">- <div class="ad-walk-skeleton" id="ad-walk-skeleton" aria-hidden="true">- <span class="ad-walk-skeleton-pulse"></span>- <span class="ad-walk-skeleton-label">Loading avatar…</span>+ <div class="ad-walk-body">+ <div class="ad-walk-stage" id="ad-walk-stage">+ <div class="ad-walk-skeleton" id="ad-walk-skeleton" aria-hidden="true">+ <span class="ad-walk-skeleton-pulse"></span>+ <span class="ad-walk-skeleton-label">Loading avatar…</span>+ </div>+ <iframe+ id="ad-walk-frame"+ class="ad-walk-frame"+ title="Walking 3D avatar preview"+ loading="lazy"+ allow="accelerometer; gyroscope; xr-spatial-tracking"+ style="opacity: 0"+ ></iframe>+ <div class="ad-walk-error" id="ad-walk-error" hidden>+ <span class="ad-walk-error-msg">Couldn’t load the walking preview.</span>+ <button type="button" class="ad-btn" id="ad-walk-retry">Retry</button>+ </div></div>- <iframe- id="ad-walk-frame"- class="ad-walk-frame"- title="Walking 3D avatar preview"- loading="lazy"- allow="accelerometer; gyroscope; xr-spatial-tracking"- style="opacity: 0"- ></iframe>- <div class="ad-walk-error" id="ad-walk-error" hidden>- <span class="ad-walk-error-msg">Couldn’t load the walking preview.</span>- <button type="button" class="ad-btn" id="ad-walk-retry">Retry</button>+ <div class="ad-walk-info">+ <p class="ad-walk-lead">This agent has a live, embodied avatar. Drag to look around the studio, then take the controls and walk it in real time.</p>+ <ul class="ad-walk-tips">+ <li>+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9" /><path d="M12 7v5l3 3" /></svg>+ Walks an idle wander until you take over+ </li>+ <li>+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 9l-3 3 3 3" /><path d="M9 5l3-3 3 3" /><path d="M15 19l-3 3-3-3" /><path d="M19 9l3 3-3 3" /><path d="M2 12h20" /><path d="M12 2v20" /></svg>+ Drag to orbit, joystick to drive+ </li>+ <li>+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 3h6v6" /><path d="M10 14L21 3" /><path d="M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" /></svg>+ Open the full walk for the whole world+ </li>+ </ul>+ <a+ class="ad-btn ad-btn-primary ad-walk-expand"+ id="ad-walk-expand"+ href="/walk/app"+ aria-label="Open the full walk experience with this agent"+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="margin-right: 6px">+ <path d="M15 3h6v6" />+ <path d="M10 14L21 3" />+ <path d="M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" />+ </svg>+ Open full walk+ </a></div></div>- <a- class="ad-btn ad-btn-primary ad-walk-expand"- id="ad-walk-expand"- href="/walk/app"- aria-label="Open the full walk experience with this agent"- >- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="margin-right: 6px">- <path d="M15 3h6v6" />- <path d="M10 14L21 3" />- <path d="M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" />- </svg>- Open full walk- </a></section><section class="ad-card ad-sale-card" id="ad-sale-card" hidden>diff --git a/pages/agent-screen.html b/pages/agent-screen.htmlindex b4ea41894..7a37c5b99 100644--- a/pages/agent-screen.html+++ b/pages/agent-screen.html@@ -31,14 +31,17 @@--screen-live: #ffffff;--screen-dark: rgba(255,255,255,0.3);--screen-on-accent: #0a0a0b;+ --asc-panel-bg: rgba(12,12,14,0.82);+ --asc-border: rgba(255,255,255,0.1);}body {overflow: hidden;display: flex;flex-direction: column;+ height: 100vh;min-height: 100vh;- background: #0a0a0b;+ background: #060607;}/* ── header ── */@@ -46,12 +49,25 @@display: flex;align-items: center;gap: 0.9rem;- padding: 0.6rem 1rem;+ padding: 0.55rem 0.9rem;border-bottom: 1px solid rgba(255,255,255,0.07);background: rgba(6, 10, 18, 0.95);backdrop-filter: blur(12px);flex: none;- z-index: 30;+ z-index: 60;+ transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s;+ }+ /* In zen mode the whole header slides up out of view. */+ body.asc-zen .asc-header {+ transform: translateY(-110%);+ opacity: 0;+ pointer-events: none;+ }+ /* …unless the user nudges the mouse to the top edge to peek. */+ body.asc-zen.asc-peek .asc-header {+ transform: none;+ opacity: 1;+ pointer-events: auto;}.asc-header .back {display: inline-flex;@@ -59,19 +75,23 @@gap: 0.4rem;color: rgba(255,255,255,0.6);text-decoration: none;- font-size: 0.82rem;+ font-size: 0.95rem;font-weight: 600;- padding: 0.3rem 0.55rem;+ padding: 0.3rem 0.5rem;border-radius: 7px;transition: background 0.15s, color 0.15s;}.asc-header .back:hover { color: #fff; background: rgba(255,255,255,0.07); }- .asc-agent-info { display: flex; align-items: center; gap: 0.65rem; }+ .asc-agent-info { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }.asc-agent-name {font-size: 0.95rem;font-weight: 680;color: #f4f4f5;letter-spacing: -0.01em;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ max-width: 30vw;}.asc-live-badge {display: inline-flex;@@ -86,6 +106,7 @@padding: 0.25rem 0.6rem;border-radius: 999px;border: 1px solid rgba(255,255,255,0.25);+ flex: none;}.asc-live-badge .dot {width: 6px;@@ -99,74 +120,94 @@color: var(--screen-dark);border-color: rgba(255,255,255,0.1);}- .asc-live-badge.dark .dot {- background: var(--screen-dark);- animation: none;- }+ .asc-live-badge.dark .dot { background: var(--screen-dark); animation: none; }+.asc-header-right {margin-left: auto;display: flex;align-items: center;- gap: 0.6rem;+ gap: 0.3rem;}- .asc-btn {+ .asc-ctl-group { display: flex; align-items: center; gap: 0.2rem; }+ .asc-ctl-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.12); margin: 0 0.25rem; flex: none; }++ /* compact icon control button shared by header toggles */+ .asc-ctl {appearance: none;- background: rgba(255,255,255,0.07);- border: 1px solid rgba(255,255,255,0.12);- color: rgba(255,255,255,0.75);+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.35rem;+ background: rgba(255,255,255,0.06);+ border: 1px solid rgba(255,255,255,0.1);+ color: rgba(255,255,255,0.72);border-radius: 8px;- padding: 0.35rem 0.75rem;+ min-width: 32px;+ height: 32px;+ padding: 0 0.5rem;font: inherit;- font-size: 0.8rem;+ font-size: 0.95rem;+ line-height: 1;cursor: pointer;- transition: background 0.15s, color 0.15s;+ text-decoration: none;+ transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;+ }+ .asc-ctl:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }+ .asc-ctl:active { transform: scale(0.94); }+ .asc-ctl.active {+ background: rgba(255,255,255,0.16);+ border-color: rgba(255,255,255,0.4);+ color: #fff;+ }+ .asc-ctl--label { font-size: 0.82rem; font-weight: 620; }+ .asc-ctl--primary {+ background: var(--screen-accent);+ color: var(--screen-on-accent);+ border-color: transparent;+ font-size: 0.82rem;+ font-weight: 650;}- .asc-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }+ .asc-ctl--primary:hover { background: #fff; color: var(--screen-on-accent); }+ .asc-ctl--zen.active { background: #fff; color: var(--screen-on-accent); border-color: #fff; }- /* ── main layout ── */- .asc-main {+ /* ── stage: full-bleed screen + floating panels ── */+ .asc-stage {+ position: relative;flex: 1;min-height: 0;- display: flex;overflow: hidden;+ background:+ radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.03), transparent 60%),+ #060607;}- /* ── screen panel (left 64%) ── */- .asc-screen-panel {- flex: 0 0 64%;- min-width: 0;- display: flex;- flex-direction: column;- border-right: 1px solid rgba(255,255,255,0.06);- background: #070708;- position: relative;- }- .asc-screen-label {- padding: 0.5rem 0.9rem;- font-size: 0.72rem;- font-weight: 600;- letter-spacing: 0.08em;- text-transform: uppercase;- color: rgba(255,255,255,0.35);- border-bottom: 1px solid rgba(255,255,255,0.05);- flex: none;- }- .asc-screen-wrap {- flex: 1;- min-height: 0;+ /* the screen canvas fills the stage, letterboxed by object-fit */+ .asc-screen-stage {+ position: absolute;+ inset: 0;display: flex;align-items: center;justify-content: center;- position: relative;- overflow: hidden;}#asc-screen-canvas {max-width: 100%;max-height: 100%;+ width: auto;+ height: auto;display: block;border-radius: 4px;- image-rendering: crisp-edges;+ image-rendering: auto;+ transition: filter 0.2s;+ }+ .asc-stage.fit-cover #asc-screen-canvas {+ width: 100%;+ height: 100%;+ max-width: none;+ max-height: none;+ object-fit: cover;+ border-radius: 0;}+.asc-screen-overlay {position: absolute;inset: 0;@@ -178,6 +219,8 @@color: rgba(255,255,255,0.5);font-size: 0.9rem;pointer-events: none;+ text-align: center;+ padding: 1rem;}.asc-screen-overlay .pulse-ring {width: 56px;@@ -195,47 +238,110 @@background: rgba(255,255,255,0.12);animation: asc-inner 2s ease-out infinite;}- .asc-screen-overlay p { margin: 0; text-align: center; }+ .asc-screen-overlay p { margin: 0; }.asc-screen-overlay small { font-size: 0.75rem; color: rgba(255,255,255,0.3); }- /* ── right panel ── */- .asc-right-panel {- flex: 1;- min-width: 0;+ /* ── floating panel chrome (shared by cam / log / stats) ── */+ .asc-panel {+ position: absolute;display: flex;flex-direction: column;- background: #0c0c0e;+ background: var(--asc-panel-bg);+ backdrop-filter: blur(16px) saturate(1.15);+ border: 1px solid var(--asc-border);+ border-radius: 14px;+ box-shadow: 0 10px 44px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.03);+ overflow: hidden;+ z-index: 20;+ min-width: 0;+ animation: asc-panel-in 0.25s ease both;+ transition: box-shadow 0.18s, opacity 0.22s, transform 0.22s;+ }+ .asc-panel.dragging {+ box-shadow: 0 22px 70px rgba(0,0,0,0.72);+ cursor: grabbing;+ transition: none;+ z-index: 50;+ user-select: none;}-- /* ── webcam section ── */- .asc-webcam-section {- flex: 0 0 auto;- border-bottom: 1px solid rgba(255,255,255,0.06);+ .asc-panel.focused { z-index: 30; }+ .asc-panel[hidden] { display: none; }+ .asc-panel-head {+ display: flex;+ align-items: center;+ gap: 0.45rem;+ padding: 0.4rem 0.4rem 0.4rem 0.7rem;+ cursor: grab;+ user-select: none;+ border-bottom: 1px solid rgba(255,255,255,0.07);+ flex: none;}- .asc-webcam-label {- padding: 0.5rem 0.9rem;- font-size: 0.72rem;- font-weight: 600;+ .asc-panel.minimized .asc-panel-head { border-bottom: none; }+ .asc-panel-head:active { cursor: grabbing; }+ .asc-panel-grip {+ color: rgba(255,255,255,0.25);+ font-size: 0.7rem;+ letter-spacing: -1px;+ flex: none;+ }+ .asc-panel-title {+ font-size: 0.66rem;+ font-weight: 700;letter-spacing: 0.08em;text-transform: uppercase;- color: rgba(255,255,255,0.35);- border-bottom: 1px solid rgba(255,255,255,0.05);+ color: rgba(255,255,255,0.5);+ flex: 1;+ min-width: 0;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;}- .asc-webcam-wrap {- padding: 0.9rem;- display: flex;+ .asc-panel-btns { display: flex; gap: 0.15rem; flex: none; }+ .asc-panel-btn {+ appearance: none;+ width: 22px;+ height: 22px;+ display: inline-flex;+ align-items: center;justify-content: center;+ background: transparent;+ border: none;+ color: rgba(255,255,255,0.4);+ border-radius: 6px;+ font-size: 0.78rem;+ line-height: 1;+ cursor: pointer;+ transition: background 0.14s, color 0.14s;}+ .asc-panel-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }+ .asc-panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }+ .asc-panel.minimized { resize: none !important; }+ .asc-panel.minimized .asc-panel-body { display: none; }++ /* resize handle (cam + log) */+ .asc-resize {+ position: absolute;+ right: 2px;+ bottom: 2px;+ width: 16px;+ height: 16px;+ cursor: nwse-resize;+ z-index: 4;+ background:+ linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.35) 60%, transparent 60%, transparent 72%, rgba(255,255,255,0.35) 72%, rgba(255,255,255,0.35) 82%, transparent 82%);+ border-bottom-right-radius: 12px;+ }+ .asc-panel.minimized .asc-resize { display: none; }++ /* ── cam panel ── */+ .asc-panel--cam { width: 260px; }+ .asc-cam-body { padding: 0; }.asc-webcam-bezel {position: relative;- border-radius: 14px;- overflow: hidden;- border: 2px solid rgba(255,255,255,0.1);- background: #141416;- box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);- aspect-ratio: 4/3;width: 100%;- max-width: 300px;+ aspect-ratio: 4 / 3;+ background: #141416;+ overflow: hidden;}.asc-webcam-bezel video,.asc-webcam-bezel canvas {@@ -251,78 +357,97 @@display: flex;align-items: center;gap: 5px;- background: rgba(0,0,0,0.65);+ background: rgba(0,0,0,0.6);backdrop-filter: blur(4px);border-radius: 6px;padding: 3px 8px;font-size: 0.7rem;font-weight: 600;color: #fff;+ pointer-events: none;}- .asc-webcam-badge .cam-dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: var(--screen-live);- }+ .asc-webcam-badge .cam-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--screen-live); }.asc-webcam-idle {+ position: absolute;+ inset: 0;display: flex;align-items: center;justify-content: center;- height: 100%;color: rgba(255,255,255,0.3);font-size: 0.82rem;}- /* ── activity log ── */- .asc-log-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }- .asc-log-label {- padding: 0.5rem 0.9rem;- font-size: 0.72rem;- font-weight: 600;- letter-spacing: 0.08em;- text-transform: uppercase;- color: rgba(255,255,255,0.35);+ /* ── log panel ── */+ .asc-panel--log { width: 320px; height: 60%; max-height: calc(100% - 2rem); }+ .asc-log-tools {+ display: flex;+ align-items: center;+ gap: 0.3rem;+ padding: 0.4rem 0.55rem;border-bottom: 1px solid rgba(255,255,255,0.05);flex: none;+ overflow-x: auto;+ scrollbar-width: none;+ }+ .asc-log-tools::-webkit-scrollbar { display: none; }+ .asc-log-filter {+ appearance: none;+ background: rgba(255,255,255,0.05);+ border: 1px solid rgba(255,255,255,0.08);+ color: rgba(255,255,255,0.5);+ border-radius: 6px;+ padding: 0.2rem 0.5rem;+ font: inherit;+ font-size: 0.68rem;+ font-weight: 640;+ letter-spacing: 0.03em;+ text-transform: uppercase;+ cursor: pointer;+ white-space: nowrap;+ transition: all 0.14s;}+ .asc-log-filter:hover { color: #fff; border-color: rgba(255,255,255,0.2); }+ .asc-log-filter.active { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); color: #fff; }+ .asc-log-clear { margin-left: auto; }#asc-log {flex: 1;min-height: 0;overflow-y: auto;- padding: 0.6rem 0;+ padding: 0.4rem 0;display: flex;- flex-direction: column-reverse;+ flex-direction: column;scrollbar-width: thin;- scrollbar-color: rgba(255,255,255,0.1) transparent;+ scrollbar-color: rgba(255,255,255,0.12) transparent;}.asc-log-entry {display: flex;align-items: flex-start;- gap: 0.55rem;- padding: 0.4rem 0.9rem;- font-size: 0.8rem;+ gap: 0.5rem;+ padding: 0.38rem 0.7rem;+ font-size: 0.78rem;line-height: 1.4;border-bottom: 1px solid rgba(255,255,255,0.03);animation: asc-fadein 0.25s ease;}- .asc-log-entry:first-child { border-bottom: none; }- .asc-log-time { color: rgba(255,255,255,0.28); font-size: 0.72rem; flex: none; padding-top: 1px; }+ #asc-log.filtered-trade .asc-log-entry:not(.type-trade),+ #asc-log.filtered-analysis .asc-log-entry:not(.type-analysis),+ #asc-log.filtered-activity .asc-log-entry:not(.type-activity),+ #asc-log.filtered-screenshot .asc-log-entry:not(.type-screenshot) { display: none; }+ .asc-log-time { color: rgba(255,255,255,0.28); font-size: 0.7rem; flex: none; padding-top: 1px; font-variant-numeric: tabular-nums; }.asc-log-type {flex: none;- font-size: 0.68rem;+ font-size: 0.64rem;font-weight: 700;- letter-spacing: 0.06em;+ letter-spacing: 0.05em;text-transform: uppercase;- padding: 1px 6px;+ padding: 1px 5px;border-radius: 4px;}- /* Monochrome log taxonomy — distinguished by tone + a left tick, not hue. */.asc-log-type.screenshot { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.7); box-shadow: inset 2px 0 0 rgba(255,255,255,0.4); }.asc-log-type.trade { background: rgba(255,255,255,0.18); color: #fff; box-shadow: inset 2px 0 0 #fff; }.asc-log-type.analysis { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.7); box-shadow: inset 2px 0 0 rgba(255,255,255,0.55); }.asc-log-type.activity { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); }- .asc-log-text { color: rgba(255,255,255,0.78); }+ .asc-log-text { color: rgba(255,255,255,0.78); word-break: break-word; }.asc-log-empty {display: flex;align-items: center;@@ -332,21 +457,222 @@font-size: 0.82rem;}- /* ── current activity bar ── */- .asc-activity-bar {- padding: 0.55rem 0.9rem;- background: rgba(255,255,255,0.03);- border-top: 1px solid rgba(255,255,255,0.06);- font-size: 0.82rem;- color: rgba(255,255,255,0.6);+ /* ── stats panel ── */+ .asc-panel--stats { width: 218px; }+ .asc-stats-grid { display: flex; flex-direction: column; padding: 0.35rem 0; }+ .asc-stat-row {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 0.6rem;+ padding: 0.3rem 0.75rem;+ font-size: 0.78rem;+ }+ .asc-stat-key { color: rgba(255,255,255,0.4); font-weight: 560; }+ .asc-stat-val { color: #f4f4f5; font-weight: 660; font-variant-numeric: tabular-nums; white-space: nowrap; }+ .asc-stat-val.dim { color: rgba(255,255,255,0.35); font-weight: 560; }+ .asc-stat-val .unit { color: rgba(255,255,255,0.35); font-weight: 500; font-size: 0.9em; margin-left: 1px; }++ /* ── task bar (docked bottom of stage) ── */+ .asc-task-bar {+ position: absolute;+ left: 50%;+ bottom: 1rem;+ transform: translateX(-50%);+ width: min(640px, calc(100% - 2rem));+ z-index: 35;+ display: flex;+ flex-direction: column;+ gap: 0.3rem;+ transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;+ }+ body.asc-zen .asc-task-bar { transform: translateX(-50%) translateY(160%); opacity: 0; pointer-events: none; }+ body.asc-zen.asc-peek-bottom .asc-task-bar { transform: translateX(-50%); opacity: 1; pointer-events: auto; }+ .asc-task-form {+ display: flex;+ align-items: center;+ gap: 0.55rem;+ background: rgba(10,10,12,0.86);+ backdrop-filter: blur(14px);+ border: 1px solid rgba(255,255,255,0.12);+ border-radius: 12px;+ padding: 0.45rem 0.55rem 0.45rem 0.8rem;+ box-shadow: 0 8px 36px rgba(0,0,0,0.5);+ transition: border-color 0.15s, box-shadow 0.15s;+ }+ .asc-task-form:focus-within {+ border-color: rgba(255,255,255,0.55);+ box-shadow: 0 8px 36px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.12);+ }+ .asc-task-icon { color: rgba(255,255,255,0.55); font-size: 0.72rem; flex: none; user-select: none; }+ .asc-task-input {+ flex: 1;+ min-width: 0;+ background: transparent;+ border: none;+ outline: none;+ color: rgba(255,255,255,0.92);+ font: inherit;+ font-size: 0.88rem;+ caret-color: #f4f4f5;+ }+ .asc-task-input::placeholder { color: rgba(255,255,255,0.3); }+ .asc-task-input:disabled { opacity: 0.5; }+ .asc-task-send {+ flex: none;+ appearance: none;+ border: none;+ background: var(--screen-accent);+ color: var(--screen-on-accent);+ border-radius: 8px;+ width: 32px;+ height: 32px;+ display: flex;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ transition: opacity 0.15s, transform 0.1s;+ }+ .asc-task-send:hover { opacity: 0.88; }+ .asc-task-send:active { transform: scale(0.92); }+ .asc-task-send:disabled { opacity: 0.35; cursor: not-allowed; }+ .asc-task-send.sending { opacity: 0.6; animation: asc-pulse 0.8s ease-in-out infinite; }+ .asc-task-status {+ font-size: 0.74rem;+ min-height: 0;+ max-height: 0;+ overflow: hidden;+ padding-left: 0.6rem;+ color: rgba(255,255,255,0.55);+ background: rgba(10,10,12,0.86);+ border-radius: 8px;+ transition: max-height 0.2s, padding 0.2s;+ }+ .asc-task-status:not(:empty) { max-height: 2.2rem; padding: 0.35rem 0.7rem; }+ .asc-task-status.ok { color: var(--screen-live); }+ .asc-task-status.err { color: #fda4af; }++ /* ── zen exit hint ── */+ .asc-zen-hint {+ position: absolute;+ top: 0.8rem;+ right: 0.8rem;+ z-index: 55;+ display: none;+ align-items: center;+ gap: 0.5rem;+ background: rgba(10,10,12,0.8);+ backdrop-filter: blur(12px);+ border: 1px solid rgba(255,255,255,0.14);+ border-radius: 10px;+ padding: 0.35rem 0.4rem 0.35rem 0.75rem;+ font-size: 0.78rem;+ color: rgba(255,255,255,0.65);+ box-shadow: 0 8px 30px rgba(0,0,0,0.5);+ animation: asc-fadein 0.3s ease;+ }+ body.asc-zen .asc-zen-hint { display: flex; }+ .asc-zen-hint kbd {+ font: inherit;+ font-size: 0.7rem;+ background: rgba(255,255,255,0.1);+ border: 1px solid rgba(255,255,255,0.18);+ border-radius: 5px;+ padding: 1px 6px;+ color: #e4e4e7;+ }+ .asc-zen-hint button {+ appearance: none;+ border: 1px solid rgba(255,255,255,0.16);+ background: rgba(255,255,255,0.08);+ color: #e4e4e7;+ border-radius: 7px;+ padding: 0.25rem 0.6rem;+ font: inherit;+ font-size: 0.75rem;+ font-weight: 620;+ cursor: pointer;+ transition: background 0.15s;+ }+ .asc-zen-hint button:hover { background: rgba(255,255,255,0.16); }++ /* ── toast ── */+ .asc-toast-wrap {+ position: fixed;+ bottom: 1.1rem;+ left: 50%;+ transform: translateX(-50%);+ z-index: 200;display: flex;+ flex-direction: column-reverse;align-items: center;gap: 0.5rem;- min-height: 38px;+ pointer-events: none;+ }+ .asc-toast {+ background: rgba(16,16,19,0.95);+ border: 1px solid rgba(255,255,255,0.16);+ color: #f4f4f5;+ border-radius: 10px;+ padding: 0.55rem 0.95rem;+ font-size: 0.82rem;+ font-weight: 560;+ box-shadow: 0 10px 40px rgba(0,0,0,0.55);+ animation: asc-toast-in 0.25s ease;+ }+ .asc-toast.out { animation: asc-toast-out 0.25s ease forwards; }++ /* ── help overlay ── */+ .asc-help {+ position: fixed;+ inset: 0;+ z-index: 150;+ display: none;+ align-items: center;+ justify-content: center;+ background: rgba(4,4,6,0.72);+ backdrop-filter: blur(6px);+ animation: asc-fadein 0.2s ease;+ }+ .asc-help.open { display: flex; }+ .asc-help-card {+ width: min(440px, calc(100% - 2rem));+ background: rgba(14,14,17,0.96);+ border: 1px solid rgba(255,255,255,0.12);+ border-radius: 16px;+ box-shadow: 0 24px 80px rgba(0,0,0,0.7);+ overflow: hidden;+ }+ .asc-help-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: 1rem 1.2rem;+ border-bottom: 1px solid rgba(255,255,255,0.08);+ }+ .asc-help-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #f4f4f5; }+ .asc-help-body { padding: 0.5rem 0.6rem 0.9rem; }+ .asc-help-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.7rem;+ font-size: 0.85rem;+ color: rgba(255,255,255,0.7);+ }+ .asc-help-row + .asc-help-row { border-top: 1px solid rgba(255,255,255,0.04); }+ .asc-help-row kbd {+ font: inherit;+ font-size: 0.75rem;+ font-weight: 600;+ background: rgba(255,255,255,0.1);+ border: 1px solid rgba(255,255,255,0.18);+ border-radius: 6px;+ padding: 2px 9px;+ color: #e4e4e7;flex: none;}- .asc-activity-icon { font-size: 0.9rem; flex: none; }- #asc-current-activity { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }/* ── no-agent / setup state ── */.asc-no-agent {@@ -388,307 +714,103 @@align-items: center;animation: asc-fadein 0.3s ease both;}- .ws-setup-inner {- width: 100%;- max-width: 680px;- display: flex;- flex-direction: column;- gap: 1.5rem;- }- .ws-setup-hero {- text-align: center;- margin-bottom: 0.5rem;- }- .ws-setup-hero h1 {- margin: 0 0 0.5rem;- font-size: 1.6rem;- font-weight: 760;- color: #f4f4f5;- letter-spacing: -0.03em;- }- .ws-setup-hero p {- margin: 0;- color: rgba(255,255,255,0.45);- font-size: 0.9rem;- line-height: 1.55;- }- .ws-setup-step {- background: rgba(255,255,255,0.035);- border: 1px solid rgba(255,255,255,0.08);- border-radius: 14px;- overflow: hidden;- }- .ws-setup-step-head {- display: flex;- align-items: center;- gap: 0.75rem;- padding: 0.95rem 1.1rem;- border-bottom: 1px solid rgba(255,255,255,0.07);- }+ .ws-setup-inner { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 1.5rem; }+ .ws-setup-hero { text-align: center; margin-bottom: 0.5rem; }+ .ws-setup-hero h1 { margin: 0 0 0.5rem; font-size: 1.6rem; font-weight: 760; color: #f4f4f5; letter-spacing: -0.03em; }+ .ws-setup-hero p { margin: 0; color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.55; }+ .ws-setup-step { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; }+ .ws-setup-step-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }.ws-step-num {- width: 26px;- height: 26px;- border-radius: 50%;+ width: 26px; height: 26px; border-radius: 50%;background: rgba(255,255,255,0.18);border: 1.5px solid rgba(255,255,255,0.4);- color: #d4d4d8;- font-size: 0.78rem;- font-weight: 760;- display: flex;- align-items: center;- justify-content: center;- flex: none;- }- .ws-step-num.done {- background: rgba(255,255,255,0.15);- border-color: rgba(255,255,255,0.4);- color: #ffffff;- }- .ws-setup-step-head h3 {- margin: 0;- font-size: 0.92rem;- font-weight: 680;- color: #e4e4e7;- letter-spacing: -0.01em;- }- .ws-setup-step-head p {- margin: 0;- font-size: 0.8rem;- color: rgba(255,255,255,0.4);+ color: #d4d4d8; font-size: 0.78rem; font-weight: 760;+ display: flex; align-items: center; justify-content: center; flex: none;}+ .ws-step-num.done { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #ffffff; }+ .ws-setup-step-head h3 { margin: 0; font-size: 0.92rem; font-weight: 680; color: #e4e4e7; letter-spacing: -0.01em; }+ .ws-setup-step-head p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }.ws-setup-step-body { padding: 1.1rem; }-- /* agent picker */- .ws-agent-grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));- gap: 0.65rem;- }+ .ws-agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.65rem; }.ws-agent-card {- display: flex;- align-items: center;- gap: 0.65rem;- padding: 0.65rem 0.8rem;- border-radius: 10px;+ display: flex; align-items: center; gap: 0.65rem;+ padding: 0.65rem 0.8rem; border-radius: 10px;border: 1.5px solid rgba(255,255,255,0.09);background: rgba(255,255,255,0.04);- cursor: pointer;- transition: border-color 0.15s, background 0.15s;- text-align: left;+ cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left;}.ws-agent-card:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.07); }.ws-agent-card.selected { border-color: #f4f4f5; background: rgba(255,255,255,0.12); }- .ws-agent-avatar {- width: 36px;- height: 36px;- border-radius: 8px;- object-fit: cover;- flex: none;- background: rgba(255,255,255,0.15);- border: 1px solid rgba(255,255,255,0.2);- }+ .ws-agent-avatar { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); }.ws-agent-avatar-placeholder {- width: 36px;- height: 36px;- border-radius: 8px;- flex: none;+ width: 36px; height: 36px; border-radius: 8px; flex: none;background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.2));border: 1px solid rgba(255,255,255,0.2);- display: flex;- align-items: center;- justify-content: center;- font-size: 1rem;+ display: flex; align-items: center; justify-content: center; font-size: 1rem;}.ws-agent-info { min-width: 0; }- .ws-agent-name {- font-size: 0.82rem;- font-weight: 660;- color: #e4e4e7;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }- .ws-agent-uuid {- font-size: 0.7rem;- color: rgba(255,255,255,0.3);- font-family: monospace;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }- .ws-agent-empty {- color: rgba(255,255,255,0.35);- font-size: 0.85rem;- padding: 1rem 0;- text-align: center;- }+ .ws-agent-name { font-size: 0.82rem; font-weight: 660; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .ws-agent-uuid { font-size: 0.7rem; color: rgba(255,255,255,0.3); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .ws-agent-empty { color: rgba(255,255,255,0.35); font-size: 0.85rem; padding: 1rem 0; text-align: center; }.ws-agent-empty a { color: #d4d4d8; }-- /* API key area */- .ws-key-row {- display: flex;- gap: 0.65rem;- align-items: center;- }+ .ws-key-row { display: flex; gap: 0.65rem; align-items: center; }.ws-key-display {- flex: 1;- background: rgba(0,0,0,0.3);- border: 1px solid rgba(255,255,255,0.1);- border-radius: 8px;- padding: 0.6rem 0.85rem;- font-family: 'Courier New', monospace;- font-size: 0.8rem;- color: #c8c8cc;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- min-width: 0;+ flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;+ padding: 0.6rem 0.85rem; font-family: 'Courier New', monospace; font-size: 0.8rem; color: #c8c8cc;+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;}.ws-key-display.placeholder { color: rgba(255,255,255,0.2); font-style: italic; font-family: inherit; }.ws-btn {- appearance: none;- border: none;- border-radius: 9px;- padding: 0.55rem 1rem;- font: inherit;- font-size: 0.82rem;- font-weight: 660;- cursor: pointer;- transition: opacity 0.15s, transform 0.1s;- white-space: nowrap;- flex: none;+ appearance: none; border: none; border-radius: 9px; padding: 0.55rem 1rem;+ font: inherit; font-size: 0.82rem; font-weight: 660; cursor: pointer;+ transition: opacity 0.15s, transform 0.1s; white-space: nowrap; flex: none;}.ws-btn:active { transform: scale(0.97); }- .ws-btn-primary {- background: var(--screen-accent);- color: var(--screen-on-accent);- }+ .ws-btn-primary { background: var(--screen-accent); color: var(--screen-on-accent); }.ws-btn-primary:hover { opacity: 0.88; }.ws-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }- .ws-btn-ghost {- background: rgba(255,255,255,0.07);- border: 1px solid rgba(255,255,255,0.12);- color: rgba(255,255,255,0.7);- }+ .ws-btn-ghost { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }.ws-btn-ghost:hover { background: rgba(255,255,255,0.11); color: #fff; }- .ws-btn-copy {- background: rgba(255,255,255,0.07);- border: 1px solid rgba(255,255,255,0.12);- color: rgba(255,255,255,0.6);- padding: 0.55rem 0.75rem;- border-radius: 8px;- font-size: 0.8rem;- }+ .ws-btn-copy { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); padding: 0.55rem 0.75rem; border-radius: 8px; font-size: 0.8rem; }.ws-btn-copy.copied { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #ffffff; }- .ws-key-note {- font-size: 0.78rem;- color: rgba(255,255,255,0.35);- margin-top: 0.6rem;- line-height: 1.5;- }+ .ws-key-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 0.6rem; line-height: 1.5; }.ws-key-note strong { color: rgba(255,255,255,0.8); }-- /* Command block */- .ws-cmd-tabs {- display: flex;- gap: 0.4rem;- margin-bottom: 0.8rem;- }+ .ws-cmd-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }.ws-cmd-tab {- appearance: none;- border: 1px solid rgba(255,255,255,0.1);- background: rgba(255,255,255,0.04);- color: rgba(255,255,255,0.5);- border-radius: 7px;- padding: 0.3rem 0.7rem;- font: inherit;- font-size: 0.78rem;- font-weight: 640;- cursor: pointer;- transition: all 0.15s;- }- .ws-cmd-tab.active {- background: rgba(255,255,255,0.15);- border-color: rgba(255,255,255,0.4);- color: #d4d4d8;- }- .ws-cmd-block {- position: relative;- background: rgba(0,0,0,0.4);- border: 1px solid rgba(255,255,255,0.09);- border-radius: 10px;- padding: 1rem 1rem 1rem 1.1rem;- }- .ws-cmd-copy {- position: absolute;- top: 0.6rem;- right: 0.6rem;- }- .ws-cmd-block pre {- margin: 0;- font-family: 'Courier New', monospace;- font-size: 0.78rem;- line-height: 1.65;- color: #c8c8cc;- overflow-x: auto;- white-space: pre;- padding-right: 3rem;- }+ appearance: none; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);+ color: rgba(255,255,255,0.5); border-radius: 7px; padding: 0.3rem 0.7rem;+ font: inherit; font-size: 0.78rem; font-weight: 640; cursor: pointer; transition: all 0.15s;+ }+ .ws-cmd-tab.active { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #d4d4d8; }+ .ws-cmd-block { position: relative; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 1rem 1rem 1rem 1.1rem; }+ .ws-cmd-copy { position: absolute; top: 0.6rem; right: 0.6rem; }+ .ws-cmd-block pre { margin: 0; font-family: 'Courier New', monospace; font-size: 0.78rem; line-height: 1.65; color: #c8c8cc; overflow-x: auto; white-space: pre; padding-right: 3rem; }.ws-cmd-block pre .cmd-comment { color: rgba(255,255,255,0.3); }.ws-cmd-block pre .cmd-key { color: #d4d4d8; }.ws-cmd-block pre .cmd-val { color: #c8c8cc; }.ws-cmd-block pre .cmd-run { color: #d4d4d8; }.ws-cmd-block pre .cmd-dim { color: rgba(255,255,255,0.25); }-.ws-status-ok {- display: flex;- align-items: center;- gap: 0.5rem;- font-size: 0.82rem;- color: #ffffff;- margin-top: 0.9rem;- padding: 0.55rem 0.85rem;- background: rgba(255,255,255,0.08);- border: 1px solid rgba(255,255,255,0.2);- border-radius: 8px;+ display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #ffffff;+ margin-top: 0.9rem; padding: 0.55rem 0.85rem; background: rgba(255,255,255,0.08);+ border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;}.ws-watch-link {- display: inline-flex;- align-items: center;- gap: 0.45rem;- margin-top: 0.75rem;- background: var(--screen-accent);- color: var(--screen-on-accent);- border-radius: 9px;- padding: 0.6rem 1.2rem;- font-size: 0.88rem;- font-weight: 660;- text-decoration: none;- transition: opacity 0.15s;- width: fit-content;+ display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem;+ background: var(--screen-accent); color: var(--screen-on-accent); border-radius: 9px;+ padding: 0.6rem 1.2rem; font-size: 0.88rem; font-weight: 660; text-decoration: none;+ transition: opacity 0.15s; width: fit-content;}.ws-watch-link:hover { opacity: 0.88; }.ws-not-signed-in {- display: flex;- align-items: center;- gap: 0.6rem;- font-size: 0.85rem;- color: rgba(255,255,255,0.5);- padding: 0.8rem 1rem;- background: rgba(255,255,255,0.06);- border: 1px solid rgba(255,255,255,0.15);- border-radius: 8px;+ display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.5);+ padding: 0.8rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;}.ws-not-signed-in a { color: #d4d4d8; }.ws-spinner {- display: inline-block;- width: 14px;- height: 14px;- border: 2px solid rgba(255,255,255,0.3);- border-top-color: #f4f4f5;- border-radius: 50%;- animation: ws-spin 0.7s linear infinite;- flex: none;+ display: inline-block; width: 14px; height: 14px;+ border: 2px solid rgba(255,255,255,0.3); border-top-color: #f4f4f5;+ border-radius: 50%; animation: ws-spin 0.7s linear infinite; flex: none;}@keyframes ws-spin { to { transform: rotate(360deg); } }@@ -697,102 +819,31 @@@keyframes asc-ring { 0%{transform:scale(1);opacity:0.8}100%{transform:scale(1.6);opacity:0} }@keyframes asc-inner { 0%{opacity:0.5}100%{opacity:0} }@keyframes asc-fadein { from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none} }+ @keyframes asc-panel-in { from{opacity:0;transform:scale(0.96) translateY(6px)}to{opacity:1;transform:none} }+ @keyframes asc-toast-in { from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none} }+ @keyframes asc-toast-out { to{opacity:0;transform:translateY(8px)} }- /* ── task input bar ── */- .asc-task-bar {- flex: none;- border-top: 1px solid rgba(255,255,255,0.06);- background: rgba(4, 6, 15, 0.95);- backdrop-filter: blur(8px);- padding: 0.6rem 0.8rem;- display: flex;- flex-direction: column;- gap: 0.35rem;- }- .asc-task-form {- display: flex;- align-items: center;- gap: 0.55rem;- background: rgba(255,255,255,0.04);- border: 1px solid rgba(255,255,255,0.1);- border-radius: 10px;- padding: 0.45rem 0.55rem 0.45rem 0.7rem;- transition: border-color 0.15s, box-shadow 0.15s;- }- .asc-task-form:focus-within {- border-color: rgba(255,255,255,0.55);- box-shadow: 0 0 0 3px rgba(255,255,255,0.12);- }- .asc-task-icon {- color: rgba(255,255,255,0.6);- font-size: 0.72rem;- flex: none;- user-select: none;- }- .asc-task-input {- flex: 1;- min-width: 0;- background: transparent;- border: none;- outline: none;- color: rgba(255,255,255,0.9);- font: inherit;- font-size: 0.85rem;- caret-color: #f4f4f5;- }- .asc-task-input::placeholder { color: rgba(255,255,255,0.28); }- .asc-task-input:disabled { opacity: 0.5; }- .asc-task-send {- flex: none;- appearance: none;- border: none;- background: var(--screen-accent);- color: var(--screen-on-accent);- border-radius: 7px;- width: 30px;- height: 30px;- display: flex;- align-items: center;- justify-content: center;- cursor: pointer;- transition: opacity 0.15s, transform 0.1s;- }- .asc-task-send:hover { opacity: 0.88; }- .asc-task-send:active { transform: scale(0.93); }- .asc-task-send:disabled { opacity: 0.35; cursor: not-allowed; }- .asc-task-send.sending { opacity: 0.6; animation: asc-pulse 0.8s ease-in-out infinite; }- .asc-task-status {- font-size: 0.75rem;- min-height: 1rem;- padding-left: 0.2rem;- color: rgba(255,255,255,0.4);- transition: opacity 0.2s;- }- .asc-task-status.ok { color: var(--screen-live); }- .asc-task-status.err { color: #f4f4f5; }+ /* hide panels & taskbar in zen so screenshots are clean (cam optional, see body.asc-zen-cam) */+ body.asc-zen .asc-panel--log,+ body.asc-zen .asc-panel--stats { opacity: 0; pointer-events: none; transform: scale(0.97); }+ body.asc-zen:not(.asc-zen-cam) .asc-panel--cam { opacity: 0; pointer-events: none; transform: scale(0.97); }- /* ── fullscreen mode ── */- .asc-screen-panel:fullscreen { background: #000; }- .asc-screen-panel:fullscreen .asc-screen-label { display: none; }- .asc-screen-panel:fullscreen .asc-screen-wrap { align-items: stretch; }- .asc-screen-panel:fullscreen #asc-screen-canvas { max-height: 100%; border-radius: 0; }- .asc-screen-panel:fullscreen .asc-task-bar { display: none; }+ /* ── fullscreen ── */+ .asc-stage:fullscreen { background: #000; }/* ── responsive ── */- @media (max-width: 700px) {- .asc-main { flex-direction: column; }- .asc-screen-panel { flex: 0 0 55vh; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }- .asc-right-panel { flex: 1; }- .asc-webcam-wrap { padding: 0.6rem; }- .asc-webcam-bezel { max-width: 180px; }+ @media (max-width: 640px) {+ .asc-agent-name { max-width: 38vw; }+ .asc-ctl--label span { display: none; }+ .asc-panel--log { width: min(320px, calc(100% - 1.4rem)); }}</style></head><body><script src="/nav.js"></script>- <header class="asc-header">- <a class="back" id="asc-back" href="/agents">← Agents</a>+ <header class="asc-header" id="asc-header">+ <a class="back" id="asc-back" href="/agents" title="Back to agents">←</a><div class="asc-agent-info"><span class="asc-agent-name" id="asc-agent-name">Loading…</span><span class="asc-live-badge dark" id="asc-live-badge">@@ -800,20 +851,34 @@<span id="asc-badge-text">Connecting</span></span></div>- <div class="asc-header-right">- <a class="asc-btn" id="asc-all-live" href="/agents-live" style="text-decoration:none" title="All live agents">◳ All live</a>- <button class="asc-btn" id="asc-fullscreen-btn" title="Fullscreen screen view">⛶ Fullscreen</button>- <a class="asc-btn" id="asc-agent-link" href="/agents" style="text-decoration:none">View Agent →</a>+ <div class="asc-header-right" id="asc-controls">+ <div class="asc-ctl-group" id="asc-panel-toggles">+ <button class="asc-ctl" data-panel-toggle="cam" title="Avatar cam — C" aria-label="Toggle avatar cam">◉</button>+ <button class="asc-ctl" data-panel-toggle="log" title="Activity log — L" aria-label="Toggle activity log">☰</button>+ <button class="asc-ctl" data-panel-toggle="stats" title="Stream stats — I" aria-label="Toggle stats">📊</button>+ </div>+ <div class="asc-ctl-sep"></div>+ <button class="asc-ctl" id="asc-fit-btn" title="Fit / Fill screen — V" aria-label="Toggle screen fit">▢</button>+ <button class="asc-ctl" id="asc-shot-btn" title="Capture screenshot — S" aria-label="Screenshot">⎙</button>+ <button class="asc-ctl" id="asc-pip-btn" title="Picture-in-picture — P" aria-label="Picture in picture">⧉</button>+ <button class="asc-ctl" id="asc-fullscreen-btn" title="Fullscreen — F" aria-label="Fullscreen">⛶</button>+ <div class="asc-ctl-sep"></div>+ <button class="asc-ctl asc-ctl--zen asc-ctl--label" id="asc-zen-btn" title="Zen mode — hide everything for a clean shot — Z">◍ <span>Zen</span></button>+ <a class="asc-ctl" id="asc-all-live" href="/agents-live" title="All live agents">◳</a>+ <a class="asc-ctl asc-ctl--primary asc-ctl--label" id="asc-agent-link" href="/agents">Agent →</a></div></header>- <div class="asc-main" id="asc-main">+ <div class="asc-stage" id="asc-stage" style="display:none"><!-- populated by agent-screen.js -->- <div id="asc-no-agent" class="asc-no-agent" style="display:flex">- <div class="ws-spinner"></div>- </div></div>+ <div id="asc-no-agent" class="asc-no-agent" style="display:flex">+ <div class="ws-spinner"></div>+ </div>++ <div class="asc-toast-wrap" id="asc-toast-wrap"></div>+<script type="module" src="/src/agent-screen.js"></script><script src="/footer.js"></script></body>diff --git a/public/changelog.json b/public/changelog.jsonindex 282e6db0a..9adb84d34 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,21 @@{- "generated_at": "2026-06-28T23:30:20.151Z",+ "generated_at": "2026-06-29T01:50:41.663Z","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-29",+ "type": "update",+ "title": "Posting a labor-market bounty no longer hits a surprise rate limit",+ "summary": "Posting a bounty on the agent labor market used to share one rate-limit budget with the MCP agent tools, so heavy use of one could spuriously throttle the other and pop a confusing 'rate limit exceeded' with no guidance. Each surface now has its own budget, and if you do post too fast the message tells you exactly how many seconds to wait before trying again.",+ "link": "/labor-market",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-28","type": "update",@@ -68,6 +78,17 @@"improvement"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Agent Screen is now a movable workspace with a one-key Zen mode",+ "summary": "The live agent viewer got a full UX overhaul. The screen now fills the whole stage, and the avatar cam, activity log, and a new live stream-stats panel float on top — each one draggable, resizable, and minimizable, so you can arrange your view however you like (your layout is remembered). The activity log gained filters by type and a clear button. A new Stream Stats panel shows real-time FPS, frame count, resolution, data transferred, and uptime. Press Z for Zen mode to hide every panel and all chrome for a clean, screenshot-ready shot of just the screen and avatar cam. Plus one-tap screenshot capture, picture-in-picture, fit/fill toggle, and keyboard shortcuts (press ? for the list).",+ "link": "/agent-screen",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-28","type": "update",@@ -447,6 +468,16 @@"fix"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "The agent's walk preview now fills its whole card",+ "summary": "On an agent's page, the 'Walk with this agent' preview used to sit as a small box pinned to the left with the rest of the card empty beside it. It's now a proper two-column panel: the live avatar walks on the left while the right side explains how to drive it — drag to orbit, joystick to move, open the full walk for everyone. On phones it stacks into a single clean column.",+ "link": null,+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 54b2020e2..4423fbf88 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>Posting a labor-market bounty no longer hits a surprise rate limit</title>+ <link>https://three.ws/labor-market</link>+ <guid isPermaLink="false">2026-06-29:Posting a labor-market bounty no longer hits a surprise rate limit</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Posting a bounty on the agent labor market used to share one rate-limit budget with the MCP agent tools, so heavy use of one could spuriously throttle the other and pop a confusing 'rate limit exceeded' with no guidance. Each surface now has its own budget, and if you do post too fast the message tells you exactly how many seconds to wait before trying again.</description>+ </item><item><title>$THREE payments ride out brief price-feed blips instead of failing</title><link>https://three.ws/three-token</link>@@ -54,6 +62,14 @@<category>feature</category><description>The platform now autonomously ranks the top 10 three.ws agents by behavioral trust score every 30 minutes via a real x402 payment to the agent-reputation endpoint. Scores are synthesized from real on-chain pump.fun agent-payments activity, distribution/buyback success, and signed Solana attestations — not a subjective rating. The top 10 are promoted to the front of the marketplace recommended feed and marked with a ◈ Top Trust badge. The ranking is also stored as an oracle signal (topic: agent_reputation_leaderboard) for downstream systems to query. Full snapshot history is written to agent_reputation_leaderboard_snapshots so trust trends are auditable over time.</description></item>+ <item>+ <title>Agent Screen is now a movable workspace with a one-key Zen mode</title>+ <link>https://three.ws/agent-screen</link>+ <guid isPermaLink="false">2026-06-28:Agent Screen is now a movable workspace with a one-key Zen mode</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The live agent viewer got a full UX overhaul. The screen now fills the whole stage, and the avatar cam, activity log, and a new live stream-stats panel float on top — each one draggable, resizable, and minimizable, so you can arrange your view however you like (your layout is remembered). The activity log gained filters by type and a clear button. A new Stream Stats panel shows real-time FPS, frame count, resolution, data transferred, and uptime. Press Z for Zen mode to hide every panel and all chrome for a clean, screenshot-ready shot of just the screen and avatar cam. Plus one-tap screenshot capture, picture-in-picture, fit/fill toggle, and keyboard shortcuts (press ? for the list).</description>+ </item><item><title>Agent Studio's Brain editor is now a clean form, not a node graph</title><link>https://three.ws/agent-studio</link>@@ -342,6 +358,14 @@<category>fix</category><description>On pages with a white accent color, the "⑂ Save to my avatars" button (shown on any avatar you don't own) rendered white text on a white background — effectively invisible. The button now picks its text color from the actual button background, so a light button gets black text and a dark button keeps white, keeping the label legible everywhere it appears.</description></item>+ <item>+ <title>The agent's walk preview now fills its whole card</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:The agent's walk preview now fills its whole card</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>On an agent's page, the 'Walk with this agent' preview used to sit as a small box pinned to the left with the rest of the card empty beside it. It's now a proper two-column panel: the live avatar walks on the left while the right side explains how to drive it — drag to orbit, joystick to move, open the full walk for everyone. On phones it stacks into a single clean column.</description>+ </item><item><title>The Agents directory now lists every on-chain agent, not just ours</title><link>https://three.ws/agents</link>diff --git a/public/features.json b/public/features.jsonindex bc938060d..2b182ad97 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T23:30:20.129Z",+ "generated_at": "2026-06-29T01:50:41.650Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agent-screen.js b/src/agent-screen.jsindex 27ac4ab74..de4166552 100644--- a/src/agent-screen.js+++ b/src/agent-screen.js@@ -1,19 +1,23 @@-// /agent-screen — live agent screen viewer.+// /agent-screen — live agent screen viewer + workspace.//// URL: /agent-screen?agentId=<uuid>//-// Two surfaces, one SSE stream:-// Left (64%) — "Screen": renders the agent's latest screenshot frames onto-// a canvas. Scales to fit, letterboxed. Fullscreen button for-// focus mode. Shows a pulsing "waiting" overlay while dark.+// A full-bleed live "Screen" fills the stage; everything else is a floating,+// draggable, minimizable panel laid over it://-// Right (36%) — "Webcam": an offscreen Three.js renderer pointed at the-// agent's avatar head → captureStream() → <video> with a-// camera-feed bezel. Gives the agent presence — you're not-// just watching a screen, you're watching someone work.+// • Avatar Cam — an offscreen Three.js render of the agent's avatar head,+// giving the agent presence. Drag, resize, minimize, hide.+// • Activity Log — what the agent narrated with each push. Filter by type,+// clear, drag, resize, minimize, hide.+// • Stream Stats — live FPS / frames / resolution / data / uptime, computed+// from the real SSE frame stream (advanced; hidden by default).//-// Bottom-right — Activity log: scrolling list of what the agent narrated-// with each push.+// Two viewing modes, both one keystroke away:+// • Default — screen + panels + task bar + header chrome.+// • Zen (Z) — hide ALL chrome for a clean screenshot: just the screen, and+// optionally the avatar cam. Built for sharing.+//+// Layout (panel positions, sizes, visibility, mode, fit) persists per browser.import {PerspectiveCamera,@@ -28,18 +32,53 @@ import { clone as cloneSkinnedScene } from 'three/addons/utils/SkeletonUtils.js'import { AnimationManager } from './animation-manager.js';import { createAgentScreenClient } from './shared/agent-screen-client.js';import { agentAvatarGlb } from './shared/agent-3d.js';+import { getMeshoptDecoder } from './viewer/internal.js';+import { ScreenshotModal } from './components/screenshot-modal.js';++// One meshopt-aware loader, built once. Optimized agent avatars ship with+// EXT_meshopt_compression, so the decoder must be wired before the loader can+// parse a single bufferView — otherwise GLTFLoader throws on compressed files.+let _glbLoaderPromise = null;+function getAvatarLoader() {+ if (!_glbLoaderPromise) {+ _glbLoaderPromise = getMeshoptDecoder()+ .then((decoder) => {+ const loader = new GLTFLoader();+ loader.setMeshoptDecoder(decoder);+ return loader;+ })+ .catch(() => new GLTFLoader()); // uncompressed avatars still load+ }+ return _glbLoaderPromise;+}const params = new URLSearchParams(location.search);const agentId = params.get('agentId') || '';const noAgentEl = document.getElementById('asc-no-agent');-const mainEl = document.getElementById('asc-main');+const stageEl = document.getElementById('asc-stage');const agentNameEl = document.getElementById('asc-agent-name');const liveBadgeEl = document.getElementById('asc-live-badge');const badgeTextEl = document.getElementById('asc-badge-text');const backEl = document.getElementById('asc-back');const agentLinkEl = document.getElementById('asc-agent-link');+const controlsEl = document.getElementById('asc-controls');const fsBtn = document.getElementById('asc-fullscreen-btn');+const toastWrap = document.getElementById('asc-toast-wrap');++const clamp = (n, lo, hi) => Math.max(lo, Math.min(hi, n));++// ── transient toast ─────────────────────────────────────────────────────────+function toast(msg, ms = 2200) {+ const el = document.createElement('div');+ el.className = 'asc-toast';+ el.textContent = msg;+ toastWrap.appendChild(el);+ setTimeout(() => {+ el.classList.add('out');+ setTimeout(() => el.remove(), 260);+ }, ms);+}if (!agentId) {renderSetup();@@ -55,12 +94,10 @@ if (!agentId) {// 3. Copy the exact run commandasync function renderSetup() {- // Update header to reflect setup modedocument.title = 'Launch Worker · Agent Screen · three.ws';- document.getElementById('asc-agent-name').textContent = 'Worker Setup';- document.getElementById('asc-live-badge').style.display = 'none';- document.getElementById('asc-fullscreen-btn').style.display = 'none';- document.getElementById('asc-agent-link').style.display = 'none';+ agentNameEl.textContent = 'Worker Setup';+ liveBadgeEl.style.display = 'none';+ controlsEl.style.display = 'none';const container = noAgentEl;container.className = 'ws-setup';@@ -84,7 +121,6 @@ async function renderSetup() {}} catch { /* network error — treat as signed-out */ }- // ── Render ─────────────────────────────────────────────────────────────function buildCommand() {const id = selectedAgent?.id || '<AGENT_ID>';const key = apiKey || '<AGENT_JWT>';@@ -222,7 +258,7 @@ async function renderSetup() {<!-- Step 3: Run command --><div class="ws-setup-step" ${!step1Done ? 'style="opacity:0.45;pointer-events:none"' : ''}><div class="ws-setup-step-head">- <div class="ws-step-num">${step1Done && step2Done ? '3' : '3'}</div>+ <div class="ws-step-num">3</div><div><h3>Run the worker</h3><p>Copy and run in your terminal from the <code style="font-size:0.78rem;color:#d4d4d8">workers/agent-screen-worker/</code> directory</p>@@ -251,7 +287,6 @@ async function renderSetup() {</div></div>`;- // Bind eventscontainer.querySelectorAll('.ws-agent-card').forEach((card) => {card.addEventListener('click', () => {selectedAgent = { id: card.dataset.id, name: card.dataset.name };@@ -317,73 +352,165 @@ async function renderSetup() {render();}+// ── workspace layout persistence ─────────────────────────────────────────────++const LS_KEY = 'twx_asc_workspace_v1';++function defaultLayout() {+ return {+ zen: false,+ zenCam: true, // keep the avatar cam visible in zen by default+ fit: 'contain', // 'contain' | 'cover'+ panels: {+ cam: { hidden: false, min: false, x: null, y: null, w: 260 },+ log: { hidden: false, min: false, x: null, y: null, w: 320, h: null },+ stats: { hidden: true, min: false, x: null, y: null, w: 218 },+ },+ };+}++function loadLayout() {+ const base = defaultLayout();+ try {+ const saved = JSON.parse(localStorage.getItem(LS_KEY) || '{}');+ base.zen = !!saved.zen;+ base.zenCam = saved.zenCam !== false;+ base.fit = saved.fit === 'cover' ? 'cover' : 'contain';+ for (const k of Object.keys(base.panels)) {+ if (saved.panels && saved.panels[k]) Object.assign(base.panels[k], saved.panels[k]);+ }+ } catch { /* corrupt or absent — defaults */ }+ return base;+}+// ─────────────────────────────────────────────────────────────────────────────async function boot(id) {- // Build the split-view DOM- mainEl.innerHTML = `- <div class="asc-screen-panel" id="asc-screen-panel">- <div class="asc-screen-label">Screen</div>- <div class="asc-screen-wrap">- <canvas id="asc-screen-canvas"></canvas>- <div class="asc-screen-overlay" id="asc-screen-overlay">- <div class="pulse-ring"></div>- <p>Waiting for agent…</p>- <small>The agent will appear here once it starts broadcasting</small>+ stageEl.style.display = '';+ const layout = loadLayout();++ let saveTimer = null;+ function saveLayout() {+ clearTimeout(saveTimer);+ saveTimer = setTimeout(() => {+ try { localStorage.setItem(LS_KEY, JSON.stringify(layout)); } catch { /* quota — ignore */ }+ }, 250);+ }++ // Build the stage DOM: full-bleed screen + floating panels + task bar.+ stageEl.innerHTML = `+ <div class="asc-screen-stage">+ <canvas id="asc-screen-canvas"></canvas>+ </div>+ <div class="asc-screen-overlay" id="asc-screen-overlay">+ <div class="pulse-ring"></div>+ <p>Waiting for agent…</p>+ <small>The agent will appear here once it starts broadcasting</small>+ </div>++ <!-- Avatar cam panel -->+ <div class="asc-panel asc-panel--cam" id="asc-panel-cam" data-panel="cam">+ <div class="asc-panel-head" data-drag>+ <span class="asc-panel-grip">⠿</span>+ <span class="asc-panel-title">Avatar Cam</span>+ <div class="asc-panel-btns">+ <button class="asc-panel-btn" data-act="min" title="Minimize">▁</button>+ <button class="asc-panel-btn" data-act="close" title="Hide (C)">✕</button></div></div>- <div class="asc-task-bar" id="asc-task-bar">- <form class="asc-task-form" id="asc-task-form" autocomplete="off">- <div class="asc-task-icon">▶</div>- <input- class="asc-task-input"- id="asc-task-input"- type="text"- placeholder="Give your agent a task… (research, browse, monitor anything)"- maxlength="1000"- spellcheck="false"- >- <button class="asc-task-send" id="asc-task-send" type="submit" title="Send task">- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">- <path d="M14.5 8L1.5 1.5L5 8L1.5 14.5L14.5 8Z" fill="currentColor"/>- </svg>- </button>- </form>- <div class="asc-task-status" id="asc-task-status"></div>+ <div class="asc-panel-body asc-cam-body">+ <div class="asc-webcam-bezel" id="asc-webcam-bezel">+ <div class="asc-webcam-idle" id="asc-webcam-idle">Loading avatar…</div>+ <div class="asc-webcam-badge" id="asc-webcam-badge" style="display:none">+ <span class="cam-dot"></span>+ <span id="asc-webcam-name">—</span>+ </div>+ </div></div>+ <div class="asc-resize" data-resize="w"></div></div>- <div class="asc-right-panel">- <div class="asc-webcam-section">- <div class="asc-webcam-label">Avatar Cam</div>- <div class="asc-webcam-wrap">- <div class="asc-webcam-bezel" id="asc-webcam-bezel">- <div class="asc-webcam-idle" id="asc-webcam-idle">Loading avatar…</div>- <div class="asc-webcam-badge" id="asc-webcam-badge" style="display:none">- <span class="cam-dot"></span>- <span id="asc-webcam-name">—</span>- </div>- </div>++ <!-- Activity log panel -->+ <div class="asc-panel asc-panel--log" id="asc-panel-log" data-panel="log">+ <div class="asc-panel-head" data-drag>+ <span class="asc-panel-grip">⠿</span>+ <span class="asc-panel-title">Activity Log</span>+ <div class="asc-panel-btns">+ <button class="asc-panel-btn" data-act="min" title="Minimize">▁</button>+ <button class="asc-panel-btn" data-act="close" title="Hide (L)">✕</button></div></div>- <div class="asc-log-section">- <div class="asc-log-label">Activity Log</div>+ <div class="asc-panel-body">+ <div class="asc-log-tools">+ <button class="asc-log-filter active" data-filter="all">All</button>+ <button class="asc-log-filter" data-filter="trade">Trade</button>+ <button class="asc-log-filter" data-filter="analysis">Analysis</button>+ <button class="asc-log-filter" data-filter="activity">Activity</button>+ <button class="asc-log-filter asc-log-clear" id="asc-log-clear" data-filter="">Clear</button>+ </div><div id="asc-log"><div class="asc-log-empty" id="asc-log-empty">No activity yet</div></div></div>- <div class="asc-activity-bar">- <span class="asc-activity-icon">⚡</span>- <span id="asc-current-activity">Waiting for agent…</span>+ <div class="asc-resize" data-resize="wh"></div>+ </div>++ <!-- Stream stats panel (advanced) -->+ <div class="asc-panel asc-panel--stats" id="asc-panel-stats" data-panel="stats">+ <div class="asc-panel-head" data-drag>+ <span class="asc-panel-grip">⠿</span>+ <span class="asc-panel-title">Stream Stats</span>+ <div class="asc-panel-btns">+ <button class="asc-panel-btn" data-act="min" title="Minimize">▁</button>+ <button class="asc-panel-btn" data-act="close" title="Hide (I)">✕</button>+ </div>+ </div>+ <div class="asc-panel-body">+ <div class="asc-stats-grid">+ <div class="asc-stat-row"><span class="asc-stat-key">Status</span><span class="asc-stat-val dim" id="st-status">—</span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">FPS</span><span class="asc-stat-val" id="st-fps">0.0</span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">Frames</span><span class="asc-stat-val" id="st-frames">0</span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">Resolution</span><span class="asc-stat-val" id="st-res">—</span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">Data</span><span class="asc-stat-val" id="st-data">0<span class="unit">KB</span></span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">Last frame</span><span class="asc-stat-val dim" id="st-age">—</span></div>+ <div class="asc-stat-row"><span class="asc-stat-key">Uptime</span><span class="asc-stat-val dim" id="st-uptime">—</span></div>+ </div></div></div>++ <!-- Task input -->+ <div class="asc-task-bar" id="asc-task-bar">+ <form class="asc-task-form" id="asc-task-form" autocomplete="off">+ <div class="asc-task-icon">▶</div>+ <input+ class="asc-task-input"+ id="asc-task-input"+ type="text"+ placeholder="Give your agent a task… (research, browse, monitor anything)"+ maxlength="1000"+ spellcheck="false"+ >+ <button class="asc-task-send" id="asc-task-send" type="submit" title="Send task">+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M14.5 8L1.5 1.5L5 8L1.5 14.5L14.5 8Z" fill="currentColor"/>+ </svg>+ </button>+ </form>+ <div class="asc-task-status" id="asc-task-status"></div>+ </div>++ <!-- Zen exit hint -->+ <div class="asc-zen-hint" id="asc-zen-hint">+ <span>Zen mode · <kbd>C</kbd> cam · <kbd>Z</kbd> exit</span>+ <button id="asc-zen-exit">Exit</button>+ </div>`;const screenCanvas = document.getElementById('asc-screen-canvas');const screenOverlay = document.getElementById('asc-screen-overlay');const screenCtx = screenCanvas.getContext('2d');const logEl = document.getElementById('asc-log');- const logEmpty = document.getElementById('asc-log-empty');- const currentActivity = document.getElementById('asc-current-activity');+ let logEmpty = document.getElementById('asc-log-empty');const webcamBezel = document.getElementById('asc-webcam-bezel');const webcamIdle = document.getElementById('asc-webcam-idle');const webcamBadge = document.getElementById('asc-webcam-badge');@@ -403,7 +530,7 @@ async function boot(id) {webcamName.textContent = agentName;backEl.href = `/agents/${id}`;agentLinkEl.href = `/agents/${id}`;- agentLinkEl.textContent = `View ${agentName} →`;+ agentLinkEl.innerHTML = `${esc(agentName)} →`;try {avatarGlbUrl = await agentAvatarGlb(agent);} catch { /* fall through to default */ }@@ -431,28 +558,33 @@ async function boot(id) {let webcamAnimManager = null;let webcamAvatar = null;let webcamRafId = null;- let webcamStream = null;+ let webcamCanvas = null;++ function sizeWebcam() {+ if (!webcamCanvas) return;+ const bw = webcamBezel.clientWidth || 256;+ const bh = Math.round(bw * 3 / 4);+ webcamRenderer.setSize(bw, bh, false);+ }async function mountAvatarWebcam(glbUrl) {try {- const loader = new GLTFLoader();+ const loader = await getAvatarLoader();const gltf = await loader.loadAsync(glbUrl || '/avatars/default.glb');const model = cloneSkinnedScene(gltf.scene);webcamScene.add(model);webcamAvatar = model;- // Frame avatar in the camera: center on headconst box = new Box3().setFromObject(model);const h = box.max.y;webcamCamera.position.set(0, h - 0.12, 0.72);webcamCamera.lookAt(0, h - 0.18, 0);- // Drive idle animation via the universal canonical clip library, which- // retargets the pre-baked idle onto ANY humanoid rig (Mixamo, Avaturn,- // VRM, …). The GLB's own gltf.animations are intentionally ignored — most- // avatars ship without animation, so the shared clip is what gives every- // agent presence on the cam. A rig that can't be skeleton-driven falls- // back to its authored bind pose (supportsCanonicalClips() gate).+ // Universal canonical clip library retargets the pre-baked idle onto ANY+ // humanoid rig (Mixamo, Avaturn, VRM, …). The GLB's own animations are+ // intentionally ignored — most avatars ship none, so the shared clip is+ // what gives every agent presence. A rig that can't be skeleton-driven+ // falls back to its authored bind pose (supportsCanonicalClips() gate).webcamAnimManager = new AnimationManager();webcamAnimManager.attach(model, { avatarUrl: glbUrl || '/avatars/default.glb' });if (webcamAnimManager.supportsCanonicalClips()) {@@ -469,24 +601,17 @@ async function boot(id) {webcamAnimManager.play('idle');}} catch (err) {- // Non-fatal: a frozen bind-pose avatar still gives presence.console.warn('[agent-screen] idle clip load failed:', err);}}- // Size the renderer to match the bezel- const bw = webcamBezel.clientWidth || 300;- const bh = Math.round(bw * 3 / 4);- webcamRenderer.setSize(bw, bh);-- // Inject canvas into the bezel- const canvas = webcamRenderer.domElement;- canvas.style.cssText = 'width:100%;height:100%;object-fit:cover;border-radius:12px;';+ webcamCanvas = webcamRenderer.domElement;+ webcamCanvas.style.cssText = 'width:100%;height:100%;object-fit:cover;';+ sizeWebcam();webcamIdle.style.display = 'none';- webcamBezel.appendChild(canvas);+ webcamBezel.appendChild(webcamCanvas);webcamBadge.style.display = 'flex';- // Start render loop — captureStream feeds the "live" feellet last = 0;function webcamTick(t) {webcamRafId = requestAnimationFrame(webcamTick);@@ -502,11 +627,7 @@ async function boot(id) {}}- if (avatarGlbUrl) {- mountAvatarWebcam(avatarGlbUrl);- } else {- mountAvatarWebcam('/avatars/default.glb');- }+ mountAvatarWebcam(avatarGlbUrl || '/avatars/default.glb');// ── screen canvas rendering ────────────────────────────────────────────let lastFrameImg = null;@@ -517,8 +638,6 @@ async function boot(id) {img.onload = () => {const w = img.naturalWidth || 1280;const h = img.naturalHeight || 720;- // Reassigning canvas dimensions clears + reallocates the backing store;- // only do it when the frame size actually changes.if (screenCanvas.width !== w) screenCanvas.width = w;if (screenCanvas.height !== h) screenCanvas.height = h;screenCtx.drawImage(img, 0, 0);@@ -542,11 +661,68 @@ async function boot(id) {<p>Agent is offline</p><small>Stream will resume when the agent reconnects</small>`;- currentActivity.textContent = 'Agent offline';}+ // ── live stream stats (all real, derived from the SSE frames) ───────────+ const st = {+ status: document.getElementById('st-status'),+ fps: document.getElementById('st-fps'),+ frames: document.getElementById('st-frames'),+ res: document.getElementById('st-res'),+ data: document.getElementById('st-data'),+ age: document.getElementById('st-age'),+ uptime: document.getElementById('st-uptime'),+ };+ let frameCount = 0;+ let bytesTotal = 0;+ let streamStart = 0;+ let lastFrameAt = 0;+ const frameTimes = []; // recent arrival timestamps for FPS++ function recordFrame(frame) {+ const now = Date.now();+ frameCount++;+ if (!streamStart) streamStart = now;+ lastFrameAt = now;+ if (frame?.data) bytesTotal += Math.round(frame.data.length * 0.75); // base64 → bytes+ frameTimes.push(now);+ while (frameTimes.length > 30) frameTimes.shift();+ }++ function fmtBytes(b) {+ if (b < 1024) return `${b}<span class="unit">B</span>`;+ if (b < 1024 * 1024) return `${(b / 1024).toFixed(1)}<span class="unit">KB</span>`;+ return `${(b / 1024 / 1024).toFixed(2)}<span class="unit">MB</span>`;+ }+ function fmtClock(ms) {+ const s = Math.floor(ms / 1000);+ const m = Math.floor(s / 60);+ const ss = String(s % 60).padStart(2, '0');+ if (m >= 60) { const hh = Math.floor(m / 60); return `${hh}:${String(m % 60).padStart(2, '0')}:${ss}`; }+ return `${m}:${ss}`;+ }++ function updateStats() {+ const live = !liveBadgeEl.classList.contains('dark');+ st.status.textContent = live ? 'LIVE' : (streamStart ? 'OFFLINE' : '—');+ st.status.classList.toggle('dim', !live);+ // FPS over the rolling window+ let fps = 0;+ if (frameTimes.length >= 2) {+ const span = (frameTimes[frameTimes.length - 1] - frameTimes[0]) / 1000;+ if (span > 0) fps = (frameTimes.length - 1) / span;+ }+ st.fps.textContent = fps.toFixed(1);+ st.frames.textContent = String(frameCount);+ st.res.textContent = screenCanvas.width ? `${screenCanvas.width}×${screenCanvas.height}` : '—';+ st.data.innerHTML = fmtBytes(bytesTotal);+ st.age.textContent = lastFrameAt ? `${Math.round((Date.now() - lastFrameAt) / 1000)}s ago` : '—';+ st.uptime.textContent = streamStart ? fmtClock(Date.now() - streamStart) : '—';+ }+ setInterval(updateStats, 1000);+// ── activity log ──────────────────────────────────────────────────────- const MAX_LOG = 80;+ const MAX_LOG = 120;let logCount = 0;function fmtTime(ts) {@@ -555,10 +731,10 @@ async function boot(id) {}function addLogEntry({ ts, activity, type }) {- logEmpty?.remove();+ if (logEmpty) { logEmpty.remove(); logEmpty = null; }const entry = document.createElement('div');- entry.className = 'asc-log-entry';const typeLabel = type || 'activity';+ entry.className = `asc-log-entry type-${typeLabel}`;entry.innerHTML = `<span class="asc-log-time">${fmtTime(ts || Date.now())}</span><span class="asc-log-type ${typeLabel}">${typeLabel}</span>@@ -566,13 +742,32 @@ async function boot(id) {`;logEl.prepend(entry);logCount++;- // Trim old entrieswhile (logCount > MAX_LOG) {logEl.lastElementChild?.remove();logCount--;}}+ // log filter chips + clear+ logEl.parentElement.querySelectorAll('.asc-log-filter').forEach((btn) => {+ btn.addEventListener('click', () => {+ if (btn.id === 'asc-log-clear') {+ logEl.querySelectorAll('.asc-log-entry').forEach((e) => e.remove());+ logCount = 0;+ logEmpty = document.createElement('div');+ logEmpty.className = 'asc-log-empty';+ logEmpty.textContent = 'No activity yet';+ logEl.appendChild(logEmpty);+ return;+ }+ const f = btn.dataset.filter;+ logEl.parentElement.querySelectorAll('.asc-log-filter:not(.asc-log-clear)')+ .forEach((b) => b.classList.toggle('active', b === btn));+ logEl.classList.remove('filtered-trade', 'filtered-analysis', 'filtered-activity', 'filtered-screenshot');+ if (f && f !== 'all') logEl.classList.add(`filtered-${f}`);+ });+ });+// ── SSE client ─────────────────────────────────────────────────────────const client = createAgentScreenClient(id, {onOpen({ agentName: n }) {@@ -581,11 +776,9 @@ async function boot(id) {},onFrame(frame) {setLive();+ recordFrame(frame);if (frame.data) renderFrame(frame);- if (frame.activity) {- currentActivity.textContent = frame.activity;- addLogEntry(frame);- }+ if (frame.activity) addLogEntry(frame);},onLog(entries) {entries.forEach(addLogEntry);@@ -599,7 +792,7 @@ async function boot(id) {client.connect();- // ── task input ────────────────────────────────────────────────────────+ // ── task input ──────────────────────────────────────────────────────────const taskForm = document.getElementById('asc-task-form');const taskInput = document.getElementById('asc-task-input');const taskStatus = document.getElementById('asc-task-status');@@ -649,17 +842,279 @@ async function boot(id) {}});- // ── fullscreen ─────────────────────────────────────────────────────────- const screenPanel = document.getElementById('asc-screen-panel');- fsBtn.addEventListener('click', () => {- if (!document.fullscreenElement) {- screenPanel.requestFullscreen?.().catch(() => {});- } else {- document.exitFullscreen?.().catch(() => {});+ // ── panels: drag / resize / minimize / hide + persistence ────────────────+ const panelEls = {+ cam: document.getElementById('asc-panel-cam'),+ log: document.getElementById('asc-panel-log'),+ stats: document.getElementById('asc-panel-stats'),+ };+ let zTop = 30;++ function focusPanel(el) {+ el.style.zIndex = String(++zTop);+ }++ function placePanel(name) {+ const el = panelEls[name];+ const p = layout.panels[name];+ const sr = stageEl.getBoundingClientRect();+ // width / height+ if (p.w) el.style.width = `${p.w}px`;+ if (p.h && name === 'log') el.style.height = `${p.h}px`;+ // default position if none saved yet+ const pw = el.offsetWidth || p.w || 240;+ const ph = el.offsetHeight || 200;+ let x = p.x, y = p.y;+ if (x == null || y == null) {+ const M = 16;+ if (name === 'stats') { x = M; y = M; }+ else if (name === 'log') { x = sr.width - pw - M; y = M; }+ else { x = sr.width - pw - M; y = sr.height - ph - M; } // cam → bottom-right+ }+ x = clamp(x, 0, Math.max(0, sr.width - pw));+ y = clamp(y, 0, Math.max(0, sr.height - ph));+ el.style.left = `${x}px`;+ el.style.top = `${y}px`;+ el.style.right = 'auto';+ el.style.bottom = 'auto';+ el.classList.toggle('minimized', !!p.min);+ el.hidden = !!p.hidden;+ updateToggleButtons();+ }++ function makeDraggable(name) {+ const el = panelEls[name];+ const handle = el.querySelector('[data-drag]');+ let dragging = false, sx = 0, sy = 0, ox = 0, oy = 0;+ handle.addEventListener('pointerdown', (e) => {+ if (e.target.closest('.asc-panel-btn')) return;+ dragging = true;+ handle.setPointerCapture(e.pointerId);+ el.classList.add('dragging');+ focusPanel(el);+ const r = el.getBoundingClientRect();+ const sr = stageEl.getBoundingClientRect();+ ox = r.left - sr.left; oy = r.top - sr.top;+ sx = e.clientX; sy = e.clientY;+ });+ handle.addEventListener('pointermove', (e) => {+ if (!dragging) return;+ const sr = stageEl.getBoundingClientRect();+ const nx = clamp(ox + (e.clientX - sx), 0, sr.width - el.offsetWidth);+ const ny = clamp(oy + (e.clientY - sy), 0, sr.height - el.offsetHeight);+ el.style.left = `${nx}px`;+ el.style.top = `${ny}px`;+ });+ const end = () => {+ if (!dragging) return;+ dragging = false;+ el.classList.remove('dragging');+ layout.panels[name].x = parseFloat(el.style.left) || 0;+ layout.panels[name].y = parseFloat(el.style.top) || 0;+ saveLayout();+ };+ handle.addEventListener('pointerup', end);+ handle.addEventListener('pointercancel', end);+ }++ function makeResizable(name) {+ const el = panelEls[name];+ const handle = el.querySelector('[data-resize]');+ if (!handle) return;+ const mode = handle.dataset.resize; // 'w' | 'wh'+ let resizing = false, sx = 0, sy = 0, sw = 0, sh = 0;+ handle.addEventListener('pointerdown', (e) => {+ e.stopPropagation();+ resizing = true;+ handle.setPointerCapture(e.pointerId);+ focusPanel(el);+ sx = e.clientX; sy = e.clientY;+ sw = el.offsetWidth; sh = el.offsetHeight;+ });+ handle.addEventListener('pointermove', (e) => {+ if (!resizing) return;+ const sr = stageEl.getBoundingClientRect();+ const maxW = sr.width - el.offsetLeft - 8;+ const w = clamp(sw + (e.clientX - sx), 168, Math.max(168, maxW));+ el.style.width = `${w}px`;+ layout.panels[name].w = Math.round(w);+ if (mode === 'wh') {+ const maxH = sr.height - el.offsetTop - 8;+ const h = clamp(sh + (e.clientY - sy), 150, Math.max(150, maxH));+ el.style.height = `${h}px`;+ layout.panels[name].h = Math.round(h);+ } else {+ sizeWebcam(); // cam: keep renderer matched to new width+ }+ });+ const end = () => { if (resizing) { resizing = false; saveLayout(); sizeWebcam(); } };+ handle.addEventListener('pointerup', end);+ handle.addEventListener('pointercancel', end);+ }++ for (const name of Object.keys(panelEls)) {+ const el = panelEls[name];+ makeDraggable(name);+ makeResizable(name);+ el.addEventListener('pointerdown', () => focusPanel(el));+ el.querySelector('[data-act="min"]').addEventListener('click', () => {+ const p = layout.panels[name];+ p.min = !p.min;+ el.classList.toggle('minimized', p.min);+ saveLayout();+ });+ el.querySelector('[data-act="close"]').addEventListener('click', () => setPanelHidden(name, true));+ }++ function setPanelHidden(name, hidden) {+ layout.panels[name].hidden = hidden;+ const el = panelEls[name];+ el.hidden = hidden;+ if (!hidden) { placePanel(name); focusPanel(el); sizeWebcam(); }+ updateToggleButtons();+ saveLayout();+ }+ function togglePanel(name) { setPanelHidden(name, !layout.panels[name].hidden); }++ function updateToggleButtons() {+ controlsEl.querySelectorAll('[data-panel-toggle]').forEach((b) => {+ b.classList.toggle('active', !layout.panels[b.dataset.panelToggle].hidden);+ });+ }++ controlsEl.querySelectorAll('[data-panel-toggle]').forEach((b) => {+ b.addEventListener('click', () => togglePanel(b.dataset.panelToggle));+ });++ // initial placement (after layout so offsetWidth is correct)+ requestAnimationFrame(() => {+ for (const name of Object.keys(panelEls)) placePanel(name);+ sizeWebcam();+ });++ // keep panels inside the stage on resize+ window.addEventListener('resize', () => {+ for (const name of Object.keys(panelEls)) {+ if (!layout.panels[name].hidden) placePanel(name);}+ sizeWebcam();+ });++ // ── fit / fill ───────────────────────────────────────────────────────────+ const fitBtn = document.getElementById('asc-fit-btn');+ function applyFit() {+ stageEl.classList.toggle('fit-cover', layout.fit === 'cover');+ fitBtn.classList.toggle('active', layout.fit === 'cover');+ fitBtn.title = layout.fit === 'cover' ? 'Fill (cropped) — click to fit — V' : 'Fit (letterboxed) — click to fill — V';+ }+ function toggleFit() {+ layout.fit = layout.fit === 'cover' ? 'contain' : 'cover';+ applyFit();+ saveLayout();+ toast(layout.fit === 'cover' ? 'Screen: fill' : 'Screen: fit');+ }+ fitBtn.addEventListener('click', toggleFit);+ applyFit();++ // ── zen mode ──────────────────────────────────────────────────────────────+ const zenBtn = document.getElementById('asc-zen-btn');+ document.getElementById('asc-zen-exit').addEventListener('click', () => setZen(false));+ function applyZen() {+ document.body.classList.toggle('asc-zen', layout.zen);+ document.body.classList.toggle('asc-zen-cam', layout.zen && layout.zenCam);+ zenBtn.classList.toggle('active', layout.zen);+ }+ function setZen(on) {+ layout.zen = on;+ applyZen();+ saveLayout();+ if (on) toast('Zen mode — press Z to exit, C for cam');+ }+ zenBtn.addEventListener('click', () => setZen(!layout.zen));+ applyZen();++ // peek header / task bar near edges while in zen+ let peekTimer = null;+ stageEl.addEventListener('pointermove', (e) => {+ if (!layout.zen) return;+ const r = stageEl.getBoundingClientRect();+ const nearTop = e.clientY - r.top < 56;+ const nearBottom = r.bottom - e.clientY < 80;+ document.body.classList.toggle('asc-peek', nearTop);+ document.body.classList.toggle('asc-peek-bottom', nearBottom);+ clearTimeout(peekTimer);+ peekTimer = setTimeout(() => {+ document.body.classList.remove('asc-peek', 'asc-peek-bottom');+ }, 2400);+ });++ // ── screenshot (real canvas capture → share modal) ───────────────────────+ const shotModal = new ScreenshotModal(document.body);+ const shotBtn = document.getElementById('asc-shot-btn');+ function screenshot() {+ if (!screenCanvas.width || !lastFrameImg) { toast('No frame to capture yet'); return; }+ screenCanvas.toBlob((blob) => {+ if (blob) shotModal.show(blob);+ else toast('Capture failed');+ }, 'image/png');+ }+ shotBtn.addEventListener('click', screenshot);++ // ── picture-in-picture (real PiP of the live screen) ─────────────────────+ const pipBtn = document.getElementById('asc-pip-btn');+ let pipVideo = null;+ if (!document.pictureInPictureEnabled) pipBtn.style.display = 'none';+ async function togglePip() {+ try {+ if (document.pictureInPictureElement) { await document.exitPictureInPicture(); return; }+ if (!screenCanvas.width) { toast('No frame yet'); return; }+ if (!pipVideo) {+ pipVideo = document.createElement('video');+ pipVideo.muted = true;+ pipVideo.playsInline = true;+ pipVideo.style.cssText = 'position:fixed;width:1px;height:1px;opacity:0;pointer-events:none;left:-9999px';+ document.body.appendChild(pipVideo);+ pipVideo.srcObject = screenCanvas.captureStream(15);+ pipVideo.addEventListener('leavepictureinpicture', () => pipBtn.classList.remove('active'));+ }+ await pipVideo.play().catch(() => {});+ await pipVideo.requestPictureInPicture();+ pipBtn.classList.add('active');+ } catch (err) {+ console.warn('[agent-screen] PiP failed:', err);+ toast('Picture-in-picture unavailable');+ }+ }+ pipBtn.addEventListener('click', togglePip);++ // ── fullscreen ───────────────────────────────────────────────────────────+ fsBtn.addEventListener('click', () => {+ if (!document.fullscreenElement) stageEl.requestFullscreen?.().catch(() => {});+ else document.exitFullscreen?.().catch(() => {});});document.addEventListener('fullscreenchange', () => {- fsBtn.textContent = document.fullscreenElement ? '✕ Exit' : '⛶ Fullscreen';+ fsBtn.classList.toggle('active', !!document.fullscreenElement);+ });++ // ── keyboard shortcuts ───────────────────────────────────────────────────+ const help = buildHelpOverlay();+ window.addEventListener('keydown', (e) => {+ if (e.target.matches('input, textarea') || e.metaKey || e.ctrlKey || e.altKey) return;+ const k = e.key.toLowerCase();+ if (k === 'z') { setZen(!layout.zen); e.preventDefault(); }+ else if (k === 'c') { if (layout.zen) { layout.zenCam = !layout.zenCam; applyZen(); saveLayout(); } else togglePanel('cam'); e.preventDefault(); }+ else if (k === 'l') { togglePanel('log'); e.preventDefault(); }+ else if (k === 'i') { togglePanel('stats'); e.preventDefault(); }+ else if (k === 's') { screenshot(); e.preventDefault(); }+ else if (k === 'p') { togglePip(); e.preventDefault(); }+ else if (k === 'v') { toggleFit(); e.preventDefault(); }+ else if (k === 'f') { fsBtn.click(); e.preventDefault(); }+ else if (k === '?' || (k === '/' && e.shiftKey)) { help.toggle(); e.preventDefault(); }+ else if (k === 'escape') {+ if (help.isOpen()) help.close();+ else if (document.pictureInPictureElement) document.exitPictureInPicture().catch(() => {});+ else if (layout.zen) setZen(false);+ }});// Cleanup on unload@@ -668,9 +1123,45 @@ async function boot(id) {if (webcamRafId) cancelAnimationFrame(webcamRafId);webcamAnimManager?.detach();webcamRenderer.dispose();+ if (pipVideo?.srcObject) pipVideo.srcObject.getTracks().forEach((t) => t.stop());});}+// ── keyboard help overlay ─────────────────────────────────────────────────────+function buildHelpOverlay() {+ const el = document.createElement('div');+ el.className = 'asc-help';+ el.innerHTML = `+ <div class="asc-help-card">+ <div class="asc-help-head">+ <h3>Keyboard shortcuts</h3>+ <button class="asc-panel-btn" id="asc-help-close" title="Close">✕</button>+ </div>+ <div class="asc-help-body">+ <div class="asc-help-row"><span>Zen mode (hide chrome)</span><kbd>Z</kbd></div>+ <div class="asc-help-row"><span>Toggle avatar cam</span><kbd>C</kbd></div>+ <div class="asc-help-row"><span>Toggle activity log</span><kbd>L</kbd></div>+ <div class="asc-help-row"><span>Toggle stream stats</span><kbd>I</kbd></div>+ <div class="asc-help-row"><span>Capture screenshot</span><kbd>S</kbd></div>+ <div class="asc-help-row"><span>Picture-in-picture</span><kbd>P</kbd></div>+ <div class="asc-help-row"><span>Fit / fill screen</span><kbd>V</kbd></div>+ <div class="asc-help-row"><span>Fullscreen</span><kbd>F</kbd></div>+ <div class="asc-help-row"><span>This help</span><kbd>?</kbd></div>+ </div>+ </div>+ `;+ document.body.appendChild(el);+ const close = () => el.classList.remove('open');+ el.addEventListener('click', (e) => { if (e.target === el) close(); });+ el.querySelector('#asc-help-close').addEventListener('click', close);+ return {+ toggle: () => el.classList.toggle('open'),+ open: () => el.classList.add('open'),+ close,+ isOpen: () => el.classList.contains('open'),+ };+}+function esc(s) {return String(s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));}diff --git a/src/labor-market.js b/src/labor-market.jsindex e36af4835..af3752a0c 100644--- a/src/labor-market.js+++ b/src/labor-market.js@@ -504,7 +504,13 @@ function wirePostForm() {}),});const j = await res.json();- if (!res.ok) throw new Error(j.error_description || j.error || 'post failed');+ if (!res.ok) {+ if (res.status === 429) {+ const wait = Number(j.retry_after) || Number(res.headers.get('retry-after')) || 60;+ throw new Error(`You're posting too quickly — try again in ${wait}s.`);+ }+ throw new Error(j.error_description || j.error || 'post failed');+ }const auto = j.autopilot || {};setMsg(msg, `Posted & escrowed. ${auto.bids ? `${auto.bids} auto-bid${auto.bids === 1 ? '' : 's'} arrived.` : ''} ${auto.settled === 'settled' ? 'Already settled!' : ''}`.trim(), 'ok');form.reset();