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(x-content): add an editorial review, verification, and spell-check pass before queued posts go out
nirholasb185a239126f
diff --git a/api/_lib/x-content/editor.js b/api/_lib/x-content/editor.jsnew file mode 100644index 000000000..23cefda49--- /dev/null+++ b/api/_lib/x-content/editor.js@@ -0,0 +1,186 @@+// The AI editor: a senior editorial review of one queue item before a human+// approves it.+//+// Mechanical checks (quality.js, editorial.js, verify.js) catch what can be+// caught mechanically. What they cannot judge is whether the post is any good:+// whether the first line earns the second, whether the image shows what the+// copy claims, whether a sentence is technically true but misleading, whether+// a partner would be comfortable seeing their tag on it. That is this module.+//+// The editor sees what a reader sees (the copy, the images, the alt text), plus+// what a reader cannot: the claims ledger with its live verification results,+// the announcement pack the copy came from, the house voice contract, and the+// account's best-performing posts. It returns a verdict, scores, specific+// issues with fixes, and a rewrite. It never edits the queue: a human decides.+//+// Transport chain, strongest first: Claude on Vertex AI (GCP credits), Claude+// through OpenRouter, OpenAI, then Kimi K3 on NVIDIA NIM (free, multimodal, and+// slow: a full review takes minutes). Each rung is skipped when its credentials+// are absent and falls through on any provider error, including billing.++import { existsSync, readFileSync } from 'node:fs';+import { resolve } from 'node:path';+import { mediaType } from './media.js';++export const EDITOR_MODEL = 'claude-opus-5';+const MAX_SOURCE_CHARS = 24_000;+const MAX_ARTICLE_CHARS = 40_000;++export const SCORE_KEYS = ['accuracy', 'clarity', 'specificity', 'voice', 'professionalism', 'visual'];++const SYSTEM = `You are the editor-in-chief for three.ws, reviewing a post before it goes out on the company's X account @trythreews. three.ws is a platform for 3D AI agents: avatars, a web component, agent wallets on Solana, and the $THREE token. The audience is developers, builders, partners (AWS, NVIDIA, IBM, GitHub), and token holders. Every post is read by enterprise partners as well as the community, so the bar is a top-tier technology company: correct, specific, confident, never hype.++Judge the post on:+- accuracy: every factual statement is supported by the verified evidence you are given. A claim whose verification failed is a blocking issue. A statement that is literally true but leaves a false impression is a blocking issue. Anything the image shows that contradicts the copy (a different number, an old UI) is a blocking issue. The live product is the source of truth: when a screenshot disagrees with the live page or the code, the screenshot is stale, and the fix is to recapture it and use the live number, never to match the copy to the old image. A promise about the future (an event, a merge, a launch) with no evidence is a blocking issue. Credentials and partnerships are stated exactly as the evidence states them: never upgrade "an AWS Partner" to "a verified AWS Partner".+- clarity: a reader who has never heard of three.ws understands what the thing is and does from this post alone.+- specificity: it states a mechanism or a checkable fact, not an adjective. The first line carries the strongest true statement.+- voice: matches the house voice contract exactly (no hashtags, no emoji, no hype openers, no dashes, no rhetorical questions, no teaser threads).+- professionalism: grammar, punctuation, capitalization of names, and tone a partner's comms team would be comfortable being tagged in. Nothing that reads as investment advice or a price promise about $THREE. Tags are only for accounts the feature genuinely runs on.+- visual: the image is sharp, shows the real product, supports the claim, and would not be cropped badly in the timeline; alt text describes what is in the image for someone who cannot see it.++Score each 1 to 5, where 5 means you would ship it unchanged at a top-tier company and 3 means a competent draft that needs work.++Rules for your output:+- Quote the exact words each issue is about.+- severity "blocking" means it must not be published as is; "major" should be fixed; "minor" is polish.+- Every fix is concrete: the replacement text, or exactly what to recapture.+- The rewrite must obey every rule above, stay within 280 weighted characters per post (URLs count as 23), keep the same link, and contain only facts that appear word for word in a passing verification result or in the live page text quoted by a passing check. Do not import facts from the announcement pack that no check verified. If nothing needs to change, return the original text.+- verdict is "publish" only when there are no blocking issues and every score is at least 4; "revise" when fixable; "reject" when the post should not exist (wrong premise, unverifiable core claim, or reputational risk).++Respond with a single JSON object and nothing else:+{"verdict":"publish|revise|reject","scores":{"accuracy":1-5,"clarity":1-5,"specificity":1-5,"voice":1-5,"professionalism":1-5,"visual":1-5},"issues":[{"severity":"blocking|major|minor","area":"accuracy|clarity|specificity|voice|professionalism|visual","quote":"...","problem":"...","fix":"..."}],"rewrite":{"posts":["..."],"altText":["..."]},"summary":"two sentences for the approver"}`;++function readIfExists(root, path, limit) {+ if (!path) return null;+ const absolute = resolve(root, path);+ if (!existsSync(absolute)) return null;+ const text = readFileSync(absolute, 'utf8');+ return text.length > limit ? `${text.slice(0, limit)}\n[truncated]` : text;+}++function topPosts(root, count = 6) {+ const path = resolve(root, 'data/x-archive/analysis/trythreews-engagement.json');+ if (!existsSync(path)) return [];+ const rows = JSON.parse(readFileSync(path, 'utf8')).report?.top?.byEngagements || [];+ return rows+ .filter((row) => row.isOwn && !row.isRetweet)+ .slice(0, count)+ .map((row) => ({ text: String(row.text || '').replace(/\s+/g, ' ').trim(), likes: row.likes, reposts: row.retweets, views: row.views }));+}++// Images go to the model at a readable size. Video is described by its probe,+// since the editor cannot watch it.+async function imageParts(item, root) {+ const { default: sharp } = await import('sharp');+ const parts = [];+ const media = [+ ...(item.kind === 'article' && item.article?.cover ? [{ ...item.article.cover, role: 'Article cover' }] : []),+ ...(item.posts || []).flatMap((post, index) => (post.media || []).map((row) => ({ ...row, role: `Post ${index + 1} attachment` }))),+ ];+ for (const row of media) {+ const type = mediaType(row.path);+ if (!type || !existsSync(resolve(root, row.path))) continue;+ if (type.kind === 'video') {+ parts.push({ type: 'text', text: `${row.role}: video ${row.path}, probe ${JSON.stringify(row.probe || {})}. Captions burned in: ${row.captions ? 'yes' : 'unknown'}.` });+ continue;+ }+ const buffer = await sharp(resolve(root, row.path), { animated: false }).resize({ width: 1600, withoutEnlargement: true }).jpeg({ quality: 85 }).toBuffer();+ parts.push({ type: 'text', text: `${row.role}: ${row.path}. Alt text: ${JSON.stringify(row.alt || '')}` });+ parts.push({ type: 'image', data: buffer.toString('base64'), mime: 'image/jpeg' });+ }+ return parts;+}++export async function buildReviewRequest(item, { root, verification, lint }) {+ const voice = readIfExists(root, 'docs/announce-voice.md', MAX_SOURCE_CHARS);+ const source = readIfExists(root, item.source?.path, MAX_SOURCE_CHARS);+ const article = item.kind === 'article' ? readIfExists(root, item.article?.body, MAX_ARTICLE_CHARS) : null;+ const brief = {+ kind: item.kind,+ lane: item.lane,+ pattern: item.pattern,+ posts: (item.posts || []).map((post, index) => ({ position: index + 1, text: post.text })),+ article: item.kind === 'article' ? { title: item.article?.title } : undefined,+ claims: item.claims || [],+ mentions: item.mentions || {},+ verification: verification?.checks || [],+ mechanicalFindings: lint || [],+ sourceUrl: item.source?.url,+ };+ const text = [+ `## Post under review\n${JSON.stringify(brief, null, 2)}`,+ article ? `## Article body (Markdown)\n${article}` : null,+ source ? `## Announcement pack this post came from\n${source}` : null,+ voice ? `## House voice contract\n${voice}` : null,+ `## The account's best-performing posts, for calibration\n${JSON.stringify(topPosts(root), null, 2)}`,+ 'Review the post now. Respond with the JSON object only.',+ ]+ .filter(Boolean)+ .join('\n\n');+ return { system: SYSTEM, parts: [{ type: 'text', text }, ...(await imageParts(item, root))] };+}++export function parseReview(raw) {+ const text = String(raw || '');+ const start = text.indexOf('{');+ const end = text.lastIndexOf('}');+ if (start < 0 || end <= start) throw new Error('editor returned no JSON object');+ const review = JSON.parse(text.slice(start, end + 1));+ if (!['publish', 'revise', 'reject'].includes(review.verdict)) throw new Error(`editor returned verdict ${review.verdict}`);+ for (const key of SCORE_KEYS) {+ const score = Number(review.scores?.[key]);+ if (!(score >= 1 && score <= 5)) throw new Error(`editor returned no ${key} score`);+ review.scores[key] = score;+ }+ review.issues = Array.isArray(review.issues) ? review.issues : [];+ // The model does not get the last word on its own verdict: a blocking issue+ // or a low score always means revise.+ if (review.verdict === 'publish' && (review.issues.some((issue) => issue.severity === 'blocking') || SCORE_KEYS.some((key) => review.scores[key] < 4))) {+ review.verdict = 'revise';+ }+ return review;+}++async function viaVertex({ system, parts }) {+ const { vertexClaudeConfigured, vertexAnthropicMessages } = await import('../vertex-claude.js');+ if (!vertexClaudeConfigured()) return null;+ const content = parts.map((part) => (part.type === 'image' ? { type: 'image', source: { type: 'base64', media_type: part.mime, data: part.data } } : { type: 'text', text: part.text }));+ const response = await vertexAnthropicMessages({ model: EDITOR_MODEL, max_tokens: 6000, system, messages: [{ role: 'user', content }] });+ if (!response.ok) throw new Error(`Vertex ${response.status}: ${(await response.text()).slice(0, 200)}`);+ const body = await response.json();+ return { model: `vertex:${EDITOR_MODEL}`, text: body.content.filter((block) => block.type === 'text').map((block) => block.text).join('') };+}++async function viaChatCompletions({ system, parts }, { url, key, model, label, extraHeaders = {} }) {+ if (!key) return null;+ const content = parts.map((part) => (part.type === 'image' ? { type: 'image_url', image_url: { url: `data:${part.mime};base64,${part.data}` } } : { type: 'text', text: part.text }));+ const response = await fetch(url, {+ method: 'POST',+ headers: { authorization: `Bearer ${key}`, 'content-type': 'application/json', ...extraHeaders },+ body: JSON.stringify({ model, messages: [{ role: 'system', content: system }, { role: 'user', content }] }),+ signal: AbortSignal.timeout(600_000),+ });+ if (!response.ok) throw new Error(`${label} ${response.status}: ${(await response.text()).slice(0, 200)}`);+ const body = await response.json();+ return { model: `${label}:${model}`, text: body.choices?.[0]?.message?.content || '' };+}++export async function reviewWithEditor(request, env = process.env) {+ const rungs = [+ () => viaVertex(request),+ () => viaChatCompletions(request, { url: 'https://openrouter.ai/api/v1/chat/completions', key: env.OPENROUTER_API_KEY, model: `anthropic/${EDITOR_MODEL}`, label: 'openrouter', extraHeaders: { 'http-referer': 'https://three.ws', 'x-title': 'three.ws editorial review' } }),+ () => viaChatCompletions(request, { url: 'https://api.openai.com/v1/chat/completions', key: env.OPENAI_API_KEY, model: 'gpt-5.5-pro', label: 'openai' }),+ () => viaChatCompletions(request, { url: 'https://integrate.api.nvidia.com/v1/chat/completions', key: env.NVIDIA_API_KEY, model: 'moonshotai/kimi-k3', label: 'nvidia' }),+ ];+ const failures = [];+ for (const rung of rungs) {+ try {+ const result = await rung();+ if (!result) continue;+ return { ...parseReview(result.text), model: result.model, fallbacks: failures };+ } catch (err) {+ failures.push(err.message);+ }+ }+ throw new Error(`no editor model was reachable:\n ${failures.join('\n ') || 'no credentials for Vertex, OpenRouter, or OpenAI'}`);+}diff --git a/api/_lib/x-content/editorial.js b/api/_lib/x-content/editorial.jsnew file mode 100644index 000000000..1971b8f5c--- /dev/null+++ b/api/_lib/x-content/editorial.js@@ -0,0 +1,194 @@+// Editorial standards for @trythreews posts, beyond the voice lint in+// quality.js. quality.js catches what makes a feed look automated; this module+// catches what makes a company look careless or exposed:+//+// brand the product, the token, and partner names written correctly+// compliance nothing that reads as investment advice or a price promise+// register no crypto slang, marketing filler, or begging calls to action+// typography spacing, punctuation, one link per post+// claims every number, superlative, and @tag is declared with evidence+// media resolution, crop-safe aspect ratio, useful alt text, fresh frames+//+// Everything here is deterministic and offline, so it runs in the CLI and in the+// production cron alike. Checks that need the network (live evidence, links,+// accounts, spelling) are in verify.js; judgment calls are in editor.js.++import { existsSync, readFileSync } from 'node:fs';+import { resolve } from 'node:path';+import { mediaType } from './media.js';++const URLS = /(?:https?:\/\/|\b(?:www\.)?three\.ws\/)[^\s]+/gi;+const withoutUrls = (text) => String(text || '').replace(URLS, ' ');++// Written wrong -> written right. Case-sensitive on purpose.+export const BRAND_RULES = [+ [/\b(?:Three\.ws|THREE\.WS|Three\.WS|ThreeWS|Threews|three\s+ws)\b/, 'three.ws'],+ [/\$(?:three|Three)\b/, '$THREE'],+ [/\bTwitter\b/, 'X'],+ [/\b(?:tweet|tweets|tweeted|retweet)\b/i, 'post / repost'],+ [/\bGithub\b/, 'GitHub'],+ [/\bJavascript\b/, 'JavaScript'],+ [/\bTypescript\b/, 'TypeScript'],+ [/\b(?:Open AI|OpenAi)\b/, 'OpenAI'],+ [/\b(?:Nvidia|NVidia)\b/, 'NVIDIA'],+ [/(?<![@/.\w])solana\b(?!\.)/, 'Solana'],+ [/\b(?:Gltf|GLTF)\b/, 'glTF'],+ [/(?<![./\w])glb\b/, 'GLB'],+ [/(?<![@/.\w-])ai\b/, 'AI'],+ [/(?<![@/.\w-])(?:api|Api)\b/, 'API'],+ [/(?<![@/.\w-])(?:mcp|Mcp)\b/, 'MCP'],+ [/\bwebgl\b|\bWebgl\b/, 'WebGL'],+ [/\bwebxr\b|\bWebxr\b/, 'WebXR'],+];++// Language that reads as a financial promotion. A token post can say what+// $THREE does; it can never say what it will be worth.+export const COMPLIANCE_TERMS = [+ /\bto the moon\b/i, /\bmoon(?:ing|shot)?\b/i, /\b\d+\s*x\s+(?:gains?|returns?|potential)\b/i, /\b1000?x\b/i,+ /\bguaranteed?\b/i, /\bpassive income\b/i, /\bget rich\b/i, /\bfinancial freedom\b/i,+ /\b(?:returns?|profits?|gains?|yield) (?:for|to) holders\b/i, /\binvest(?:ment|ing|ors?)? (?:in|opportunity)\b/i,+ /\bbuy (?:now|\$THREE|the dip)\b/i, /\bdon'?t miss\b/i, /\blast chance\b/i, /\bprice (?:target|prediction|will)\b/i,+ /\bnot financial advice\b/i, /\bNFA\b/, /\bbullish\b/i, /\bbearish\b/i, /\bpump it\b/i, /\bape (?:in|into)\b/i,+];++export const SLANG_TERMS = [+ /\bgm\b/i, /\bgn\b/i, /\bwagmi\b/i, /\bngmi\b/i, /\blfg\b/i, /\bser\b/i, /\bfrens?\b/i, /\bdegens?\b/i,+ /\bbased\b/i, /\bwe'?re so back\b/i, /\bcooking\b/i, /\bfam\b/i, /\bIYKYK\b/i, /\blowkey\b/i, /\bngl\b/i, /\btbh\b/i,+];++export const FILLER_TERMS = [+ /\bvery\b/i, /\breally\b/i, /\bsimply\b/i, /\bliterally\b/i, /\bactually\b/i, /\bbasically\b/i, /\btruly\b/i,+ /\bincredibly\b/i, /\bsuper (?!app)\w+/i, /\bpowerful\b/i, /\bcutting[- ]edge\b/i, /\bstate[- ]of[- ]the[- ]art\b/i,+ /\brobust\b/i, /\binnovative\b/i, /\bworld[- ]class\b/i, /\bbest[- ]in[- ]class\b/i, /\bleverag(?:e|es|ing)\b/i,+ /\bempower(?:s|ing)?\b/i, /\bunleash(?:es|ing)?\b/i, /\belevat(?:e|es|ing)\b/i, /\bharness(?:es|ing)?\b/i,+ /\bjourney\b/i, /\bsynerg(?:y|ies)\b/i, /\bparadigm\b/i, /\bgroundbreaking\b/i, /\bawesome\b/i, /\bamazing\b/i,+];++export const PUSHY_CTAS = [+ /\bclick (?:the|this) link\b/i, /\bcheck (?:it|this) out\b/i, /\blike and (?:re)?post\b/i, /\bRT\b/,+ /\bfollow us\b/i, /\bsmash\b/i, /\blink in bio\b/i, /\bdrop a\b/i, /\btag a friend\b/i,+];++// Words that assert something absolute. Each needs a declared claim.+export const ABSOLUTES = /\b(?:first|only|fastest|largest|biggest|best|leading|never|always|every|no one|nobody|zero|unlimited|instant(?:ly)?|world'?s|#1|number one)\b/gi;++function termHits(text, terms) {+ return terms.map((term) => text.match(term)?.[0]).filter(Boolean);+}++export function languageProblems(text) {+ const problems = [];+ const prose = withoutUrls(text);+ for (const [wrong, right] of BRAND_RULES) {+ const hit = prose.match(wrong)?.[0];+ if (hit) problems.push({ rule: 'brand', severity: 'blocking', message: `"${hit}" is written "${right}"` });+ }+ for (const hit of termHits(prose, COMPLIANCE_TERMS)) {+ problems.push({ rule: 'compliance', severity: 'blocking', message: `"${hit}" reads as a financial promotion; say what the product does, never what a token will be worth` });+ }+ for (const hit of termHits(prose, SLANG_TERMS)) problems.push({ rule: 'register', severity: 'blocking', message: `"${hit}" is community slang, not company voice` });+ for (const hit of termHits(prose, FILLER_TERMS)) problems.push({ rule: 'register', severity: 'major', message: `"${hit}" is filler; replace it with the fact it stands in for` });+ for (const hit of termHits(prose, PUSHY_CTAS)) problems.push({ rule: 'register', severity: 'blocking', message: `"${hit}" is an engagement ask, not a reason to click` });++ if (/ {2,}/.test(text)) problems.push({ rule: 'typography', severity: 'blocking', message: 'double space' });+ if (/\s[,.;:!?](?:\s|$)/.test(prose)) problems.push({ rule: 'typography', severity: 'blocking', message: 'space before punctuation' });+ if (/[a-z][.!?][A-Z][a-z]/.test(prose)) problems.push({ rule: 'typography', severity: 'blocking', message: 'missing space after a sentence' });+ if (/[‘’“”]/.test(text) && /['"]/.test(prose)) problems.push({ rule: 'typography', severity: 'major', message: 'mixes curly and straight quotes' });+ if (/(?:\.\.\.|…)\s*$/.test(text.trim())) problems.push({ rule: 'structure', severity: 'blocking', message: 'ends on an ellipsis, which withholds the point' });+ if (/\b(?:1\/\d*|\(1\/\d+\))\s*$/.test(text.trim())) problems.push({ rule: 'structure', severity: 'blocking', message: 'thread counter teaser; lead with the strongest true statement instead' });++ const sentences = prose.split(/(?<=[.!?])\s+/).map((s) => s.trim()).filter(Boolean);+ if (sentences[0]?.endsWith('?')) problems.push({ rule: 'structure', severity: 'blocking', message: 'rhetorical-question opener; state what it does' });+ const oneWord = sentences.map((s) => s.split(/\s+/).length === 1);+ if (oneWord.some((flag, index) => flag && oneWord[index + 1] && oneWord[index + 2])) {+ problems.push({ rule: 'structure', severity: 'blocking', message: 'one-word-sentence drumbeat reads as ad copy' });+ }+ const links = String(text).match(URLS) || [];+ if (links.length > 1) problems.push({ rule: 'links', severity: 'blocking', message: `${links.length} links; one post links one surface` });+ const mentions = prose.match(/(?<![\w@])@\w{1,15}/g) || [];+ if (mentions.length > 2) problems.push({ rule: 'mentions', severity: 'major', message: `${mentions.length} mentions; more than two reads as tag-baiting` });+ return problems;+}++export function mentionsIn(text) {+ return [...new Set((withoutUrls(text).match(/(?<![\w@])@\w{1,15}/g) || []).map((m) => m.toLowerCase()))];+}++// Numbers (other than those inside URLs and $THREE) and absolute words, each+// with the post it came from.+export function assertionsIn(text) {+ const prose = withoutUrls(text).replace(/\$THREE\b/g, ' ');+ // "3D", "ERC-8004", and "GPT-5" are names, not measurements.+ const numbers = [...prose.matchAll(/(?<![\w-])\d[\d,.]*(?:st|nd|rd|th|%|x\b|\s?(?:ms|seconds?|minutes?|hours?|days?|k|m|b)\b)?(?![\w-])/gi)].map((m) => m[0].replace(/[.,]$/, ''));+ const absolutes = [...prose.matchAll(ABSOLUTES)].map((m) => m[0]);+ return { numbers, absolutes };+}++// The claims ledger. Every number and absolute in the copy must sit inside a+// claim's `says`, every claim must appear in the copy and carry evidence, and+// every @mention must record why the tag is true.+export function claimProblems(item) {+ const problems = [];+ const texts = [...(item.posts || []).map((post) => post.text), item.kind === 'article' ? item.article?.title : null].filter(Boolean);+ const corpus = texts.join('\n').toLowerCase();+ const claims = item.claims || [];++ for (const claim of claims) {+ if (!claim.says || !corpus.includes(String(claim.says).toLowerCase())) {+ problems.push({ rule: 'claims', severity: 'blocking', message: `claim "${claim.says}" does not appear in the copy; claims must quote the post` });+ }+ if (!claim.evidence?.length) problems.push({ rule: 'claims', severity: 'blocking', message: `claim "${claim.says}" has no evidence` });+ }+ const covered = (fragment) => claims.some((claim) => String(claim.says || '').toLowerCase().includes(fragment.toLowerCase()));+ for (const text of texts) {+ const { numbers, absolutes } = assertionsIn(text);+ for (const number of numbers) if (!covered(number)) problems.push({ rule: 'claims', severity: 'blocking', message: `"${number}" is an unverified number; declare it in claims with evidence` });+ for (const word of absolutes) if (!covered(word)) problems.push({ rule: 'claims', severity: 'blocking', message: `"${word}" is an absolute; declare the claim it makes, with evidence, or cut it` });+ }+ const reasons = Object.fromEntries(Object.entries(item.mentions || {}).map(([handle, why]) => [handle.toLowerCase(), why]));+ for (const handle of mentionsIn(texts.join('\n'))) {+ if (!String(reasons[handle] || '').trim()) problems.push({ rule: 'mentions', severity: 'blocking', message: `${handle} has no recorded reason; tag only an account the feature genuinely runs on` });+ }+ return problems;+}++// Media most likely to embarrass: soft upscales, crops that cut the subject,+// alt text that says nothing, and a frame older than the product it shows.+export async function mediaQualityProblems(post, root, { maxFrameAgeDays = 21, now = Date.now() } = {}) {+ const problems = [];+ const list = post.media || [];+ const manifestPath = resolve(root, 'public/announce/media-manifest.json');+ const manifest = existsSync(manifestPath) ? JSON.parse(readFileSync(manifestPath, 'utf8')) : { shots: {} };+ const shots = Object.values(manifest.shots || {});+ const { default: sharp } = await import('sharp');++ for (const media of list) {+ const type = mediaType(media.path);+ if (!type || !existsSync(resolve(root, media.path))) continue;+ if (type.kind !== 'video') {+ const meta = await sharp(resolve(root, media.path), { animated: type.kind === 'gif' }).metadata();+ const width = meta.width;+ const height = meta.pageHeight || meta.height;+ if (width < 1200) problems.push({ rule: 'media', severity: 'blocking', message: `${media.path} is ${width}px wide; X renders it soft below 1200px` });+ const ratio = width / height;+ if (list.length === 1 && (ratio > 2 || ratio < 0.75)) {+ problems.push({ rule: 'media', severity: 'major', message: `${media.path} is ${ratio.toFixed(2)}:1; X crops a single image outside 3:4 to 2:1 in the timeline` });+ }+ if (list.length > 1 && (ratio > 1.8 || ratio < 0.8)) {+ problems.push({ rule: 'media', severity: 'major', message: `${media.path} is ${ratio.toFixed(2)}:1; multi-image grids crop toward square` });+ }+ const alt = String(media.alt || '').trim();+ if (alt && alt.length < 40) problems.push({ rule: 'media', severity: 'blocking', message: `${media.path} alt text is ${alt.length} characters; describe what the image shows` });+ if (/^(?:an? )?(?:image|picture|photo|screenshot) of\b/i.test(alt)) problems.push({ rule: 'media', severity: 'major', message: `${media.path} alt text opens with "${alt.split(' of')[0]} of"; screen readers already say it is an image` });+ if (alt && alt === String(post.text || '').trim()) problems.push({ rule: 'media', severity: 'blocking', message: `${media.path} alt text repeats the post; describe the image instead` });+ }+ const shot = shots.find((row) => media.path === `public${row.src}`);+ if (shot?.capturedAt) {+ const age = (now - Date.parse(shot.capturedAt)) / 86_400_000;+ if (age > maxFrameAgeDays) {+ problems.push({ rule: 'media', severity: 'blocking', message: `${media.path} was captured ${Math.floor(age)} days ago from ${shot.route}; recapture with \`npm run announce:media\` so the frame shows the product as it is today` });+ }+ }+ }+ return problems;+}diff --git a/api/_lib/x-content/queue.js b/api/_lib/x-content/queue.jsindex 2d3099742..0256e5a37 100644--- a/api/_lib/x-content/queue.js+++ b/api/_lib/x-content/queue.js@@ -10,6 +10,8 @@ import { resolve } from 'node:path';import { copyProblems, copySimilarity, hasUrl, weightedLength } from './quality.js';import { attachmentProblems, mediaProblems, mediaType } from './media.js';import { MARKDOWN_ENTITY_BUDGET, markdownToContentState } from './articles.js';+import { claimProblems, languageProblems } from './editorial.js';+import { approvalProblems } from './review.js';export const QUEUE_PATH = 'data/x-content/queue.json';export const STATUSES = ['draft', 'review', 'approved', 'paused', 'posted'];@@ -133,6 +135,16 @@ export function validateItem(item, root) {// the link and the head may be short.if (item.posts?.length) problems.push(...postProblems(item, root, { headMinimum: 40, headNeedsUrl: false }));}++ // Editorial standards that can be judged offline block at every stage.+ const texts = [item.kind === 'article' ? item.article?.title : null, ...(item.posts || []).map((post) => post.text)].filter(Boolean);+ for (const text of texts) {+ for (const finding of languageProblems(text)) if (finding.severity === 'blocking') problems.push(`${finding.rule}: ${finding.message}`);+ }+ for (const finding of claimProblems(item)) if (finding.severity === 'blocking') problems.push(`${finding.rule}: ${finding.message}`);++ // Approval is only real while a passing review covers these exact bytes.+ if (item.status === 'approved') problems.push(...approvalProblems(item, root).map((problem) => `review: ${problem}`));return problems;}diff --git a/api/_lib/x-content/review.js b/api/_lib/x-content/review.jsnew file mode 100644index 000000000..b2173280b--- /dev/null+++ b/api/_lib/x-content/review.js@@ -0,0 +1,123 @@+// Review records: the proof that an item passed the editorial bar, bound to the+// exact bytes that were reviewed.+//+// `npm run x:content -- review <id>` runs the whole bar (voice lint, editorial+// lint, media quality, live verification, the AI editor) and writes+// data/x-content/reviews/<id>.json. An item can only be `approved` while a+// passing record exists whose content hash matches the item as it is now, so+// changing one word, swapping an image, or editing a claim after review voids+// the approval until it is reviewed again. Records ship in the image, and the+// production cron enforces the same rule.++import { createHash } from 'node:crypto';+import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';+import { dirname, resolve } from 'node:path';+import { claimProblems, languageProblems, mediaQualityProblems } from './editorial.js';+import { copyProblems } from './quality.js';+import { buildReviewRequest, reviewWithEditor } from './editor.js';+import { itemTexts, verifyItem } from './verify.js';++export const REVIEW_MAX_AGE_DAYS = 14;+export const reviewPath = (id) => `data/x-content/reviews/${id}.json`;++const fileHash = (root, path) => {+ const absolute = resolve(root, String(path || ''));+ return path && existsSync(absolute) ? createHash('sha256').update(readFileSync(absolute)).digest('hex') : null;+};++export function contentHash(item, root) {+ const media = (row) => ({ path: row.path, sha256: fileHash(root, row.path), alt: row.alt || null, probe: row.probe || null });+ const subject = {+ kind: item.kind,+ posts: (item.posts || []).map((post) => ({ text: String(post.text || '').trim(), media: (post.media || []).map(media) })),+ article: item.kind === 'article'+ ? { title: item.article?.title, body: fileHash(root, item.article?.body), cover: item.article?.cover ? media(item.article.cover) : null }+ : null,+ claims: item.claims || [],+ mentions: item.mentions || {},+ };+ return createHash('sha256').update(JSON.stringify(subject)).digest('hex');+}++export function loadReview(root, id) {+ const path = resolve(root, reviewPath(id));+ return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : null;+}++// Offline lint for every post in an item, as structured findings.+export function lintItem(item) {+ const findings = [];+ (item.posts || []).forEach((post, index) => {+ const where = index === 0 ? 'head' : `reply ${index}`;+ for (const problem of languageProblems(post.text)) findings.push({ where, ...problem });+ for (const message of copyProblems(post.text, { minimum: 1, requireUrl: false })) findings.push({ where, rule: 'voice', severity: 'blocking', message });+ });+ if (item.kind === 'article' && item.article?.title) {+ for (const problem of languageProblems(item.article.title)) findings.push({ where: 'article title', ...problem });+ }+ for (const problem of claimProblems(item)) findings.push({ where: 'claims', ...problem });+ return findings;+}++// Why an approved item may not be published, or [] when it may.+export function approvalProblems(item, root, now = Date.now()) {+ const record = loadReview(root, item.id);+ if (!record) return [`no editorial review on record; run \`npm run x:content -- review ${item.id}\``];+ const problems = [];+ if (record.contentHash !== contentHash(item, root)) problems.push('the copy, media, or claims changed after the last review; review it again');+ const age = (now - Date.parse(record.reviewedAt)) / 86_400_000;+ if (age > REVIEW_MAX_AGE_DAYS) problems.push(`the review is ${Math.floor(age)} days old; facts drift, so review it again`);+ if (!record.passed) problems.push(`the last review did not pass: ${record.blockers.slice(0, 3).join('; ')}`);+ return problems;+}++export async function reviewItem(item, { root, glossary = [], env = process.env, skipEditor = false }) {+ const lint = lintItem(item);+ for (const [index, post] of (item.posts || []).entries()) {+ for (const problem of await mediaQualityProblems(post, root)) lint.push({ where: index === 0 ? 'head' : `reply ${index}`, ...problem });+ }+ if (item.kind === 'article' && item.article?.cover) {+ for (const problem of await mediaQualityProblems({ text: item.article.title, media: [{ alt: item.article.title, ...item.article.cover }] }, root)) {+ lint.push({ where: 'article cover', ...problem });+ }+ }+ const verification = await verifyItem(item, { root, glossary, env });+ const editor = skipEditor ? null : await reviewWithEditor(await buildReviewRequest(item, { root, verification, lint }), env);++ const blockers = [+ ...lint.filter((row) => row.severity === 'blocking').map((row) => `${row.where}: ${row.message}`),+ ...verification.checks.filter((check) => !check.ok).map((check) => `${check.kind} ${check.target}: ${check.detail}`),+ ];+ if (editor) {+ for (const issue of editor.issues.filter((row) => row.severity === 'blocking')) blockers.push(`editor (${issue.area}): ${issue.problem}`);+ const overridden = item.editorOverride?.reason && editor.verdict === 'revise' && !editor.issues.some((row) => row.severity === 'blocking');+ if (editor.verdict !== 'publish' && !overridden) blockers.push(`editor verdict is ${editor.verdict}`);+ } else {+ blockers.push('the AI editor did not run');+ }++ // The editor's rewrite is a draft like any other: lint it, and list every+ // number or absolute it introduced that no claim covers.+ if (editor?.rewrite?.posts?.length) {+ const draft = { ...item, posts: editor.rewrite.posts.map((text) => ({ text })) };+ editor.rewriteFindings = [+ ...lintItem(draft).filter((row) => row.severity === 'blocking').map((row) => `${row.where}: ${row.message}`),+ ];+ }++ const record = {+ id: item.id,+ contentHash: contentHash(item, root),+ reviewedAt: new Date().toISOString(),+ passed: blockers.length === 0,+ blockers,+ texts: itemTexts(item),+ lint,+ verification,+ editor,+ };+ const path = resolve(root, reviewPath(item.id));+ mkdirSync(dirname(path), { recursive: true });+ writeFileSync(path, `${JSON.stringify(record, null, '\t')}\n`);+ return record;+}diff --git a/api/_lib/x-content/runner.js b/api/_lib/x-content/runner.jsindex f24701fac..6947f039f 100644--- a/api/_lib/x-content/runner.js+++ b/api/_lib/x-content/runner.js@@ -4,6 +4,7 @@import { loadQueue, validateQueue } from './queue.js';import { pickDue } from './schedule.js';import { previewClient, publishItem, xClientFromEnv } from './publisher.js';+import { itemTexts, linkChecks } from './verify.js';export async function runTick({ root, store, now = Date.now(), dryRun = true, requestedId = null, env = process.env }) {const queue = loadQueue(root);@@ -37,6 +38,12 @@ export async function runTick({ root, store, now = Date.now(), dryRun = true, rereturn { preview: { id: item.id, kind: item.kind, dueAt: new Date(decision.dueAt).toISOString(), calls: client.calls }, blocked };}+ // A page can break between review and publish. Never send a dead link.+ const broken = (await linkChecks(itemTexts(item))).filter((check) => !check.ok);+ if (broken.length) {+ return { published: null, reason: `${item.id} links a page that is down right now`, blocked: [...blocked, { id: item.id, problems: broken.map((check) => `${check.target}: ${check.detail}`) }] };+ }+const client = await xClientFromEnv(env);if (!client) return { published: null, skipped: 'not_configured', reason: 'X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_SECRET are required', blocked };const row = await publishItem({ item, client, root, state, store, account: queue.account });diff --git a/api/_lib/x-content/verify.js b/api/_lib/x-content/verify.jsnew file mode 100644index 000000000..b54465e7e--- /dev/null+++ b/api/_lib/x-content/verify.js@@ -0,0 +1,212 @@+// Live verification of a queue item: the facts, not the phrasing.+//+// A post that is well written and wrong is worse than no post. This module+// checks every declared claim against the thing it cites, at the moment of+// review:+//+// page the live page, rendered in a real browser, contains the text+// file a repo file contains the text or matches the pattern+// module a repo module's export has the stated length or value+// github-issue an issue has the stated state and label+// github-issues a repository has at least N issues matching state and label+//+// It also resolves every link in the copy, confirms every @mention is a real,+// public account, and spellchecks the prose. The CLI runs it before the editor+// (editor.js) and records the result; production re-checks links right before+// a post goes out (linkChecks).++import { existsSync, readFileSync } from 'node:fs';+import { resolve } from 'node:path';+import { pathToFileURL } from 'node:url';+import { mentionsIn } from './editorial.js';++const URLS = /(?:https?:\/\/|\b(?:www\.)?three\.ws\/)[^\s]+/gi;+const UA = 'three.ws editorial verifier (+https://three.ws)';+const normalize = (text) => String(text || '').replace(/\s+/g, ' ').trim().toLowerCase();++export function itemTexts(item) {+ return [item.kind === 'article' ? item.article?.title : null, ...(item.posts || []).map((post) => post.text)].filter(Boolean);+}++export function linksIn(texts) {+ const links = new Set();+ for (const text of texts) for (const match of String(text).match(URLS) || []) links.add(/^https?:/i.test(match) ? match : `https://${match}`);+ return [...links].map((link) => link.replace(/[).,;:!?]+$/, ''));+}++async function fetchWithTimeout(url, init = {}, ms = 20_000) {+ const controller = new AbortController();+ const timer = setTimeout(() => controller.abort(), ms);+ try {+ return await fetch(url, { redirect: 'follow', ...init, headers: { 'user-agent': UA, ...(init.headers || {}) }, signal: controller.signal });+ } finally {+ clearTimeout(timer);+ }+}++// Links must answer 2xx after redirects. Runs in production too, right before+// a post is sent, because a page can break between review and publish.+export async function linkChecks(texts) {+ const checks = [];+ for (const url of linksIn(texts)) {+ try {+ const response = await fetchWithTimeout(url);+ const ok = response.status >= 200 && response.status < 300;+ checks.push({ kind: 'link', target: url, ok, detail: ok ? `HTTP ${response.status}${response.url !== url ? ` via ${response.url}` : ''}` : `HTTP ${response.status}` });+ } catch (err) {+ checks.push({ kind: 'link', target: url, ok: false, detail: `unreachable: ${err.message}` });+ }+ }+ return checks;+}++function createPageReader() {+ let browser = null;+ const cache = new Map();+ return {+ async text(url) {+ if (cache.has(url)) return cache.get(url);+ if (!browser) {+ const { chromium } = await import('playwright');+ browser = await chromium.launch();+ }+ const page = await browser.newPage({ userAgent: UA });+ try {+ const response = await page.goto(url, { waitUntil: 'networkidle', timeout: 60_000 }).catch(() => null);+ const status = response?.status() ?? 0;+ const text = await page.evaluate(() => (document.querySelector('main') || document.body).innerText);+ const result = { status, text: normalize(text) };+ cache.set(url, result);+ return result;+ } finally {+ await page.close();+ }+ },+ async close() {+ if (browser) await browser.close();+ },+ };+}++async function github(path) {+ const headers = { accept: 'application/vnd.github+json' };+ const token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN;+ if (token) headers.authorization = `Bearer ${token}`;+ const response = await fetchWithTimeout(`https://api.github.com/${path}`, { headers });+ if (!response.ok) throw new Error(`GitHub ${path} answered HTTP ${response.status}`);+ return response.json();+}++const hasLabel = (issue, label) => !label || issue.labels.some((row) => row.name.toLowerCase() === label.toLowerCase());++async function evidenceCheck(evidence, { root, pages }) {+ const target = evidence.url || evidence.path || (evidence.repo ? `${evidence.repo}${evidence.number ? `#${evidence.number}` : ''}` : '');+ const base = { kind: `evidence:${evidence.type}`, target };+ switch (evidence.type) {+ case 'page': {+ const { status, text } = await pages.text(evidence.url);+ if (status < 200 || status >= 300) return { ...base, ok: false, detail: `page answered HTTP ${status}` };+ const found = text.includes(normalize(evidence.contains));+ return { ...base, ok: found, detail: found ? `live page shows "${evidence.contains}"` : `live page does not show "${evidence.contains}"` };+ }+ case 'file': {+ const path = resolve(root, evidence.path);+ if (!existsSync(path)) return { ...base, ok: false, detail: 'file is missing' };+ const body = readFileSync(path, 'utf8');+ const found = evidence.matches ? new RegExp(evidence.matches, 'm').test(body) : body.includes(evidence.contains);+ return { ...base, ok: found, detail: found ? 'file supports the claim' : `file does not contain ${evidence.matches ? `/${evidence.matches}/` : `"${evidence.contains}"`}` };+ }+ case 'module': {+ const module = await import(pathToFileURL(resolve(root, evidence.path)).href);+ const value = module[evidence.export];+ if (value === undefined) return { ...base, ok: false, detail: `export ${evidence.export} is missing` };+ if ('length' in evidence) {+ const ok = value?.length === evidence.length;+ return { ...base, ok, detail: `${evidence.export} has ${value?.length} entries; the claim needs ${evidence.length}` };+ }+ const ok = JSON.stringify(value) === JSON.stringify(evidence.equals);+ return { ...base, ok, detail: ok ? `${evidence.export} matches` : `${evidence.export} is ${JSON.stringify(value)}` };+ }+ case 'github-issue': {+ const issue = await github(`repos/${evidence.repo}/issues/${evidence.number}`);+ const stateOk = !evidence.state || issue.state === evidence.state;+ const labelOk = hasLabel(issue, evidence.label);+ return { ...base, ok: stateOk && labelOk, detail: `#${evidence.number} is ${issue.state}${evidence.label ? `, ${labelOk ? 'has' : 'lacks'} label "${evidence.label}"` : ''}` };+ }+ case 'github-issues': {+ const params = new URLSearchParams({ state: evidence.state || 'open', per_page: '100' });+ if (evidence.label) params.set('labels', evidence.label);+ const issues = (await github(`repos/${evidence.repo}/issues?${params}`)).filter((row) => !row.pull_request);+ const min = evidence.min ?? 1;+ return { ...base, ok: issues.length >= min, detail: `${issues.length} ${evidence.state || 'open'} issue(s)${evidence.label ? ` labelled "${evidence.label}"` : ''}; the claim needs ${min}` };+ }+ default:+ return { ...base, ok: false, detail: `unknown evidence type ${evidence.type}` };+ }+}++async function mentionChecks(texts, env) {+ const handles = mentionsIn(texts.join('\n'));+ if (!handles.length) return [];+ if (!(env.X_API_KEY && env.X_API_SECRET)) {+ return handles.map((handle) => ({ kind: 'mention', target: handle, ok: false, detail: 'X_API_KEY and X_API_SECRET are needed to confirm the account exists' }));+ }+ const { TwitterApi } = await import('twitter-api-v2');+ const client = await new TwitterApi({ appKey: env.X_API_KEY, appSecret: env.X_API_SECRET }).appLogin();+ const checks = [];+ for (const handle of handles) {+ try {+ const { data, errors } = await client.v2.userByUsername(handle.slice(1), { 'user.fields': ['name', 'protected', 'verified_type'] });+ if (!data) checks.push({ kind: 'mention', target: handle, ok: false, detail: errors?.[0]?.detail || 'account not found' });+ else if (data.protected) checks.push({ kind: 'mention', target: handle, ok: false, detail: `${data.name} is a protected account` });+ else checks.push({ kind: 'mention', target: handle, ok: true, detail: `${data.name}${data.verified_type && data.verified_type !== 'none' ? ` (${data.verified_type} verified)` : ''}` });+ } catch (err) {+ checks.push({ kind: 'mention', target: handle, ok: false, detail: `lookup failed: ${err.message}` });+ }+ }+ return checks;+}++async function spellingChecks(item, texts, glossary) {+ const { spellCheckDocument } = await import('cspell-lib');+ const handles = mentionsIn(texts.join('\n')).map((handle) => handle.slice(1));+ const prose = texts.join('\n').replace(URLS, ' ').replace(/\$THREE\b/g, ' ');+ const altTexts = (item.posts || []).flatMap((post) => (post.media || []).map((media) => media.alt)).filter(Boolean);+ const result = await spellCheckDocument(+ { uri: 'file:///x-content.txt', text: [prose, ...altTexts].join('\n'), languageId: 'plaintext', locale: 'en-US,en-GB' },+ { generateSuggestions: true, noConfigSearch: true },+ { words: [...glossary, ...handles], ignoreWords: [] },+ );+ const seen = new Set();+ return result.issues+ .filter((issue) => !seen.has(issue.text.toLowerCase()) && seen.add(issue.text.toLowerCase()))+ .map((issue) => ({+ kind: 'spelling',+ target: issue.text,+ ok: false,+ detail: issue.suggestions?.length ? `did you mean ${issue.suggestions.slice(0, 3).map((s) => (typeof s === 'string' ? s : s.word)).join(', ')}?` : 'not a known word; add it to the queue glossary if it is correct',+ }));+}++export async function verifyItem(item, { root, glossary = [], env = process.env }) {+ const texts = itemTexts(item);+ const pages = createPageReader();+ const checks = [];+ try {+ for (const claim of item.claims || []) {+ for (const evidence of claim.evidence || []) {+ try {+ checks.push({ claim: claim.says, ...(await evidenceCheck(evidence, { root, pages })) });+ } catch (err) {+ checks.push({ claim: claim.says, kind: `evidence:${evidence.type}`, target: evidence.url || evidence.path || evidence.repo, ok: false, detail: err.message });+ }+ }+ }+ } finally {+ await pages.close();+ }+ checks.push(...(await linkChecks(texts)));+ checks.push(...(await mentionChecks(texts, env)));+ checks.push(...(await spellingChecks(item, texts, glossary)));+ return { ok: checks.every((check) => check.ok), checks };+}diff --git a/data/x-content/queue.json b/data/x-content/queue.jsonindex 3660a5c44..e43965c56 100644--- a/data/x-content/queue.json+++ b/data/x-content/queue.json@@ -14,7 +14,36 @@"archiveSimilarityLimit": 0.42,"queueSimilarityLimit": 0.34,"maximumSameLaneInARow": 2,- "maximumSamePatternInARow": 1+ "maximumSamePatternInARow": 1,+ "glossary": [+ "GLB",+ "glTF",+ "three.ws",+ "Mixamo",+ "VRM",+ "VRoid",+ "Avaturn",+ "Reallusion",+ "MediaPipe",+ "Kinect",+ "ARKit",+ "HumanIK",+ "Rigify",+ "Daz",+ "MakeHuman",+ "Nemotron",+ "watsonx",+ "MCP",+ "x402",+ "ERC-8004",+ "emotes",+ "onchain",+ "custodial",+ "retarget",+ "retargets",+ "reprojection",+ "GPU"+ ]},"items": [{@@ -38,7 +67,47 @@}]}- ]+ ],+ "claims": [+ {+ "says": "custodial @solana wallet",+ "evidence": [+ {+ "type": "page",+ "url": "https://three.ws/genesis",+ "contains": "A real Solana + EVM wallet"+ },+ {+ "type": "file",+ "path": "docs/genesis.md",+ "contains": "custodial Solana"+ }+ ]+ },+ {+ "says": "a persona, and a voice",+ "evidence": [+ {+ "type": "page",+ "url": "https://three.ws/genesis",+ "contains": "Persona (optional) Voice"+ }+ ]+ },+ {+ "says": "walks and emotes on arrival",+ "evidence": [+ {+ "type": "page",+ "url": "https://three.ws/genesis",+ "contains": "A rigged avatar that walks, idles and emotes"+ }+ ]+ }+ ],+ "mentions": {+ "@solana": "Every Genesis agent is provisioned a custodial Solana wallet (POST /api/agents/:id/wallet/provision); Solana is the platform's home chain."+ }},{"id": "rig-doctor",@@ -52,12 +121,56 @@},"posts": [{- "text": "Approved for GitHub's Open Source Friday. Rig Doctor knows 11 rig conventions. Teaching it the 12th is an open first issue, and we merge it live on stream: three.ws/rig-doctor",+ "text": "Approved for GitHub's Open Source Friday. Rig Doctor names which of 15 rig conventions a .glb follows, right in your browser, with nothing uploaded: three.ws/rig-doctor","textFrom": "docs/announcements/open-source-friday.post.txt","media": [{"path": "public/announce/img/rig-doctor-hero.webp",- "alt": "three.ws Rig Doctor: drop in any humanoid GLB and it names the skeleton convention, then lists joint by joint which bones will animate and which will not move"+ "alt": "The three.ws Rig Doctor page: a drop zone for a .glb file that runs entirely in the browser, above stats reading 0 bytes leave your machine, 52 canonical joints scored, and 15 rig conventions recognised"+ }+ ]+ }+ ],+ "claims": [+ {+ "says": "Approved for GitHub's Open Source Friday",+ "evidence": [+ {+ "type": "github-issue",+ "repo": "githubevents/open-source-friday",+ "number": 254,+ "label": "approved"+ }+ ]+ },+ {+ "says": "15 rig conventions",+ "evidence": [+ {+ "type": "page",+ "url": "https://three.ws/rig-doctor",+ "contains": "15 rig conventions recognised"+ },+ {+ "type": "module",+ "path": "src/rig-report.js",+ "export": "CONVENTIONS",+ "length": 15+ }+ ]+ },+ {+ "says": "right in your browser, with nothing uploaded",+ "evidence": [+ {+ "type": "page",+ "url": "https://three.ws/rig-doctor",+ "contains": "Nothing is uploaded"+ },+ {+ "type": "page",+ "url": "https://three.ws/rig-doctor",+ "contains": "0 bytes leave your machine"}]}@@ -75,7 +188,7 @@},"posts": [{- "text": "How we authorize autonomous spend, and the $THREE layer, on @awscloud: https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "text": "Agents on three.ws spend against budgets, never private keys. How we authorize that spending, and the $THREE token layer behind it, on @awscloud's Builder Center: https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner","textFrom": "docs/announcements/aws-builder-center-authorization-spine.post.txt","media": [{@@ -84,7 +197,52 @@}]}- ]+ ],+ "claims": [+ {+ "says": "spend against budgets, never private keys",+ "evidence": [+ {+ "type": "page",+ "url": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "contains": "budgets instead of private keys"+ }+ ]+ },+ {+ "says": "How we authorize that spending",+ "evidence": [+ {+ "type": "page",+ "url": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "contains": "how we authorize autonomous agent spending"+ }+ ]+ },+ {+ "says": "the $THREE token layer",+ "evidence": [+ {+ "type": "page",+ "url": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "contains": "Budgets, entitlements, and the $THREE token layer"+ }+ ]+ },+ {+ "says": "on @awscloud's Builder Center",+ "evidence": [+ {+ "type": "page",+ "url": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "contains": "AWS Builder Center"+ }+ ]+ }+ ],+ "mentions": {+ "@awscloud": "The article is published on the AWS Builder Center under the three.ws byline, as an AWS Partner."+ }}]}diff --git a/data/x-content/reviews/aws-authorization-spine.json b/data/x-content/reviews/aws-authorization-spine.jsonnew file mode 100644index 000000000..1613643c7--- /dev/null+++ b/data/x-content/reviews/aws-authorization-spine.json@@ -0,0 +1,132 @@+{+ "id": "aws-authorization-spine",+ "contentHash": "d48de73cb5687d91efb1cb3ac05f329d8719168e69491e1c53cb9c3f67c6ed46",+ "reviewedAt": "2026-09-16T19:42:41.158Z",+ "passed": false,+ "blockers": [+ "evidence:page https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner: live page does not show \"budgets instead of private keys\"",+ "evidence:page https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner: live page does not show \"how we authorize autonomous agent spending\"",+ "evidence:page https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner: live page does not show \"Budgets, entitlements, and the $THREE token layer\"",+ "evidence:page https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner: live page does not show \"AWS Builder Center\"",+ "editor (accuracy): The page check for the supporting string 'budgets instead of private keys' failed (ok: false). The supplied screenshot does show that exact phrase in the article summary, but no passing verification result or quoted live-page text exists for it, so the claim is unverified as submitted.",+ "editor (accuracy): Verification failed: live page check for 'how we authorize autonomous agent spending' returned ok: false, even though the headline is visible in the screenshot.",+ "editor (accuracy): Verification failed for 'Budgets, entitlements, and the $THREE token layer' (ok: false). The claim is currently unsupported by any passing check.",+ "editor (accuracy): Verification failed: the live page check for 'AWS Builder Center' returned ok: false. The screenshot shows the AWS Builder Center chrome, but the evidence record does not.",+ "editor verdict is revise"+ ],+ "texts": [+ "Agents on three.ws spend against budgets, never private keys. How we authorize that spending, and the $THREE token layer behind it, on @awscloud's Builder Center: https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner"+ ],+ "lint": [],+ "verification": {+ "ok": false,+ "checks": [+ {+ "claim": "spend against budgets, never private keys",+ "kind": "evidence:page",+ "target": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "ok": false,+ "detail": "live page does not show \"budgets instead of private keys\""+ },+ {+ "claim": "How we authorize that spending",+ "kind": "evidence:page",+ "target": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "ok": false,+ "detail": "live page does not show \"how we authorize autonomous agent spending\""+ },+ {+ "claim": "the $THREE token layer",+ "kind": "evidence:page",+ "target": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "ok": false,+ "detail": "live page does not show \"Budgets, entitlements, and the $THREE token layer\""+ },+ {+ "claim": "on @awscloud's Builder Center",+ "kind": "evidence:page",+ "target": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "ok": false,+ "detail": "live page does not show \"AWS Builder Center\""+ },+ {+ "kind": "link",+ "target": "https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner",+ "ok": true,+ "detail": "HTTP 200"+ },+ {+ "kind": "mention",+ "target": "@awscloud",+ "ok": true,+ "detail": "Amazon Web Services (business verified)"+ }+ ]+ },+ "editor": {+ "verdict": "revise",+ "scores": {+ "accuracy": 2,+ "clarity": 4,+ "specificity": 4,+ "voice": 5,+ "professionalism": 4,+ "visual": 4+ },+ "issues": [+ {+ "severity": "blocking",+ "area": "accuracy",+ "quote": "spend against budgets, never private keys",+ "problem": "The page check for the supporting string 'budgets instead of private keys' failed (ok: false). The supplied screenshot does show that exact phrase in the article summary, but no passing verification result or quoted live-page text exists for it, so the claim is unverified as submitted.",+ "fix": "Re-run the page evidence check against the live URL and capture the summary paragraph containing 'budgets instead of private keys' so the claim has a passing verification before publishing."+ },+ {+ "severity": "blocking",+ "area": "accuracy",+ "quote": "How we authorize that spending",+ "problem": "Verification failed: live page check for 'how we authorize autonomous agent spending' returned ok: false, even though the headline is visible in the screenshot.",+ "fix": "Re-run the evidence check so the headline string passes verification, or quote the headline from a passing check in the pack."+ },+ {+ "severity": "blocking",+ "area": "accuracy",+ "quote": "the $THREE token layer",+ "problem": "Verification failed for 'Budgets, entitlements, and the $THREE token layer' (ok: false). The claim is currently unsupported by any passing check.",+ "fix": "Re-run the page check against the live article so the headline string verifies before the post ships."+ },+ {+ "severity": "blocking",+ "area": "accuracy",+ "quote": "on @awscloud's Builder Center",+ "problem": "Verification failed: the live page check for 'AWS Builder Center' returned ok: false. The screenshot shows the AWS Builder Center chrome, but the evidence record does not.",+ "fix": "Re-run the check capturing the 'AWS Builder Center' breadcrumb text so the venue claim has a passing verification."+ },+ {+ "severity": "minor",+ "area": "professionalism",+ "quote": "on @awscloud's Builder Center",+ "problem": "The possessive '@awscloud's' is slightly awkward tagging of a partner account; the tag itself is justified since the article is published on AWS's platform.",+ "fix": "Prefer 'on the @awscloud Builder Center' once the venue claim is verified."+ }+ ],+ "rewrite": {+ "posts": [+ "Agents on three.ws spend against budgets, never private keys. How we authorize that spending, and the $THREE token layer behind it, on the @awscloud Builder Center: https://builder.aws.com/content/3JAVvvItd3ZSVjYCDb4qjj5VBb9/budgets-entitlements-and-the-dollarthree-token-layer-how-we-authorize-autonomous-agent-spending-or-threews-an-aws-partner"+ ],+ "altText": [+ "The article live on the AWS Builder Center under the three.ws byline, headlined \"Budgets, entitlements, and the $THREE token layer: how we authorize autonomous agent spending\", published 11 September 2026 as the second article in the three.ws series"+ ]+ },+ "summary": "The copy is well-voiced and the screenshot clearly supports every phrase, but all four page-evidence checks failed, so no claim currently has a passing verification and the post cannot publish until the checks are re-run against the live article. Once verification passes, the rewrite (same copy with a minor tag phrasing fix) is shippable; the image and alt text are correct as provided.",+ "model": "nvidia:moonshotai/kimi-k3",+ "fallbacks": [+ "No GCP credentials found. Set GCP_SERVICE_ACCOUNT_JSON, run `gcloud auth application-default login`, or run on GCE/Cloud Run.",+ "openrouter 402: {\"error\":{\"message\":\"Insufficient credits. Add more using https://openrouter.ai/settings/credits\",\"code\":402,\"metadata\":{\"limit_source\":\"openrouter_credits\",\"remedy_hint\":\"Add credits at https://openr",+ "openai 429: {\n \"error\": {\n \"message\": \"Your account is not active, please check your billing details on our website.\",\n \"type\": \"billing_not_active\",\n \"param\": null,\n \"code\": \"billi"+ ],+ "rewriteFindings": [+ "claims: claim \"on @awscloud's Builder Center\" does not appear in the copy; claims must quote the post"+ ]+ }+}diff --git a/data/x-content/reviews/genesis.json b/data/x-content/reviews/genesis.jsonnew file mode 100644index 000000000..50349bcea--- /dev/null+++ b/data/x-content/reviews/genesis.json@@ -0,0 +1,83 @@+{+ "id": "genesis",+ "contentHash": "389437a0ab2f81adf4ce2805f009501d11d2093fb6ea5ad4be3c744290f6dc0e",+ "reviewedAt": "2026-09-16T19:28:18.681Z",+ "passed": true,+ "blockers": [],+ "texts": [+ "A sentence or a selfie becomes a rigged 3D agent holding its own custodial @solana wallet, a persona, and a voice. It walks and emotes on arrival: three.ws/genesis"+ ],+ "lint": [],+ "verification": {+ "ok": true,+ "checks": [+ {+ "claim": "custodial @solana wallet",+ "kind": "evidence:page",+ "target": "https://three.ws/genesis",+ "ok": true,+ "detail": "live page shows \"A real Solana + EVM wallet\""+ },+ {+ "claim": "custodial @solana wallet",+ "kind": "evidence:file",+ "target": "docs/genesis.md",+ "ok": true,+ "detail": "file supports the claim"+ },+ {+ "claim": "a persona, and a voice",+ "kind": "evidence:page",+ "target": "https://three.ws/genesis",+ "ok": true,+ "detail": "live page shows \"Persona (optional) Voice\""+ },+ {+ "claim": "walks and emotes on arrival",+ "kind": "evidence:page",+ "target": "https://three.ws/genesis",+ "ok": true,+ "detail": "live page shows \"A rigged avatar that walks, idles and emotes\""+ },+ {+ "kind": "link",+ "target": "https://three.ws/genesis",+ "ok": true,+ "detail": "HTTP 200"+ },+ {+ "kind": "mention",+ "target": "@solana",+ "ok": true,+ "detail": "Solana (business verified)"+ }+ ]+ },+ "editor": {+ "verdict": "publish",+ "scores": {+ "accuracy": 5,+ "clarity": 5,+ "specificity": 5,+ "voice": 5,+ "professionalism": 5,+ "visual": 5+ },+ "issues": [],+ "rewrite": {+ "posts": [+ "A sentence or a selfie becomes a rigged 3D agent holding its own custodial @solana wallet, a persona, and a voice. It walks and emotes on arrival: three.ws/genesis"+ ],+ "altText": [+ "The three.ws Genesis page signed in: describe an agent, upload a selfie, or remix a public avatar, and it becomes a rigged 3D agent with its own wallet and on-chain identity."+ ]+ },+ "summary": "Every claim in the post is backed by verified evidence from the live page and docs, and the screenshot from the signed-in route shows exactly the interface the copy describes with no contradictions. Voice, length, tag choice, link, and alt text all comply with the house contract, so the post ships unchanged.",+ "model": "nvidia:moonshotai/kimi-k3",+ "fallbacks": [+ "No GCP credentials found. Set GCP_SERVICE_ACCOUNT_JSON, run `gcloud auth application-default login`, or run on GCE/Cloud Run.",+ "openrouter 402: {\"error\":{\"message\":\"Insufficient credits. Add more using https://openrouter.ai/settings/credits\",\"code\":402,\"metadata\":{\"limit_source\":\"openrouter_credits\",\"remedy_hint\":\"Add credits at https://openr",+ "openai 429: {\n \"error\": {\n \"message\": \"Your account is not active, please check your billing details on our website.\",\n \"type\": \"billing_not_active\",\n \"param\": null,\n \"code\": \"billi"+ ]+ }+}diff --git a/data/x-content/reviews/rig-doctor.json b/data/x-content/reviews/rig-doctor.jsonnew file mode 100644index 000000000..4da01d626--- /dev/null+++ b/data/x-content/reviews/rig-doctor.json@@ -0,0 +1,93 @@+{+ "id": "rig-doctor",+ "contentHash": "bc07655b36d67b249b48873127c5969e94e0154c3a0036f08bb66a346a585166",+ "reviewedAt": "2026-09-16T19:41:34.498Z",+ "passed": true,+ "blockers": [],+ "texts": [+ "Approved for GitHub's Open Source Friday. Rig Doctor names which of 15 rig conventions a .glb follows, right in your browser, with nothing uploaded: three.ws/rig-doctor"+ ],+ "lint": [],+ "verification": {+ "ok": true,+ "checks": [+ {+ "claim": "Approved for GitHub's Open Source Friday",+ "kind": "evidence:github-issue",+ "target": "githubevents/open-source-friday#254",+ "ok": true,+ "detail": "#254 is open, has label \"approved\""+ },+ {+ "claim": "15 rig conventions",+ "kind": "evidence:page",+ "target": "https://three.ws/rig-doctor",+ "ok": true,+ "detail": "live page shows \"15 rig conventions recognised\""+ },+ {+ "claim": "15 rig conventions",+ "kind": "evidence:module",+ "target": "src/rig-report.js",+ "ok": true,+ "detail": "CONVENTIONS has 15 entries; the claim needs 15"+ },+ {+ "claim": "right in your browser, with nothing uploaded",+ "kind": "evidence:page",+ "target": "https://three.ws/rig-doctor",+ "ok": true,+ "detail": "live page shows \"Nothing is uploaded\""+ },+ {+ "claim": "right in your browser, with nothing uploaded",+ "kind": "evidence:page",+ "target": "https://three.ws/rig-doctor",+ "ok": true,+ "detail": "live page shows \"0 bytes leave your machine\""+ },+ {+ "kind": "link",+ "target": "https://three.ws/rig-doctor",+ "ok": true,+ "detail": "HTTP 200"+ }+ ]+ },+ "editor": {+ "verdict": "publish",+ "scores": {+ "accuracy": 5,+ "clarity": 4,+ "specificity": 5,+ "voice": 5,+ "professionalism": 5,+ "visual": 5+ },+ "issues": [+ {+ "severity": "minor",+ "area": "clarity",+ "quote": "Rig Doctor names which of 15 rig conventions a .glb follows",+ "problem": "A new reader learns what the tool checks but not why it matters (whether the avatar's animation will actually play). A single clause would close that gap.",+ "fix": "Optional only: 'Rig Doctor checks which of 15 rig conventions a .glb follows, so you know its animations will play' if it fits the character band. Not required to publish."+ }+ ],+ "rewrite": {+ "posts": [+ "Approved for GitHub's Open Source Friday. Rig Doctor names which of 15 rig conventions a .glb follows, right in your browser, with nothing uploaded: three.ws/rig-doctor"+ ],+ "altText": [+ "The three.ws Rig Doctor page: a drop zone for a .glb file that runs entirely in the browser, above stats reading 0 bytes leave your machine, 52 canonical joints scored, and 15 rig conventions recognised"+ ]+ },+ "summary": "Every claim verifies: the approved label on issue #254, the 15 conventions on the live page and in src/rig-report.js, and the no-upload claim twice over, and the screenshot matches the live page and the copy (15, not the pack's stale 11). Voice, length, link, and alt text all conform; the only note is an optional clarity tweak that is not required to ship.",+ "model": "nvidia:moonshotai/kimi-k3",+ "fallbacks": [+ "No GCP credentials found. Set GCP_SERVICE_ACCOUNT_JSON, run `gcloud auth application-default login`, or run on GCE/Cloud Run.",+ "openrouter 402: {\"error\":{\"message\":\"Insufficient credits. Add more using https://openrouter.ai/settings/credits\",\"code\":402,\"metadata\":{\"limit_source\":\"openrouter_credits\",\"remedy_hint\":\"Add credits at https://openr",+ "openai 429: {\n \"error\": {\n \"message\": \"Your account is not active, please check your billing details on our website.\",\n \"type\": \"billing_not_active\",\n \"param\": null,\n \"code\": \"billi"+ ],+ "rewriteFindings": []+ }+}diff --git a/package-lock.json b/package-lock.jsonindex 2175eb2eb..9afc20db2 100644--- a/package-lock.json+++ b/package-lock.json@@ -232,6 +232,7 @@"@x402/fetch": "^2.14.0","adaptive-expressions": "^4.23.3","adaptivecards-templating": "^2.3.1",+ "cspell-lib": "^10.3.3","dotenv": "^17.4.2","es-module-lexer": "^3.0.2","fbx2gltf": "^0.9.7-p1",@@ -5614,6 +5615,609 @@"version": "0.32.4","license": "Apache-2.0"},+ "node_modules/@cspell/cspell-bundled-dicts": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-10.3.3.tgz",+ "integrity": "sha512-aX40uWqTN44EM81R/Xj/NMIbgdtBM0ulKPTDKhVJYIbCJarISLoxaJkERs9dHB5AwrDZViC6BXcpVYnoRV1kXg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/dict-ada": "^4.1.1",+ "@cspell/dict-al": "^1.1.1",+ "@cspell/dict-aws": "^4.0.17",+ "@cspell/dict-bash": "^4.2.3",+ "@cspell/dict-companies": "^3.2.13",+ "@cspell/dict-cpp": "^7.1.2",+ "@cspell/dict-cryptocurrencies": "^5.0.5",+ "@cspell/dict-csharp": "^4.0.8",+ "@cspell/dict-css": "^4.1.2",+ "@cspell/dict-dart": "^2.3.2",+ "@cspell/dict-data-science": "^2.0.16",+ "@cspell/dict-django": "^4.1.6",+ "@cspell/dict-docker": "^1.1.17",+ "@cspell/dict-dotnet": "^5.0.15",+ "@cspell/dict-elixir": "^4.0.8",+ "@cspell/dict-en_us": "^4.4.40",+ "@cspell/dict-en-common-misspellings": "^2.2.2",+ "@cspell/dict-en-gb-mit": "^3.1.29",+ "@cspell/dict-filetypes": "^3.0.18",+ "@cspell/dict-flutter": "^1.1.1",+ "@cspell/dict-fonts": "^4.0.6",+ "@cspell/dict-fsharp": "^1.1.1",+ "@cspell/dict-fullstack": "^3.2.9",+ "@cspell/dict-gaming-terms": "^1.1.2",+ "@cspell/dict-git": "^3.1.0",+ "@cspell/dict-golang": "^6.0.29",+ "@cspell/dict-google": "^1.0.9",+ "@cspell/dict-haskell": "^4.0.6",+ "@cspell/dict-html": "^4.0.16",+ "@cspell/dict-html-symbol-entities": "^4.0.5",+ "@cspell/dict-java": "^5.0.12",+ "@cspell/dict-julia": "^1.1.1",+ "@cspell/dict-k8s": "^1.0.13",+ "@cspell/dict-kotlin": "^1.1.1",+ "@cspell/dict-latex": "^5.1.0",+ "@cspell/dict-lorem-ipsum": "^4.0.5",+ "@cspell/dict-lua": "^4.0.8",+ "@cspell/dict-makefile": "^1.0.5",+ "@cspell/dict-markdown": "^2.0.18",+ "@cspell/dict-monkeyc": "^1.1.2",+ "@cspell/dict-node": "^5.0.9",+ "@cspell/dict-npm": "^5.2.49",+ "@cspell/dict-php": "^4.1.3",+ "@cspell/dict-powershell": "^5.0.17",+ "@cspell/dict-public-licenses": "^2.0.16",+ "@cspell/dict-python": "^4.5.2",+ "@cspell/dict-r": "^2.1.1",+ "@cspell/dict-ruby": "^5.1.4",+ "@cspell/dict-rust": "^4.1.2",+ "@cspell/dict-scala": "^5.0.11",+ "@cspell/dict-shell": "^1.2.0",+ "@cspell/dict-software-terms": "^5.4.4",+ "@cspell/dict-sql": "^2.2.1",+ "@cspell/dict-svelte": "^1.0.7",+ "@cspell/dict-swift": "^2.0.6",+ "@cspell/dict-terraform": "^1.1.4",+ "@cspell/dict-typescript": "^3.2.3",+ "@cspell/dict-vue": "^3.0.5",+ "@cspell/dict-zig": "^1.0.0"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/cspell-performance-monitor": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-performance-monitor/-/cspell-performance-monitor-10.3.3.tgz",+ "integrity": "sha512-RfHwlk45TwYS2oNuHUGH562NgKEFLotG9LHYjkTiPKC8tZfqaoBKT1BHK/g7H5XUe5L8/nhN0ycxI0bZ3InShA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/cspell-pipe": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-10.3.3.tgz",+ "integrity": "sha512-ZZ0dgTKbvWyb5cb4rhWTP9KCdyEGaIzc55Qvz6+mPWDTd/cQthsH4SECitZtWgzY8o/kLmlCEOrkqgli5kAHBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/cspell-resolver": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-10.3.3.tgz",+ "integrity": "sha512-zy+3lykifrK3z6RW93mi5BLCdn4aPM1/ovfy8ekJO2I43FxpevbtNFfSoU1/ZYpWPAgEbz9CUjbMkWE7pgK+HA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "global-directory": "^5.0.0"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/cspell-service-bus": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-10.3.3.tgz",+ "integrity": "sha512-zGQgksLrM36TinrflZvx3bp3DSRHog1wl4HZAYvVtp74eqZromUDoW0lziFFrumZnld+p92l8GSrXptnvYhjog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/cspell-types": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-10.3.3.tgz",+ "integrity": "sha512-sLw1ik9qrPc2NZJ93Y6eKXd2r5jpiu7ciOl2fVsvKo11GU6MmOqx7J9UJ3uUy5+xo6Zvpo/6JGD030l8OiYUOw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/dict-ada": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-ada/-/dict-ada-4.1.1.tgz",+ "integrity": "sha512-E+0YW9RhZod/9Qy2gxfNZiHJjCYFlCdI69br1eviQQWB8yOTJX0JHXLs79kOYhSW0kINPVUdvddEBe6Lu6CjGQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-al": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-al/-/dict-al-1.1.1.tgz",+ "integrity": "sha512-sD8GCaZetgQL4+MaJLXqbzWcRjfKVp8x+px3HuCaaiATAAtvjwUQ5/Iubiqwfd1boIh2Y1/3EgM3TLQ7Q8e0wQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-aws": {+ "version": "4.0.17",+ "resolved": "https://registry.npmjs.org/@cspell/dict-aws/-/dict-aws-4.0.17.tgz",+ "integrity": "sha512-ORcblTWcdlGjIbWrgKF+8CNEBQiLVKdUOFoTn0KPNkAYnFcdPP0muT4892h7H4Xafh3j72wqB4/loQ6Nti9E/w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-bash": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/@cspell/dict-bash/-/dict-bash-4.2.3.tgz",+ "integrity": "sha512-ljUZoKHbDqw5Sx0qpL2qTUlmkmr+vhZH/sCNrNaBZKTbdgiswErSnIF1jRbGmEitJNxHRHWsuZyVgnTGfVO1Yw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/dict-shell": "1.2.0"+ }+ },+ "node_modules/@cspell/dict-companies": {+ "version": "3.2.13",+ "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.2.13.tgz",+ "integrity": "sha512-mBJeYzCkiiWgNQxKg7zyQOpFPwcXO4IAzXGbOEFfcQ4Q0G5Fa7Kqd8z+gvnvSK7NPWKJaFmiApC6I0cka02qmQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-cpp": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-cpp/-/dict-cpp-7.1.2.tgz",+ "integrity": "sha512-bkR33oE+ToyD1hwSV4XeEUB9oDkizHRX03CrQfj23tX4VUVbie5vkEHzlKVhcw/Q+fO2dtV/Vz4f6O5M4a2iZQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-cryptocurrencies": {+ "version": "5.0.5",+ "resolved": "https://registry.npmjs.org/@cspell/dict-cryptocurrencies/-/dict-cryptocurrencies-5.0.5.tgz",+ "integrity": "sha512-R68hYYF/rtlE6T/dsObStzN5QZw+0aQBinAXuWCVqwdS7YZo0X33vGMfChkHaiCo3Z2+bkegqHlqxZF4TD3rUA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-csharp": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/@cspell/dict-csharp/-/dict-csharp-4.0.8.tgz",+ "integrity": "sha512-qmk45pKFHSxckl5mSlbHxmDitSsGMlk/XzFgt7emeTJWLNSTUK//MbYAkBNRtfzB4uD7pAFiKgpKgtJrTMRnrQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-css": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-css/-/dict-css-4.1.2.tgz",+ "integrity": "sha512-+ylGoKdwZ2sVOCOnU2Eq5wDZx+RaVX3HoKyNHGGsFvhSw6IidQ6tH/mAPKBDofViHJoWCPNlklE0lTr6MDG3QA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-dart": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-dart/-/dict-dart-2.3.2.tgz",+ "integrity": "sha512-sUiLW56t9gfZcu8iR/5EUg+KYyRD83Cjl3yjDEA2ApVuJvK1HhX+vn4e4k4YfjpUQMag8XO2AaRhARE09+/rqw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-data-science": {+ "version": "2.0.16",+ "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-2.0.16.tgz",+ "integrity": "sha512-M72mxv5asuAnORurz4iXRJ+Tw9XBq6eu7D2Ne7biP0Z1RciKGNxXWu9JycA/KlVvK1hAlKj/fANlXhuEWpXKFg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-django": {+ "version": "4.1.6",+ "resolved": "https://registry.npmjs.org/@cspell/dict-django/-/dict-django-4.1.6.tgz",+ "integrity": "sha512-SdbSFDGy9ulETqNz15oWv2+kpWLlk8DJYd573xhIkeRdcXOjskRuxjSZPKfW7O3NxN/KEf3gm3IevVOiNuFS+w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-docker": {+ "version": "1.1.17",+ "resolved": "https://registry.npmjs.org/@cspell/dict-docker/-/dict-docker-1.1.17.tgz",+ "integrity": "sha512-OcnVTIpHIYYKhztNTyK8ShAnXTfnqs43hVH6p0py0wlcwRIXe5uj4f12n7zPf2CeBI7JAlPjEsV0Rlf4hbz/xQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-dotnet": {+ "version": "5.0.15",+ "resolved": "https://registry.npmjs.org/@cspell/dict-dotnet/-/dict-dotnet-5.0.15.tgz",+ "integrity": "sha512-j2MUKPlzMeDy/mnb1EjmtkX8e6VzZdw60Qyf6vPlp7WZhUwwp2LBlKOWx7+hASjP6k4a0nDpmn77G+4upxvbZA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-elixir": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/@cspell/dict-elixir/-/dict-elixir-4.0.8.tgz",+ "integrity": "sha512-CyfphrbMyl4Ms55Vzuj+mNmd693HjBFr9hvU+B2YbFEZprE5AG+EXLYTMRWrXbpds4AuZcvN3deM2XVB80BN/Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-en_us": {+ "version": "4.4.40",+ "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.40.tgz",+ "integrity": "sha512-TGyOaWP1dD28GRHH2Lt04ciMZC8Z6UX+5kJsi04pbQHq6uRxv14/bBVCBeSsajUXRZsJYUqXyHaHB9O0ODuFuQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-en-common-misspellings": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-en-common-misspellings/-/dict-en-common-misspellings-2.2.2.tgz",+ "integrity": "sha512-gu0zS7nm0jgVA2EswgWOR8od8wbNYVgcGzo0pGaDqcSkKS4WhABehLOwbyI0NIEVB+ME6SmckLVGk7g+VD1C6A==",+ "dev": true,+ "license": "CC BY-SA 4.0"+ },+ "node_modules/@cspell/dict-en-gb-mit": {+ "version": "3.1.29",+ "resolved": "https://registry.npmjs.org/@cspell/dict-en-gb-mit/-/dict-en-gb-mit-3.1.29.tgz",+ "integrity": "sha512-mInExsCFZui0f9Vg/MToWfQZzwMfPgHX8BCYdZNdXWbYz+jITXcnvssbdUkui/DVbriZVJ74Zu9bv2jOEqTCNA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-filetypes": {+ "version": "3.0.18",+ "resolved": "https://registry.npmjs.org/@cspell/dict-filetypes/-/dict-filetypes-3.0.18.tgz",+ "integrity": "sha512-yU7RKD/x1IWmDLzWeiItMwgV+6bUcU/af23uS0+uGiFUbsY1qWV/D4rxlAAO6Z7no3J2z8aZOkYIOvUrJq0Rcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-flutter": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-flutter/-/dict-flutter-1.1.1.tgz",+ "integrity": "sha512-UlOzRcH2tNbFhZmHJN48Za/2/MEdRHl2BMkCWZBYs+30b91mWvBfzaN4IJQU7dUZtowKayVIF9FzvLZtZokc5A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-fonts": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@cspell/dict-fonts/-/dict-fonts-4.0.6.tgz",+ "integrity": "sha512-aR/0csY01dNb0A1tw/UmN9rKgHruUxsYsvXu6YlSBJFu60s26SKr/k1o4LavpHTQ+lznlYMqAvuxGkE4Flliqw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-fsharp": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-fsharp/-/dict-fsharp-1.1.1.tgz",+ "integrity": "sha512-imhs0u87wEA4/cYjgzS0tAyaJpwG7vwtC8UyMFbwpmtw+/bgss+osNfyqhYRyS/ehVCWL17Ewx2UPkexjKyaBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-fullstack": {+ "version": "3.2.9",+ "resolved": "https://registry.npmjs.org/@cspell/dict-fullstack/-/dict-fullstack-3.2.9.tgz",+ "integrity": "sha512-diZX+usW5aZ4/b2T0QM/H/Wl9aNMbdODa1Jq0ReBr/jazmNeWjd+PyqeVgzd1joEaHY+SAnjrf/i9CwKd2ZtWQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-gaming-terms": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-gaming-terms/-/dict-gaming-terms-1.1.2.tgz",+ "integrity": "sha512-9XnOvaoTBscq0xuD6KTEIkk9hhdfBkkvJAIsvw3JMcnp1214OCGW8+kako5RqQ2vTZR3Tnf3pc57o7VgkM0q1Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-git": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@cspell/dict-git/-/dict-git-3.1.0.tgz",+ "integrity": "sha512-KEt9zGkxqGy2q1nwH4CbyqTSv5nadpn8BAlDnzlRcnL0Xb3LX9xTgSGShKvzb0bw35lHoYyLWN2ZKAqbC4pgGQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-golang": {+ "version": "6.0.29",+ "resolved": "https://registry.npmjs.org/@cspell/dict-golang/-/dict-golang-6.0.29.tgz",+ "integrity": "sha512-EZCgfxrr5lPnYQLmSvB6YtpfoDFt2KKxAD4ppq2xGSIgDFXAF7Mv4doiXIFUQaynCBIEfAMl3f/uDfrIUo4fyQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-google": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@cspell/dict-google/-/dict-google-1.0.9.tgz",+ "integrity": "sha512-biL65POqialY0i4g6crj7pR6JnBkbsPovB2WDYkj3H4TuC/QXv7Pu5pdPxeUJA6TSCHI7T5twsO4VSVyRxD9CA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-haskell": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@cspell/dict-haskell/-/dict-haskell-4.0.6.tgz",+ "integrity": "sha512-ib8SA5qgftExpYNjWhpYIgvDsZ/0wvKKxSP+kuSkkak520iPvTJumEpIE+qPcmJQo4NzdKMN8nEfaeci4OcFAQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-html": {+ "version": "4.0.16",+ "resolved": "https://registry.npmjs.org/@cspell/dict-html/-/dict-html-4.0.16.tgz",+ "integrity": "sha512-9B6/Cpb5YVcYgsEAlKudun1yd4ONllYS/ZibKLYea2apPR+l2vQdARnPrP9kTqa7NUNfRKl7m9Fb6k9rjimnow==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-html-symbol-entities": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/@cspell/dict-html-symbol-entities/-/dict-html-symbol-entities-4.0.5.tgz",+ "integrity": "sha512-429alTD4cE0FIwpMucvSN35Ld87HCyuM8mF731KU5Rm4Je2SG6hmVx7nkBsLyrmH3sQukTcr1GaiZsiEg8svPA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-java": {+ "version": "5.0.12",+ "resolved": "https://registry.npmjs.org/@cspell/dict-java/-/dict-java-5.0.12.tgz",+ "integrity": "sha512-qPSNhTcl7LGJ5Qp6VN71H8zqvRQK04S08T67knMq9hTA8U7G1sTKzLmBaDOFhq17vNX/+rT+rbRYp+B5Nwza1A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-julia": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-julia/-/dict-julia-1.1.1.tgz",+ "integrity": "sha512-WylJR9TQ2cgwd5BWEOfdO3zvDB+L7kYFm0I9u0s9jKHWQ6yKmfKeMjU9oXxTBxIufhCXm92SKwwVNAC7gjv+yA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-k8s": {+ "version": "1.0.13",+ "resolved": "https://registry.npmjs.org/@cspell/dict-k8s/-/dict-k8s-1.0.13.tgz",+ "integrity": "sha512-ELGkS13k7K/NEfVimBSrxVTfqXvOF/Kvxj4I62YxRm8bvHbfoXgrGaOx28lPiNRz+dmu+yYtvuXbnURKtYbC6g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-kotlin": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-kotlin/-/dict-kotlin-1.1.1.tgz",+ "integrity": "sha512-J3NzzfgmxRvEeOe3qUXnSJQCd38i/dpF9/t3quuWh6gXM+krsAXP75dY1CzDmS8mrJAlBdVBeAW5eAZTD8g86Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-latex": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@cspell/dict-latex/-/dict-latex-5.1.0.tgz",+ "integrity": "sha512-qxT4guhysyBt0gzoliXYEBYinkAdEtR2M7goRaUH0a7ltCsoqqAeEV8aXYRIdZGcV77gYSobvu3jJL038tlPAw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-lorem-ipsum": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/@cspell/dict-lorem-ipsum/-/dict-lorem-ipsum-4.0.5.tgz",+ "integrity": "sha512-9a4TJYRcPWPBKkQAJ/whCu4uCAEgv/O2xAaZEI0n4y1/l18Yyx8pBKoIX5QuVXjjmKEkK7hi5SxyIsH7pFEK9Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-lua": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/@cspell/dict-lua/-/dict-lua-4.0.8.tgz",+ "integrity": "sha512-N4PkgNDMu9JVsRu7JBS/3E/dvfItRgk9w5ga2dKq+JupP2Y3lojNaAVFhXISh4Y0a6qXDn2clA6nvnavQ/jjLA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-makefile": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@cspell/dict-makefile/-/dict-makefile-1.0.5.tgz",+ "integrity": "sha512-4vrVt7bGiK8Rx98tfRbYo42Xo2IstJkAF4tLLDMNQLkQ86msDlYSKG1ZCk8Abg+EdNcFAjNhXIiNO+w4KflGAQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-markdown": {+ "version": "2.0.18",+ "resolved": "https://registry.npmjs.org/@cspell/dict-markdown/-/dict-markdown-2.0.18.tgz",+ "integrity": "sha512-KLRSwVrwKDz4n7bl2XQjzvaBZbGgx5QKkP5Ok1b24xaO3TpXsLhAbAn1mItvFlI2tF6Rkt83iYjQcYppywuf5Q==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@cspell/dict-css": "^4.1.2",+ "@cspell/dict-html": "^4.0.16",+ "@cspell/dict-html-symbol-entities": "^4.0.5",+ "@cspell/dict-typescript": "^3.2.3"+ }+ },+ "node_modules/@cspell/dict-monkeyc": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-monkeyc/-/dict-monkeyc-1.1.2.tgz",+ "integrity": "sha512-4VzwdSUVqyUVmAKAzMkVwVa7AkvSi1l1OHdQr58MWq4VR4NQDO8sVQSibd2PMxruXTkxJt9UwVQVHgaaVTiV1Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-node": {+ "version": "5.0.9",+ "resolved": "https://registry.npmjs.org/@cspell/dict-node/-/dict-node-5.0.9.tgz",+ "integrity": "sha512-hO+ga+uYZ/WA4OtiMEyKt5rDUlUyu3nXMf8KVEeqq2msYvAPdldKBGH7lGONg6R/rPhv53Rb+0Y1SLdoK1+7wQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-npm": {+ "version": "5.2.49",+ "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.2.49.tgz",+ "integrity": "sha512-7NoDyLcuzQKVA7pNt5vdtqpok9XJyYPxeL7FGzUTbYWi7SuTCk3QbFhoMiYoHSCc6C5G+NCI9xxWHMZnDflXlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-php": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/@cspell/dict-php/-/dict-php-4.1.3.tgz",+ "integrity": "sha512-41oKzl7rLVrrVZA/Gs0ESnP6KliEX7c+IwaaNmOL3PAoHasFDVEmIFeENIzuDdM12UcHT+MlLkAm3Qw/lS/ERA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-powershell": {+ "version": "5.0.17",+ "resolved": "https://registry.npmjs.org/@cspell/dict-powershell/-/dict-powershell-5.0.17.tgz",+ "integrity": "sha512-khOoIdBgKRk2scnr7888pf70yJ1Tr3RGdnYcAN0MJ2vtaNRKoOTCFc13gXUkNDHwEyhMI1h9oz3KsT180F2amw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-public-licenses": {+ "version": "2.0.16",+ "resolved": "https://registry.npmjs.org/@cspell/dict-public-licenses/-/dict-public-licenses-2.0.16.tgz",+ "integrity": "sha512-EQRrPvEOmwhwWezV+W7LjXbIBjiy6y/shrET6Qcpnk3XANTzfvWflf9PnJ5kId/oKWvihFy0za0AV1JHd03pSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-python": {+ "version": "4.5.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.5.2.tgz",+ "integrity": "sha512-CFcTDGN/ycn45WXC5ZZ06pG09WbGKMpPm1rkMuqMP98/jwjw3iiK8c0izWRd8x027n1rOZ9kJ8f9Sd+bQ22HJg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/dict-data-science": "^2.0.16"+ }+ },+ "node_modules/@cspell/dict-r": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-r/-/dict-r-2.1.1.tgz",+ "integrity": "sha512-71Ka+yKfG4ZHEMEmDxc6+blFkeTTvgKbKAbwiwQAuKl3zpqs1Y0vUtwW2N4b3LgmSPhV3ODVY0y4m5ofqDuKMw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-ruby": {+ "version": "5.1.4",+ "resolved": "https://registry.npmjs.org/@cspell/dict-ruby/-/dict-ruby-5.1.4.tgz",+ "integrity": "sha512-Slw1dLY/pW5liJ5Fle+MIPphIdleZkIM6STDoXCN7sy298GfbfT34sJTcSZcXzZJVXiCEAvlLp+s1YNr6DuWNg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-rust": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/@cspell/dict-rust/-/dict-rust-4.1.2.tgz",+ "integrity": "sha512-O1FHrumYcO+HZti3dHfBPUdnDFkI+nbYK3pxYmiM1sr+G0ebOd6qchmswS0Wsc6ZdEVNiPYJY/gZQR6jfW3uOg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-scala": {+ "version": "5.0.11",+ "resolved": "https://registry.npmjs.org/@cspell/dict-scala/-/dict-scala-5.0.11.tgz",+ "integrity": "sha512-+D59847Y61KZ0MBoXJzBMtOXfFhezEb6ShjvJlL7bnryyy6iBwAfozbz7OJAe+KrEpYm+GlVV7Wy4FmJSgxBag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-shell": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@cspell/dict-shell/-/dict-shell-1.2.0.tgz",+ "integrity": "sha512-PVctvT22lJ49niMiakO8xieY7ELCAzjSqhejWR7bAMb5AZ9F4WDEs+XdGMnoVHWeXq7K5rcepLPmEJb+37zzIw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-software-terms": {+ "version": "5.4.4",+ "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-5.4.4.tgz",+ "integrity": "sha512-GqZSRm3sm6fHVfNnvC9GGTBQpV6FzuCBRZuw7LBlaYXJyozmqGdj55T9iZ/Z7L567eMye4TzEEexkvdI0ylCJw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-sql": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/@cspell/dict-sql/-/dict-sql-2.2.1.tgz",+ "integrity": "sha512-qDHF8MpAYCf4pWU8NKbnVGzkoxMNrFqBHyG/dgrlic5EQiKANCLELYtGlX5auIMDLmTf1inA0eNtv74tyRJ/vg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-svelte": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/@cspell/dict-svelte/-/dict-svelte-1.0.7.tgz",+ "integrity": "sha512-hGZsGqP0WdzKkdpeVLBivRuSNzOTvN036EBmpOwxH+FTY2DuUH7ecW+cSaMwOgmq5JFSdTcbTNFlNC8HN8lhaQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-swift": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/@cspell/dict-swift/-/dict-swift-2.0.6.tgz",+ "integrity": "sha512-PnpNbrIbex2aqU1kMgwEKvCzgbkHtj3dlFLPMqW1vSniop7YxaDTtvTUO4zA++ugYAEL+UK8vYrBwDPTjjvSnA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-terraform": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@cspell/dict-terraform/-/dict-terraform-1.1.4.tgz",+ "integrity": "sha512-Ere42ilvMFvQA4GlcN0OKlruMPR6EsvaB+iTHzj2xc+NJGRK64V7yApUcWrOrSgTiM/vhWXPIsK3OMfiAiNdmA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-typescript": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/@cspell/dict-typescript/-/dict-typescript-3.2.3.tgz",+ "integrity": "sha512-zXh1wYsNljQZfWWdSPYwQhpwiuW0KPW1dSd8idjMRvSD0aSvWWHoWlrMsmZeRl4qM4QCEAjua8+cjflm41cQBg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-vue": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@cspell/dict-vue/-/dict-vue-3.0.5.tgz",+ "integrity": "sha512-Mqutb8jbM+kIcywuPQCCaK5qQHTdaByoEO2J9LKFy3sqAdiBogNkrplqUK0HyyRFgCfbJUgjz3N85iCMcWH0JA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dict-zig": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@cspell/dict-zig/-/dict-zig-1.0.0.tgz",+ "integrity": "sha512-XibBIxBlVosU06+M6uHWkFeT0/pW5WajDRYdXG2CgHnq85b0TI/Ks0FuBJykmsgi2CAD3Qtx8UHFEtl/DSFnAQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@cspell/dynamic-import": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-10.3.3.tgz",+ "integrity": "sha512-9/V6879khIUrZVsB3lV1Xv1uENvrurAdfLkj1A659RSjc4cGao3ZfWZ6iEV3hRRoroO6616xlvpE/Fd9ojTBtw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/url": "10.3.3",+ "import-meta-resolve": "^4.2.0"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/filetypes": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-10.3.3.tgz",+ "integrity": "sha512-HFKLXlgeIn+r4qEdBkJNVbmNCMphDGrF/42BHBssydYaeS4j3eWQqsSg+rWNHFJDfK0gsHPuxRjWORbp4F9hzQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/rpc": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/rpc/-/rpc-10.3.3.tgz",+ "integrity": "sha512-VcAqdtyer/CT/bq5gs4i7V61+sQgjXn+aGA6bVq9qUyivieX7Yo/Ue3reN81UWdsj7whlK++oBaf1Ds4alhFOw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/strong-weak-map": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-10.3.3.tgz",+ "integrity": "sha512-cXMVHROQtAIraRc62dQ1nX5h4vlc7O1EUT+GotiTx+BuwSTiMgBr/zue1pr+yQXoltExQUUuudSNsLRf/wZn5A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/@cspell/url": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/@cspell/url/-/url-10.3.3.tgz",+ "integrity": "sha512-ZhsdSzfwXA/TuyqDb0nl+A9Kfd0W+rBIDdPxeXLvVsKFCtxVDa0zUYyhWhrtT9RtsPZQfRqPTkr+DsfWOzu4EA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ }+ },"node_modules/@csstools/color-helpers": {"version": "6.0.2","dev": true,@@ -26759,6 +27363,13 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/array-timsort": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz",+ "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/array-union": {"version": "2.1.0","dev": true,@@ -28553,6 +29164,20 @@"version": "2.20.3","license": "MIT"},+ "node_modules/comment-json": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-5.0.0.tgz",+ "integrity": "sha512-uiqLcOiVDJtBP8WGkZHEP+FZIhTzP1dxvn59EfoYUi9gqupjrBWVQkO2atDrbnKPwLeotFYDsuNb26uBMqB+hw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-timsort": "^1.0.3",+ "esprima": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/common-tags": {"version": "1.8.2","dev": true,@@ -29787,6 +30412,171 @@"node": ">=8"}},+ "node_modules/cspell-config-lib": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-10.3.3.tgz",+ "integrity": "sha512-6u5s+LLLqXxhhtSDz/ft40LIZ2u4YxEPJxaOnojXleMZzDxSQskyuAG72R2vIjJOYjxevK0vb/f3rnZ+cSmnVw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/cspell-types": "10.3.3",+ "comment-json": "^5.0.0",+ "smol-toml": "^1.8.0",+ "yaml": "^2.9.0"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-dictionary": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-10.3.3.tgz",+ "integrity": "sha512-uHYhIfByu1iB2tBZdxbCAh8mMqMrxcWi/u5d1kdXBPqCa5QpsFv316CaUNgcU/pmDp6ZAti4QhXbk0gSsKdIiA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/cspell-performance-monitor": "10.3.3",+ "@cspell/cspell-pipe": "10.3.3",+ "@cspell/cspell-types": "10.3.3",+ "cspell-trie-lib": "10.3.3",+ "fast-equals": "^6.0.2"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-glob": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-10.3.3.tgz",+ "integrity": "sha512-oxqYJHjlZ+OzA5YDF2NCWvKNGJmuuvyqv+QZ7BYPOx3bkuouAK2q4GNme0lVHL6Vbj0tPgBY67eAMESz45r3yw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/url": "10.3.3",+ "picomatch": "^4.0.7"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-grammar": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-10.3.3.tgz",+ "integrity": "sha512-cCGp22tH7Q8I6xmoxvI654FQrIXKz+AZ1XOuPgBbjFCsu6Fl8y27HM+9I9GbzrsGykyT+7cSpdhGID6Ay7Rn+w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/cspell-pipe": "10.3.3",+ "@cspell/cspell-types": "10.3.3"+ },+ "bin": {+ "cspell-grammar": "bin.mjs"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-io": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-10.3.3.tgz",+ "integrity": "sha512-ifhTJgf8ISAvyB8i5NMTVXkRP4JvsoB6XOWtXPg8wqpBiGWHk2o/eGgNn8iap9dLWHU7GRxkE4R9Qdw5nXfuTg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/cspell-service-bus": "10.3.3",+ "@cspell/url": "10.3.3"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-lib": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-10.3.3.tgz",+ "integrity": "sha512-KyJpUJu66COyz3ZW1hbJsTfJYJheoc/EEiMbKFSxJUIbbbX8byN2dVF3eq2t+t2Q5dORrQ2OnnfYwpw2WbKZzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspell/cspell-bundled-dicts": "10.3.3",+ "@cspell/cspell-performance-monitor": "10.3.3",+ "@cspell/cspell-pipe": "10.3.3",+ "@cspell/cspell-resolver": "10.3.3",+ "@cspell/cspell-types": "10.3.3",+ "@cspell/dynamic-import": "10.3.3",+ "@cspell/filetypes": "10.3.3",+ "@cspell/rpc": "10.3.3",+ "@cspell/strong-weak-map": "10.3.3",+ "@cspell/url": "10.3.3",+ "cspell-config-lib": "10.3.3",+ "cspell-dictionary": "10.3.3",+ "cspell-glob": "10.3.3",+ "cspell-grammar": "10.3.3",+ "cspell-io": "10.3.3",+ "cspell-trie-lib": "10.3.3",+ "env-paths": "^4.0.0",+ "gensequence": "^8.0.8",+ "import-fresh": "^4.0.0",+ "resolve-from": "^5.0.0",+ "vscode-languageserver-textdocument": "^1.0.14",+ "vscode-uri": "^3.2.0",+ "xdg-basedir": "^5.1.0"+ },+ "engines": {+ "node": ">=22.18.0"+ }+ },+ "node_modules/cspell-lib/node_modules/env-paths": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-4.0.0.tgz",+ "integrity": "sha512-pxP8eL2SwwaTRi/KHYwLYXinDs7gL3jxFcBYmEdYfZmZXbaVDvdppd0XBU8qVz03rDfKZMXg1omHCbsJjZrMsw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-safe-filename": "^0.1.0"+ },+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cspell-lib/node_modules/import-fresh": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-4.0.0.tgz",+ "integrity": "sha512-Fpi660c7VPDM3fPKYovStd9IP1CPOikf6v/dGxJJMmHPcwYQIMJ4W7kO1avBYEpMqkCh+Dx3Ln6H7VYqgztLjw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.15"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cspell-lib/node_modules/resolve-from": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cspell-trie-lib": {+ "version": "10.3.3",+ "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-10.3.3.tgz",+ "integrity": "sha512-NgdfYr4UvoAdG+ZYwi/WnXiGwOCU5azD7FciV03+dstkXA1ZxNWC7UjMjt4NtZvK/HfCSSLlUnMzLmCGX2TO9g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.18.0"+ },+ "peerDependencies": {+ "@cspell/cspell-types": "10.3.3"+ }+ },"node_modules/css-background-parser": {"version": "0.1.0","license": "MIT"@@ -31790,6 +32580,16 @@"version": "3.1.3","license": "MIT"},+ "node_modules/fast-equals": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.0.3.tgz",+ "integrity": "sha512-IECu4C0fFZFoUC2cA2rDaNUuVIfWIZMwh3tY+ng924vOuD9OaUFFrcIrVwCKbV7TJDkGmrHfhwZ7R0AnHfVhyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },"node_modules/fast-fifo": {"version": "1.3.2","license": "MIT"@@ -32402,6 +33202,16 @@"node": ">= 0.4"}},+ "node_modules/gensequence": {+ "version": "8.0.8",+ "resolved": "https://registry.npmjs.org/gensequence/-/gensequence-8.0.8.tgz",+ "integrity": "sha512-omMVniXEXpdx/vKxGnPRoO2394Otlze28TyxECbFVyoSpZ9H3EO7lemjcB12OpQJzRW4e5tt/dL1rOxry6aMHg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ }+ },"node_modules/gensync": {"version": "1.0.0-beta.2","license": "MIT",@@ -32580,6 +33390,32 @@"node": ">=10.13.0"}},+ "node_modules/global-directory": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz",+ "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ini": "6.0.0"+ },+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/global-directory/node_modules/ini": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz",+ "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },"node_modules/globals": {"version": "17.6.0","dev": true,@@ -33789,6 +34625,17 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/import-meta-resolve": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz",+ "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/imurmurhash": {"version": "0.1.4","license": "MIT",@@ -34505,6 +35352,19 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-safe-filename": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/is-safe-filename/-/is-safe-filename-0.1.1.tgz",+ "integrity": "sha512-4SrR7AdnY11LHfDKTZY1u6Ga3RuxZdl3YKWWShO5iyuG5h8QS4GD2tOb04peBJ5I7pXbR+CGBNEhTcwK+FzN3g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/is-set": {"version": "2.0.3","dev": true,@@ -43707,6 +44567,19 @@"node": ">=20.0.0"}},+ "node_modules/smol-toml": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.8.0.tgz",+ "integrity": "sha512-kCZr2V3ch9i00x8zXRhjUNVcjG9ijES5dDudkXvUVCT5QlJNQWElSJdZqyPemffHoLNUYwOcou0Fy+ojN0uHSQ==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "url": "https://github.com/sponsors/cyyynthia"+ }+ },"node_modules/socks": {"version": "2.8.10","resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz",@@ -46905,6 +47778,20 @@"node": ">=0.10.0"}},+ "node_modules/vscode-languageserver-textdocument": {+ "version": "1.0.14",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.14.tgz",+ "integrity": "sha512-EQyqJMi552E4ZTf46izQ4Fj6XquqxCySR3J5ZSD1SisMf6RfpeOWHxGBE8Gr6V0/3GHIGdAzDn8F8+1nTGCnoQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-uri": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz",+ "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/w3c-xmlserializer": {"version": "5.0.0","dev": true,@@ -47494,6 +48381,19 @@}}},+ "node_modules/xdg-basedir": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz",+ "integrity": "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/xml": {"version": "1.0.1","license": "MIT"diff --git a/package.json b/package.jsonindex fd09e3231..591f5dedd 100644--- a/package.json+++ b/package.json@@ -646,6 +646,7 @@"@x402/fetch": "^2.14.0","adaptive-expressions": "^4.23.3","adaptivecards-templating": "^2.3.1",+ "cspell-lib": "^10.3.3","dotenv": "^17.4.2","es-module-lexer": "^3.0.2","fbx2gltf": "^0.9.7-p1",diff --git a/scripts/x-content.mjs b/scripts/x-content.mjsindex da35627e9..54532c3bf 100644--- a/scripts/x-content.mjs+++ b/scripts/x-content.mjs@@ -8,6 +8,8 @@// npm run x:content -- run --id slug publish one item now (owner-approved posts only)// npm run x:content -- import <blog-slug|url> --as post|article --id slug [--lane l] [--pattern p]// npm run x:content -- prepare-video <input> --out public/x-media/<id>/clip.mp4 [--captions file.srt] [--item slug]+// npm run x:content -- review <slug> [--no-editor] the editorial bar: lint, live fact checks, AI editor+// npm run x:content -- review --status review review every item awaiting review//// Env: reads .env.local then .env. DATABASE_URL gives plan/run the shared// publish ledger; X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_SECRET are@@ -24,6 +26,7 @@ import { runTick } from '../api/_lib/x-content/runner.js';import { dbStore, memoryStore } from '../api/_lib/x-content/state.js';import { VIDEO_LIMITS, mediaType, parseFfmpegProbe } from '../api/_lib/x-content/media.js';import { weightedLength } from '../api/_lib/x-content/quality.js';+import { reviewItem } from '../api/_lib/x-content/review.js';const root = resolve(fileURLToPath(new URL('..', import.meta.url)));@@ -38,7 +41,7 @@ loadEnvFile(resolve(root, '.env.local'));loadEnvFile(resolve(root, '.env'));const args = process.argv.slice(2);-const VALUE_FLAGS = new Set(['--id', '--as', '--lane', '--pattern', '--out', '--captions', '--item', '--now']);+const VALUE_FLAGS = new Set(['--id', '--as', '--lane', '--pattern', '--out', '--captions', '--item', '--now', '--status']);const positional = args.filter((arg, index) => !arg.startsWith('--') && !VALUE_FLAGS.has(args[index - 1]));const has = (flag) => args.includes(`--${flag}`);const option = (name, fallback = null) => {@@ -328,6 +331,71 @@ function prepareVideo() {console.log(`\nAttached to ${itemId} as the head post's only media.`);}-const commands = { check, plan, run, import: importSource, 'prepare-video': prepareVideo };+// --- review ----------------------------------------------------------------++// Credentials the review needs, taken from the Cloud Run service when they are+// not in the local env files.+const REVIEW_ENV = ['X_API_KEY', 'X_API_SECRET', 'OPENROUTER_API_KEY', 'OPENAI_API_KEY', 'NVIDIA_API_KEY'];++function hydrateReviewEnv() {+ if (!process.env.GOOGLE_CLOUD_PROJECT) process.env.GOOGLE_CLOUD_PROJECT = 'aerial-vehicle-466722-p5';+ for (const name of REVIEW_ENV.filter((key) => !process.env[key])) {+ const read = spawnSync(process.execPath, [resolve(root, 'scripts/read-service-env.mjs'), `^${name}$`, '--raw'], { cwd: root, encoding: 'utf8' });+ const value = read.status === 0 ? read.stdout.trim() : '';+ if (value) process.env[name] = value;+ }+ if (!process.env.GITHUB_TOKEN && !process.env.GH_TOKEN) {+ const token = spawnSync('gh', ['auth', 'token'], { encoding: 'utf8' });+ if (token.status === 0 && token.stdout.trim()) process.env.GITHUB_TOKEN = token.stdout.trim();+ }+}++function printReview(record) {+ const mark = (ok) => (ok ? 'pass' : 'FAIL');+ console.log(`\n=== ${record.id}: ${record.passed ? 'PASSED' : 'NOT READY'} ===`);+ for (const text of record.texts) console.log(` > ${text.replace(/\n/g, '\n ')}`);+ console.log('\nFacts');+ for (const check of record.verification.checks) console.log(` ${mark(check.ok)} ${check.kind} ${check.target}${check.claim ? ` [${check.claim}]` : ''}: ${check.detail}`);+ if (record.lint.length) {+ console.log('\nEditorial lint');+ for (const row of record.lint) console.log(` ${row.severity.padEnd(8)} ${row.where}: ${row.message}`);+ }+ if (record.editor) {+ const e = record.editor;+ console.log(`\nEditor (${e.model}): ${e.verdict}`);+ console.log(` ${Object.entries(e.scores).map(([key, value]) => `${key} ${value}`).join(' | ')}`);+ console.log(` ${e.summary || ''}`);+ for (const issue of e.issues) console.log(` ${issue.severity.padEnd(8)} ${issue.area}: "${issue.quote}" ${issue.problem}\n fix: ${issue.fix}`);+ if (e.rewrite?.posts?.length) {+ console.log(' suggested rewrite:');+ for (const text of e.rewrite.posts) console.log(` > ${text}`);+ for (const finding of e.rewriteFindings || []) console.log(` rewrite not usable as is: ${finding}`);+ }+ if (e.fallbacks?.length) console.log(` (fell back past: ${e.fallbacks.map((f) => f.split(':')[0]).join(', ')})`);+ }+ if (record.blockers.length) {+ console.log('\nBlocking approval');+ for (const blocker of record.blockers) console.log(` - ${blocker}`);+ }+ console.log(`\nRecorded in data/x-content/reviews/${record.id}.json`);+}++async function review() {+ const queue = loadQueue(root);+ const status = option('status');+ const id = positional[1];+ const items = queue.items.filter((item) => (id ? item.id === id : status ? item.status === status : false));+ if (!items.length) fail('Usage: review <slug> | review --status review [--no-editor]');+ hydrateReviewEnv();+ let failed = 0;+ for (const item of items) {+ const record = await reviewItem(item, { root, glossary: queue.quality?.glossary || [], skipEditor: has('no-editor') });+ printReview(record);+ if (!record.passed) failed++;+ }+ if (failed) process.exit(1);+}++const commands = { check, plan, run, review, import: importSource, 'prepare-video': prepareVideo };if (!commands[command]) fail(`Unknown command ${command}. Commands: ${Object.keys(commands).join(', ')}`);await commands[command]();