mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 20:07:59 +00:00
refactor(monorepo): distribute runtime dependencies to workspace packages
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package.json bun.lock ./
|
||||
COPY prisma ./prisma
|
||||
COPY --parents packages/*/package.json ./
|
||||
|
||||
# Install dependencies (including devDependencies for build tools)
|
||||
RUN bun install --frozen-lockfile
|
||||
@@ -39,7 +39,7 @@ RUN bun add @temporalio/activity @temporalio/client @temporalio/worker @temporal
|
||||
|
||||
# Copy build artifacts and prisma config
|
||||
COPY --from=builder /app/dist ./
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/packages/db/prisma ./packages/db/prisma
|
||||
COPY --from=builder /app/prisma.config.ts.prod ./prisma.config.ts
|
||||
|
||||
# Expose port (Bun Hono defaults to 3000)
|
||||
|
||||
-123
@@ -18,144 +18,21 @@
|
||||
"worker": "bun packages/api/src/index.ts worker",
|
||||
"build": "bun run build.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sandbox-runtime": "^0.0.52",
|
||||
"@aws-sdk/client-s3": "^3.1031.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.1031.0",
|
||||
"@base-ui/react": "^1.5.0",
|
||||
"@dnd-kit/dom": "^0.4.0",
|
||||
"@dnd-kit/react": "^0.4.0",
|
||||
"@earendil-works/pi-agent-core": "0.78.0",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"@google/genai": "^1.50.1",
|
||||
"@hono/zod-validator": "^0.7.6",
|
||||
"@hookform/resolvers": "^5.4.0",
|
||||
"@lexical/code": "^0.42.0",
|
||||
"@lexical/link": "^0.42.0",
|
||||
"@lexical/list": "^0.42.0",
|
||||
"@lexical/markdown": "^0.42.0",
|
||||
"@lexical/react": "^0.42.0",
|
||||
"@lexical/rich-text": "^0.42.0",
|
||||
"@lexical/selection": "^0.42.0",
|
||||
"@lexical/table": "^0.42.0",
|
||||
"@lexical/utils": "^0.42.0",
|
||||
"@prisma/adapter-pg": "^7.7.0",
|
||||
"@prisma/client": "^7.7.0",
|
||||
"@radix-ui/react-accordion": "1.2.2",
|
||||
"@radix-ui/react-alert-dialog": "1.1.4",
|
||||
"@radix-ui/react-aspect-ratio": "1.1.1",
|
||||
"@radix-ui/react-avatar": "1.1.2",
|
||||
"@radix-ui/react-checkbox": "1.1.3",
|
||||
"@radix-ui/react-collapsible": "1.1.2",
|
||||
"@radix-ui/react-context-menu": "2.2.4",
|
||||
"@radix-ui/react-dialog": "^1.1.15",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.4",
|
||||
"@radix-ui/react-hover-card": "1.1.4",
|
||||
"@radix-ui/react-label": "^2.1.8",
|
||||
"@radix-ui/react-menubar": "1.1.4",
|
||||
"@radix-ui/react-navigation-menu": "1.2.3",
|
||||
"@radix-ui/react-popover": "1.1.4",
|
||||
"@radix-ui/react-progress": "1.1.1",
|
||||
"@radix-ui/react-radio-group": "1.2.2",
|
||||
"@radix-ui/react-scroll-area": "1.2.2",
|
||||
"@radix-ui/react-select": "2.1.4",
|
||||
"@radix-ui/react-separator": "^1.1.8",
|
||||
"@radix-ui/react-slider": "1.2.2",
|
||||
"@radix-ui/react-slot": "^1.2.4",
|
||||
"@radix-ui/react-switch": "1.1.2",
|
||||
"@radix-ui/react-tabs": "1.1.2",
|
||||
"@radix-ui/react-toast": "1.2.4",
|
||||
"@radix-ui/react-toggle": "1.1.1",
|
||||
"@radix-ui/react-toggle-group": "1.1.1",
|
||||
"@radix-ui/react-tooltip": "^1.2.8",
|
||||
"@sinclair/typebox": "^0.34.49",
|
||||
"@swc/wasm": "^1.15.33",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@tanstack/react-form": "^1.32.0",
|
||||
"@tanstack/react-query": "5.90.10",
|
||||
"@tanstack/react-router": "^1.136.8",
|
||||
"@tanstack/react-table": "^8.21.3",
|
||||
"@temporalio/activity": "^1.16.1",
|
||||
"@temporalio/client": "^1.16.1",
|
||||
"@temporalio/worker": "^1.16.1",
|
||||
"@temporalio/workflow": "^1.16.1",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"adm-zip": "^0.5.17",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"better-auth": "^1.6.6",
|
||||
"bun": "^1.3.13",
|
||||
"bun-plugin-tailwind": "^0.1.2",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.1.1",
|
||||
"date-fns": "^4.4.0",
|
||||
"dotenv-expand": "^13.0.0",
|
||||
"embla-carousel-react": "^8.6.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"hono": "^4.12.14",
|
||||
"input-otp": "^1.4.2",
|
||||
"jittered-fractional-indexing": "^1.0.1",
|
||||
"konva": "^10.0.12",
|
||||
"lexical": "^0.42.0",
|
||||
"loader-utils": "^3.3.1",
|
||||
"lucide-react": "^1.17.0",
|
||||
"next-themes": "^0.4.6",
|
||||
"pg": "^8.20.0",
|
||||
"pino": "^10.3.1",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"radix-ui": "^1.4.3",
|
||||
"react": "19.2.0",
|
||||
"react-day-picker": "^10.0.1",
|
||||
"react-dom": "19.2.0",
|
||||
"react-hook-form": "^7.76.1",
|
||||
"react-intersection-observer": "^10.0.0",
|
||||
"react-konva": "^19.2.1",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-resizable-panels": "^4",
|
||||
"recharts": "3.8.0",
|
||||
"sharp": "^0.34.5",
|
||||
"sonner": "^2.0.7",
|
||||
"tailwind-merge": "^2.5.5",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"ulid": "^3.0.2",
|
||||
"use-image": "^1.1.4",
|
||||
"vaul": "^1.1.2",
|
||||
"video.js": "^8.23.4",
|
||||
"vite": "^7.2.2",
|
||||
"zod": "^4.4.3",
|
||||
"zustand": "^5.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@tailwindcss/postcss": "^4.1.9",
|
||||
"@tanstack/router-cli": "^1.136.8",
|
||||
"@tanstack/router-plugin": "^1.136.8",
|
||||
"@testcontainers/postgresql": "^11.14.0",
|
||||
"@types/adm-zip": "^0.5.8",
|
||||
"@types/bun": "^1.3.12",
|
||||
"@types/extract-zip": "^2.0.3",
|
||||
"@types/node": "^22",
|
||||
"@types/pg": "^8.20.0",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"bun-plugin-pino": "^1.5.0",
|
||||
"bun-types": "^1.3.12",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"globals": "^16.5.0",
|
||||
"orval": "7.14.0",
|
||||
"postcss": "^8.5",
|
||||
"prisma": "^7.7.0",
|
||||
"prisma-json-types-generator": "^4.1.1",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"testcontainers": "^11.14.0",
|
||||
"tw-animate-css": "1.3.3",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.46.4",
|
||||
"unplugin-auto-import": "^21.0.0",
|
||||
"vite-tsconfig-paths": "^6.1.1",
|
||||
"vitest": "^4.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,9 @@
|
||||
"zod": "^4.4.3",
|
||||
"better-auth": "^1.6.6",
|
||||
"pino": "^10.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bun-plugin-pino": "^1.5.0",
|
||||
"pino-pretty": "^13.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,11 +10,21 @@
|
||||
"@shumai/dtos": "workspace:*",
|
||||
"@aws-sdk/client-s3": "^3.1031.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.1031.0",
|
||||
"@sinclair/typebox": "^0.34.49",
|
||||
"adm-zip": "^0.5.17",
|
||||
"better-auth": "^1.6.6",
|
||||
"date-fns": "^4.4.0",
|
||||
"dotenv": "^16.4.7",
|
||||
"dotenv-expand": "^13.0.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"jittered-fractional-indexing": "^1.0.1",
|
||||
"pino": "^10.3.1",
|
||||
"ulid": "^3.0.2"
|
||||
"tweetnacl": "^1.0.3",
|
||||
"ulid": "^3.0.2",
|
||||
"yaml": "^2.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/adm-zip": "^0.5.8",
|
||||
"@types/extract-zip": "^2.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,13 @@
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@prisma/client": "^7.7.0"
|
||||
"@prisma/adapter-pg": "^7.7.0",
|
||||
"@prisma/client": "^7.7.0",
|
||||
"pg": "^8.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prisma": "^7.7.0"
|
||||
"@types/pg": "^8.20.0",
|
||||
"prisma": "^7.7.0",
|
||||
"prisma-json-types-generator": "^4.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,91 @@
|
||||
"type": "module",
|
||||
"main": "./index.html",
|
||||
"dependencies": {
|
||||
"@shumai/api": "workspace:*"
|
||||
"@base-ui/react": "^1.5.0",
|
||||
"@dnd-kit/abstract": "^0.4.0",
|
||||
"@dnd-kit/dom": "^0.4.0",
|
||||
"@dnd-kit/react": "^0.4.0",
|
||||
"@hookform/resolvers": "^5.4.0",
|
||||
"@lexical/code": "^0.42.0",
|
||||
"@lexical/link": "^0.42.0",
|
||||
"@lexical/list": "^0.42.0",
|
||||
"@lexical/markdown": "^0.42.0",
|
||||
"@lexical/react": "^0.42.0",
|
||||
"@lexical/rich-text": "^0.42.0",
|
||||
"@lexical/selection": "^0.42.0",
|
||||
"@lexical/table": "^0.42.0",
|
||||
"@lexical/utils": "^0.42.0",
|
||||
"@radix-ui/react-accordion": "1.2.2",
|
||||
"@radix-ui/react-alert-dialog": "1.1.4",
|
||||
"@radix-ui/react-aspect-ratio": "1.1.1",
|
||||
"@radix-ui/react-avatar": "1.1.2",
|
||||
"@radix-ui/react-checkbox": "1.1.3",
|
||||
"@radix-ui/react-collapsible": "1.1.2",
|
||||
"@radix-ui/react-context-menu": "2.2.4",
|
||||
"@radix-ui/react-dialog": "^1.1.15",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.4",
|
||||
"@radix-ui/react-hover-card": "1.1.4",
|
||||
"@radix-ui/react-label": "^2.1.8",
|
||||
"@radix-ui/react-menubar": "1.1.4",
|
||||
"@radix-ui/react-navigation-menu": "1.2.3",
|
||||
"@radix-ui/react-popover": "1.1.4",
|
||||
"@radix-ui/react-progress": "1.1.1",
|
||||
"@radix-ui/react-radio-group": "1.2.2",
|
||||
"@radix-ui/react-scroll-area": "1.2.2",
|
||||
"@radix-ui/react-select": "2.1.4",
|
||||
"@radix-ui/react-separator": "^1.1.8",
|
||||
"@radix-ui/react-slider": "1.2.2",
|
||||
"@radix-ui/react-slot": "^1.2.4",
|
||||
"@radix-ui/react-switch": "1.1.2",
|
||||
"@radix-ui/react-tabs": "1.1.2",
|
||||
"@radix-ui/react-toast": "1.2.4",
|
||||
"@radix-ui/react-toggle": "1.1.1",
|
||||
"@radix-ui/react-toggle-group": "1.1.1",
|
||||
"@radix-ui/react-tooltip": "^1.2.8",
|
||||
"@shumai/api": "workspace:*",
|
||||
"@tanstack/react-form": "^1.32.0",
|
||||
"@tanstack/react-query": "5.90.10",
|
||||
"@tanstack/react-router": "^1.136.8",
|
||||
"@tanstack/react-table": "^8.21.3",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.1.1",
|
||||
"embla-carousel-react": "^8.6.0",
|
||||
"input-otp": "^1.4.2",
|
||||
"konva": "^10.0.12",
|
||||
"lexical": "^0.42.0",
|
||||
"lucide-react": "^1.17.0",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "19.2.0",
|
||||
"react-day-picker": "^10.0.1",
|
||||
"react-dom": "19.2.0",
|
||||
"react-hook-form": "^7.76.1",
|
||||
"react-intersection-observer": "^10.0.0",
|
||||
"react-konva": "^19.2.1",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-resizable-panels": "^4",
|
||||
"recharts": "3.8.0",
|
||||
"sonner": "^2.0.7",
|
||||
"tailwind-merge": "^2.5.5",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"use-image": "^1.1.4",
|
||||
"vaul": "^1.1.2",
|
||||
"video.js": "^8.23.4",
|
||||
"zustand": "^5.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.1.9",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@tanstack/router-cli": "^1.136.8",
|
||||
"@tanstack/router-plugin": "^1.136.8",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"postcss": "^8.5",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"tw-animate-css": "1.3.3",
|
||||
"vite": "^7.2.2",
|
||||
"vite-tsconfig-paths": "^6.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
-98
@@ -1,98 +0,0 @@
|
||||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@dnd-kit/core':
|
||||
specifier: ^6.3.1
|
||||
version: 6.3.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
|
||||
'@dnd-kit/utilities':
|
||||
specifier: ^3.2.2
|
||||
version: 3.2.2(react@19.2.3)
|
||||
|
||||
packages:
|
||||
'@dnd-kit/accessibility@3.1.1':
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==,
|
||||
}
|
||||
peerDependencies:
|
||||
react: '>=16.8.0'
|
||||
|
||||
'@dnd-kit/core@6.3.1':
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==,
|
||||
}
|
||||
peerDependencies:
|
||||
react: '>=16.8.0'
|
||||
react-dom: '>=16.8.0'
|
||||
|
||||
'@dnd-kit/utilities@3.2.2':
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==,
|
||||
}
|
||||
peerDependencies:
|
||||
react: '>=16.8.0'
|
||||
|
||||
react-dom@19.2.3:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==,
|
||||
}
|
||||
peerDependencies:
|
||||
react: ^19.2.3
|
||||
|
||||
react@19.2.3:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==,
|
||||
}
|
||||
engines: { node: '>=0.10.0' }
|
||||
|
||||
scheduler@0.27.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==,
|
||||
}
|
||||
|
||||
tslib@2.8.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==,
|
||||
}
|
||||
|
||||
snapshots:
|
||||
'@dnd-kit/accessibility@3.1.1(react@19.2.3)':
|
||||
dependencies:
|
||||
react: 19.2.3
|
||||
tslib: 2.8.1
|
||||
|
||||
'@dnd-kit/core@6.3.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
|
||||
dependencies:
|
||||
'@dnd-kit/accessibility': 3.1.1(react@19.2.3)
|
||||
'@dnd-kit/utilities': 3.2.2(react@19.2.3)
|
||||
react: 19.2.3
|
||||
react-dom: 19.2.3(react@19.2.3)
|
||||
tslib: 2.8.1
|
||||
|
||||
'@dnd-kit/utilities@3.2.2(react@19.2.3)':
|
||||
dependencies:
|
||||
react: 19.2.3
|
||||
tslib: 2.8.1
|
||||
|
||||
react-dom@19.2.3(react@19.2.3):
|
||||
dependencies:
|
||||
react: 19.2.3
|
||||
scheduler: 0.27.0
|
||||
|
||||
react@19.2.3: {}
|
||||
|
||||
scheduler@0.27.0: {}
|
||||
|
||||
tslib@2.8.1: {}
|
||||
+11
-1
@@ -12,7 +12,17 @@
|
||||
"baseUrl": ".",
|
||||
"types": ["bun"],
|
||||
"paths": {
|
||||
"@/ui/*": ["packages/webui/*"]
|
||||
"@/ui/*": ["packages/webui/*"],
|
||||
"@shumai/webui": ["packages/webui/index.html"],
|
||||
"@shumai/api": ["packages/api/src/index.ts"],
|
||||
"@shumai/core": ["packages/core/src/index.ts"],
|
||||
"@shumai/core/src/*": ["packages/core/src/*"],
|
||||
"@shumai/db": ["packages/db/src/index.ts"],
|
||||
"@shumai/dtos": ["packages/dtos/src/index.ts"],
|
||||
"@shumai/workflow-core": ["packages/workflow-core/src/index.ts"],
|
||||
"@shumai/agent": ["packages/agent/src/index.ts"],
|
||||
"@shumai/transcode": ["packages/transcode/src/index.ts"],
|
||||
"@shumai/worker-db": ["packages/worker-db/src/index.ts"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
|
||||
Reference in New Issue
Block a user