tower-studio 0.1.2 → 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/bin/tower.mjs +5 -15
- package/next.config.ts +1 -8
- package/package.json +10 -11
- package/prisma/dev.db +0 -0
- package/public/vs/_commonjsHelpers-CT9FvmAN.js +1 -0
- package/public/vs/abap-D-t0cyap.js +1 -0
- package/public/vs/apex-CcIm7xu6.js +1 -0
- package/public/vs/assets/css.worker-HnVq6Ewq.js +93 -0
- package/public/vs/assets/editor.worker-Be8ye1pW.js +26 -0
- package/public/vs/assets/html.worker-B51mlPHg.js +470 -0
- package/public/vs/assets/json.worker-DKiEKt88.js +58 -0
- package/public/vs/assets/ts.worker-CMbG-7ft.js +67731 -0
- package/public/vs/azcli-BA0tQDCg.js +1 -0
- package/public/vs/basic-languages/monaco.contribution.js +1 -0
- package/public/vs/bat-C397hTD6.js +1 -0
- package/public/vs/bicep-DF5aW17k.js +2 -0
- package/public/vs/cameligo-plsz8qhj.js +1 -0
- package/public/vs/clojure-Y2auQMzK.js +1 -0
- package/public/vs/coffee-Bu45yuWE.js +1 -0
- package/public/vs/cpp-CkKPQIni.js +1 -0
- package/public/vs/csharp-CX28MZyh.js +1 -0
- package/public/vs/csp-D8uWnyxW.js +1 -0
- package/public/vs/css-CaeNmE3S.js +3 -0
- package/public/vs/cssMode-CjiAH6dQ.js +1 -0
- package/public/vs/cypher-DVThT8BS.js +1 -0
- package/public/vs/dart-CmGfCvrO.js +1 -0
- package/public/vs/dockerfile-CZqqYdch.js +1 -0
- package/public/vs/ecl-30fUercY.js +1 -0
- package/public/vs/editor/editor.main.css +1 -0
- package/public/vs/editor/editor.main.js +5 -0
- package/public/vs/editor.api-CalNCsUg.js +903 -0
- package/public/vs/elixir-xjPaIfzF.js +1 -0
- package/public/vs/flow9-DqtmStfK.js +1 -0
- package/public/vs/freemarker2-Cz_sV6Md.js +3 -0
- package/public/vs/fsharp-BOMdg4U1.js +1 -0
- package/public/vs/go-D_hbi-Jt.js +1 -0
- package/public/vs/graphql-CKUU4kLG.js +1 -0
- package/public/vs/handlebars-OwglfO-1.js +1 -0
- package/public/vs/hcl-DTaboeZW.js +1 -0
- package/public/vs/html-Pa1xEWsY.js +1 -0
- package/public/vs/htmlMode-Bz67EXwp.js +1 -0
- package/public/vs/ini-CsNwO04R.js +1 -0
- package/public/vs/java-CI4ZMsH9.js +1 -0
- package/public/vs/javascript-PczUCGdz.js +1 -0
- package/public/vs/jsonMode-DULH5oaX.js +7 -0
- package/public/vs/julia-BwzEvaQw.js +1 -0
- package/public/vs/kotlin-IUYPiTV8.js +1 -0
- package/public/vs/language/css/monaco.contribution.js +1 -0
- package/public/vs/language/html/monaco.contribution.js +1 -0
- package/public/vs/language/json/monaco.contribution.js +1 -0
- package/public/vs/language/typescript/monaco.contribution.js +1 -0
- package/public/vs/less-C0eDYdqa.js +2 -0
- package/public/vs/lexon-iON-Kj97.js +1 -0
- package/public/vs/liquid-DqKjdPGy.js +1 -0
- package/public/vs/loader.js +1368 -0
- package/public/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
- package/public/vs/lua-DtygF91M.js +1 -0
- package/public/vs/m3-CsR4AuFi.js +1 -0
- package/public/vs/markdown-C_rD0bIw.js +1 -0
- package/public/vs/mdx-DEWtB1K5.js +1 -0
- package/public/vs/mips-CiYP61RB.js +1 -0
- package/public/vs/monaco.contribution-D2OdxNBt.js +1 -0
- package/public/vs/monaco.contribution-DO3azKX8.js +1 -0
- package/public/vs/monaco.contribution-EcChJV6a.js +1 -0
- package/public/vs/monaco.contribution-qLAYrEOP.js +1 -0
- package/public/vs/msdax-C38-sJlp.js +1 -0
- package/public/vs/mysql-CdtbpvbG.js +1 -0
- package/public/vs/nls.messages-loader.js +1 -0
- package/public/vs/nls.messages.cs.js.js +17 -0
- package/public/vs/nls.messages.de.js.js +17 -0
- package/public/vs/nls.messages.es.js.js +17 -0
- package/public/vs/nls.messages.fr.js.js +15 -0
- package/public/vs/nls.messages.it.js.js +15 -0
- package/public/vs/nls.messages.ja.js.js +17 -0
- package/public/vs/nls.messages.js.js +10 -0
- package/public/vs/nls.messages.ko.js.js +25 -0
- package/public/vs/nls.messages.pl.js.js +17 -0
- package/public/vs/nls.messages.pt-br.js.js +6 -0
- package/public/vs/nls.messages.ru.js.js +17 -0
- package/public/vs/nls.messages.tr.js.js +15 -0
- package/public/vs/nls.messages.zh-cn.js.js +17 -0
- package/public/vs/nls.messages.zh-tw.js.js +15 -0
- package/public/vs/objective-c-CntZFaHX.js +1 -0
- package/public/vs/pascal-r6kuqfl_.js +1 -0
- package/public/vs/pascaligo-BiXoTmXh.js +1 -0
- package/public/vs/perl-DABw_TcH.js +1 -0
- package/public/vs/pgsql-me_jFXeX.js +1 -0
- package/public/vs/php-D_kh-9LK.js +1 -0
- package/public/vs/pla-VfZjczW0.js +1 -0
- package/public/vs/postiats-BBSzz8Pk.js +1 -0
- package/public/vs/powerquery-Dt-g_2cc.js +1 -0
- package/public/vs/powershell-B-7ap1zc.js +1 -0
- package/public/vs/protobuf-BmtuEB1A.js +2 -0
- package/public/vs/pug-BRpRNeEb.js +1 -0
- package/public/vs/python-Cr0UkIbn.js +1 -0
- package/public/vs/qsharp-BzsFaUU9.js +1 -0
- package/public/vs/r-f8dDdrp4.js +1 -0
- package/public/vs/razor-BYAHOTkz.js +1 -0
- package/public/vs/redis-fvZQY4PI.js +1 -0
- package/public/vs/redshift-45Et0LQi.js +1 -0
- package/public/vs/restructuredtext-C7UUFKFD.js +1 -0
- package/public/vs/ruby-CZO8zYTz.js +1 -0
- package/public/vs/rust-Bfetafyc.js +1 -0
- package/public/vs/sb-3GYllVck.js +1 -0
- package/public/vs/scala-foMgrKo1.js +1 -0
- package/public/vs/scheme-CHdMtr7p.js +1 -0
- package/public/vs/scss-C1cmLt9V.js +3 -0
- package/public/vs/shell-ClXCKCEW.js +1 -0
- package/public/vs/solidity-MZ6ExpPy.js +1 -0
- package/public/vs/sophia-DWkuSsPQ.js +1 -0
- package/public/vs/sparql-AUGFYSyk.js +1 -0
- package/public/vs/sql-32GpJSV2.js +1 -0
- package/public/vs/st-CuDFIVZ_.js +1 -0
- package/public/vs/swift-n-2HociN.js +3 -0
- package/public/vs/systemverilog-Ch4vA8Yt.js +1 -0
- package/public/vs/tcl-D74tq1nH.js +1 -0
- package/public/vs/tsMode-CZz1Umrk.js +11 -0
- package/public/vs/twig-C6taOxMV.js +1 -0
- package/public/vs/typescript-DfOrAzoV.js +1 -0
- package/public/vs/typespec-D-PIh9Xw.js +1 -0
- package/public/vs/vb-Dyb2648j.js +1 -0
- package/public/vs/wgsl-BhLXMOR0.js +298 -0
- package/public/vs/workers-DcJshg-q.js +1 -0
- package/public/vs/xml-CdsdnY8S.js +1 -0
- package/public/vs/yaml-DYGvmE88.js +1 -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/components/layout/__tests__/top-bar-username.test.tsx +24 -0
- package/src/components/onboarding/__tests__/onboarding-wizard.test.tsx +185 -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/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/pty/__tests__/ws-server-assistant.test.ts +7 -0
- package/.next/standalone/tower/.claude/rules/process-lifecycle.md +0 -31
- package/.next/standalone/tower/.claude/rules/security.md +0 -29
- package/.next/standalone/tower/.claude/rules/ui.md +0 -105
- package/.next/standalone/tower/AGENTS.md +0 -325
- package/.next/standalone/tower/CHANGELOG.md +0 -63
- package/.next/standalone/tower/CLAUDE.md +0 -33
- package/.next/standalone/tower/LICENSE +0 -21
- package/.next/standalone/tower/README.md +0 -214
- package/.next/standalone/tower/README.zh.md +0 -212
- package/.next/standalone/tower/bin/tower.mjs +0 -180
- package/.next/standalone/tower/docs/README.md +0 -51
- package/.next/standalone/tower/docs/ai/README.md +0 -91
- package/.next/standalone/tower/docs/ai/cli-abstraction-design.md +0 -398
- package/.next/standalone/tower/docs/ai/cli-abstraction-plan.md +0 -1345
- package/.next/standalone/tower/docs/assets-notes/README.md +0 -41
- package/.next/standalone/tower/docs/assistant/README.md +0 -48
- package/.next/standalone/tower/docs/board/README.md +0 -36
- package/.next/standalone/tower/docs/diagrams/tower-ai-architecture-en.html +0 -259
- package/.next/standalone/tower/docs/diagrams/tower-ai-architecture.html +0 -259
- package/.next/standalone/tower/docs/diagrams/tower-data-model-en.html +0 -344
- package/.next/standalone/tower/docs/diagrams/tower-data-model.html +0 -344
- package/.next/standalone/tower/docs/diagrams/tower-module-map-en.html +0 -176
- package/.next/standalone/tower/docs/diagrams/tower-module-map.html +0 -176
- package/.next/standalone/tower/docs/diagrams/tower-system-architecture-en.html +0 -336
- package/.next/standalone/tower/docs/diagrams/tower-system-architecture.html +0 -336
- package/.next/standalone/tower/docs/diagrams/tower-task-lifecycle-en.html +0 -251
- package/.next/standalone/tower/docs/diagrams/tower-task-lifecycle.html +0 -251
- package/.next/standalone/tower/docs/en/guide/architecture.md +0 -79
- package/.next/standalone/tower/docs/en/guide/diagrams.md +0 -24
- package/.next/standalone/tower/docs/en/guide/getting-started.md +0 -80
- package/.next/standalone/tower/docs/en/guide/introduction.md +0 -84
- package/.next/standalone/tower/docs/en/index.md +0 -36
- package/.next/standalone/tower/docs/en/modules/ai.md +0 -110
- package/.next/standalone/tower/docs/en/modules/assets-notes.md +0 -56
- package/.next/standalone/tower/docs/en/modules/assistant.md +0 -63
- package/.next/standalone/tower/docs/en/modules/board.md +0 -44
- package/.next/standalone/tower/docs/en/modules/git.md +0 -55
- package/.next/standalone/tower/docs/en/modules/i18n.md +0 -35
- package/.next/standalone/tower/docs/en/modules/mcp.md +0 -62
- package/.next/standalone/tower/docs/en/modules/missions.md +0 -47
- package/.next/standalone/tower/docs/en/modules/project.md +0 -57
- package/.next/standalone/tower/docs/en/modules/search.md +0 -49
- package/.next/standalone/tower/docs/en/modules/settings.md +0 -63
- package/.next/standalone/tower/docs/en/modules/task.md +0 -82
- package/.next/standalone/tower/docs/en/modules/terminal.md +0 -73
- package/.next/standalone/tower/docs/en/modules/workspace.md +0 -61
- package/.next/standalone/tower/docs/git/README.md +0 -42
- package/.next/standalone/tower/docs/guide/architecture.md +0 -29
- package/.next/standalone/tower/docs/guide/diagrams.md +0 -24
- package/.next/standalone/tower/docs/guide/getting-started.md +0 -80
- package/.next/standalone/tower/docs/guide/introduction.md +0 -84
- package/.next/standalone/tower/docs/i18n/README.md +0 -23
- package/.next/standalone/tower/docs/index.md +0 -36
- package/.next/standalone/tower/docs/mcp/README.md +0 -50
- package/.next/standalone/tower/docs/missions/README.md +0 -40
- package/.next/standalone/tower/docs/modules/ai.md +0 -104
- package/.next/standalone/tower/docs/modules/assets-notes.md +0 -68
- package/.next/standalone/tower/docs/modules/assistant.md +0 -74
- package/.next/standalone/tower/docs/modules/board.md +0 -56
- package/.next/standalone/tower/docs/modules/git.md +0 -61
- package/.next/standalone/tower/docs/modules/i18n.md +0 -38
- package/.next/standalone/tower/docs/modules/mcp.md +0 -68
- package/.next/standalone/tower/docs/modules/missions.md +0 -54
- package/.next/standalone/tower/docs/modules/project.md +0 -65
- package/.next/standalone/tower/docs/modules/search.md +0 -57
- package/.next/standalone/tower/docs/modules/settings.md +0 -72
- package/.next/standalone/tower/docs/modules/task.md +0 -82
- package/.next/standalone/tower/docs/modules/terminal.md +0 -70
- package/.next/standalone/tower/docs/modules/workspace.md +0 -68
- package/.next/standalone/tower/docs/package.json +0 -11
- package/.next/standalone/tower/docs/pnpm-lock.yaml +0 -1620
- package/.next/standalone/tower/docs/postcss.config.mjs +0 -2
- package/.next/standalone/tower/docs/project/README.md +0 -45
- package/.next/standalone/tower/docs/public/banner.png +0 -0
- package/.next/standalone/tower/docs/public/diagrams/tower-ai-architecture-en.html +0 -259
- package/.next/standalone/tower/docs/public/diagrams/tower-ai-architecture.html +0 -259
- package/.next/standalone/tower/docs/public/diagrams/tower-data-model-en.html +0 -344
- package/.next/standalone/tower/docs/public/diagrams/tower-data-model.html +0 -344
- package/.next/standalone/tower/docs/public/diagrams/tower-module-map-en.html +0 -176
- package/.next/standalone/tower/docs/public/diagrams/tower-module-map.html +0 -176
- package/.next/standalone/tower/docs/public/diagrams/tower-system-architecture-en.html +0 -336
- package/.next/standalone/tower/docs/public/diagrams/tower-system-architecture.html +0 -336
- package/.next/standalone/tower/docs/public/diagrams/tower-task-lifecycle-en.html +0 -251
- package/.next/standalone/tower/docs/public/diagrams/tower-task-lifecycle.html +0 -251
- package/.next/standalone/tower/docs/search/README.md +0 -37
- package/.next/standalone/tower/docs/settings/README.md +0 -43
- package/.next/standalone/tower/docs/task/README.md +0 -67
- package/.next/standalone/tower/docs/terminal/README.md +0 -58
- package/.next/standalone/tower/docs/workspace/README.md +0 -50
- package/.next/standalone/tower/docs/zh/guide/architecture.md +0 -29
- package/.next/standalone/tower/docs/zh/guide/diagrams.md +0 -24
- package/.next/standalone/tower/docs/zh/guide/getting-started.md +0 -80
- package/.next/standalone/tower/docs/zh/guide/introduction.md +0 -66
- package/.next/standalone/tower/docs/zh/index.md +0 -23
- package/.next/standalone/tower/docs/zh/modules/ai.md +0 -104
- package/.next/standalone/tower/docs/zh/modules/assets-notes.md +0 -68
- package/.next/standalone/tower/docs/zh/modules/assistant.md +0 -74
- package/.next/standalone/tower/docs/zh/modules/board.md +0 -56
- package/.next/standalone/tower/docs/zh/modules/git.md +0 -61
- package/.next/standalone/tower/docs/zh/modules/i18n.md +0 -38
- package/.next/standalone/tower/docs/zh/modules/mcp.md +0 -68
- package/.next/standalone/tower/docs/zh/modules/missions.md +0 -54
- package/.next/standalone/tower/docs/zh/modules/project.md +0 -65
- package/.next/standalone/tower/docs/zh/modules/search.md +0 -57
- package/.next/standalone/tower/docs/zh/modules/settings.md +0 -72
- package/.next/standalone/tower/docs/zh/modules/task.md +0 -82
- package/.next/standalone/tower/docs/zh/modules/terminal.md +0 -70
- package/.next/standalone/tower/docs/zh/modules/workspace.md +0 -68
- package/.next/standalone/tower/eslint.config.mjs +0 -18
- package/.next/standalone/tower/next.config.ts +0 -15
- package/.next/standalone/tower/package.json +0 -117
- package/.next/standalone/tower/playwright.config.ts +0 -28
- package/.next/standalone/tower/pnpm-lock.yaml +0 -10524
- package/.next/standalone/tower/pnpm-workspace.yaml +0 -6
- package/.next/standalone/tower/prisma/init-fts.ts +0 -23
- package/.next/standalone/tower/prisma/schema.prisma +0 -290
- package/.next/standalone/tower/prompts/backend-developer.md +0 -20
- package/.next/standalone/tower/prompts/code-reviewer.md +0 -19
- package/.next/standalone/tower/prompts/frontend-developer.md +0 -20
- package/.next/standalone/tower/prompts/product-manager.md +0 -16
- package/.next/standalone/tower/public/banner.jpg +0 -0
- package/.next/standalone/tower/public/logo.png +0 -0
- package/.next/standalone/tower/scripts/copy-monaco.js +0 -27
- package/.next/standalone/tower/scripts/init-db.ts +0 -74
- package/.next/standalone/tower/scripts/migrate-data.ts +0 -102
- package/.next/standalone/tower/server.js +0 -38
- package/.next/standalone/tower/src/app/favicon.ico +0 -0
- package/.next/standalone/tower/src/mcp/db.ts +0 -11
- package/.next/standalone/tower/src/mcp/index.ts +0 -15
- package/.next/standalone/tower/src/mcp/server.ts +0 -52
- package/.next/standalone/tower/src/mcp/tools/knowledge-tools.ts +0 -100
- package/.next/standalone/tower/src/mcp/tools/label-tools.ts +0 -70
- package/.next/standalone/tower/src/mcp/tools/note-asset-tools.ts +0 -271
- package/.next/standalone/tower/src/mcp/tools/project-tools.ts +0 -79
- package/.next/standalone/tower/src/mcp/tools/report-tools.ts +0 -214
- package/.next/standalone/tower/src/mcp/tools/search-tools.ts +0 -32
- package/.next/standalone/tower/src/mcp/tools/task-tools.ts +0 -250
- package/.next/standalone/tower/src/mcp/tools/terminal-tools.ts +0 -154
- package/.next/standalone/tower/src/mcp/tools/workspace-tools.ts +0 -73
- package/.next/standalone/tower/tests/e2e/chat-flow.spec.ts +0 -249
- package/.next/standalone/tower/tests/e2e/notes-assets.spec.ts +0 -287
- package/.next/standalone/tower/tests/e2e/search.spec.ts +0 -186
- package/.next/standalone/tower/tests/e2e/settings-flow.spec.ts +0 -250
- package/.next/standalone/tower/tests/e2e/settings.spec.ts +0 -261
- package/.next/standalone/tower/tests/e2e/smoke.spec.ts +0 -317
- package/.next/standalone/tower/tests/e2e/task-flow.spec.ts +0 -287
- package/.next/standalone/tower/tests/e2e/workbench.spec.ts +0 -307
- package/.next/standalone/tower/tests/setup.ts +0 -15
- package/.next/standalone/tower/tests/unit/actions/agent-actions.test.ts +0 -157
- package/.next/standalone/tower/tests/unit/actions/config-actions.test.ts +0 -170
- package/.next/standalone/tower/tests/unit/actions/file-actions.test.ts +0 -283
- package/.next/standalone/tower/tests/unit/actions/git-actions.test.ts +0 -34
- package/.next/standalone/tower/tests/unit/actions/preview-actions.test.ts +0 -177
- package/.next/standalone/tower/tests/unit/actions/search-actions.test.ts +0 -358
- package/.next/standalone/tower/tests/unit/actions/task-actions.test.ts +0 -173
- package/.next/standalone/tower/tests/unit/api/diff-route.test.ts +0 -9
- package/.next/standalone/tower/tests/unit/api/file-serving.test.ts +0 -88
- package/.next/standalone/tower/tests/unit/api/merge-route.test.ts +0 -9
- package/.next/standalone/tower/tests/unit/api/stream-persist-result.test.ts +0 -7
- package/.next/standalone/tower/tests/unit/api/stream-send-back.test.ts +0 -7
- package/.next/standalone/tower/tests/unit/components/asset-item.test.tsx +0 -105
- package/.next/standalone/tower/tests/unit/components/asset-list.test.tsx +0 -51
- package/.next/standalone/tower/tests/unit/components/assets/asset-upload.test.tsx +0 -70
- package/.next/standalone/tower/tests/unit/components/board-stats.test.tsx +0 -32
- package/.next/standalone/tower/tests/unit/components/category-filter.test.tsx +0 -58
- package/.next/standalone/tower/tests/unit/components/cli-adapter-tester.test.tsx +0 -160
- package/.next/standalone/tower/tests/unit/components/create-task-dialog.test.tsx +0 -162
- package/.next/standalone/tower/tests/unit/components/file-tree.test.tsx +0 -172
- package/.next/standalone/tower/tests/unit/components/note-card.test.tsx +0 -71
- package/.next/standalone/tower/tests/unit/components/note-editor.test.tsx +0 -39
- package/.next/standalone/tower/tests/unit/components/prompts-config.test.tsx +0 -200
- package/.next/standalone/tower/tests/unit/components/search-dialog.test.tsx +0 -223
- package/.next/standalone/tower/tests/unit/components/system-config.test.tsx +0 -32
- package/.next/standalone/tower/tests/unit/hooks/hook-registration.test.ts +0 -89
- package/.next/standalone/tower/tests/unit/hooks/stop-hook.test.ts +0 -108
- package/.next/standalone/tower/tests/unit/lib/asset-actions.test.ts +0 -257
- package/.next/standalone/tower/tests/unit/lib/file-utils.test.ts +0 -102
- package/.next/standalone/tower/tests/unit/lib/fs-security.test.ts +0 -34
- package/.next/standalone/tower/tests/unit/lib/fts.test.ts +0 -214
- package/.next/standalone/tower/tests/unit/lib/git-url.test.ts +0 -258
- package/.next/standalone/tower/tests/unit/lib/instrumentation.test.ts +0 -86
- package/.next/standalone/tower/tests/unit/lib/local-path-to-api-url.test.ts +0 -40
- package/.next/standalone/tower/tests/unit/lib/mime-magic.test.ts +0 -95
- package/.next/standalone/tower/tests/unit/lib/note-actions.test.ts +0 -296
- package/.next/standalone/tower/tests/unit/lib/preview-process-manager.test.ts +0 -107
- package/.next/standalone/tower/tests/unit/lib/process-manager.test.ts +0 -10
- package/.next/standalone/tower/tests/unit/lib/pty-session.test.ts +0 -171
- package/.next/standalone/tower/tests/unit/lib/search.test.ts +0 -289
- package/.next/standalone/tower/tests/unit/lib/session-store.test.ts +0 -111
- package/.next/standalone/tower/tests/unit/lib/utils.test.ts +0 -33
- package/.next/standalone/tower/tests/unit/lib/worktree.test.ts +0 -190
- package/.next/standalone/tower/tests/unit/mcp/identify-project.test.ts +0 -217
- package/.next/standalone/tower/tests/unit/mcp/manage-assets.test.ts +0 -199
- package/.next/standalone/tower/tests/unit/mcp/manage-notes.test.ts +0 -304
- package/.next/standalone/tower/tests/unit/mcp/search-tools.test.ts +0 -186
- package/.next/standalone/tower/tests/unit/missions-merge.test.ts +0 -43
- package/.next/standalone/tower/tower-studio-0.1.1.tgz +0 -0
- package/.next/standalone/tower/tsconfig.json +0 -34
- package/.next/standalone/tower/vitest.config.ts +0 -17
- package/.next/static/a6HR9cTK7s4aKfE5dWzjz/_buildManifest.js +0 -11
- package/.next/static/a6HR9cTK7s4aKfE5dWzjz/_clientMiddlewareManifest.js +0 -1
- package/.next/static/a6HR9cTK7s4aKfE5dWzjz/_ssgManifest.js +0 -1
- package/.next/static/chunks/00z-g3x93ngvn.js +0 -1
- package/.next/static/chunks/024pdsc27tjdd.js +0 -5
- package/.next/static/chunks/02dd83gbiv778.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/0abtpeymj-58i.js +0 -1
- package/.next/static/chunks/0b6us7uq72u-d.js +0 -1
- package/.next/static/chunks/0drgc-oztq6o-.css +0 -1
- package/.next/static/chunks/0eaa2lmymh2fx.js +0 -1
- package/.next/static/chunks/0gb82g.6g90mn.js +0 -1
- package/.next/static/chunks/0gnm22yv~f54b.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/0lnhjf2a~jaco.js +0 -83
- package/.next/static/chunks/0lvd52mjiit6s.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/0t-gr6j-c65qb.js +0 -1
- package/.next/static/chunks/0t16ai99uv4j3.js +0 -1
- package/.next/static/chunks/0tcl81ybuob5i.js +0 -1
- package/.next/static/chunks/0uqimvsni_op~.js +0 -1
- package/.next/static/chunks/0wt3kws~_yr8z.js +0 -1
- package/.next/static/chunks/0xzdu87n_for1.js +0 -5
- package/.next/static/chunks/0y0tdl.rl6v1u.js +0 -1
- package/.next/static/chunks/0z2bzovqhl2f5.js +0 -1
- package/.next/static/chunks/0z4y0x1ifgy.e.js +0 -1
- package/.next/static/chunks/0z7bwntvfhxzi.js +0 -12
- package/.next/static/chunks/102ijqpvi0z-d.js +0 -1
- package/.next/static/chunks/10n23t.1hpb-1.js +0 -1
- package/.next/static/chunks/11_e3-j5gzbj4.js +0 -1
- package/.next/static/chunks/14.ims4y7osot.js +0 -1
- package/.next/static/chunks/14xzmrt5ly6gq.js +0 -31
- package/.next/static/chunks/151wr~6x8aclx.js +0 -1
- package/.next/static/chunks/169po6_~f3-d5.js +0 -1
- package/.next/static/chunks/16w-ap~msrwpj.js +0 -1
- package/.next/static/chunks/176n7f13ve~a9.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/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/standalone/tower/components.json → components.json} +0 -0
- /package/{.next/standalone/tower/postcss.config.mjs → postcss.config.mjs} +0 -0
- /package/{.next/standalone/tower/prisma → prisma}/prisma/dev.db +0 -0
- /package/{.next/standalone/tower/prisma → prisma}/seed.ts +0 -0
- /package/{.next/standalone/tower/docs/public → public}/banner.jpg +0 -0
- /package/{.next/standalone/tower/docs/public → public}/logo.png +0 -0
- /package/{.next/standalone/tower/public → public}/web-app-manifest-192x192.png +0 -0
- /package/{.next/standalone/tower/public → public}/web-app-manifest-512x512.png +0 -0
- /package/{.next/standalone/tower/scripts → scripts}/init-tower.ts +0 -0
- /package/{.next/standalone/tower/scripts → scripts}/post-tool-hook.js +0 -0
- /package/{.next/standalone/tower/scripts → scripts}/session-start-hook.js +0 -0
- /package/{.next/standalone/tower/scripts → scripts}/stop-hook.js +0 -0
- /package/{.next/standalone/tower/skills → skills}/tower/SKILL.md +0 -0
- /package/{.next/standalone/tower/src → src}/actions/agent-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/agent-config-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/ai-config-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/asset-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/assistant-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/cli-profile-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/config-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/file-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/git-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/label-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/note-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/onboarding-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/preview-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/project-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/prompt-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/report-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/search-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/search-code-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/task-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/actions/workspace-actions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/adapters/test/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/browse-fs/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/files/assets/[projectId]/[filename]/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/git/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assets/[projectId]/[filename]/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assets/reveal/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assistant/chat/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assistant/images/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assistant/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/assistant/sessions/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/cache/[...segments]/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/hooks/install/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/hooks/session/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/hooks/stop/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/hooks/upload/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/notifications/pending/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/terminal/[taskId]/buffer/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/terminal/[taskId]/input/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/internal/terminal/[taskId]/start/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/tasks/[taskId]/diff/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/api/tasks/[taskId]/merge/route.ts +0 -0
- /package/{.next/standalone/tower/src → src}/app/apple-icon.png +0 -0
- /package/{.next/standalone/tower/docs/public → src/app}/favicon.ico +0 -0
- /package/{.next/standalone/tower/src → src}/app/globals.css +0 -0
- /package/{.next/standalone/tower/src → src}/app/icon0.svg +0 -0
- /package/{.next/standalone/tower/src → src}/app/icon1.png +0 -0
- /package/{.next/standalone/tower/src → src}/app/layout.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/manifest.json +0 -0
- /package/{.next/standalone/tower/src → src}/app/missions/missions-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/missions/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/onboarding/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/settings/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/archive/archive-page-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/archive/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/assets/assets-page-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/assets/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/board-page-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/notes/notes-page-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/notes/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/projects/[projectId]/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/tasks/[taskId]/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/[workspaceId]/tasks/[taskId]/task-page-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/app/workspaces/page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assets/asset-item.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assets/asset-list.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assets/asset-upload.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assets/image-lightbox.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assets/text-preview-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/assistant-chat-bubble.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/assistant-chat.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/assistant-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/assistant-provider.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/image-preview-modal.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/assistant/image-thumbnail-strip.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/board-column.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/board-filters.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/board-stats.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/column-tasks-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/create-task-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/kanban-board.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/project-tabs.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/task-card-context-menu.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/board/task-card.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/app-sidebar.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/folder-browser-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/layout-client.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/search-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/sub-page-nav.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/layout/top-bar.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/missions/grid-layout-presets.ts +0 -0
- /package/{.next/standalone/tower/src → src}/components/missions/grid-preset-picker.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/missions/merge-missions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/components/missions/mission-card.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/missions/task-picker-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notes/category-filter.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notes/note-card.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notes/note-editor.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notes/note-list.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notifications/notification-permission-banner.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/notifications/use-notification-listener.ts +0 -0
- /package/{.next/standalone/tower/src → src}/components/onboarding/guided-tour.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/onboarding/onboarding-wizard.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/onboarding/wizard-step-cli.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/onboarding/wizard-step-username.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/project/create-project-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/project/import-project-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/providers/theme-provider.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/repository/create-branch-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/repository/git-changes-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/repository/git-log-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/repository/git-stash-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/repository/repo-sidebar.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/settings/cli-adapter-tester.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/settings/settings-page.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/code-editor.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/code-search.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/diff-editor.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/editor-git-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/editor-tabs.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/execution-timeline.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/file-tree-context-menu.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/file-tree-node.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/file-tree.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/preview-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-detail-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-diff-view.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-file-changes.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-merge-confirm-dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-metadata.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-notes-panel.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-overview-drawer.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/task-terminal.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/terminal-portal.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/task/types.ts +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/avatar.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/badge.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/button.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/card.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/command.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/dialog.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/dropdown-menu.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/empty-state.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/error-boundary.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/input-group.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/input.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/label.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/popover.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/scroll-area.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/segmented-control.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/select.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/separator.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/sheet.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/sonner.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/switch.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/tabs.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/textarea.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/toast.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/components/ui/tooltip.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/hooks/sse-event-reducer.ts +0 -0
- /package/{.next/standalone/tower/src → src}/hooks/use-assistant-chat.ts +0 -0
- /package/{.next/standalone/tower/src → src}/hooks/use-image-upload.ts +0 -0
- /package/{.next/standalone/tower/src → src}/instrumentation.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/adapters/cli/claude-cli-adapter.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/capability-resolver.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/provider-registry.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/providers/claude.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/providers/index.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/ai/types.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/assistant-constants.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/assistant-message-converter.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/assistant-sessions.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/build-multimodal-prompt.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/claude-session.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/cli-test.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/config-defaults.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/config-reader.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/constants.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/db.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/diff-parser.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/execution-summary.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/file-serve-client.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/file-serve.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/file-utils.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/fs-security.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/fts.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/git-api.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/git-url.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/i18n/en.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/i18n/types.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/i18n/zh.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/i18n.tsx +0 -0
- /package/{.next/standalone/tower/src → src}/lib/init-tower.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/instrumentation-tasks.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/internal-api-guard.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/logger.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/mime-magic.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/platform.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/preview-process.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/pty/pty-session.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/pty/session-store.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/pty/ws-server.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/schemas.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/search.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/terminal-link-provider.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/tower-dir.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/utils.ts +0 -0
- /package/{.next/standalone/tower/src → src}/lib/worktree.ts +0 -0
- /package/{.next/standalone/tower/src → src}/stores/board-store.ts +0 -0
- /package/{.next/standalone/tower/src → src}/stores/task-execution-store.ts +0 -0
- /package/{.next/standalone/tower/src → src}/types/index.ts +0 -0
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Tower AI Architecture</title>
|
|
7
|
-
<style>
|
|
8
|
-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');
|
|
9
|
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
|
-
body {
|
|
11
|
-
background: #020617;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
min-height: 100vh;
|
|
16
|
-
font-family: 'JetBrains Mono', monospace;
|
|
17
|
-
}
|
|
18
|
-
svg { max-width: 1100px; width: 100%; height: auto; }
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<svg viewBox="0 0 1100 720" xmlns="http://www.w3.org/2000/svg" font-family="'JetBrains Mono', monospace">
|
|
23
|
-
<defs>
|
|
24
|
-
<pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse">
|
|
25
|
-
<path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(148,163,184,0.06)" stroke-width="0.5"/>
|
|
26
|
-
</pattern>
|
|
27
|
-
<marker id="arrow-violet" viewBox="0 0 10 7" refX="10" refY="3.5" markerWidth="8" markerHeight="6" orient="auto-start-reverse">
|
|
28
|
-
<polygon points="0 0, 10 3.5, 0 7" fill="#a78bfa"/>
|
|
29
|
-
</marker>
|
|
30
|
-
<marker id="arrow-amber" viewBox="0 0 10 7" refX="10" refY="3.5" markerWidth="8" markerHeight="6" orient="auto-start-reverse">
|
|
31
|
-
<polygon points="0 0, 10 3.5, 0 7" fill="#fbbf24"/>
|
|
32
|
-
</marker>
|
|
33
|
-
<marker id="arrow-slate" viewBox="0 0 10 7" refX="10" refY="3.5" markerWidth="8" markerHeight="6" orient="auto-start-reverse">
|
|
34
|
-
<polygon points="0 0, 10 3.5, 0 7" fill="#64748b"/>
|
|
35
|
-
</marker>
|
|
36
|
-
<filter id="glow-violet">
|
|
37
|
-
<feGaussianBlur stdDeviation="3" result="blur"/>
|
|
38
|
-
<feFlood flood-color="#a78bfa" flood-opacity="0.3"/>
|
|
39
|
-
<feComposite in2="blur" operator="in"/>
|
|
40
|
-
<feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>
|
|
41
|
-
</filter>
|
|
42
|
-
<filter id="glow-amber">
|
|
43
|
-
<feGaussianBlur stdDeviation="3" result="blur"/>
|
|
44
|
-
<feFlood flood-color="#fbbf24" flood-opacity="0.3"/>
|
|
45
|
-
<feComposite in2="blur" operator="in"/>
|
|
46
|
-
<feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>
|
|
47
|
-
</filter>
|
|
48
|
-
</defs>
|
|
49
|
-
|
|
50
|
-
<!-- Background -->
|
|
51
|
-
<rect width="1100" height="720" fill="#020617"/>
|
|
52
|
-
<rect width="1100" height="720" fill="url(#grid)"/>
|
|
53
|
-
|
|
54
|
-
<!-- ==================== LEFT: Claude Agent SDK ==================== -->
|
|
55
|
-
<rect x="30" y="30" width="500" height="385" rx="8" fill="rgba(76,29,149,0.12)" stroke="#a78bfa" stroke-width="1.5" stroke-dasharray="6 3"/>
|
|
56
|
-
<text x="50" y="52" fill="#a78bfa" font-size="11" font-weight="600">@anthropic-ai/claude-agent-sdk</text>
|
|
57
|
-
|
|
58
|
-
<!-- query() box -->
|
|
59
|
-
<rect x="50" y="65" width="220" height="42" rx="5" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1"/>
|
|
60
|
-
<text x="160" y="82" fill="#e2d9f3" font-size="11" font-weight="600" text-anchor="middle">query()</text>
|
|
61
|
-
<text x="160" y="97" fill="#a78bfa" font-size="9" text-anchor="middle" opacity="0.8">流式多轮对话</text>
|
|
62
|
-
|
|
63
|
-
<!-- aiQuery() box -->
|
|
64
|
-
<rect x="290" y="65" width="220" height="42" rx="5" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1"/>
|
|
65
|
-
<text x="400" y="82" fill="#e2d9f3" font-size="11" font-weight="600" text-anchor="middle">aiQuery()</text>
|
|
66
|
-
<text x="400" y="97" fill="#a78bfa" font-size="9" text-anchor="middle" opacity="0.8">单轮查询 (maxTurns=1)</text>
|
|
67
|
-
|
|
68
|
-
<!-- Capability Cards 2x2 -->
|
|
69
|
-
<!-- 助手聊天 (cyan) -->
|
|
70
|
-
<rect x="50" y="125" width="220" height="88" rx="5" fill="rgba(8,145,178,0.12)" stroke="rgba(6,182,212,0.4)" stroke-width="1"/>
|
|
71
|
-
<rect x="50" y="125" width="220" height="22" rx="5" fill="rgba(6,182,212,0.25)"/>
|
|
72
|
-
<rect x="50" y="140" width="220" height="7" fill="rgba(8,145,178,0.12)"/>
|
|
73
|
-
<text x="160" y="140" fill="#22d3ee" font-size="10" font-weight="600" text-anchor="middle">助手聊天</text>
|
|
74
|
-
<text x="60" y="163" fill="#94a3b8" font-size="9">SSE 流式 · MCP 工具</text>
|
|
75
|
-
<text x="60" y="178" fill="#64748b" font-size="8">模型: 当前默认</text>
|
|
76
|
-
<circle cx="240" cy="170" r="3" fill="#22d3ee" opacity="0.6"/>
|
|
77
|
-
|
|
78
|
-
<!-- 小总结 (emerald) -->
|
|
79
|
-
<rect x="290" y="125" width="220" height="88" rx="5" fill="rgba(5,150,105,0.12)" stroke="rgba(52,211,153,0.4)" stroke-width="1"/>
|
|
80
|
-
<rect x="290" y="125" width="220" height="22" rx="5" fill="rgba(52,211,153,0.2)"/>
|
|
81
|
-
<rect x="290" y="140" width="220" height="7" fill="rgba(5,150,105,0.12)"/>
|
|
82
|
-
<text x="400" y="140" fill="#34d399" font-size="10" font-weight="600" text-anchor="middle">小总结</text>
|
|
83
|
-
<text x="300" y="163" fill="#94a3b8" font-size="9">50 字摘要</text>
|
|
84
|
-
<text x="300" y="178" fill="#64748b" font-size="8">模型: Haiku 4.5</text>
|
|
85
|
-
<circle cx="480" cy="170" r="3" fill="#34d399" opacity="0.6"/>
|
|
86
|
-
|
|
87
|
-
<!-- 大总结 Dreaming (rose) -->
|
|
88
|
-
<rect x="50" y="228" width="220" height="88" rx="5" fill="rgba(190,18,60,0.12)" stroke="rgba(251,113,133,0.4)" stroke-width="1"/>
|
|
89
|
-
<rect x="50" y="228" width="220" height="22" rx="5" fill="rgba(251,113,133,0.2)"/>
|
|
90
|
-
<rect x="50" y="243" width="220" height="7" fill="rgba(190,18,60,0.12)"/>
|
|
91
|
-
<text x="160" y="243" fill="#fb7185" font-size="10" font-weight="600" text-anchor="middle">大总结 Dreaming</text>
|
|
92
|
-
<text x="60" y="266" fill="#94a3b8" font-size="9">结构化 JSON</text>
|
|
93
|
-
<text x="60" y="281" fill="#64748b" font-size="8">模型: Sonnet 4.6</text>
|
|
94
|
-
<circle cx="240" cy="273" r="3" fill="#fb7185" opacity="0.6"/>
|
|
95
|
-
|
|
96
|
-
<!-- 项目分析 (amber) -->
|
|
97
|
-
<rect x="290" y="228" width="220" height="88" rx="5" fill="rgba(120,53,15,0.2)" stroke="rgba(251,191,36,0.4)" stroke-width="1"/>
|
|
98
|
-
<rect x="290" y="228" width="220" height="22" rx="5" fill="rgba(251,191,36,0.15)"/>
|
|
99
|
-
<rect x="290" y="243" width="220" height="7" fill="rgba(120,53,15,0.2)"/>
|
|
100
|
-
<text x="400" y="243" fill="#fbbf24" font-size="10" font-weight="600" text-anchor="middle">项目分析</text>
|
|
101
|
-
<text x="300" y="266" fill="#94a3b8" font-size="9">目录结构 · 技术栈</text>
|
|
102
|
-
<text x="300" y="281" fill="#64748b" font-size="8">模型: Sonnet 4.6</text>
|
|
103
|
-
<circle cx="480" cy="273" r="3" fill="#fbbf24" opacity="0.6"/>
|
|
104
|
-
|
|
105
|
-
<!-- Arrows: query() → 助手聊天 -->
|
|
106
|
-
<line x1="160" y1="107" x2="160" y2="125" stroke="#a78bfa" stroke-width="1" marker-end="url(#arrow-violet)" opacity="0.7"/>
|
|
107
|
-
|
|
108
|
-
<!-- Arrows: aiQuery() → 小总结 -->
|
|
109
|
-
<line x1="370" y1="107" x2="400" y2="125" stroke="#a78bfa" stroke-width="1" marker-end="url(#arrow-violet)" opacity="0.7"/>
|
|
110
|
-
<!-- Arrows: aiQuery() → 大总结 -->
|
|
111
|
-
<path d="M 340 107 L 340 118 Q 340 120 338 120 L 160 120 Q 158 120 158 122 L 158 228" fill="none" stroke="#a78bfa" stroke-width="1" marker-end="url(#arrow-violet)" opacity="0.5"/>
|
|
112
|
-
<!-- Arrows: aiQuery() → 项目分析 -->
|
|
113
|
-
<path d="M 430 107 L 430 118 Q 430 120 428 120 L 402 120 Q 400 120 400 122 L 400 228" fill="none" stroke="#a78bfa" stroke-width="1" marker-end="url(#arrow-violet)" opacity="0.5"/>
|
|
114
|
-
|
|
115
|
-
<!-- SDK label pill -->
|
|
116
|
-
<rect x="50" y="338" width="80" height="20" rx="10" fill="rgba(76,29,149,0.5)" stroke="#a78bfa" stroke-width="0.5"/>
|
|
117
|
-
<text x="90" y="352" fill="#a78bfa" font-size="8" font-weight="500" text-anchor="middle">Agent SDK</text>
|
|
118
|
-
|
|
119
|
-
<!-- SDK version note -->
|
|
120
|
-
<text x="145" y="352" fill="#475569" font-size="8">programmatic · no terminal</text>
|
|
121
|
-
|
|
122
|
-
<!-- ==================== RIGHT: Claude CLI (PTY) ==================== -->
|
|
123
|
-
<rect x="570" y="30" width="500" height="385" rx="8" fill="rgba(120,53,15,0.1)" stroke="#fbbf24" stroke-width="1.5" stroke-dasharray="6 3"/>
|
|
124
|
-
<text x="590" y="52" fill="#fbbf24" font-size="11" font-weight="600">Claude CLI (PTY 终端模式)</text>
|
|
125
|
-
|
|
126
|
-
<!-- 任务执行 main box -->
|
|
127
|
-
<rect x="590" y="65" width="280" height="105" rx="5" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1"/>
|
|
128
|
-
<text x="730" y="86" fill="#fde68a" font-size="12" font-weight="600" text-anchor="middle">任务执行</text>
|
|
129
|
-
<text x="600" y="106" fill="#94a3b8" font-size="9">startPtyExecution</text>
|
|
130
|
-
<text x="600" y="121" fill="#94a3b8" font-size="9">交互终端 · 用户输入 · 实时输出</text>
|
|
131
|
-
<text x="600" y="140" fill="#64748b" font-size="8">模型: 当前默认</text>
|
|
132
|
-
<text x="600" y="155" fill="#64748b" font-size="8">resumePtyExecution · stopPtyExecution</text>
|
|
133
|
-
|
|
134
|
-
<!-- CLI Profile box -->
|
|
135
|
-
<rect x="590" y="185" width="280" height="52" rx="5" fill="rgba(30,41,59,0.6)" stroke="rgba(148,163,184,0.2)" stroke-width="1"/>
|
|
136
|
-
<text x="730" y="204" fill="#cbd5e1" font-size="10" font-weight="600" text-anchor="middle">CLI Profile</text>
|
|
137
|
-
<text x="600" y="222" fill="#64748b" font-size="9">command · baseArgs · envVars</text>
|
|
138
|
-
|
|
139
|
-
<!-- Hooks box -->
|
|
140
|
-
<rect x="590" y="250" width="135" height="52" rx="5" fill="rgba(30,41,59,0.6)" stroke="rgba(148,163,184,0.2)" stroke-width="1"/>
|
|
141
|
-
<text x="657" y="269" fill="#cbd5e1" font-size="10" font-weight="600" text-anchor="middle">Hooks</text>
|
|
142
|
-
<text x="600" y="287" fill="#64748b" font-size="8">SessionStart</text>
|
|
143
|
-
<text x="600" y="297" fill="#64748b" font-size="8">PostToolUse</text>
|
|
144
|
-
|
|
145
|
-
<!-- 环境注入 box -->
|
|
146
|
-
<rect x="735" y="250" width="135" height="52" rx="5" fill="rgba(30,41,59,0.6)" stroke="rgba(148,163,184,0.2)" stroke-width="1"/>
|
|
147
|
-
<text x="802" y="269" fill="#cbd5e1" font-size="10" font-weight="600" text-anchor="middle">环境注入</text>
|
|
148
|
-
<text x="745" y="287" fill="#64748b" font-size="8">TOWER_TASK_ID</text>
|
|
149
|
-
<text x="745" y="297" fill="#64748b" font-size="8">TOWER_API_URL</text>
|
|
150
|
-
|
|
151
|
-
<!-- Legend cards (top-right) -->
|
|
152
|
-
<!-- SDK 能力 -->
|
|
153
|
-
<rect x="895" y="65" width="160" height="70" rx="5" fill="rgba(76,29,149,0.2)" stroke="rgba(167,139,250,0.3)" stroke-width="1"/>
|
|
154
|
-
<text x="975" y="82" fill="#a78bfa" font-size="9" font-weight="600" text-anchor="middle">SDK 能力</text>
|
|
155
|
-
<text x="905" y="97" fill="#94a3b8" font-size="7.5">query() 多轮对话</text>
|
|
156
|
-
<text x="905" y="109" fill="#94a3b8" font-size="7.5">aiQuery() 单轮查询</text>
|
|
157
|
-
<text x="905" y="121" fill="#94a3b8" font-size="7.5">SSE 流式输出</text>
|
|
158
|
-
|
|
159
|
-
<!-- CLI 集成 -->
|
|
160
|
-
<rect x="895" y="145" width="160" height="82" rx="5" fill="rgba(120,53,15,0.15)" stroke="rgba(251,191,36,0.3)" stroke-width="1"/>
|
|
161
|
-
<text x="975" y="162" fill="#fbbf24" font-size="9" font-weight="600" text-anchor="middle">CLI 集成</text>
|
|
162
|
-
<text x="905" y="177" fill="#94a3b8" font-size="7.5">PTY 终端</text>
|
|
163
|
-
<text x="905" y="189" fill="#94a3b8" font-size="7.5">CLI Profile</text>
|
|
164
|
-
<text x="905" y="201" fill="#94a3b8" font-size="7.5">Hook 机制</text>
|
|
165
|
-
<text x="905" y="213" fill="#94a3b8" font-size="7.5">环境注入</text>
|
|
166
|
-
|
|
167
|
-
<!-- 模型策略 -->
|
|
168
|
-
<rect x="895" y="237" width="160" height="70" rx="5" fill="rgba(8,145,178,0.15)" stroke="rgba(6,182,212,0.3)" stroke-width="1"/>
|
|
169
|
-
<text x="975" y="254" fill="#22d3ee" font-size="9" font-weight="600" text-anchor="middle">模型策略</text>
|
|
170
|
-
<text x="905" y="269" fill="#94a3b8" font-size="7.5">聊天用默认</text>
|
|
171
|
-
<text x="905" y="281" fill="#94a3b8" font-size="7.5">小总结用 Haiku</text>
|
|
172
|
-
<text x="905" y="293" fill="#94a3b8" font-size="7.5">大总结/分析用 Sonnet</text>
|
|
173
|
-
|
|
174
|
-
<!-- CLI label pill -->
|
|
175
|
-
<rect x="590" y="338" width="80" height="20" rx="10" fill="rgba(120,53,15,0.5)" stroke="#fbbf24" stroke-width="0.5"/>
|
|
176
|
-
<text x="630" y="352" fill="#fbbf24" font-size="8" font-weight="500" text-anchor="middle">CLI / PTY</text>
|
|
177
|
-
|
|
178
|
-
<text x="685" y="352" fill="#475569" font-size="8">interactive terminal</text>
|
|
179
|
-
|
|
180
|
-
<!-- ==================== MIDDLE: .tower/ 上下文 ==================== -->
|
|
181
|
-
<rect x="30" y="430" width="1040" height="70" rx="6" fill="rgba(30,41,59,0.5)" stroke="rgba(100,116,139,0.3)" stroke-width="1"/>
|
|
182
|
-
<text x="50" y="452" fill="#94a3b8" font-size="11" font-weight="600">.tower/ 上下文</text>
|
|
183
|
-
<text x="50" y="472" fill="#64748b" font-size="9">CLAUDE.md (助手人设)</text>
|
|
184
|
-
<text x="280" y="472" fill="#64748b" font-size="9">SKILL.md (MCP 技能)</text>
|
|
185
|
-
<text x="480" y="472" fill="#64748b" font-size="9">Hooks (钩子配置)</text>
|
|
186
|
-
<text x="680" y="472" fill="#64748b" font-size="9">rules/ (规则约束)</text>
|
|
187
|
-
<text x="880" y="472" fill="#64748b" font-size="9">agents/ (代理配置)</text>
|
|
188
|
-
|
|
189
|
-
<!-- Pill labels for .tower -->
|
|
190
|
-
<rect x="50" y="484" width="60" height="14" rx="7" fill="rgba(100,116,139,0.2)"/>
|
|
191
|
-
<text x="80" y="494" fill="#475569" font-size="7" text-anchor="middle">shared</text>
|
|
192
|
-
|
|
193
|
-
<!-- Arrows: SDK → .tower -->
|
|
194
|
-
<path d="M 280 415 L 280 430" fill="none" stroke="#64748b" stroke-width="1" marker-end="url(#arrow-slate)" opacity="0.5" stroke-dasharray="3 2"/>
|
|
195
|
-
<!-- Arrows: CLI → .tower -->
|
|
196
|
-
<path d="M 730 415 L 730 430" fill="none" stroke="#64748b" stroke-width="1" marker-end="url(#arrow-slate)" opacity="0.5" stroke-dasharray="3 2"/>
|
|
197
|
-
|
|
198
|
-
<!-- Arrow labels -->
|
|
199
|
-
<text x="253" y="425" fill="#475569" font-size="7">inject</text>
|
|
200
|
-
<text x="703" y="425" fill="#475569" font-size="7">inject</text>
|
|
201
|
-
|
|
202
|
-
<!-- ==================== BOTTOM: Future CLI Adapter ==================== -->
|
|
203
|
-
<rect x="30" y="520" width="1040" height="95" rx="6" fill="rgba(30,41,59,0.2)" stroke="rgba(100,116,139,0.25)" stroke-width="1.5" stroke-dasharray="6 3"/>
|
|
204
|
-
<text x="50" y="542" fill="#94a3b8" font-size="10" font-weight="500">未来: CLI Adapter 接口 (多 CLI 支持)</text>
|
|
205
|
-
|
|
206
|
-
<!-- Claude Code (solid - current) -->
|
|
207
|
-
<rect x="60" y="555" width="220" height="45" rx="5" fill="rgba(76,29,149,0.3)" stroke="#a78bfa" stroke-width="1"/>
|
|
208
|
-
<text x="170" y="575" fill="#a78bfa" font-size="10" font-weight="600" text-anchor="middle">Claude Code</text>
|
|
209
|
-
<text x="170" y="590" fill="#64748b" font-size="8" text-anchor="middle">current adapter</text>
|
|
210
|
-
|
|
211
|
-
<!-- Codex CLI (dashed) -->
|
|
212
|
-
<rect x="300" y="555" width="180" height="45" rx="5" fill="rgba(30,41,59,0.3)" stroke="rgba(100,116,139,0.4)" stroke-width="1" stroke-dasharray="4 2"/>
|
|
213
|
-
<text x="390" y="575" fill="#64748b" font-size="10" font-weight="500" text-anchor="middle">Codex CLI</text>
|
|
214
|
-
<text x="390" y="590" fill="#475569" font-size="8" text-anchor="middle">planned</text>
|
|
215
|
-
|
|
216
|
-
<!-- Gemini CLI (dashed) -->
|
|
217
|
-
<rect x="500" y="555" width="180" height="45" rx="5" fill="rgba(30,41,59,0.3)" stroke="rgba(100,116,139,0.4)" stroke-width="1" stroke-dasharray="4 2"/>
|
|
218
|
-
<text x="590" y="575" fill="#64748b" font-size="10" font-weight="500" text-anchor="middle">Gemini CLI</text>
|
|
219
|
-
<text x="590" y="590" fill="#475569" font-size="8" text-anchor="middle">planned</text>
|
|
220
|
-
|
|
221
|
-
<!-- OpenCode (dashed) -->
|
|
222
|
-
<rect x="700" y="555" width="180" height="45" rx="5" fill="rgba(30,41,59,0.3)" stroke="rgba(100,116,139,0.4)" stroke-width="1" stroke-dasharray="4 2"/>
|
|
223
|
-
<text x="790" y="575" fill="#64748b" font-size="10" font-weight="500" text-anchor="middle">OpenCode</text>
|
|
224
|
-
<text x="790" y="590" fill="#475569" font-size="8" text-anchor="middle">planned</text>
|
|
225
|
-
|
|
226
|
-
<!-- Adapter interface arrow -->
|
|
227
|
-
<rect x="900" y="560" width="150" height="34" rx="4" fill="rgba(30,41,59,0.4)" stroke="rgba(100,116,139,0.2)" stroke-width="0.5"/>
|
|
228
|
-
<text x="975" y="576" fill="#475569" font-size="7.5" text-anchor="middle">interface CLIAdapter</text>
|
|
229
|
-
<text x="975" y="588" fill="#334155" font-size="7" text-anchor="middle">spawn · send · stop</text>
|
|
230
|
-
|
|
231
|
-
<!-- ==================== BOTTOM BAR: 能力矩阵 ==================== -->
|
|
232
|
-
<rect x="30" y="640" width="1040" height="50" rx="6" fill="rgba(30,41,59,0.4)" stroke="rgba(100,116,139,0.15)" stroke-width="1"/>
|
|
233
|
-
|
|
234
|
-
<text x="50" y="660" fill="#94a3b8" font-size="9" font-weight="600">能力矩阵</text>
|
|
235
|
-
|
|
236
|
-
<!-- Capability dots -->
|
|
237
|
-
<circle cx="140" cy="656" r="4" fill="#22d3ee"/>
|
|
238
|
-
<text x="150" y="660" fill="#94a3b8" font-size="8">助手聊天 (默认)</text>
|
|
239
|
-
|
|
240
|
-
<circle cx="290" cy="656" r="4" fill="#34d399"/>
|
|
241
|
-
<text x="300" y="660" fill="#94a3b8" font-size="8">小总结 (Haiku)</text>
|
|
242
|
-
|
|
243
|
-
<circle cx="430" cy="656" r="4" fill="#fb7185"/>
|
|
244
|
-
<text x="440" y="660" fill="#94a3b8" font-size="8">大总结 (Sonnet)</text>
|
|
245
|
-
|
|
246
|
-
<circle cx="580" cy="656" r="4" fill="#fbbf24"/>
|
|
247
|
-
<text x="590" y="660" fill="#94a3b8" font-size="8">项目分析 (Sonnet)</text>
|
|
248
|
-
|
|
249
|
-
<circle cx="740" cy="656" r="4" fill="#fbbf24" opacity="0.8"/>
|
|
250
|
-
<text x="750" y="660" fill="#94a3b8" font-size="8">任务执行 (默认 · PTY)</text>
|
|
251
|
-
|
|
252
|
-
<text x="50" y="679" fill="#475569" font-size="7.5">SDK: query() + aiQuery() | CLI: PTY spawn + resume + hooks | 上下文: .tower/ CLAUDE.md + SKILL.md + Hooks</text>
|
|
253
|
-
|
|
254
|
-
<!-- ==================== FOOTER ==================== -->
|
|
255
|
-
<text x="550" y="710" fill="#334155" font-size="9" font-weight="500" text-anchor="middle">Tower AI Architecture · 5 AI Capabilities</text>
|
|
256
|
-
|
|
257
|
-
</svg>
|
|
258
|
-
</body>
|
|
259
|
-
</html>
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Tower Data Model</title>
|
|
7
|
-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
8
|
-
<style>
|
|
9
|
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
|
-
body {
|
|
11
|
-
background: #020617;
|
|
12
|
-
font-family: 'JetBrains Mono', monospace;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
min-height: 100vh;
|
|
17
|
-
padding: 20px;
|
|
18
|
-
}
|
|
19
|
-
svg { max-width: 100%; height: auto; }
|
|
20
|
-
</style>
|
|
21
|
-
</head>
|
|
22
|
-
<body>
|
|
23
|
-
<svg viewBox="0 0 1200 850" xmlns="http://www.w3.org/2000/svg" font-family="'JetBrains Mono', monospace">
|
|
24
|
-
<defs>
|
|
25
|
-
<marker id="arrowhead" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
26
|
-
<path d="M0,0 L8,3 L0,6 Z" fill="#475569"/>
|
|
27
|
-
</marker>
|
|
28
|
-
<marker id="arrow-emerald" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
29
|
-
<path d="M0,0 L8,3 L0,6 Z" fill="#34d399"/>
|
|
30
|
-
</marker>
|
|
31
|
-
<marker id="arrow-amber" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
32
|
-
<path d="M0,0 L8,3 L0,6 Z" fill="#fbbf24"/>
|
|
33
|
-
</marker>
|
|
34
|
-
<marker id="arrow-violet" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
35
|
-
<path d="M0,0 L8,3 L0,6 Z" fill="#a78bfa"/>
|
|
36
|
-
</marker>
|
|
37
|
-
<marker id="arrow-cyan" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
38
|
-
<path d="M0,0 L8,3 L0,6 Z" fill="#22d3ee"/>
|
|
39
|
-
</marker>
|
|
40
|
-
<pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse">
|
|
41
|
-
<path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(148,163,184,0.05)" stroke-width="0.5"/>
|
|
42
|
-
</pattern>
|
|
43
|
-
</defs>
|
|
44
|
-
|
|
45
|
-
<!-- Background -->
|
|
46
|
-
<rect width="1200" height="850" fill="#020617"/>
|
|
47
|
-
<rect width="1200" height="850" fill="url(#grid)"/>
|
|
48
|
-
|
|
49
|
-
<!-- ========== RELATIONSHIP ARROWS (drawn first, behind entities) ========== -->
|
|
50
|
-
|
|
51
|
-
<!-- Workspace 1:N -> Project (emerald) -->
|
|
52
|
-
<line x1="200" y1="100" x2="300" y2="100" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" opacity="0.7"/>
|
|
53
|
-
<text x="230" y="93" fill="#34d399" font-size="8" text-anchor="start">1</text>
|
|
54
|
-
<text x="290" y="93" fill="#34d399" font-size="8" text-anchor="end">N</text>
|
|
55
|
-
|
|
56
|
-
<!-- Workspace 1:N -> Label (violet) -->
|
|
57
|
-
<line x1="120" y1="195" x2="120" y2="280" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" opacity="0.7"/>
|
|
58
|
-
<text x="126" y="215" fill="#a78bfa" font-size="8">1</text>
|
|
59
|
-
<text x="126" y="272" fill="#a78bfa" font-size="8">N</text>
|
|
60
|
-
|
|
61
|
-
<!-- Project 1:N -> Task (emerald) -->
|
|
62
|
-
<line x1="520" y1="100" x2="580" y2="100" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" opacity="0.7"/>
|
|
63
|
-
<text x="535" y="93" fill="#34d399" font-size="8">1</text>
|
|
64
|
-
<text x="570" y="93" fill="#34d399" font-size="8">N</text>
|
|
65
|
-
|
|
66
|
-
<!-- Project 1:N -> Repository (cyan) -->
|
|
67
|
-
<path d="M 440,195 L 440,240 L 940,240 L 940,280" fill="none" stroke="#22d3ee" stroke-width="1.5" marker-end="url(#arrow-cyan)" opacity="0.7"/>
|
|
68
|
-
<text x="446" y="210" fill="#22d3ee" font-size="8">1</text>
|
|
69
|
-
<text x="946" y="272" fill="#22d3ee" font-size="8">N</text>
|
|
70
|
-
|
|
71
|
-
<!-- Project 1:N -> ProjectNote (cyan) -->
|
|
72
|
-
<path d="M 380,195 L 380,480" fill="none" stroke="#22d3ee" stroke-width="1.5" marker-end="url(#arrow-cyan)" opacity="0.7"/>
|
|
73
|
-
<text x="386" y="210" fill="#22d3ee" font-size="8">1</text>
|
|
74
|
-
<text x="386" y="472" fill="#22d3ee" font-size="8">N</text>
|
|
75
|
-
|
|
76
|
-
<!-- Project 1:N -> ProjectAsset (cyan) -->
|
|
77
|
-
<path d="M 460,195 L 460,440 L 640,440 L 640,480" fill="none" stroke="#22d3ee" stroke-width="1.5" marker-end="url(#arrow-cyan)" opacity="0.7"/>
|
|
78
|
-
<text x="466" y="210" fill="#22d3ee" font-size="8">1</text>
|
|
79
|
-
<text x="646" y="472" fill="#22d3ee" font-size="8">N</text>
|
|
80
|
-
|
|
81
|
-
<!-- Task 1:N -> TaskExecution (amber) -->
|
|
82
|
-
<line x1="830" y1="100" x2="880" y2="100" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrow-amber)" opacity="0.7"/>
|
|
83
|
-
<text x="842" y="93" fill="#fbbf24" font-size="8">1</text>
|
|
84
|
-
<text x="870" y="93" fill="#fbbf24" font-size="8">N</text>
|
|
85
|
-
|
|
86
|
-
<!-- Task 1:N -> TaskMessage (amber) -->
|
|
87
|
-
<path d="M 700,195 L 700,280" fill="none" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrow-amber)" opacity="0.7"/>
|
|
88
|
-
<text x="706" y="215" fill="#fbbf24" font-size="8">1</text>
|
|
89
|
-
<text x="706" y="272" fill="#fbbf24" font-size="8">N</text>
|
|
90
|
-
|
|
91
|
-
<!-- Task M:N -> Label via TaskLabel (violet, dashed) -->
|
|
92
|
-
<path d="M 640,195 L 640,230 L 420,230 L 420,280" fill="none" stroke="#a78bfa" stroke-width="1.5" stroke-dasharray="5,3" marker-end="url(#arrow-violet)" opacity="0.6"/>
|
|
93
|
-
<text x="600" y="224" fill="#a78bfa" font-size="8">M:N</text>
|
|
94
|
-
|
|
95
|
-
<!-- Label -> TaskLabel (violet) -->
|
|
96
|
-
<line x1="200" y1="340" x2="300" y2="340" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" opacity="0.7"/>
|
|
97
|
-
<text x="230" y="333" fill="#a78bfa" font-size="8">1</text>
|
|
98
|
-
<text x="290" y="333" fill="#a78bfa" font-size="8">N</text>
|
|
99
|
-
|
|
100
|
-
<!-- Task -> ProjectNote (optional FK, cyan dashed) -->
|
|
101
|
-
<path d="M 660,195 L 660,445 L 520,445 L 520,480" fill="none" stroke="#22d3ee" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-cyan)" opacity="0.5"/>
|
|
102
|
-
|
|
103
|
-
<!-- Task -> ProjectAsset (optional FK, cyan dashed) -->
|
|
104
|
-
<path d="M 720,195 L 720,455 L 760,455 L 760,480" fill="none" stroke="#22d3ee" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-cyan)" opacity="0.5"/>
|
|
105
|
-
|
|
106
|
-
<!-- ========== ROW 1 ENTITIES ========== -->
|
|
107
|
-
|
|
108
|
-
<!-- Workspace -->
|
|
109
|
-
<g transform="translate(60,30)">
|
|
110
|
-
<rect x="0" y="0" width="140" height="165" rx="4" fill="#0f172a" stroke="rgba(52,211,153,0.3)" stroke-width="1"/>
|
|
111
|
-
<rect x="0" y="0" width="140" height="28" rx="4" fill="#34d399"/>
|
|
112
|
-
<rect x="0" y="14" width="140" height="14" fill="#34d399"/>
|
|
113
|
-
<text x="70" y="19" fill="white" font-size="11" font-weight="600" text-anchor="middle">Workspace</text>
|
|
114
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
115
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">name string</text>
|
|
116
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">description? string</text>
|
|
117
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">createdAt datetime</text>
|
|
118
|
-
<text x="10" y="114" fill="#94a3b8" font-size="9">updatedAt datetime</text>
|
|
119
|
-
<rect x="0" y="125" width="140" height="1" fill="rgba(52,211,153,0.15)"/>
|
|
120
|
-
<text x="10" y="142" fill="rgba(52,211,153,0.6)" font-size="8">has: projects[], labels[]</text>
|
|
121
|
-
</g>
|
|
122
|
-
|
|
123
|
-
<!-- Project -->
|
|
124
|
-
<g transform="translate(300,30)">
|
|
125
|
-
<rect x="0" y="0" width="220" height="165" rx="4" fill="#0f172a" stroke="rgba(52,211,153,0.3)" stroke-width="1"/>
|
|
126
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#34d399"/>
|
|
127
|
-
<rect x="0" y="14" width="220" height="14" fill="#34d399"/>
|
|
128
|
-
<text x="110" y="19" fill="white" font-size="11" font-weight="600" text-anchor="middle">Project</text>
|
|
129
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
130
|
-
<text x="10" y="64" fill="#94a3b8" font-size="9">name, alias?, description?</text>
|
|
131
|
-
<text x="10" y="78" fill="#94a3b8" font-size="9">type GIT|NORMAL</text>
|
|
132
|
-
<text x="10" y="92" fill="#94a3b8" font-size="9">gitUrl?, localPath?</text>
|
|
133
|
-
<text x="10" y="106" fill="#94a3b8" font-size="9">projectType? string</text>
|
|
134
|
-
<text x="10" y="120" fill="#94a3b8" font-size="9">workspaceId FK → Workspace</text>
|
|
135
|
-
<rect x="0" y="131" width="220" height="1" fill="rgba(52,211,153,0.15)"/>
|
|
136
|
-
<text x="10" y="148" fill="rgba(52,211,153,0.6)" font-size="8">has: tasks[], repositories[]</text>
|
|
137
|
-
</g>
|
|
138
|
-
|
|
139
|
-
<!-- Task -->
|
|
140
|
-
<g transform="translate(580,30)">
|
|
141
|
-
<rect x="0" y="0" width="250" height="165" rx="4" fill="#0f172a" stroke="rgba(52,211,153,0.3)" stroke-width="1"/>
|
|
142
|
-
<rect x="0" y="0" width="250" height="28" rx="4" fill="#34d399"/>
|
|
143
|
-
<rect x="0" y="14" width="250" height="14" fill="#34d399"/>
|
|
144
|
-
<text x="125" y="19" fill="white" font-size="11" font-weight="600" text-anchor="middle">Task</text>
|
|
145
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
146
|
-
<text x="10" y="64" fill="#94a3b8" font-size="9">title, description?</text>
|
|
147
|
-
<text x="10" y="78" fill="#94a3b8" font-size="9">status TODO|IN_PROGRESS|IN_REVIEW|DONE|CANCELLED</text>
|
|
148
|
-
<text x="10" y="92" fill="#94a3b8" font-size="9">priority LOW|MEDIUM|HIGH|CRITICAL</text>
|
|
149
|
-
<text x="10" y="106" fill="#94a3b8" font-size="9">order int, pinned bool</text>
|
|
150
|
-
<text x="10" y="120" fill="#94a3b8" font-size="9">baseBranch?, subPath?</text>
|
|
151
|
-
<text x="10" y="134" fill="#94a3b8" font-size="9">projectId FK → Project</text>
|
|
152
|
-
<rect x="0" y="145" width="250" height="1" fill="rgba(52,211,153,0.15)"/>
|
|
153
|
-
<text x="10" y="159" fill="rgba(52,211,153,0.6)" font-size="8">has: executions[], messages[], labels[]</text>
|
|
154
|
-
</g>
|
|
155
|
-
|
|
156
|
-
<!-- TaskExecution -->
|
|
157
|
-
<g transform="translate(880,30)">
|
|
158
|
-
<rect x="0" y="0" width="270" height="165" rx="4" fill="#0f172a" stroke="rgba(120,53,15,0.5)" stroke-width="1"/>
|
|
159
|
-
<rect x="0" y="0" width="270" height="28" rx="4" fill="#fbbf24"/>
|
|
160
|
-
<rect x="0" y="14" width="270" height="14" fill="#fbbf24"/>
|
|
161
|
-
<text x="135" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">TaskExecution</text>
|
|
162
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
163
|
-
<text x="10" y="64" fill="#94a3b8" font-size="9">taskId FK → Task</text>
|
|
164
|
-
<text x="10" y="78" fill="#94a3b8" font-size="9">agent string (def: CLAUDE_CODE)</text>
|
|
165
|
-
<text x="10" y="92" fill="#94a3b8" font-size="9">status PENDING|RUNNING|PAUSED|COMPLETED|FAILED</text>
|
|
166
|
-
<text x="10" y="106" fill="#94a3b8" font-size="9">sessionId?, worktreePath?</text>
|
|
167
|
-
<text x="10" y="120" fill="#94a3b8" font-size="9">summary?, gitLog?</text>
|
|
168
|
-
<text x="10" y="134" fill="#94a3b8" font-size="9">startedAt?, endedAt?</text>
|
|
169
|
-
<rect x="0" y="145" width="270" height="1" fill="rgba(251,191,36,0.15)"/>
|
|
170
|
-
<text x="10" y="159" fill="rgba(251,191,36,0.6)" font-size="8">has: messages[]</text>
|
|
171
|
-
</g>
|
|
172
|
-
|
|
173
|
-
<!-- ========== ROW 2 ENTITIES ========== -->
|
|
174
|
-
|
|
175
|
-
<!-- Label -->
|
|
176
|
-
<g transform="translate(60,280)">
|
|
177
|
-
<rect x="0" y="0" width="140" height="130" rx="4" fill="#0f172a" stroke="rgba(167,139,250,0.3)" stroke-width="1"/>
|
|
178
|
-
<rect x="0" y="0" width="140" height="28" rx="4" fill="#a78bfa"/>
|
|
179
|
-
<rect x="0" y="14" width="140" height="14" fill="#a78bfa"/>
|
|
180
|
-
<text x="70" y="19" fill="white" font-size="11" font-weight="600" text-anchor="middle">Label</text>
|
|
181
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
182
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">name string</text>
|
|
183
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">color hex (#94a3b8)</text>
|
|
184
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">isBuiltin bool</text>
|
|
185
|
-
<text x="10" y="114" fill="#94a3b8" font-size="9">workspaceId? FK</text>
|
|
186
|
-
</g>
|
|
187
|
-
|
|
188
|
-
<!-- TaskLabel -->
|
|
189
|
-
<g transform="translate(300,280)">
|
|
190
|
-
<rect x="0" y="0" width="180" height="115" rx="4" fill="#0f172a" stroke="rgba(167,139,250,0.3)" stroke-width="1"/>
|
|
191
|
-
<rect x="0" y="0" width="180" height="28" rx="4" fill="#a78bfa"/>
|
|
192
|
-
<rect x="0" y="14" width="180" height="14" fill="#a78bfa"/>
|
|
193
|
-
<text x="90" y="19" fill="white" font-size="11" font-weight="600" text-anchor="middle">TaskLabel</text>
|
|
194
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">taskId</tspan> FK → Task</text>
|
|
195
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">labelId</tspan> FK → Label</text>
|
|
196
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">@@id([taskId, labelId])</text>
|
|
197
|
-
<rect x="0" y="93" width="180" height="1" fill="rgba(167,139,250,0.15)"/>
|
|
198
|
-
<text x="10" y="108" fill="rgba(167,139,250,0.6)" font-size="8">join table (M:N)</text>
|
|
199
|
-
</g>
|
|
200
|
-
|
|
201
|
-
<!-- TaskMessage -->
|
|
202
|
-
<g transform="translate(580,280)">
|
|
203
|
-
<rect x="0" y="0" width="230" height="130" rx="4" fill="#0f172a" stroke="rgba(120,53,15,0.5)" stroke-width="1"/>
|
|
204
|
-
<rect x="0" y="0" width="230" height="28" rx="4" fill="#fbbf24"/>
|
|
205
|
-
<rect x="0" y="14" width="230" height="14" fill="#fbbf24"/>
|
|
206
|
-
<text x="115" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">TaskMessage</text>
|
|
207
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
208
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">taskId FK, executionId? FK</text>
|
|
209
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">role USER|ASSISTANT|SYSTEM</text>
|
|
210
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">content string</text>
|
|
211
|
-
<text x="10" y="114" fill="#94a3b8" font-size="9">metadata? JSON</text>
|
|
212
|
-
</g>
|
|
213
|
-
|
|
214
|
-
<!-- Repository -->
|
|
215
|
-
<g transform="translate(880,280)">
|
|
216
|
-
<rect x="0" y="0" width="200" height="115" rx="4" fill="#0f172a" stroke="rgba(34,211,238,0.3)" stroke-width="1"/>
|
|
217
|
-
<rect x="0" y="0" width="200" height="28" rx="4" fill="#22d3ee"/>
|
|
218
|
-
<rect x="0" y="14" width="200" height="14" fill="#22d3ee"/>
|
|
219
|
-
<text x="100" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">Repository</text>
|
|
220
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
221
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">name, path string</text>
|
|
222
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">branch (def: main)</text>
|
|
223
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">projectId FK → Project</text>
|
|
224
|
-
</g>
|
|
225
|
-
|
|
226
|
-
<!-- ========== ROW 3 ENTITIES ========== -->
|
|
227
|
-
|
|
228
|
-
<!-- ProjectNote -->
|
|
229
|
-
<g transform="translate(300,480)">
|
|
230
|
-
<rect x="0" y="0" width="220" height="115" rx="4" fill="#0f172a" stroke="rgba(34,211,238,0.3)" stroke-width="1"/>
|
|
231
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#22d3ee"/>
|
|
232
|
-
<rect x="0" y="14" width="220" height="14" fill="#22d3ee"/>
|
|
233
|
-
<text x="110" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">ProjectNote</text>
|
|
234
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
235
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">title, content string</text>
|
|
236
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">category? string</text>
|
|
237
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">projectId FK, taskId? FK</text>
|
|
238
|
-
</g>
|
|
239
|
-
|
|
240
|
-
<!-- ProjectAsset -->
|
|
241
|
-
<g transform="translate(580,480)">
|
|
242
|
-
<rect x="0" y="0" width="220" height="115" rx="4" fill="#0f172a" stroke="rgba(34,211,238,0.3)" stroke-width="1"/>
|
|
243
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#22d3ee"/>
|
|
244
|
-
<rect x="0" y="14" width="220" height="14" fill="#22d3ee"/>
|
|
245
|
-
<text x="110" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">ProjectAsset</text>
|
|
246
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
247
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">filename, mimeType string</text>
|
|
248
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">size int</text>
|
|
249
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">projectId FK, taskId? FK</text>
|
|
250
|
-
</g>
|
|
251
|
-
|
|
252
|
-
<!-- ========== ROW 4 ENTITIES ========== -->
|
|
253
|
-
|
|
254
|
-
<!-- CliProfile -->
|
|
255
|
-
<g transform="translate(60,630)">
|
|
256
|
-
<rect x="0" y="0" width="220" height="130" rx="4" fill="#0f172a" stroke="rgba(148,163,184,0.3)" stroke-width="1"/>
|
|
257
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#94a3b8"/>
|
|
258
|
-
<rect x="0" y="14" width="220" height="14" fill="#94a3b8"/>
|
|
259
|
-
<text x="110" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">CliProfile</text>
|
|
260
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
261
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">command (def: claude)</text>
|
|
262
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">baseArgs JSON string[]</text>
|
|
263
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">envVars JSON object</text>
|
|
264
|
-
<text x="10" y="114" fill="#94a3b8" font-size="9">isDefault bool</text>
|
|
265
|
-
</g>
|
|
266
|
-
|
|
267
|
-
<!-- AgentConfig -->
|
|
268
|
-
<g transform="translate(380,630)">
|
|
269
|
-
<rect x="0" y="0" width="220" height="130" rx="4" fill="#0f172a" stroke="rgba(148,163,184,0.3)" stroke-width="1"/>
|
|
270
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#94a3b8"/>
|
|
271
|
-
<rect x="0" y="14" width="220" height="14" fill="#94a3b8"/>
|
|
272
|
-
<text x="110" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">AgentConfig</text>
|
|
273
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
274
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">agent, configName string</text>
|
|
275
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">appendPrompt? string</text>
|
|
276
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">settings? JSON</text>
|
|
277
|
-
<text x="10" y="114" fill="#94a3b8" font-size="9">isDefault bool @@unique</text>
|
|
278
|
-
</g>
|
|
279
|
-
|
|
280
|
-
<!-- AgentPrompt -->
|
|
281
|
-
<g transform="translate(700,630)">
|
|
282
|
-
<rect x="0" y="0" width="220" height="130" rx="4" fill="#0f172a" stroke="rgba(148,163,184,0.3)" stroke-width="1"/>
|
|
283
|
-
<rect x="0" y="0" width="220" height="28" rx="4" fill="#94a3b8"/>
|
|
284
|
-
<rect x="0" y="14" width="220" height="14" fill="#94a3b8"/>
|
|
285
|
-
<text x="110" y="19" fill="#0f172a" font-size="11" font-weight="600" text-anchor="middle">AgentPrompt</text>
|
|
286
|
-
<text x="10" y="50" fill="#94a3b8" font-size="9"><tspan text-decoration="underline">id</tspan> cuid PK</text>
|
|
287
|
-
<text x="10" y="66" fill="#94a3b8" font-size="9">name, content string</text>
|
|
288
|
-
<text x="10" y="82" fill="#94a3b8" font-size="9">workspaceId? FK</text>
|
|
289
|
-
<text x="10" y="98" fill="#94a3b8" font-size="9">isDefault bool</text>
|
|
290
|
-
</g>
|
|
291
|
-
|
|
292
|
-
<!-- ========== LEGEND ========== -->
|
|
293
|
-
<g transform="translate(990,5)">
|
|
294
|
-
<rect x="0" y="0" width="200" height="130" rx="6" fill="rgba(15,23,42,0.9)" stroke="rgba(148,163,184,0.2)" stroke-width="1"/>
|
|
295
|
-
<text x="100" y="20" fill="#e2e8f0" font-size="10" font-weight="600" text-anchor="middle">Legend</text>
|
|
296
|
-
<rect x="15" y="30" width="12" height="8" rx="2" fill="#34d399"/>
|
|
297
|
-
<text x="33" y="38" fill="#94a3b8" font-size="8">Primary (Core)</text>
|
|
298
|
-
<rect x="15" y="46" width="12" height="8" rx="2" fill="#fbbf24"/>
|
|
299
|
-
<text x="33" y="54" fill="#94a3b8" font-size="8">Execution</text>
|
|
300
|
-
<rect x="15" y="62" width="12" height="8" rx="2" fill="#a78bfa"/>
|
|
301
|
-
<text x="33" y="70" fill="#94a3b8" font-size="8">Join / Label</text>
|
|
302
|
-
<rect x="15" y="78" width="12" height="8" rx="2" fill="#22d3ee"/>
|
|
303
|
-
<text x="33" y="86" fill="#94a3b8" font-size="8">Content</text>
|
|
304
|
-
<rect x="15" y="94" width="12" height="8" rx="2" fill="#94a3b8"/>
|
|
305
|
-
<text x="33" y="102" fill="#94a3b8" font-size="8">Config</text>
|
|
306
|
-
<line x1="15" y1="114" x2="27" y2="114" stroke="#475569" stroke-width="1.5" marker-end="url(#arrowhead)"/>
|
|
307
|
-
<text x="33" y="118" fill="#94a3b8" font-size="8">1:N relationship</text>
|
|
308
|
-
</g>
|
|
309
|
-
|
|
310
|
-
<!-- ========== INFO CARDS ========== -->
|
|
311
|
-
|
|
312
|
-
<!-- Card 1: Core Entities -->
|
|
313
|
-
<g transform="translate(60,785)">
|
|
314
|
-
<rect x="0" y="0" width="320" height="50" rx="6" fill="rgba(6,78,59,0.4)" stroke="rgba(52,211,153,0.3)" stroke-width="1"/>
|
|
315
|
-
<rect x="0" y="0" width="4" height="50" rx="2" fill="#34d399"/>
|
|
316
|
-
<text x="16" y="18" fill="#34d399" font-size="10" font-weight="600">Core Entities</text>
|
|
317
|
-
<text x="16" y="34" fill="#94a3b8" font-size="8">Workspace → Project → Task hierarchy</text>
|
|
318
|
-
<text x="16" y="46" fill="rgba(148,163,184,0.6)" font-size="7">Cascade delete: removing parent auto-cleans child data</text>
|
|
319
|
-
</g>
|
|
320
|
-
|
|
321
|
-
<!-- Card 2: Execution & Messages -->
|
|
322
|
-
<g transform="translate(420,785)">
|
|
323
|
-
<rect x="0" y="0" width="320" height="50" rx="6" fill="rgba(120,53,15,0.3)" stroke="rgba(251,191,36,0.3)" stroke-width="1"/>
|
|
324
|
-
<rect x="0" y="0" width="4" height="50" rx="2" fill="#fbbf24"/>
|
|
325
|
-
<text x="16" y="18" fill="#fbbf24" font-size="10" font-weight="600">Execution & Messages</text>
|
|
326
|
-
<text x="16" y="34" fill="#94a3b8" font-size="8">TaskExecution records execution history and status</text>
|
|
327
|
-
<text x="16" y="46" fill="rgba(148,163,184,0.6)" font-size="7">TaskMessage stores AI conversation context</text>
|
|
328
|
-
</g>
|
|
329
|
-
|
|
330
|
-
<!-- Card 3: Config -->
|
|
331
|
-
<g transform="translate(780,785)">
|
|
332
|
-
<rect x="0" y="0" width="320" height="50" rx="6" fill="rgba(30,41,59,0.5)" stroke="rgba(148,163,184,0.3)" stroke-width="1"/>
|
|
333
|
-
<rect x="0" y="0" width="4" height="50" rx="2" fill="#94a3b8"/>
|
|
334
|
-
<text x="16" y="18" fill="#94a3b8" font-size="10" font-weight="600">Configuration</text>
|
|
335
|
-
<text x="16" y="34" fill="#94a3b8" font-size="8">CliProfile CLI config, AgentConfig agent settings</text>
|
|
336
|
-
<text x="16" y="46" fill="rgba(148,163,184,0.6)" font-size="7">AgentPrompt templates with workspace-level isolation</text>
|
|
337
|
-
</g>
|
|
338
|
-
|
|
339
|
-
<!-- ========== FOOTER ========== -->
|
|
340
|
-
<text x="600" y="848" fill="rgba(148,163,184,0.4)" font-size="9" text-anchor="middle">Tower Data Model · 13 Entities</text>
|
|
341
|
-
|
|
342
|
-
</svg>
|
|
343
|
-
</body>
|
|
344
|
-
</html>
|