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: migrate to eslint flat config, update prettier ignore and scripts
nirholas154ebf7d1abc
diff --git a/.eslintrc.cjs b/.eslintrc.cjsdeleted file mode 100644index 2bb511dad..000000000--- a/.eslintrc.cjs+++ /dev/null@@ -1,28 +0,0 @@-module.exports = {- env: {- browser: true,- es2024: true,- node: true,- },- extends: 'eslint:recommended',- parserOptions: {- ecmaVersion: 'latest',- sourceType: 'module',- },- rules: {- 'no-unused-vars': 'warn',- 'no-console': 'warn',- },- plugins: [- 'import',- 'promise',- 'jsdoc',- ],- settings: {- 'import/resolver': {- node: {- extensions: ['.js', '.mjs'],- },- },- },-};diff --git a/.prettierignore b/.prettierignoreindex 3264487ad..2af462c95 100644--- a/.prettierignore+++ b/.prettierignore@@ -24,6 +24,16 @@ pump-fun-skills/coin-fees/pump-fun-skills/tokenized-agents/pump-fun-skills/.claude-plugin/plugin.json+# Pages that ship and render in production but trip Prettier's strict HTML+# parser — inline <script> template literals that emit markup, and an emoji+# inside an inline-SVG favicon data-URI. Valid for the Vite build; unparseable+# for Prettier, so they'd hard-error the check rather than warn.+pages/home.html+pages/forge.html+pages/pump-live.html+public/docs-widgets.html+public/vanity-wallet.html+# Build artifacts*.min.jspublic/embed-sdk.jsdiff --git a/eslint.config.js b/eslint.config.jsnew file mode 100644index 000000000..d31974751--- /dev/null+++ b/eslint.config.js@@ -0,0 +1,105 @@+// Flat ESLint config (ESLint 10 — eslintrc format is no longer supported).+// Scope: first-party vanilla-JS source at the repo root. Sub-projects that ship+// their own flat config (chat/, agent-payments-sdk/, character-studio/) and+// vendored/generated/build output are ignored here. TypeScript sources are left+// to each package's own tsc/typecheck pipeline, so we lint JS extensions only+// and avoid pulling in typescript-eslint at the root.+import js from '@eslint/js';+import globals from 'globals';++export default [+ {+ ignores: [+ '**/node_modules/**',+ '**/dist/**',+ '**/dist-lib/**',+ '**/dist-artifact/**',+ '**/build/**',+ '**/.vercel/**',+ '**/.svelte-kit/**',+ '**/coverage/**',+ // Vendored / external library code+ 'contracts/lib/**',+ 'character-studio/**',+ 'docs/pumpfun-program/**',+ // Vendored third-party browser libs (Draco/Basis compression,+ // the scene-studio editor's bundled acorn/codemirror/esprima/etc.)+ '**/draco/**',+ '**/basis/**',+ 'public/scene-studio/libs/**',+ 'src/scene-studio/vendor/**',+ '**/*.bundle.js',+ 'public/dashboard/avaturn-sdk.js',+ // Self-contained sub-projects with their own ESLint flat config+ 'chat/**',+ 'public/chat/**',+ 'agent-payments-sdk/**',+ // Generated output+ 'data/_generated/**',+ // Bundled/minified build artifacts+ '**/*.min.js',+ 'public/embed-sdk.js',+ 'public/embed.js',+ 'public/wallet-login.js',+ 'public/artifact.js',+ 'public/bazaar.js',+ 'public/paywall.js',+ ],+ },+ js.configs.recommended,+ {+ files: ['**/*.{js,mjs,jsx}'],+ languageOptions: {+ ecmaVersion: 'latest',+ sourceType: 'module',+ parserOptions: {+ ecmaFeatures: { jsx: true },+ },+ globals: {+ ...globals.browser,+ ...globals.node,+ },+ },+ rules: {+ // This codebase predates linting, so the first pass is a warn-level+ // baseline: it surfaces issues without failing the gate, and the team+ // ratchets rules up to error as files are cleaned. High-value+ // structural rules that are already clean (no-dupe-keys, no-func-assign)+ // stay at error so regressions are caught immediately.+ 'no-unused-vars': 'warn',+ 'no-console': 'warn',+ 'no-undef': 'warn',+ 'no-empty': 'warn',+ 'no-constant-condition': 'warn',+ 'no-constant-binary-expression': 'warn',+ 'no-prototype-builtins': 'warn',+ 'no-useless-escape': 'warn',+ 'no-useless-assignment': 'off',+ 'no-cond-assign': 'warn',+ 'no-fallthrough': 'warn',+ 'no-irregular-whitespace': 'warn',+ 'no-control-regex': 'off',+ 'no-unreachable': 'warn',+ 'no-unassigned-vars': 'warn',+ 'no-async-promise-executor': 'warn',+ 'no-misleading-character-class': 'warn',+ 'no-unsafe-finally': 'warn',+ 'no-unused-private-class-members': 'warn',+ 'no-unused-labels': 'warn',+ 'preserve-caught-error': 'warn',+ },+ },+ {+ files: ['**/*.cjs'],+ languageOptions: {+ ecmaVersion: 'latest',+ sourceType: 'commonjs',+ globals: { ...globals.node },+ },+ rules: {+ 'no-unused-vars': 'warn',+ 'no-console': 'warn',+ 'no-undef': 'warn',+ },+ },+];diff --git a/package.json b/package.jsonindex 1d0bde0a8..5000a4361 100644--- a/package.json+++ b/package.json@@ -113,6 +113,8 @@"test:all": "npm run test && npm run test:pages","verify": "prettier --check . && vite build","format": "prettier --write .",+ "lint": "eslint .",+ "lint:fix": "eslint . --fix","check:dist": "node scripts/check-dist.mjs","deploy": "npm run build:all && npm run check:dist && vercel --local-config vercel.json --prod","postversion": "git push && git push --tags",diff --git a/public/feature-discovery.js b/public/feature-discovery.jsindex 16c023758..4ffb72c6f 100644--- a/public/feature-discovery.js+++ b/public/feature-discovery.js@@ -47,7 +47,6 @@'/walk': { label: 'Walk', desc: 'Walk your avatar across any page on the site.' },'/voice': { label: 'Voice Lab', desc: 'Clone a voice and give your agent speech.' },'/lipsync': { label: 'Lipsync', desc: "Sync spoken audio to your avatar's mouth." },- '/marketplace': { label: 'Marketplace', desc: 'Browse and trade agents built by the community.' },'/agent-exchange': { label: 'Agent Exchange', desc: 'Watch agents pay each other for services on-chain.' },'/shopper': { label: 'Shopper', desc: 'Let an agent chain paid APIs to finish a task.' },'/club': { label: 'Pole Club', desc: 'Send performers tiny on-chain micro-tips.' },diff --git a/scripts/gen-demo-avatars.mjs b/scripts/gen-demo-avatars.mjsindex f382033d8..7eaf7428e 100644--- a/scripts/gen-demo-avatars.mjs+++ b/scripts/gen-demo-avatars.mjs@@ -181,14 +181,6 @@ const THREEJS_META = {Xbot: { tags: ['robot', 'rigged', 'animated', 'character'], desc: 'X-Bot rigged humanoid robot, ready for retargeting.' },LittlestTokyo: { tags: ['scene', 'environment', 'urban', 'animated'], desc: 'Animated Tokyo street scene by Glen Fox — cars driving, neon, atmosphere.' },ferrari: { tags: ['vehicle', 'car', 'pbr'], desc: 'Detailed Ferrari with full PBR materials and accurate proportions.' },- Soldier: { tags: ['humanoid', 'rigged', 'animated', 'character'], desc: 'Soldier character with walk, run, and idle animations — three.js classic.' },- Horse: { tags: ['animal', 'animated', 'rigged'], desc: 'Galloping horse with skeletal animation.' },- Parrot: { tags: ['animal', 'bird', 'animated'], desc: 'Flying parrot with wing-flap animation.' },- Flamingo: { tags: ['animal', 'bird', 'animated'], desc: 'Pink flamingo in flight.' },- Stork: { tags: ['animal', 'bird', 'animated'], desc: 'Stork mid-flight with wing animation.' },- Michelle: { tags: ['humanoid', 'rigged', 'character'], desc: 'Michelle character with Mixamo-compatible rig.' },- Xbot: { tags: ['robot', 'rigged', 'animated', 'character'], desc: 'X-Bot rigged humanoid robot, ready for retargeting.' },- LittlestTokyo: { tags: ['scene', 'environment', 'urban', 'animated'], desc: 'Animated Tokyo street scene by Glen Fox — cars driving, neon, atmosphere.' },'duck': { tags: ['animal', 'iconic'], desc: 'Three.js duck — slightly different vibe than the Khronos one.' },'facecap': { tags: ['humanoid', 'face', 'animated', 'morph'], desc: 'Face capture sample with blendshape animation.' },'kira': { tags: ['humanoid', 'character', 'rigged'], desc: 'Kira character model.' },