mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 19:34:38 +00:00
refactor(monorepo): decouple and split background workflow workers into packages
Splits monolithic workflow workers into four decoupled workspaces under the Bun workspaces monorepo: - @shumai/workflow-core containing the core execution engine and utilities. - @shumai/agent containing agent-specific logic, workflows, and activities. - @shumai/transcode containing transcoding workflows, transcoder, and transcode activities. - @shumai/worker-db containing database activities. Introduces a dynamic workflow and activity registration pattern on LocalExecutor to eliminate circular dependencies. Updates worker bootstrapping and test suites to cleanly leverage generic workspace modules.
This commit is contained in:
@@ -4,7 +4,7 @@ import { setupTestDbHooks } from '@shumai/db'
|
||||
import { SearchService } from './search'
|
||||
import { SearchConditionOperator } from '@shumai/dtos'
|
||||
import { metadataService } from '@shumai/core/src/metadata/metadata'
|
||||
import { workflowService } from '@/workflow/workflow'
|
||||
import { workflowService } from '@shumai/workflow-core'
|
||||
|
||||
import { AssetType } from '@shumai/db'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AssetInfo } from '@shumai/dtos'
|
||||
import { SearchRequest } from '@shumai/dtos'
|
||||
import { PaginatedData, decodeCursor, encodeCursor, PageInfo } from '@shumai/core/src/pagination'
|
||||
import { generateSearchNgrams } from '@/utils/ngram'
|
||||
import { workflowService } from '@/workflow/workflow'
|
||||
import { workflowService } from '@shumai/workflow-core'
|
||||
import { HTTPException } from 'hono/http-exception'
|
||||
import { SqlQueryBuilder } from './sql-query-builder'
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
WorkflowTaskType,
|
||||
} from '@shumai/db'
|
||||
import { PaginationParams, paginateQuery, PaginatedData } from '@shumai/core/src/pagination'
|
||||
import { VideoTranscoder, ImageTranscoder } from '@/transcode/transcoder'
|
||||
import { VideoTranscoder, ImageTranscoder } from '@shumai/transcode'
|
||||
|
||||
export class UploadService {
|
||||
constructor(private readonly prismaClient: typeof prisma = prisma) {}
|
||||
|
||||
Reference in New Issue
Block a user