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
chore: drop redundant buffer-layout-utils postinstall patch
ni3a4c7408dfe158
diff --git a/package.json b/package.jsonindex 6d23bc778..afb3cdfcf 100644--- a/package.json+++ b/package.json@@ -94,7 +94,7 @@]},"scripts": {- "postinstall": "(node scripts/build-cache.mjs check agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json || (npm run build --prefix agent-payments-sdk && node scripts/build-cache.mjs stamp agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json)) && (node scripts/fix-pump-sdk-esm.mjs & node scripts/fix-x402-extensions-esm.mjs & node scripts/fix-buffer-layout-utils-esm.mjs & node scripts/fix-zauth-sdk-solana-esm.mjs & node scripts/fix-colyseus-storage.mjs & node scripts/copy-three-decoders.mjs & node scripts/setup-claude-skills.mjs & wait)",+ "postinstall": "(node scripts/build-cache.mjs check agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json || (npm run build --prefix agent-payments-sdk && node scripts/build-cache.mjs stamp agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json)) && (node scripts/fix-pump-sdk-esm.mjs & node scripts/fix-x402-extensions-esm.mjs & node scripts/fix-zauth-sdk-solana-esm.mjs & node scripts/fix-colyseus-storage.mjs & node scripts/copy-three-decoders.mjs & node scripts/setup-claude-skills.mjs & wait)","setup": "node scripts/setup-dev.mjs","dev": "vite --port 3000","dev:multi": "npm run dev --prefix multiplayer",diff --git a/scripts/fix-buffer-layout-utils-esm.mjs b/scripts/fix-buffer-layout-utils-esm.mjsdeleted file mode 100644index ab5903fbc..000000000--- a/scripts/fix-buffer-layout-utils-esm.mjs+++ /dev/null@@ -1,67 +0,0 @@-// Patches @solana/buffer-layout-utils after install to repair its broken ESM build.-//-// 0.2.0 ships an INCOMPLETE `lib/esm/` directory: `base.mjs`, `bigint.mjs`, and-// `decimal.mjs` are present, but `index.mjs`, `native.mjs`, and `web3.mjs` never-// made it into the tarball (only their `.js.map` files did). The package's-// `exports.import` condition and `module` field still advertise the missing-// `./lib/esm/index.mjs`, so any ESM consumer fails with:-//-// Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../lib/esm/index.mjs'-// imported from .../@solana/spl-token/lib/esm/instructions/amountToUiAmount.js-//-// @solana/spl-token is imported all over the agent-wallet / pump trade paths-// (and exercised by `npm run smoke:agent-wallet`), so this breaks the whole ESM-// graph that touches SPL token instructions.-//-// Fix: redirect the `import` condition (and drop the dangling `module` field) to-// the complete CJS build. `lib/cjs/index.js` re-exports everything via the TS-// `__exportStar` pattern, which both Node's cjs-module-lexer and Vite/esbuild-// interop statically resolve into named exports (`u64`, `publicKey`, `bool`, …),-// so `import { u64 } from '@solana/buffer-layout-utils'` works under raw Node and-// in the bundler. Same approach as fix-x402-extensions-esm.mjs.-//-// Idempotent (re-points only when still aimed at the missing .mjs); survives-// `npm ci` via postinstall.--import { existsSync, readFileSync, writeFileSync } from 'node:fs';-import { dirname, join } from 'node:path';-import { fileURLToPath } from 'node:url';--const root = dirname(fileURLToPath(import.meta.url));-const repo = dirname(root);-const pkgPath = join(repo, 'node_modules/@solana/buffer-layout-utils/package.json');--if (!existsSync(pkgPath)) {- console.log('[fix-buffer-layout-utils-esm] package not installed, skipping');- process.exit(0);-}--const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));-const cjsEntry = './lib/cjs/index.js';--// The complete build is CJS; only repoint if the package still has it.-if (!existsSync(join(dirname(pkgPath), 'lib/cjs/index.js'))) {- console.log('[fix-buffer-layout-utils-esm] cjs build missing, cannot repoint — skipping');- process.exit(0);-}--let mutated = false;--if (pkg.exports && typeof pkg.exports === 'object' && pkg.exports.import !== cjsEntry) {- pkg.exports.import = cjsEntry;- mutated = true;-}--// `module` points at the missing ESM entry; bundlers that prefer it over-// `exports` would re-introduce the same broken resolution. Drop it.-if (pkg.module) {- delete pkg.module;- mutated = true;-}--if (mutated) {- writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');- console.log('[fix-buffer-layout-utils-esm] redirected import→cjs (esm build is incomplete)');-} else {- console.log('[fix-buffer-layout-utils-esm] already patched');-}