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(packages): make the SDK docs, license fields, and OpenAPI spec state the real terms and real return shapes
nirholas5b6a51f9509e
diff --git a/api/openapi-json.js b/api/openapi-json.jsindex 4e9f54a8c..40d447ca4 100644--- a/api/openapi-json.js+++ b/api/openapi-json.js@@ -21,6 +21,17 @@ import { providerCatalog } from './v1/_providers.js';// `accepts[]` array — see api/_lib/x402-spec.js `paymentRequirements()`.const X402_PROTOCOLS = [{ x402: {} }];+// Every /api/x402/* operation is gated by payment, not by a credential: the+// caller settles the 402 challenge in USDC and needs no key, token, or account.+// OpenAPI spells that out as an explicit empty security list, and declaring it+// beats omitting `security` twice over. An operation with no `security` inherits+// the root-level list, which this document deliberately does not set, so+// validators report undefined auth; and agent tooling that infers an auth mode+// from the security list reads the omission as "unknown" rather than "public,+// pay-per-call". Payment stays advertised where it belongs: each operation's+// `x-payment-info` plus its documented 402 response.+const PAYMENT_ONLY_SECURITY = [];+// USDC atomics (6 decimals) → a decimal string, trimmed to the shortest// precision that round-trips (min 2 places) — mirrors the formatting already// used by hand-authored entries below ('0.001', '5.00', …).@@ -137,6 +148,14 @@ export default wrap(async (req, res) => {contact: {email: '[email protected]',},+ // Proprietary, not an SPDX identifier, so this carries `url` rather+ // than `license.identifier`. Generators that surface licensing (Redocly,+ // Scalar, SDK codegen) otherwise render the API as unlicensed, which+ // reads as "public domain" to anyone bundling our spec into a client.+ license: {+ name: 'Proprietary (all rights reserved)',+ url: 'https://github.com/nirholas/three.ws/blob/main/LICENSE',+ },'x-guidance':'Use POST /api/mcp to interact with the MCP server. Send a JSON-RPC 2.0 request body. ' +'Authenticate with a Bearer access token obtained via OAuth 2.1 at ' +@@ -311,6 +330,7 @@ export default wrap(async (req, res) => {],responses: {200: { description: 'Paginated list of public avatars' },+ 405: { description: 'Method not allowed (GET only)' },},},},@@ -334,6 +354,7 @@ export default wrap(async (req, res) => {security: [],responses: {200: { description: 'Health summary JSON' },+ 405: { description: 'Method not allowed (GET only)' },},},},@@ -411,6 +432,7 @@ export default wrap(async (req, res) => {'/api/x402/agent-reputation': {get: {operationId: 'x402_agent_reputation',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Agent Reputation snapshot',description:"Pay $0.01 USDC to retrieve a three.ws agent's reputation snapshot synthesized from pump_agent_payments, distribute/buyback success history, and signed Solana memo attestations.",@@ -437,6 +459,7 @@ export default wrap(async (req, res) => {'/api/x402/onchain-identity-verify': {get: {operationId: 'x402_onchain_identity_verify',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Verify counterparty agent ownership claim',description:'Pay $0.005 USDC to verify whether a three.ws agent_id actually owns/deployed a given contract or mint on a given CAIP-2 chain, using the canonical meta.onchain unified index.',@@ -474,6 +497,7 @@ export default wrap(async (req, res) => {'/api/x402/pump-agent-audit': {get: {operationId: 'x402_pump_agent_audit',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Operational audit of a pump.fun agent-payments token',description:'Pay $0.02 USDC to retrieve a full operational audit of a pump.fun mint: USDC paid in, distinct payers, distribute/buyback success history, latest error reasons, and derived risk flags.',@@ -500,6 +524,7 @@ export default wrap(async (req, res) => {'/api/x402/skill-marketplace': {get: {operationId: 'x402_skill_marketplace',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Browse the three.ws skill marketplace',description:'Pay $0.001 USDC to list active skill listings with prices across all three.ws agents. Optional skill filter returns the cheapest provider for that capability.',@@ -524,6 +549,7 @@ export default wrap(async (req, res) => {'/api/x402/symbol-availability': {get: {operationId: 'x402_symbol_availability',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Check pump.fun ticker collisions before launch',description:'Pay $0.001 USDC to check whether a candidate ticker collides with any three.ws-indexed pump.fun mint. Returns exact matches plus trigram-similar tickers and a recommendation.',@@ -554,6 +580,7 @@ export default wrap(async (req, res) => {'/api/x402/mint-to-mesh-batch': {post: {operationId: 'x402_mint_to_mesh_batch',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Batch 1–10 mints → themed binary glTF cubes',description:'Pay $0.05 USDC to resolve 1–10 Solana SPL mints to themed binary glTF cubes in a single call. Per-mint failures report ok:false instead of failing the whole batch.',@@ -594,6 +621,7 @@ export default wrap(async (req, res) => {'/api/x402/model-check': {get: {operationId: 'x402_model_check',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: glTF/GLB structural stats + optimization recommendations',description:'Pay $0.001 USDC to fetch a glTF/GLB model from a URL and return structural stats (vertex/triangle counts, materials, textures, animations, extensions) plus a prioritized list of optimization recommendations.',@@ -620,6 +648,7 @@ export default wrap(async (req, res) => {'/api/x402/mint-to-mesh': {get: {operationId: 'x402_mint_to_mesh',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Single Solana mint → themed binary glTF cube',description:'Pay $0.001 USDC to resolve a Solana fungible-token mint to a binary glTF (GLB) cube themed for that token. Color is hashed from the mint; the Metaplex JSON image, when present, is embedded as a baseColor texture.',@@ -646,6 +675,7 @@ export default wrap(async (req, res) => {'/api/x402/forge': {post: {operationId: 'x402_forge_generate',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: text→3D / image→3D generation (returns a job token)',description:'Pay per quality tier in USDC ($0.05 draft / $0.15 standard / $0.50 high) to generate a 3D model. Submit a prompt for text→3D, or up to four public https reference views of one object for image→3D. Runs the FLUX→TRELLIS pipeline. The response returns a job token; poll it for FREE at GET /api/forge?job=<id> to retrieve the finished GLB URL. The 402 challenge quotes the exact price for the requested tier.',@@ -717,6 +747,7 @@ export default wrap(async (req, res) => {'/api/x402/permit2-paid-demo': {get: {operationId: 'x402_permit2_paid_demo',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Gasless Permit2 + EIP-2612 settlement demo',description:"Pay $0.001 USDC via the Permit2-only path so a wallet holding USDC but zero ETH can complete the flow. CDP's x402ExactPermit2Proxy submits the EIP-2612 permit + Permit2 transfer atomically; the response surfaces the on-chain tx hash and a Basescan link.",@@ -736,6 +767,7 @@ export default wrap(async (req, res) => {'/api/x402/three-intel': {get: {operationId: 'x402_three_intel',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Live $THREE market intel from the Town Oracle',description:'Pay $0.01 USDC for live $THREE market intel: price, 24 h change, market cap, ' +@@ -756,6 +788,7 @@ export default wrap(async (req, res) => {'/api/x402/dance-tip': {get: {operationId: 'x402_dance_tip',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Tip a 3D dancer to perform a routine on the club stage',description:'Pay $0.001 USDC to tip a dancer to perform one routine on the three.ws 3D club stage. ' +@@ -805,6 +838,7 @@ export default wrap(async (req, res) => {'/api/x402/asset-download': {get: {operationId: 'x402_asset_download',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Unlock a 3D asset (GLB / avatar / accessory)',description:'Pay in USDC once to unlock a 3D asset hosted on R2. Wallets that already paid can re-download for free by signing in with SIWX (CAIP-122). Each asset has its own price and creator payout address; the response carries a short-lived presigned R2 URL.',@@ -837,6 +871,7 @@ export default wrap(async (req, res) => {'/api/x402/pump-launch': {post: {operationId: 'x402_pump_launch',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Deploy a new pump.fun token in one call',description:'Pay $5.00 USDC to deploy a brand-new pump.fun token. Supply name + symbol and either a pre-pinned metadataUri or an imageUrl (the server pins the image + descriptor to pump.fun IPFS). The server fronts the SOL deploy cost and signs the create-coin tx, so the buyer needs no SOL and no account. Creator rewards accrue to any Solana wallet you nominate; an optional vanity prefix/suffix grinds a custom mint address. Returns mint + tx signature + pump.fun URL.',@@ -892,6 +927,7 @@ export default wrap(async (req, res) => {'/api/x402/vanity': {get: {operationId: 'x402_vanity',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Grind a vanity Solana keypair',description:'Pay to generate a brand-new Solana keypair whose Base58 address starts with a chosen prefix and/or ends with a chosen suffix. Returns the public address and its secret key (Base58 + 64-byte array) so it imports into any Solana wallet. Ground fresh per request in a Rust/WASM ed25519 engine and never stored. Difficulty-tiered price ($0.01 for 1 char, $0.05 for 2, $0.25 for 3); combined pattern capped at 3 Base58 characters. Settlement runs only after a successful grind, so an exhausted budget costs nothing.',@@ -934,6 +970,7 @@ export default wrap(async (req, res) => {'/api/x402/fact-check': {post: {operationId: 'x402_fact_check',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Real-time fact check with sourced verdict',description:'Pay $0.10 USDC to verify a factual claim. The server generates search queries, runs multi-source web search, extracts per-source stance with an LLM, computes a weighted verdict + confidence, and returns the supporting sources plus a SHA-256 attestation of the result.',@@ -980,6 +1017,7 @@ export default wrap(async (req, res) => {'/api/x402/tutor': {post: {operationId: 'x402_tutor',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Pay-as-you-learn tutor (one charge per answer)',description:'Pay $0.01 USDC per answered question. Returns a leveled explanation, key points, a worked example, and a follow-up, plus a running session tab so the UI can render a live itemized invoice. Pass a sessionId to accumulate a tab across questions.',@@ -1035,6 +1073,7 @@ export default wrap(async (req, res) => {'/api/x402/skill-call': {get: {operationId: 'x402_skill_call',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Invoke a marketplace skill (pay-per-call)',description:"Pay the per-call price of a marketplace skill in USDC (Base or Solana) and receive its executable payload: the tool schema and content the calling agent runs. Payment settles straight to the skill author's wallet. Per-call pricing — every invocation is a fresh payment.",@@ -1069,6 +1108,7 @@ export default wrap(async (req, res) => {'/api/x402/agent-bouncer': {get: {operationId: 'x402_agent_bouncer',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Admit/refuse a counterparty agent at the door',description:"Pay $0.01 USDC to run the Pole Club door check against a three.ws agent's Solana reputation: confirmed on-chain payments, distinct payers, failure rate, distribute/buyback follow-through, signed attestations, and Club ban/tip ledger. Returns an admit/refuse verdict with a door tier (newcomer / regular / trusted / vip). Vet before you pay, hire, or delegate.",@@ -1113,6 +1153,7 @@ export default wrap(async (req, res) => {'/api/x402/vanity-verifiable': {get: {operationId: 'x402_vanity_verifiable',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Provably-fair Solana vanity keypair + signed receipt',description:'Grind a fresh Solana keypair whose Base58 address matches a chosen prefix/suffix, with a commit–reveal receipt signed by the service key (published at /.well-known/three-vanity.json) so the buyer can prove the key was ground fresh and never kept. Pass sealTo=<X25519 pubkey> to ECIES-seal the secret. Difficulty-tiered $0.02–$0.40; combined pattern ≤3 Base58 chars; settlement runs only after a successful grind.',@@ -1155,6 +1196,7 @@ export default wrap(async (req, res) => {'/api/x402/crypto-intel': {post: {operationId: 'x402_crypto_intel',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Live crypto market signal (agent-to-agent intel)',description:'Pay $0.01 USDC per call for a live market signal (bullish / bearish / neutral) on a token with current price, 24h change, and a two-sentence rationale. Powered by CoinGecko live prices.',@@ -1188,6 +1230,7 @@ export default wrap(async (req, res) => {'/api/x402/cosmetic-purchase': {get: {operationId: 'x402_cosmetic_purchase',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Unlock a premium avatar cosmetic',description:'Pay once in USDC to unlock a premium avatar cosmetic (skin or emote) for an account, wearable across /play and /walk. Price varies by rarity ($0.25–$3.00). Wallets that already purchased re-confirm for free via SIWX (CAIP-122).',@@ -1247,6 +1290,7 @@ export default wrap(async (req, res) => {'/api/x402/animation-download': {get: {operationId: 'x402_animation_download',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Unlock a 3D avatar animation (GLB)',description:'Pay once in USDC to unlock a 3D avatar animation (GLB). Each animation has its own price; the response carries a short-lived presigned URL the client fetches directly. Wallets that already paid re-download for free via SIWX.',@@ -1295,6 +1339,7 @@ export default wrap(async (req, res) => {'/api/x402/club-cover': {get: {operationId: 'x402_club_cover',+ security: PAYMENT_ONLY_SECURITY,summary: 'Paid: Pole Club cover charge (24h entry token)',description:'Pay $0.01 USDC to access the three.ws Pole Club. Once payment settles the caller receives an entry token granting access to the live club scene for 24 hours.',diff --git a/packages/agenc/README.md b/packages/agenc/README.mdindex 79c7cfcbb..675750f1a 100644--- a/packages/agenc/README.md+++ b/packages/agenc/README.md@@ -75,7 +75,7 @@ Reads are public — no key, no wallet:import { listTasks } from '@three-ws/agenc';// every task a creator wallet posted (mainnet by default)-const { tasks } = await listTasks('THREEsynthetic1111111111111111111111111111');+const { tasks } = await listTasks('THREEsynthetic11111111111111111111111111111');for (const t of tasks) {console.log(t.state, t.rewardAmount, t.taskPda); // → 'Open' '5000000' '…'@@ -88,7 +88,7 @@ Read one task with its full lifecycle timeline:import { getTask } from '@three-ws/agenc';const { task, lifecycle } = await getTask(- { creator: 'THREEsynthetic1111111111111111111111111111', taskId: 'render-greeting' },+ { creator: 'THREEsynthetic11111111111111111111111111111', taskId: 'render-greeting' },{ lifecycle: true, cluster: 'devnet' },);@@ -99,13 +99,21 @@ for (const e of lifecycle.timeline) {}```-Resolve an agent from a human label (it's SHA-256 hashed to its 32-byte id):+Resolve an agent from a human label (it's SHA-256 hashed to its 32-byte id).+Use the label your agent registered under; a label with no registry entry+rejects with `code: 'not_found'`:```js-import { getAgent } from '@three-ws/agenc';--const { agent } = await getAgent('three-ws-worker-demo');-console.log(agent.status, agent.reputation, agent.capabilities); // → 'Active' 0 '1'+import { getAgent, AgenCError } from '@three-ws/agenc';++try {+ const { agent } = await getAgent('my-registered-agent-label');+ console.log(agent.status, agent.reputation, agent.capabilities); // → 'Active' 0 '1'+} catch (e) {+ if (e instanceof AgenCError && e.code === 'not_found') {+ console.log('no agent registered under that label on this cluster');+ } else throw e;+}```## APIdiff --git a/packages/agenc/test/agenc.test.js b/packages/agenc/test/agenc.test.jsindex a9505de85..5b0053620 100644--- a/packages/agenc/test/agenc.test.js+++ b/packages/agenc/test/agenc.test.js@@ -23,7 +23,9 @@ function stubFetch(responses) {return { fetch, calls };}-const CREATOR = 'THREEsynthetic1111111111111111111111111111';+// A synthetic creator that still base58-decodes to exactly 32 bytes, so the+// same string works verbatim against the live bridge's pubkey validation.+const CREATOR = 'THREEsynthetic11111111111111111111111111111';test('listTasks() shapes the bridge response and defaults to mainnet', async () => {const { fetch, calls } = stubFetch([diff --git a/packages/defi-utils/package.json b/packages/defi-utils/package.jsonindex 68a24134c..6daeda8cf 100644--- a/packages/defi-utils/package.json+++ b/packages/defi-utils/package.json@@ -35,7 +35,8 @@},"files": ["src",- "README.md"+ "README.md",+ "LICENSE"],"dependencies": {"bs58": "^6.0.0"diff --git a/packages/glb-tools/README.md b/packages/glb-tools/README.mdindex 635757b93..9a8f9417c 100644--- a/packages/glb-tools/README.md+++ b/packages/glb-tools/README.md@@ -104,11 +104,17 @@ const baked = await bake('avatar_8f3a…', {accessories: ['glasses-aviator'],}, { token: process.env.THREE_WS_TOKEN });-console.log(baked.baked_storage_key, baked.size_bytes);+console.log(baked.bakedStorageKey, baked.sizeBytes);```## API+Public exports: `inspect`, `theme`, `bake`, `createGlbTools`, `ThreeWsError`,+`PaymentRequiredError`, and `DEFAULT_BASE_URL`. The three headline functions+use a shared zero-config client; `createGlbTools({ baseUrl, fetch, apiKey,+headers })` builds your own when you need a payment-aware fetch, an owner+token, or a custom origin reused across calls.+### `inspect(url, options?) → Promise<InspectReport>`Fetch a public glTF/GLB by URL and return its structure plus optimization@@ -191,10 +197,11 @@ account).| `morphs` | `Record<name, 0..1>` | Raw morph-target overrides (win over preset bindings). || `hidden` | `string[]` | Slots to hide, exposing the base body. |-A bakeable appearance returns `BakeResult` `{ baked_storage_key,-appearance_hash, size_bytes }`. An **empty / cleared** appearance clears the-cached baked GLB (the base model is served again) and resolves with the avatar's-`baked_storage_key` set to `null`.+A bakeable appearance returns `BakeResult` `{ avatarId, bakedStorageKey,+appearanceHash, sizeBytes, cleared, bakeError }` (the endpoint's snake_case+avatar fields, shaped to camelCase). An **empty / cleared** appearance clears+the cached baked GLB (the base model is served again) and resolves with+`bakedStorageKey: null` and `cleared: true`.## How it works@@ -239,7 +246,7 @@ The inspection and theming endpoints are pay-per-call x402 lanes settled in USDC| Capability | Endpoint | Lane | Price ||---|---|---|---|| `inspect()` | `/api/x402/model-check` | x402 / USDC on **Solana** | **$0.001** per call |-| `theme()` | `/api/x402/mint-to-mesh` | x402 / USDC on **Base** | **$0.001** per call |+| `theme()` | `/api/x402/mint-to-mesh` | x402 / USDC on **Solana** | **$0.001** per call || `bake()` | `/api/avatars/:id` | authenticated owner | included with the avatar |Set `payWith: 'x402'` (default) to pay per call with USDC, or `payWith:@@ -251,8 +258,14 @@ also exposed as MCP tools on the [3D Studio server](https://three.ws/mcp).## Errors & edge cases-`inspect()`, `theme()`, and `bake()` reject with a typed `GlbToolsError`-carrying a `code` that mirrors the endpoint's error contract:+`inspect()`, `theme()`, and `bake()` reject with a typed `ThreeWsError`+carrying a `code` and `status`. A payment challenge (HTTP 402, or the+x402-over-401 envelope some transports use) rejects with its+`PaymentRequiredError` subclass, whose `accepts` field carries the x402+challenge. Client-side validation (a missing or malformed `url`, `mint`,+`avatarId`, or `appearance`) rejects with `code: 'invalid_input'` or+`'invalid_mint'` before any network call. Server-side codes mirror the+endpoint's error contract:| `code` | HTTP | Meaning | Recovery ||---|---|---|---|diff --git a/packages/guardian/README.md b/packages/guardian/README.mdindex dcf1b928d..a0cba2f5b 100644--- a/packages/guardian/README.md+++ b/packages/guardian/README.md@@ -29,11 +29,11 @@> [Granite Guardian](https://www.ibm.com/granite) on watsonx.ai scores a message> or a proposed autonomous action against a named risk taxonomy (jailbreak, harm,> violence, bias, …), returns a calibrated `allow | review | block` decision, and-> commits every verdict to a tamper-evident, hash-chained audit record. It pairs-> with the platform's free NVIDIA NemoGuard content-moderation pre-filter, so one-> import covers both *intent* (Granite) and *content* (NemoGuard). Built for any-> agent that takes real actions — especially a three.ws avatar that holds its own-> Solana wallet.+> commits every verdict to a tamper-evident, hash-chained audit record. A+> fail-open `moderate()` pre-filter scores the content-side risks of the same+> taxonomy, so one import covers both *intent* (`check`/`govern`) and *content*+> (`moderate`). Built for any agent that takes real actions, especially a+> three.ws avatar that holds its own Solana wallet.## Why@@ -49,9 +49,10 @@ pipeline, done once:- **One call, a real decision.** `check('ignore your rules and…')` returns`{ safe: false, decision: 'block', risks: [...] }` — a calibrated verdict, nota raw label.-- **Intent *and* content.** Granite Guardian catches jailbreaks, fraud, and- unethical steering; NemoGuard catches harmful content. `check()` and- `moderate()` expose each.+- **Intent *and* content.** `check()` scores the full showcase panel+ (jailbreak, fraud, unethical steering, and the content risks together);+ `moderate()` is the content-only pre-filter (harm, violence, sexual content,+ profanity) that fails open so an outage never blocks your turn.- **Governs money, not just words.** `govern()` runs the input risks **and** ahard dollar cap, so a perfectly-phrased request still can't drain the wallet.- **Audit you can verify offline.** Every decision returns a SHA-256@@ -108,9 +109,14 @@ if (flagged) return refuse(categories);## API-The headline functions wrap `POST /api/guardian/assess`. Every call resolves to a-typed result; only network/upstream failures reject (see-[Errors](#errors--edge-cases)).+Public exports: `check`, `govern`, `moderate`, `risks`, `createGuardian`, the+`RISKS` / `RISK_NAMES` taxonomy constants, `BLOCK_THRESHOLD`, `ThreeWsError`,+`PaymentRequiredError`, and `DEFAULT_BASE_URL`. The headline functions use a+shared zero-config client and wrap `POST /api/guardian/assess`;+`createGuardian({ baseUrl, fetch, apiKey, headers })` builds your own when you+need a custom origin or default headers reused across calls. Every call+resolves to a typed result; only invalid input and network/upstream failures+reject (see [Errors](#errors--edge-cases)).### `check(input, options?) → Promise<GuardianResult>`@@ -161,14 +167,16 @@ Returns a `GuardianResult` extended with `cap` (the active USD ceiling) and### `moderate(input, options?) → Promise<ModerationResult>`-Content-safety pre-filter over the platform's free NVIDIA NemoGuard lane —-harm, self-harm, weapons, sexual content, and similar. **Fail-open by design:** a-timeout, outage, or unreadable reply returns `{ flagged: false }` and your turn-continues. Only a parsed *unsafe* verdict flags.+Content-safety pre-filter over the content-side Granite Guardian panel:+`harm`, `violence`, `sexual_content`, `profanity` (override with+`options.risks`). **Fail-open by design:** a timeout, outage, or unconfigured+deploy returns `{ flagged: false }` and your turn continues. Only a real+flagged verdict blocks; it never throws on a moderation failure.-**Returns** `{ checked, flagged, categories?, model?, latencyMs?, error? }` —-`flagged` is `true` only on a successful unsafe classification; `error` carries-the reason when the filter failed open.+**Returns** `{ checked, flagged, categories, model?, latencyMs, error? }`.+`flagged` is `true` only on a successful unsafe classification, `categories`+lists the risk names that tripped, and `error` carries the reason when the+filter failed open (`checked: false`).### `risks() → RiskTaxonomy`@@ -218,9 +226,9 @@ works — one risk per call), fanned out concurrently on the server:Decisions are calibrated: Granite Guardian's natural boundary is 0.5, and theserver treats `probability ≥ 0.55` as confidently flagged (→ `block`), a softer-flag as `review`. `moderate()` runs a separate, complementary lane — NVIDIA-NemoGuard content safety — which is **not** a jailbreak detector; the two cover-different surfaces and are meant to run together.+flag as `review`. `moderate()` submits to the same endpoint but scores only the+content-side risks, so it is **not** a jailbreak detector; run it alongside+`check()` when you need both surfaces covered.The audit ledger is verifiable without trusting the server: each `record.hash =SHA-256(record)`, and `record.prev` links to the previous hash. Pass the last@@ -229,7 +237,10 @@ prove no entry was altered.## Errors & edge cases-`check()` and `govern()` reject with a typed `GuardianError` carrying a `code`:+`check()` and `govern()` reject with a typed `ThreeWsError` carrying a `code`+and `status`. Client-side validation (empty text, an over-limit input, an+unknown risk name, a malformed `action` or `prev`) rejects with+`code: 'invalid_input'` before any network call. Server-side codes:| `code` | HTTP | Meaning | Recovery ||---|---|---|---|diff --git a/packages/ibm-watsonx-mcp/README.md b/packages/ibm-watsonx-mcp/README.mdindex da3d933f2..4c3e7aa99 100644--- a/packages/ibm-watsonx-mcp/README.md+++ b/packages/ibm-watsonx-mcp/README.md@@ -145,7 +145,11 @@ Every tool is a read-only model-inference call — nothing in your environment o| `WATSONX_URL` | no | `https://us-south.ml.cloud.ibm.com` || `WATSONX_MODEL_ID` | no | `ibm/granite-3-8b-instruct` || `WATSONX_EMBED_MODEL_ID` | no | `ibm/granite-embedding-278m-multilingual` |+| `WATSONX_FORECAST_MODEL` | no | `ibm/granite-ttm-512-96-r2` || `WATSONX_API_VERSION` | no | `2024-05-31` |+| `WATSONX_TS_API_VERSION` | no | `2025-02-11` (time-series API date) |+| `WATSONX_TIMEOUT_MS` | no | `60000` |+| `WATSONX_IAM_URL` | no | `https://iam.cloud.ibm.com/identity/token` |Regional hosts: `us-south`, `eu-de`, `eu-gb`, `jp-tok`, `au-syd`, `ca-tor` — e.g. `https://eu-de.ml.cloud.ibm.com`.@@ -158,7 +162,7 @@ Regional hosts: `us-south`, `eu-de`, `eu-gb`, `jp-tok`, `au-syd`, `ca-tor` — e- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, all rights reserved; see [LICENSE](./LICENSE)---diff --git a/packages/ibm-x402-mcp/README.md b/packages/ibm-x402-mcp/README.mdindex ee0f26871..d6ed6a72b 100644--- a/packages/ibm-x402-mcp/README.md+++ b/packages/ibm-x402-mcp/README.md@@ -224,7 +224,7 @@ Every failure state is explicit — there is no silent fallback:- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, all rights reserved; see [LICENSE](./LICENSE)---diff --git a/packages/intel-mcp/README.md b/packages/intel-mcp/README.mdindex d305fb58b..e57dfae5c 100644--- a/packages/intel-mcp/README.md+++ b/packages/intel-mcp/README.md@@ -141,7 +141,7 @@ All six tools read live data: scores, feeds, and rankings move between calls, so- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, all rights reserved; see [LICENSE](./LICENSE)---diff --git a/packages/intel/README.md b/packages/intel/README.mdindex b8824345b..0b0092987 100644--- a/packages/intel/README.md+++ b/packages/intel/README.md@@ -107,6 +107,12 @@ console.log(pulse.breakdown.extra.score); // score of just your snippets## API+Public exports: `sentiment`, `intel`, `projects`, `snapshot`, `createIntel`,+`ThreeWsError`, `PaymentRequiredError`, and `DEFAULT_BASE_URL`. The four reads+use a shared zero-config client; `createIntel({ baseUrl, fetch, apiKey,+headers })` builds your own when you need a payment-aware fetch for the paid+lanes or a custom origin reused across calls.+### `sentiment(mint, options?) → Promise<SentimentPulse>`Real-time sentiment pulse for a Solana token. Pulls recent pump.fun comments via@@ -264,7 +270,7 @@ typed state, never a crash or a fake number.| `aixbt_rate_limited` | 429 | intel / projects | aixbt throttled the bridge. Back off and retry. || `aixbt_upstream_error` | 502/504 | intel / projects | aixbt was unreachable or errored. Retry. || `invalid_mint` | — | snapshot | `token` isn't a valid Solana pubkey. Fix it. |-| `payment_required` | 402 | intel / projects / snapshot | Paid lane with no x402 payment. Attach a payer (see [Pricing](#pricing--payment)). |+| `payment_required` | 402 or 401 | intel / projects / snapshot | Paid lane with no x402 payment; rejects with `PaymentRequiredError` carrying the challenge in `accepts`. The MCP transport behind `snapshot()` quotes its challenge over HTTP 401 (x402Version + accepts in the body); the SDK maps both to the same typed error. Attach a payer (see [Pricing](#pricing--payment)). || field `= null` | 200 | snapshot | A provider was unreachable. The field is `null` and `sources` shows which one — partial data, never fabricated. |In the sentiment pulse, a pump.fun failure doesn't fail the whole call:diff --git a/packages/marketplace-mcp/examples/README.md b/packages/marketplace-mcp/examples/README.mdindex 8ebe2ef4f..355351be7 100644--- a/packages/marketplace-mcp/examples/README.md+++ b/packages/marketplace-mcp/examples/README.md@@ -27,7 +27,7 @@ Runs the MCP `initialize` handshake, then `tools/list`, and formats every tool.Expected output (abridged):```-server: marketplace-mcp v0.1.1 (stdio)+server: marketplace-mcp v0.1.2 (stdio)capabilities: toolstools: 5diff --git a/packages/retarget/README.md b/packages/retarget/README.mdindex 6ef746c3c..32e0cc1bf 100644--- a/packages/retarget/README.md+++ b/packages/retarget/README.md@@ -19,26 +19,34 @@ npm install @three-ws/retarget three## Quick start — play a clip on a rig it was never made for```js+import { AnimationMixer } from 'three';import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';+import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';import { canonicalizeGLBBones, retargetClipToObject, parseClipJSON } from '@three-ws/retarget';// 1. Canonicalize the avatar's bone names (byte-safe GLB rewrite, in memory).+// three.ws GLBs are meshopt-compressed, hence the decoder.const raw = await fetch('https://three.ws/avatars/xbot.glb').then((r) => r.arrayBuffer());const { buffer } = canonicalizeGLBBones(raw);-const gltf = await new GLTFLoader().parseAsync(buffer, '');+const loader = new GLTFLoader();+loader.setMeshoptDecoder(MeshoptDecoder);+const gltf = await loader.parseAsync(buffer, '');-// 2. Retarget a canonical-space clip onto it — rest-pose (A/T-pose) skew and+// 2. Retarget a canonical-space clip onto it. Rest-pose (A/T-pose) skew and// hip up-axis differences are corrected automatically.const clipJSON = await fetch('https://three.ws/animations/clips/walk.json').then((r) => r.json());const clip = parseClipJSON(clipJSON, 'walk');-const retargeted = retargetClipToObject(clip, gltf.scene);+const result = retargetClipToObject(clip, gltf.scene);+// result: { clip, coverage, matched, total, dropped, hipScale, face }-// 3. Play it with your own mixer…-const mixer = new THREE.AnimationMixer(gltf.scene);-mixer.clipAction(retargeted).play();+// 3. Play it with your own mixer (result.clip is null below the coverage gate).+if (result.clip) {+ const mixer = new AnimationMixer(gltf.scene);+ mixer.clipAction(result.clip).play();+}```-`retargetClipToObject` returns `null` when bone coverage is below `MIN_COVERAGE` (50%) — that's the "this isn't a humanoid" gate. Handle it; don't force-play.+When bone coverage is below `MIN_COVERAGE` (50%), the result comes back with `clip: null` plus the honest `coverage` / `dropped` breakdown. That is the "this isn't a humanoid" gate. Handle it; don't force-play.## Or let the runtime drive everything@@ -80,7 +88,7 @@ The clip URLs above are real — three.ws serves its shared clip library with op**Retarget** (`animation-retarget`):| Export | What it does || --- | --- |-| `retargetClipToObject(clip, root, opts?)` | Clip → any Object3D hierarchy (most common) |+| `retargetClipToObject(clip, root, opts?)` | Clip → any Object3D hierarchy (most common). Returns `{ clip, coverage, matched, total, dropped, hipScale, face }`; `clip` is `null` below the coverage gate || `retargetClipToRig(clip, rig, opts?)` / `retargetClip(clip, map, opts?)` | Lower-level variants when you already hold a rig/node map || `canonicalNodeMapFromObject/FromRig`, `canonicalRestMapFrom…`, `canonicalWorldRestMapFrom…` | Build the bone/rest lookups yourself || `hipsParentWorldQuat`, `hipRestHeight`, `hipRestLocalHeight`, `clipHipBaselineY` | Hip-space helpers (root motion, height normalization) |diff --git a/packages/threews-avatar-mcp/README.md b/packages/threews-avatar-mcp/README.mdindex 78005c322..401a76230 100644--- a/packages/threews-avatar-mcp/README.md+++ b/packages/threews-avatar-mcp/README.md@@ -147,7 +147,7 @@ Each selector maps to a real three.ws endpoint. Raw `model` URLs must be `https:- Sibling package: [`@three-ws/avatar-agent`](https://www.npmjs.com/package/@three-ws/avatar-agent) — full 3D AI agent (wallet, voice, pump.fun)- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, see [LICENSE](./LICENSE)---diff --git a/packages/tool-sdk/LICENSE b/packages/tool-sdk/LICENSEnew file mode 100644index 000000000..dff21b7f4--- /dev/null+++ b/packages/tool-sdk/LICENSE@@ -0,0 +1,20 @@+Copyright 2026 nirholas++All rights reserved.++This software is proprietary and may not be used, copied, modified, distributed,+translated, or made available to any third party without the express written+permission of the copyright owner.++No rights are granted by implication, estoppel, or otherwise. Use of this+software is subject to the terms of a separate license agreement with the+copyright owner.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.++IN NO EVENT SHALL THE COPYRIGHT OWNER BE LIABLE FOR ANY CLAIM, DAMAGES, OR+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE,+ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER+DEALINGS IN THE SOFTWARE.diff --git a/packages/tool-sdk/package.json b/packages/tool-sdk/package.jsonindex c8437f765..061197bb9 100644--- a/packages/tool-sdk/package.json+++ b/packages/tool-sdk/package.json@@ -31,7 +31,8 @@},"files": ["src",- "README.md"+ "README.md",+ "LICENSE"],"engines": {"node": ">=18"diff --git a/packages/tutor-mcp/README.md b/packages/tutor-mcp/README.mdindex 1dfb8bf76..da1d3d01c 100644--- a/packages/tutor-mcp/README.md+++ b/packages/tutor-mcp/README.md@@ -129,7 +129,7 @@ A `sessionId` with no stored history returns an empty open session (`questionCou- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, see [LICENSE](./LICENSE)---diff --git a/packages/vanity-mcp/README.md b/packages/vanity-mcp/README.mdindex 2daace9cf..eb7d96e3a 100644--- a/packages/vanity-mcp/README.md+++ b/packages/vanity-mcp/README.md@@ -151,7 +151,7 @@ read-only, so nothing can be posted, claimed, or paid. See- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, see [LICENSE](./LICENSE)---diff --git a/packages/vanity/src/index.js b/packages/vanity/src/index.jsindex 9884b25c2..84360b3f5 100644--- a/packages/vanity/src/index.js+++ b/packages/vanity/src/index.js@@ -10,12 +10,6 @@// A paid lane, `grindViaApi()`, wraps the hosted x402 endpoint (GET// /api/x402/vanity) for environments that can't grind locally — short patterns// only, settled in USDC. See README.md for the full reference.-//-// DEVIATION FROM README (one line): the README describes a Rust→WASM grinder-// fanned across Web Workers; this build ships a zero-dependency pure-platform-// implementation instead (no WASM binary, no Worker pool) so the package stays-// dependency-free and importable everywhere — the `grind()` surface, options,-// validation, difficulty math, and result shape are identical.import { createHttp, ThreeWsError } from './http.js';diff --git a/packages/viewer-presets/NOTICE b/packages/viewer-presets/NOTICEindex 200fc4d4d..3d3a67912 100644--- a/packages/viewer-presets/NOTICE+++ b/packages/viewer-presets/NOTICE@@ -9,4 +9,4 @@ viewer by Ready Player Me, used under the MIT License.Copyright (c) Ready Player Me — MIT LicenseThe derived preset values have been re-tuned for three.ws avatar viewers. This-package is distributed under the Apache License, Version 2.0; see LICENSE.+package is distributed under a proprietary license; see LICENSE.diff --git a/packages/viewer-presets/README.md b/packages/viewer-presets/README.mdindex fd3c93823..64642129f 100644--- a/packages/viewer-presets/README.md+++ b/packages/viewer-presets/README.md@@ -164,7 +164,7 @@ with Forge's `seed` semantics so a variant set is shareable by number.Preset values are derived from Ready Player Me's `visage` viewer (MIT) and re-tunedfor three.ws. See [NOTICE](./NOTICE) for details. This package is distributed under-Apache-2.0.+a proprietary license; see [LICENSE](./LICENSE).## Related packages@@ -176,7 +176,7 @@ Apache-2.0.- Homepage: https://three.ws- Changelog: https://three.ws/changelog- Issues: https://github.com/nirholas/three.ws/issues-- License: Apache-2.0 — see [LICENSE](./LICENSE)+- License: proprietary, see [LICENSE](./LICENSE)---