@jlongo78/agent-spaces 0.9.7 → 0.9.9
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 +17 -4
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +4 -0
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/routes-manifest.json +29 -0
- 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_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)/cortex/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.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_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.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_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 +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
- 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/benchmark/lobes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/lobes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/run/route.js +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/runs/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/runs/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/runs/route.js +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/runs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/benchmark/status/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/claude/usage/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route.js +8 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/claude/usage/route_client-reference-manifest.js +2 -0
- 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/cortex/context/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/context/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/assess/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/assess/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/publish/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/publish/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/refine/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/refine/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/review/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/review/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/seed/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/curation/seed/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/export/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/export/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/pending/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/pending/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/resolve/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/resolve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/teach/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/federation/teach/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/edges/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/edges/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/entities/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/entities/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/entities/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/entities/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/populate/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/graph/populate/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/import/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/import/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/import/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/import/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/ingest/bootstrap/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/ingest/bootstrap/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/ingest/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/ingest/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/knowledge/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/knowledge/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/knowledge/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/knowledge/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/share/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/lobes/share/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/mcp/call/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/mcp/call/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/mcp/tools/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/mcp/tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/settings/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/timeline/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/timeline/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/usage/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/usage/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/cortex/workspace/[id]/context/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cortex/workspace/[id]/context/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/files/route.js +1 -1
- package/.next/standalone/.next/server/app/api/files/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/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/panes/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/panes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/panes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/panes/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/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/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]/diff/route.js +1 -1
- package/.next/standalone/.next/server/app/api/panes/[id]/diff/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/proxy/models/[modelId]/[...path]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proxy/models/[modelId]/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proxy/models/[modelId]/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proxy/models/[modelId]/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js +2 -2
- 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 +2 -2
- 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.js +1 -1
- package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/whisper/config/route.js +1 -1
- package/.next/standalone/.next/server/app/api/whisper/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/whisper/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wizard/chart/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route.js +7 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/wizard/chart/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/wizard/chat/route.js +1 -1
- package/.next/standalone/.next/server/app/api/wizard/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js +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 +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 +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 +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 +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/[id]/todos/[todoId]/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route.js +8 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/[todoId]/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route.js +8 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/todos/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/route.js +2 -2
- package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/cortex.html +1 -1
- package/.next/standalone/.next/server/app/cortex.rsc +3 -3
- package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap/cortex/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap/cortex.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/cortex.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/cortex.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/cortex.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/cortex.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +2 -2
- 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 +1 -1
- 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 +2 -2
- package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +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_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 +2 -2
- package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +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 +2 -2
- package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +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 +3 -3
- package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- 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 +1 -1
- package/.next/standalone/.next/server/app/m.html +1 -1
- package/.next/standalone/.next/server/app/m.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +2 -2
- 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 +1 -1
- package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.html +1 -1
- package/.next/standalone/.next/server/app/network.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +2 -2
- 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 +3 -3
- 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 +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- 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 +3 -3
- 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 +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/vr/page/react-loadable-manifest.json +1 -1
- package/.next/standalone/.next/server/app/vr/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/vr.html +1 -1
- package/.next/standalone/.next/server/app/vr.rsc +3 -3
- package/.next/standalone/.next/server/app/vr.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/vr.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/vr.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/vr.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/vr.segments/vr/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/vr.segments/vr.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.html +1 -1
- package/.next/standalone/.next/server/app/workspaces.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app-paths-manifest.json +4 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00e90fc6._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01ab8675._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03974f05._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__bb331da9._.js → [root-of-the-server]__046c9b91._.js} +16 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04ae6bf0._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__056fa416._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ac4ea3f._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0b8e64cb._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0facd39e._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__10bc76a3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__115f3934._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__11f155f1._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__160e7c73._.js +50 -33
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__17a3b966._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__17d3a2b2._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1a86c055._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__20b5e9c4._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__28d6fbd8._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a3f866b._.js +119 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__a95bb38b._.js → [root-of-the-server]__316617e7._.js} +3 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__32ad8f71._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__35457394._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__35de78e6._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3685ffcb._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__38954988._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3a32b624._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__426ad936._.js +119 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4985c034._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c6ce9ed._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5cebe58a._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5d5e4789._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__65676930._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__67cab326._.js +58 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__698c6f01._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7ebc4280._.js → [root-of-the-server]__6c64af29._.js} +22 -9
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__73aed9f5._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__79b6a9bb._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__e56abacf._.js → [root-of-the-server]__7db704c6._.js} +18 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__812ca02b._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__821f50fa._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8716b86e._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__884ef754._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__88cdbd68._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__89d9aba9._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8c2e1260._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8d536cb5._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8df8c5d1._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f2ccc41._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__95c9d682._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e5d7774._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9edcff87._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a049dfc2._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a5b4bb9a._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a83262a1._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a9cd1240._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__efb8251e._.js → [root-of-the-server]__a9d7f822._.js} +16 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ad08c221._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ad585f2f._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__afcb8f7d._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bc250d43._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bce2a6e7._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c011bf91._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c0ac2895._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c37d6380._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cae392eb._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cc2616bb._.js +16 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d501fa9b._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d59c6c15._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5c1db32._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__dba60c86._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__de14b9ae._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e10643d1._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2a996e5._.js +127 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e3477417._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__32dc5513._.js → [root-of-the-server]__e4db362e._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e4e70b86._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e54925af._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e8cbeaca._.js +111 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__cabaac2b._.js → [root-of-the-server]__e8edc5b0._.js} +16 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__eab4d83b._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ead29015._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f056fd83._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f0e99572._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fe1e16d0._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ff9cd277._.js +111 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ffaea2ce._.js +111 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_claude_usage_route_actions_fe002ec1.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wizard_chart_route_actions_888e2ec1.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_todos_route_actions_0d4ffac5.js +3 -0
- package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_todos_[todoId]_route_actions_754fe6b9.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__2cffc362._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__f1050870._.js → [root-of-the-server]__47c97637._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_20c2cf3a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_2a1d79e7._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_5c3c4cfa._.js +7 -5
- package/.next/standalone/.next/server/chunks/ssr/_5f55bf8f._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_ba432382._.js +7 -5
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_cortex_page_tsx_0f33d8b3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_settings_page_tsx_f74824b3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +4 -4
- package/.next/standalone/.next/server/edge/chunks/[root-of-the-server]__90eeddae._.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/{74d0ac0b1d0a1b79.js → 10b00b4f66102dcf.js} +1 -1
- package/.next/standalone/.next/static/chunks/14216197f9dcbe5b.css +3 -0
- package/.next/standalone/.next/static/chunks/{16eb77953dee9ea3.js → 19c71a8376c23c58.js} +1 -1
- package/.next/standalone/.next/static/chunks/{3e91fc608659c524.js → 350271fe79509caf.js} +1 -1
- package/.next/standalone/.next/static/chunks/4c9fb0a38f041a3d.js +85 -0
- package/.next/standalone/.next/static/chunks/{70423c7afd8abf5f.js → 597847c22200c212.js} +1 -1
- package/.next/standalone/.next/static/chunks/8f6f93ab45a5ff5b.js +1 -0
- package/.next/standalone/.next/static/chunks/{7ecd9bbb0ce4d68a.js → b7c8fe9b7275a84f.js} +1 -1
- package/.next/standalone/.next/static/chunks/{6245135a7afb8c7b.js → c9b10fc55516d142.js} +8 -6
- package/.next/standalone/.next/static/chunks/d0065f48eab94944.js +1 -0
- package/.next/standalone/.next/static/chunks/{e62bb488d02db247.js → d2566c2dcf53fef3.js} +1 -1
- package/.next/standalone/.next/static/chunks/{180c1b9ff31b979f.js → f7b34c807badf95d.js} +8 -6
- package/.next/standalone/.next/static/chunks/{fb0abd1933b2b2e1.js → ff7d85dade44d1f3.js} +1 -1
- package/.next/standalone/.spaces/cortex-context.md +35 -129
- package/.next/standalone/bin/spaces.js +7 -4
- package/.next/standalone/bin/terminal-server.js +48 -10
- package/.next/standalone/cortex-hook-debug.log +118 -23
- package/.next/standalone/docs/features/claude-usage.md +105 -0
- package/.next/standalone/docs/features/workspace-todos.md +127 -0
- package/.next/standalone/docs/superpowers/plans/2026-04-21-workspace-todos.md +1097 -0
- package/.next/standalone/docs/superpowers/plans/2026-04-22-claude-usage-display.md +749 -0
- package/.next/standalone/docs/superpowers/specs/2026-04-21-workspace-todos-design.md +180 -0
- package/.next/standalone/docs/superpowers/specs/2026-04-22-claude-usage-display-design.md +183 -0
- package/.next/standalone/package-lock.json +2 -2
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/app/(desktop)/settings/page.tsx +40 -1
- package/.next/standalone/src/app/(desktop)/terminal/page.tsx +98 -7
- package/.next/standalone/src/app/api/benchmark/run/route.ts +24 -3
- package/.next/standalone/src/app/api/claude/usage/route.ts +33 -0
- package/.next/standalone/src/app/api/config/route.ts +3 -0
- package/.next/standalone/src/app/api/cortex/context/route.ts +1 -1
- package/.next/standalone/src/app/api/cortex/knowledge/route.ts +1 -1
- package/.next/standalone/src/app/api/cortex/search/route.ts +14 -2
- package/.next/standalone/src/app/api/folders/route.ts +16 -6
- package/.next/standalone/src/app/api/network/panes/[id]/route.ts +27 -11
- package/.next/standalone/src/app/api/network/panes/route.ts +25 -14
- package/.next/standalone/src/app/api/network/projects/route.ts +11 -4
- package/.next/standalone/src/app/api/network/search/route.ts +21 -14
- package/.next/standalone/src/app/api/network/sessions/[id]/messages/route.ts +18 -11
- package/.next/standalone/src/app/api/network/sessions/[id]/route.ts +16 -9
- package/.next/standalone/src/app/api/network/sessions/route.ts +25 -18
- package/.next/standalone/src/app/api/network/workspaces/[id]/route.ts +21 -12
- package/.next/standalone/src/app/api/network/workspaces/route.ts +16 -14
- package/.next/standalone/src/app/api/whisper/config/route.ts +16 -8
- package/.next/standalone/src/app/api/wizard/chart/route.ts +129 -0
- package/.next/standalone/src/app/api/workspaces/[id]/todos/[todoId]/route.ts +55 -0
- package/.next/standalone/src/app/api/workspaces/[id]/todos/route.ts +43 -0
- package/.next/standalone/src/components/claude/claude-usage-strip.tsx +175 -0
- package/.next/standalone/src/components/cortex/benchmark-tab.tsx +14 -0
- package/.next/standalone/src/components/terminal/terminal-pane.tsx +78 -12
- package/.next/standalone/src/components/wizard/chart-wizard.tsx +405 -0
- package/.next/standalone/src/components/workspace/workspace-todos.tsx +265 -0
- package/.next/standalone/src/hooks/use-benchmark.ts +1 -0
- package/.next/standalone/src/hooks/use-claude-usage.ts +66 -0
- package/.next/standalone/src/hooks/use-speech-recognition.ts +2 -1
- package/.next/standalone/src/lib/claude/credentials.ts +36 -0
- package/.next/standalone/src/lib/claude/usage.ts +69 -0
- package/.next/standalone/src/lib/config.ts +3 -0
- package/.next/standalone/src/lib/cortex/benchmark.ts +17 -1
- package/.next/standalone/src/lib/cortex/index.ts +54 -1
- package/.next/standalone/src/lib/db/queries.ts +105 -90
- package/.next/standalone/src/lib/db/schema.ts +18 -0
- package/.next/standalone/src/lib/shell-user.ts +101 -0
- package/.next/standalone/src/types/claude.ts +39 -0
- package/.next/standalone/tests/db/workspace-todos.test.ts +156 -0
- package/bin/spaces.js +7 -4
- package/bin/terminal-server.js +48 -10
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00fdfbda._.js +0 -114
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04f04898._.js +0 -106
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0903a426._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__09e8ccc9._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__11c684b1._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1572d4ef._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__186cd0bb._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__194955d4._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1f054c65._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__212760e6._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__228595ec._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2384f98e._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__277d9445._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__283c890f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a2c5fc5._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2d7a454e._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2f300a68._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2f452778._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__35f8e77e._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__379fc2e9._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3b40d79f._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3d3dca2b._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__49e42a3a._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d5b78d2._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d903941._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__54163e52._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__563c0817._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5812f90a._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c5e87f5._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__60d15b16._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__614458b7._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__69d315e5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6fe5e6c8._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__71f29038._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__74084e07._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7921aa80._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7e077dd8._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__857c60bb._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__874fe565._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8e2171f7._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__91e23c96._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__929ea03a._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__95659b2d._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9679b91e._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d68157b._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a90729a1._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ac39ecc7._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ac84b704._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ad4346fa._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b0862d69._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b43306ee._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b689ff5e._.js +0 -106
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ba87daaa._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c0461005._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c1deb5f3._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c8a62f42._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cb027619._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cc6e2885._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cf608218._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cfc1290d._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d0109b9b._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d0125483._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d048ee6b._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d12644e7._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d95165f0._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e3cc946c._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e6fd27f8._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__eafd040b._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f44c6882._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f85283de._.js +0 -98
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__feceb3e4._.js +0 -98
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__843070a6._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_3ba93bdd._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_e84a0c06._.js +0 -3
- package/.next/standalone/.next/static/chunks/074df89a63b6a854.js +0 -1
- package/.next/standalone/.next/static/chunks/9d4164833c2c1fd6.js +0 -85
- package/.next/standalone/.next/static/chunks/bffaf378f7745d59.css +0 -3
- package/.next/standalone/.next/static/chunks/f091f4bf8d80fd07.js +0 -1
- /package/.next/standalone/.next/static/{0KefPNmR9NsrZHWWt9Xr7 → bAQs2gDlFrq3e8w9ni9tr}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{0KefPNmR9NsrZHWWt9Xr7 → bAQs2gDlFrq3e8w9ni9tr}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/.next/static/{0KefPNmR9NsrZHWWt9Xr7 → bAQs2gDlFrq3e8w9ni9tr}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module.exports=[324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},362562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},599944,e=>{"use strict";var t=e.i(362562),r=e.i(814747);let s=null,a=!1;function n(){if(!a){for(let e of function(){let e=[r.default.join(process.cwd(),"package.json")];for(let t of(process.env.NODE_PATH||"").split(r.default.delimiter))t&&e.push(r.default.join(t,"_anchor.js"));return e}())try{s=(0,t.createRequire)(e)("@spaces/teams");break}catch{}a=!0}return s}function i(){return null!==n()}e.s(["getTeams",()=>n,"hasTeams",()=>i])},798003,e=>{"use strict";var t=e.i(814747),r=e.i(522734),s=e.i(446786),a=e.i(254799),n=e.i(717516),i=e.i(599944);let o={port:parseInt(process.env.SPACES_PORT||"3457",10),costRates:{"claude-opus-4-5-20251101":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},"claude-opus-4-6":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-haiku-4-5-20251001":{input:.8,output:4,cacheRead:.08,cacheWrite:1}}};function c(e){let a,o=e;if(n.HAS_MULTIUSER)try{let t=(0,i.getTeams)();t&&(o=t.admin.resolveShellUser(e))}catch{}if(o===s.default.userInfo().username)a=s.default.homedir();else if(1){let e=t.default.dirname(s.default.homedir()),n=t.default.join(e,o);a=r.default.existsSync(n)?n:s.default.homedir()}else a=`/home/${o}`;let c=o===s.default.userInfo().username?t.default.join(s.default.homedir(),".spaces"):t.default.join(s.default.homedir(),".spaces","users",e);return{claudeDir:t.default.join(a,".claude"),claudeProjectsDir:t.default.join(a,".claude","projects"),statsPath:t.default.join(a,".claude","stats-cache.json"),codexDir:t.default.join(a,".codex"),codexSessionsDir:t.default.join(a,".codex","sessions"),geminiDir:t.default.join(a,".gemini"),geminiChatsBaseDir:t.default.join(a,".gemini","tmp"),geminiProjectsRegistry:t.default.join(a,".gemini","projects.json"),forgeDir:t.default.join(a,".forge"),forgeConversationsDir:t.default.join(a,".forge","conversations"),spacesDir:c,dbPath:t.default.join(c,"spaces.db"),configPath:t.default.join(c,"config.json")}}function l(e){let{spacesDir:t}=c(e);r.default.existsSync(t)||r.default.mkdirSync(t,{recursive:!0})}function d(e){let{configPath:t,spacesDir:s}=c(e);try{if(r.default.existsSync(t)){let e=JSON.parse(r.default.readFileSync(t,"utf-8"));return{installId:e.installId||a.default.randomUUID(),telemetryOptOut:!!e.telemetryOptOut,devDirectories:Array.isArray(e.devDirectories)?e.devDirectories.filter(e=>"string"==typeof e):[],todosEnabled:!!e.todosEnabled,...e.cortex&&"object"==typeof e.cortex?{cortex:e.cortex}:{},customModels:Array.isArray(e.customModels)?e.customModels:[]}}}catch{}r.default.existsSync(s)||r.default.mkdirSync(s,{recursive:!0});let n={installId:a.default.randomUUID(),telemetryOptOut:!1,devDirectories:[],todosEnabled:!1,customModels:[]};return r.default.writeFileSync(t,JSON.stringify(n,null,2)),n}function u(e,t){let s={...d(e),...t},{configPath:a}=c(e);return r.default.writeFileSync(a,JSON.stringify(s,null,2)),s}e.s(["config",0,o,"ensureUserSpacesDir",()=>l,"getUserPaths",()=>c,"readConfig",()=>d,"writeConfig",()=>u])},254799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},804730,e=>{e.v({name:"@jlongo78/agent-spaces",version:"0.9.9",description:"Agent workspace manager for Claude, Codex, Gemini, and more",bin:{spaces:"./bin/spaces.js"},files:["bin/",".next/standalone/"],engines:{node:">=20.9.0"},repository:{type:"git",url:"git+https://github.com/jlongo78/spaces.git"},keywords:["ai","agent","workspace","terminal","claude","codex","gemini"],homepage:"http://www.agentspaces.co",license:"AGPL-3.0-only",scripts:{start:"node bin/spaces.js",dev:"node bin/spaces-dev.js",build:"cross-env STANDALONE=1 next build && node -e \"const fs=require('fs');fs.cpSync('.next/static','.next/standalone/.next/static',{recursive:true});fs.cpSync('public','.next/standalone/public',{recursive:true})\" && node bin/fix-standalone-externals.js",postinstall:"node bin/spaces-postinstall.js || true",prepublishOnly:"npm run build",setup:"node bin/spaces-setup.js","setup-admin":"node bin/setup-admin.js","server:build":"next build","server:start":"next start --port 3457",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage",lint:"eslint"},dependencies:{"@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@google-cloud/compute":"^6.9.0","@huggingface/transformers":"^3.8.1","@lancedb/lancedb":"^0.26.2","@modelcontextprotocol/sdk":"^1.27.1","@react-three/drei":"^10.7.7","@react-three/fiber":"^9.5.0","@react-three/postprocessing":"^3.0.4","@react-three/xr":"^6.6.29","@xterm/addon-canvas":"^0.7.0","better-sqlite3":"^12.6.2","bonjour-service":"^1.3.0","dockview-react":"^5.2.0","force-graph":"^1.51.2","node-pty":"^1.1.0","react-resizable-panels":"^4.7.6",three:"^0.183.2",ws:"^8.19.0"},devDependencies:{"@tailwindcss/postcss":"^4","@tanstack/react-query":"^5.90.21","@types/better-sqlite3":"^7.6.13","@types/node":"^20","@types/qrcode":"^1.5.6","@types/react":"^19","@types/react-dom":"^19","@types/three":"^0.183.1","@types/ws":"^8.18.1","@vitest/coverage-v8":"^4.0.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0",chokidar:"^5.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1","cross-env":"^10.1.0","date-fns":"^4.1.0",eslint:"^9","eslint-config-next":"16.1.6",geist:"^1.4.1","lucide-react":"^0.575.0",next:"16.1.6",otpauth:"^9.5.0","posthog-js":"^1.352.0","posthog-node":"^5.21.2",qrcode:"^1.5.4",react:"19.2.3","react-dom":"19.2.3","react-markdown":"^10.1.0",recharts:"^3.7.0","rehype-highlight":"^7.0.2","remark-gfm":"^4.0.1","tailwind-merge":"^3.5.0",tailwindcss:"^4",typescript:"^5",vitest:"^4.0.18",xterm:"^5.3.0"},optionalDependencies:{"@types/qrcode":"^1.5.6",otpauth:"^9.5.0",qrcode:"^1.5.4"}})},717516,e=>{"use strict";let t=process.env.SPACES_TIER||process.env.NEXT_PUBLIC_TIER||("server"===process.env.NEXT_PUBLIC_EDITION?"federation":"community"),r="team"===t||"federation"===t,s="federation"===t,a=r||"1"===process.env.SPACES_HAS_CORTEX,n=!r;function i(){let i="0.0.0";try{i=e.r(804730).version}catch{}return{tier:t,version:i,hasAuth:r,hasAdmin:r,hasCollaboration:r,hasNetwork:s,hasMultiuser:r,hasCortex:a,isDesktop:n,basePath:""}}e.s(["HAS_ADMIN",0,r,"HAS_AUTH",0,r,"HAS_COLLABORATION",0,r,"HAS_CORTEX",0,a,"HAS_MULTIUSER",0,r,"HAS_NETWORK",0,s,"IS_DESKTOP",0,n,"IS_FEDERATION",0,s,"IS_TEAM",0,r,"TIER",0,t,"getTierFlags",()=>i])},410430,(e,t,r)=>{t.exports=e.x("async_hooks",()=>require("async_hooks"))},79832,e=>{"use strict";var t=e.i(410430),r=e.i(446786),s=e.i(717516);let a=new t.AsyncLocalStorage;function n(e){return s.HAS_AUTH&&e.headers.get("x-auth-user")||r.default.userInfo().username}function i(e,t){return a.run(e,t)}function o(e){return s.HAS_AUTH?e.headers.get("x-auth-role")||"user":"admin"}function c(){let e=a.getStore();return e||r.default.userInfo().username}e.s(["getAuthRole",()=>o,"getAuthUser",()=>n,"getCurrentUser",()=>c,"withUser",()=>i])},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3-90e2652d1716b047",()=>require("better-sqlite3-90e2652d1716b047"))},507304,e=>{"use strict";var t=e.i(785148),r=e.i(798003),s=e.i(79832);let a=new Map;function n(){let n=(0,s.getCurrentUser)(),i=a.get(n);if(i)return i;(0,r.ensureUserSpacesDir)(n);let{dbPath:o}=(0,r.getUserPaths)(n),c=new t.default(o);return c.pragma("journal_mode = WAL"),c.pragma("synchronous = NORMAL"),c.pragma("foreign_keys = ON"),function(t){let r;t.exec(`
|
|
2
|
+
CREATE TABLE IF NOT EXISTS projects (
|
|
3
|
+
id TEXT PRIMARY KEY,
|
|
4
|
+
name TEXT NOT NULL,
|
|
5
|
+
path TEXT NOT NULL,
|
|
6
|
+
claude_path TEXT NOT NULL,
|
|
7
|
+
session_count INTEGER DEFAULT 0,
|
|
8
|
+
last_activity TEXT
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
CREATE TABLE IF NOT EXISTS sessions (
|
|
12
|
+
id TEXT PRIMARY KEY,
|
|
13
|
+
session_id TEXT NOT NULL,
|
|
14
|
+
project_id TEXT NOT NULL,
|
|
15
|
+
first_prompt TEXT,
|
|
16
|
+
summary TEXT,
|
|
17
|
+
message_count INTEGER DEFAULT 0,
|
|
18
|
+
created TEXT,
|
|
19
|
+
modified TEXT,
|
|
20
|
+
git_branch TEXT,
|
|
21
|
+
project_path TEXT,
|
|
22
|
+
full_path TEXT NOT NULL,
|
|
23
|
+
starred INTEGER DEFAULT 0,
|
|
24
|
+
custom_name TEXT,
|
|
25
|
+
notes TEXT,
|
|
26
|
+
FOREIGN KEY (project_id) REFERENCES projects(id)
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_project ON sessions(project_id);
|
|
30
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_created ON sessions(created);
|
|
31
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_modified ON sessions(modified);
|
|
32
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_starred ON sessions(starred);
|
|
33
|
+
|
|
34
|
+
CREATE TABLE IF NOT EXISTS workspaces (
|
|
35
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
36
|
+
name TEXT NOT NULL,
|
|
37
|
+
description TEXT DEFAULT '',
|
|
38
|
+
color TEXT DEFAULT '#6366f1',
|
|
39
|
+
created TEXT DEFAULT (datetime('now'))
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
CREATE TABLE IF NOT EXISTS workspace_sessions (
|
|
43
|
+
workspace_id INTEGER NOT NULL,
|
|
44
|
+
session_id TEXT NOT NULL,
|
|
45
|
+
PRIMARY KEY (workspace_id, session_id),
|
|
46
|
+
FOREIGN KEY (workspace_id) REFERENCES workspaces(id) ON DELETE CASCADE,
|
|
47
|
+
FOREIGN KEY (session_id) REFERENCES sessions(id) ON DELETE CASCADE
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
CREATE TABLE IF NOT EXISTS tags (
|
|
51
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
52
|
+
name TEXT NOT NULL UNIQUE,
|
|
53
|
+
color TEXT DEFAULT '#8b5cf6'
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
CREATE TABLE IF NOT EXISTS session_tags (
|
|
57
|
+
session_id TEXT NOT NULL,
|
|
58
|
+
tag_id INTEGER NOT NULL,
|
|
59
|
+
PRIMARY KEY (session_id, tag_id),
|
|
60
|
+
FOREIGN KEY (session_id) REFERENCES sessions(id) ON DELETE CASCADE,
|
|
61
|
+
FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
CREATE TABLE IF NOT EXISTS sync_state (
|
|
65
|
+
file_path TEXT PRIMARY KEY,
|
|
66
|
+
mtime INTEGER,
|
|
67
|
+
byte_offset INTEGER DEFAULT 0,
|
|
68
|
+
last_synced TEXT DEFAULT (datetime('now'))
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
CREATE TABLE IF NOT EXISTS panes (
|
|
72
|
+
id TEXT PRIMARY KEY,
|
|
73
|
+
title TEXT NOT NULL DEFAULT 'Terminal',
|
|
74
|
+
color TEXT NOT NULL DEFAULT '#6366f1',
|
|
75
|
+
cwd TEXT NOT NULL,
|
|
76
|
+
claude_session_id TEXT,
|
|
77
|
+
grid_col INTEGER NOT NULL DEFAULT 0,
|
|
78
|
+
grid_row INTEGER NOT NULL DEFAULT 0,
|
|
79
|
+
sort_order INTEGER NOT NULL DEFAULT 0,
|
|
80
|
+
shell TEXT,
|
|
81
|
+
created TEXT DEFAULT (datetime('now'))
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
CREATE TABLE IF NOT EXISTS totp (
|
|
85
|
+
username TEXT PRIMARY KEY,
|
|
86
|
+
secret TEXT NOT NULL,
|
|
87
|
+
enabled INTEGER DEFAULT 0,
|
|
88
|
+
created TEXT DEFAULT (datetime('now'))
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
CREATE TABLE IF NOT EXISTS workspace_todos (
|
|
92
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
93
|
+
workspace_id INTEGER NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE,
|
|
94
|
+
text TEXT NOT NULL,
|
|
95
|
+
completed INTEGER NOT NULL DEFAULT 0,
|
|
96
|
+
sort_order INTEGER NOT NULL DEFAULT 0,
|
|
97
|
+
created TEXT NOT NULL DEFAULT (datetime('now')),
|
|
98
|
+
completed_at TEXT
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
CREATE INDEX IF NOT EXISTS idx_workspace_todos_workspace
|
|
102
|
+
ON workspace_todos(workspace_id);
|
|
103
|
+
`);let s=(e,r,s)=>{try{t.exec(`ALTER TABLE ${e} ADD COLUMN ${r} ${s}`)}catch{}};s("workspaces","is_active","INTEGER DEFAULT 0"),s("workspaces","updated","TEXT"),s("workspaces","lobe_config","TEXT DEFAULT '{}'"),s("panes","workspace_id","INTEGER"),s("panes","is_popout","INTEGER DEFAULT 0"),s("panes","win_x","INTEGER"),s("panes","win_y","INTEGER"),s("panes","win_width","INTEGER DEFAULT 800"),s("panes","win_height","INTEGER DEFAULT 600"),s("panes","agent_type","TEXT DEFAULT 'shell'"),s("panes","custom_command","TEXT"),s("panes","node_id","TEXT"),s("sessions","agent_type","TEXT DEFAULT 'claude'"),s("projects","agent_type","TEXT DEFAULT 'claude'"),s("projects","agent_path","TEXT");try{t.exec("UPDATE projects SET agent_path = claude_path WHERE agent_path IS NULL AND claude_path IS NOT NULL")}catch{}s("workspaces","collaboration","INTEGER DEFAULT 0"),s("panes","is_collaborating","INTEGER DEFAULT 0"),s("panes","diff_baseline_sha","TEXT"),s("panes","custom_model_id","TEXT");try{t.exec("CREATE INDEX IF NOT EXISTS idx_sessions_agent_type ON sessions(agent_type)")}catch{}try{t.exec("CREATE INDEX IF NOT EXISTS idx_projects_agent_type ON projects(agent_type)")}catch{}let a=t.prepare("SELECT id FROM workspaces WHERE name = 'Default'").get();a?(r=a.id,t.prepare("SELECT id FROM workspaces WHERE is_active = 1").get()||t.prepare("UPDATE workspaces SET is_active = 1 WHERE id = ?").run(r)):r=Number(t.prepare("INSERT INTO workspaces (name, description, color, is_active) VALUES ('Default', 'Default workspace', '#6366f1', 1)").run().lastInsertRowid);let n=t.prepare("SELECT id FROM workspaces WHERE is_active = 1").get();n&&t.prepare("UPDATE panes SET workspace_id = ? WHERE workspace_id IS NULL").run(n.id);try{t.exec(`
|
|
104
|
+
CREATE VIRTUAL TABLE IF NOT EXISTS sessions_fts USING fts5(
|
|
105
|
+
session_id,
|
|
106
|
+
content,
|
|
107
|
+
content_rowid='rowid'
|
|
108
|
+
);
|
|
109
|
+
`)}catch{}try{let{getTeams:r}=e.r(599944),s=r();s&&s.db.runMigrations(t)}catch{}}(c),a.set(n,c),c}function i(){for(let e of a.values())e.close();a.clear()}e.s(["__testing",0,{dbs:a},"closeDb",()=>i,"getDb",()=>n])},792687,e=>{"use strict";var t=e.i(362562),r=e.i(814747);let s=null,a=!1;function n(){if(!a){let n=[r.default.join(process.cwd(),"package.json")];for(let e of(process.env.NODE_PATH||"").split(r.default.delimiter))e&&n.push(r.default.join(e,"_anchor.js"));for(let e of n)try{s=(0,t.createRequire)(e)("@spaces/cortex");break}catch{}if(a=!0,s&&!s.hasHostAdapter())try{let t=e.r(79832),r=e.r(798003),a=e.r(507304),n=e.r(717516);s.setHostAdapter({getAuthUser:e=>t.getAuthUser(e),withUser:(e,r)=>t.withUser(e,r),getCurrentUser:()=>t.getCurrentUser(),getUserPaths:e=>r.getUserPaths(e),getDb:()=>a.getDb(),hasCortex:()=>n.HAS_CORTEX,isFederation:()=>n.IS_FEDERATION})}catch{}}return s}function i(){return n()}async function o(){return n()?.getCortex()??null}function c(){return n()?.isCortexAvailable()??!1}function l(){d=null,n()?.resetCortex()}let d=null;async function u(){if(d)return d;let e=n();if(!e)return null;let t=await e.getCortex();if(!t)return null;try{let{createClient:r,EmbeddedConnection:s,RemoteConnection:a,loadConfig:n}=e,i=[new s({name:"local",domains:t.domainRegistry.list(),writable:!0,default:!0,primary:!0,engine:t})];try{for(let e of n().connections)"remote"===e.type&&i.push(new a(e))}catch{}return d=r({connections:i})}catch(e){return console.warn("[cortex] Client library not available, multi-server disabled:",e),null}}e.s(["getCortex",()=>o,"getCortexAddon",()=>i,"getCortexClient",()=>u,"isCortexAvailable",()=>c,"resetCortex",()=>l])},224076,e=>{"use strict";var t=e.i(792687),r=e.i(798003),s=e.i(79832),a=e.i(814747);let n=null;function i(){if(n)return n;let i=(0,t.getCortexAddon)();if(!i?.BenchmarkDataAccess)return null;let o=(0,s.getCurrentUser)(),{spacesDir:c}=(0,r.getUserPaths)(o),l=function(){try{let{createRequire:t}=e.r(362562),r=t(a.default.join(process.cwd(),"package.json"));return a.default.dirname(r.resolve("@spaces/cortex/package.json"))}catch{return null}}();for(let e of[a.default.join(c,"cortex","benchmark.db"),a.default.join(process.cwd(),"tests","benchmark","results","benchmark.db"),...l?[a.default.join(l,"tests","benchmark","results","benchmark.db")]:[]]){let t=new i.BenchmarkDataAccess(e);if(t.isAvailable())return n=t;t.close()}return null}let o=null;function c(){return o}function l(e){o=e}e.s(["getBenchmarkAccess",()=>i,"getBenchmarkProcess",()=>c,"setBenchmarkProcess",()=>l])},492607,e=>{"use strict";var t=e.i(747909),r=e.i(174017),s=e.i(996250),a=e.i(759756),n=e.i(561916),i=e.i(174677),o=e.i(869741),c=e.i(316795),l=e.i(487718),d=e.i(995169),u=e.i(47587),E=e.i(666012),p=e.i(570101),T=e.i(626937),f=e.i(10372),h=e.i(193695);e.i(52474);var N=e.i(600220),R=e.i(89171),A=e.i(79832),g=e.i(224076);async function m(e){let t=(0,A.getAuthUser)(e);return(0,A.withUser)(t,async()=>{let e=(0,g.getBenchmarkAccess)();if(!e)return R.NextResponse.json({error:"Benchmark data not available"},{status:404});let t=e.listLobeScores();return R.NextResponse.json({lobes:t})})}e.s(["GET",()=>m],774269);var _=e.i(774269);let x=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/benchmark/lobes/route",pathname:"/api/benchmark/lobes",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/benchmark/lobes/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:I,workUnitAsyncStorage:L,serverHooks:S}=x;function U(){return(0,s.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:L})}async function w(e,t,s){x.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/benchmark/lobes/route";R=R.replace(/\/index$/,"")||"/";let A=await x.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!A)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:g,params:m,nextConfig:_,parsedUrl:I,isDraftMode:L,prerenderManifest:S,routerServerContext:U,isOnDemandRevalidate:w,revalidateOnlyGenerated:y,resolvedPathname:O,clientReferenceManifest:v,serverActionsManifest:C}=A,b=(0,o.normalizeAppPath)(R),D=!!(S.dynamicRoutes[b]||S.routes[O]),k=async()=>((null==U?void 0:U.render404)?await U.render404(e,t,I,!1):t.end("This page could not be found"),null);if(D&&!L){let e=!!S.routes[O],t=S.dynamicRoutes[b];if(t&&!1===t.fallback&&!e){if(_.experimental.adapterPath)return await k();throw new h.NoFallbackError}}let X=null;!D||x.isDev||L||(X="/index"===(X=O)?"/":X);let j=!0===x.isDev||!D,F=D&&!j;C&&v&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:v,serverActionsManifest:C});let P=e.method||"GET",H=(0,n.getTracer)(),M=H.getActiveScopeSpan(),q={params:m,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!_.experimental.authInterrupts},cacheComponents:!!_.cacheComponents,supportsDynamicResponse:j,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:_.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>x.onRequestError(e,t,s,a,U)},sharedContext:{buildId:g}},G=new c.NodeNextRequest(e),B=new c.NodeNextResponse(t),K=l.NextRequestAdapter.fromNodeNextRequest(G,(0,l.signalFromNodeResponse)(t));try{let i=async e=>x.handle(K,q).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${P} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${P} ${R}`)}),o=!!(0,a.getRequestMeta)(e,"minimalMode"),c=async a=>{var n,c;let l=async({previousCacheEntry:r})=>{try{if(!o&&w&&y&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(a);e.fetchMetrics=q.renderOpts.fetchMetrics;let c=q.renderOpts.pendingWaitUntil;c&&s.waitUntil&&(s.waitUntil(c),c=void 0);let l=q.renderOpts.collectedTags;if(!D)return await (0,E.sendResponse)(G,B,n,q.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,p.toNodeOutgoingHttpHeaders)(n.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==q.renderOpts.collectedRevalidate&&!(q.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&q.renderOpts.collectedRevalidate,s=void 0===q.renderOpts.collectedExpire||q.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:q.renderOpts.collectedExpire;return{value:{kind:N.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await x.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:w})},!1,U),t}},d=await x.handleResponse({req:e,nextConfig:_,cacheKey:X,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:w,revalidateOnlyGenerated:y,responseGenerator:l,waitUntil:s.waitUntil,isMinimalMode:o});if(!D)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==N.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(c=d.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",w?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),L&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);return o&&D||h.delete(f.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,T.getCacheControlHeader)(d.cacheControl)),await (0,E.sendResponse)(G,B,new Response(d.value.body,{headers:h,status:d.value.status||200})),null};M?await c(M):await H.withPropagatedContext(e.headers,()=>H.trace(d.BaseServerSpan.handleRequest,{spanName:`${P} ${R}`,kind:n.SpanKind.SERVER,attributes:{"http.method":P,"http.target":e.url}},c))}catch(t){if(t instanceof h.NoFallbackError||await x.onRequestError(e,t,{routerKind:"App Router",routePath:b,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:w})},!1,U),D)throw t;return await (0,E.sendResponse)(G,B,new Response(null,{status:500})),null}}e.s(["handler",()=>w,"patchFetch",()=>U,"routeModule",()=>x,"serverHooks",()=>S,"workAsyncStorage",()=>I,"workUnitAsyncStorage",()=>L],492607)}];
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__ff9cd277._.js.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module.exports=[324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},362562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},599944,e=>{"use strict";var t=e.i(362562),r=e.i(814747);let s=null,a=!1;function n(){if(!a){for(let e of function(){let e=[r.default.join(process.cwd(),"package.json")];for(let t of(process.env.NODE_PATH||"").split(r.default.delimiter))t&&e.push(r.default.join(t,"_anchor.js"));return e}())try{s=(0,t.createRequire)(e)("@spaces/teams");break}catch{}a=!0}return s}function i(){return null!==n()}e.s(["getTeams",()=>n,"hasTeams",()=>i])},798003,e=>{"use strict";var t=e.i(814747),r=e.i(522734),s=e.i(446786),a=e.i(254799),n=e.i(717516),i=e.i(599944);let o={port:parseInt(process.env.SPACES_PORT||"3457",10),costRates:{"claude-opus-4-5-20251101":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},"claude-opus-4-6":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-haiku-4-5-20251001":{input:.8,output:4,cacheRead:.08,cacheWrite:1}}};function l(e){let a,o=e;if(n.HAS_MULTIUSER)try{let t=(0,i.getTeams)();t&&(o=t.admin.resolveShellUser(e))}catch{}if(o===s.default.userInfo().username)a=s.default.homedir();else if(1){let e=t.default.dirname(s.default.homedir()),n=t.default.join(e,o);a=r.default.existsSync(n)?n:s.default.homedir()}else a=`/home/${o}`;let l=o===s.default.userInfo().username?t.default.join(s.default.homedir(),".spaces"):t.default.join(s.default.homedir(),".spaces","users",e);return{claudeDir:t.default.join(a,".claude"),claudeProjectsDir:t.default.join(a,".claude","projects"),statsPath:t.default.join(a,".claude","stats-cache.json"),codexDir:t.default.join(a,".codex"),codexSessionsDir:t.default.join(a,".codex","sessions"),geminiDir:t.default.join(a,".gemini"),geminiChatsBaseDir:t.default.join(a,".gemini","tmp"),geminiProjectsRegistry:t.default.join(a,".gemini","projects.json"),forgeDir:t.default.join(a,".forge"),forgeConversationsDir:t.default.join(a,".forge","conversations"),spacesDir:l,dbPath:t.default.join(l,"spaces.db"),configPath:t.default.join(l,"config.json")}}function c(e){let{spacesDir:t}=l(e);r.default.existsSync(t)||r.default.mkdirSync(t,{recursive:!0})}function d(e){let{configPath:t,spacesDir:s}=l(e);try{if(r.default.existsSync(t)){let e=JSON.parse(r.default.readFileSync(t,"utf-8"));return{installId:e.installId||a.default.randomUUID(),telemetryOptOut:!!e.telemetryOptOut,devDirectories:Array.isArray(e.devDirectories)?e.devDirectories.filter(e=>"string"==typeof e):[],todosEnabled:!!e.todosEnabled,...e.cortex&&"object"==typeof e.cortex?{cortex:e.cortex}:{},customModels:Array.isArray(e.customModels)?e.customModels:[]}}}catch{}r.default.existsSync(s)||r.default.mkdirSync(s,{recursive:!0});let n={installId:a.default.randomUUID(),telemetryOptOut:!1,devDirectories:[],todosEnabled:!1,customModels:[]};return r.default.writeFileSync(t,JSON.stringify(n,null,2)),n}function u(e,t){let s={...d(e),...t},{configPath:a}=l(e);return r.default.writeFileSync(a,JSON.stringify(s,null,2)),s}e.s(["config",0,o,"ensureUserSpacesDir",()=>c,"getUserPaths",()=>l,"readConfig",()=>d,"writeConfig",()=>u])},254799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},804730,e=>{e.v({name:"@jlongo78/agent-spaces",version:"0.9.9",description:"Agent workspace manager for Claude, Codex, Gemini, and more",bin:{spaces:"./bin/spaces.js"},files:["bin/",".next/standalone/"],engines:{node:">=20.9.0"},repository:{type:"git",url:"git+https://github.com/jlongo78/spaces.git"},keywords:["ai","agent","workspace","terminal","claude","codex","gemini"],homepage:"http://www.agentspaces.co",license:"AGPL-3.0-only",scripts:{start:"node bin/spaces.js",dev:"node bin/spaces-dev.js",build:"cross-env STANDALONE=1 next build && node -e \"const fs=require('fs');fs.cpSync('.next/static','.next/standalone/.next/static',{recursive:true});fs.cpSync('public','.next/standalone/public',{recursive:true})\" && node bin/fix-standalone-externals.js",postinstall:"node bin/spaces-postinstall.js || true",prepublishOnly:"npm run build",setup:"node bin/spaces-setup.js","setup-admin":"node bin/setup-admin.js","server:build":"next build","server:start":"next start --port 3457",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage",lint:"eslint"},dependencies:{"@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@google-cloud/compute":"^6.9.0","@huggingface/transformers":"^3.8.1","@lancedb/lancedb":"^0.26.2","@modelcontextprotocol/sdk":"^1.27.1","@react-three/drei":"^10.7.7","@react-three/fiber":"^9.5.0","@react-three/postprocessing":"^3.0.4","@react-three/xr":"^6.6.29","@xterm/addon-canvas":"^0.7.0","better-sqlite3":"^12.6.2","bonjour-service":"^1.3.0","dockview-react":"^5.2.0","force-graph":"^1.51.2","node-pty":"^1.1.0","react-resizable-panels":"^4.7.6",three:"^0.183.2",ws:"^8.19.0"},devDependencies:{"@tailwindcss/postcss":"^4","@tanstack/react-query":"^5.90.21","@types/better-sqlite3":"^7.6.13","@types/node":"^20","@types/qrcode":"^1.5.6","@types/react":"^19","@types/react-dom":"^19","@types/three":"^0.183.1","@types/ws":"^8.18.1","@vitest/coverage-v8":"^4.0.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0",chokidar:"^5.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1","cross-env":"^10.1.0","date-fns":"^4.1.0",eslint:"^9","eslint-config-next":"16.1.6",geist:"^1.4.1","lucide-react":"^0.575.0",next:"16.1.6",otpauth:"^9.5.0","posthog-js":"^1.352.0","posthog-node":"^5.21.2",qrcode:"^1.5.4",react:"19.2.3","react-dom":"19.2.3","react-markdown":"^10.1.0",recharts:"^3.7.0","rehype-highlight":"^7.0.2","remark-gfm":"^4.0.1","tailwind-merge":"^3.5.0",tailwindcss:"^4",typescript:"^5",vitest:"^4.0.18",xterm:"^5.3.0"},optionalDependencies:{"@types/qrcode":"^1.5.6",otpauth:"^9.5.0",qrcode:"^1.5.4"}})},717516,e=>{"use strict";let t=process.env.SPACES_TIER||process.env.NEXT_PUBLIC_TIER||("server"===process.env.NEXT_PUBLIC_EDITION?"federation":"community"),r="team"===t||"federation"===t,s="federation"===t,a=r||"1"===process.env.SPACES_HAS_CORTEX,n=!r;function i(){let i="0.0.0";try{i=e.r(804730).version}catch{}return{tier:t,version:i,hasAuth:r,hasAdmin:r,hasCollaboration:r,hasNetwork:s,hasMultiuser:r,hasCortex:a,isDesktop:n,basePath:""}}e.s(["HAS_ADMIN",0,r,"HAS_AUTH",0,r,"HAS_COLLABORATION",0,r,"HAS_CORTEX",0,a,"HAS_MULTIUSER",0,r,"HAS_NETWORK",0,s,"IS_DESKTOP",0,n,"IS_FEDERATION",0,s,"IS_TEAM",0,r,"TIER",0,t,"getTierFlags",()=>i])},410430,(e,t,r)=>{t.exports=e.x("async_hooks",()=>require("async_hooks"))},79832,e=>{"use strict";var t=e.i(410430),r=e.i(446786),s=e.i(717516);let a=new t.AsyncLocalStorage;function n(e){return s.HAS_AUTH&&e.headers.get("x-auth-user")||r.default.userInfo().username}function i(e,t){return a.run(e,t)}function o(e){return s.HAS_AUTH?e.headers.get("x-auth-role")||"user":"admin"}function l(){let e=a.getStore();return e||r.default.userInfo().username}e.s(["getAuthRole",()=>o,"getAuthUser",()=>n,"getCurrentUser",()=>l,"withUser",()=>i])},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3-90e2652d1716b047",()=>require("better-sqlite3-90e2652d1716b047"))},507304,e=>{"use strict";var t=e.i(785148),r=e.i(798003),s=e.i(79832);let a=new Map;function n(){let n=(0,s.getCurrentUser)(),i=a.get(n);if(i)return i;(0,r.ensureUserSpacesDir)(n);let{dbPath:o}=(0,r.getUserPaths)(n),l=new t.default(o);return l.pragma("journal_mode = WAL"),l.pragma("synchronous = NORMAL"),l.pragma("foreign_keys = ON"),function(t){let r;t.exec(`
|
|
2
|
+
CREATE TABLE IF NOT EXISTS projects (
|
|
3
|
+
id TEXT PRIMARY KEY,
|
|
4
|
+
name TEXT NOT NULL,
|
|
5
|
+
path TEXT NOT NULL,
|
|
6
|
+
claude_path TEXT NOT NULL,
|
|
7
|
+
session_count INTEGER DEFAULT 0,
|
|
8
|
+
last_activity TEXT
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
CREATE TABLE IF NOT EXISTS sessions (
|
|
12
|
+
id TEXT PRIMARY KEY,
|
|
13
|
+
session_id TEXT NOT NULL,
|
|
14
|
+
project_id TEXT NOT NULL,
|
|
15
|
+
first_prompt TEXT,
|
|
16
|
+
summary TEXT,
|
|
17
|
+
message_count INTEGER DEFAULT 0,
|
|
18
|
+
created TEXT,
|
|
19
|
+
modified TEXT,
|
|
20
|
+
git_branch TEXT,
|
|
21
|
+
project_path TEXT,
|
|
22
|
+
full_path TEXT NOT NULL,
|
|
23
|
+
starred INTEGER DEFAULT 0,
|
|
24
|
+
custom_name TEXT,
|
|
25
|
+
notes TEXT,
|
|
26
|
+
FOREIGN KEY (project_id) REFERENCES projects(id)
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_project ON sessions(project_id);
|
|
30
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_created ON sessions(created);
|
|
31
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_modified ON sessions(modified);
|
|
32
|
+
CREATE INDEX IF NOT EXISTS idx_sessions_starred ON sessions(starred);
|
|
33
|
+
|
|
34
|
+
CREATE TABLE IF NOT EXISTS workspaces (
|
|
35
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
36
|
+
name TEXT NOT NULL,
|
|
37
|
+
description TEXT DEFAULT '',
|
|
38
|
+
color TEXT DEFAULT '#6366f1',
|
|
39
|
+
created TEXT DEFAULT (datetime('now'))
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
CREATE TABLE IF NOT EXISTS workspace_sessions (
|
|
43
|
+
workspace_id INTEGER NOT NULL,
|
|
44
|
+
session_id TEXT NOT NULL,
|
|
45
|
+
PRIMARY KEY (workspace_id, session_id),
|
|
46
|
+
FOREIGN KEY (workspace_id) REFERENCES workspaces(id) ON DELETE CASCADE,
|
|
47
|
+
FOREIGN KEY (session_id) REFERENCES sessions(id) ON DELETE CASCADE
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
CREATE TABLE IF NOT EXISTS tags (
|
|
51
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
52
|
+
name TEXT NOT NULL UNIQUE,
|
|
53
|
+
color TEXT DEFAULT '#8b5cf6'
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
CREATE TABLE IF NOT EXISTS session_tags (
|
|
57
|
+
session_id TEXT NOT NULL,
|
|
58
|
+
tag_id INTEGER NOT NULL,
|
|
59
|
+
PRIMARY KEY (session_id, tag_id),
|
|
60
|
+
FOREIGN KEY (session_id) REFERENCES sessions(id) ON DELETE CASCADE,
|
|
61
|
+
FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
CREATE TABLE IF NOT EXISTS sync_state (
|
|
65
|
+
file_path TEXT PRIMARY KEY,
|
|
66
|
+
mtime INTEGER,
|
|
67
|
+
byte_offset INTEGER DEFAULT 0,
|
|
68
|
+
last_synced TEXT DEFAULT (datetime('now'))
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
CREATE TABLE IF NOT EXISTS panes (
|
|
72
|
+
id TEXT PRIMARY KEY,
|
|
73
|
+
title TEXT NOT NULL DEFAULT 'Terminal',
|
|
74
|
+
color TEXT NOT NULL DEFAULT '#6366f1',
|
|
75
|
+
cwd TEXT NOT NULL,
|
|
76
|
+
claude_session_id TEXT,
|
|
77
|
+
grid_col INTEGER NOT NULL DEFAULT 0,
|
|
78
|
+
grid_row INTEGER NOT NULL DEFAULT 0,
|
|
79
|
+
sort_order INTEGER NOT NULL DEFAULT 0,
|
|
80
|
+
shell TEXT,
|
|
81
|
+
created TEXT DEFAULT (datetime('now'))
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
CREATE TABLE IF NOT EXISTS totp (
|
|
85
|
+
username TEXT PRIMARY KEY,
|
|
86
|
+
secret TEXT NOT NULL,
|
|
87
|
+
enabled INTEGER DEFAULT 0,
|
|
88
|
+
created TEXT DEFAULT (datetime('now'))
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
CREATE TABLE IF NOT EXISTS workspace_todos (
|
|
92
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
93
|
+
workspace_id INTEGER NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE,
|
|
94
|
+
text TEXT NOT NULL,
|
|
95
|
+
completed INTEGER NOT NULL DEFAULT 0,
|
|
96
|
+
sort_order INTEGER NOT NULL DEFAULT 0,
|
|
97
|
+
created TEXT NOT NULL DEFAULT (datetime('now')),
|
|
98
|
+
completed_at TEXT
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
CREATE INDEX IF NOT EXISTS idx_workspace_todos_workspace
|
|
102
|
+
ON workspace_todos(workspace_id);
|
|
103
|
+
`);let s=(e,r,s)=>{try{t.exec(`ALTER TABLE ${e} ADD COLUMN ${r} ${s}`)}catch{}};s("workspaces","is_active","INTEGER DEFAULT 0"),s("workspaces","updated","TEXT"),s("workspaces","lobe_config","TEXT DEFAULT '{}'"),s("panes","workspace_id","INTEGER"),s("panes","is_popout","INTEGER DEFAULT 0"),s("panes","win_x","INTEGER"),s("panes","win_y","INTEGER"),s("panes","win_width","INTEGER DEFAULT 800"),s("panes","win_height","INTEGER DEFAULT 600"),s("panes","agent_type","TEXT DEFAULT 'shell'"),s("panes","custom_command","TEXT"),s("panes","node_id","TEXT"),s("sessions","agent_type","TEXT DEFAULT 'claude'"),s("projects","agent_type","TEXT DEFAULT 'claude'"),s("projects","agent_path","TEXT");try{t.exec("UPDATE projects SET agent_path = claude_path WHERE agent_path IS NULL AND claude_path IS NOT NULL")}catch{}s("workspaces","collaboration","INTEGER DEFAULT 0"),s("panes","is_collaborating","INTEGER DEFAULT 0"),s("panes","diff_baseline_sha","TEXT"),s("panes","custom_model_id","TEXT");try{t.exec("CREATE INDEX IF NOT EXISTS idx_sessions_agent_type ON sessions(agent_type)")}catch{}try{t.exec("CREATE INDEX IF NOT EXISTS idx_projects_agent_type ON projects(agent_type)")}catch{}let a=t.prepare("SELECT id FROM workspaces WHERE name = 'Default'").get();a?(r=a.id,t.prepare("SELECT id FROM workspaces WHERE is_active = 1").get()||t.prepare("UPDATE workspaces SET is_active = 1 WHERE id = ?").run(r)):r=Number(t.prepare("INSERT INTO workspaces (name, description, color, is_active) VALUES ('Default', 'Default workspace', '#6366f1', 1)").run().lastInsertRowid);let n=t.prepare("SELECT id FROM workspaces WHERE is_active = 1").get();n&&t.prepare("UPDATE panes SET workspace_id = ? WHERE workspace_id IS NULL").run(n.id);try{t.exec(`
|
|
104
|
+
CREATE VIRTUAL TABLE IF NOT EXISTS sessions_fts USING fts5(
|
|
105
|
+
session_id,
|
|
106
|
+
content,
|
|
107
|
+
content_rowid='rowid'
|
|
108
|
+
);
|
|
109
|
+
`)}catch{}try{let{getTeams:r}=e.r(599944),s=r();s&&s.db.runMigrations(t)}catch{}}(l),a.set(n,l),l}function i(){for(let e of a.values())e.close();a.clear()}e.s(["__testing",0,{dbs:a},"closeDb",()=>i,"getDb",()=>n])},792687,e=>{"use strict";var t=e.i(362562),r=e.i(814747);let s=null,a=!1;function n(){if(!a){let n=[r.default.join(process.cwd(),"package.json")];for(let e of(process.env.NODE_PATH||"").split(r.default.delimiter))e&&n.push(r.default.join(e,"_anchor.js"));for(let e of n)try{s=(0,t.createRequire)(e)("@spaces/cortex");break}catch{}if(a=!0,s&&!s.hasHostAdapter())try{let t=e.r(79832),r=e.r(798003),a=e.r(507304),n=e.r(717516);s.setHostAdapter({getAuthUser:e=>t.getAuthUser(e),withUser:(e,r)=>t.withUser(e,r),getCurrentUser:()=>t.getCurrentUser(),getUserPaths:e=>r.getUserPaths(e),getDb:()=>a.getDb(),hasCortex:()=>n.HAS_CORTEX,isFederation:()=>n.IS_FEDERATION})}catch{}}return s}function i(){return n()}async function o(){return n()?.getCortex()??null}function l(){return n()?.isCortexAvailable()??!1}function c(){d=null,n()?.resetCortex()}let d=null;async function u(){if(d)return d;let e=n();if(!e)return null;let t=await e.getCortex();if(!t)return null;try{let{createClient:r,EmbeddedConnection:s,RemoteConnection:a,loadConfig:n}=e,i=[new s({name:"local",domains:t.domainRegistry.list(),writable:!0,default:!0,primary:!0,engine:t})];try{for(let e of n().connections)"remote"===e.type&&i.push(new a(e))}catch{}return d=r({connections:i})}catch(e){return console.warn("[cortex] Client library not available, multi-server disabled:",e),null}}e.s(["getCortex",()=>o,"getCortexAddon",()=>i,"getCortexClient",()=>u,"isCortexAvailable",()=>l,"resetCortex",()=>c])},535715,e=>{"use strict";var t=e.i(747909),r=e.i(174017),s=e.i(996250),a=e.i(759756),n=e.i(561916),i=e.i(174677),o=e.i(869741),l=e.i(316795),c=e.i(487718),d=e.i(995169),u=e.i(47587),E=e.i(666012),p=e.i(570101),T=e.i(626937),f=e.i(10372),h=e.i(193695);e.i(52474);var N=e.i(600220),R=e.i(89171),g=e.i(79832),A=e.i(792687);async function x(e,{params:t}){let r=(0,g.getAuthUser)(e);return(0,g.withUser)(r,async()=>{if(!(0,A.isCortexAvailable)())return R.NextResponse.json({error:"Cortex unavailable"},{status:403});let e=await (0,A.getCortex)();if(!e?.graph)return R.NextResponse.json({error:"Cortex disabled"},{status:503});let{id:r}=await t,s=e.graph.getEntity(r);return s?R.NextResponse.json({entity:s}):R.NextResponse.json({error:"Not found"},{status:404})})}async function m(e,{params:t}){let r=(0,g.getAuthUser)(e);return(0,g.withUser)(r,async()=>{if(!(0,A.isCortexAvailable)())return R.NextResponse.json({error:"Cortex unavailable"},{status:403});let r=await (0,A.getCortex)();if(!r?.graph)return R.NextResponse.json({error:"Cortex disabled"},{status:503});let{id:s}=await t,{name:a,metadata:n}=await e.json(),i=r.graph.updateEntity(s,{name:a,metadata:n});return i?R.NextResponse.json({entity:i}):R.NextResponse.json({error:"Not found"},{status:404})})}async function _(e,{params:t}){let r=(0,g.getAuthUser)(e);return(0,g.withUser)(r,async()=>{if(!(0,A.isCortexAvailable)())return R.NextResponse.json({error:"Cortex unavailable"},{status:403});let e=await (0,A.getCortex)();if(!e?.graph)return R.NextResponse.json({error:"Cortex disabled"},{status:503});let{id:r}=await t;return e.graph.deleteEntity(r),R.NextResponse.json({deleted:!0})})}e.s(["DELETE",()=>_,"GET",()=>x,"PATCH",()=>m],791642);var I=e.i(791642);let L=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/cortex/graph/entities/[id]/route",pathname:"/api/cortex/graph/entities/[id]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cortex/graph/entities/[id]/route.ts",nextConfigOutput:"standalone",userland:I}),{workAsyncStorage:w,workUnitAsyncStorage:y,serverHooks:S}=L;function C(){return(0,s.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:y})}async function U(e,t,s){L.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/cortex/graph/entities/[id]/route";R=R.replace(/\/index$/,"")||"/";let g=await L.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:A,params:x,nextConfig:m,parsedUrl:_,isDraftMode:I,prerenderManifest:w,routerServerContext:y,isOnDemandRevalidate:S,revalidateOnlyGenerated:C,resolvedPathname:U,clientReferenceManifest:v,serverActionsManifest:O}=g,D=(0,o.normalizeAppPath)(R),b=!!(w.dynamicRoutes[D]||w.routes[U]),j=async()=>((null==y?void 0:y.render404)?await y.render404(e,t,_,!1):t.end("This page could not be found"),null);if(b&&!I){let e=!!w.routes[U],t=w.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(m.experimental.adapterPath)return await j();throw new h.NoFallbackError}}let X=null;!b||L.isDev||I||(X="/index"===(X=U)?"/":X);let F=!0===L.isDev||!b,k=b&&!F;O&&v&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:v,serverActionsManifest:O});let P=e.method||"GET",H=(0,n.getTracer)(),M=H.getActiveScopeSpan(),q={params:x,prerenderManifest:w,renderOpts:{experimental:{authInterrupts:!!m.experimental.authInterrupts},cacheComponents:!!m.cacheComponents,supportsDynamicResponse:F,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:m.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>L.onRequestError(e,t,s,a,y)},sharedContext:{buildId:A}},G=new l.NodeNextRequest(e),K=new l.NodeNextResponse(t),Y=c.NextRequestAdapter.fromNodeNextRequest(G,(0,c.signalFromNodeResponse)(t));try{let i=async e=>L.handle(Y,q).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${P} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${P} ${R}`)}),o=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var n,l;let c=async({previousCacheEntry:r})=>{try{if(!o&&S&&C&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(a);e.fetchMetrics=q.renderOpts.fetchMetrics;let l=q.renderOpts.pendingWaitUntil;l&&s.waitUntil&&(s.waitUntil(l),l=void 0);let c=q.renderOpts.collectedTags;if(!b)return await (0,E.sendResponse)(G,K,n,q.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,p.toNodeOutgoingHttpHeaders)(n.headers);c&&(t[f.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==q.renderOpts.collectedRevalidate&&!(q.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&q.renderOpts.collectedRevalidate,s=void 0===q.renderOpts.collectedExpire||q.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:q.renderOpts.collectedExpire;return{value:{kind:N.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await L.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:k,isOnDemandRevalidate:S})},!1,y),t}},d=await L.handleResponse({req:e,nextConfig:m,cacheKey:X,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:w,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:C,responseGenerator:c,waitUntil:s.waitUntil,isMinimalMode:o});if(!b)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==N.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",S?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);return o&&b||h.delete(f.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,T.getCacheControlHeader)(d.cacheControl)),await (0,E.sendResponse)(G,K,new Response(d.value.body,{headers:h,status:d.value.status||200})),null};M?await l(M):await H.withPropagatedContext(e.headers,()=>H.trace(d.BaseServerSpan.handleRequest,{spanName:`${P} ${R}`,kind:n.SpanKind.SERVER,attributes:{"http.method":P,"http.target":e.url}},l))}catch(t){if(t instanceof h.NoFallbackError||await L.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:k,isOnDemandRevalidate:S})},!1,y),b)throw t;return await (0,E.sendResponse)(G,K,new Response(null,{status:500})),null}}e.s(["handler",()=>U,"patchFetch",()=>C,"routeModule",()=>L,"serverHooks",()=>S,"workAsyncStorage",()=>w,"workUnitAsyncStorage",()=>y],535715)}];
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__ffaea2ce._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[596221,a=>{"use strict";let b=(0,a.i(883706).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],596221)},859603,a=>{"use strict";var b=a.i(433217),c=a.i(370025),d=a.i(937927),e=a.i(119032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},400210,a=>{"use strict";let b=(0,a.i(883706).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],400210)},641710,a=>{"use strict";let b=(0,a.i(883706).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);a.s(["Clock",()=>b],641710)},915618,a=>{"use strict";let b=(0,a.i(883706).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],915618)},781560,a=>{"use strict";let b=(0,a.i(883706).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash2",()=>b],781560)},821374,a=>{"use strict";let b=(0,a.i(883706).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);a.s(["Star",()=>b],821374)},510948,a=>{"use strict";let b=(0,a.i(883706).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);a.s(["GitBranch",()=>b],510948)},2835,a=>{"use strict";let b=(0,a.i(883706).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);a.s(["Hash",()=>b],2835)},73570,a=>{"use strict";let b=(0,a.i(883706).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",()=>b],73570)},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},857764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},177156,a=>{"use strict";let b=(0,a.i(883706).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],177156)},405784,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],405784)},50522,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>b],50522)},692759,a=>{"use strict";let b=(0,a.i(883706).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],692759)},699464,a=>{"use strict";let b=(0,a.i(883706).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],699464)},533441,a=>{"use strict";let b=(0,a.i(883706).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],533441)},705151,a=>{"use strict";let b=(0,a.i(883706).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],705151)},80386,a=>{"use strict";let b=(0,a.i(883706).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",()=>b],80386)},104720,a=>{"use strict";let b=(0,a.i(883706).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",()=>b],104720)},533350,a=>{"use strict";let b=(0,a.i(883706).default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);a.s(["Tag",()=>b],533350)},767552,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);a.s(["ChevronUp",()=>b],767552)},463002,a=>{"use strict";var b=a.i(187924),c=a.i(368114);let d=["#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e","#78716c"];function e({value:a,onChange:e,className:f}){return(0,b.jsx)("div",{className:(0,c.cn)("grid grid-cols-8 gap-1.5",f),children:d.map(d=>(0,b.jsx)("button",{onClick:()=>e(d),className:(0,c.cn)("w-6 h-6 rounded-full border-2 transition-transform hover:scale-110",a===d?"border-foreground scale-110":"border-transparent"),style:{backgroundColor:d},title:d},d))})}a.s(["ColorPicker",()=>e])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__2cffc362._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[821374,a=>{"use strict";let b=(0,a.i(883706).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);a.s(["Star",()=>b],821374)},596221,a=>{"use strict";let b=(0,a.i(883706).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],596221)},859603,a=>{"use strict";var b=a.i(433217),c=a.i(370025),d=a.i(937927),e=a.i(119032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},400210,a=>{"use strict";let b=(0,a.i(883706).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],400210)},17299,a=>{"use strict";var b=a.i(187924),c=a.i(50944),d=a.i(400210),e=a.i(368114);function f({title:a,showBack:f,backHref:g,right:h,className:i}){let j=(0,c.useRouter)();return(0,b.jsxs)("header",{className:(0,e.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",i),children:[f&&(0,b.jsx)("button",{onClick:()=>{g?j.push(g):j.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,b.jsx)(d.ArrowLeft,{className:"w-5 h-5"})}),(0,b.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:a}),h&&(0,b.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:h})]})}a.s(["MobileHeader",()=>f])},533441,a=>{"use strict";let b=(0,a.i(883706).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],533441)},244494,a=>{"use strict";let b=(0,a.i(883706).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);a.s(["Globe",()=>b],244494)},699464,a=>{"use strict";let b=(0,a.i(883706).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],699464)},705151,a=>{"use strict";let b=(0,a.i(883706).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],705151)},104975,630032,a=>{"use strict";var b=a.i(883706);let c=(0,b.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);a.s(["Mic",()=>c],104975);let d=(0,b.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);a.s(["MicOff",()=>d],630032)},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},857764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},73570,a=>{"use strict";let b=(0,a.i(883706).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",()=>b],73570)},50522,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>b],50522)},587532,a=>{"use strict";let b=(0,a.i(883706).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",()=>b],587532)},405784,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],405784)},80386,a=>{"use strict";let b=(0,a.i(883706).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",()=>b],80386)},861545,a=>{"use strict";let b=(0,a.i(883706).default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);a.s(["Brain",()=>b],861545)},104720,a=>{"use strict";let b=(0,a.i(883706).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",()=>b],104720)},177156,a=>{"use strict";let b=(0,a.i(883706).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],177156)},692759,a=>{"use strict";let b=(0,a.i(883706).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],692759)},19544,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(104975),e=a.i(630032),f=a.i(368114);function g({onTranscript:a}){let{isListening:g,isSupported:h,transcript:i,interimTranscript:j,startListening:k,stopListening:l}=function(){let[a,b]=(0,c.useState)(!1),[d,e]=(0,c.useState)(!1),[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)(""),j=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a,c;try{a=window.SpeechRecognition||window.webkitSpeechRecognition}catch{}if(e(!!a),a){try{(c=new a).continuous=!1,c.interimResults=!0,c.lang="en-US"}catch{e(!1);return}c.onresult=a=>{let b="",c="";for(let d=a.resultIndex;d<a.results.length;d++){let e=a.results[d];e.isFinal?c+=e[0].transcript:b+=e[0].transcript}c?(g(c),i("")):i(b)},c.onerror=()=>{b(!1)},c.onend=()=>{b(!1)},j.current=c}},[]);let k=(0,c.useCallback)(()=>{if(j.current&&!a){g(""),i("");try{j.current.start(),b(!0)}catch{}}},[a]);return{isListening:a,isSupported:d,transcript:f,interimTranscript:h,startListening:k,stopListening:(0,c.useCallback)(()=>{if(j.current){try{j.current.stop()}catch{}b(!1)}},[]),resetTranscript:(0,c.useCallback)(()=>{g(""),i("")},[])}}();return((0,c.useEffect)(()=>{i&&a(i)},[i,a]),h)?(0,b.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,b.jsx)("button",{onClick:g?l:k,className:(0,f.cn)("p-2.5 rounded-xl transition-colors",g?"bg-red-500 text-white animate-pulse":"bg-zinc-800 text-zinc-400 hover:text-white"),children:g?(0,b.jsx)(e.MicOff,{className:"w-4 h-4"}):(0,b.jsx)(d.Mic,{className:"w-4 h-4"})}),g&&j&&(0,b.jsx)("div",{className:"absolute bottom-full left-0 mb-2 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-300 whitespace-nowrap max-w-[200px] truncate shadow-xl",children:j})]}):null}a.s(["VoiceInput",()=>g],19544)},264033,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(937927),e=a.i(859603),f=a.i(820078),g=a.i(17299),h=a.i(692759),i=a.i(948124),j=a.i(596221),k=a.i(19544),l=a.i(368114),m=a.i(119032),n=a.i(762180),o=a.i(558348);function p({sessionId:a,projectPath:d,onMessageSent:e}){let[f,g]=(0,c.useState)(""),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(""),[t,u]=(0,c.useState)(null),v=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null);(0,c.useEffect)(()=>{v.current&&(v.current.style.height="auto",v.current.style.height=`${Math.min(v.current.scrollHeight,120)}px`)},[f]),(0,c.useEffect)(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},[r]);let y=(0,c.useCallback)(async()=>{if(!f.trim()||p)return;q(!0),s(""),u(null);let b=new AbortController;x.current=b;try{let c=await fetch((0,m.api)(`/api/sessions/${a}/chat`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:f.trim(),cwd:d}),signal:b.signal});if(!c.ok){let a=await c.json();u(a.error||"Failed to send message"),q(!1);return}let h=c.body?.getReader();if(!h){u("No response stream"),q(!1);return}let i=new TextDecoder,j="",k="";for(g("");;){let{done:a,value:b}=await h.read();if(a)break;let c=(j+=i.decode(b,{stream:!0})).split("\n\n");for(let a of(j=c.pop()||"",c)){if(!a.startsWith("data: "))continue;let b=a.slice(6);try{let a=JSON.parse(b);if("done"===a.type)e?.();else if("error"===a.type)u(b=>(b||"")+(a.text||""));else if("stderr"===a.type){let b=a.text||"";(b.includes("Error")||b.includes("error"))&&u(a=>(a||"")+b)}else if("assistant"===a.type){let b=a.message?.content||a.content;if(Array.isArray(b))for(let a of b)"text"===a.type&&a.text&&(k+=a.text,s(k))}else if("content_block_delta"===a.type)(a.content?.type==="text_delta"||a.text)&&(k+=a.content?.text||a.text||"",s(k));else if("text"===a.type)k+=a.text||"",s(k);else if("result"===a.type){if(!k){let b=a.result;"string"==typeof b&&(k=b,s(k))}e?.()}}catch{}}}}catch(a){"AbortError"!==a.name&&u(a.message||"Connection failed")}finally{q(!1),x.current=null}},[f,p,a,d,e]);return(0,b.jsxs)("div",{className:"flex-shrink-0 border-t border-zinc-800 bg-zinc-950 pb-[env(safe-area-inset-bottom)]",children:[(r||t||p)&&(0,b.jsx)("div",{className:"border-b border-zinc-800",children:(0,b.jsxs)("div",{ref:w,className:"max-h-40 overflow-y-auto px-4 py-3 text-sm",children:[t&&(0,b.jsx)("div",{className:"text-red-400 text-xs mb-2 bg-red-950/20 rounded px-3 py-2",children:t}),r&&(0,b.jsx)("div",{className:"prose prose-sm prose-invert max-w-none prose-pre:bg-zinc-800 prose-pre:text-xs",children:(0,b.jsx)(n.default,{remarkPlugins:[o.default],children:r})}),p&&!r&&!t&&(0,b.jsxs)("div",{className:"flex items-center gap-2 text-zinc-500 text-xs",children:[(0,b.jsx)(j.Loader2,{className:"w-3 h-3 animate-spin"}),"Waiting for Claude..."]})]})}),(0,b.jsxs)("div",{className:"flex items-end gap-2 px-3 py-2",children:[(0,b.jsx)(k.VoiceInput,{onTranscript:a=>{g(b=>b?`${b} ${a}`:a),v.current?.focus()}}),(0,b.jsx)("textarea",{ref:v,value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),y())},placeholder:p?"Claude is thinking...":"Message...",disabled:p,rows:1,className:(0,l.cn)("flex-1 resize-none rounded-xl border px-3 py-2 text-sm bg-zinc-900","focus:outline-none focus:ring-1 focus:ring-indigo-500","placeholder:text-zinc-600 border-zinc-700","max-h-[120px]",p&&"opacity-50")}),p?(0,b.jsx)("button",{onClick:()=>{x.current?.abort(),q(!1)},className:"p-2.5 rounded-xl bg-red-500 text-white flex-shrink-0",children:(0,b.jsx)(i.Square,{className:"w-4 h-4"})}):(0,b.jsx)("button",{onClick:y,disabled:!f.trim(),className:(0,l.cn)("p-2.5 rounded-xl flex-shrink-0",f.trim()?"bg-indigo-500 text-white":"bg-zinc-800 text-zinc-600"),children:(0,b.jsx)(h.Send,{className:"w-4 h-4"})})]})]})}var q=a.i(821374),r=a.i(296101),s=a.i(563588);function t({params:a}){let{id:h}=(0,c.use)(a),[i,k]=(0,c.useState)([]),[m,n]=(0,c.useState)(0),o=(0,c.useRef)(null),{data:t,isLoading:u}=(0,e.useSession)(h),{data:v,isLoading:w}=(0,e.useMessages)(h,50*m,50),x=(0,e.useToggleStar)(),y=(0,d.useQueryClient)(),z=(0,c.useCallback)(()=>{setTimeout(()=>{n(0),k([]),y.invalidateQueries({queryKey:["messages",h]}),y.invalidateQueries({queryKey:["session",h]})},1500)},[h,y]);(0,c.useEffect)(()=>{v?.messages&&v.messages.length>0&&(0===m?k(v.messages):k(a=>[...a,...v.messages]))},[v,m]),(0,c.useEffect)(()=>{i.length>0&&0===m&&setTimeout(()=>{o.current?.scrollTo({top:o.current.scrollHeight})},100)},[i.length,m]);let A=(0,c.useCallback)(()=>{!w&&v?.hasMore&&n(a=>a+1)},[w,v?.hasMore]);if(u)return(0,b.jsx)("div",{className:"flex items-center justify-center h-[80dvh]",children:(0,b.jsx)(j.Loader2,{className:"w-6 h-6 animate-spin text-indigo-500"})});if(!t)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.MobileHeader,{title:"Session",showBack:!0,backHref:"/m/sessions"}),(0,b.jsx)("div",{className:"p-6 text-center",children:(0,b.jsx)("p",{className:"text-red-500 text-sm",children:"Session not found."})})]});let B=t.customName||t.summary||(0,l.truncate)(t.firstPrompt,60),C=v?.total||t.messageCount,D=v?.hasMore??!0;return(0,b.jsxs)("div",{className:"flex flex-col h-[100dvh]",children:[(0,b.jsx)(g.MobileHeader,{title:B,showBack:!0,backHref:"/m/sessions",right:(0,b.jsx)("button",{onClick:()=>x.mutate(t.id),className:"p-1.5",children:(0,b.jsx)(q.Star,{className:(0,l.cn)("w-5 h-5",t.starred?"text-amber-500 fill-amber-500":"text-zinc-500")})})}),(0,b.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 text-[11px] text-zinc-500 border-b border-zinc-800 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1 text-indigo-400/70",children:[(0,b.jsx)(r.FolderOpen,{className:"w-3 h-3"}),t.projectName]}),(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(s.MessageSquare,{className:"w-3 h-3"}),C]}),(0,b.jsx)("span",{className:"ml-auto",children:(0,l.formatRelativeTime)(t.modified)})]}),(0,b.jsx)("div",{ref:o,className:"flex-1 overflow-y-auto",children:(0,b.jsx)("div",{className:"px-4 py-4 space-y-4",children:w&&0===i.length?(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,b.jsx)(j.Loader2,{className:"w-5 h-5 animate-spin text-indigo-500"}),(0,b.jsx)("span",{className:"text-xs text-zinc-500",children:"Loading conversation..."})]}):(0,b.jsxs)(b.Fragment,{children:[D&&(0,b.jsx)("div",{className:"text-center py-2",children:(0,b.jsxs)("button",{onClick:A,disabled:w,className:"px-4 py-2 text-xs bg-zinc-900 border border-zinc-800 rounded-lg text-zinc-400 disabled:opacity-50",children:[w?(0,b.jsx)(j.Loader2,{className:"w-3 h-3 animate-spin inline mr-1.5"}):null,"Load earlier (",C-i.length," more)"]})}),i.map((a,c)=>(0,b.jsx)(f.MessageRenderer,{message:a,isLast:c===i.length-1},a.uuid||`msg-${c}`)),!D&&i.length>0&&(0,b.jsx)("p",{className:"text-center text-[11px] text-zinc-600 py-2",children:"End of conversation"})]})})}),(0,b.jsx)(p,{sessionId:h,projectPath:t.projectPath,onMessageSent:z})]})}a.s(["default",()=>t],264033)}];
|
|
1
|
+
module.exports=[821374,a=>{"use strict";let b=(0,a.i(883706).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);a.s(["Star",()=>b],821374)},596221,a=>{"use strict";let b=(0,a.i(883706).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],596221)},859603,a=>{"use strict";var b=a.i(433217),c=a.i(370025),d=a.i(937927),e=a.i(119032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},400210,a=>{"use strict";let b=(0,a.i(883706).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],400210)},17299,a=>{"use strict";var b=a.i(187924),c=a.i(50944),d=a.i(400210),e=a.i(368114);function f({title:a,showBack:f,backHref:g,right:h,className:i}){let j=(0,c.useRouter)();return(0,b.jsxs)("header",{className:(0,e.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",i),children:[f&&(0,b.jsx)("button",{onClick:()=>{g?j.push(g):j.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,b.jsx)(d.ArrowLeft,{className:"w-5 h-5"})}),(0,b.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:a}),h&&(0,b.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:h})]})}a.s(["MobileHeader",()=>f])},533441,a=>{"use strict";let b=(0,a.i(883706).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],533441)},699464,a=>{"use strict";let b=(0,a.i(883706).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],699464)},244494,a=>{"use strict";let b=(0,a.i(883706).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);a.s(["Globe",()=>b],244494)},705151,a=>{"use strict";let b=(0,a.i(883706).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],705151)},104975,630032,a=>{"use strict";var b=a.i(883706);let c=(0,b.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);a.s(["Mic",()=>c],104975);let d=(0,b.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);a.s(["MicOff",()=>d],630032)},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},857764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},73570,a=>{"use strict";let b=(0,a.i(883706).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",()=>b],73570)},50522,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>b],50522)},587532,a=>{"use strict";let b=(0,a.i(883706).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",()=>b],587532)},405784,a=>{"use strict";let b=(0,a.i(883706).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],405784)},177156,a=>{"use strict";let b=(0,a.i(883706).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],177156)},861545,a=>{"use strict";let b=(0,a.i(883706).default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);a.s(["Brain",()=>b],861545)},104720,a=>{"use strict";let b=(0,a.i(883706).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",()=>b],104720)},692759,a=>{"use strict";let b=(0,a.i(883706).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],692759)},80386,a=>{"use strict";let b=(0,a.i(883706).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",()=>b],80386)},19544,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(104975),e=a.i(630032),f=a.i(368114);function g({onTranscript:a}){let{isListening:g,isSupported:h,transcript:i,interimTranscript:j,startListening:k,stopListening:l}=function(){let[a,b]=(0,c.useState)(!1),[d,e]=(0,c.useState)(!1),[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)(""),j=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a,c;try{a=window.SpeechRecognition||window.webkitSpeechRecognition}catch{}if(e(!!a),a){try{(c=new a).continuous=!1,c.interimResults=!0,c.lang="en-US"}catch{e(!1);return}c.onresult=a=>{let b="",c="";for(let d=a.resultIndex;d<a.results.length;d++){let e=a.results[d];e.isFinal?c+=e[0].transcript:b+=e[0].transcript}c?(g(c),i("")):i(b)},c.onerror=a=>{console.error("[SpeechRecognition] error:",a.error,a.message),b(!1)},c.onend=()=>{b(!1)},j.current=c}},[]);let k=(0,c.useCallback)(()=>{if(j.current&&!a){g(""),i("");try{j.current.start(),b(!0)}catch{}}},[a]);return{isListening:a,isSupported:d,transcript:f,interimTranscript:h,startListening:k,stopListening:(0,c.useCallback)(()=>{if(j.current){try{j.current.stop()}catch{}b(!1)}},[]),resetTranscript:(0,c.useCallback)(()=>{g(""),i("")},[])}}();return((0,c.useEffect)(()=>{i&&a(i)},[i,a]),h)?(0,b.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,b.jsx)("button",{onClick:g?l:k,className:(0,f.cn)("p-2.5 rounded-xl transition-colors",g?"bg-red-500 text-white animate-pulse":"bg-zinc-800 text-zinc-400 hover:text-white"),children:g?(0,b.jsx)(e.MicOff,{className:"w-4 h-4"}):(0,b.jsx)(d.Mic,{className:"w-4 h-4"})}),g&&j&&(0,b.jsx)("div",{className:"absolute bottom-full left-0 mb-2 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-300 whitespace-nowrap max-w-[200px] truncate shadow-xl",children:j})]}):null}a.s(["VoiceInput",()=>g],19544)},264033,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(937927),e=a.i(859603),f=a.i(820078),g=a.i(17299),h=a.i(692759),i=a.i(948124),j=a.i(596221),k=a.i(19544),l=a.i(368114),m=a.i(119032),n=a.i(762180),o=a.i(558348);function p({sessionId:a,projectPath:d,onMessageSent:e}){let[f,g]=(0,c.useState)(""),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(""),[t,u]=(0,c.useState)(null),v=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null);(0,c.useEffect)(()=>{v.current&&(v.current.style.height="auto",v.current.style.height=`${Math.min(v.current.scrollHeight,120)}px`)},[f]),(0,c.useEffect)(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},[r]);let y=(0,c.useCallback)(async()=>{if(!f.trim()||p)return;q(!0),s(""),u(null);let b=new AbortController;x.current=b;try{let c=await fetch((0,m.api)(`/api/sessions/${a}/chat`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:f.trim(),cwd:d}),signal:b.signal});if(!c.ok){let a=await c.json();u(a.error||"Failed to send message"),q(!1);return}let h=c.body?.getReader();if(!h){u("No response stream"),q(!1);return}let i=new TextDecoder,j="",k="";for(g("");;){let{done:a,value:b}=await h.read();if(a)break;let c=(j+=i.decode(b,{stream:!0})).split("\n\n");for(let a of(j=c.pop()||"",c)){if(!a.startsWith("data: "))continue;let b=a.slice(6);try{let a=JSON.parse(b);if("done"===a.type)e?.();else if("error"===a.type)u(b=>(b||"")+(a.text||""));else if("stderr"===a.type){let b=a.text||"";(b.includes("Error")||b.includes("error"))&&u(a=>(a||"")+b)}else if("assistant"===a.type){let b=a.message?.content||a.content;if(Array.isArray(b))for(let a of b)"text"===a.type&&a.text&&(k+=a.text,s(k))}else if("content_block_delta"===a.type)(a.content?.type==="text_delta"||a.text)&&(k+=a.content?.text||a.text||"",s(k));else if("text"===a.type)k+=a.text||"",s(k);else if("result"===a.type){if(!k){let b=a.result;"string"==typeof b&&(k=b,s(k))}e?.()}}catch{}}}}catch(a){"AbortError"!==a.name&&u(a.message||"Connection failed")}finally{q(!1),x.current=null}},[f,p,a,d,e]);return(0,b.jsxs)("div",{className:"flex-shrink-0 border-t border-zinc-800 bg-zinc-950 pb-[env(safe-area-inset-bottom)]",children:[(r||t||p)&&(0,b.jsx)("div",{className:"border-b border-zinc-800",children:(0,b.jsxs)("div",{ref:w,className:"max-h-40 overflow-y-auto px-4 py-3 text-sm",children:[t&&(0,b.jsx)("div",{className:"text-red-400 text-xs mb-2 bg-red-950/20 rounded px-3 py-2",children:t}),r&&(0,b.jsx)("div",{className:"prose prose-sm prose-invert max-w-none prose-pre:bg-zinc-800 prose-pre:text-xs",children:(0,b.jsx)(n.default,{remarkPlugins:[o.default],children:r})}),p&&!r&&!t&&(0,b.jsxs)("div",{className:"flex items-center gap-2 text-zinc-500 text-xs",children:[(0,b.jsx)(j.Loader2,{className:"w-3 h-3 animate-spin"}),"Waiting for Claude..."]})]})}),(0,b.jsxs)("div",{className:"flex items-end gap-2 px-3 py-2",children:[(0,b.jsx)(k.VoiceInput,{onTranscript:a=>{g(b=>b?`${b} ${a}`:a),v.current?.focus()}}),(0,b.jsx)("textarea",{ref:v,value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),y())},placeholder:p?"Claude is thinking...":"Message...",disabled:p,rows:1,className:(0,l.cn)("flex-1 resize-none rounded-xl border px-3 py-2 text-sm bg-zinc-900","focus:outline-none focus:ring-1 focus:ring-indigo-500","placeholder:text-zinc-600 border-zinc-700","max-h-[120px]",p&&"opacity-50")}),p?(0,b.jsx)("button",{onClick:()=>{x.current?.abort(),q(!1)},className:"p-2.5 rounded-xl bg-red-500 text-white flex-shrink-0",children:(0,b.jsx)(i.Square,{className:"w-4 h-4"})}):(0,b.jsx)("button",{onClick:y,disabled:!f.trim(),className:(0,l.cn)("p-2.5 rounded-xl flex-shrink-0",f.trim()?"bg-indigo-500 text-white":"bg-zinc-800 text-zinc-600"),children:(0,b.jsx)(h.Send,{className:"w-4 h-4"})})]})]})}var q=a.i(821374),r=a.i(296101),s=a.i(563588);function t({params:a}){let{id:h}=(0,c.use)(a),[i,k]=(0,c.useState)([]),[m,n]=(0,c.useState)(0),o=(0,c.useRef)(null),{data:t,isLoading:u}=(0,e.useSession)(h),{data:v,isLoading:w}=(0,e.useMessages)(h,50*m,50),x=(0,e.useToggleStar)(),y=(0,d.useQueryClient)(),z=(0,c.useCallback)(()=>{setTimeout(()=>{n(0),k([]),y.invalidateQueries({queryKey:["messages",h]}),y.invalidateQueries({queryKey:["session",h]})},1500)},[h,y]);(0,c.useEffect)(()=>{v?.messages&&v.messages.length>0&&(0===m?k(v.messages):k(a=>[...a,...v.messages]))},[v,m]),(0,c.useEffect)(()=>{i.length>0&&0===m&&setTimeout(()=>{o.current?.scrollTo({top:o.current.scrollHeight})},100)},[i.length,m]);let A=(0,c.useCallback)(()=>{!w&&v?.hasMore&&n(a=>a+1)},[w,v?.hasMore]);if(u)return(0,b.jsx)("div",{className:"flex items-center justify-center h-[80dvh]",children:(0,b.jsx)(j.Loader2,{className:"w-6 h-6 animate-spin text-indigo-500"})});if(!t)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.MobileHeader,{title:"Session",showBack:!0,backHref:"/m/sessions"}),(0,b.jsx)("div",{className:"p-6 text-center",children:(0,b.jsx)("p",{className:"text-red-500 text-sm",children:"Session not found."})})]});let B=t.customName||t.summary||(0,l.truncate)(t.firstPrompt,60),C=v?.total||t.messageCount,D=v?.hasMore??!0;return(0,b.jsxs)("div",{className:"flex flex-col h-[100dvh]",children:[(0,b.jsx)(g.MobileHeader,{title:B,showBack:!0,backHref:"/m/sessions",right:(0,b.jsx)("button",{onClick:()=>x.mutate(t.id),className:"p-1.5",children:(0,b.jsx)(q.Star,{className:(0,l.cn)("w-5 h-5",t.starred?"text-amber-500 fill-amber-500":"text-zinc-500")})})}),(0,b.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 text-[11px] text-zinc-500 border-b border-zinc-800 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1 text-indigo-400/70",children:[(0,b.jsx)(r.FolderOpen,{className:"w-3 h-3"}),t.projectName]}),(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(s.MessageSquare,{className:"w-3 h-3"}),C]}),(0,b.jsx)("span",{className:"ml-auto",children:(0,l.formatRelativeTime)(t.modified)})]}),(0,b.jsx)("div",{ref:o,className:"flex-1 overflow-y-auto",children:(0,b.jsx)("div",{className:"px-4 py-4 space-y-4",children:w&&0===i.length?(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,b.jsx)(j.Loader2,{className:"w-5 h-5 animate-spin text-indigo-500"}),(0,b.jsx)("span",{className:"text-xs text-zinc-500",children:"Loading conversation..."})]}):(0,b.jsxs)(b.Fragment,{children:[D&&(0,b.jsx)("div",{className:"text-center py-2",children:(0,b.jsxs)("button",{onClick:A,disabled:w,className:"px-4 py-2 text-xs bg-zinc-900 border border-zinc-800 rounded-lg text-zinc-400 disabled:opacity-50",children:[w?(0,b.jsx)(j.Loader2,{className:"w-3 h-3 animate-spin inline mr-1.5"}):null,"Load earlier (",C-i.length," more)"]})}),i.map((a,c)=>(0,b.jsx)(f.MessageRenderer,{message:a,isLast:c===i.length-1},a.uuid||`msg-${c}`)),!D&&i.length>0&&(0,b.jsx)("p",{className:"text-center text-[11px] text-zinc-600 py-2",children:"End of conversation"})]})})}),(0,b.jsx)(p,{sessionId:h,projectPath:t.projectPath,onMessageSent:z})]})}a.s(["default",()=>t],264033)}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__47c97637._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},804730,a=>{a.v({name:"@jlongo78/agent-spaces",version:"0.9.
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},804730,a=>{a.v({name:"@jlongo78/agent-spaces",version:"0.9.9",description:"Agent workspace manager for Claude, Codex, Gemini, and more",bin:{spaces:"./bin/spaces.js"},files:["bin/",".next/standalone/"],engines:{node:">=20.9.0"},repository:{type:"git",url:"git+https://github.com/jlongo78/spaces.git"},keywords:["ai","agent","workspace","terminal","claude","codex","gemini"],homepage:"http://www.agentspaces.co",license:"AGPL-3.0-only",scripts:{start:"node bin/spaces.js",dev:"node bin/spaces-dev.js",build:"cross-env STANDALONE=1 next build && node -e \"const fs=require('fs');fs.cpSync('.next/static','.next/standalone/.next/static',{recursive:true});fs.cpSync('public','.next/standalone/public',{recursive:true})\" && node bin/fix-standalone-externals.js",postinstall:"node bin/spaces-postinstall.js || true",prepublishOnly:"npm run build",setup:"node bin/spaces-setup.js","setup-admin":"node bin/setup-admin.js","server:build":"next build","server:start":"next start --port 3457",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage",lint:"eslint"},dependencies:{"@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@google-cloud/compute":"^6.9.0","@huggingface/transformers":"^3.8.1","@lancedb/lancedb":"^0.26.2","@modelcontextprotocol/sdk":"^1.27.1","@react-three/drei":"^10.7.7","@react-three/fiber":"^9.5.0","@react-three/postprocessing":"^3.0.4","@react-three/xr":"^6.6.29","@xterm/addon-canvas":"^0.7.0","better-sqlite3":"^12.6.2","bonjour-service":"^1.3.0","dockview-react":"^5.2.0","force-graph":"^1.51.2","node-pty":"^1.1.0","react-resizable-panels":"^4.7.6",three:"^0.183.2",ws:"^8.19.0"},devDependencies:{"@tailwindcss/postcss":"^4","@tanstack/react-query":"^5.90.21","@types/better-sqlite3":"^7.6.13","@types/node":"^20","@types/qrcode":"^1.5.6","@types/react":"^19","@types/react-dom":"^19","@types/three":"^0.183.1","@types/ws":"^8.18.1","@vitest/coverage-v8":"^4.0.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0",chokidar:"^5.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1","cross-env":"^10.1.0","date-fns":"^4.1.0",eslint:"^9","eslint-config-next":"16.1.6",geist:"^1.4.1","lucide-react":"^0.575.0",next:"16.1.6",otpauth:"^9.5.0","posthog-js":"^1.352.0","posthog-node":"^5.21.2",qrcode:"^1.5.4",react:"19.2.3","react-dom":"19.2.3","react-markdown":"^10.1.0",recharts:"^3.7.0","rehype-highlight":"^7.0.2","remark-gfm":"^4.0.1","tailwind-merge":"^3.5.0",tailwindcss:"^4",typescript:"^5",vitest:"^4.0.18",xterm:"^5.3.0"},optionalDependencies:{"@types/qrcode":"^1.5.6",otpauth:"^9.5.0",qrcode:"^1.5.4"}})},495044,a=>{a.n(a.i(352425))},426087,a=>{a.n(a.i(821646))},650645,a=>{a.n(a.i(827572))},43619,a=>{a.n(a.i(379962))},13718,a=>{a.n(a.i(685523))},118198,a=>{a.n(a.i(545518))},262212,a=>{a.n(a.i(866114))},754268,a=>{a.n(a.i(496773))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__66aca5d4._.js.map
|