Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(sdk): vendor the shared tool-sdk into concierge-mcp and finish the pose and vanity type and doc corrections

nirholasd196b1ada31e
diff --git a/packages/concierge-mcp/package.json b/packages/concierge-mcp/package.json
index 2d57f5b13..bf589fd58 100644
--- a/packages/concierge-mcp/package.json
+++ b/packages/concierge-mcp/package.json
@@ -54,7 +54,7 @@
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
- "@three-ws/tool-sdk": "file:../tool-sdk",
- "zod": "^3.23.8"
+ "zod": "^3.23.8",
+ "zod-to-json-schema": "^3.25.2"
}
}
diff --git a/packages/concierge-mcp/src/lib/embed.js b/packages/concierge-mcp/src/lib/embed.js
index 1d7e498a5..441adc127 100644
--- a/packages/concierge-mcp/src/lib/embed.js
+++ b/packages/concierge-mcp/src/lib/embed.js
@@ -20,7 +20,6 @@ function normalize(config = {}) {
if (v !== undefined && v !== null && String(v).trim() !== '') out[k] = String(v).trim();
};
set('siteName', config.siteName);
- set('name', config.name);
set('accent', config.accent);
set('avatar', config.avatar);
set('customAvatar', config.customAvatar);
@@ -72,8 +71,13 @@ function scriptTag(cfg) {
}
function webComponent(cfg) {
+ // The global build registers <three-concierge> on load and only auto-mounts
+ // when the script tag itself carries data-concierge, so this pair is safe to
+ // paste into plain HTML with no bundler. (npm users can instead
+ // `import '@three-ws/concierge'` to register the element.)
+ const src = `${THREE_WS_BASE}/concierge/concierge.global.js`;
const attrs = elementAttrs(cfg);
- return `<script type="module">import '@three-ws/concierge';</script>\n\n<three-concierge${attrs ? '\n' + attrs : ''}>\n</three-concierge>`;
+ return `<script type="module" src="${src}"></script>\n\n<three-concierge${attrs ? '\n' + attrs : ''}>\n</three-concierge>`;
}
function npmSnippet(cfg) {
@@ -82,7 +86,11 @@ function npmSnippet(cfg) {
}
function imperativeSnippet(cfg) {
- return npmSnippet(cfg);
+ // Script-tag consumers without a bundler: the global build exposes the full
+ // API at window.ThreeWsConcierge; mount() returns the controller.
+ const src = `${THREE_WS_BASE}/concierge/concierge.global.js`;
+ const json = JSON.stringify(cfg, null, '\t').replace(/^/gm, '\t').trim();
+ return `<script type="module" src="${src}"></script>\n<script type="module">\n\tconst concierge = window.ThreeWsConcierge.mount(${json});\n</script>`;
}
/**
@@ -98,7 +106,8 @@ export function buildEmbed(config, flavor = 'all') {
for (const f of want) {
if (f === 'script') snippets.script = scriptTag(cfg);
else if (f === 'web-component') snippets['web-component'] = webComponent(cfg);
- else if (f === 'npm' || f === 'imperative') snippets[f] = npmSnippet(cfg);
+ else if (f === 'npm') snippets.npm = npmSnippet(cfg);
+ else if (f === 'imperative') snippets.imperative = imperativeSnippet(cfg);
}
return { flavor, config: cfg, snippets };
}
diff --git a/packages/concierge-mcp/src/lib/tool-sdk/define-executor.js b/packages/concierge-mcp/src/lib/tool-sdk/define-executor.js
new file mode 100644
index 000000000..f3764f065
--- /dev/null
+++ b/packages/concierge-mcp/src/lib/tool-sdk/define-executor.js
@@ -0,0 +1,144 @@
+// `defineExecutor` — wire a typed implementation map onto a tool defined
+// with `defineTool`. Every call goes through one `invoke(apiName, params, ctx)`
+// entry point that:
+//
+// 1. Rejects unknown API names / unimplemented methods with a structured error.
+// 2. Enforces the tool's declared rate limit (if any), per API name.
+// 3. Validates `params` against the API's Zod schema before calling the method.
+// 4. Wraps thrown errors into `{ success: false, error: { message, code } }`
+// instead of letting them propagate.
+// 5. Normalizes a successful return into `{ success: true, content, state }`
+// — unless the implementation already returned that shape itself (an
+// implementation is free to return a full result envelope when it needs
+// to set `content` and `state` to different values).
+//
+// Ported from the owner's SperaxOS `@sperax/plugin-sdk` (`defineExecutor.ts`);
+// adapted from TypeScript to plain ESM + JSDoc, and extended with the
+// rate-limit + Zod-validation enforcement this repo's permission manifest adds.
+
+import { createRateLimiter } from './permissions.js';
+
+/**
+ * @typedef {object} ToolResult
+ * @property {boolean} success
+ * @property {*} [content] Present on success (and on `ExecutorError` failures,
+ * as a human-readable summary — mirrors the reference SDK's shape).
+ * @property {*} [state] Present on success — structured data for callers that
+ * want more than the rendered `content`.
+ * @property {{ message: string, code?: string, issues?: unknown, body?: unknown }} [error]
+ * Present on failure.
+ */
+
+/**
+ * @param {ReturnType<import('./define-tool.js').defineTool>} tool
+ * @param {Record<string, (params: any, ctx?: object) => Promise<*> | *>} implementation
+ * Map of API name → handler. A handler may return plain data (wrapped into
+ * `{ success: true, content, state }` automatically) or a full `ToolResult`
+ * envelope (passed through unchanged).
+ * @returns {{
+ * id: string,
+ * getApiNames(): string[],
+ * hasApi(name: string): boolean,
+ * invoke(apiName: string, params: any, ctx?: object): Promise<ToolResult>,
+ * }}
+ *
+ * @example
+ * ```js
+ * import { defineExecutor } from '@three-ws/tool-sdk';
+ * import { priceTool } from './index.js';
+ *
+ * export const executor = defineExecutor(priceTool, {
+ * async getPrice({ symbol }) {
+ * const res = await fetch(`https://api.example.com/v1/price/${symbol}`);
+ * const data = await res.json();
+ * return { symbol, price: data.price }; // wrapped into { success: true, content, state }
+ * },
+ * });
+ *
+ * const result = await executor.invoke('getPrice', { symbol: 'ETH' });
+ * ```
+ */
+export function defineExecutor(tool, implementation) {
+ if (!tool?.manifest || !Array.isArray(tool._apis)) {
+ throw new TypeError('defineExecutor: first argument must be a tool returned by defineTool()');
+ }
+ if (!implementation || typeof implementation !== 'object') {
+ throw new TypeError('defineExecutor: an implementation map is required');
+ }
+
+ const identifier = tool.manifest.id;
+ const apiByName = new Map(tool._apis.map((api) => [api.name, api]));
+ const limiter = createRateLimiter(tool.manifest.permissions?.rateLimit);
+
+ return {
+ id: identifier,
+
+ getApiNames() {
+ return [...apiByName.keys()];
+ },
+
+ hasApi(apiName) {
+ return apiByName.has(apiName);
+ },
+
+ async invoke(apiName, params, ctx = {}) {
+ const api = apiByName.get(apiName);
+ if (!api) {
+ return {
+ success: false,
+ error: {
+ message: `[${identifier}] Unknown API: "${apiName}". Supported: ${[...apiByName.keys()].join(', ')}`,
+ code: 'API_NOT_FOUND',
+ },
+ };
+ }
+
+ const method = implementation[apiName];
+ if (typeof method !== 'function') {
+ return {
+ success: false,
+ error: { message: `[${identifier}] Method not implemented: "${apiName}"`, code: 'METHOD_NOT_IMPLEMENTED' },
+ };
+ }
+
+ if (limiter && !limiter.tryTake(apiName)) {
+ return {
+ success: false,
+ error: { message: `[${identifier}.${apiName}] rate limit exceeded`, code: 'RATE_LIMITED' },
+ };
+ }
+
+ const parsed = api.parametersZod.safeParse(params ?? {});
+ if (!parsed.success) {
+ const message = parsed.error.issues
+ .map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`)
+ .join('; ');
+ return {
+ success: false,
+ error: {
+ message: `[${identifier}.${apiName}] invalid params: ${message}`,
+ code: 'INVALID_PARAMS',
+ issues: parsed.error.issues,
+ },
+ };
+ }
+
+ try {
+ const result = await method(parsed.data, ctx);
+ if (result && typeof result === 'object' && 'success' in result) {
+ // The implementation already returned a full ToolResult envelope.
+ return result;
+ }
+ return { success: true, content: result, state: result };
+ } catch (error) {
+ const message = error instanceof Error ? error.message : String(error);
+ const code = error && typeof error === 'object' && 'code' in error ? error.code : undefined;
+ return {
+ success: false,
+ content: `${identifier}.${apiName} failed: ${message}`,
+ error: { message, code, body: error instanceof Error ? undefined : error },
+ };
+ }
+ },
+ };
+}
diff --git a/packages/concierge-mcp/src/lib/tool-sdk/define-tool.js b/packages/concierge-mcp/src/lib/tool-sdk/define-tool.js
new file mode 100644
index 000000000..e8dbb4d21
--- /dev/null
+++ b/packages/concierge-mcp/src/lib/tool-sdk/define-tool.js
@@ -0,0 +1,139 @@
+// `defineTool` — declare a tool's identity, API surface, and permission
+// manifest once, and derive everything else (JSON-Schema params for the
+// manifest, a raw Zod shape for MCP registration, per-API metadata for the
+// executor) from that single declaration.
+//
+// Ported from the owner's SperaxOS `@sperax/plugin-sdk` (`defineTool.ts`),
+// adapted from TypeScript to plain ESM + JSDoc to match this repo's other JS
+// packages, and re-scoped from a chat-UI plugin manifest (`BuiltinToolManifest`,
+// LLM system-role text, marketplace category) to a portable MCP tool manifest
+// with an explicit permission model. See `packages/tool-sdk/README.md` for the
+// full API + a runnable example.
+
+import { zodToJsonSchema } from 'zod-to-json-schema';
+
+import { normalizePermissions } from './permissions.js';
+
+/**
+ * @typedef {object} PluginApiConfig
+ * @property {string} name API name — the method key on the executor's
+ * implementation map, and (via `toMcpTools`) the registered MCP tool name.
+ * @property {string} description Short, LLM-facing description of what this
+ * API does.
+ * @property {import('zod').ZodObject<any>} parameters A `z.object({...})`
+ * schema for the API's parameters. Converted to JSON Schema for the
+ * manifest, and kept as a raw Zod shape for MCP registration.
+ * @property {string} [title] Human-facing title for this specific API.
+ * Defaults to the tool's `title`.
+ * @property {object} [annotations] MCP `ToolAnnotations` for this API
+ * (`readOnlyHint`, `idempotentHint`, `openWorldHint`, `destructiveHint`).
+ */
+
+/**
+ * @typedef {object} PluginToolConfig
+ * @property {string} id Unique identifier, e.g. "sns-resolve". Kebab-case.
+ * @property {string} title Display name shown to the calling agent/UI.
+ * @property {string} description Short description of the tool as a whole.
+ * @property {string} version Semantic version, e.g. "1.0.0".
+ * @property {import('./permissions.js').PluginPermissions} [permissions]
+ * Permission manifest — network allowlist, rate limit, wallet access.
+ * @property {PluginApiConfig[]} apis API surface of the tool. Must be non-empty.
+ */
+
+/**
+ * Define a three.ws tool: convert each API's Zod parameter schema to JSON
+ * Schema (for manifests / documentation) while keeping the original Zod
+ * schema attached (for runtime validation in `defineExecutor` and MCP
+ * registration in `toMcpTools`).
+ *
+ * @param {PluginToolConfig} config
+ * @returns {{
+ * manifest: { id: string, title: string, description: string, version: string, permissions: object, apis: Array<{ name: string, title: string, description: string, parameters: object }> },
+ * _apis: Array<{ name: string, title: string, description: string, annotations: object | undefined, parametersJsonSchema: object, parametersZod: import('zod').ZodObject<any> }>,
+ * _config: PluginToolConfig,
+ * }}
+ *
+ * @example
+ * ```js
+ * import { defineTool, z } from '@three-ws/tool-sdk';
+ *
+ * export const priceTool = defineTool({
+ * id: 'my-org-price-feed',
+ * title: 'My Price Feed',
+ * description: 'Fetches token prices from My API.',
+ * version: '1.0.0',
+ * permissions: { network: ['api.example.com'] },
+ * apis: [{
+ * name: 'getPrice',
+ * description: 'Get the current USD price for a token symbol.',
+ * parameters: z.object({ symbol: z.string().describe('Token ticker, e.g. "ETH"') }),
+ * }],
+ * });
+ * ```
+ */
+export function defineTool(config) {
+ if (!config || typeof config !== 'object') {
+ throw new TypeError('defineTool: a config object is required');
+ }
+ const { id, title, description, version, permissions, apis } = config;
+
+ if (!id || typeof id !== 'string') throw new TypeError('defineTool: "id" (string) is required');
+ if (!title || typeof title !== 'string') throw new TypeError('defineTool: "title" (string) is required');
+ if (!description || typeof description !== 'string') {
+ throw new TypeError('defineTool: "description" (string) is required');
+ }
+ if (!version || typeof version !== 'string') throw new TypeError('defineTool: "version" (string) is required');
+ if (!Array.isArray(apis) || apis.length === 0) {
+ throw new TypeError('defineTool: "apis" must be a non-empty array');
+ }
+
+ const seenNames = new Set();
+ const resolvedApis = apis.map((apiConfig) => {
+ if (!apiConfig || typeof apiConfig !== 'object' || !apiConfig.name) {
+ throw new TypeError('defineTool: every entry in "apis" needs a "name"');
+ }
+ if (seenNames.has(apiConfig.name)) {
+ throw new TypeError(`defineTool: duplicate api name "${apiConfig.name}"`);
+ }
+ seenNames.add(apiConfig.name);
+
+ if (!apiConfig.description || typeof apiConfig.description !== 'string') {
+ throw new TypeError(`defineTool: api "${apiConfig.name}" needs a "description"`);
+ }
+ if (!apiConfig.parameters || typeof apiConfig.parameters.safeParse !== 'function') {
+ throw new TypeError(`defineTool: api "${apiConfig.name}" needs a Zod schema in "parameters"`);
+ }
+
+ const jsonSchema = /** @type {Record<string, any>} */ (
+ zodToJsonSchema(apiConfig.parameters, { $refStrategy: 'none', target: 'jsonSchema7' })
+ );
+ // zod-to-json-schema adds a top-level `$schema` meta key — strip it so
+ // the manifest carries a lean, self-contained object schema.
+ delete jsonSchema.$schema;
+
+ return {
+ name: apiConfig.name,
+ title: apiConfig.title ?? title,
+ description: apiConfig.description,
+ annotations: apiConfig.annotations,
+ parametersJsonSchema: jsonSchema,
+ parametersZod: apiConfig.parameters,
+ };
+ });
+
+ const manifest = {
+ id,
+ title,
+ description,
+ version,
+ permissions: normalizePermissions(permissions),
+ apis: resolvedApis.map((api) => ({
+ name: api.name,
+ title: api.title,
+ description: api.description,
+ parameters: api.parametersJsonSchema,
+ })),
+ };
+
+ return { manifest, _apis: resolvedApis, _config: config };
+}
diff --git a/packages/concierge-mcp/src/lib/tool-sdk/index.js b/packages/concierge-mcp/src/lib/tool-sdk/index.js
new file mode 100644
index 000000000..3340b169b
--- /dev/null
+++ b/packages/concierge-mcp/src/lib/tool-sdk/index.js
@@ -0,0 +1,14 @@
+/**
+ * Vendored @three-ws/tool-sdk (packages/tool-sdk), copied verbatim so the
+ * published package installs with no file: dependency. The workspace tool-sdk
+ * is private and unpublished; without this copy, `npm install
+ * @three-ws/concierge-mcp` cannot resolve it outside the monorepo. Same
+ * convention as the HTTP core shared across the @three-ws/* SDK family: shared
+ * code is copied into each package so every package stays self-contained.
+ * When the upstream SDK changes, re-copy these four modules.
+ */
+
+export { defineTool } from './define-tool.js';
+export { defineExecutor } from './define-executor.js';
+export { toMcpTools } from './mcp-adapter.js';
+export { guardedFetch, createRateLimiter, normalizePermissions } from './permissions.js';
diff --git a/packages/concierge-mcp/src/lib/tool-sdk/mcp-adapter.js b/packages/concierge-mcp/src/lib/tool-sdk/mcp-adapter.js
new file mode 100644
index 000000000..9004c910f
--- /dev/null
+++ b/packages/concierge-mcp/src/lib/tool-sdk/mcp-adapter.js
@@ -0,0 +1,97 @@
+// `toMcpTools` — the piece that makes this port ours: adapt a `defineTool` +
+// `defineExecutor` pair into the exact registration shape three.ws's MCP
+// servers already use, so adoption is one call.
+//
+// Target shape (derived from `packages/naming-mcp/src/tools/*.js` and
+// `packages/naming-mcp/src/index.js`'s `server.registerTool(name, { title,
+// description, inputSchema, annotations }, handler)`):
+//
+// {
+// name: string,
+// title: string,
+// description: string,
+// inputSchema: Record<string, ZodTypeAny>, // raw Zod shape, NOT JSON Schema —
+// // the MCP SDK converts this itself.
+// annotations: { readOnlyHint, idempotentHint, openWorldHint, ... },
+// async handler(args, extra) { ... }, // returns data on success, THROWS on failure
+// }
+//
+// One tool-sdk API becomes one MCP tool (three.ws's convention: each MCP
+// tool exposes exactly one operation). The handler throws on failure instead
+// of returning a `{ success: false }` envelope, matching every hand-written
+// tool in `packages/*-mcp/src/tools/` and `mcp-server/src/tools/`, whose
+// server wrappers `try { await tool.handler(...) } catch (err) { ...isError }`.
+
+const DEFAULT_ANNOTATIONS = Object.freeze({
+ readOnlyHint: false,
+ idempotentHint: false,
+ openWorldHint: true,
+});
+
+/**
+ * @param {ReturnType<import('./define-tool.js').defineTool>} tool
+ * @param {ReturnType<import('./define-executor.js').defineExecutor>} executor
+ * @returns {Array<{
+ * name: string,
+ * title: string,
+ * description: string,
+ * inputSchema: Record<string, import('zod').ZodTypeAny>,
+ * annotations: object,
+ * handler: (args: any, extra?: object) => Promise<*>,
+ * }>}
+ *
+ * @example
+ * ```js
+ * import { defineTool, defineExecutor, toMcpTools, z } from '@three-ws/tool-sdk';
+ * import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+ *
+ * const tool = defineTool({
+ * id: 'my-org-price-feed', title: 'Price Feed', description: '...', version: '1.0.0',
+ * apis: [{ name: 'getPrice', description: '...', parameters: z.object({ symbol: z.string() }) }],
+ * });
+ * const executor = defineExecutor(tool, {
+ * async getPrice({ symbol }) { return { symbol, price: 42 }; },
+ * });
+ *
+ * const server = new McpServer({ name: 'my-server', version: '1.0.0' });
+ * for (const def of toMcpTools(tool, executor)) {
+ * server.registerTool(def.name, { title: def.title, description: def.description, inputSchema: def.inputSchema, annotations: def.annotations }, def.handler);
+ * }
+ * ```
+ */
+export function toMcpTools(tool, executor) {
+ if (!tool?._apis || !Array.isArray(tool._apis)) {
+ throw new TypeError('toMcpTools: first argument must be a tool returned by defineTool()');
+ }
+ if (!executor || typeof executor.invoke !== 'function') {
+ throw new TypeError('toMcpTools: second argument must be an executor returned by defineExecutor()');
+ }
+
+ return tool._apis.map((api) => {
+ const shape = api.parametersZod?.shape;
+ if (!shape) {
+ throw new TypeError(
+ `toMcpTools: api "${api.name}" must declare "parameters" as a z.object({...}) schema (found no .shape)`,
+ );
+ }
+
+ return {
+ name: api.name,
+ title: api.title,
+ description: api.description,
+ inputSchema: shape,
+ annotations: api.annotations ?? DEFAULT_ANNOTATIONS,
+ async handler(args, extra) {
+ const result = await executor.invoke(api.name, args, extra ?? {});
+ if (!result.success) {
+ const err = new Error(result.error?.message ?? `${tool.manifest.id}.${api.name} failed`);
+ if (result.error?.code !== undefined) err.code = result.error.code;
+ if (result.error?.status !== undefined) err.status = result.error.status;
+ if (result.error?.body !== undefined) err.body = result.error.body;
+ throw err;
+ }
+ return result.content;
+ },
+ };
+ });
+}
diff --git a/packages/concierge-mcp/src/lib/tool-sdk/permissions.js b/packages/concierge-mcp/src/lib/tool-sdk/permissions.js
new file mode 100644
index 000000000..3448a9fcb
--- /dev/null
+++ b/packages/concierge-mcp/src/lib/tool-sdk/permissions.js
@@ -0,0 +1,143 @@
+// Permission-manifest primitives for @three-ws/tool-sdk.
+//
+// A tool declares what it is allowed to do — which hosts it may fetch from,
+// how often each API may be called, and whether it may read wallet context —
+// as plain, inspectable data (`PluginPermissions`, see define-tool.js). This
+// module turns that declaration into two things that are cheap to enforce at
+// the SDK layer, without a host runtime:
+//
+// 1. An in-memory token-bucket rate limiter, keyed per API name.
+// 2. `guardedFetch(permissions)` — a `fetch` wrapper that throws on any
+// host outside the declared `network` allowlist. Deny-by-default: a
+// tool that declares no `network` permission may not fetch anything.
+//
+// Wallet access is declarative only — the SDK does not (and cannot) enforce
+// it; enforcement stays with the host that grants a signer to the executor's
+// `ctx`.
+
+/**
+ * @typedef {object} PluginPermissions
+ * @property {string[]} [network] Allowlisted hostnames the executor may fetch
+ * from (exact match — no wildcards). Omit or leave empty to deny all
+ * outbound network access via `guardedFetch`.
+ * @property {{ calls: number, perSeconds: number }} [rateLimit] Token-bucket
+ * rate limit applied per API name (e.g. `{ calls: 60, perSeconds: 60 }` for
+ * 60 calls/minute).
+ * @property {boolean} [wallet] Whether the executor may read a wallet address
+ * from its invocation context. Declarative metadata only.
+ */
+
+/**
+ * Normalize a raw `permissions` config into a stable, deduplicated shape.
+ * Safe to call with `undefined` — returns the "no permissions" default
+ * (empty network allowlist, no rate limit, no wallet access).
+ *
+ * @param {Partial<PluginPermissions>} [permissions]
+ * @returns {{ network: string[], rateLimit: { calls: number, perSeconds: number } | null, wallet: boolean }}
+ */
+export function normalizePermissions(permissions = {}) {
+ const network = Array.isArray(permissions.network)
+ ? [...new Set(permissions.network.filter((host) => typeof host === 'string' && host.length > 0))]
+ : [];
+
+ const rawRateLimit = permissions.rateLimit;
+ const rateLimit =
+ rawRateLimit &&
+ Number.isFinite(rawRateLimit.calls) &&
+ rawRateLimit.calls > 0 &&
+ Number.isFinite(rawRateLimit.perSeconds) &&
+ rawRateLimit.perSeconds > 0
+ ? { calls: rawRateLimit.calls, perSeconds: rawRateLimit.perSeconds }
+ : null;
+
+ return { network, rateLimit, wallet: Boolean(permissions.wallet) };
+}
+
+/**
+ * Create an in-memory token-bucket rate limiter for a normalized `rateLimit`
+ * config. Returns `null` when no rate limit is declared, so callers can
+ * `limiter?.tryTake(...)` unconditionally.
+ *
+ * Buckets are keyed by an arbitrary string (typically the API name), so one
+ * limiter instance can track independent quotas per API.
+ *
+ * @param {{ calls: number, perSeconds: number } | null | undefined} rateLimit
+ * @returns {{ tryTake(key?: string, now?: number): boolean, reset(key?: string): void } | null}
+ */
+export function createRateLimiter(rateLimit) {
+ if (!rateLimit) return null;
+ const { calls, perSeconds } = rateLimit;
+ const refillPerSecond = calls / perSeconds;
+ /** @type {Map<string, { tokens: number, updatedAt: number }>} */
+ const buckets = new Map();
+
+ return {
+ /**
+ * Attempt to take one token from the bucket identified by `key`.
+ * @param {string} [key]
+ * @param {number} [now] Injectable clock (ms) — primarily for tests.
+ * @returns {boolean} `true` if the call is allowed, `false` if rate-limited.
+ */
+ tryTake(key = 'default', now = Date.now()) {
+ let bucket = buckets.get(key);
+ if (!bucket) {
+ bucket = { tokens: calls, updatedAt: now };
+ buckets.set(key, bucket);
+ }
+ const elapsedSeconds = Math.max(0, (now - bucket.updatedAt) / 1000);
+ bucket.tokens = Math.min(calls, bucket.tokens + elapsedSeconds * refillPerSecond);
+ bucket.updatedAt = now;
+
+ if (bucket.tokens >= 1) {
+ bucket.tokens -= 1;
+ return true;
+ }
+ return false;
+ },
+
+ /**
+ * Reset one bucket (by key) or every bucket (no key).
+ * @param {string} [key]
+ */
+ reset(key) {
+ if (key === undefined) buckets.clear();
+ else buckets.delete(key);
+ },
+ };
+}
+
+/**
+ * Build a `fetch`-compatible function that refuses any host outside the
+ * tool's declared `network` permission. Deny-by-default: if no `network`
+ * hosts are declared, every call is refused.
+ *
+ * @param {Partial<PluginPermissions>} permissions
+ * @returns {(input: string | URL | Request, init?: RequestInit) => Promise<Response>}
+ */
+export function guardedFetch(permissions) {
+ const { network: allowlist } = normalizePermissions(permissions);
+ const allow = new Set(allowlist);
+
+ return async function guardedFetchImpl(input, init) {
+ const rawUrl = typeof input === 'string' || input instanceof URL ? input : input?.url;
+
+ let hostname;
+ try {
+ hostname = new URL(rawUrl).hostname;
+ } catch {
+ throw Object.assign(new Error(`guardedFetch: could not parse a hostname from "${rawUrl}"`), {
+ code: 'INVALID_URL',
+ });
+ }
+
+ if (!allow.has(hostname)) {
+ const detail = allow.size > 0 ? `allowlist: [${[...allow].join(', ')}]` : 'no hosts allowlisted (deny-all by default)';
+ throw Object.assign(new Error(`guardedFetch: host "${hostname}" is not permitted — ${detail}`), {
+ code: 'NETWORK_NOT_ALLOWED',
+ hostname,
+ });
+ }
+
+ return fetch(input, init);
+ };
+}
diff --git a/packages/concierge-mcp/src/tools/ask.js b/packages/concierge-mcp/src/tools/ask.js
index 0d3bb4920..c207629c0 100644
--- a/packages/concierge-mcp/src/tools/ask.js
+++ b/packages/concierge-mcp/src/tools/ask.js
@@ -9,7 +9,7 @@
import { z } from 'zod';
-import { defineTool, defineExecutor, toMcpTools } from '@three-ws/tool-sdk';
+import { defineTool, defineExecutor, toMcpTools } from '../lib/tool-sdk/index.js';
import { askConcierge, fetchPage } from '../lib/api.js';
import { harvestHtml } from '../lib/harvest.js';
diff --git a/packages/concierge-mcp/src/tools/avatars.js b/packages/concierge-mcp/src/tools/avatars.js
index 862c82cfb..5350cd3f6 100644
--- a/packages/concierge-mcp/src/tools/avatars.js
+++ b/packages/concierge-mcp/src/tools/avatars.js
@@ -3,7 +3,7 @@
import { z } from 'zod';
-import { defineTool, defineExecutor, toMcpTools } from '@three-ws/tool-sdk';
+import { defineTool, defineExecutor, toMcpTools } from '../lib/tool-sdk/index.js';
import { AVATARS, DEFAULT_AVATAR_ID } from '../lib/catalog.js';
diff --git a/packages/concierge-mcp/src/tools/embed.js b/packages/concierge-mcp/src/tools/embed.js
index fbc055f97..8877d2fa9 100644
--- a/packages/concierge-mcp/src/tools/embed.js
+++ b/packages/concierge-mcp/src/tools/embed.js
@@ -4,7 +4,7 @@
import { z } from 'zod';
-import { defineTool, defineExecutor, toMcpTools } from '@three-ws/tool-sdk';
+import { defineTool, defineExecutor, toMcpTools } from '../lib/tool-sdk/index.js';
import { buildEmbed } from '../lib/embed.js';
import { isKnownAvatar, AVATARS } from '../lib/catalog.js';
@@ -13,9 +13,10 @@ const AVATAR_IDS = AVATARS.map((a) => a.id);
const DESCRIPTION =
'Generate ready-to-paste embed code for adding a three.ws Concierge (an AI chat widget with a talking 3D ' +
- 'avatar) to a website. Returns the one-tag <script> install by default, or the <three-concierge> web ' +
- 'component / npm snippet / all of them. Configure the accent color, avatar, greeting, curated knowledge, ' +
- 'suggested prompts, position and theme. Offline: this only composes the code, it installs nothing.';
+ 'avatar) to a website. Returns every install flavor by default (flavor "all"): the one-tag <script> install, ' +
+ 'the <three-concierge> web component, the npm snippet, and the imperative mount() call; pass `flavor` to get ' +
+ 'just one. Configure the accent color, avatar, greeting, curated knowledge, suggested prompts, position and ' +
+ 'theme. Offline: this only composes the code, it installs nothing.';
const tool = defineTool({
id: 'concierge-embed',
diff --git a/packages/concierge-mcp/test/embed.test.mjs b/packages/concierge-mcp/test/embed.test.mjs
index e49fc93cf..105f6dbe8 100644
--- a/packages/concierge-mcp/test/embed.test.mjs
+++ b/packages/concierge-mcp/test/embed.test.mjs
@@ -50,6 +50,21 @@ test('npm snippet is runnable JS with the config object', () => {
assert.match(snippets.npm, /"siteName": "Acme"/);
});
+test('web-component snippet is paste-ready: loads the global build, no bare import', () => {
+ const { snippets } = buildEmbed({ siteName: 'Acme' }, 'web-component');
+ assert.match(snippets['web-component'], /concierge\/concierge\.global\.js/);
+ assert.ok(!snippets['web-component'].includes("import '@three-ws/concierge'"));
+});
+
+test('imperative snippet loads the global build and calls mount()', () => {
+ const { snippets: imp } = buildEmbed({ siteName: 'Acme' }, 'imperative');
+ const { snippets: npm } = buildEmbed({ siteName: 'Acme' }, 'npm');
+ assert.match(imp.imperative, /concierge\/concierge\.global\.js/);
+ assert.match(imp.imperative, /window\.ThreeWsConcierge\.mount\(/);
+ assert.match(imp.imperative, /"siteName": "Acme"/);
+ assert.notEqual(imp.imperative, npm.npm);
+});
+
test('empty/unset fields are omitted from the snippet', () => {
const { config } = buildEmbed({ siteName: 'Acme', accent: '', greeting: undefined }, 'script');
assert.equal(config.siteName, 'Acme');
diff --git a/packages/pose/README.md b/packages/pose/README.md
index 7185ce694..cd7860519 100644
--- a/packages/pose/README.md
+++ b/packages/pose/README.md
@@ -30,8 +30,9 @@
> three.ws humanoid mannequin, picked from an in-repo library of named preset poses.
> The same prompt always yields the same pose, so it is a perfect way to *seed* or
> *initialize* a rigged character before you hand off to keyframes or live control.
-> It wraps the public `pose_model` tool on the auth-free `/api/mcp-3d` server — pure,
-> local, deterministic compute, no model inference, no external calls. It pairs with
+> It runs the `pose_model` algorithm **locally** over the bundled preset library
+> (pure, deterministic compute, no model inference, no network), and can optionally
+> call the hosted tool on `/api/mcp-3d` instead. It pairs with
> [`@three-ws/forge`](https://www.npmjs.com/package/@three-ws/forge) (which *makes & rigs*
> the avatar) and [`@three-ws/avatar`](https://www.npmjs.com/package/@three-ws/avatar)
> (which *renders* it).
@@ -52,11 +53,11 @@ for a curated library of real poses, and exposes it as a single call:
- **Always a real pose.** Selection scores your prompt against preset labels, ids,
and groups; on no match it falls back to a deterministic pick. There is no synthetic
or empty-pose codepath — you always get a usable, hand-tuned pose back.
-- **Free and offline-shaped.** The underlying tool is pure local computation — no
- GPU, no inference, no key. It is one of the cheapest, fastest surfaces on the
- platform.
+- **Free and offline.** The algorithm is pure local computation (token scoring +
+ sha256, no GPU, no inference), so the zero-config path runs entirely in-process:
+ no network, no key, no wallet. It works on a plane.
-This is the SDK twin of the [3D Studio MCP server](https://three.ws/mcp) — the same
+This is the SDK twin of the [3D Studio MCP server](https://three.ws/mcp): the same
preset engine, exposed as plain functions instead of an MCP tool.
## Install
@@ -65,14 +66,15 @@ preset engine, exposed as plain functions instead of an MCP tool.
npm install @three-ws/pose
```
-Zero runtime dependencies. Works in Node 18+ and the browser (uses `fetch`).
+Zero runtime dependencies. Works in Node 18+ and the browser (uses WebCrypto,
+and `fetch` only on the optional hosted lane).
To render or rig the avatar you pose, add
[`@three-ws/avatar`](https://www.npmjs.com/package/@three-ws/avatar) and
[`@three-ws/forge`](https://www.npmjs.com/package/@three-ws/forge).
## Quick start
-No key, no wallet:
+No key, no wallet, no network:
```js
import { poseSeed } from '@three-ws/pose';
@@ -115,15 +117,35 @@ console.log(a.seed === b.seed); // → true, always
### `poseSeed(prompt, options?) → Promise<PoseResult>`
Resolve a natural-language pose description to a deterministic seed and the full
-joint-rotation map. `prompt` is a string, 1–500 characters.
+joint-rotation map. `prompt` is a string, 1–500 characters. Runs locally.
-**Options**
+**Per-call options**
| Option | Type | Default | Notes |
|---|---|---|---|
-| `endpoint` | `string` | `https://three.ws/api/mcp-3d` | Override the Pose Studio MCP endpoint. |
-| `previewBase` | `string` | `https://three.ws/pose` | Base URL for the returned `previewUrl`. |
-| `signal` | `AbortSignal` | — | Cancel an in-flight call. |
+| `signal` | `AbortSignal` | none | Cancel the call. |
+| `headers` | `Record<string,string>` | none | Extra headers (hosted lane only). |
+
+### `createPose(options?) → PoseClient`
+
+Build a client with fixed configuration. With no transport option the client
+resolves poses **locally**, exactly like the top-level `poseSeed`. Passing any
+of `baseUrl`, `apiKey`, or `fetch` switches it to the **hosted** `pose_model`
+tool on `POST /api/mcp-3d` (one JSON-RPC `tools/call` per pose):
+
+| Option | Type | Default | Notes |
+|---|---|---|---|
+| `baseUrl` | `string` | `https://three.ws` | API origin. Selects the hosted lane. |
+| `fetch` | `typeof fetch` | `globalThis.fetch` | E.g. a payment-aware x402 fetch. Selects the hosted lane. |
+| `apiKey` | `string` | none | OAuth bearer; hosted calls run operator-funded. Selects the hosted lane. |
+| `previewBase` | `string` | `https://three.ws/pose` | Base URL for the returned `previewUrl` (both lanes). |
+| `headers` | `Record<string,string>` | none | Default headers on every hosted-lane request. |
+
+On the hosted lane a keyless call is x402-priced per call: the server answers
+`401/402` with a payment challenge, surfaced as `PaymentRequiredError` with the
+`accepts` array. Settle it with a payment-aware `fetch` (e.g.
+[`@three-ws/x402-fetch`](https://www.npmjs.com/package/@three-ws/x402-fetch)) or
+pass an `apiKey` to run operator-funded. The local lane never charges anything.
**Returns** `PoseResult`
@@ -156,11 +178,11 @@ The four pose groups, returned synchronously for menu scaffolding:
## How it works
-`poseSeed()` issues a single `tools/call` to the `pose_model` tool on the Streamable
-HTTP MCP server at `POST /api/mcp-3d`. The tool is **pure local computation** — it
-scores your prompt against an in-repo library of named presets, picks one, derives a
-seed, and returns the preset's pre-authored rotation map. No image model, no GPU, no
-state.
+`poseSeed()` runs the `pose_model` algorithm in-process, over the preset library
+bundled with the package (the same library the hosted tool serves). It is **pure
+deterministic computation**: it scores your prompt against the named presets, picks
+one, derives a seed, and returns the preset's pre-authored rotation map. No image
+model, no GPU, no state, no network.
```
prompt ("warrior stance")
@@ -178,15 +200,19 @@ prompt ("warrior stance")
{ seed, presetId, parameters, previewUrl, … }
```
-The preset library spans four groups — **Standing** (T-pose, A-pose, relaxed,
-contrapposto, arms-up, wave, hands-on-hips), **Action** (walk-step, run, jump, punch,
-archery, superhero-landing), **Sitting & Floor** (chair, floor, kneel, crouch,
-thinker), and **Expressive** (praying, meditate, warrior II, arabesque, flex, point) —
-the same data the public [/pose](https://three.ws/pose) page renders.
+The preset library spans four groups: **Standing** (T-pose, A-pose, relaxed,
+contrapposto, arms-up, wave, hands-on-hips, salute), **Action** (walk-step, run,
+jump, punch, archery, superhero-landing, fighting-stance), **Sitting & Floor**
+(chair, floor, kneel, crouch, thinker), and **Expressive** (praying, meditate,
+warrior II, arabesque, flex, point, facepalm, bow). It is the same data the public
+[/pose](https://three.ws/pose) page renders; enumerate it at runtime from the
+exported `PRESETS` array rather than hardcoding.
-### Under the hood — the raw HTTP
+### The hosted lane: the raw HTTP
-The SDK is a thin wrapper. The wire call is a standard MCP `tools/call`:
+The same engine is hosted as the `pose_model` tool on the 3D Studio MCP server.
+The SDK calls it only when you configure a transport (see `createPose` above);
+the wire call is a standard MCP `tools/call`, x402-priced for keyless callers:
```js
const res = await fetch('https://three.ws/api/mcp-3d', {
@@ -209,26 +235,20 @@ const pose = result.structuredContent;
```
The HTTP tool returns **snake_case** keys (`preset_id`, `preview_url`); the SDK
-normalizes them to the camelCase `PoseResult` shape above. The identical engine is
-also exposed as the paid stdio MCP tool **`get_pose_seed`** ($0.001 USDC), which
-returns the camelCase fields directly — use that when you are already inside an MCP
-agent session.
+normalizes them to the camelCase `PoseResult` shape above (both lanes go through
+the same normalization, so results are interchangeable).
## Pricing
-The deterministic pose computation is **free** on the public `/api/mcp-3d` endpoint —
-no payment, no key, no wallet. It is pure local compute with nothing to meter.
-
-When the same capability is reached through a paid MCP transport, it settles in USDC
-on Solana mainnet over [x402](https://x402.org):
-
-| Surface | Tool | Price | Transport |
-|---|---|---|---|
-| `@three-ws/pose` SDK | `pose_model` | **free** | HTTP (`POST /api/mcp-3d`) |
-| stdio MCP server | `get_pose_seed` | **$0.001 USDC** | stdio (`exact` scheme) |
+The default local lane is **free**: pure in-process compute, no payment, no key,
+no wallet, nothing to meter.
-Prices are authoritative in the server's discovery response — read them at runtime
-rather than hardcoding.
+The hosted `pose_model` tool on `POST /api/mcp-3d` is priced per call over
+[x402](https://x402.org) for keyless callers, alongside the rest of the 3D Studio
+tools. The authoritative price is the one in the server's `402` payment challenge
+(surfaced by this SDK as `PaymentRequiredError.accepts`); read it at runtime
+rather than hardcoding. Calls authenticated with a three.ws OAuth `apiKey` run
+operator-funded instead of paying x402.
## Errors & edge cases
@@ -237,8 +257,9 @@ rather than hardcoding.
| `code` | Meaning | Recovery |
|---|---|---|
| `invalid_prompt` | Prompt empty or over 500 chars (the tool requires 1–500). | Trim to a short phrase. |
-| `network` | The endpoint was unreachable. | Retry; honour the `signal`. |
-| `tool_error` | The MCP server returned a JSON-RPC error. | Inspect `error.data`; retry. |
+| `network_error` | Hosted lane only: the endpoint was unreachable. | Retry; honour the `signal`. |
+| `tool_error` | Hosted lane only: the MCP server returned a JSON-RPC error. | Inspect `error.data`; retry. |
+| `payment_required` | Hosted lane only, keyless: the x402 challenge (a `PaymentRequiredError`). | Pay via `accepts`, pass an `apiKey`, or use the free local lane. |
Designed states, not crashes:
@@ -279,17 +300,17 @@ const start = await poseSeed('superhero landing'); // initial pose
// load rigged.glbUrl, then apply start.parameters to its skeleton
```
-**Agent / MCP** — the same capability is the `pose_model` tool on the 3D Studio
-server, and `get_pose_seed` on the paid stdio server. An agent that already holds an
-MCP session can call either with `{ prompt: 'kneeling' }` and receive the identical
-preset + seed.
+**Agent / MCP**: the same capability is the `pose_model` tool on the hosted 3D
+Studio MCP server. An agent that already holds an MCP session can call it with
+`{ prompt: 'kneeling' }` and receive the identical preset + seed this package
+computes locally.
## Related
- [`@three-ws/forge`](https://www.npmjs.com/package/@three-ws/forge) — generate and auto-rig the humanoid GLB you pose.
- [`@three-ws/avatar`](https://www.npmjs.com/package/@three-ws/avatar) — render and animate the rigged, posed avatar.
- [`@three-ws/mocap`](https://www.npmjs.com/package/@three-ws/mocap) — go beyond static poses: capture full pose/face/hand clips from webcam or video.
-- [`@three-ws/x402-fetch`](https://www.npmjs.com/package/@three-ws/x402-fetch) — auto-settle the paid stdio `get_pose_seed` lane.
+- [`@three-ws/x402-fetch`](https://www.npmjs.com/package/@three-ws/x402-fetch) — a payment-aware fetch that auto-settles the hosted x402 lane.
---
diff --git a/packages/pose/package.json b/packages/pose/package.json
index 70bd3243f..1ab65e80b 100644
--- a/packages/pose/package.json
+++ b/packages/pose/package.json
@@ -1,6 +1,6 @@
{
"name": "@three-ws/pose",
- "version": "0.1.1",
+ "version": "0.2.0",
"description": "Deterministic, named pose seeds for rigged 3D avatars. Map a natural-language prompt to a stable seed + full Euler joint-rotation map from the three.ws pose-studio preset library.",
"type": "module",
"main": "./src/index.js",
diff --git a/packages/pose/src/index.d.ts b/packages/pose/src/index.d.ts
index 63ffc4759..9896f915d 100644
--- a/packages/pose/src/index.d.ts
+++ b/packages/pose/src/index.d.ts
@@ -62,13 +62,21 @@ export interface PoseRequestOptions {
signal?: AbortSignal;
}
+/**
+ * With no transport option (`baseUrl`, `apiKey`, `fetch`) the client resolves
+ * poses locally: no network, no key, no payment. Passing any of the three
+ * switches it to the hosted pose_model tool on /api/mcp-3d.
+ */
export interface PoseClientOptions {
+ /** API origin (default https://three.ws). Selects the hosted lane. */
baseUrl?: string;
+ /** fetch implementation (e.g. a payment-aware x402 fetch). Selects the hosted lane. */
fetch?: typeof fetch;
- /** OAuth bearer — runs the call operator-funded (free) on the paid lane. */
+ /** OAuth bearer, runs hosted calls operator-funded. Selects the hosted lane. */
apiKey?: string;
/** Base URL for the returned previewUrl (default https://three.ws/pose). */
previewBase?: string;
+ /** Extra headers on every hosted-lane request. */
headers?: Record<string, string>;
}
diff --git a/packages/signals-mcp/README.md b/packages/signals-mcp/README.md
index 792d84bd3..d7b9fc55a 100644
--- a/packages/signals-mcp/README.md
+++ b/packages/signals-mcp/README.md
@@ -159,7 +159,7 @@ Publishing is reputation-gated on the platform: only agents with a verified on-c
- Homepage: https://three.ws
- Changelog: https://three.ws/changelog
- Issues: https://github.com/nirholas/three.ws/issues
-- License: Apache-2.0 — see [LICENSE](./LICENSE)
+- License: proprietary, all rights reserved; see [LICENSE](./LICENSE)
---
diff --git a/packages/three-token-mcp/README.md b/packages/three-token-mcp/README.md
index 34e6ba6f7..568b1e0c4 100644
--- a/packages/three-token-mcp/README.md
+++ b/packages/three-token-mcp/README.md
@@ -159,7 +159,7 @@ The server pre-checks your $THREE balance and fails fast with a clear error if i
- Homepage: https://three.ws
- Changelog: https://three.ws/changelog
- Issues: https://github.com/nirholas/three.ws/issues
-- License: Apache-2.0 — see [LICENSE](./LICENSE)
+- License: proprietary, all rights reserved; see [LICENSE](./LICENSE)
---
diff --git a/packages/vanity/README.md b/packages/vanity/README.md
index 6871aaeaf..0dd387027 100644
--- a/packages/vanity/README.md
+++ b/packages/vanity/README.md
@@ -153,7 +153,7 @@ work starts — an invalid pattern rejects immediately with a specific message.
|---|---|---|
| `attempts` | `number` | Running total. |
| `rate` | `number` | Keypairs/sec. |
-| `eta` | `string` | Human estimate of remaining time: `"~12 seconds"`, `"~3 hours"`, `"unknown"`. |
+| `eta` | `string` | Expected time to a hit at the current rate: `"~12 seconds"`, `"~3 hours"`, `"unknown"`. The distribution is memoryless, so this does not count down as attempts accumulate. |
### `expectedAttempts({ prefix?, suffix?, ignoreCase? }) → number`
diff --git a/packages/vanity/src/index.d.ts b/packages/vanity/src/index.d.ts
index dfd59333f..e0a3b69ad 100644
--- a/packages/vanity/src/index.d.ts
+++ b/packages/vanity/src/index.d.ts
@@ -35,7 +35,7 @@ export interface GrindProgress {
attempts: number;
/** Keypairs/sec. */
rate: number;
- /** Human estimate of remaining time, e.g. "~12 seconds", "unknown". */
+ /** Expected time to a hit at the current rate, e.g. "~12 seconds", "unknown". Memoryless: does not count down. */
eta: string;
}
diff --git a/packages/vanity/src/index.js b/packages/vanity/src/index.js
index 84360b3f5..c09d7d46b 100644
--- a/packages/vanity/src/index.js
+++ b/packages/vanity/src/index.js
@@ -320,10 +320,14 @@ export async function grind(opts = {}) {
function buildProgress(attempts, durationMs, expected) {
const rate = durationMs > 0 ? (attempts / durationMs) * 1000 : 0;
+ // The geometric distribution is memoryless: past attempts don't bring the
+ // next hit closer, so the honest expected-remaining is always the full
+ // expectation. Counting down (expected - attempts) would read "any second
+ // now" for minutes on an unlucky grind.
return {
attempts,
rate,
- eta: formatTimeEstimate(Math.max(0, expected - attempts), rate),
+ eta: formatTimeEstimate(expected, rate),
};
}
diff --git a/packages/voice/README.md b/packages/voice/README.md
index cb5f45d6b..9aec774aa 100644
--- a/packages/voice/README.md
+++ b/packages/voice/README.md
@@ -259,7 +259,7 @@ configured; the free Magpie lane covers the default voices end to end.
## Errors & edge cases
-Each call rejects with a typed `VoiceError` carrying a `code` that mirrors the
+Each call rejects with a typed `ThreeWsError` carrying a `code` that mirrors the
endpoint's response:
| `code` | HTTP | Meaning | Recovery |
diff --git a/packages/vscode-x402/package-lock.json b/packages/vscode-x402/package-lock.json
index cca24bcbb..756c6572e 100644
--- a/packages/vscode-x402/package-lock.json
+++ b/packages/vscode-x402/package-lock.json
@@ -1,13 +1,20 @@
{
"name": "@three-ws/vscode-x402",
- "version": "0.1.0",
+ "version": "0.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@three-ws/vscode-x402",
- "version": "0.1.0",
- "license": "Apache-2.0",
+ "version": "0.2.0",
+ "license": "SEE LICENSE IN LICENSE",
+ "dependencies": {
+ "@solana/kit": "^6.9.0",
+ "@x402/core": "^2.14.0",
+ "@x402/fetch": "^2.14.0",
+ "@x402/svm": "^2.14.0",
+ "bs58": "^6.0.0"
+ },
"devDependencies": {
"@types/vscode": "^1.85.0",
"esbuild": "^0.21.0"
@@ -407,6 +414,1012 @@
"node": ">=12"
}
},
+ "node_modules/@solana/accounts": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/accounts/-/accounts-6.10.0.tgz",
+ "integrity": "sha512-+FxfDOrnifoPlBkF+fr8eeQdgM6xtIgAg9xKMu3WnIz60oZd4Xnry6+ff6t+ePPoZZp397FSg9ZJet68VCWm5Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/rpc-spec": "6.10.0",
+ "@solana/rpc-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/addresses": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-6.10.0.tgz",
+ "integrity": "sha512-vEoCGBTxG0HCERAn84KXkrJjl+pDaNzOpZ0qbgcPS98fYxP5yzbKB8SNOY2bzrbkRUmmw5Q3hqTRERemUN2Gcw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/nominal-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/assertions": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/assertions/-/assertions-6.10.0.tgz",
+ "integrity": "sha512-lKSAdVo+P/6Lp4vs6shstXmFOpvxrABwn4o1462tb7sKkNapk6o9pPFVPGw4DUgPS3WqWRs1j2tmpuVjhQRntg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/codecs": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs/-/codecs-6.10.0.tgz",
+ "integrity": "sha512-lLVuxod4ChWp9i7OvpgIykYG8Q9OGPVXKnHM9VlzDDLylsx7Y1FoQL00sHa7PqFkJVmkBufaA6dcGbQ7FU+lAQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/fixed-points": "6.10.0",
+ "@solana/options": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/codecs-core": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-6.10.0.tgz",
+ "integrity": "sha512-nfAl9OMGo4HanIMxGsQoVB7BxMoqBCYEUxl8oEAZZ09pDxnaXQZkTRXEwPPccag37XfW1ciPd1vWPKwB2b0HHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/codecs-data-structures": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-6.10.0.tgz",
+ "integrity": "sha512-CNasJW3bq5u+632Zt5aJ8rOjAjv2HyenpV8o9kAIqdmV4CBpjCCoBnKn8LkuR/sbeREZxJYfhKTXO/9ruAkw7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/codecs-numbers": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-6.10.0.tgz",
+ "integrity": "sha512-CcM+wX4zOiA9zkh8A7t1787A0Ehgmu5+6Z2tKoHew6cNw/dkaUTPa8JnNHbvfsLC8dfHC1BhAEJl86sKmRsfkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/codecs-strings": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-6.10.0.tgz",
+ "integrity": "sha512-zlaqkg7K6F6IN4V/Ec8TWkTn054gxv7ZLagvGkuEyAdPQ6BzzsehOm2TqCuyXgJJTCGPLY1bEk6yH9NxANe0kA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "fastestsmallesttextencoderdecoder": "^1.0.22",
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "fastestsmallesttextencoderdecoder": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/errors": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-6.10.0.tgz",
+ "integrity": "sha512-KBLAxCtAXr357JNhCyIDQXWbuSj5vN6w+28FSfcYY6OOSiphmXLAV3V58jgV0C6iNbIzFJFi6yatFyDTdeJsNg==",
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "5.6.2",
+ "commander": "15.0.0"
+ },
+ "bin": {
+ "errors": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/fast-stable-stringify": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/fast-stable-stringify/-/fast-stable-stringify-6.10.0.tgz",
+ "integrity": "sha512-iCNed27wk6PKSS3QUtHovRfMWF/jbVWogs2vB4tukKUCsqG4rDfDInIwZ6ur/nY6XTrgi2gMMdZq9GAUlWsbfw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/fixed-points": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/fixed-points/-/fixed-points-6.10.0.tgz",
+ "integrity": "sha512-ZkKL0alXH3L7/wMiVG8YUuG8qBKunlM810+YBD7nUPRhifiGsX1zwADViHLYNqLr/jUk0mTYFUcKznTpB/K+Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/functional": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/functional/-/functional-6.10.0.tgz",
+ "integrity": "sha512-P8cevu4mAqHTXC37h1TVoOh8zhWB2tlOI/R9vWjYPpcLwcyWf8p2qq4LEGHl5kY+1C+4PNX39HsmCocXOPCDkQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/instruction-plans": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/instruction-plans/-/instruction-plans-6.10.0.tgz",
+ "integrity": "sha512-YG7mo4zykzdc6ZTV0BuN6pveK9qeBySzlYYerq578A4eQu3xcypMAYRGAvhMZtWTanjjmD6CKtM0M7kVp0TNxg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/promises": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/instructions": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/instructions/-/instructions-6.10.0.tgz",
+ "integrity": "sha512-0TToYF+8LXQ3ofPMx+yF6yaM9l4YJvcAPMy0qV5JsrBUFlWXBSANRuudKBQLHMvb+a3OiUTq5X7omuorKMBB3A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/keys": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/keys/-/keys-6.10.0.tgz",
+ "integrity": "sha512-26IRfdm/hTUCmM7MeEeX0ULSbCM6OzkZTkfkrPircqmRM7xyNqP4hq7u0P7wjb9dl7NfgyG6K7cdvUxrj2e3mA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/nominal-types": "6.10.0",
+ "@solana/promises": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/kit": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/kit/-/kit-6.10.0.tgz",
+ "integrity": "sha512-/WnnQp3uARh2JCFSfAakejTAqwmXVuMVTcRn5r2yDwY2yzZ4R6mt/Cl59VPimVLNSoTyN/KsEwhv9omr3ERazQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/accounts": "6.10.0",
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/instruction-plans": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/offchain-messages": "6.10.0",
+ "@solana/plugin-core": "6.10.0",
+ "@solana/plugin-interfaces": "6.10.0",
+ "@solana/program-client-core": "6.10.0",
+ "@solana/programs": "6.10.0",
+ "@solana/rpc": "6.10.0",
+ "@solana/rpc-api": "6.10.0",
+ "@solana/rpc-parsed-types": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/rpc-subscriptions": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/signers": "6.10.0",
+ "@solana/subscribable": "6.10.0",
+ "@solana/sysvars": "6.10.0",
+ "@solana/transaction-confirmation": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/nominal-types": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/nominal-types/-/nominal-types-6.10.0.tgz",
+ "integrity": "sha512-9ykyBBvnkInH7fCacjJi7zu2PJyd+OCt+VTjIISv070fHzKIMFqZqJJ/dJ0SRH2aHwfB3n86iVsmtBtuxi4KKA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/offchain-messages": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/offchain-messages/-/offchain-messages-6.10.0.tgz",
+ "integrity": "sha512-RiEgAueeMkFMC1suOXBIcmCZgtXRxy24yk0DldPB37bB4zwOF1SAaRjNRPjIkGK8RhCYrEpPosnzLyavw9ueRg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/nominal-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/options": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-6.10.0.tgz",
+ "integrity": "sha512-RO9UT3UYD8/Cu2uM6ZXbKvLeMnVD42+g9JRds7Pfs4AhiOyg4R4TJrQUAppTgavPTO3PBRlWtWOC05ZH/yAIbg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/plugin-core": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/plugin-core/-/plugin-core-6.10.0.tgz",
+ "integrity": "sha512-JE70YTQOfFACVFGvoJon4Scc/eHUWjMu8Ovo35CcV2kHTAHYMCd4UkBd2gmlhK0vRMMomsQi1ZLPlAlTq0OoUQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/plugin-interfaces": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/plugin-interfaces/-/plugin-interfaces-6.10.0.tgz",
+ "integrity": "sha512-vr0/l9wcM4orwGr8cjkFWaJ9A4HvzuAv00jMFNMg0Spd0GZqnwnpW+D/fXa1lIJnTRaF3EeEjLh4VjKU037T0Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/instruction-plans": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/rpc-spec": "6.10.0",
+ "@solana/rpc-subscriptions-spec": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/signers": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/program-client-core": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/program-client-core/-/program-client-core-6.10.0.tgz",
+ "integrity": "sha512-4PPbTLdC1ylHIuvhOFDP8RnSkXPCFjNFWGslzc+UFKnoR4ajzBcByX94jmaruDMk5ncxgj7tr9pzJTvfGHIaMA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/accounts": "6.10.0",
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/instruction-plans": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/plugin-interfaces": "6.10.0",
+ "@solana/rpc-api": "6.10.0",
+ "@solana/signers": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/programs": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/programs/-/programs-6.10.0.tgz",
+ "integrity": "sha512-qn/HeLP5KGUJXVub3fyGe69/rWaLX4jzwm6V/1pNxJDbdF+MBdgn18hP6F+VmhfdNmwK0lue3J/1HQ1UTMuQeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/errors": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/promises": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/promises/-/promises-6.10.0.tgz",
+ "integrity": "sha512-oJSIn+VBBMWDo8oqw7RV3tI6Jih+Ieup6FcQLYLDUriaeo7+8l1Zdezl8zh7SIfeU4lOfAbRg6mR0huaS/Lltg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc/-/rpc-6.10.0.tgz",
+ "integrity": "sha512-EwxsqoD+NXV+m+iobnWNtATD93gTgaNsOiQOzYB1/2e+8S6fl6obdNPB55yfXgtl4jt6GV6/ae4xuPhLv76vvg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/fast-stable-stringify": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/rpc-api": "6.10.0",
+ "@solana/rpc-spec": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/rpc-transformers": "6.10.0",
+ "@solana/rpc-transport-http": "6.10.0",
+ "@solana/rpc-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-api": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-api/-/rpc-api-6.10.0.tgz",
+ "integrity": "sha512-RjPIVsAb/85P1ptoO3WpC0x7QG6gG/e4q/3lo6gbSznUZOcoM+8sSBnCX7BwP1ZkCDS6NK/ClXLnhhhYZx+OGg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/rpc-parsed-types": "6.10.0",
+ "@solana/rpc-spec": "6.10.0",
+ "@solana/rpc-transformers": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-parsed-types": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-parsed-types/-/rpc-parsed-types-6.10.0.tgz",
+ "integrity": "sha512-5275mvSV1mxhwvrMVa+K7BU/nAetpHfcb+8Ql9rtA8RRf6DyiimFQFZUukE4Ez6XJihEpCHNy98yhkgai9wytQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-spec": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec/-/rpc-spec-6.10.0.tgz",
+ "integrity": "sha512-yQdbWw5mZEWrwsunHR9NHkuhMXIB9sPOObwm18D53v5tAJnxTB0IcHvO647XqFDLTK/yQ4AdDtlYD1vsY07AMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/subscribable": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-spec-types": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec-types/-/rpc-spec-types-6.10.0.tgz",
+ "integrity": "sha512-NDZrKyZrJk4HaMFhTE/lAiMB824cWAodKqDHyKi0UteHU9pyRmil3BN1jt7e+j08mwMWwfklSgyrTaq52g6DIQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-subscriptions": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions/-/rpc-subscriptions-6.10.0.tgz",
+ "integrity": "sha512-6mfuHp/K7unFKCOTCCBC9ziEGnxe2tyJ74EbR51QUnBeCUdYD7Hhdpxic1WRSJ3UeNW/mG4OzFM6z8Wi64Eh9Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/fast-stable-stringify": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/promises": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/rpc-subscriptions-api": "6.10.0",
+ "@solana/rpc-subscriptions-channel-websocket": "6.10.0",
+ "@solana/rpc-subscriptions-spec": "6.10.0",
+ "@solana/rpc-transformers": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/subscribable": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-subscriptions-api": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-api/-/rpc-subscriptions-api-6.10.0.tgz",
+ "integrity": "sha512-CRPQoTtT1cOwOQUsqS7jgo7wYdAj7jB5ab/UmMPWVpecf2FNMhWhgvxP2s82M7VkDGTGl13qaQ0WySmi7Egrlg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/rpc-subscriptions-spec": "6.10.0",
+ "@solana/rpc-transformers": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-subscriptions-channel-websocket": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-channel-websocket/-/rpc-subscriptions-channel-websocket-6.10.0.tgz",
+ "integrity": "sha512-KkqP1186HELPlJftA88SNAT2znR8knCVzsUipXVzY4zfW8sN3LOa0ePMzh9VZ/V+J+raTt55laR87ovAO0n+zw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/rpc-subscriptions-spec": "6.10.0",
+ "@solana/subscribable": "6.10.0",
+ "ws": "^8.21.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-subscriptions-spec": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-spec/-/rpc-subscriptions-spec-6.10.0.tgz",
+ "integrity": "sha512-nWMwGaG4ulzeX2sskY5TywXF3cwEd8FDmUpLe2JBWxE8XDAOGOKcsYPYFcBgb8ee9KqfPT2PTNdcz9jOhJf34w==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/promises": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/subscribable": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-transformers": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-transformers/-/rpc-transformers-6.10.0.tgz",
+ "integrity": "sha512-2nFUrVTiE720pJOY4XKx3HuYmishw0of/4oScu76YGm6O8wsmvFvPNAkrEinmieWXQkfpBfRvLZmpl8PaAy+ug==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/nominal-types": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "@solana/rpc-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-transport-http": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-transport-http/-/rpc-transport-http-6.10.0.tgz",
+ "integrity": "sha512-JrdNuYi0nBbD3X8JUtgX1dQJwIwz/WJvmigDdELysXfGB2bTJpfjqGDLhCLOz2sRl66FASIEqgG/LVa2C9VXcA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/rpc-spec": "6.10.0",
+ "@solana/rpc-spec-types": "6.10.0",
+ "undici-types": "^8.4.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/rpc-types": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-types/-/rpc-types-6.10.0.tgz",
+ "integrity": "sha512-zaSecTfCPvz/vcoAmKD6XoRstGHTr1EKJBD8T9UcpEFFB6CtF6DxerDB+wrzkamuT6msmnR2DWXMrYOGDAsgIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/fixed-points": "6.10.0",
+ "@solana/nominal-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/signers": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/signers/-/signers-6.10.0.tgz",
+ "integrity": "sha512-+vtCc+mT1FpGxrA5oL2aaMxSHiMJ2hH5PcDIfjo2XJkHz2klZiCZyT5F9+zpltc9vdi1QTElQq59Sfplmtd33A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/nominal-types": "6.10.0",
+ "@solana/offchain-messages": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/subscribable": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/subscribable/-/subscribable-6.10.0.tgz",
+ "integrity": "sha512-VsR6XMwkiDBkZJUcoGkEOhf397pOV75gKCL9Bx8bpi2T3Bbs0CxUpMn4yaUgAnRba3eXmjbXMNCXjttfa6sKbw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "6.10.0",
+ "@solana/promises": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/sysvars": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/sysvars/-/sysvars-6.10.0.tgz",
+ "integrity": "sha512-cG13p1+onxz+20iWjwWQr1Z1jQwPm0fnjoW75fqZq7p4rVCie3L2sXvaJsYPjWKrUvpOzOIEHnqZGkG05rCpjg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/accounts": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/rpc-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/transaction-confirmation": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/transaction-confirmation/-/transaction-confirmation-6.10.0.tgz",
+ "integrity": "sha512-ULvtg65qfenh4T/GYcIlKSUv5EqDcng9UN0dxbHU4kuZdR2e0B8HN2xDC4WhcFQVeFJSbTZmaYFkeTY/Y4gfGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/promises": "6.10.0",
+ "@solana/rpc": "6.10.0",
+ "@solana/rpc-subscriptions": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/transaction-messages": "6.10.0",
+ "@solana/transactions": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/transaction-messages": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/transaction-messages/-/transaction-messages-6.10.0.tgz",
+ "integrity": "sha512-s7v8G3BTxGlKYIj3eWCG0g1296v+1LBt16mVnlRH5FuyaJ5AdhlhtRho5HUDpdwE8EXun+y1c48V6uhcZ8wdbQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/nominal-types": "6.10.0",
+ "@solana/rpc-types": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@solana/transactions": {
+ "version": "6.10.0",
+ "resolved": "https://registry.npmjs.org/@solana/transactions/-/transactions-6.10.0.tgz",
+ "integrity": "sha512-VADSqP9OTYmhrox4pcgDd4+RjVmednXSE0+8Y7SPK4PN1pK5Az2RJ0nSsy0xcTnaOr8mF/crwFktqPrRQwSbQA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "6.10.0",
+ "@solana/codecs-core": "6.10.0",
+ "@solana/codecs-data-structures": "6.10.0",
+ "@solana/codecs-numbers": "6.10.0",
+ "@solana/codecs-strings": "6.10.0",
+ "@solana/errors": "6.10.0",
+ "@solana/functional": "6.10.0",
+ "@solana/instructions": "6.10.0",
+ "@solana/keys": "6.10.0",
+ "@solana/nominal-types": "6.10.0",
+ "@solana/rpc-types": "6.10.0",
+ "@solana/transaction-messages": "6.10.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@types/vscode": {
"version": "1.125.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.125.0.tgz",
@@ -414,6 +1427,461 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@x402/core": {
+ "version": "2.21.0",
+ "resolved": "https://registry.npmjs.org/@x402/core/-/core-2.21.0.tgz",
+ "integrity": "sha512-0djKE7V5/JKDMrjRe5he3DoMFzlbVnUcvMmLAb2j6OoAJDamupkFh6fFrXeoHwjkBIxOFUzjGI4FVixz2dMxSA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "zod": "^3.24.2"
+ }
+ },
+ "node_modules/@x402/fetch": {
+ "version": "2.21.0",
+ "resolved": "https://registry.npmjs.org/@x402/fetch/-/fetch-2.21.0.tgz",
+ "integrity": "sha512-LEiJ8jjb8fmCNgF1yMjLoVRtrg8gtb/zJgBDLW7t/KPbntDDqgru+nd1OLU1qyyp9D2I7ULYP420eHVyAVZ12w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@x402/core": "~2.21.0"
+ }
+ },
+ "node_modules/@x402/svm": {
+ "version": "2.21.0",
+ "resolved": "https://registry.npmjs.org/@x402/svm/-/svm-2.21.0.tgz",
+ "integrity": "sha512-PdB+ALLXP5igMXiF8CaU0c7HBX52gs5sfLGlJ4iTtMKk11A1qvge46bIviGt9GcZkwbzBBFOHwkHJVUZum+vQA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@solana-program/compute-budget": "^0.11.0",
+ "@solana-program/token": "^0.9.0",
+ "@solana-program/token-2022": "^0.6.1",
+ "@x402/core": "~2.21.0"
+ },
+ "peerDependencies": {
+ "@solana/kit": ">=5.1.0"
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana-program/compute-budget": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@solana-program/compute-budget/-/compute-budget-0.11.0.tgz",
+ "integrity": "sha512-7f1ePqB/eURkTwTOO9TNIdUXZcyrZoX3Uy2hNo7cXMfNhPFWp9AVgIyRNBc2jf15sdUa9gNpW+PfP2iV8AYAaw==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@solana/kit": "^5.0"
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana-program/token": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@solana-program/token/-/token-0.9.0.tgz",
+ "integrity": "sha512-vnZxndd4ED4Fc56sw93cWZ2djEeeOFxtaPS8SPf5+a+JZjKA/EnKqzbE1y04FuMhIVrLERQ8uR8H2h72eZzlsA==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@solana/kit": "^5.0"
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana-program/token-2022": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/@solana-program/token-2022/-/token-2022-0.6.1.tgz",
+ "integrity": "sha512-Ex02cruDMGfBMvZZCrggVR45vdQQSI/unHVpt/7HPt/IwFYB4eTlXtO8otYZyqV/ce5GqZ8S6uwyRf0zy6fdbA==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@solana/kit": "^5.0",
+ "@solana/sysvars": "^5.0"
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/accounts": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/accounts/-/accounts-5.5.1.tgz",
+ "integrity": "sha512-TfOY9xixg5rizABuLVuZ9XI2x2tmWUC/OoN556xwfDlhBHBjKfszicYYOyD6nbFmwTGYarCmyGIdteXxTXIdhQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-spec": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/addresses": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-5.5.1.tgz",
+ "integrity": "sha512-5xoah3Q9G30HQghu/9BiHLb5pzlPKRC3zydQDmE3O9H//WfayxTFppsUDCL6FjYUHqj/wzK6CWHySglc2RkpdA==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/assertions": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/assertions": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/assertions/-/assertions-5.5.1.tgz",
+ "integrity": "sha512-YTCSWAlGwSlVPnWtWLm3ukz81wH4j2YaCveK+TjpvUU88hTy6fmUqxi0+hvAMAe4zKXpJyj3Az7BrLJRxbIm4Q==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/codecs": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs/-/codecs-5.5.1.tgz",
+ "integrity": "sha512-Vea29nJub/bXjfzEV7ZZQ/PWr1pYLZo3z0qW0LQL37uKKVzVFRQlwetd7INk3YtTD3xm9WUYr7bCvYUk3uKy2g==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/options": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/codecs-core": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-5.5.1.tgz",
+ "integrity": "sha512-TgBt//bbKBct0t6/MpA8ElaOA3sa8eYVvR7LGslCZ84WiAwwjCY0lW/lOYsFHJQzwREMdUyuEyy5YWBKtdh8Rw==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/codecs-data-structures": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-5.5.1.tgz",
+ "integrity": "sha512-97bJWGyUY9WvBz3mX1UV3YPWGDTez6btCfD0ip3UVEXJbItVuUiOkzcO5iFDUtQT5riKT6xC+Mzl+0nO76gd0w==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/codecs-numbers": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-5.5.1.tgz",
+ "integrity": "sha512-rllMIZAHqmtvC0HO/dc/21wDuWaD0B8Ryv8o+YtsICQBuiL/0U4AGwH7Pi5GNFySYk0/crSuwfIqQFtmxNSPFw==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/codecs-strings": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-5.5.1.tgz",
+ "integrity": "sha512-7klX4AhfHYA+uKKC/nxRGP2MntbYQCR3N6+v7bk1W/rSxYuhNmt+FN8aoThSZtWIKwN6BEyR1167ka8Co1+E7A==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "fastestsmallesttextencoderdecoder": "^1.0.22",
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "fastestsmallesttextencoderdecoder": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/errors": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-5.5.1.tgz",
+ "integrity": "sha512-vFO3p+S7HoyyrcAectnXbdsMfwUzY2zYFUc2DEe5BwpiE9J1IAxPBGjOWO6hL1bbYdBrlmjNx8DXCslqS+Kcmg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "chalk": "5.6.2",
+ "commander": "14.0.2"
+ },
+ "bin": {
+ "errors": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/nominal-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/nominal-types/-/nominal-types-5.5.1.tgz",
+ "integrity": "sha512-I1ImR+kfrLFxN5z22UDiTWLdRZeKtU0J/pkWkO8qm/8WxveiwdIv4hooi8pb6JnlR4mSrWhq0pCIOxDYrL9GIQ==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/options": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-5.5.1.tgz",
+ "integrity": "sha512-eo971c9iLNLmk+yOFyo7yKIJzJ/zou6uKpy6mBuyb/thKtS/haiKIc3VLhyTXty3OH2PW8yOlORJnv4DexJB8A==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/rpc-spec": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec/-/rpc-spec-5.5.1.tgz",
+ "integrity": "sha512-m3LX2bChm3E3by4mQrH4YwCAFY57QBzuUSWqlUw7ChuZ+oLLOq7b2czi4i6L4Vna67j3eCmB3e+4tqy1j5wy7Q==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/rpc-spec-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec-types/-/rpc-spec-types-5.5.1.tgz",
+ "integrity": "sha512-6OFKtRpIEJQs8Jb2C4OO8KyP2h2Hy1MFhatMAoXA+0Ik8S3H+CicIuMZvGZ91mIu/tXicuOOsNNLu3HAkrakrw==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/rpc-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-types/-/rpc-types-5.5.1.tgz",
+ "integrity": "sha512-bibTFQ7PbHJJjGJPmfYC2I+/5CRFS4O2p9WwbFraX1Keeel+nRrt/NBXIy8veP5AEn2sVJIyJPpWBRpCx1oATA==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/@solana/sysvars": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/sysvars/-/sysvars-5.5.1.tgz",
+ "integrity": "sha512-k3Quq87Mm+geGUu1GWv6knPk0ALsfY6EKSJGw9xUJDHzY/RkYSBnh0RiOrUhtFm2TDNjOailg8/m0VHmi3reFA==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@solana/accounts": "5.5.1",
+ "@solana/codecs": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/svm/node_modules/commander": {
+ "version": "14.0.2",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz",
+ "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/base-x": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz",
+ "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==",
+ "license": "MIT"
+ },
+ "node_modules/bs58": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz",
+ "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==",
+ "license": "MIT",
+ "dependencies": {
+ "base-x": "^5.0.0"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "5.6.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",
+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",
+ "license": "MIT",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/commander": {
+ "version": "15.0.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz",
+ "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
"node_modules/esbuild": {
"version": "0.21.5",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
@@ -452,6 +1920,42 @@
"@esbuild/win32-ia32": "0.21.5",
"@esbuild/win32-x64": "0.21.5"
}
+ },
+ "node_modules/undici-types": {
+ "version": "8.10.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.10.0.tgz",
+ "integrity": "sha512-ibvdovq3nCFs8Msrd95BW+zUOq+aOVbT+wpHUoPWhztbHEoPc6oof51iFDB6Es8lTKvNvVW9jNSAB8dwrKTMGg==",
+ "license": "MIT"
+ },
+ "node_modules/ws": {
+ "version": "8.21.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
+ "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
}
}
}