@jlongo78/agent-spaces 0.3.12 → 0.5.0
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 +8 -0
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +5 -0
- package/.next/standalone/.next/build-manifest.json +4 -4
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +30 -25
- package/.next/standalone/.next/routes-manifest.json +40 -0
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js.nft.json +1 -1
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/analytics/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/analytics/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/network/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/network/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/page.js +3 -3
- package/.next/standalone/.next/server/app/(desktop)/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/projects/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/settings/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js.nft.json +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/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +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 +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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/admin/analytics/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/analytics/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/analytics/overview/route.js +1 -1
- package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/bulk/route.js +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 +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 +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 +1 -1
- package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/discovered/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/discovered/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/health/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/health/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/identity/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/identity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/check/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/check/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/search/route.js +1 -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 +1 -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 +1 -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 +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/terminal/token/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/terminal/token/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js +1 -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 +1 -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 +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 +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 +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 +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 +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 +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 +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 +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/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/tier/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/tier/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/tier/route.js +7 -0
- package/.next/standalone/.next/server/app/api/tier/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/tier/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js +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 +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/login/page.js +1 -1
- package/.next/standalone/.next/server/app/login/page.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 +5 -5
- package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +5 -5
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/page.js +1 -1
- package/.next/standalone/.next/server/app/m/page.js.nft.json +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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/m/projects/page.js.nft.json +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 +6 -6
- package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +6 -6
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/sessions/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/[id]/page.js.nft.json +1 -1
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/page.js.nft.json +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 +6 -6
- package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +6 -6
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/m/settings/page.js.nft.json +1 -1
- 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 +6 -6
- package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +6 -6
- 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/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/terminal/page.js +1 -1
- package/.next/standalone/.next/server/app/m/terminal/page.js.nft.json +1 -1
- 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 +6 -6
- package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +6 -6
- 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 +6 -6
- package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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/app-paths-manifest.json +5 -0
- package/.next/standalone/.next/server/chunks/[externals]_chokidar_a0cd9157._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__086be15a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0955695e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fac388d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18a58c5f._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__190b05d8._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1a211143._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__20353b76._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2861e096._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a7a798c._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2b6758fc._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2e9d1d5a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__31f028ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__34c34116._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3aa57139._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3ce30e4e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__41ae8be6._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__41e589ee._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__43112c34._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__464db440._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__466c7e18._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__47a63195._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4ad64489._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5bbc73ff._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__60689e2b._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__67c4abf3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6b94cc47._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6c6cfe82._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__776b2fd5._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7901e2ab._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__83b9bcf3._.js +11 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__89124c96._.js +48 -37
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8c2eee30._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8ffcf827._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__95b7f18e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e343d64._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a2ee9884._.js +13 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a651ede9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a6ce192e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4b692df._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4edb4d6._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b71497ab._.js +48 -37
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bc97ddc7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bef2ed87._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c525457e._.js +19 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c546cf71._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ccc27199._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ce5edd98._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d877df12._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__dd2e81be._.js +11 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__de96c005._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__df6bc9e9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2b78951._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e742ef33._.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_tier_route_actions_6186023b.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_context_route_actions_e9cb4bed.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_messages_route_actions_0cf1d576.js +3 -0
- package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_context_[key]_route_actions_8e11e764.js +3 -0
- package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_messages_[msgId]_route_actions_008a0317.js +3 -0
- package/.next/standalone/.next/server/chunks/src_lib_events_sse_ts_1ad73980._.js +6 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ea64930e._.js → [root-of-the-server]__2b4e2acc._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__36a11bc9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__63c35e0f._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__650a172d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ba1024f6._.js → [root-of-the-server]__67234962._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__72acd514._.js → [root-of-the-server]__c73bef9a._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e921fdfc._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/{_548abc09._.js → _0946fdc3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1f12caba._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_2230ad2d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_3b54193d._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_43e7e611._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_5ac43c5d._.js +1 -3
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__3611990a._.js → _cd0986af._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_cd50a174._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_7e741697._.js → _de57b857._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_ef42f47a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_f67f58f1._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_dd004864._.js → _fbc5e000._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_861e98fe._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_m_terminal_page_tsx_553a0130._.js +2 -2
- package/.next/standalone/.next/server/edge/chunks/{[root-of-the-server]__6154bdc0._.js → [root-of-the-server]__32a0045c._.js} +3 -5
- package/.next/standalone/.next/server/edge/chunks/_d73df637._.js +3 -0
- package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_a4434a38.js +6 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware-manifest.json +8 -8
- 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/{f58f62604604c529.js → 10c6424526b53431.js} +2 -2
- package/.next/standalone/.next/static/chunks/{0b733ac17fcb2bef.js → 27649ec994a696fb.js} +1 -1
- package/.next/standalone/.next/static/chunks/302ce212c690bec4.js +5 -0
- package/.next/standalone/.next/static/chunks/{4bd6943fa4082aa9.js → 3165c61fb2e4045d.js} +1 -1
- package/.next/standalone/.next/static/chunks/4e792c3078e37704.js +5 -0
- package/.next/standalone/.next/static/chunks/51dacec57c9714c0.js +1 -0
- package/.next/standalone/.next/static/chunks/53782d1e41fd7f82.js +1 -0
- package/.next/standalone/.next/static/chunks/58d78765e5140dcb.js +1 -0
- package/.next/standalone/.next/static/chunks/65afda485a466977.js +1 -0
- package/.next/standalone/.next/static/chunks/cb442c50eecb758d.js +5 -0
- package/.next/standalone/.next/static/chunks/d0c839c82cf232b8.js +1 -0
- package/.next/standalone/.next/static/chunks/e6134a48180c8a36.js +1 -0
- package/.next/standalone/.next/static/chunks/{7de9141b1af425c3.js → e7772d64463868eb.js} +1 -1
- package/.next/standalone/.next/static/chunks/{e94f6965199a47e7.js → eb780226f5bd3892.js} +1 -1
- package/.next/standalone/.next/static/chunks/ff5fac1bd7b518dd.css +3 -0
- package/.next/standalone/.next/static/chunks/{turbopack-947de56768b27172.js → turbopack-ea18b8255590c757.js} +1 -1
- 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/node_modules/chokidar/LICENSE +21 -0
- package/.next/standalone/node_modules/chokidar/README.md +305 -0
- package/.next/standalone/node_modules/chokidar/handler.js +632 -0
- package/.next/standalone/node_modules/chokidar/index.js +822 -0
- package/.next/standalone/node_modules/chokidar/package.json +63 -0
- package/.next/standalone/node_modules/readdirp/LICENSE +21 -0
- package/.next/standalone/node_modules/readdirp/README.md +120 -0
- package/.next/standalone/node_modules/readdirp/index.js +272 -0
- package/.next/standalone/node_modules/readdirp/package.json +66 -0
- package/.next/standalone/package.json +89 -91
- 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 +101 -0
- package/bin/mdns-service.js +171 -171
- package/bin/postinstall.js +35 -35
- package/bin/setup-admin.js +189 -189
- package/bin/spaces-dev.js +208 -108
- package/bin/spaces-install.js +425 -0
- package/bin/spaces-setup.js +242 -0
- package/bin/spaces.js +466 -155
- package/bin/terminal-server.js +1117 -990
- package/package.json +89 -91
- package/.next/standalone/.next/server/chunks/[externals]_node:path_d28a9bfe._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01c98454._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18b8f7d9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__193cb667._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__25b4d5ca._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__280398d8._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a4c2db6._.js +0 -13
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3fd6439e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__40c21d75._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4375a280._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4950da9c._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a77d855._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d551a41._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5420fbcd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__586418c6._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c2f4a8e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5eaa589f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5f4dc1dd._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5ff6b7d9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__65509457._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__65620687._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__76e7a7b9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7fae7bd7._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__821ffcfb._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__83676993._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__86e02dd1._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8a7fae80._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8af8821a._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__93e1af64._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__94f437bd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e9f597a._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__aae49c2b._.js +0 -15
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ab25b881._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__aef285c3._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b52523c7._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b607a85c._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b950ac1e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c6355fd6._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d1771755._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d55d3167._.js +0 -12
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9533783._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9540965._.js +0 -21
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ddbb7b16._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e4989332._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e7a6a584._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ed0f1148._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f1436778._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fe65bfb1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__17ba2e09._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__6bd17d85._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e604f3d._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a923e475._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__d23f4926._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e3bf6054._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__f08a4c64._.js +0 -3
- package/.next/standalone/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_78fa9d6a.js +0 -3
- package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_03b33eff.js +0 -6
- package/.next/standalone/.next/static/chunks/06e3af139a18e326.js +0 -5
- package/.next/standalone/.next/static/chunks/13c233fe06728b88.js +0 -1
- package/.next/standalone/.next/static/chunks/1f4937830aceaae2.js +0 -1
- package/.next/standalone/.next/static/chunks/6b8fb2027281ae5d.js +0 -3
- package/.next/standalone/.next/static/chunks/76698b8c3d5cae75.js +0 -1
- package/.next/standalone/.next/static/chunks/7fbc5bdede00e3c9.js +0 -1
- package/.next/standalone/.next/static/chunks/acbcf40fb5a2ca5e.js +0 -1
- package/.next/standalone/.next/static/chunks/b873b989ec82be01.css +0 -3
- package/.next/standalone/.next/static/chunks/db03df936139672b.js +0 -1
- package/.next/standalone/.next/static/chunks/e7ac38524a30e234.js +0 -5
- package/.next/standalone/.next/static/chunks/f8cf8e5a643bd23f.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/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_ssgManifest.js +0 -0
- /package/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-win32-x64}/versions.json +0 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const { execFileSync } = require('child_process');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const os = require('os');
|
|
8
|
+
const fs = require('fs');
|
|
9
|
+
|
|
10
|
+
const PACKAGES_DIR = path.join(os.homedir(), '.spaces', 'packages');
|
|
11
|
+
const NODE_MODULES_DIR = path.join(PACKAGES_DIR, 'node_modules', '@spaces');
|
|
12
|
+
|
|
13
|
+
// ─── Package definitions ─────────────────────────────────────
|
|
14
|
+
const PACKAGES = {
|
|
15
|
+
teams: {
|
|
16
|
+
name: '@spaces/teams',
|
|
17
|
+
dir: path.join(PACKAGES_DIR, 'teams'),
|
|
18
|
+
repo: 'jlongo78/spaces-teams',
|
|
19
|
+
private: false,
|
|
20
|
+
verify: (dir) => fs.existsSync(path.join(dir, 'dist', 'index.js')),
|
|
21
|
+
verifyLabel: 'dist/index.js',
|
|
22
|
+
},
|
|
23
|
+
pro: {
|
|
24
|
+
name: '@spaces/pro',
|
|
25
|
+
dir: path.join(PACKAGES_DIR, 'pro'),
|
|
26
|
+
repo: 'jlongo78/spaces-pro',
|
|
27
|
+
private: true,
|
|
28
|
+
verify: (dir) => fs.existsSync(path.join(dir, 'dist', 'index.js')),
|
|
29
|
+
verifyLabel: 'dist/index.js',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// ─── Helpers ──────────────────────────────────────────────────
|
|
34
|
+
function log(msg) { console.log(` ${msg}`); }
|
|
35
|
+
function logOk(msg) { console.log(` ✓ ${msg}`); }
|
|
36
|
+
function logErr(msg) { console.error(` ✗ ${msg}`); }
|
|
37
|
+
function logWarn(msg) { console.log(` ! ${msg}`); }
|
|
38
|
+
|
|
39
|
+
function run(cmd, args, opts = {}) {
|
|
40
|
+
return execFileSync(cmd, args, {
|
|
41
|
+
encoding: 'utf-8',
|
|
42
|
+
stdio: opts.quiet ? ['pipe', 'pipe', 'pipe'] : 'inherit',
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Clone a repo, trying SSH first then HTTPS (with optional PAT).
|
|
49
|
+
*/
|
|
50
|
+
function gitClone(repo, dest, isPrivate) {
|
|
51
|
+
const sshUrl = `git@github.com:${repo}.git`;
|
|
52
|
+
const httpsUrl = `https://github.com/${repo}.git`;
|
|
53
|
+
|
|
54
|
+
// Try SSH first
|
|
55
|
+
try {
|
|
56
|
+
log(`Cloning ${repo} (SSH)...`);
|
|
57
|
+
run('git', ['clone', '--depth', '1', sshUrl, dest]);
|
|
58
|
+
return;
|
|
59
|
+
} catch {
|
|
60
|
+
// SSH failed, try HTTPS
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// HTTPS — check for PAT if private
|
|
64
|
+
if (isPrivate) {
|
|
65
|
+
const pat = process.env.GH_PAT || process.env.GITHUB_TOKEN || '';
|
|
66
|
+
if (pat) {
|
|
67
|
+
log(`Cloning ${repo} (HTTPS + token)...`);
|
|
68
|
+
const authedUrl = `https://${pat}@github.com/${repo}.git`;
|
|
69
|
+
run('git', ['clone', '--depth', '1', authedUrl, dest]);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
log(`Cloning ${repo} (HTTPS)...`);
|
|
75
|
+
run('git', ['clone', '--depth', '1', httpsUrl, dest]);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Pull latest changes in a repo directory.
|
|
80
|
+
*/
|
|
81
|
+
function gitPull(dir) {
|
|
82
|
+
log('Pulling latest...');
|
|
83
|
+
run('git', ['pull', '--ff-only'], { cwd: dir });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Create the symlink from node_modules/@spaces/<name> -> ../../<name>
|
|
88
|
+
*/
|
|
89
|
+
function createSymlink(pkgKey) {
|
|
90
|
+
const linkPath = path.join(NODE_MODULES_DIR, pkgKey);
|
|
91
|
+
const targetPath = path.join('..', '..', pkgKey); // relative symlink
|
|
92
|
+
|
|
93
|
+
fs.mkdirSync(NODE_MODULES_DIR, { recursive: true });
|
|
94
|
+
|
|
95
|
+
// Remove existing link/dir
|
|
96
|
+
try {
|
|
97
|
+
const stat = fs.lstatSync(linkPath);
|
|
98
|
+
if (stat.isSymbolicLink() || stat.isFile()) {
|
|
99
|
+
fs.unlinkSync(linkPath);
|
|
100
|
+
} else if (stat.isDirectory()) {
|
|
101
|
+
fs.rmSync(linkPath, { recursive: true });
|
|
102
|
+
}
|
|
103
|
+
} catch {}
|
|
104
|
+
|
|
105
|
+
fs.symlinkSync(targetPath, linkPath, 'dir');
|
|
106
|
+
logOk(`Symlink: @spaces/${pkgKey} -> packages/${pkgKey}`);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a native module loads correctly from a package directory.
|
|
111
|
+
*/
|
|
112
|
+
function checkNativeModule(moduleName, searchDir) {
|
|
113
|
+
try {
|
|
114
|
+
const nodePath = path.join(searchDir, 'node_modules');
|
|
115
|
+
const result = run(process.execPath, [
|
|
116
|
+
'-e',
|
|
117
|
+
`try { require('${moduleName}'); console.log('ok'); } catch(e) { console.log(e.message); }`,
|
|
118
|
+
], {
|
|
119
|
+
quiet: true,
|
|
120
|
+
cwd: searchDir,
|
|
121
|
+
env: { ...process.env, NODE_PATH: nodePath },
|
|
122
|
+
});
|
|
123
|
+
return result.trim() === 'ok';
|
|
124
|
+
} catch {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ─── Install command ──────────────────────────────────────────
|
|
130
|
+
function installPackage(pkgKey) {
|
|
131
|
+
const pkg = PACKAGES[pkgKey];
|
|
132
|
+
if (!pkg) {
|
|
133
|
+
logErr(`Unknown package: ${pkgKey}`);
|
|
134
|
+
log(`Available: ${Object.keys(PACKAGES).join(', ')}`);
|
|
135
|
+
process.exit(1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
console.log(`\n Installing ${pkg.name}...\n`);
|
|
139
|
+
|
|
140
|
+
// 1. Clone or pull
|
|
141
|
+
if (fs.existsSync(path.join(pkg.dir, '.git'))) {
|
|
142
|
+
gitPull(pkg.dir);
|
|
143
|
+
} else {
|
|
144
|
+
fs.mkdirSync(PACKAGES_DIR, { recursive: true });
|
|
145
|
+
gitClone(pkg.repo, pkg.dir, pkg.private);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 2. Install dependencies
|
|
149
|
+
// Both teams and pro need TypeScript build
|
|
150
|
+
log('Installing dependencies...');
|
|
151
|
+
run('npm', ['install'], { cwd: pkg.dir });
|
|
152
|
+
|
|
153
|
+
log('Building TypeScript...');
|
|
154
|
+
run('npm', ['run', 'build'], { cwd: pkg.dir });
|
|
155
|
+
|
|
156
|
+
log('Pruning dev dependencies...');
|
|
157
|
+
run('npm', ['prune', '--omit=dev'], { cwd: pkg.dir });
|
|
158
|
+
|
|
159
|
+
// 5. Create symlink
|
|
160
|
+
createSymlink(pkgKey);
|
|
161
|
+
|
|
162
|
+
// 6. Verify
|
|
163
|
+
if (pkg.verify(pkg.dir)) {
|
|
164
|
+
logOk(`${pkg.name} installed successfully`);
|
|
165
|
+
} else {
|
|
166
|
+
logErr(`${pkg.name} installed but ${pkg.verifyLabel} not found`);
|
|
167
|
+
process.exit(1);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// 7. Verify require() works
|
|
171
|
+
try {
|
|
172
|
+
const result = run(process.execPath, [
|
|
173
|
+
'-e',
|
|
174
|
+
`const p = require.resolve('${pkg.name}'); console.log('resolved: ' + p);`,
|
|
175
|
+
], {
|
|
176
|
+
quiet: true,
|
|
177
|
+
env: { ...process.env, NODE_PATH: path.join(PACKAGES_DIR, 'node_modules') },
|
|
178
|
+
});
|
|
179
|
+
logOk(`require('${pkg.name}') -> ${result.trim().replace('resolved: ', '')}`);
|
|
180
|
+
} catch {
|
|
181
|
+
logWarn(`require('${pkg.name}') failed — this may be OK if peer deps aren't available yet`);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
console.log('');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// ─── Verify command ───────────────────────────────────────────
|
|
188
|
+
function verifyAll() {
|
|
189
|
+
console.log('\n Spaces Package Verification\n');
|
|
190
|
+
|
|
191
|
+
let allOk = true;
|
|
192
|
+
|
|
193
|
+
for (const [key, pkg] of Object.entries(PACKAGES)) {
|
|
194
|
+
log(`─── ${pkg.name} ───`);
|
|
195
|
+
|
|
196
|
+
// Check if installed
|
|
197
|
+
if (!fs.existsSync(pkg.dir)) {
|
|
198
|
+
logWarn('Not installed');
|
|
199
|
+
log('');
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Check git status
|
|
204
|
+
try {
|
|
205
|
+
const branch = run('git', ['rev-parse', '--abbrev-ref', 'HEAD'], { cwd: pkg.dir, quiet: true }).trim();
|
|
206
|
+
const hash = run('git', ['rev-parse', '--short', 'HEAD'], { cwd: pkg.dir, quiet: true }).trim();
|
|
207
|
+
logOk(`Git: ${branch} @ ${hash}`);
|
|
208
|
+
} catch {
|
|
209
|
+
logErr('Git status check failed');
|
|
210
|
+
allOk = false;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Check entry point
|
|
214
|
+
if (pkg.verify(pkg.dir)) {
|
|
215
|
+
logOk(`Entry: ${pkg.verifyLabel} exists`);
|
|
216
|
+
} else {
|
|
217
|
+
logErr(`Entry: ${pkg.verifyLabel} missing`);
|
|
218
|
+
allOk = false;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Check node_modules
|
|
222
|
+
if (fs.existsSync(path.join(pkg.dir, 'node_modules'))) {
|
|
223
|
+
logOk('Dependencies: node_modules present');
|
|
224
|
+
} else {
|
|
225
|
+
logErr('Dependencies: node_modules missing');
|
|
226
|
+
allOk = false;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Check symlink
|
|
230
|
+
const linkPath = path.join(NODE_MODULES_DIR, key);
|
|
231
|
+
try {
|
|
232
|
+
const stat = fs.lstatSync(linkPath);
|
|
233
|
+
if (stat.isSymbolicLink()) {
|
|
234
|
+
const target = fs.readlinkSync(linkPath);
|
|
235
|
+
logOk(`Symlink: @spaces/${key} -> ${target}`);
|
|
236
|
+
} else {
|
|
237
|
+
logWarn(`@spaces/${key} exists but is not a symlink`);
|
|
238
|
+
}
|
|
239
|
+
} catch {
|
|
240
|
+
logErr(`Symlink: @spaces/${key} missing`);
|
|
241
|
+
allOk = false;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// Check native modules
|
|
245
|
+
const nativeOk = checkNativeModule('better-sqlite3', pkg.dir);
|
|
246
|
+
if (nativeOk) {
|
|
247
|
+
logOk('Native: better-sqlite3 loads OK');
|
|
248
|
+
} else {
|
|
249
|
+
logErr('Native: better-sqlite3 failed (ABI mismatch? Run: spaces upgrade)');
|
|
250
|
+
allOk = false;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Check require() resolution
|
|
254
|
+
try {
|
|
255
|
+
run(process.execPath, [
|
|
256
|
+
'-e',
|
|
257
|
+
`require.resolve('${pkg.name}')`,
|
|
258
|
+
], {
|
|
259
|
+
quiet: true,
|
|
260
|
+
env: { ...process.env, NODE_PATH: path.join(PACKAGES_DIR, 'node_modules') },
|
|
261
|
+
});
|
|
262
|
+
logOk(`require('${pkg.name}') resolves OK`);
|
|
263
|
+
} catch {
|
|
264
|
+
logErr(`require('${pkg.name}') fails`);
|
|
265
|
+
allOk = false;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
log('');
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (allOk) {
|
|
272
|
+
logOk('All checks passed');
|
|
273
|
+
} else {
|
|
274
|
+
logErr('Some checks failed — run "spaces upgrade" to fix');
|
|
275
|
+
}
|
|
276
|
+
console.log('');
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// ─── Upgrade command ──────────────────────────────────────────
|
|
280
|
+
function upgradePackage(pkgKey) {
|
|
281
|
+
if (pkgKey) {
|
|
282
|
+
// Upgrade specific package
|
|
283
|
+
const pkg = PACKAGES[pkgKey];
|
|
284
|
+
if (!pkg) {
|
|
285
|
+
logErr(`Unknown package: ${pkgKey}`);
|
|
286
|
+
process.exit(1);
|
|
287
|
+
}
|
|
288
|
+
if (!fs.existsSync(pkg.dir)) {
|
|
289
|
+
log(`${pkg.name} not installed — running install instead`);
|
|
290
|
+
installPackage(pkgKey);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
console.log(`\n Upgrading ${pkg.name}...\n`);
|
|
294
|
+
doUpgrade(pkgKey, pkg);
|
|
295
|
+
} else {
|
|
296
|
+
// Upgrade all installed packages
|
|
297
|
+
console.log('\n Upgrading all installed packages...\n');
|
|
298
|
+
for (const [key, pkg] of Object.entries(PACKAGES)) {
|
|
299
|
+
if (fs.existsSync(pkg.dir)) {
|
|
300
|
+
log(`─── ${pkg.name} ───`);
|
|
301
|
+
doUpgrade(key, pkg);
|
|
302
|
+
log('');
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
console.log('');
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function doUpgrade(pkgKey, pkg) {
|
|
310
|
+
// Pull latest
|
|
311
|
+
gitPull(pkg.dir);
|
|
312
|
+
|
|
313
|
+
run('npm', ['install'], { cwd: pkg.dir });
|
|
314
|
+
log('Building TypeScript...');
|
|
315
|
+
run('npm', ['run', 'build'], { cwd: pkg.dir });
|
|
316
|
+
run('npm', ['prune', '--omit=dev'], { cwd: pkg.dir });
|
|
317
|
+
|
|
318
|
+
// Re-create symlink
|
|
319
|
+
createSymlink(pkgKey);
|
|
320
|
+
|
|
321
|
+
if (pkg.verify(pkg.dir)) {
|
|
322
|
+
logOk(`${pkg.name} upgraded successfully`);
|
|
323
|
+
} else {
|
|
324
|
+
logErr(`${pkg.name} upgrade failed — ${pkg.verifyLabel} not found`);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// ─── Uninstall command ────────────────────────────────────────
|
|
329
|
+
function uninstallOne(pkgKey) {
|
|
330
|
+
const pkg = PACKAGES[pkgKey];
|
|
331
|
+
|
|
332
|
+
// Remove symlink
|
|
333
|
+
const linkPath = path.join(NODE_MODULES_DIR, pkgKey);
|
|
334
|
+
try {
|
|
335
|
+
const stat = fs.lstatSync(linkPath);
|
|
336
|
+
if (stat.isSymbolicLink() || stat.isFile()) {
|
|
337
|
+
fs.unlinkSync(linkPath);
|
|
338
|
+
} else if (stat.isDirectory()) {
|
|
339
|
+
fs.rmSync(linkPath, { recursive: true });
|
|
340
|
+
}
|
|
341
|
+
logOk(`Removed symlink @spaces/${pkgKey}`);
|
|
342
|
+
} catch {
|
|
343
|
+
logWarn(`Symlink @spaces/${pkgKey} not found`);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Remove package directory
|
|
347
|
+
if (fs.existsSync(pkg.dir)) {
|
|
348
|
+
fs.rmSync(pkg.dir, { recursive: true });
|
|
349
|
+
logOk(`Removed ${pkg.dir}`);
|
|
350
|
+
} else {
|
|
351
|
+
logWarn(`${pkg.dir} not found`);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function uninstallPackage(pkgKey) {
|
|
356
|
+
if (pkgKey) {
|
|
357
|
+
const pkg = PACKAGES[pkgKey];
|
|
358
|
+
if (!pkg) {
|
|
359
|
+
logErr(`Unknown package: ${pkgKey}`);
|
|
360
|
+
log(`Available: ${Object.keys(PACKAGES).join(', ')}`);
|
|
361
|
+
process.exit(1);
|
|
362
|
+
}
|
|
363
|
+
console.log(`\n Uninstalling ${pkg.name}...\n`);
|
|
364
|
+
uninstallOne(pkgKey);
|
|
365
|
+
logOk(`${pkg.name} uninstalled`);
|
|
366
|
+
} else {
|
|
367
|
+
console.log('\n Uninstalling everything...\n');
|
|
368
|
+
|
|
369
|
+
// Remove tier packages
|
|
370
|
+
for (const [key, pkg] of Object.entries(PACKAGES)) {
|
|
371
|
+
if (fs.existsSync(pkg.dir) || fs.existsSync(path.join(NODE_MODULES_DIR, key))) {
|
|
372
|
+
log(`─── ${pkg.name} ───`);
|
|
373
|
+
uninstallOne(key);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
// Clean up packages dir
|
|
377
|
+
try { fs.rmdirSync(NODE_MODULES_DIR); } catch {}
|
|
378
|
+
try { fs.rmdirSync(path.join(PACKAGES_DIR, 'node_modules')); } catch {}
|
|
379
|
+
try { fs.rmdirSync(PACKAGES_DIR); } catch {}
|
|
380
|
+
|
|
381
|
+
// Remove the global spaces CLI
|
|
382
|
+
log('─── @jlongo78/agent-spaces ───');
|
|
383
|
+
try {
|
|
384
|
+
run('npm', ['uninstall', '-g', '@jlongo78/agent-spaces'], { quiet: true });
|
|
385
|
+
logOk('Removed global spaces CLI');
|
|
386
|
+
} catch {
|
|
387
|
+
logWarn('Global spaces CLI not found or already removed');
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
logOk('Spaces fully uninstalled');
|
|
391
|
+
log('User data remains at ~/.spaces/ — remove manually if desired');
|
|
392
|
+
}
|
|
393
|
+
console.log('');
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// ─── CLI ──────────────────────────────────────────────────────
|
|
397
|
+
const command = process.argv[2];
|
|
398
|
+
const target = process.argv[3];
|
|
399
|
+
|
|
400
|
+
switch (command) {
|
|
401
|
+
case 'install':
|
|
402
|
+
if (!target) {
|
|
403
|
+
logErr('Usage: spaces install <teams|pro>');
|
|
404
|
+
process.exit(1);
|
|
405
|
+
}
|
|
406
|
+
installPackage(target);
|
|
407
|
+
break;
|
|
408
|
+
|
|
409
|
+
case 'uninstall':
|
|
410
|
+
uninstallPackage(target || null);
|
|
411
|
+
break;
|
|
412
|
+
|
|
413
|
+
case 'verify':
|
|
414
|
+
verifyAll();
|
|
415
|
+
break;
|
|
416
|
+
|
|
417
|
+
case 'upgrade':
|
|
418
|
+
upgradePackage(target || null);
|
|
419
|
+
break;
|
|
420
|
+
|
|
421
|
+
default:
|
|
422
|
+
logErr(`Unknown command: ${command}`);
|
|
423
|
+
log('Usage: spaces <install|uninstall|verify|upgrade> [package]');
|
|
424
|
+
process.exit(1);
|
|
425
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Setup wizard for Spaces server edition.
|
|
4
|
+
// Run via: spaces --setup
|
|
5
|
+
|
|
6
|
+
const Database = require('better-sqlite3');
|
|
7
|
+
const crypto = require('crypto');
|
|
8
|
+
const readline = require('readline');
|
|
9
|
+
const path = require('path');
|
|
10
|
+
const fs = require('fs');
|
|
11
|
+
const os = require('os');
|
|
12
|
+
|
|
13
|
+
const SPACES_DIR = path.join(os.homedir(), '.spaces');
|
|
14
|
+
const CONFIG_PATH = path.join(SPACES_DIR, 'server.json');
|
|
15
|
+
const ADMIN_DB_PATH = path.join(SPACES_DIR, 'admin.db');
|
|
16
|
+
const SESSION_SECRET_PATH = path.join(SPACES_DIR, 'session_secret');
|
|
17
|
+
|
|
18
|
+
function prompt(rl, question, defaultValue) {
|
|
19
|
+
const suffix = defaultValue ? ` [${defaultValue}]` : '';
|
|
20
|
+
return new Promise((resolve) => rl.question(` ${question}${suffix}: `, (answer) => {
|
|
21
|
+
resolve(answer.trim() || defaultValue || '');
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function promptHidden(question) {
|
|
26
|
+
return new Promise((resolve) => {
|
|
27
|
+
const stdin = process.stdin;
|
|
28
|
+
const stdout = process.stdout;
|
|
29
|
+
stdout.write(` ${question}: `);
|
|
30
|
+
stdin.setRawMode(true);
|
|
31
|
+
stdin.resume();
|
|
32
|
+
stdin.setEncoding('utf8');
|
|
33
|
+
|
|
34
|
+
let password = '';
|
|
35
|
+
const onData = (ch) => {
|
|
36
|
+
if (ch === '\n' || ch === '\r' || ch === '\u0004') {
|
|
37
|
+
stdin.setRawMode(false);
|
|
38
|
+
stdin.pause();
|
|
39
|
+
stdin.removeListener('data', onData);
|
|
40
|
+
stdout.write('\n');
|
|
41
|
+
resolve(password);
|
|
42
|
+
} else if (ch === '\u0003') {
|
|
43
|
+
process.exit(1);
|
|
44
|
+
} else if (ch === '\u007F' || ch === '\b') {
|
|
45
|
+
if (password.length > 0) {
|
|
46
|
+
password = password.slice(0, -1);
|
|
47
|
+
stdout.write('\b \b');
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
password += ch;
|
|
51
|
+
stdout.write('*');
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
stdin.on('data', onData);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function hashPassword(password) {
|
|
59
|
+
const salt = crypto.randomBytes(16).toString('hex');
|
|
60
|
+
const hash = crypto.scryptSync(password, salt, 64).toString('hex');
|
|
61
|
+
return `${salt}:${hash}`;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function main() {
|
|
65
|
+
console.log('');
|
|
66
|
+
console.log(' Spaces — Server Setup');
|
|
67
|
+
console.log(' =====================');
|
|
68
|
+
console.log('');
|
|
69
|
+
|
|
70
|
+
// Ensure ~/.spaces directory
|
|
71
|
+
if (!fs.existsSync(SPACES_DIR)) {
|
|
72
|
+
fs.mkdirSync(SPACES_DIR, { recursive: true });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Detect @spaces/pro
|
|
76
|
+
let hasSpacesPro = false;
|
|
77
|
+
try { require.resolve('@spaces/pro'); hasSpacesPro = true; } catch {}
|
|
78
|
+
|
|
79
|
+
if (hasSpacesPro) {
|
|
80
|
+
console.log(' Detected @spaces/pro — full features available.');
|
|
81
|
+
} else {
|
|
82
|
+
console.log(' @spaces/pro not found — community features only.');
|
|
83
|
+
console.log(' Install @spaces/pro for auth, multi-user, and federation.');
|
|
84
|
+
}
|
|
85
|
+
console.log('');
|
|
86
|
+
|
|
87
|
+
// Load existing config
|
|
88
|
+
let existingConfig = {};
|
|
89
|
+
if (fs.existsSync(CONFIG_PATH)) {
|
|
90
|
+
try { existingConfig = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); } catch {}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
94
|
+
|
|
95
|
+
// Tier
|
|
96
|
+
const defaultTier = existingConfig.tier || (hasSpacesPro ? 'federation' : 'community');
|
|
97
|
+
const tier = await prompt(rl, 'Tier (community|server|team|federation)', defaultTier);
|
|
98
|
+
const validTiers = ['community', 'server', 'team', 'federation'];
|
|
99
|
+
if (!validTiers.includes(tier)) {
|
|
100
|
+
console.error(`\n Error: Invalid tier "${tier}". Must be one of: ${validTiers.join(', ')}`);
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const needsAuth = tier !== 'community';
|
|
105
|
+
|
|
106
|
+
// Admin user (non-community tiers)
|
|
107
|
+
if (needsAuth) {
|
|
108
|
+
console.log('');
|
|
109
|
+
console.log(' Admin User');
|
|
110
|
+
console.log(' ──────────');
|
|
111
|
+
|
|
112
|
+
// Generate session secret if missing
|
|
113
|
+
if (!fs.existsSync(SESSION_SECRET_PATH)) {
|
|
114
|
+
const hex = crypto.randomBytes(32).toString('hex');
|
|
115
|
+
fs.writeFileSync(SESSION_SECRET_PATH, hex, { mode: 0o600 });
|
|
116
|
+
console.log(` Generated session secret at ${SESSION_SECRET_PATH}`);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Open/create admin database
|
|
120
|
+
const db = new Database(ADMIN_DB_PATH);
|
|
121
|
+
db.pragma('journal_mode = WAL');
|
|
122
|
+
db.pragma('synchronous = NORMAL');
|
|
123
|
+
db.pragma('foreign_keys = ON');
|
|
124
|
+
|
|
125
|
+
db.exec(`
|
|
126
|
+
CREATE TABLE IF NOT EXISTS users (
|
|
127
|
+
id TEXT PRIMARY KEY,
|
|
128
|
+
username TEXT NOT NULL UNIQUE,
|
|
129
|
+
password_hash TEXT NOT NULL,
|
|
130
|
+
display_name TEXT NOT NULL DEFAULT '',
|
|
131
|
+
shell_user TEXT NOT NULL,
|
|
132
|
+
role TEXT NOT NULL DEFAULT 'user',
|
|
133
|
+
totp_secret TEXT,
|
|
134
|
+
totp_enabled INTEGER DEFAULT 0,
|
|
135
|
+
created TEXT DEFAULT (datetime('now'))
|
|
136
|
+
);
|
|
137
|
+
`);
|
|
138
|
+
|
|
139
|
+
const existingAdmin = db.prepare("SELECT username FROM users WHERE role = 'admin' LIMIT 1").get();
|
|
140
|
+
if (existingAdmin) {
|
|
141
|
+
console.log(` Admin user already exists: ${existingAdmin.username}`);
|
|
142
|
+
} else {
|
|
143
|
+
const username = await prompt(rl, 'Username', 'admin');
|
|
144
|
+
if (!username) {
|
|
145
|
+
console.error(' Error: username cannot be empty');
|
|
146
|
+
process.exit(1);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const existing = db.prepare('SELECT id FROM users WHERE username = ?').get(username);
|
|
150
|
+
if (existing) {
|
|
151
|
+
console.error(` Error: user "${username}" already exists`);
|
|
152
|
+
process.exit(1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
rl.close();
|
|
156
|
+
|
|
157
|
+
const password = await promptHidden('Password');
|
|
158
|
+
if (password.length < 8) {
|
|
159
|
+
console.error(' Error: password must be at least 8 characters');
|
|
160
|
+
process.exit(1);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const confirm = await promptHidden('Confirm password');
|
|
164
|
+
if (password !== confirm) {
|
|
165
|
+
console.error(' Error: passwords do not match');
|
|
166
|
+
process.exit(1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const rl2 = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
170
|
+
const displayName = await prompt(rl2, 'Display name', username);
|
|
171
|
+
rl2.close();
|
|
172
|
+
|
|
173
|
+
const shellUser = os.userInfo().username;
|
|
174
|
+
const id = crypto.randomUUID();
|
|
175
|
+
const passwordHash = hashPassword(password);
|
|
176
|
+
|
|
177
|
+
db.prepare(`
|
|
178
|
+
INSERT INTO users (id, username, password_hash, display_name, shell_user, role)
|
|
179
|
+
VALUES (?, ?, ?, ?, ?, 'admin')
|
|
180
|
+
`).run(id, username, passwordHash, displayName, shellUser);
|
|
181
|
+
|
|
182
|
+
console.log(`\n Admin user "${username}" created.`);
|
|
183
|
+
}
|
|
184
|
+
db.close();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Server config
|
|
188
|
+
console.log('');
|
|
189
|
+
console.log(' Server');
|
|
190
|
+
console.log(' ──────────');
|
|
191
|
+
|
|
192
|
+
// Close rl if it's still open (community path or existing admin path)
|
|
193
|
+
try { rl.close(); } catch {}
|
|
194
|
+
const rl3 = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
195
|
+
|
|
196
|
+
const defaultPort = existingConfig.port || 3457;
|
|
197
|
+
const portStr = await prompt(rl3, 'Port', String(defaultPort));
|
|
198
|
+
const port = parseInt(portStr, 10) || defaultPort;
|
|
199
|
+
|
|
200
|
+
const defaultBasePath = existingConfig.basePath || '';
|
|
201
|
+
const basePath = await prompt(rl3, 'Base path (leave empty for root)', defaultBasePath);
|
|
202
|
+
|
|
203
|
+
rl3.close();
|
|
204
|
+
|
|
205
|
+
// Save config
|
|
206
|
+
const config = { tier, port, basePath };
|
|
207
|
+
fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2));
|
|
208
|
+
|
|
209
|
+
console.log('');
|
|
210
|
+
console.log(` Saved to ${CONFIG_PATH}`);
|
|
211
|
+
|
|
212
|
+
// Generate proxy config hints if basePath is set
|
|
213
|
+
if (basePath) {
|
|
214
|
+
console.log('');
|
|
215
|
+
console.log(' Reverse Proxy Configuration');
|
|
216
|
+
console.log(' ───────────────────────────');
|
|
217
|
+
console.log('');
|
|
218
|
+
console.log(' For nginx:');
|
|
219
|
+
console.log(` location ${basePath}/ {`);
|
|
220
|
+
console.log(` proxy_pass http://localhost:${port}/;`);
|
|
221
|
+
console.log(' proxy_http_version 1.1;');
|
|
222
|
+
console.log(' proxy_set_header Upgrade $http_upgrade;');
|
|
223
|
+
console.log(' proxy_set_header Connection "upgrade";');
|
|
224
|
+
console.log(' proxy_set_header Host $host;');
|
|
225
|
+
console.log(' proxy_set_header X-Real-IP $remote_addr;');
|
|
226
|
+
console.log(' }');
|
|
227
|
+
console.log('');
|
|
228
|
+
console.log(' For Traefik (docker-compose labels):');
|
|
229
|
+
console.log(` - "traefik.http.routers.spaces.rule=PathPrefix(\`${basePath}\`)"`);
|
|
230
|
+
console.log(` - "traefik.http.middlewares.spaces-strip.stripprefix.prefixes=${basePath}"`);
|
|
231
|
+
console.log(' - "traefik.http.routers.spaces.middlewares=spaces-strip"');
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
console.log('');
|
|
235
|
+
console.log(' Start with: spaces');
|
|
236
|
+
console.log('');
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
main().catch((err) => {
|
|
240
|
+
console.error(`\n Error: ${err.message}`);
|
|
241
|
+
process.exit(1);
|
|
242
|
+
});
|