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(deploy): audit symlink check no longer requires .git in Vercel's container

nirholasde5d28328c4d
diff --git a/public/sitemap.xml b/public/sitemap.xml
deleted file mode 100644
index 4bddfc43c..000000000
--- a/public/sitemap.xml
+++ /dev/null
@@ -1,668 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url>
- <loc>https://three.ws/</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>1.0</priority>
- </url>
- <url>
- <loc>https://three.ws/discover</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.9</priority>
- </url>
- <url>
- <loc>https://three.ws/gallery</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/walk</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/marketplace</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/community</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/sitemap</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.4</priority>
- </url>
- <url>
- <loc>https://three.ws/create</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.9</priority>
- </url>
- <url>
- <loc>https://three.ws/app</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/validation</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/studio</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/artifact</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/widgets</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/hydrate</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/features</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/launchpad</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
-
- <url>
- <loc>https://three.ws/brain</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/lipsync</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/lipsync/mic</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/avatar-artifact</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/pay</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.9</priority>
- </url>
- <url>
- <loc>https://three.ws/pumpfun</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/pump-live</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/pump-dashboard</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/strategy-lab</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/vanity-wallet</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/eth-vanity</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/pump-visualizer</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/chat</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/agent</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/agents</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/reputation</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/login</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.4</priority>
- </url>
- <url>
- <loc>https://three.ws/register</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.4</priority>
- </url>
- <url>
- <loc>https://three.ws/forgot-password</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.2</priority>
- </url>
- <url>
- <loc>https://three.ws/docs</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.9</priority>
- </url>
- <url>
- <loc>https://three.ws/docs/quick-start</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/docs/agent-system</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/erc8004</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/embedding</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/web-component</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/mcp</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/skills</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/widgets</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/api-reference</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/sdk</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/docs/listings</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/tutorials</loc>
- <lastmod>2026-05-25</lastmod>
- </url>
- <url>
- <loc>https://three.ws/blog</loc>
- <lastmod>2026-06-08</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/blog/three-ws-dextools-social-boost-buyback</loc>
- <lastmod>2026-06-08</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/blog/three-ws-on-alibaba-cloud-marketplace</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/blog/three-ws-on-bnb-chain-dappbay</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/blog/how-to-embed-3d-onchain-agents</loc>
- <lastmod>2026-05-15</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/legal/privacy</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.2</priority>
- </url>
- <url>
- <loc>https://three.ws/legal/tos</loc>
- <lastmod>2026-05-25</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.2</priority>
- </url>
- <url>
- <loc>https://three.ws/news/</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/news/partnered-with-hackernoon</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/listed-on-bnb-chain-dappbay</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/live-on-alibaba-cloud-marketplace</loc>
- <lastmod>2026-05-17</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2055310365588922872</loc>
- <lastmod>2026-05-15</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2055309846556401735</loc>
- <lastmod>2026-05-15</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2055140064070717618</loc>
- <lastmod>2026-05-15</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2054404663802483072</loc>
- <lastmod>2026-05-13</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2053832201176027583</loc>
- <lastmod>2026-05-11</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2053804700609458214</loc>
- <lastmod>2026-05-11</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2053801703355629587</loc>
- <lastmod>2026-05-11</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2053698387263008827</loc>
- <lastmod>2026-05-11</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2052790746256920583</loc>
- <lastmod>2026-05-08</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2052603250524967045</loc>
- <lastmod>2026-05-08</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2052418108837781511</loc>
- <lastmod>2026-05-07</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2052167399399735476</loc>
- <lastmod>2026-05-06</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2052037977556287723</loc>
- <lastmod>2026-05-06</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051893054584553680</loc>
- <lastmod>2026-05-06</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051858503523066283</loc>
- <lastmod>2026-05-06</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051858035862335505</loc>
- <lastmod>2026-05-06</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051774915876098063</loc>
- <lastmod>2026-05-05</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051690803203105230</loc>
- <lastmod>2026-05-05</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051689230997618690</loc>
- <lastmod>2026-05-05</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051616708482498843</loc>
- <lastmod>2026-05-05</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051261108506558901</loc>
- <lastmod>2026-05-04</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2051140736201175323</loc>
- <lastmod>2026-05-04</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050758788186353723</loc>
- <lastmod>2026-05-03</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050753406109880576</loc>
- <lastmod>2026-05-03</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050627547394916768</loc>
- <lastmod>2026-05-02</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050229144676675999</loc>
- <lastmod>2026-05-01</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050226678321102975</loc>
- <lastmod>2026-05-01</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050221269732425928</loc>
- <lastmod>2026-05-01</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050049239301165535</loc>
- <lastmod>2026-05-01</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2050016695897706885</loc>
- <lastmod>2026-05-01</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2049576641127682430</loc>
- <lastmod>2026-04-29</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2049576603324411933</loc>
- <lastmod>2026-04-29</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2049476546285740512</loc>
- <lastmod>2026-04-29</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2049447738434339171</loc>
- <lastmod>2026-04-29</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/news/2049412062837928202</loc>
- <lastmod>2026-04-29</lastmod>
- <changefreq>yearly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/pricing</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.9</priority>
- </url>
- <url>
- <loc>https://three.ws/changelog</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/bazaar</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/voice</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/club</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/launch-week</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/demos</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.8</priority>
- </url>
- <url>
- <loc>https://three.ws/demos/agents</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/demo/avatar-os</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/demo/coin</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/x402</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/characters</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>daily</changefreq>
- <priority>0.7</priority>
- </url>
- <url>
- <loc>https://three.ws/mocap-studio</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/ar</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/xr</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/pose</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/agenc/embodied</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/agenc/room</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>https://three.ws/aws</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
- <url>
- <loc>https://three.ws/aws-marketplace/welcome</loc>
- <lastmod>2026-05-27</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.5</priority>
- </url>
-</urlset>
diff --git a/scripts/audit-deploy-artifacts.mjs b/scripts/audit-deploy-artifacts.mjs
index c1b62d4d6..d8d04b240 100644
--- a/scripts/audit-deploy-artifacts.mjs
+++ b/scripts/audit-deploy-artifacts.mjs
@@ -25,7 +25,7 @@
* scripts/build-vercel.mjs, and via tests/deploy-artifacts.test.js.
*/
import { execFileSync } from 'node:child_process';
-import { readFileSync, existsSync } from 'node:fs';
+import { readFileSync, existsSync, readdirSync } from 'node:fs';
import { builtinModules } from 'node:module';
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
@@ -45,11 +45,22 @@ const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');
* Vercel's checkout and break function tracing.
*/
export function findCommittedSymlinks({ cwd = ROOT } = {}) {
- const out = execFileSync('git', ['ls-files', '-s'], {
- cwd,
- encoding: 'utf8',
- maxBuffer: 64 * 1024 * 1024,
- });
+ let out;
+ try {
+ out = execFileSync('git', ['ls-files', '-s'], {
+ cwd,
+ encoding: 'utf8',
+ maxBuffer: 64 * 1024 * 1024,
+ stdio: ['ignore', 'pipe', 'pipe'],
+ });
+ } catch {
+ // Vercel's build container has no .git directory, so the index is
+ // unavailable there. Committed symlinks materialize as real symlinks in
+ // the checkout, so scan the filesystem instead. Skipped dirs are the
+ // install-time symlink producers that never reach the git index
+ // (node_modules/.bin, setup-claude-skills.mjs → .claude/skills).
+ return findSymlinksOnDisk(cwd);
+ }
const symlinks = [];
for (const line of out.split('\n')) {
if (line.startsWith('120000 ')) {
@@ -59,6 +70,29 @@ export function findCommittedSymlinks({ cwd = ROOT } = {}) {
return symlinks;
}
+const SYMLINK_SCAN_SKIP = new Set(['node_modules', '.git', '.claude', '.vercel', '.next']);
+
+function findSymlinksOnDisk(root) {
+ const symlinks = [];
+ const stack = [''];
+ while (stack.length) {
+ const rel = stack.pop();
+ let entries;
+ try {
+ entries = readdirSync(resolve(root, rel), { withFileTypes: true });
+ } catch {
+ continue;
+ }
+ for (const entry of entries) {
+ if (SYMLINK_SCAN_SKIP.has(entry.name)) continue;
+ const entryRel = rel ? `${rel}/${entry.name}` : entry.name;
+ if (entry.isSymbolicLink()) symlinks.push(entryRel);
+ else if (entry.isDirectory()) stack.push(entryRel);
+ }
+ }
+ return symlinks.sort();
+}
+
// ---------------------------------------------------------------------------
// 2. Unsatisfied peer dependencies in the production lock tree
// ---------------------------------------------------------------------------