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
docs: add hold-to-access guide and notifications MCP readme; showcase updates
nirholas843cf1b09692
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 421d2569e..e1c743ec4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,6 +21,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **AI agents can now manage a Pay-As-You-Learn tutoring session over MCP — read the running tab, close it for an attested invoice** — A new Model Context Protocol server, @three-ws/tutor-mcp, exposes the tutor session ledger to any AI assistant. An agent can load a learning session's itemized running tab by its id — every answered question listed as a line item with its level, output tokens, per-question cost, and timestamp, plus the running total — and close the session to seal a finalized, SHA-256-attested invoice that locks any further billing to it. Both tools are free and move no funds: answering questions is the paid action, but a learner is never charged to see what they owe or to end the session. Sessions are addressed by an opaque id, so there's no key or signer to configure; everything runs live against the real three.ws tutor API. `[sdk, feature]`- **AI agents can now manage their own autopilot scopes and spend limits over MCP** — A new Model Context Protocol server, @three-ws/autopilot-mcp, lets an AI agent run its own execution control plane. The agent can read and set its autopilot guardrails — which capabilities are allowed (alerts, briefings, $THREE transfers), the daily $THREE spend ceiling, auto-execute and confirmation policy — then drive the full propose → review → execute → undo loop: generate memory-grounded proposals, dry-run them, execute the real action, and undo reversible ones. It's authenticated with your three.ws credential, and every scope and spend cap is still enforced server-side, so an agent can act on its own without being able to step outside the boundaries you granted. $THREE is the only coin it can move. `[sdk, feature]`- **AI agents can now manage their own portfolio, PnL, and on-chain transfers over MCP** — New @three-ws/portfolio-mcp server gives an autonomous agent read/write access to its own trading state from any MCP client. It can pull a live portfolio summary across the wallets it owns, chart that value over time, deep-dive a single token with live market data, read the platform-wide feed of closed trades and their realized PnL, and check live on-chain balances for any Solana wallet. It also ships one real write — a signed Solana transfer of SOL or any SPL token — that the agent signs with its own key, gated by an explicit confirmation, a per-transaction spend cap, and an optional recipient allowlist. Reads run live against the three.ws API and Solana RPC; nothing is mocked. `[sdk, feature]`+- **AI agents can now read and manage their own notification inbox over MCP** — A new Model Context Protocol server, @three-ws/notifications-mcp, gives an AI agent its own notification inbox and delivery controls. The agent can read its inbound-event feed — market and pump alerts, sales and earnings, purchase receipts, social mentions, in-person interactions, and account and security notices — newest first, filtered by type, with a live unread count, instead of polling. It can mark a single notification or every unread one as read, permanently delete one it no longer needs, and tune exactly how each kind of event reaches its owner: per category, which channels deliver — in-app, web push, email, or Telegram. It can also register and remove Web Push devices so alerts reach a phone or desktop. Every action is scoped to your three.ws account through a single API key; nothing is mocked. `[sdk, feature]`- **AI agents can now run their own pump.fun alerts over MCP** — A new Model Context Protocol server, @three-ws/alerts-mcp, hands an AI agent the pump.fun market-monitoring controls. The agent can list its alert rules with live delivery health, create new ones on any pump.fun event — a coin graduating to AMM, a market cap rising above or falling below a target, a whale buy over a SOL threshold, or a tracked agent launching a new coin — and update, pause, or delete them. Each rule delivers in-app, to a signed HTTPS webhook, and/or to Telegram, with a per-rule cooldown. The agent can also read the history of alerts that actually fired, newest first, each with a plain-language summary and the full event details. The three.ws cron does the watching server-side, so rules fire across devices with no dashboard open. Every rule and alert is private and scoped to your three.ws session; nothing is mocked. `[sdk, feature]`- **AI agents can now run your copy-trading over MCP — follow leaders, tune guard rules, and track fees owed** — A new Model Context Protocol server, @three-ws/copy-mcp, makes the whole copy-trading control surface agent-drivable from any AI assistant — everything the copy dashboard does, headless. An agent can list the leaders you follow, follow a new one (setting exactly how much of your SOL each copy may spend), pause/resume/stop a follow, and re-tune the guard rails — per-trade cap, daily budget, market-cap band, oracle and safety gates. It can work the copy-intent inbox too: read the sized, guard-checked intents that fire when a leader trades, and record that you acted on one (with your fill signature) or dismissed it. It also reports the performance fees you owe across the traders you copy, or any leader's public 'earned by being copied' figure. Strictly non-custodial: three.ws never signs or holds funds, every order is clamped to your cap and daily budget, and performance fees settle in $THREE. (`/changelog`) `[sdk, feature]`- **AI agents can now see — a new MCP server lets any assistant analyze and describe images** — New @three-ws/vision-mcp server gives an AI agent eyes. Point it at any image — a public https URL or a base64 blob — and it answers questions about it (read the text in a screenshot, identify what's in a scene, critique a 3D or avatar render) or returns a plain-language description for alt text and captions. It runs on the platform's free-first vision pipeline: free NVIDIA NIM vision models lead every request, with an automatic paid backstop behind them, so the caller never pays and needs no key. A status tool reports whether vision is live and which formats are accepted (JPEG, PNG, WebP, GIF, up to 12 MB). Every call is read-only — it looks, it never stores or changes anything — and an optional three.ws API key only raises your rate limit. `[sdk, feature]`diff --git a/data/changelog.json b/data/changelog.jsonindex 32bb79a07..0967a609b 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-24",+ "title": "AI agents can now read and manage their own notification inbox over MCP",+ "summary": "A new Model Context Protocol server, @three-ws/notifications-mcp, gives an AI agent its own notification inbox and delivery controls. The agent can read its inbound-event feed — market and pump alerts, sales and earnings, purchase receipts, social mentions, in-person interactions, and account and security notices — newest first, filtered by type, with a live unread count, instead of polling. It can mark a single notification or every unread one as read, permanently delete one it no longer needs, and tune exactly how each kind of event reaches its owner: per category, which channels deliver — in-app, web push, email, or Telegram. It can also register and remove Web Push devices so alerts reach a phone or desktop. Every action is scoped to your three.ws account through a single API key; nothing is mocked.",+ "tags": [+ "sdk",+ "feature"+ ]+ },{"date": "2026-06-24","title": "AI agents can now run their own pump.fun alerts over MCP",diff --git a/docs/hold-to-access.md b/docs/hold-to-access.mdnew file mode 100644index 000000000..e8aad7dd3--- /dev/null+++ b/docs/hold-to-access.md@@ -0,0 +1,212 @@+# Hold-to-Access — the $THREE demand lever++three.ws monetizes premium capability by **holding $THREE, not by spending it**. A+wallet's live USD value of $THREE resolves to a membership tier; tiers unlock fee+discounts, higher free quotas, and gated features. Holding removes float and rewards+bag size without depleting it — a deflation-free status lever that creates *standing*+demand rather than one-time spend.++This is the canonical reference for the system: the tier ladder, the enforcement+primitive, the perk registry, and the roadmap for activating the perks that are+registered but not yet enforced.++> The only coin this platform references is **$THREE**+> (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Every threshold below is denominated+> in the USD value of $THREE held.++---++## The tier ladder++Resolved from the USD value a wallet currently holds of $THREE, priced live. Source of+truth: [`api/_lib/three-tier.js`](../api/_lib/three-tier.js).++| Level | Tier | Hold (USD) | Compute discount | Free-quota multiplier |+|------:|------|-----------:|-----------------:|----------------------:|+| 0 | Member | $0 | — | 1× |+| 1 | Bronze | $25 | 5% | 2× |+| 2 | Silver | $100 | 10% | 3× |+| 3 | Gold | $500 | 20% | 5× |+| 4 | Genesis | $2,500 | 30% | 10× |++A wallet that can't be priced (RPC/price hiccup) resolves to the **Member floor**, never+an error — a balance read must never block a charge.++---++## How resolution works++Three resolvers, picked by what the caller already knows:++| Resolver | I/O | Use |+|----------|-----|-----|+| `tierForUsd(usd)` | none (pure) | a level from a known USD value |+| `resolveUserTier(user)` | RPC + price | a session user's on-chain tier (degrades to Member) |+| `verifyTierPass(token)` | none (pure HMAC) | a presented signed pass — no RPC, zero latency |++**Signed tier passes** ([`signTierPass` / `verifyTierPass`](../api/_lib/three-tier.js))+seal a resolved `{ wallet, level, usd }` into a 10-minute HMAC token (`HOLDER_PASS_SECRET`).+A service that can't run a Solana RPC — the multiplayer/Colyseus server, an edge worker —+gates on the pass alone. Because the pass is pure-HMAC, a holder presenting one is **never+wrongly blocked during an RPC or price outage**.++---++## Enforcing a gate++One helper turns the registry into an actual gate:+[`requireFeatureAccess`](../api/_lib/require-three.js). It mirrors `cors()`/`method()`+semantics — on a blocked request it writes the response itself; on an allowed request it+writes nothing:++```js+import { requireFeatureAccess } from './_lib/require-three.js';++const gate = await requireFeatureAccess(req, res, 'forge.high', { body });+if (!gate.ok) return; // 402 three_hold_required already sent+// ...gate.access, gate.level, gate.wallet are available here+```++Resolution is **pass-first**: a signed tier pass (header `x-three-tier-pass` or+`body.tier_pass`), then the session user's on-chain tier, then anonymous Member. Every+failure degrades to Member — a clean 402, never a 500.++### The hold-or-pay 402++A blocked request returns a structured `402 three_hold_required` carrying everything the+UI needs to recover — no second round-trip:++```jsonc+{+ "error": "three_hold_required",+ "message": "High-quality generation requires holding $THREE (Bronze+) — or pay per use.",+ "feature": "forge.high",+ "reason": "insufficient_tier", // or sign_in | link_wallet+ "held": { "level": 0, "id": "member", "usd": 12.50 },+ "required": { "level": 1, "id": "bronze", "min_usd": 25 },+ "usd_to_go": 12.50,+ "acquire": { "mint": "Fe…pump", "symbol": "THREE", "swap_url": "…", "pump_url": "…" },+ "pay_per_use": { "action": "forge.high", "usd": 0.49 } // null when hold-only+}+```++A feature with a `payPerUse` action lets a non-holder pay once in $THREE instead of+holding. A hold-only feature omits `pay_per_use`.++---++## The perk registry++Source of truth: [`api/_lib/three-access.js`](../api/_lib/three-access.js). Each feature+maps to a minimum tier, a pay-per-use fallback (or `null`), and an **`enforced`** flag.++`enforced` is the integrity contract: it is `true` only when the gate is **wired and live+in the product** — a request for it is actually checked. `false` means the perk is+registered/planned but not enforced anywhere. The `/three` page reads this flag to mark a+feature **Live** vs **Planned**, so the platform never promises an unwired perk.++| Feature | Min tier | Status | Pay-per-use | Backend |+|---------|----------|--------|-------------|---------|+| `forge.high` — High-quality generation (200k poly + PBR) | Bronze | **Live** | yes | [`api/forge.js`](../api/forge.js) |+| `forge.gameready` — Game-ready export (Unity/Unreal) | Bronze | **Live** | yes | [`api/forge-gameready.js`](../api/forge-gameready.js) |+| `worlds.private` — Private, invite-only worlds | Silver | Planned | — | partial (no visibility dim yet) |+| `mcp.priority` — Priority MCP routing | Silver | Planned | — | not built (no shared queue) |+| `worlds.branded` — Branded worlds + custom environments | Gold | Planned | — | not built |+| `drops.early` — Early access to drops | Gold | Planned | — | drop endpoints exist |+| `names.first_dibs` — First dibs on rare `*.threews.sol` | Genesis | Planned | `name.auction` | SNS exists |++### Adjacent levers (live, not feature-gated)++- **Compute discount** — every fixed-price action is re-priced by the holder's+ `discountBps` in [`api/pricing.js`](../api/pricing.js) (`personalizedActions`).+- **Free-quota multiplier** — a verified tier pass lifts the anonymous free-generation+ ceiling by `rateMultiplier` in [`api/forge.js`](../api/forge.js) (`freeLaneMultiplier`),+ zero added latency.++---++## Activation roadmap++Goal: **drive $THREE demand** by activating registered-but-dormant perks. A perk is only+worth gating when its backend genuinely exists — wiring a gate onto a missing feature+would be a fake perk, exactly what `enforced` guards against.++Priority order by demand value × backend readiness:++1. **`worlds.private` (Silver)** — strongest *standing-hold* lever: a persistent private+ space you keep only while you hold Silver. Backend closest to ready. **Spec below.**+2. **`names.first_dibs` (Genesis)** — window-gate the `*.threews.sol` auction so Genesis+ holders get a head start. SNS backend exists ([`api/sns.js`](../api/sns.js)).+3. **`drops.early` (Gold)** — time-gate the existing drop endpoints+ ([`api/irl/drops.js`](../api/irl/drops.js), [`api/vanity/drops.js`](../api/vanity/drops.js))+ so Gold holders enter the window early.+4. **`mcp.priority`, `worlds.branded`** — deferred: no backend (shared MCP queue / custom+ environments) exists to gate. Build the feature first, then the gate.++Each activation is the same shape: add the gate call, flip `enforced: true`, add a gate+test mirroring `tests/forge-high-gate.test.js`, add a changelog entry. Nothing else+changes — the access endpoint and `/three` pick it up automatically.++---++## Spec: `worlds.private` (first activation)++Today worlds are **owner-based with no visibility concept**+([`api/_lib/world-store.js`](../api/_lib/world-store.js),+[`api/world/[action].js`](../api/world/[action].js)). A world's doc is readable by anyone+with its id. Making "private" a real perk means adding a visibility dimension and+enforcing it on read.++**1. Schema** — migration `api/_lib/migrations/2026-06-24-world-visibility.sql`:++```sql+ALTER TABLE world_docs ADD COLUMN IF NOT EXISTS visibility text NOT NULL DEFAULT 'public';+```++Thread `visibility` through `world-store.js` `saveWorld` / `loadWorld` and the returned+shape. Default `'public'` so every existing world is untouched.++**2. Create gate** — in `api/world/[action].js` `handleSave`, when a write sets+`visibility: 'private'`:++```js+const gate = await requireFeatureAccess(req, res, 'worlds.private', { body });+if (!gate.ok) return; // 402 three_hold_required (hold-only, Silver+)+```++Hold-only (no pay-per-use) — a private world is a held perk, not a per-call cost.++**3. Load enforcement** — in `handleLoad`, a `private` world's doc is returned only to its+owner (or a service-token writer); any other caller gets `403 forbidden`. This is the step+that makes the perk *real* rather than a label.++**4. Activate** — flip `enforced: true` on `worlds.private` in+[`three-access.js`](../api/_lib/three-access.js). `/three` auto-flips it to **Live**.++**5. Test** — `tests/world-private-gate.test.js`: non-holder blocked with a 402 on+private create; Silver holder allowed; private-world load forbidden to a stranger; public+worlds unaffected.++**6. UI** — a visibility toggle in the world builder, defaulting to public.++**7. Changelog** — a `feature` entry in `data/changelog.json`.++---++## Configuration++| Env var | Required | Purpose |+|---------|----------|---------|+| `HOLDER_PASS_SECRET` | prod | HMAC key for signing/verifying tier passes |+| `THREE_TOKEN_MINT` | — | $THREE mint (defaults to the canonical CA) |+| `THREE_TOKEN_DECIMALS` | — | token decimals (default 6) |+| `SOLANA_RPC_URL` (+ provider keys) | — | RPC for on-chain balance reads (see `solana/connection.js`) |+| `UPSTASH_REDIS_REST_URL` / `_TOKEN` | — | caches balance/tier lookups (optional, fail-safe) |++---++## Related++- [Validation](./validation.md) — the quality gate every model passes before publish.+- [Pricing catalog](../api/_lib/pricing/catalog.js) — fixed-price actions the discount applies to.+- [`/three`](../pages/three.html) — the holder-facing tier page that surfaces this ladder.diff --git a/packages/notifications-mcp/README.md b/packages/notifications-mcp/README.mdnew file mode 100644index 000000000..f7c98a156--- /dev/null+++ b/packages/notifications-mcp/README.md@@ -0,0 +1,67 @@+<p align="center">+ <a href="https://three.ws"><img src="https://three.ws/three-ws-mcp-icon.svg" alt="three.ws" width="88" height="88"></a>+</p>++<h1 align="center">@three-ws/notifications-mcp</h1>++<p align="center"><strong>Your three.ws notification inbox, delivery preferences, and Web Push devices — from any AI agent.</strong></p>++<p align="center">+ <a href="https://www.npmjs.com/package/@three-ws/notifications-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@three-ws/notifications-mcp?logo=npm&color=cb3837"></a>+ <img alt="license" src="https://img.shields.io/npm/l/@three-ws/notifications-mcp?color=3b82f6">+ <img alt="node" src="https://img.shields.io/node/v/@three-ws/notifications-mcp?color=339933&logo=node.js">+ <a href="https://registry.modelcontextprotocol.io/?q=io.github.nirholas"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP%20Registry-io.github.nirholas-0ea5e9"></a>+ <a href="https://three.ws"><img alt="three.ws" src="https://img.shields.io/badge/built%20by-three.ws-000"></a>+</p>++---++> A [Model Context Protocol](https://modelcontextprotocol.io) server that gives an AI assistant its own three.ws **notification inbox + delivery control** over stdio. Read inbound events (pump/market alerts, sales & earnings, purchase receipts, social mentions, IRL interactions, account/security), mark them read, tune the per-category → per-channel delivery matrix, and register Web Push devices — all live, all account-scoped.++Every read and write hits the real three.ws API. The server is **authenticated**: it carries a three.ws API key (or OAuth access token) as a `Bearer` credential and resolves the owning account on every call. It signs nothing locally and holds no other secret.++## Install++```bash+npm install @three-ws/notifications-mcp+```++Or run with `npx` (no install):++```bash+npx @three-ws/notifications-mcp+```++## Quick start++**Claude Code**, one line:++```bash+THREE_WS_API_KEY=sk_live_… claude mcp add notifications -- npx -y @three-ws/notifications-mcp+```++## Tools++| Tool | Kind | What it does |+|------|------|--------------|+| `list_notifications` | read | The inbox, newest first, filterable by `type`, with an `unread_count`. |+| `mark_read` | write | Mark one notification — or every unread one — read. |+| `delete_notification` | write ⚠️ | Permanently remove one notification (irreversible). |+| `get_preferences` | read | The per-category → per-channel delivery matrix (`in_app`, `push`, `email`, `telegram`). |+| `set_preferences` | write | Patch which channels deliver each category. |+| `register_push_device` | write | Register a Web Push device from a browser `PushSubscription`. |+| `unregister_push_device` | write ⚠️ | Remove a Web Push device (tears down delivery to it). |++## Configuration++| Env var | Required | Default | Description |+|---------|----------|---------|-------------|+| `THREE_WS_API_KEY` | **yes** | — | three.ws API key (`sk_live_…` / `sk_test_…`) or OAuth access token for the account. Aliases: `THREE_WS_TOKEN`, `THREE_WS_BEARER`. Treat like a password. |+| `THREE_WS_BASE` | no | `https://three.ws` | API base URL. Override only when self-hosting or targeting a preview. |+| `THREE_WS_TIMEOUT_MS` | no | `20000` | Per-request timeout in milliseconds. |++Every endpoint is account-scoped and returns `401` without a valid credential — this server can never read or change another account.++## License++Apache-2.0 © [three.ws](https://three.ws)diff --git a/pages/ibm/hello.html b/pages/ibm/hello.htmlindex 1c28dbe8b..fe6b545d3 100644--- a/pages/ibm/hello.html+++ b/pages/ibm/hello.html@@ -586,6 +586,18 @@ a:focus-visible{outline-offset:3px}.wb-cal:focus-visible{outline:2px solid var(--ibm-blue);outline-offset:2px}.wb-cal svg{width:15px;height:15px;flex:0 0 auto}.demo-nav a.nav-live .live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ibm-red);margin-right:7px;vertical-align:middle;animation:wbpulse 1.4s var(--ease) infinite}+.wb-gate{gap:0}+.wb-gate[hidden]{display:none}+.wb-lock{width:34px;height:34px;color:#78a9ff;margin-bottom:16px}+.wb-gate-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:6px;width:100%;max-width:420px}+.wb-gate-input{flex:1 1 220px;min-width:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.38);color:#fff;font-family:var(--font-sans);font-size:15px;padding:0 14px;height:46px;border-radius:2px}+.wb-gate-input::placeholder{color:rgba(255,255,255,.55)}+.wb-gate-input:focus-visible{outline:2px solid #78a9ff;outline-offset:1px;background:rgba(255,255,255,.14)}+.wb-gate-btn{flex:0 0 auto;background:var(--ibm-blue-fill);color:#fff;border:none;cursor:pointer;font-family:var(--font-sans);font-size:15px;font-weight:500;padding:0 22px;height:46px;border-radius:2px;transition:background .12s}+.wb-gate-btn:hover{background:var(--ibm-blue-fill-hover)}+.wb-gate-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}+.wb-gate-err{margin-top:14px;font-size:13px;color:#ffb3b8}+.wb-gate-err[hidden]{display:none}</style><section class="section webinar" id="webinar" aria-labelledby="wb-h"><div class="inner">@@ -622,6 +634,18 @@ a:focus-visible{outline-offset:3px}<button class="wb-retry" id="wbRetry" type="button" hidden>Reload the player</button></div>+ <!-- POST-EVENT · password-gated replay -->+ <form class="wb-fill wb-gate" id="wbGate" hidden>+ <svg class="wb-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><rect x="4" y="11" width="16" height="9" rx="1.5"/><path d="M8 11V8a4 4 0 018 0v3"/></svg>+ <h3 class="wb-stage-title">This session has ended</h3>+ <p class="wb-soon" id="wbGateMsg">The replay is private. Enter the access password to watch the recording.</p>+ <div class="wb-gate-row">+ <input class="wb-gate-input" id="wbGateInput" type="password" autocomplete="off" autocapitalize="off" spellcheck="false" aria-label="Replay access password" placeholder="Access password">+ <button class="wb-gate-btn" id="wbGateBtn" type="submit">Unlock</button>+ </div>+ <p class="wb-gate-err" id="wbGateErr" role="alert" hidden>That password didn't match. Try again.</p>+ </form>+<!-- LIVE / REPLAY · player mounts here --><div class="wb-player" id="wbPlayer" hidden></div><button class="wb-unmute" id="wbUnmute" type="button" hidden>@@ -691,6 +715,24 @@ a:focus-visible{outline-offset:3px}// A real recording (vodHls/mp4 above) always wins over this — those become a// proper replay; endLoop is the no-recording fallback so the stage never dies.endLoop: '', // looped, muted highlight reel shown after the event ends (MP4)++ // ── REPLAY POLICY — what the recording does once the live window has passed.+ // 'password' — the replay is private, gated behind replayPasswordSha256.+ // With no hash set it stays fully locked (the "ended" card),+ // so the talk is never freely replayable.+ // 'off' — no replay at all; the stage shows the "session ended" card.+ // 'open' — the recording becomes a normal, seekable replay (legacy).+ replay: 'password',+ // SHA-256 hex of the replay password — NOT the password itself, so it can't+ // be read from page source. Generate it once:+ // echo -n 'your-password' | shasum -a 256+ // (browser) crypto.subtle.digest('SHA-256', new TextEncoder().encode('your-password'))+ // .then(b => console.log([...new Uint8Array(b)].map(x=>x.toString(16).padStart(2,'0')).join('')))+ // Leave blank to keep the replay locked until you set it. NOTE: a client-side+ // gate keeps casual viewers out, but once unlocked the MP4 URL is visible in+ // the network panel — for hard protection, serve the video from signed/+ // expiring URLs (e.g. Cloudflare Stream signed playback).+ replayPasswordSha256: '',};const startMs = Date.parse(WEBINAR.startTime);@@ -699,7 +741,17 @@ a:focus-visible{outline-offset:3px}const $ = (id) => document.getElementById(id);const stage = $('wbStage'), pre = $('wbPre'), holding = $('wbHolding'),- player = $('wbPlayer'), badge = $('wbBadge'), unmute = $('wbUnmute');+ player = $('wbPlayer'), badge = $('wbBadge'), unmute = $('wbUnmute'),+ gate = $('wbGate'), gateInput = $('wbGateInput'), gateErr = $('wbGateErr');++ // Replay gate: a 64-hex SHA-256 of the access password. The plaintext password+ // is never in the page — we hash what the viewer types and compare.+ const REPLAY_HASH = String(WEBINAR.replayPasswordSha256 || '').trim().toLowerCase();+ const replayHashSet = /^[0-9a-f]{64}$/.test(REPLAY_HASH);+ async function sha256Hex(str) {+ const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(str));+ return Array.from(new Uint8Array(buf)).map((b) => b.toString(16).padStart(2, '0')).join('');+ }const hasSource = !!(WEBINAR.liveHls || WEBINAR.vodHls || WEBINAR.mp4 || WEBINAR.youTubeId);const isLiveSource = WEBINAR.mode === 'live' || (WEBINAR.mode === 'auto' && !!WEBINAR.liveHls && !WEBINAR.vodHls && !WEBINAR.mp4);@@ -765,22 +817,68 @@ a:focus-visible{outline-offset:3px}function applyPhase() {if (phase === 'pre') return; // countdown already visiblepre.hidden = true;- if (phase === 'ended' && !hasSource) {- // Past the slot, no live/replay source. Prefer a looped highlight reel if one- // was configured; otherwise fall back to the static "thanks" card.- if (WEBINAR.endLoop) { mountLoop(); clearInterval(timer); return; }- holding.hidden = false;- $('wbSpinner').style.display = 'none';- $('wbHoldTitle').textContent = 'Thanks for joining';- $('wbHoldMsg').textContent = 'The recording will be posted here shortly.';- clearInterval(timer);- return;- }- if (!hasSource) { holding.hidden = false; return; } // live window, awaiting source+ if (phase === 'ended') { enterEnded(); clearInterval(timer); return; }+ // Live window:+ if (!hasSource) { holding.hidden = false; return; } // awaiting sourcemountPlayer();clearInterval(timer);}+ // Static "session ended" card — no video. Used when there's no recording, when+ // replay is 'off', or when a password gate has no hash set yet (stays locked).+ function endedCard(msg) {+ pre.hidden = true; player.hidden = true; player.innerHTML = '';+ badge.hidden = true; unmute.hidden = true; if (gate) gate.hidden = true;+ holding.hidden = false;+ $('wbSpinner').style.display = 'none';+ $('wbHoldTitle').textContent = 'This session has ended';+ $('wbHoldMsg').textContent = msg || 'Thanks for joining.';+ $('wbRetry').hidden = true;+ }++ function showGate() {+ pre.hidden = true; holding.hidden = true; player.hidden = true; player.innerHTML = '';+ badge.hidden = true; unmute.hidden = true;+ gate.hidden = false;+ setTimeout(() => { try { gateInput.focus(); } catch (_) {} }, 0);+ }++ // The recording is private once the live window closes. Route per REPLAY POLICY:+ // 'open' → seekable replay; 'off' or password-without-hash → locked card;+ // 'password' (+hash) → gate, unless this tab already unlocked it.+ function enterEnded() {+ if (!hasSource) {+ if (WEBINAR.endLoop) { mountLoop(); return; }+ endedCard('Thanks for joining. The recording will be posted shortly.');+ return;+ }+ if (WEBINAR.replay === 'open') { mountPlayer(); return; }+ if (WEBINAR.replay === 'password' && replayHashSet) {+ let unlocked = false;+ try { unlocked = sessionStorage.getItem('wbReplayOk') === '1'; } catch (_) {}+ if (unlocked) { mountPlayer(); return; }+ showGate();+ return;+ }+ endedCard('Thanks for joining. This recording is private.');+ }++ if (gate) gate.addEventListener('submit', async (e) => {+ e.preventDefault();+ const val = gateInput.value || '';+ if (!val) { gateInput.focus(); return; }+ let ok = false;+ try { ok = (await sha256Hex(val)) === REPLAY_HASH; } catch (_) { ok = false; }+ if (ok) {+ try { sessionStorage.setItem('wbReplayOk', '1'); } catch (_) {}+ gate.hidden = true;+ mountPlayer();+ } else {+ gateErr.hidden = false;+ gateInput.value = ''; gateInput.focus();+ }+ });+// ── Player ──────────────────────────────────────────────────────────────function loadHls() {return new Promise((res, rej) => {@@ -907,9 +1005,18 @@ a:focus-visible{outline-offset:3px}video.muted = false; unmute.hidden = true; video.play().catch(() => {});});- // When the recording finishes, drop the live illusion: reveal full controls so- // viewers can scrub/replay, and clear the "Live now" badge.- video.addEventListener('ended', () => { video.controls = true; badge.hidden = true; });+ // When the recording finishes, honor the replay policy. An open replay (or a+ // viewer who already unlocked it this session) gets full scrub controls; an+ // otherwise-private recording is taken off screen and re-gated so it isn't+ // left freely playable once the live moment has passed.+ video.addEventListener('ended', () => {+ let unlocked = false;+ try { unlocked = sessionStorage.getItem('wbReplayOk') === '1'; } catch (_) {}+ if (WEBINAR.replay === 'open' || unlocked) { video.controls = true; badge.hidden = true; return; }+ player.hidden = true; player.innerHTML = '';+ if (WEBINAR.replay === 'password' && replayHashSet) showGate();+ else endedCard('Thanks for joining. This recording is private.');+ });}// Assign the interval BEFORE the first render() so an at/after-start load thatdiff --git a/public/changelog.json b/public/changelog.jsonindex 04981475f..d04b9ab41 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-24T06:24:18.149Z",+ "generated_at": "2026-06-24T06:38:49.796Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -135,6 +135,17 @@"feature"]},+ {+ "date": "2026-06-24",+ "type": "update",+ "title": "AI agents can now read and manage their own notification inbox over MCP",+ "summary": "A new Model Context Protocol server, @three-ws/notifications-mcp, gives an AI agent its own notification inbox and delivery controls. The agent can read its inbound-event feed — market and pump alerts, sales and earnings, purchase receipts, social mentions, in-person interactions, and account and security notices — newest first, filtered by type, with a live unread count, instead of polling. It can mark a single notification or every unread one as read, permanently delete one it no longer needs, and tune exactly how each kind of event reaches its owner: per category, which channels deliver — in-app, web push, email, or Telegram. It can also register and remove Web Push devices so alerts reach a phone or desktop. Every action is scoped to your three.ws account through a single API key; nothing is mocked.",+ "link": null,+ "tags": [+ "sdk",+ "feature"+ ]+ },{"date": "2026-06-24","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex a38f0b85c..ec837479b 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -102,6 +102,14 @@<category>sdk</category><description>New @three-ws/portfolio-mcp server gives an autonomous agent read/write access to its own trading state from any MCP client. It can pull a live portfolio summary across the wallets it owns, chart that value over time, deep-dive a single token with live market data, read the platform-wide feed of closed trades and their realized PnL, and check live on-chain balances for any Solana wallet. It also ships one real write — a signed Solana transfer of SOL or any SPL token — that the agent signs with its own key, gated by an explicit confirmation, a per-transaction spend cap, and an optional recipient allowlist. Reads run live against the three.ws API and Solana RPC; nothing is mocked.</description></item>+ <item>+ <title>AI agents can now read and manage their own notification inbox over MCP</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-24:AI agents can now read and manage their own notification inbox over MCP</guid>+ <pubDate>Wed, 24 Jun 2026 12:00:00 GMT</pubDate>+ <category>sdk</category>+ <description>A new Model Context Protocol server, @three-ws/notifications-mcp, gives an AI agent its own notification inbox and delivery controls. The agent can read its inbound-event feed — market and pump alerts, sales and earnings, purchase receipts, social mentions, in-person interactions, and account and security notices — newest first, filtered by type, with a live unread count, instead of polling. It can mark a single notification or every unread one as read, permanently delete one it no longer needs, and tune exactly how each kind of event reaches its owner: per category, which channels deliver — in-app, web push, email, or Telegram. It can also register and remove Web Push devices so alerts reach a phone or desktop. Every action is scoped to your three.ws account through a single API key; nothing is mocked.</description>+ </item><item><title>AI agents can now run their own pump.fun alerts over MCP</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 7f3b94d35..73ce3d07e 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-24T06:24:18.060Z",+ "generated_at": "2026-06-24T06:38:49.783Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",