@jlongo78/agent-spaces 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.claude/settings.local.json +16 -0
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +19 -19
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/analytics/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.html +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.rsc +5 -5
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/admin/analytics.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/admin/analytics.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.html +1 -1
- package/.next/standalone/.next/server/app/admin/users.rsc +5 -5
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/admin/users.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/admin/users.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.html +1 -1
- package/.next/standalone/.next/server/app/analytics.rsc +5 -5
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/bulk/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
- package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/handshake/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/handshake/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/search/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/route.js +2 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/panes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/panes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sync/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tier/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/route.js +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login.html +1 -1
- package/.next/standalone/.next/server/app/login.rsc +4 -4
- package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/projects.html +1 -1
- package/.next/standalone/.next/server/app/m/projects.rsc +5 -5
- package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/m/projects.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/projects.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/projects.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/projects.segments/m/projects/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/projects.segments/m/projects.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/projects.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions.html +1 -1
- package/.next/standalone/.next/server/app/m/sessions.rsc +5 -5
- package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/m/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/sessions.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/sessions.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/sessions.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/settings.html +1 -1
- package/.next/standalone/.next/server/app/m/settings.rsc +5 -5
- package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/m/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/settings.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings.segments/m/settings/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings.segments/m/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/settings.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/terminal.html +1 -1
- package/.next/standalone/.next/server/app/m/terminal.rsc +5 -5
- package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/m/terminal.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/terminal.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/terminal.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/terminal.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.html +1 -1
- package/.next/standalone/.next/server/app/m.rsc +5 -5
- package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/m/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.html +1 -1
- package/.next/standalone/.next/server/app/network.rsc +5 -5
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/network.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.html +1 -1
- package/.next/standalone/.next/server/app/projects.rsc +5 -5
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.html +1 -1
- package/.next/standalone/.next/server/app/sessions.rsc +5 -5
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +5 -5
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.html +1 -1
- package/.next/standalone/.next/server/app/terminal.rsc +5 -5
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.html +1 -1
- package/.next/standalone/.next/server/app/workspaces.rsc +5 -5
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d038fdf._.js +106 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0e4c2d35._.js → [root-of-the-server]__12673e47._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__130dee4b._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__142c2f41._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2861e096._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2d3d8d52._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__45205e47._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__46b7da42._.js +98 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8765f2fc._.js → [root-of-the-server]__4cf845f6._.js} +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__57b966d5._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5a0020ba._.js +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5bd0f118._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5bf8f2c0._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__69eb20b1._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__74c48d65._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7d6610c4._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__84f3af14._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a38f7af1._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a6eb742d._.js +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4c83e91._.js +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b7c8a7dd._.js +98 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__cae0486f._.js → [root-of-the-server]__c1d7faa6._.js} +4 -4
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c546cf71._.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__a2ee9884._.js → [root-of-the-server]__c977bf2f._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d2f9be33._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5615808._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d877df12._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e9d6e526._.js +98 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f66ceeb8._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f893957c._.js +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fcd26315._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd505913._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__feff7b91._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1f12caba._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_43e7e611._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_network_page_tsx_27f035db._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_lib_telemetry_ts_d7f80cd0._.js +1 -1
- package/.next/standalone/.next/server/edge/chunks/_d73df637._.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{10c6424526b53431.js → 483bf086feba6531.js} +1 -1
- package/.next/standalone/.next/static/chunks/{f8d7a4a58f712ecd.js → 56ddb2d75f5beb1a.js} +1 -1
- package/.next/standalone/.next/static/chunks/7c4cfb3160fa8dd4.js +5 -0
- package/.next/standalone/.next/static/chunks/{3434c5b2c9958276.js → ae3a695e671c8d31.js} +1 -1
- package/.next/standalone/.next/static/chunks/e972ec0d23b19896.js +5 -0
- package/.next/standalone/.next/static/chunks/ff5fac1bd7b518dd.css +3 -0
- package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
- package/.next/standalone/node_modules/@img/{sharp-linux-x64 → sharp-win32-x64}/package.json +39 -46
- package/.next/standalone/package.json +89 -89
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.json +34 -34
- package/LICENSE +661 -661
- package/README.md +131 -131
- package/bin/fix-standalone-externals.js +79 -79
- package/bin/lib/auto-setup.js +110 -101
- package/bin/mdns-service.js +171 -171
- package/bin/postinstall.js +35 -35
- package/bin/setup-admin.js +195 -189
- package/bin/spaces-dev.js +208 -208
- package/bin/spaces-install.js +572 -483
- package/bin/spaces-service.js +881 -0
- package/bin/spaces-setup.js +253 -247
- package/bin/spaces.js +500 -466
- package/bin/terminal-server.js +1252 -1117
- package/package.json +89 -89
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18a58c5f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__41e589ee._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__464db440._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4ad64489._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__64f5810e._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__95b7f18e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a6ce192e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2b78951._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f84e3cf3._.js +0 -98
- package/.next/standalone/.next/static/chunks/302ce212c690bec4.js +0 -5
- package/.next/standalone/.next/static/chunks/67c7bf5024309fca.css +0 -3
- package/.next/standalone/.next/static/chunks/cb442c50eecb758d.js +0 -5
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
- package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
- /package/.next/standalone/.next/static/{nbYSIjUtkSwSvTgyR5p00 → 5J530rtIR_FsG4E9MLLpB}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{nbYSIjUtkSwSvTgyR5p00 → 5J530rtIR_FsG4E9MLLpB}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/.next/static/{nbYSIjUtkSwSvTgyR5p00 → 5J530rtIR_FsG4E9MLLpB}/_ssgManifest.js +0 -0
- /package/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-win32-x64}/versions.json +0 -0
package/bin/spaces.js
CHANGED
|
@@ -1,466 +1,500 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const http = require('http');
|
|
4
|
-
const { execFileSync, spawn } = require('child_process');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
const os = require('os');
|
|
7
|
-
const fs = require('fs');
|
|
8
|
-
// terminal-server is loaded lazily (after SPACES_TIER is set in process.env)
|
|
9
|
-
|
|
10
|
-
const SPACES_DIR = path.join(os.homedir(), '.spaces');
|
|
11
|
-
const CONFIG_PATH = path.join(SPACES_DIR, 'server.json');
|
|
12
|
-
const SESSION_SECRET_PATH = path.join(SPACES_DIR, 'session_secret');
|
|
13
|
-
const NEXT_INTERNAL_PORT = 3400;
|
|
14
|
-
const projectDir = path.join(__dirname, '..');
|
|
15
|
-
const MANAGED_PACKAGES = path.join(SPACES_DIR, 'packages');
|
|
16
|
-
const MANAGED_NODE_MODULES = path.join(MANAGED_PACKAGES, 'node_modules');
|
|
17
|
-
|
|
18
|
-
// ─── CLI arg parsing ──────────────────────────────────────
|
|
19
|
-
const args = process.argv.slice(2);
|
|
20
|
-
const cliFlags = {};
|
|
21
|
-
for (let i = 0; i < args.length; i++) {
|
|
22
|
-
if (args[i] === '--setup') { cliFlags.setup = true; }
|
|
23
|
-
else if (args[i] === '--port' && args[i + 1]) { cliFlags.port = parseInt(args[++i], 10); }
|
|
24
|
-
else if (args[i] === '--tier' && args[i + 1]) { cliFlags.tier = args[++i]; }
|
|
25
|
-
else if (args[i] === '--base-path' && args[i + 1]) { cliFlags.basePath = args[++i]; }
|
|
26
|
-
else if (args[i] === '--help' || args[i] === '-h') { cliFlags.help = true; }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (cliFlags.help) {
|
|
30
|
-
console.log(`
|
|
31
|
-
Spaces - Agent Workspace Manager
|
|
32
|
-
|
|
33
|
-
Usage:
|
|
34
|
-
spaces Start the server (auto-detects tier)
|
|
35
|
-
spaces stop Stop running server
|
|
36
|
-
spaces install <teams|pro> Install a tier package
|
|
37
|
-
spaces uninstall [teams|pro] Uninstall packages (all if none specified)
|
|
38
|
-
spaces verify Verify installed packages
|
|
39
|
-
spaces upgrade [teams|pro] Upgrade installed packages
|
|
40
|
-
spaces --setup Interactive first-time setup wizard
|
|
41
|
-
spaces --port 3457 Override port
|
|
42
|
-
spaces --tier team Override tier (community|team|federation)
|
|
43
|
-
spaces --base-path /spaces Set base path for reverse proxy
|
|
44
|
-
spaces
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (subcommand === '
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
||
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const http = require('http');
|
|
4
|
+
const { execFileSync, spawn } = require('child_process');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const os = require('os');
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
// terminal-server is loaded lazily (after SPACES_TIER is set in process.env)
|
|
9
|
+
|
|
10
|
+
const SPACES_DIR = path.join(os.homedir(), '.spaces');
|
|
11
|
+
const CONFIG_PATH = path.join(SPACES_DIR, 'server.json');
|
|
12
|
+
const SESSION_SECRET_PATH = path.join(SPACES_DIR, 'session_secret');
|
|
13
|
+
const NEXT_INTERNAL_PORT = 3400;
|
|
14
|
+
const projectDir = path.join(__dirname, '..');
|
|
15
|
+
const MANAGED_PACKAGES = path.join(SPACES_DIR, 'packages');
|
|
16
|
+
const MANAGED_NODE_MODULES = path.join(MANAGED_PACKAGES, 'node_modules');
|
|
17
|
+
|
|
18
|
+
// ─── CLI arg parsing ──────────────────────────────────────
|
|
19
|
+
const args = process.argv.slice(2);
|
|
20
|
+
const cliFlags = {};
|
|
21
|
+
for (let i = 0; i < args.length; i++) {
|
|
22
|
+
if (args[i] === '--setup') { cliFlags.setup = true; }
|
|
23
|
+
else if (args[i] === '--port' && args[i + 1]) { cliFlags.port = parseInt(args[++i], 10); }
|
|
24
|
+
else if (args[i] === '--tier' && args[i + 1]) { cliFlags.tier = args[++i]; }
|
|
25
|
+
else if (args[i] === '--base-path' && args[i + 1]) { cliFlags.basePath = args[++i]; }
|
|
26
|
+
else if (args[i] === '--help' || args[i] === '-h') { cliFlags.help = true; }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (cliFlags.help) {
|
|
30
|
+
console.log(`
|
|
31
|
+
Spaces - Agent Workspace Manager
|
|
32
|
+
|
|
33
|
+
Usage:
|
|
34
|
+
spaces Start the server (auto-detects tier)
|
|
35
|
+
spaces stop Stop running server
|
|
36
|
+
spaces install <teams|pro> Install a tier package
|
|
37
|
+
spaces uninstall [teams|pro] Uninstall packages (all if none specified)
|
|
38
|
+
spaces verify Verify installed packages
|
|
39
|
+
spaces upgrade [teams|pro] Upgrade installed packages
|
|
40
|
+
spaces --setup Interactive first-time setup wizard
|
|
41
|
+
spaces --port 3457 Override port
|
|
42
|
+
spaces --tier team Override tier (community|team|federation)
|
|
43
|
+
spaces --base-path /spaces Set base path for reverse proxy
|
|
44
|
+
spaces service install Install as OS service (systemd/launchd/Task Scheduler)
|
|
45
|
+
spaces service uninstall Remove OS service
|
|
46
|
+
spaces service start Start the service
|
|
47
|
+
spaces service stop Stop the service
|
|
48
|
+
spaces service status Show service status
|
|
49
|
+
spaces service logs Tail service logs
|
|
50
|
+
spaces --help Show this help
|
|
51
|
+
`);
|
|
52
|
+
process.exit(0);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ─── Stop command ─────────────────────────────────────────
|
|
56
|
+
const subcommand = args[0];
|
|
57
|
+
if (subcommand === 'stop') {
|
|
58
|
+
stopServer();
|
|
59
|
+
process.exit(0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ─── Route install/verify/upgrade to spaces-install.js ────
|
|
63
|
+
if (subcommand === 'install' || subcommand === 'uninstall' || subcommand === 'verify' || subcommand === 'upgrade') {
|
|
64
|
+
// Re-exec with spaces-install.js, passing through all args
|
|
65
|
+
const installScript = path.join(__dirname, 'spaces-install.js');
|
|
66
|
+
const { status } = require('child_process').spawnSync(
|
|
67
|
+
process.execPath, [installScript, ...args],
|
|
68
|
+
{ stdio: 'inherit', env: process.env }
|
|
69
|
+
);
|
|
70
|
+
process.exit(status || 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ─── Route service commands to spaces-service.js ─────
|
|
74
|
+
if (subcommand === 'service') {
|
|
75
|
+
const serviceScript = path.join(__dirname, 'spaces-service.js');
|
|
76
|
+
const { status } = require('child_process').spawnSync(
|
|
77
|
+
process.execPath, [serviceScript, ...args.slice(1)],
|
|
78
|
+
{ stdio: 'inherit', env: process.env }
|
|
79
|
+
);
|
|
80
|
+
process.exit(status || 0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ─── Setup wizard ─────────────────────────────────────────
|
|
84
|
+
if (cliFlags.setup) {
|
|
85
|
+
require('./spaces-setup');
|
|
86
|
+
// spaces-setup handles its own process.exit
|
|
87
|
+
} else if (subcommand && !subcommand.startsWith('-')) {
|
|
88
|
+
console.error(` Unknown command: ${subcommand}`);
|
|
89
|
+
console.error(` Run "spaces --help" for usage`);
|
|
90
|
+
process.exit(1);
|
|
91
|
+
} else {
|
|
92
|
+
startServer();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function startServer() {
|
|
96
|
+
// ─── Load saved config ────────────────────────────────────
|
|
97
|
+
let savedConfig = {};
|
|
98
|
+
if (fs.existsSync(CONFIG_PATH)) {
|
|
99
|
+
try { savedConfig = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); } catch {}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// ─── Resolve settings (CLI > env > config > defaults) ─────
|
|
103
|
+
const PORT = cliFlags.port
|
|
104
|
+
|| parseInt(process.env.SPACES_PORT || '', 10)
|
|
105
|
+
|| savedConfig.port
|
|
106
|
+
|| 3457;
|
|
107
|
+
|
|
108
|
+
const basePath = cliFlags.basePath
|
|
109
|
+
|| process.env.SPACES_BASE_PATH
|
|
110
|
+
|| savedConfig.basePath
|
|
111
|
+
|| '';
|
|
112
|
+
|
|
113
|
+
const allowedOrigins = process.env.SPACES_ALLOWED_ORIGINS
|
|
114
|
+
|| savedConfig.allowedOrigins
|
|
115
|
+
|| '';
|
|
116
|
+
|
|
117
|
+
// ─── Kill any existing server on this port ───────────────────
|
|
118
|
+
stopServer();
|
|
119
|
+
|
|
120
|
+
// ─── Resolve optional packages once ─────────────────────────
|
|
121
|
+
const proPath = resolveSpacesPro();
|
|
122
|
+
const teamsPath = resolveSpacesTeams();
|
|
123
|
+
|
|
124
|
+
// Tier resolution: CLI > env > config > auto-detect
|
|
125
|
+
let tier = cliFlags.tier
|
|
126
|
+
|| process.env.SPACES_TIER
|
|
127
|
+
|| savedConfig.tier
|
|
128
|
+
|| '';
|
|
129
|
+
|
|
130
|
+
// Auto-detect tier from package presence
|
|
131
|
+
if (!tier) {
|
|
132
|
+
if (proPath) tier = 'federation';
|
|
133
|
+
else if (teamsPath) tier = 'team';
|
|
134
|
+
else tier = 'community';
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
console.log('');
|
|
138
|
+
console.log(' Spaces - Agent Workspace Manager');
|
|
139
|
+
console.log(' =================================');
|
|
140
|
+
console.log('');
|
|
141
|
+
console.log(` Tier: ${tier}`);
|
|
142
|
+
|
|
143
|
+
// ─── Server tier prerequisites ────────────────────────────
|
|
144
|
+
const childEnv = { ...process.env };
|
|
145
|
+
|
|
146
|
+
if (tier !== 'community') {
|
|
147
|
+
// team/federation tiers require @spaces/teams (auth + collaboration)
|
|
148
|
+
if ((tier === 'team' || tier === 'federation') && !teamsPath) {
|
|
149
|
+
console.error(' Error: @spaces/teams is required for team/federation tiers.');
|
|
150
|
+
console.error(' Install it: spaces install teams');
|
|
151
|
+
process.exit(1);
|
|
152
|
+
}
|
|
153
|
+
// federation tier requires @spaces/pro (network)
|
|
154
|
+
if (tier === 'federation' && !proPath) {
|
|
155
|
+
console.error(' Error: @spaces/pro is required for the federation tier.');
|
|
156
|
+
console.error(' Install it: spaces install pro');
|
|
157
|
+
process.exit(1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Check for session secret
|
|
161
|
+
let sessionSecret = process.env.SPACES_SESSION_SECRET || '';
|
|
162
|
+
if (!sessionSecret && fs.existsSync(SESSION_SECRET_PATH)) {
|
|
163
|
+
sessionSecret = fs.readFileSync(SESSION_SECRET_PATH, 'utf-8').trim();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Check for admin DB — auto-setup if missing
|
|
167
|
+
const adminDbPath = path.join(SPACES_DIR, 'admin.db');
|
|
168
|
+
if (!fs.existsSync(adminDbPath) || !sessionSecret) {
|
|
169
|
+
const { autoSetup } = require('./lib/auto-setup');
|
|
170
|
+
const result = autoSetup({ SPACES_DIR, SESSION_SECRET_PATH, ADMIN_DB_PATH: adminDbPath, CONFIG_PATH, tier, port: PORT, basePath });
|
|
171
|
+
sessionSecret = result.sessionSecret;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
childEnv.SPACES_SESSION_SECRET = sessionSecret;
|
|
175
|
+
process.env.SPACES_SESSION_SECRET = sessionSecret;
|
|
176
|
+
console.log(` Admin DB: ${adminDbPath}`);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Set tier in both child env and own process env (terminal-server reads it)
|
|
180
|
+
childEnv.SPACES_TIER = tier;
|
|
181
|
+
process.env.SPACES_TIER = tier;
|
|
182
|
+
if (basePath) {
|
|
183
|
+
childEnv.SPACES_BASE_PATH = basePath;
|
|
184
|
+
console.log(` Base path: ${basePath}`);
|
|
185
|
+
}
|
|
186
|
+
if (allowedOrigins) {
|
|
187
|
+
childEnv.SPACES_ALLOWED_ORIGINS = allowedOrigins;
|
|
188
|
+
process.env.SPACES_ALLOWED_ORIGINS = allowedOrigins;
|
|
189
|
+
console.log(` Allowed origins: ${allowedOrigins}`);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// ─── Resolve NODE_PATH for @spaces/pro and @spaces/teams ──
|
|
193
|
+
// Update both childEnv (for the Next.js child process) and process.env
|
|
194
|
+
// (for terminal-server.js which runs in this same parent process).
|
|
195
|
+
// Include:
|
|
196
|
+
// - Managed packages node_modules (~/.spaces/packages/node_modules)
|
|
197
|
+
// - Each managed package's own node_modules (for its bundled deps)
|
|
198
|
+
// - The host app's own node_modules (fallback for peer deps)
|
|
199
|
+
const appNodeModules = path.join(projectDir, 'node_modules');
|
|
200
|
+
const nodePaths = [MANAGED_NODE_MODULES, appNodeModules];
|
|
201
|
+
// Add each resolved package's own node_modules so its bundled deps are found
|
|
202
|
+
for (const pkgPath of [proPath, teamsPath]) {
|
|
203
|
+
if (pkgPath) {
|
|
204
|
+
// pkgPath is the package root (symlink target or direct path)
|
|
205
|
+
const realPath = fs.realpathSync(pkgPath);
|
|
206
|
+
const pkgNodeModules = path.join(realPath, 'node_modules');
|
|
207
|
+
if (fs.existsSync(pkgNodeModules) && !nodePaths.includes(pkgNodeModules)) {
|
|
208
|
+
nodePaths.push(pkgNodeModules);
|
|
209
|
+
}
|
|
210
|
+
// Also add the parent scope for @spaces/* resolution
|
|
211
|
+
const parentModules = path.dirname(path.dirname(pkgPath));
|
|
212
|
+
if (!nodePaths.includes(parentModules)) {
|
|
213
|
+
nodePaths.push(parentModules);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
for (const dir of nodePaths) {
|
|
218
|
+
for (const target of [childEnv, process.env]) {
|
|
219
|
+
const existing = target.NODE_PATH || '';
|
|
220
|
+
if (!existing.includes(dir)) {
|
|
221
|
+
target.NODE_PATH = existing
|
|
222
|
+
? `${dir}${path.delimiter}${existing}`
|
|
223
|
+
: dir;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
// Re-init module paths so require() in this process picks up the new NODE_PATH
|
|
228
|
+
require('module').Module._initPaths();
|
|
229
|
+
|
|
230
|
+
// Verify collaboration pipeline works end-to-end at startup
|
|
231
|
+
if (tier === 'team' || tier === 'federation') {
|
|
232
|
+
try {
|
|
233
|
+
const teams = require('@spaces/teams');
|
|
234
|
+
console.log(' Collaboration: @spaces/teams loaded OK');
|
|
235
|
+
// Smoke-test that peer deps resolve from this process
|
|
236
|
+
require('better-sqlite3');
|
|
237
|
+
} catch (e) {
|
|
238
|
+
console.error(` Warning: Collaboration may not work — ${e.message}`);
|
|
239
|
+
console.error(' Check that NODE_PATH includes the host app node_modules.');
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
console.log('');
|
|
244
|
+
|
|
245
|
+
// Check for ~/.claude/ directory
|
|
246
|
+
const claudeDir = path.join(os.homedir(), '.claude');
|
|
247
|
+
if (!fs.existsSync(claudeDir)) {
|
|
248
|
+
console.log(' Warning: ~/.claude/ not found. Have you used Claude Code yet?');
|
|
249
|
+
console.log('');
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// ─── Detect build type ────────────────────────────────────
|
|
253
|
+
const standaloneServer = path.join(projectDir, '.next', 'standalone', 'server.js');
|
|
254
|
+
const fullBuildDir = path.join(projectDir, '.next', 'BUILD_ID');
|
|
255
|
+
const isStandalone = fs.existsSync(standaloneServer);
|
|
256
|
+
const isFullBuild = fs.existsSync(fullBuildDir);
|
|
257
|
+
|
|
258
|
+
if (!isStandalone && !isFullBuild) {
|
|
259
|
+
console.error(' Error: No build found.');
|
|
260
|
+
console.error(' Run "npm run build" first, or install via "npm install -g @jlongo78/agent-spaces".');
|
|
261
|
+
process.exit(1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// ─── Spawn Next.js ────────────────────────────────────────
|
|
265
|
+
let next;
|
|
266
|
+
if (isStandalone) {
|
|
267
|
+
const parentNodeModules = path.join(projectDir, 'node_modules');
|
|
268
|
+
const existingNodePath = childEnv.NODE_PATH || '';
|
|
269
|
+
childEnv.NODE_PATH = existingNodePath
|
|
270
|
+
? `${parentNodeModules}${path.delimiter}${existingNodePath}`
|
|
271
|
+
: parentNodeModules;
|
|
272
|
+
|
|
273
|
+
next = spawn(process.execPath, [standaloneServer], {
|
|
274
|
+
cwd: path.dirname(standaloneServer),
|
|
275
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
276
|
+
env: {
|
|
277
|
+
...childEnv,
|
|
278
|
+
PORT: String(NEXT_INTERNAL_PORT),
|
|
279
|
+
HOSTNAME: '0.0.0.0',
|
|
280
|
+
NODE_ENV: 'production',
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
} else {
|
|
284
|
+
next = spawn('npx', ['next', 'start', '--port', String(NEXT_INTERNAL_PORT)], {
|
|
285
|
+
cwd: projectDir,
|
|
286
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
287
|
+
env: {
|
|
288
|
+
...childEnv,
|
|
289
|
+
PORT: String(NEXT_INTERNAL_PORT),
|
|
290
|
+
HOSTNAME: '0.0.0.0',
|
|
291
|
+
NODE_ENV: 'production',
|
|
292
|
+
},
|
|
293
|
+
shell: true,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
let nextReady = false;
|
|
298
|
+
|
|
299
|
+
next.stdout.on('data', (data) => {
|
|
300
|
+
const msg = data.toString();
|
|
301
|
+
process.stdout.write(msg);
|
|
302
|
+
if (!nextReady && (msg.includes('Ready') || msg.includes('started server') || msg.includes('Listening') || msg.includes('localhost'))) {
|
|
303
|
+
nextReady = true;
|
|
304
|
+
console.log(`\n Ready at http://localhost:${PORT}\n`);
|
|
305
|
+
|
|
306
|
+
const url = `http://localhost:${PORT}`;
|
|
307
|
+
const isService = process.env.SPACES_SERVICE === '1';
|
|
308
|
+
if (!isService) {
|
|
309
|
+
try {
|
|
310
|
+
if (process.platform === 'win32') {
|
|
311
|
+
execFileSync('cmd', ['/c', 'start', url], { stdio: 'ignore' });
|
|
312
|
+
} else if (process.platform === 'darwin') {
|
|
313
|
+
execFileSync('open', [url], { stdio: 'ignore' });
|
|
314
|
+
} else {
|
|
315
|
+
execFileSync('xdg-open', [url], { stdio: 'ignore' });
|
|
316
|
+
}
|
|
317
|
+
} catch {
|
|
318
|
+
console.log(` Open ${url} in your browser`);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
next.stderr.on('data', (data) => {
|
|
325
|
+
const msg = data.toString();
|
|
326
|
+
if (!msg.includes('Warning')) {
|
|
327
|
+
process.stderr.write(data);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
next.on('exit', (code) => {
|
|
332
|
+
if (code !== 0 && code !== null) {
|
|
333
|
+
console.error(` [spaces] Next.js exited with code ${code}`);
|
|
334
|
+
}
|
|
335
|
+
cleanup();
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
// ─── HTTP proxy server ────────────────────────────────────
|
|
339
|
+
const server = http.createServer((req, res) => {
|
|
340
|
+
// WebSocket paths are handled by the 'upgrade' event, but a plain
|
|
341
|
+
// HTTP request to /ws (e.g. health check) should not be proxied to
|
|
342
|
+
// Next.js which would 308-redirect it due to trailingSlash.
|
|
343
|
+
const urlPath = (req.url || '').split('?')[0];
|
|
344
|
+
if (urlPath === '/ws' || urlPath.endsWith('/ws') || urlPath.endsWith('/ws/')) {
|
|
345
|
+
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
346
|
+
res.end('WebSocket endpoint');
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
const proxyReq = http.request(
|
|
351
|
+
{
|
|
352
|
+
hostname: '127.0.0.1',
|
|
353
|
+
port: NEXT_INTERNAL_PORT,
|
|
354
|
+
path: req.url,
|
|
355
|
+
method: req.method,
|
|
356
|
+
headers: req.headers,
|
|
357
|
+
},
|
|
358
|
+
(proxyRes) => {
|
|
359
|
+
res.writeHead(proxyRes.statusCode, proxyRes.headers);
|
|
360
|
+
proxyRes.pipe(res);
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
proxyReq.on('error', () => {
|
|
364
|
+
if (!res.headersSent) {
|
|
365
|
+
res.writeHead(502);
|
|
366
|
+
res.end('Server not ready yet. Refresh in a moment.');
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
req.pipe(proxyReq);
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
const { createTerminalServer } = require('./terminal-server');
|
|
373
|
+
createTerminalServer(server);
|
|
374
|
+
|
|
375
|
+
server.listen(PORT, () => {
|
|
376
|
+
console.log(` Starting server on http://localhost:${PORT}`);
|
|
377
|
+
console.log('');
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
function cleanup() {
|
|
381
|
+
next.kill();
|
|
382
|
+
server.close();
|
|
383
|
+
process.exit(0);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
process.on('SIGINT', cleanup);
|
|
387
|
+
process.on('SIGTERM', cleanup);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// ─── Stop running server ─────────────────────────────────────
|
|
391
|
+
function findPidsOnPort(port) {
|
|
392
|
+
const pids = new Set();
|
|
393
|
+
if (process.platform === 'win32') {
|
|
394
|
+
try {
|
|
395
|
+
const output = execFileSync('netstat', ['-ano'], { encoding: 'utf-8' });
|
|
396
|
+
for (const line of output.split(String.fromCharCode(10))) {
|
|
397
|
+
if (line.includes(':' + port + ' ') && line.includes('LISTENING')) {
|
|
398
|
+
const parts = line.trim().split(/\s+/);
|
|
399
|
+
const pid = parseInt(parts[parts.length - 1], 10);
|
|
400
|
+
if (pid > 0) pids.add(pid);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
} catch {}
|
|
404
|
+
} else {
|
|
405
|
+
try {
|
|
406
|
+
const output = execFileSync('lsof', ['-ti', `tcp:${port}`], { encoding: 'utf-8' }).trim();
|
|
407
|
+
for (const p of output.split('\n')) { if (p.trim()) pids.add(parseInt(p.trim(), 10)); }
|
|
408
|
+
} catch {}
|
|
409
|
+
try {
|
|
410
|
+
const output = execFileSync('fuser', [`${port}/tcp`], { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim();
|
|
411
|
+
for (const p of output.split(/\s+/)) { if (p.trim()) pids.add(parseInt(p.trim(), 10)); }
|
|
412
|
+
} catch {}
|
|
413
|
+
}
|
|
414
|
+
return [...pids].filter(p => !isNaN(p) && p > 0);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
function stopServer() {
|
|
418
|
+
let savedConfig = {};
|
|
419
|
+
if (fs.existsSync(CONFIG_PATH)) {
|
|
420
|
+
try { savedConfig = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); } catch {}
|
|
421
|
+
}
|
|
422
|
+
const port = parseInt(process.env.SPACES_PORT || '', 10) || savedConfig.port || 3457;
|
|
423
|
+
const ports = [port, NEXT_INTERNAL_PORT];
|
|
424
|
+
let killed = 0;
|
|
425
|
+
|
|
426
|
+
for (const p of ports) {
|
|
427
|
+
for (const pid of findPidsOnPort(p)) {
|
|
428
|
+
try {
|
|
429
|
+
process.kill(pid, 'SIGTERM');
|
|
430
|
+
killed++;
|
|
431
|
+
} catch {}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (killed > 0) {
|
|
436
|
+
console.log(` Stopped ${killed} process(es) on port ${port}`);
|
|
437
|
+
// Wait for ports to be released, escalate to SIGKILL if needed
|
|
438
|
+
const deadline = Date.now() + 2000;
|
|
439
|
+
let escalated = false;
|
|
440
|
+
while (Date.now() < deadline) {
|
|
441
|
+
const remaining = ports.flatMap(p => findPidsOnPort(p));
|
|
442
|
+
if (remaining.length === 0) break;
|
|
443
|
+
if (!escalated && Date.now() > deadline - 1000) {
|
|
444
|
+
for (const pid of remaining) {
|
|
445
|
+
try { process.kill(pid, 'SIGKILL'); } catch {}
|
|
446
|
+
}
|
|
447
|
+
escalated = true;
|
|
448
|
+
}
|
|
449
|
+
if (process.platform === 'win32') { require('child_process').spawnSync('powershell', ['-Command', 'Start-Sleep -Milliseconds 200']); } else { require('child_process').spawnSync('sleep', ['0.2']); }
|
|
450
|
+
}
|
|
451
|
+
} else {
|
|
452
|
+
console.log(` No running server found on port ${port}`);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// ─── @spaces/pro resolution ──────────────────────────────────
|
|
457
|
+
function resolveSpacesPro() {
|
|
458
|
+
// 1. Managed install (~/.spaces/packages/)
|
|
459
|
+
const managed = path.join(MANAGED_NODE_MODULES, '@spaces', 'pro');
|
|
460
|
+
if (fs.existsSync(path.join(managed, 'dist', 'index.js'))) return managed;
|
|
461
|
+
|
|
462
|
+
// 2. Local node_modules (npm link / optionalDep)
|
|
463
|
+
try {
|
|
464
|
+
return require.resolve('@spaces/pro');
|
|
465
|
+
} catch {}
|
|
466
|
+
|
|
467
|
+
// 3. Global npm prefix (legacy)
|
|
468
|
+
try {
|
|
469
|
+
const globalPrefix = execFileSync('npm', ['prefix', '-g'], { encoding: 'utf-8' }).trim();
|
|
470
|
+
const globalProPath = path.join(globalPrefix, 'lib', 'node_modules', '@spaces', 'pro');
|
|
471
|
+
if (fs.existsSync(globalProPath)) return globalProPath;
|
|
472
|
+
const altPath = path.join(globalPrefix, 'node_modules', '@spaces', 'pro');
|
|
473
|
+
if (fs.existsSync(altPath)) return altPath;
|
|
474
|
+
} catch {}
|
|
475
|
+
|
|
476
|
+
return null;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// ─── @spaces/teams resolution ────────────────────────────────
|
|
480
|
+
function resolveSpacesTeams() {
|
|
481
|
+
// 1. Managed install (~/.spaces/packages/)
|
|
482
|
+
const managed = path.join(MANAGED_NODE_MODULES, '@spaces', 'teams');
|
|
483
|
+
if (fs.existsSync(path.join(managed, 'dist', 'index.js'))) return managed;
|
|
484
|
+
|
|
485
|
+
// 2. Local node_modules (npm link / optionalDep)
|
|
486
|
+
try {
|
|
487
|
+
return require.resolve('@spaces/teams');
|
|
488
|
+
} catch {}
|
|
489
|
+
|
|
490
|
+
// 3. Global npm prefix (legacy)
|
|
491
|
+
try {
|
|
492
|
+
const globalPrefix = execFileSync('npm', ['prefix', '-g'], { encoding: 'utf-8' }).trim();
|
|
493
|
+
const globalTeamsPath = path.join(globalPrefix, 'lib', 'node_modules', '@spaces', 'teams');
|
|
494
|
+
if (fs.existsSync(globalTeamsPath)) return globalTeamsPath;
|
|
495
|
+
const altPath = path.join(globalPrefix, 'node_modules', '@spaces', 'teams');
|
|
496
|
+
if (fs.existsSync(altPath)) return altPath;
|
|
497
|
+
} catch {}
|
|
498
|
+
|
|
499
|
+
return null;
|
|
500
|
+
}
|