tower-studio 0.1.1 → 0.1.3
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/components.json +25 -0
- package/next.config.ts +1 -1
- package/package.json +10 -11
- package/postcss.config.mjs +7 -0
- package/prisma/dev.db +0 -0
- package/prisma/prisma/dev.db +0 -0
- package/prisma/seed.ts +50 -0
- package/scripts/init-tower.ts +10 -0
- package/scripts/post-tool-hook.js +188 -0
- package/scripts/session-start-hook.js +79 -0
- package/scripts/stop-hook.js +78 -0
- package/skills/tower/SKILL.md +375 -0
- package/src/actions/__tests__/agent-actions-username.test.ts +30 -0
- package/src/actions/__tests__/asset-actions.test.ts +251 -0
- package/src/actions/__tests__/assistant-actions.test.ts +20 -0
- package/src/actions/__tests__/cli-profile-actions.test.ts +243 -0
- package/src/actions/__tests__/label-actions.test.ts +187 -0
- package/src/actions/__tests__/note-actions.test.ts +237 -0
- package/src/actions/__tests__/onboarding-actions.test.ts +265 -0
- package/src/actions/__tests__/project-actions.test.ts +179 -0
- package/src/actions/__tests__/prompt-actions.test.ts +213 -0
- package/src/actions/__tests__/report-actions.test.ts +246 -0
- package/src/actions/__tests__/search-code-actions.test.ts +308 -0
- package/src/actions/__tests__/task-actions-overview.test.ts +58 -0
- package/src/actions/__tests__/task-actions-pin.test.ts +79 -0
- package/src/actions/__tests__/workspace-actions.test.ts +256 -0
- package/src/actions/agent-actions.ts +741 -0
- package/src/actions/agent-config-actions.ts +44 -0
- package/src/actions/ai-config-actions.ts +51 -0
- package/src/actions/asset-actions.ts +131 -0
- package/src/actions/assistant-actions.ts +107 -0
- package/src/actions/cli-profile-actions.ts +98 -0
- package/src/actions/config-actions.ts +84 -0
- package/src/actions/file-actions.ts +262 -0
- package/src/actions/git-actions.ts +90 -0
- package/src/actions/label-actions.ts +67 -0
- package/src/actions/note-actions.ts +87 -0
- package/src/actions/onboarding-actions.ts +103 -0
- package/src/actions/preview-actions.ts +76 -0
- package/src/actions/project-actions.ts +222 -0
- package/src/actions/prompt-actions.ts +73 -0
- package/src/actions/report-actions.ts +141 -0
- package/src/actions/search-actions.ts +21 -0
- package/src/actions/search-code-actions.ts +185 -0
- package/src/actions/task-actions.ts +350 -0
- package/src/actions/workspace-actions.ts +224 -0
- package/src/app/api/adapters/test/route.ts +52 -0
- package/src/app/api/browse-fs/route.ts +90 -0
- package/src/app/api/files/assets/[projectId]/[filename]/route.ts +38 -0
- package/src/app/api/git/route.ts +367 -0
- package/src/app/api/internal/assets/[projectId]/[filename]/route.ts +51 -0
- package/src/app/api/internal/assets/reveal/route.ts +71 -0
- package/src/app/api/internal/assistant/chat/route.ts +217 -0
- package/src/app/api/internal/assistant/images/route.ts +51 -0
- package/src/app/api/internal/assistant/route.ts +50 -0
- package/src/app/api/internal/assistant/sessions/route.ts +44 -0
- package/src/app/api/internal/cache/[...segments]/route.ts +59 -0
- package/src/app/api/internal/hooks/install/route.ts +41 -0
- package/src/app/api/internal/hooks/session/route.ts +60 -0
- package/src/app/api/internal/hooks/stop/route.ts +61 -0
- package/src/app/api/internal/hooks/upload/route.ts +173 -0
- package/src/app/api/internal/notifications/pending/route.ts +20 -0
- package/src/app/api/internal/terminal/[taskId]/buffer/route.ts +48 -0
- package/src/app/api/internal/terminal/[taskId]/input/route.ts +64 -0
- package/src/app/api/internal/terminal/[taskId]/start/route.ts +37 -0
- package/src/app/api/tasks/[taskId]/diff/route.ts +224 -0
- package/src/app/api/tasks/[taskId]/merge/route.ts +159 -0
- package/src/app/globals.css +247 -0
- package/src/app/layout.tsx +63 -0
- package/src/app/missions/missions-client.tsx +338 -0
- package/src/app/missions/page.tsx +10 -0
- package/src/app/onboarding/page.tsx +619 -0
- package/src/app/page.tsx +5 -0
- package/src/app/settings/page.tsx +7 -0
- package/src/app/workspaces/[workspaceId]/archive/archive-page-client.tsx +258 -0
- package/src/app/workspaces/[workspaceId]/archive/page.tsx +36 -0
- package/src/app/workspaces/[workspaceId]/assets/assets-page-client.tsx +232 -0
- package/src/app/workspaces/[workspaceId]/assets/page.tsx +36 -0
- package/src/app/workspaces/[workspaceId]/board-page-client.tsx +257 -0
- package/src/app/workspaces/[workspaceId]/notes/notes-page-client.tsx +337 -0
- package/src/app/workspaces/[workspaceId]/notes/page.tsx +39 -0
- package/src/app/workspaces/[workspaceId]/page.tsx +81 -0
- package/src/app/workspaces/[workspaceId]/projects/[projectId]/page.tsx +30 -0
- package/src/app/workspaces/[workspaceId]/tasks/[taskId]/page.tsx +97 -0
- package/src/app/workspaces/[workspaceId]/tasks/[taskId]/task-page-client.tsx +601 -0
- package/src/app/workspaces/page.tsx +13 -0
- package/src/components/assets/asset-item.tsx +128 -0
- package/src/components/assets/asset-list.tsx +31 -0
- package/src/components/assets/asset-upload.tsx +216 -0
- package/src/components/assets/image-lightbox.tsx +72 -0
- package/src/components/assets/text-preview-dialog.tsx +135 -0
- package/src/components/assistant/assistant-chat-bubble.tsx +308 -0
- package/src/components/assistant/assistant-chat.tsx +215 -0
- package/src/components/assistant/assistant-panel.tsx +149 -0
- package/src/components/assistant/assistant-provider.tsx +512 -0
- package/src/components/assistant/image-preview-modal.tsx +60 -0
- package/src/components/assistant/image-thumbnail-strip.tsx +94 -0
- package/src/components/board/board-column.tsx +115 -0
- package/src/components/board/board-filters.tsx +42 -0
- package/src/components/board/board-stats.tsx +52 -0
- package/src/components/board/column-tasks-dialog.tsx +100 -0
- package/src/components/board/create-task-dialog.tsx +362 -0
- package/src/components/board/kanban-board.tsx +169 -0
- package/src/components/board/project-tabs.tsx +93 -0
- package/src/components/board/task-card-context-menu.tsx +121 -0
- package/src/components/board/task-card.tsx +135 -0
- package/src/components/layout/__tests__/top-bar-username.test.tsx +24 -0
- package/src/components/layout/app-sidebar.tsx +662 -0
- package/src/components/layout/folder-browser-dialog.tsx +273 -0
- package/src/components/layout/layout-client.tsx +198 -0
- package/src/components/layout/search-dialog.tsx +196 -0
- package/src/components/layout/sub-page-nav.tsx +54 -0
- package/src/components/layout/top-bar.tsx +265 -0
- package/src/components/missions/grid-layout-presets.ts +19 -0
- package/src/components/missions/grid-preset-picker.tsx +209 -0
- package/src/components/missions/merge-missions.ts +30 -0
- package/src/components/missions/mission-card.tsx +203 -0
- package/src/components/missions/task-picker-dialog.tsx +415 -0
- package/src/components/notes/category-filter.tsx +44 -0
- package/src/components/notes/note-card.tsx +67 -0
- package/src/components/notes/note-editor.tsx +28 -0
- package/src/components/notes/note-list.tsx +30 -0
- package/src/components/notifications/notification-permission-banner.tsx +49 -0
- package/src/components/notifications/use-notification-listener.ts +114 -0
- package/src/components/onboarding/__tests__/onboarding-wizard.test.tsx +185 -0
- package/src/components/onboarding/guided-tour.tsx +255 -0
- package/src/components/onboarding/onboarding-wizard.tsx +84 -0
- package/src/components/onboarding/wizard-step-cli.tsx +53 -0
- package/src/components/onboarding/wizard-step-username.tsx +59 -0
- package/src/components/project/create-project-dialog.tsx +310 -0
- package/src/components/project/import-project-dialog.tsx +414 -0
- package/src/components/providers/theme-provider.tsx +8 -0
- package/src/components/repository/create-branch-dialog.tsx +165 -0
- package/src/components/repository/git-changes-panel.tsx +294 -0
- package/src/components/repository/git-log-panel.tsx +83 -0
- package/src/components/repository/git-stash-panel.tsx +158 -0
- package/src/components/repository/repo-sidebar.tsx +855 -0
- package/src/components/settings/cli-adapter-tester.tsx +144 -0
- package/src/components/settings/settings-page.tsx +2111 -0
- package/src/components/task/code-editor.tsx +376 -0
- package/src/components/task/code-search.tsx +219 -0
- package/src/components/task/diff-editor.tsx +97 -0
- package/src/components/task/editor-git-panel.tsx +792 -0
- package/src/components/task/editor-tabs.tsx +68 -0
- package/src/components/task/execution-timeline.tsx +258 -0
- package/src/components/task/file-tree-context-menu.tsx +113 -0
- package/src/components/task/file-tree-node.tsx +269 -0
- package/src/components/task/file-tree.tsx +575 -0
- package/src/components/task/preview-panel.tsx +281 -0
- package/src/components/task/task-detail-panel.tsx +455 -0
- package/src/components/task/task-diff-view.tsx +207 -0
- package/src/components/task/task-file-changes.tsx +19 -0
- package/src/components/task/task-merge-confirm-dialog.tsx +152 -0
- package/src/components/task/task-metadata.tsx +74 -0
- package/src/components/task/task-notes-panel.tsx +219 -0
- package/src/components/task/task-overview-drawer.tsx +172 -0
- package/src/components/task/task-terminal.tsx +294 -0
- package/src/components/task/terminal-portal.tsx +156 -0
- package/src/components/task/types.ts +6 -0
- package/src/components/ui/avatar.tsx +109 -0
- package/src/components/ui/badge.tsx +52 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/card.tsx +103 -0
- package/src/components/ui/command.tsx +196 -0
- package/src/components/ui/dialog.tsx +160 -0
- package/src/components/ui/dropdown-menu.tsx +268 -0
- package/src/components/ui/empty-state.tsx +26 -0
- package/src/components/ui/error-boundary.tsx +58 -0
- package/src/components/ui/input-group.tsx +158 -0
- package/src/components/ui/input.tsx +20 -0
- package/src/components/ui/label.tsx +20 -0
- package/src/components/ui/popover.tsx +90 -0
- package/src/components/ui/scroll-area.tsx +55 -0
- package/src/components/ui/segmented-control.tsx +42 -0
- package/src/components/ui/select.tsx +207 -0
- package/src/components/ui/separator.tsx +25 -0
- package/src/components/ui/sheet.tsx +138 -0
- package/src/components/ui/sonner.tsx +49 -0
- package/src/components/ui/switch.tsx +32 -0
- package/src/components/ui/tabs.tsx +82 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/toast.tsx +86 -0
- package/src/components/ui/tooltip.tsx +66 -0
- package/src/hooks/__tests__/sse-event-reducer.test.ts +263 -0
- package/src/hooks/__tests__/use-assistant-chat.test.ts +34 -0
- package/src/hooks/__tests__/use-image-upload.test.ts +443 -0
- package/src/hooks/sse-event-reducer.ts +144 -0
- package/src/hooks/use-assistant-chat.ts +190 -0
- package/src/hooks/use-image-upload.ts +140 -0
- package/src/instrumentation.ts +18 -0
- package/src/lib/__tests__/assistant-message-converter.test.ts +162 -0
- package/src/lib/__tests__/assistant-sessions.test.ts +253 -0
- package/src/lib/__tests__/build-multimodal-prompt.test.ts +173 -0
- package/src/lib/__tests__/config-reader.test.ts +75 -0
- package/src/lib/__tests__/diff-parser.test.ts +212 -0
- package/src/lib/__tests__/execution-summary.test.ts +237 -0
- package/src/lib/__tests__/file-serve.test.ts +178 -0
- package/src/lib/__tests__/file-utils.test.ts +177 -0
- package/src/lib/__tests__/internal-api-guard.test.ts +151 -0
- package/src/lib/__tests__/logger.test.ts +181 -0
- package/src/lib/__tests__/platform.test.ts +566 -0
- package/src/lib/__tests__/reveal-route-security.test.ts +65 -0
- package/src/lib/__tests__/schemas.test.ts +377 -0
- package/src/lib/__tests__/terminal-link-provider.test.ts +160 -0
- package/src/lib/__tests__/upload-route-security.test.ts +120 -0
- package/src/lib/ai/__tests__/capability-resolver.test.ts +71 -0
- package/src/lib/ai/__tests__/claude-cli-adapter.test.ts +103 -0
- package/src/lib/ai/__tests__/provider-registry.test.ts +74 -0
- package/src/lib/ai/adapters/cli/claude-cli-adapter.ts +166 -0
- package/src/lib/ai/capability-resolver.ts +81 -0
- package/src/lib/ai/provider-registry.ts +54 -0
- package/src/lib/ai/providers/claude.ts +19 -0
- package/src/lib/ai/providers/index.ts +12 -0
- package/src/lib/ai/types.ts +151 -0
- package/src/lib/assistant-constants.ts +2 -0
- package/src/lib/assistant-message-converter.ts +131 -0
- package/src/lib/assistant-sessions.ts +75 -0
- package/src/lib/build-multimodal-prompt.ts +53 -0
- package/src/lib/claude-session.ts +156 -0
- package/src/lib/cli-test.ts +476 -0
- package/src/lib/config-defaults.ts +121 -0
- package/src/lib/config-reader.ts +16 -0
- package/src/lib/constants.ts +26 -0
- package/src/lib/db.ts +28 -0
- package/src/lib/diff-parser.ts +132 -0
- package/src/lib/execution-summary.ts +287 -0
- package/src/lib/file-serve-client.ts +13 -0
- package/src/lib/file-serve.ts +32 -0
- package/src/lib/file-utils.ts +108 -0
- package/src/lib/fs-security.ts +22 -0
- package/src/lib/fts.ts +83 -0
- package/src/lib/git-api.ts +19 -0
- package/src/lib/git-url.ts +244 -0
- package/src/lib/i18n/en.ts +754 -0
- package/src/lib/i18n/types.ts +4 -0
- package/src/lib/i18n/zh.ts +769 -0
- package/src/lib/i18n.tsx +64 -0
- package/src/lib/init-tower.ts +129 -0
- package/src/lib/instrumentation-tasks.ts +116 -0
- package/src/lib/internal-api-guard.ts +63 -0
- package/src/lib/logger.ts +46 -0
- package/src/lib/mime-magic.ts +67 -0
- package/src/lib/platform.ts +518 -0
- package/src/lib/preview-process.ts +40 -0
- package/src/lib/pty/__tests__/ws-server-assistant.test.ts +7 -0
- package/src/lib/pty/pty-session.ts +157 -0
- package/src/lib/pty/session-store.ts +67 -0
- package/src/lib/pty/ws-server.ts +335 -0
- package/src/lib/schemas.ts +67 -0
- package/src/lib/search.ts +225 -0
- package/src/lib/terminal-link-provider.ts +90 -0
- package/src/lib/tower-dir.ts +69 -0
- package/src/lib/utils.ts +20 -0
- package/src/lib/worktree.ts +184 -0
- package/src/stores/board-store.ts +46 -0
- package/src/stores/task-execution-store.ts +41 -0
- package/src/types/index.ts +36 -0
- package/.next/BUILD_ID +0 -1
- package/.next/app-path-routes-manifest.json +0 -41
- package/.next/build/chunks/0kjx__pnpm_05m.mc_._.js +0 -6681
- package/.next/build/chunks/[root-of-the-server]__0a5dngl._.js +0 -206
- package/.next/build/chunks/[root-of-the-server]__13e2v6w._.js +0 -500
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0y_r.ay._.js +0 -13
- package/.next/build/chunks/[turbopack]_runtime.js +0 -890
- package/.next/build/package.json +0 -1
- package/.next/build/postcss.js +0 -6
- package/.next/build-manifest.json +0 -22
- package/.next/cache/.previewinfo +0 -1
- package/.next/cache/.rscinfo +0 -1
- package/.next/cache/.tsbuildinfo +0 -1
- package/.next/diagnostics/build-diagnostics.json +0 -6
- package/.next/diagnostics/framework.json +0 -1
- package/.next/diagnostics/route-bundle-stats.json +0 -299
- package/.next/export-marker.json +0 -6
- package/.next/fallback-build-manifest.json +0 -13
- package/.next/images-manifest.json +0 -68
- package/.next/next-minimal-server.js.nft.json +0 -1
- package/.next/next-server.js.nft.json +0 -1
- package/.next/package.json +0 -1
- package/.next/prerender-manifest.json +0 -278
- package/.next/required-server-files.js +0 -338
- package/.next/required-server-files.json +0 -338
- package/.next/routes-manifest.json +0 -312
- package/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
- package/.next/server/app/_global-error/page/build-manifest.json +0 -18
- package/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
- package/.next/server/app/_global-error/page.js +0 -12
- package/.next/server/app/_global-error/page.js.nft.json +0 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +0 -3
- package/.next/server/app/_global-error.html +0 -1
- package/.next/server/app/_global-error.meta +0 -15
- package/.next/server/app/_global-error.rsc +0 -15
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +0 -5
- package/.next/server/app/_global-error.segments/_full.segment.rsc +0 -15
- package/.next/server/app/_global-error.segments/_head.segment.rsc +0 -6
- package/.next/server/app/_global-error.segments/_index.segment.rsc +0 -5
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -1
- package/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
- package/.next/server/app/_not-found/page/build-manifest.json +0 -18
- package/.next/server/app/_not-found/page/next-font-manifest.json +0 -11
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/_not-found/page/server-reference-manifest.json +0 -233
- package/.next/server/app/_not-found/page.js +0 -20
- package/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +0 -3
- package/.next/server/app/_not-found.html +0 -1
- package/.next/server/app/_not-found.meta +0 -16
- package/.next/server/app/_not-found.rsc +0 -24
- package/.next/server/app/_not-found.segments/_full.segment.rsc +0 -24
- package/.next/server/app/_not-found.segments/_head.segment.rsc +0 -6
- package/.next/server/app/_not-found.segments/_index.segment.rsc +0 -12
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -5
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +0 -4
- package/.next/server/app/api/adapters/test/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/adapters/test/route/build-manifest.json +0 -9
- package/.next/server/app/api/adapters/test/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/adapters/test/route.js +0 -9
- package/.next/server/app/api/adapters/test/route.js.nft.json +0 -1
- package/.next/server/app/api/adapters/test/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/browse-fs/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/browse-fs/route/build-manifest.json +0 -9
- package/.next/server/app/api/browse-fs/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/browse-fs/route.js +0 -7
- package/.next/server/app/api/browse-fs/route.js.nft.json +0 -1
- package/.next/server/app/api/browse-fs/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/build-manifest.json +0 -9
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js +0 -7
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js.nft.json +0 -1
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/git/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/git/route/build-manifest.json +0 -9
- package/.next/server/app/api/git/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/git/route.js +0 -8
- package/.next/server/app/api/git/route.js.nft.json +0 -1
- package/.next/server/app/api/git/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js +0 -7
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assets/reveal/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assets/reveal/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assets/reveal/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assets/reveal/route.js +0 -7
- package/.next/server/app/api/internal/assets/reveal/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assets/reveal/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assistant/chat/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assistant/chat/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assistant/chat/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assistant/chat/route.js +0 -7
- package/.next/server/app/api/internal/assistant/chat/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assistant/chat/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assistant/images/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assistant/images/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assistant/images/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assistant/images/route.js +0 -9
- package/.next/server/app/api/internal/assistant/images/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assistant/images/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assistant/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assistant/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assistant/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assistant/route.js +0 -7
- package/.next/server/app/api/internal/assistant/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assistant/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/assistant/sessions/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/assistant/sessions/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/assistant/sessions/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/assistant/sessions/route.js +0 -7
- package/.next/server/app/api/internal/assistant/sessions/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/assistant/sessions/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/cache/[...segments]/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/cache/[...segments]/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/cache/[...segments]/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/cache/[...segments]/route.js +0 -7
- package/.next/server/app/api/internal/cache/[...segments]/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/cache/[...segments]/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/hooks/install/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/hooks/install/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/hooks/install/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/hooks/install/route.js +0 -7
- package/.next/server/app/api/internal/hooks/install/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/hooks/install/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/hooks/session/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/hooks/session/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/hooks/session/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/hooks/session/route.js +0 -7
- package/.next/server/app/api/internal/hooks/session/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/hooks/session/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/hooks/stop/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/hooks/stop/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/hooks/stop/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/hooks/stop/route.js +0 -8
- package/.next/server/app/api/internal/hooks/stop/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/hooks/stop/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/hooks/upload/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/hooks/upload/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/hooks/upload/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/hooks/upload/route.js +0 -7
- package/.next/server/app/api/internal/hooks/upload/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/hooks/upload/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/notifications/pending/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/notifications/pending/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/notifications/pending/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/notifications/pending/route.js +0 -7
- package/.next/server/app/api/internal/notifications/pending/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/notifications/pending/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js +0 -8
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/terminal/[taskId]/input/route.js +0 -8
- package/.next/server/app/api/internal/terminal/[taskId]/input/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/terminal/[taskId]/input/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/build-manifest.json +0 -9
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js +0 -10
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js.nft.json +0 -1
- package/.next/server/app/api/internal/terminal/[taskId]/start/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/tasks/[taskId]/diff/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/tasks/[taskId]/diff/route/build-manifest.json +0 -9
- package/.next/server/app/api/tasks/[taskId]/diff/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/tasks/[taskId]/diff/route.js +0 -8
- package/.next/server/app/api/tasks/[taskId]/diff/route.js.nft.json +0 -1
- package/.next/server/app/api/tasks/[taskId]/diff/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/tasks/[taskId]/merge/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/tasks/[taskId]/merge/route/build-manifest.json +0 -9
- package/.next/server/app/api/tasks/[taskId]/merge/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/tasks/[taskId]/merge/route.js +0 -9
- package/.next/server/app/api/tasks/[taskId]/merge/route.js.nft.json +0 -1
- package/.next/server/app/api/tasks/[taskId]/merge/route_client-reference-manifest.js +0 -3
- package/.next/server/app/apple-icon.png/route/app-paths-manifest.json +0 -3
- package/.next/server/app/apple-icon.png/route/build-manifest.json +0 -9
- package/.next/server/app/apple-icon.png/route.js +0 -8
- package/.next/server/app/apple-icon.png/route.js.nft.json +0 -1
- package/.next/server/app/apple-icon.png.meta +0 -1
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
- package/.next/server/app/favicon.ico/route/build-manifest.json +0 -9
- package/.next/server/app/favicon.ico/route.js +0 -8
- package/.next/server/app/favicon.ico/route.js.nft.json +0 -1
- package/.next/server/app/favicon.ico.meta +0 -1
- package/.next/server/app/icon0.svg/route/app-paths-manifest.json +0 -3
- package/.next/server/app/icon0.svg/route/build-manifest.json +0 -9
- package/.next/server/app/icon0.svg/route.js +0 -8
- package/.next/server/app/icon0.svg/route.js.nft.json +0 -1
- package/.next/server/app/icon0.svg.meta +0 -1
- package/.next/server/app/icon1.png/route/app-paths-manifest.json +0 -3
- package/.next/server/app/icon1.png/route/build-manifest.json +0 -9
- package/.next/server/app/icon1.png/route.js +0 -8
- package/.next/server/app/icon1.png/route.js.nft.json +0 -1
- package/.next/server/app/icon1.png.meta +0 -1
- package/.next/server/app/index.html +0 -1
- package/.next/server/app/index.meta +0 -16
- package/.next/server/app/index.rsc +0 -25
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -6
- package/.next/server/app/index.segments/_full.segment.rsc +0 -25
- package/.next/server/app/index.segments/_head.segment.rsc +0 -6
- package/.next/server/app/index.segments/_index.segment.rsc +0 -12
- package/.next/server/app/index.segments/_tree.segment.rsc +0 -6
- package/.next/server/app/manifest.json/route/app-paths-manifest.json +0 -3
- package/.next/server/app/manifest.json/route/build-manifest.json +0 -9
- package/.next/server/app/manifest.json/route.js +0 -7
- package/.next/server/app/manifest.json/route.js.nft.json +0 -1
- package/.next/server/app/manifest.json.meta +0 -1
- package/.next/server/app/missions/page/app-paths-manifest.json +0 -3
- package/.next/server/app/missions/page/build-manifest.json +0 -18
- package/.next/server/app/missions/page/next-font-manifest.json +0 -11
- package/.next/server/app/missions/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/missions/page/server-reference-manifest.json +0 -401
- package/.next/server/app/missions/page.js +0 -22
- package/.next/server/app/missions/page.js.nft.json +0 -1
- package/.next/server/app/missions/page_client-reference-manifest.js +0 -3
- package/.next/server/app/onboarding/page/app-paths-manifest.json +0 -3
- package/.next/server/app/onboarding/page/build-manifest.json +0 -18
- package/.next/server/app/onboarding/page/next-font-manifest.json +0 -11
- package/.next/server/app/onboarding/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/onboarding/page/server-reference-manifest.json +0 -233
- package/.next/server/app/onboarding/page.js +0 -21
- package/.next/server/app/onboarding/page.js.nft.json +0 -1
- package/.next/server/app/onboarding/page_client-reference-manifest.js +0 -3
- package/.next/server/app/onboarding.html +0 -1
- package/.next/server/app/onboarding.meta +0 -15
- package/.next/server/app/onboarding.rsc +0 -30
- package/.next/server/app/onboarding.segments/_full.segment.rsc +0 -30
- package/.next/server/app/onboarding.segments/_head.segment.rsc +0 -6
- package/.next/server/app/onboarding.segments/_index.segment.rsc +0 -12
- package/.next/server/app/onboarding.segments/_tree.segment.rsc +0 -6
- package/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +0 -9
- package/.next/server/app/onboarding.segments/onboarding.segment.rsc +0 -5
- package/.next/server/app/page/app-paths-manifest.json +0 -3
- package/.next/server/app/page/build-manifest.json +0 -18
- package/.next/server/app/page/next-font-manifest.json +0 -11
- package/.next/server/app/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/page/server-reference-manifest.json +0 -233
- package/.next/server/app/page.js +0 -21
- package/.next/server/app/page.js.nft.json +0 -1
- package/.next/server/app/page_client-reference-manifest.js +0 -3
- package/.next/server/app/settings/page/app-paths-manifest.json +0 -3
- package/.next/server/app/settings/page/build-manifest.json +0 -18
- package/.next/server/app/settings/page/next-font-manifest.json +0 -11
- package/.next/server/app/settings/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/settings/page/server-reference-manifest.json +0 -341
- package/.next/server/app/settings/page.js +0 -21
- package/.next/server/app/settings/page.js.nft.json +0 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +0 -3
- package/.next/server/app/settings.html +0 -1
- package/.next/server/app/settings.meta +0 -15
- package/.next/server/app/settings.rsc +0 -30
- package/.next/server/app/settings.segments/_full.segment.rsc +0 -30
- package/.next/server/app/settings.segments/_head.segment.rsc +0 -6
- package/.next/server/app/settings.segments/_index.segment.rsc +0 -12
- package/.next/server/app/settings.segments/_tree.segment.rsc +0 -6
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +0 -9
- package/.next/server/app/settings.segments/settings.segment.rsc +0 -5
- package/.next/server/app/workspaces/[workspaceId]/archive/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/archive/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/archive/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +0 -497
- package/.next/server/app/workspaces/[workspaceId]/archive/page.js +0 -21
- package/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/[workspaceId]/assets/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/assets/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/assets/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +0 -461
- package/.next/server/app/workspaces/[workspaceId]/assets/page.js +0 -21
- package/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/[workspaceId]/notes/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/notes/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/notes/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +0 -401
- package/.next/server/app/workspaces/[workspaceId]/notes/page.js +0 -21
- package/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/[workspaceId]/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +0 -569
- package/.next/server/app/workspaces/[workspaceId]/page.js +0 -22
- package/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +0 -233
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js +0 -21
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +0 -22
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +0 -581
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js +0 -23
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +0 -3
- package/.next/server/app/workspaces/page/app-paths-manifest.json +0 -3
- package/.next/server/app/workspaces/page/build-manifest.json +0 -18
- package/.next/server/app/workspaces/page/next-font-manifest.json +0 -11
- package/.next/server/app/workspaces/page/react-loadable-manifest.json +0 -16
- package/.next/server/app/workspaces/page/server-reference-manifest.json +0 -329
- package/.next/server/app/workspaces/page.js +0 -21
- package/.next/server/app/workspaces/page.js.nft.json +0 -1
- package/.next/server/app/workspaces/page_client-reference-manifest.js +0 -3
- package/.next/server/app-paths-manifest.json +0 -41
- package/.next/server/chunks/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_04597t~._.js +0 -85
- package/.next/server/chunks/0cve_next-internal_server_app_api_internal_cache_[___segments]_route_actions_09n1sa3.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_files_assets_[projectId]_[filename]_route_actions_02i2urs.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_internal_assets_[projectId]_[filename]_route_actions_0kjz576.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_internal_notifications_pending_route_actions_08bx38r.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_buffer_route_actions_0bpyf5x.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_input_route_actions_0alu32r.js +0 -3
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_start_route_actions_0swqog2.js +0 -3
- package/.next/server/chunks/0w1v_zod_v4_classic_external_0m-7hz_.js +0 -39
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_chat_route_actions_0x-qbrh.js +0 -3
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_images_route_actions_0vws40t.js +0 -3
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_sessions_route_actions_0p09rcp.js +0 -3
- package/.next/server/chunks/10ge_next_dist_08.3req._.js +0 -13
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_00gmiw_.js +0 -3
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0jwpolf.js +0 -3
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0liabcf.js +0 -3
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0z9_0_i.js +0 -3
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13w3ubu.js +0 -3
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13~vb_i.js +0 -4
- package/.next/server/chunks/[externals]__02xkqim._.js +0 -3
- package/.next/server/chunks/[externals]__09oeovy._.js +0 -3
- package/.next/server/chunks/[externals]__0~rg.xo._.js +0 -3
- package/.next/server/chunks/[externals]__11rejr-._.js +0 -3
- package/.next/server/chunks/[externals]_child_process_0pwkpv9._.js +0 -3
- package/.next/server/chunks/[externals]_next_dist_0g2nsos._.js +0 -3
- package/.next/server/chunks/[externals]_util_0wtvqkc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02p-gd5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0319djr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__043lk8~._.js +0 -4
- package/.next/server/chunks/[root-of-the-server]__053y9tf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05pxb~w._.js +0 -20
- package/.next/server/chunks/[root-of-the-server]__07-am_7._.js +0 -20
- package/.next/server/chunks/[root-of-the-server]__09gjz6h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0_irb2s._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0c4edwt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0c7y1r0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dj34zn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dqta7g._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0j3gbp7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ko_rm_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0miy2g.._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mt-eeb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0n-6-hc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0nur_ir._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0pz60q-._.js +0 -20
- package/.next/server/chunks/[root-of-the-server]__0q~5ya5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0rpqx55._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0sjsc63._.js +0 -4
- package/.next/server/chunks/[root-of-the-server]__0th.w7w._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0u..agy._.js +0 -11
- package/.next/server/chunks/[root-of-the-server]__0umzekq._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wu61w.._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11v.yk_._.js +0 -4
- package/.next/server/chunks/[root-of-the-server]__12._zd-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__130shf~._.js +0 -3
- package/.next/server/chunks/[turbopack]_runtime.js +0 -903
- package/.next/server/chunks/ssr/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_0kr2_y.._.js +0 -84
- package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0t4i-ho._.js +0 -3
- package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0z6t1fr._.js +0 -3
- package/.next/server/chunks/ssr/0kjx__pnpm_0g9g8h6._.js +0 -3
- package/.next/server/chunks/ssr/0kjx__pnpm_0l.5ii.._.js +0 -3
- package/.next/server/chunks/ssr/0kjx__pnpm_0wrn.h9._.js +0 -14
- package/.next/server/chunks/ssr/0rik_@dnd-kit_core_dist_core_esm_11giptg.js +0 -3
- package/.next/server/chunks/ssr/0~.g_src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_0bbseig._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_00.-vj.._.js +0 -18
- package/.next/server/chunks/ssr/10ge_next_dist_01n~t8z._.js +0 -6
- package/.next/server/chunks/ssr/10ge_next_dist_06_-w96._.js +0 -19
- package/.next/server/chunks/ssr/10ge_next_dist_0pw4my6._.js +0 -6
- package/.next/server/chunks/ssr/10ge_next_dist_0wjbiu9._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_0~ti7jc._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_10.ihny._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_0--gzcy._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_0eil7-a._.js +0 -33
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_forbidden_0nzsnb2.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_global-error_125sopd.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_unauthorized_0z93cpe.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_compiled_0g45ze2._.js +0 -3
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_080g02v.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_08khzah.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_09~o5q0.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0_rj_f4.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0c-wmj1.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0fjd2ua.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0hpuyf0.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0knnyic.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0oi86k6.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0rmwdra.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0zgisbd.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_11pz1fw.js +0 -4
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_12reczc.js +0 -4
- package/.next/server/chunks/ssr/119e_lucide-react_dist_esm_icons_0636jyq._.js +0 -3
- package/.next/server/chunks/ssr/[externals]__0of4r_r._.js +0 -3
- package/.next/server/chunks/ssr/[externals]__0z1ffhu._.js +0 -3
- package/.next/server/chunks/ssr/[externals]_child_process_0pwkpv9._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0-0j_z3._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0.8y0n9._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0.uoh7q._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__01ws4-7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__024-5kd._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__02ipahf._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__03.14vw._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__03swpls._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__04xn50b._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__05452ke._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__06o5v8i._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__06sm5cw._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__09m32ch._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0_0kxz4._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0adx8p4._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0bk3s4l._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0d5p5d.._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0d7u1lw._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0fg8.hp._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0gsj3~.._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0i6glcp._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0ibsor_._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0j5~a_o._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0jgbj6l._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0jux8~h._.js +0 -33
- package/.next/server/chunks/ssr/[root-of-the-server]__0l~dc3x._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0n32nv5._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0n8qufu._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0ndt9h3._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0p~u4y6._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0q.du4s._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0rs7pkn._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sysz2q._.js +0 -47
- package/.next/server/chunks/ssr/[root-of-the-server]__0t25~v8._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0ti70do._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0uevudp._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__0v0dk_o._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0vpgotk._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0wwqzmm._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xt3-qb._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0y-lkvf._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0zvf.ro._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__11m7m-q._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1223b0_._.js +0 -30
- package/.next/server/chunks/ssr/[root-of-the-server]__12f810l._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__13-by9r._.js +0 -33
- package/.next/server/chunks/ssr/[root-of-the-server]__13-egel._.js +0 -3
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -903
- package/.next/server/chunks/ssr/tower_0-nwtka._.js +0 -3
- package/.next/server/chunks/ssr/tower_0-omr_b._.js +0 -30
- package/.next/server/chunks/ssr/tower_01szasw._.js +0 -3
- package/.next/server/chunks/ssr/tower_035l~qv._.js +0 -3
- package/.next/server/chunks/ssr/tower_03jazku._.js +0 -3
- package/.next/server/chunks/ssr/tower_0_i~57x._.js +0 -3
- package/.next/server/chunks/ssr/tower_0agzi_m._.js +0 -3
- package/.next/server/chunks/ssr/tower_0d.car1._.js +0 -30
- package/.next/server/chunks/ssr/tower_0egtw-7._.js +0 -30
- package/.next/server/chunks/ssr/tower_0h3r32m._.js +0 -30
- package/.next/server/chunks/ssr/tower_0kl_bfy._.js +0 -7
- package/.next/server/chunks/ssr/tower_0le1h0h._.js +0 -3
- package/.next/server/chunks/ssr/tower_0mz4ut.._.js +0 -3
- package/.next/server/chunks/ssr/tower_0nuj.0p._.js +0 -39
- package/.next/server/chunks/ssr/tower_0pcqezm._.js +0 -3
- package/.next/server/chunks/ssr/tower_0r7uuim._.js +0 -30
- package/.next/server/chunks/ssr/tower_0rdk81e._.js +0 -3
- package/.next/server/chunks/ssr/tower_0sojjnu._.js +0 -3
- package/.next/server/chunks/ssr/tower_0tc~.xl._.js +0 -30
- package/.next/server/chunks/ssr/tower_0tuq2iz._.js +0 -30
- package/.next/server/chunks/ssr/tower_0wvk~r.._.js +0 -3
- package/.next/server/chunks/ssr/tower_0xg_zeq._.js +0 -3
- package/.next/server/chunks/ssr/tower_0~oir9k._.js +0 -3
- package/.next/server/chunks/ssr/tower_10p15te._.js +0 -3
- package/.next/server/chunks/ssr/tower_10t13p4._.js +0 -6
- package/.next/server/chunks/ssr/tower_117pzh8._.js +0 -3
- package/.next/server/chunks/ssr/tower_11q5_.m._.js +0 -3
- package/.next/server/chunks/ssr/tower_138qlx5._.js +0 -3
- package/.next/server/chunks/ssr/tower__next-internal_server_app__global-error_page_actions_13t5~qk.js +0 -3
- package/.next/server/chunks/ssr/tower_src_0puzd-6._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_actions_agent-actions_ts_0j.e1tn._.js +0 -4
- package/.next/server/chunks/ssr/tower_src_actions_file-actions_ts_0424lna._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_app_missions_missions-client_tsx_0a9vjyr._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_app_onboarding_page_tsx_0_3krz1._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_app_settings_page_tsx_0vo5e-o._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0zfgzhi._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_board-page-client_tsx_0kjp1u0._.js +0 -7
- package/.next/server/chunks/ssr/tower_src_components_ui_select_tsx_10ajx~2._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_01420_4._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_0i-zjpa._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_0ja~kdb._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_0obw2r8._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_0rgfsuf._.js +0 -3
- package/.next/server/chunks/ssr/tower_src_lib_constants_ts_0o218_c._.js +0 -3
- package/.next/server/chunks/tower_03g~ktv._.js +0 -7
- package/.next/server/chunks/tower_05du07.._.js +0 -10
- package/.next/server/chunks/tower_0a-x6m.._.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_adapters_test_route_actions_13jw~9b.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_browse-fs_route_actions_0k5p2xy.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_git_route_actions_0rvpodb.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_assets_reveal_route_actions_0idwm6j.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_assistant_route_actions_0rdz1d..js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_install_route_actions_06dxleu.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_session_route_actions_0wlv4lf.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_stop_route_actions_101_oub.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_upload_route_actions_0439qz_.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_diff_route_actions_0nthc84.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_merge_route_actions_0g.x0nb.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_apple-icon_png_route_actions_0bni-sb.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_favicon_ico_route_actions_0kw~xj2.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_icon0_svg_route_actions_0nww9-e.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_icon1_png_route_actions_09h.ywu.js +0 -3
- package/.next/server/chunks/tower__next-internal_server_app_manifest_json_route_actions_080ob~r.js +0 -3
- package/.next/server/chunks/tower_src_0..vg-t._.js +0 -3
- package/.next/server/chunks/tower_src_05rqj.1._.js +0 -3
- package/.next/server/chunks/tower_src_lib_0uok6j3._.js +0 -3
- package/.next/server/chunks/tower_src_lib_0w8qt4s._.js +0 -3
- package/.next/server/chunks/tower_src_lib_constants_ts_0cxd4.p._.js +0 -3
- package/.next/server/edge/chunks/0y9m_next_dist_esm_build_templates_edge-wrapper_0cx_eo..js +0 -3
- package/.next/server/edge/chunks/tower_0wvfs38._.js +0 -3
- package/.next/server/functions-config-manifest.json +0 -22
- package/.next/server/instrumentation/middleware-manifest.json +0 -12
- package/.next/server/instrumentation.js +0 -4
- package/.next/server/instrumentation.js.nft.json +0 -1
- package/.next/server/interception-route-rewrite-manifest.js +0 -1
- package/.next/server/middleware-build-manifest.js +0 -22
- package/.next/server/middleware-manifest.json +0 -6
- package/.next/server/next-font-manifest.js +0 -1
- package/.next/server/next-font-manifest.json +0 -55
- package/.next/server/pages/404.html +0 -1
- package/.next/server/pages/500.html +0 -1
- package/.next/server/pages-manifest.json +0 -4
- package/.next/server/prefetch-hints.json +0 -1
- package/.next/server/server-reference-manifest.js +0 -1
- package/.next/server/server-reference-manifest.json +0 -2778
- package/.next/static/chunks/0.uav~g39w7rr.js +0 -1
- package/.next/static/chunks/00z-g3x93ngvn.js +0 -1
- package/.next/static/chunks/02f8le_y~6gnd.js +0 -1
- package/.next/static/chunks/03e.4ymu.j5wl.js +0 -1
- package/.next/static/chunks/03~yq9q893hmn.js +0 -1
- package/.next/static/chunks/05-b9qqm3av9~.js +0 -1
- package/.next/static/chunks/05~v02mkan5z..js +0 -1
- package/.next/static/chunks/06-mw~zl.diaf.js +0 -1
- package/.next/static/chunks/06fsp5nfga486.js +0 -1
- package/.next/static/chunks/07~c.vc82_c1-.js +0 -1
- package/.next/static/chunks/0abtpeymj-58i.js +0 -1
- package/.next/static/chunks/0amhu3hs4zxxw.js +0 -1
- package/.next/static/chunks/0drgc-oztq6o-.css +0 -1
- package/.next/static/chunks/0eaa2lmymh2fx.js +0 -1
- package/.next/static/chunks/0j9qriqni_r1..js +0 -2
- package/.next/static/chunks/0k.u8sxy~e469.js +0 -4
- package/.next/static/chunks/0k_9.73yz~q10.js +0 -1
- package/.next/static/chunks/0ltsz~s~e4wzu.js +0 -1
- package/.next/static/chunks/0lvd52mjiit6s.js +0 -1
- package/.next/static/chunks/0mf7~j7tvqr46.js +0 -1
- package/.next/static/chunks/0mq0uqbbbb1~2.js +0 -1
- package/.next/static/chunks/0neevhl_o1ozu.css +0 -2
- package/.next/static/chunks/0omj~p3uxkic-.js +0 -1
- package/.next/static/chunks/0qe.8bmmwuucu.js +0 -5
- package/.next/static/chunks/0qpq1~6v-eql7.js +0 -1
- package/.next/static/chunks/0t-gr6j-c65qb.js +0 -1
- package/.next/static/chunks/0tcl81ybuob5i.js +0 -1
- package/.next/static/chunks/0uqimvsni_op~.js +0 -1
- package/.next/static/chunks/0uxf0jd91e-0r.js +0 -1
- package/.next/static/chunks/0vn2y~4w7u3ui.js +0 -83
- package/.next/static/chunks/0wt3kws~_yr8z.js +0 -1
- package/.next/static/chunks/0z2bzovqhl2f5.js +0 -1
- package/.next/static/chunks/0z7bwntvfhxzi.js +0 -12
- package/.next/static/chunks/10n23t.1hpb-1.js +0 -1
- package/.next/static/chunks/14xzmrt5ly6gq.js +0 -31
- package/.next/static/chunks/151wr~6x8aclx.js +0 -1
- package/.next/static/chunks/15gjy.xhhriy8.js +0 -5
- package/.next/static/chunks/16ft9mdv3zwse.js +0 -1
- package/.next/static/chunks/16w-ap~msrwpj.js +0 -1
- package/.next/static/chunks/17oc2l.ekcs8b.css +0 -1
- package/.next/static/chunks/turbopack-0wjmrsi.z32s0.js +0 -1
- package/.next/static/dwsGxWRLV_FPRJyEkai5s/_buildManifest.js +0 -11
- package/.next/static/dwsGxWRLV_FPRJyEkai5s/_clientMiddlewareManifest.js +0 -1
- package/.next/static/dwsGxWRLV_FPRJyEkai5s/_ssgManifest.js +0 -1
- package/.next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.06d3mdzz5bre_.woff2 +0 -0
- package/.next/static/media/apple-icon.16aocl-s-v2qz.png +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.16t1db8_9y2o~.woff2 +0 -0
- package/.next/static/media/favicon.0y2d6j9cou~8p.ico +0 -0
- package/.next/static/media/icon0.0a6mkq6meyird.svg +0 -1
- package/.next/static/media/icon1.04ux133882seb.png +0 -0
- package/.next/trace +0 -2
- package/.next/trace-build +0 -1
- package/.next/turbopack +0 -0
- package/.next/types/routes.d.ts +0 -103
- package/.next/types/validator.ts +0 -349
- /package/{.next/server/app/apple-icon.png.body → src/app/apple-icon.png} +0 -0
- /package/{.next/server/app/favicon.ico.body → src/app/favicon.ico} +0 -0
- /package/{.next/server/app/icon0.svg.body → src/app/icon0.svg} +0 -0
- /package/{.next/server/app/icon1.png.body → src/app/icon1.png} +0 -0
- /package/{.next/server/app/manifest.json.body → src/app/manifest.json} +0 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { spawn, type ChildProcess } from "node:child_process";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { resolveCommandPath, resolveSpawnTarget, ensurePathInEnv, stripClaudeNestingEnv } from "./platform";
|
|
4
|
+
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Types (from adapters/types.ts)
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
export interface TestResult {
|
|
10
|
+
ok: boolean;
|
|
11
|
+
checks: TestCheck[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface TestCheck {
|
|
15
|
+
name: string;
|
|
16
|
+
passed: boolean;
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface UsageSummary {
|
|
21
|
+
inputTokens: number;
|
|
22
|
+
outputTokens: number;
|
|
23
|
+
cachedInputTokens?: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface RunProcessResult {
|
|
27
|
+
exitCode: number | null;
|
|
28
|
+
signal: string | null;
|
|
29
|
+
timedOut: boolean;
|
|
30
|
+
stdout: string;
|
|
31
|
+
stderr: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// ---------------------------------------------------------------------------
|
|
35
|
+
// Internal process utilities (from adapters/process-utils.ts)
|
|
36
|
+
// ---------------------------------------------------------------------------
|
|
37
|
+
|
|
38
|
+
interface RunningProcess {
|
|
39
|
+
child: ChildProcess;
|
|
40
|
+
graceSec: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type ChildProcessWithEvents = ChildProcess & {
|
|
44
|
+
on(event: "error", listener: (err: Error) => void): ChildProcess;
|
|
45
|
+
on(
|
|
46
|
+
event: "close",
|
|
47
|
+
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
48
|
+
): ChildProcess;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const runningProcesses = new Map<string, RunningProcess>();
|
|
52
|
+
const MAX_CAPTURE_BYTES = 4 * 1024 * 1024;
|
|
53
|
+
|
|
54
|
+
function parseObject(value: unknown): Record<string, unknown> {
|
|
55
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
return value as Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function asString(value: unknown, fallback: string): string {
|
|
62
|
+
return typeof value === "string" && value.length > 0 ? value : fallback;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function asNumber(value: unknown, fallback: number): number {
|
|
66
|
+
return typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function appendWithCap(prev: string, chunk: string, cap = MAX_CAPTURE_BYTES) {
|
|
70
|
+
const combined = prev + chunk;
|
|
71
|
+
return combined.length > cap ? combined.slice(combined.length - cap) : combined;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
async function ensureCommandResolvable(
|
|
76
|
+
command: string,
|
|
77
|
+
cwd: string,
|
|
78
|
+
envVars: NodeJS.ProcessEnv,
|
|
79
|
+
) {
|
|
80
|
+
const resolved = await resolveCommandPath(command, { cwd, env: envVars });
|
|
81
|
+
if (resolved) return;
|
|
82
|
+
if (command.includes("/") || command.includes("\\")) {
|
|
83
|
+
const absolute = path.isAbsolute(command) ? command : path.resolve(cwd, command);
|
|
84
|
+
throw new Error(`Command is not executable: "${command}" (resolved: "${absolute}")`);
|
|
85
|
+
}
|
|
86
|
+
throw new Error(`Command not found in PATH: "${command}"`);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async function runChildProcess(
|
|
90
|
+
runId: string,
|
|
91
|
+
command: string,
|
|
92
|
+
args: string[],
|
|
93
|
+
opts: {
|
|
94
|
+
cwd: string;
|
|
95
|
+
env: Record<string, string>;
|
|
96
|
+
timeoutSec: number;
|
|
97
|
+
graceSec: number;
|
|
98
|
+
onLog: (stream: "stdout" | "stderr", chunk: string) => Promise<void>;
|
|
99
|
+
onLogError?: (err: unknown, runId: string, message: string) => void;
|
|
100
|
+
stdin?: string;
|
|
101
|
+
},
|
|
102
|
+
): Promise<RunProcessResult> {
|
|
103
|
+
const onLogError = opts.onLogError ?? ((err, id, msg) => console.warn({ err, runId: id }, msg));
|
|
104
|
+
|
|
105
|
+
return new Promise<RunProcessResult>((resolve, reject) => {
|
|
106
|
+
const mergedEnv = ensurePathInEnv(
|
|
107
|
+
stripClaudeNestingEnv({ ...process.env, ...opts.env }),
|
|
108
|
+
) as NodeJS.ProcessEnv;
|
|
109
|
+
|
|
110
|
+
void resolveSpawnTarget(command, args, { cwd: opts.cwd, env: mergedEnv })
|
|
111
|
+
.then((target) => {
|
|
112
|
+
const child = spawn(target.command, target.args, {
|
|
113
|
+
cwd: opts.cwd,
|
|
114
|
+
env: mergedEnv,
|
|
115
|
+
shell: false,
|
|
116
|
+
stdio: [opts.stdin != null ? "pipe" : "ignore", "pipe", "pipe"],
|
|
117
|
+
}) as ChildProcessWithEvents;
|
|
118
|
+
|
|
119
|
+
if (opts.stdin != null && child.stdin) {
|
|
120
|
+
child.stdin.write(opts.stdin);
|
|
121
|
+
child.stdin.end();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
runningProcesses.set(runId, { child, graceSec: opts.graceSec });
|
|
125
|
+
|
|
126
|
+
let timedOut = false;
|
|
127
|
+
let stdout = "";
|
|
128
|
+
let stderr = "";
|
|
129
|
+
let logChain: Promise<void> = Promise.resolve();
|
|
130
|
+
|
|
131
|
+
const timeout =
|
|
132
|
+
opts.timeoutSec > 0
|
|
133
|
+
? setTimeout(() => {
|
|
134
|
+
timedOut = true;
|
|
135
|
+
child.kill("SIGTERM");
|
|
136
|
+
setTimeout(() => {
|
|
137
|
+
if (!child.killed) {
|
|
138
|
+
child.kill("SIGKILL");
|
|
139
|
+
}
|
|
140
|
+
}, Math.max(1, opts.graceSec) * 1000);
|
|
141
|
+
}, opts.timeoutSec * 1000)
|
|
142
|
+
: null;
|
|
143
|
+
|
|
144
|
+
child.stdout?.on("data", (chunk: unknown) => {
|
|
145
|
+
const text = String(chunk);
|
|
146
|
+
stdout = appendWithCap(stdout, text);
|
|
147
|
+
logChain = logChain
|
|
148
|
+
.then(() => opts.onLog("stdout", text))
|
|
149
|
+
.catch((err) => onLogError(err, runId, "failed to append stdout log chunk"));
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
child.stderr?.on("data", (chunk: unknown) => {
|
|
153
|
+
const text = String(chunk);
|
|
154
|
+
stderr = appendWithCap(stderr, text);
|
|
155
|
+
logChain = logChain
|
|
156
|
+
.then(() => opts.onLog("stderr", text))
|
|
157
|
+
.catch((err) => onLogError(err, runId, "failed to append stderr log chunk"));
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
child.on("error", (err: Error) => {
|
|
161
|
+
if (timeout) clearTimeout(timeout);
|
|
162
|
+
runningProcesses.delete(runId);
|
|
163
|
+
const errno = (err as NodeJS.ErrnoException).code;
|
|
164
|
+
const pathValue = mergedEnv.PATH ?? mergedEnv.Path ?? "";
|
|
165
|
+
const msg =
|
|
166
|
+
errno === "ENOENT"
|
|
167
|
+
? `Failed to start command "${command}" in "${opts.cwd}". Verify command, working directory, and PATH (${pathValue}).`
|
|
168
|
+
: `Failed to start command "${command}" in "${opts.cwd}": ${err.message}`;
|
|
169
|
+
reject(new Error(msg));
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
child.on("close", (code: number | null, signal: NodeJS.Signals | null) => {
|
|
173
|
+
if (timeout) clearTimeout(timeout);
|
|
174
|
+
runningProcesses.delete(runId);
|
|
175
|
+
void logChain.finally(() => {
|
|
176
|
+
resolve({
|
|
177
|
+
exitCode: code,
|
|
178
|
+
signal,
|
|
179
|
+
timedOut,
|
|
180
|
+
stdout,
|
|
181
|
+
stderr,
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
})
|
|
186
|
+
.catch(reject);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// ---------------------------------------------------------------------------
|
|
191
|
+
// Parse utilities (from adapters/claude-local/parse.ts)
|
|
192
|
+
// ---------------------------------------------------------------------------
|
|
193
|
+
|
|
194
|
+
const CLAUDE_AUTH_REQUIRED_RE = /(?:not\s+logged\s+in|please\s+log\s+in|please\s+run\s+`?claude\s+login`?|login\s+required|requires\s+login|unauthorized|authentication\s+required)/i;
|
|
195
|
+
const URL_RE = /(https?:\/\/[^\s'"`<>()[\]{};,!?]+[^\s'"`<>()[\]{};,!.?:]+)/gi;
|
|
196
|
+
|
|
197
|
+
function parseJson(value: string): Record<string, unknown> | null {
|
|
198
|
+
try {
|
|
199
|
+
return JSON.parse(value) as Record<string, unknown>;
|
|
200
|
+
} catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function parseClaudeStreamJson(stdout: string) {
|
|
206
|
+
let sessionId: string | null = null;
|
|
207
|
+
let model = "";
|
|
208
|
+
let finalResult: Record<string, unknown> | null = null;
|
|
209
|
+
const assistantTexts: string[] = [];
|
|
210
|
+
|
|
211
|
+
for (const rawLine of stdout.split(/\r?\n/)) {
|
|
212
|
+
const line = rawLine.trim();
|
|
213
|
+
if (!line) continue;
|
|
214
|
+
const event = parseJson(line);
|
|
215
|
+
if (!event) continue;
|
|
216
|
+
|
|
217
|
+
const type = asString(event.type, "");
|
|
218
|
+
if (type === "system" && asString(event.subtype, "") === "init") {
|
|
219
|
+
sessionId = asString(event.session_id, sessionId ?? "") || sessionId;
|
|
220
|
+
model = asString(event.model, model);
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (type === "assistant") {
|
|
225
|
+
sessionId = asString(event.session_id, sessionId ?? "") || sessionId;
|
|
226
|
+
const message = parseObject(event.message);
|
|
227
|
+
const content = Array.isArray(message.content) ? message.content : [];
|
|
228
|
+
for (const entry of content) {
|
|
229
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) continue;
|
|
230
|
+
const block = entry as Record<string, unknown>;
|
|
231
|
+
if (asString(block.type, "") === "text") {
|
|
232
|
+
const text = asString(block.text, "");
|
|
233
|
+
if (text) assistantTexts.push(text);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (type === "result") {
|
|
240
|
+
finalResult = event;
|
|
241
|
+
sessionId = asString(event.session_id, sessionId ?? "") || sessionId;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (!finalResult) {
|
|
246
|
+
return {
|
|
247
|
+
sessionId,
|
|
248
|
+
model,
|
|
249
|
+
costUsd: null as number | null,
|
|
250
|
+
usage: null as UsageSummary | null,
|
|
251
|
+
summary: assistantTexts.join("\n\n").trim(),
|
|
252
|
+
resultJson: null as Record<string, unknown> | null,
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const usageObj = parseObject(finalResult.usage);
|
|
257
|
+
const usage: UsageSummary = {
|
|
258
|
+
inputTokens: asNumber(usageObj.input_tokens, 0),
|
|
259
|
+
cachedInputTokens: asNumber(usageObj.cache_read_input_tokens, 0),
|
|
260
|
+
outputTokens: asNumber(usageObj.output_tokens, 0),
|
|
261
|
+
};
|
|
262
|
+
const costRaw = finalResult.total_cost_usd;
|
|
263
|
+
const costUsd = typeof costRaw === "number" && Number.isFinite(costRaw) ? costRaw : null;
|
|
264
|
+
const summary = asString(finalResult.result, assistantTexts.join("\n\n")).trim();
|
|
265
|
+
|
|
266
|
+
return {
|
|
267
|
+
sessionId,
|
|
268
|
+
model,
|
|
269
|
+
costUsd,
|
|
270
|
+
usage,
|
|
271
|
+
summary,
|
|
272
|
+
resultJson: finalResult,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function extractClaudeLoginUrl(text: string): string | null {
|
|
277
|
+
const match = text.match(URL_RE);
|
|
278
|
+
if (!match || match.length === 0) return null;
|
|
279
|
+
for (const rawUrl of match) {
|
|
280
|
+
const cleaned = rawUrl.replace(/[\])}.!,?;:'\"]+$/g, "");
|
|
281
|
+
if (cleaned.includes("claude") || cleaned.includes("anthropic") || cleaned.includes("auth")) {
|
|
282
|
+
return cleaned;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return match[0]?.replace(/[\])}.!,?;:'\"]+$/g, "") ?? null;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function extractClaudeErrorMessages(parsed: Record<string, unknown>): string[] {
|
|
289
|
+
const raw = Array.isArray(parsed.errors) ? parsed.errors : [];
|
|
290
|
+
const messages: string[] = [];
|
|
291
|
+
|
|
292
|
+
for (const entry of raw) {
|
|
293
|
+
if (typeof entry === "string") {
|
|
294
|
+
const msg = entry.trim();
|
|
295
|
+
if (msg) messages.push(msg);
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const obj = entry as Record<string, unknown>;
|
|
304
|
+
const msg = asString(obj.message, "") || asString(obj.error, "") || asString(obj.code, "");
|
|
305
|
+
if (msg) {
|
|
306
|
+
messages.push(msg);
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
try {
|
|
311
|
+
messages.push(JSON.stringify(obj));
|
|
312
|
+
} catch {
|
|
313
|
+
// skip non-serializable entry
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return messages;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
function detectClaudeLoginRequired(input: {
|
|
321
|
+
parsed: Record<string, unknown> | null;
|
|
322
|
+
stdout: string;
|
|
323
|
+
stderr: string;
|
|
324
|
+
}): { requiresLogin: boolean; loginUrl: string | null } {
|
|
325
|
+
const resultText = asString(input.parsed?.result, "").trim();
|
|
326
|
+
const messages = [resultText, ...extractClaudeErrorMessages(input.parsed ?? {}), input.stdout, input.stderr]
|
|
327
|
+
.join("\n")
|
|
328
|
+
.split(/\r?\n/)
|
|
329
|
+
.map((line) => line.trim())
|
|
330
|
+
.filter(Boolean);
|
|
331
|
+
|
|
332
|
+
const requiresLogin = messages.some((line) => CLAUDE_AUTH_REQUIRED_RE.test(line));
|
|
333
|
+
return {
|
|
334
|
+
requiresLogin,
|
|
335
|
+
loginUrl: extractClaudeLoginUrl([input.stdout, input.stderr].join("\n")),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// ---------------------------------------------------------------------------
|
|
340
|
+
// testEnvironment (from adapters/claude-local/test.ts)
|
|
341
|
+
// ---------------------------------------------------------------------------
|
|
342
|
+
|
|
343
|
+
export async function testEnvironment(cwd: string): Promise<TestResult> {
|
|
344
|
+
const checks: TestCheck[] = [];
|
|
345
|
+
|
|
346
|
+
// Check 1: verify `claude` command exists
|
|
347
|
+
try {
|
|
348
|
+
await ensureCommandResolvable("claude", cwd, { ...process.env });
|
|
349
|
+
checks.push({
|
|
350
|
+
name: "claude_command_resolvable",
|
|
351
|
+
passed: true,
|
|
352
|
+
message: "claude command found in PATH",
|
|
353
|
+
});
|
|
354
|
+
} catch (err) {
|
|
355
|
+
checks.push({
|
|
356
|
+
name: "claude_command_resolvable",
|
|
357
|
+
passed: false,
|
|
358
|
+
message: err instanceof Error ? err.message : "claude command not found in PATH",
|
|
359
|
+
});
|
|
360
|
+
return { ok: false, checks };
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Check 2: get CLI version (best-effort per D-06)
|
|
364
|
+
try {
|
|
365
|
+
const versionProbe = await runChildProcess(
|
|
366
|
+
`claude-version-${Date.now()}`,
|
|
367
|
+
"claude",
|
|
368
|
+
["--version"],
|
|
369
|
+
{
|
|
370
|
+
cwd,
|
|
371
|
+
env: {},
|
|
372
|
+
timeoutSec: 5,
|
|
373
|
+
graceSec: 2,
|
|
374
|
+
onLog: async () => {},
|
|
375
|
+
},
|
|
376
|
+
);
|
|
377
|
+
const versionStr = (versionProbe.stdout.trim() || versionProbe.stderr.trim()) || "";
|
|
378
|
+
checks.push({
|
|
379
|
+
name: "claude_version",
|
|
380
|
+
passed: true,
|
|
381
|
+
message: versionStr ? `Version: ${versionStr}` : "Version: unknown",
|
|
382
|
+
});
|
|
383
|
+
} catch {
|
|
384
|
+
checks.push({
|
|
385
|
+
name: "claude_version",
|
|
386
|
+
passed: true,
|
|
387
|
+
message: "Version: unknown",
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// Check 3: verify ANTHROPIC_API_KEY (optional — claude may use browser auth)
|
|
392
|
+
const apiKey = process.env.ANTHROPIC_API_KEY;
|
|
393
|
+
const hasApiKey = typeof apiKey === "string" && apiKey.trim().length > 0;
|
|
394
|
+
checks.push({
|
|
395
|
+
name: "anthropic_api_key",
|
|
396
|
+
passed: hasApiKey,
|
|
397
|
+
message: hasApiKey
|
|
398
|
+
? "ANTHROPIC_API_KEY is set"
|
|
399
|
+
: "ANTHROPIC_API_KEY is not set (claude may use browser/subscription auth)",
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
// Check 4: run hello probe
|
|
403
|
+
const probeId = `claude-test-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
404
|
+
try {
|
|
405
|
+
const probe = await runChildProcess(
|
|
406
|
+
probeId,
|
|
407
|
+
"claude",
|
|
408
|
+
["--print", "-", "--output-format", "stream-json", "--verbose"],
|
|
409
|
+
{
|
|
410
|
+
cwd,
|
|
411
|
+
env: {},
|
|
412
|
+
stdin: "Respond with just the word hello",
|
|
413
|
+
timeoutSec: 45,
|
|
414
|
+
graceSec: 5,
|
|
415
|
+
onLog: async () => {},
|
|
416
|
+
},
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
const parsedStream = parseClaudeStreamJson(probe.stdout);
|
|
420
|
+
const parsed = parsedStream.resultJson;
|
|
421
|
+
const loginMeta = detectClaudeLoginRequired({
|
|
422
|
+
parsed,
|
|
423
|
+
stdout: probe.stdout,
|
|
424
|
+
stderr: probe.stderr,
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
if (loginMeta.requiresLogin) {
|
|
428
|
+
const hint = loginMeta.loginUrl
|
|
429
|
+
? `Run \`claude login\` and complete sign-in at ${loginMeta.loginUrl}`
|
|
430
|
+
: "Run `claude login` to authenticate";
|
|
431
|
+
checks.push({
|
|
432
|
+
name: "claude_hello_probe",
|
|
433
|
+
passed: false,
|
|
434
|
+
message: `Claude login required. ${hint}`,
|
|
435
|
+
});
|
|
436
|
+
} else if (probe.timedOut) {
|
|
437
|
+
checks.push({
|
|
438
|
+
name: "claude_hello_probe",
|
|
439
|
+
passed: false,
|
|
440
|
+
message: "Claude hello probe timed out",
|
|
441
|
+
});
|
|
442
|
+
} else if ((probe.exitCode ?? 1) === 0) {
|
|
443
|
+
const summary = parsedStream.summary.trim();
|
|
444
|
+
const hasHello = /\bhello\b/i.test(summary);
|
|
445
|
+
checks.push({
|
|
446
|
+
name: "claude_hello_probe",
|
|
447
|
+
passed: hasHello,
|
|
448
|
+
message: hasHello
|
|
449
|
+
? "Claude hello probe succeeded"
|
|
450
|
+
: `Claude probe ran but returned unexpected output: ${summary.slice(0, 120)}`,
|
|
451
|
+
});
|
|
452
|
+
} else {
|
|
453
|
+
const stderrLine =
|
|
454
|
+
probe.stderr
|
|
455
|
+
.split(/\r?\n/)
|
|
456
|
+
.map((l) => l.trim())
|
|
457
|
+
.find(Boolean) ?? "";
|
|
458
|
+
checks.push({
|
|
459
|
+
name: "claude_hello_probe",
|
|
460
|
+
passed: false,
|
|
461
|
+
message: stderrLine
|
|
462
|
+
? `Claude hello probe failed: ${stderrLine}`
|
|
463
|
+
: `Claude hello probe failed with exit code ${probe.exitCode ?? -1}`,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
} catch (err) {
|
|
467
|
+
checks.push({
|
|
468
|
+
name: "claude_hello_probe",
|
|
469
|
+
passed: false,
|
|
470
|
+
message: err instanceof Error ? err.message : "Claude hello probe threw an error",
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const ok = checks.every((c) => c.passed || c.name === "anthropic_api_key");
|
|
475
|
+
return { ok, checks };
|
|
476
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export interface ConfigEntry {
|
|
2
|
+
defaultValue: unknown;
|
|
3
|
+
type: "string" | "number" | "boolean" | "object";
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const CONFIG_DEFAULTS: Record<string, ConfigEntry> = {
|
|
8
|
+
"git.pathMappingRules": {
|
|
9
|
+
defaultValue: [],
|
|
10
|
+
type: "object",
|
|
11
|
+
label: "Git Path Mapping Rules",
|
|
12
|
+
},
|
|
13
|
+
"system.maxUploadBytes": {
|
|
14
|
+
defaultValue: 52428800,
|
|
15
|
+
type: "number",
|
|
16
|
+
label: "Max Upload Size (bytes)",
|
|
17
|
+
},
|
|
18
|
+
"system.maxConcurrentExecutions": {
|
|
19
|
+
defaultValue: 20,
|
|
20
|
+
type: "number",
|
|
21
|
+
label: "Max Concurrent Executions",
|
|
22
|
+
},
|
|
23
|
+
"git.timeoutSec": {
|
|
24
|
+
defaultValue: 30,
|
|
25
|
+
type: "number",
|
|
26
|
+
label: "Git Operation Timeout (seconds)",
|
|
27
|
+
},
|
|
28
|
+
"search.resultLimit": {
|
|
29
|
+
defaultValue: 20,
|
|
30
|
+
type: "number",
|
|
31
|
+
label: "Search Result Limit",
|
|
32
|
+
},
|
|
33
|
+
"search.allModeCap": {
|
|
34
|
+
defaultValue: 5,
|
|
35
|
+
type: "number",
|
|
36
|
+
label: "All-Mode Per-Type Cap",
|
|
37
|
+
},
|
|
38
|
+
"search.debounceMs": {
|
|
39
|
+
defaultValue: 250,
|
|
40
|
+
type: "number",
|
|
41
|
+
label: "Search Debounce (ms)",
|
|
42
|
+
},
|
|
43
|
+
"search.snippetLength": {
|
|
44
|
+
defaultValue: 80,
|
|
45
|
+
type: "number",
|
|
46
|
+
label: "Snippet Length (characters)",
|
|
47
|
+
},
|
|
48
|
+
"missions.grid.minCols": {
|
|
49
|
+
defaultValue: 1,
|
|
50
|
+
type: "number",
|
|
51
|
+
label: "Grid Min Columns",
|
|
52
|
+
},
|
|
53
|
+
"missions.grid.maxCols": {
|
|
54
|
+
defaultValue: 5,
|
|
55
|
+
type: "number",
|
|
56
|
+
label: "Grid Max Columns",
|
|
57
|
+
},
|
|
58
|
+
"missions.grid.minRows": {
|
|
59
|
+
defaultValue: 1,
|
|
60
|
+
type: "number",
|
|
61
|
+
label: "Grid Min Rows",
|
|
62
|
+
},
|
|
63
|
+
"missions.grid.maxRows": {
|
|
64
|
+
defaultValue: 5,
|
|
65
|
+
type: "number",
|
|
66
|
+
label: "Grid Max Rows",
|
|
67
|
+
},
|
|
68
|
+
"terminal.app": {
|
|
69
|
+
defaultValue: "Terminal",
|
|
70
|
+
type: "string",
|
|
71
|
+
label: "Default Terminal App",
|
|
72
|
+
},
|
|
73
|
+
"terminal.wsPort": {
|
|
74
|
+
defaultValue: 3001,
|
|
75
|
+
type: "number",
|
|
76
|
+
label: "WebSocket Port",
|
|
77
|
+
},
|
|
78
|
+
"terminal.idleTimeoutSec": {
|
|
79
|
+
defaultValue: 180,
|
|
80
|
+
type: "number",
|
|
81
|
+
label: "Idle Timeout (seconds)",
|
|
82
|
+
},
|
|
83
|
+
"assistant.systemPrompt": {
|
|
84
|
+
defaultValue: [
|
|
85
|
+
"You are Tower Assistant — the built-in AI operator for the Tower task management platform.",
|
|
86
|
+
"",
|
|
87
|
+
"## Identity",
|
|
88
|
+
"- You are a task management operator, NOT a coding assistant.",
|
|
89
|
+
"- You can ONLY use Tower MCP tools. You CANNOT read files, edit code, run shell commands, or search the web.",
|
|
90
|
+
"- Always respond in the same language the user uses.",
|
|
91
|
+
"",
|
|
92
|
+
"## Capabilities",
|
|
93
|
+
"When users ask what you can do, respond with EXACTLY these 6 groups. Translate to the user's language.",
|
|
94
|
+
"",
|
|
95
|
+
"1. **Workspace & Project** — View, create, update, delete workspaces and projects. Search projects and repositories.",
|
|
96
|
+
"2. **Task Management** — Create tasks (priority, labels, worktree branch isolation, sub-path, auto-start). Move task status (TODO → IN_PROGRESS → IN_REVIEW → DONE / CANCELLED). Update task info and labels.",
|
|
97
|
+
"3. **Execution Monitor** — Start task execution, check execution status, get terminal output, send commands to running terminals.",
|
|
98
|
+
"4. **Daily Report & Todo** — Generate daily work summary (completed + in-progress). View pending task list sorted by priority.",
|
|
99
|
+
"5. **Labels & Notes & Assets** — Manage workspace labels, project notes, and file attachments.",
|
|
100
|
+
"6. **Global Search** — Search tasks, projects, repositories, notes, and assets by keyword.",
|
|
101
|
+
"",
|
|
102
|
+
"Do NOT list any capabilities beyond the above. Do NOT mention code editing, debugging, testing, git operations, or any development capabilities.",
|
|
103
|
+
"",
|
|
104
|
+
"## Scope Boundary",
|
|
105
|
+
"If the user asks you to write code, explain code, debug, search the web, read/write files, or anything outside Tower task management, reply:",
|
|
106
|
+
"\"抱歉,我只能帮你管理工作区、项目和任务。编码、调试等操作请在任务终端中完成。\"",
|
|
107
|
+
].join("\n"),
|
|
108
|
+
type: "string",
|
|
109
|
+
label: "Assistant System Prompt",
|
|
110
|
+
},
|
|
111
|
+
"assistant.displayMode": {
|
|
112
|
+
defaultValue: "sidebar",
|
|
113
|
+
type: "string",
|
|
114
|
+
label: "Assistant Display Mode",
|
|
115
|
+
},
|
|
116
|
+
"assistant.communicationMode": {
|
|
117
|
+
defaultValue: "chat",
|
|
118
|
+
type: "string",
|
|
119
|
+
label: "Assistant Communication Mode",
|
|
120
|
+
},
|
|
121
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin config reader for non-Next.js server modules (process-manager, adapters).
|
|
3
|
+
* Does NOT use "use server" or next/cache — safe to import from any Node.js context.
|
|
4
|
+
* Mirrors the getConfigValue logic from config-actions.ts without Next.js dependencies.
|
|
5
|
+
*/
|
|
6
|
+
import { db } from "@/lib/db";
|
|
7
|
+
|
|
8
|
+
export async function readConfigValue<T>(key: string, defaultValue: T): Promise<T> {
|
|
9
|
+
const row = await db.systemConfig.findUnique({ where: { key } });
|
|
10
|
+
if (!row) return defaultValue;
|
|
11
|
+
try {
|
|
12
|
+
return JSON.parse(row.value) as T;
|
|
13
|
+
} catch {
|
|
14
|
+
return defaultValue;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TaskStatus } from "@prisma/client";
|
|
2
|
+
|
|
3
|
+
export const BOARD_COLUMNS: { id: TaskStatus; label: string; color: string }[] = [
|
|
4
|
+
{ id: "TODO", label: "To Do", color: "bg-slate-400" },
|
|
5
|
+
{ id: "IN_PROGRESS", label: "In Progress", color: "bg-amber-400" },
|
|
6
|
+
{ id: "IN_REVIEW", label: "In Review", color: "bg-sky-400" },
|
|
7
|
+
{ id: "DONE", label: "Done", color: "bg-emerald-400" },
|
|
8
|
+
{ id: "CANCELLED", label: "Cancelled", color: "bg-rose-400" },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export const PRIORITY_CONFIG = {
|
|
12
|
+
LOW: { label: "低", color: "bg-slate-500/20 text-slate-300 border border-slate-500/30" },
|
|
13
|
+
MEDIUM: { label: "中", color: "bg-amber-500/20 text-amber-300 border border-amber-500/30" },
|
|
14
|
+
HIGH: { label: "高", color: "bg-orange-500/20 text-orange-300 border border-orange-500/30" },
|
|
15
|
+
CRITICAL: { label: "紧急", color: "bg-rose-500/20 text-rose-300 border border-rose-500/30" },
|
|
16
|
+
} as const;
|
|
17
|
+
|
|
18
|
+
/** System label name for project workbench tasks — hidden from kanban board */
|
|
19
|
+
export const TOWER_LABEL_NAME = "Tower";
|
|
20
|
+
export const TOWER_LABEL_COLOR = "#8b5cf6"; // purple
|
|
21
|
+
|
|
22
|
+
export const AGENTS = ["CLAUDE_CODE", "MINIMAX"] as const;
|
|
23
|
+
export type AgentType = (typeof AGENTS)[number];
|
|
24
|
+
|
|
25
|
+
export const NOTE_CATEGORIES_PRESET = ["账号", "环境", "需求", "备忘"] as const;
|
|
26
|
+
export type NoteCategoryPreset = (typeof NOTE_CATEGORIES_PRESET)[number];
|
package/src/lib/db.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrismaClient } from "@prisma/client";
|
|
2
|
+
|
|
3
|
+
const globalForPrisma = globalThis as unknown as {
|
|
4
|
+
prisma: PrismaClient | undefined;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const db =
|
|
8
|
+
globalForPrisma.prisma ??
|
|
9
|
+
new PrismaClient({
|
|
10
|
+
log: process.env.NODE_ENV === "development" ? ["query"] : [],
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = db;
|
|
14
|
+
|
|
15
|
+
let initialized = false;
|
|
16
|
+
|
|
17
|
+
export async function initDb(): Promise<PrismaClient> {
|
|
18
|
+
if (initialized) return db;
|
|
19
|
+
await db.$connect();
|
|
20
|
+
await db.$queryRaw`PRAGMA journal_mode=WAL`;
|
|
21
|
+
await db.$queryRaw`PRAGMA busy_timeout=5000`;
|
|
22
|
+
initialized = true;
|
|
23
|
+
return db;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Ensure WAL is flushed and connections closed on exit
|
|
27
|
+
process.on("SIGTERM", () => { db.$disconnect().catch(() => {}); });
|
|
28
|
+
process.on("SIGINT", () => { db.$disconnect().catch(() => {}); });
|