mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 19:04:23 +00:00
feat(agent): integrate sandboxed bash tool and sandbox settings
This commit is contained in:
@@ -42,7 +42,10 @@ describe('WorkflowService', () => {
|
||||
})
|
||||
|
||||
it('should process ai_transcription task locally', async () => {
|
||||
vi.mocked(s3Service.getObject).mockResolvedValue({ buffer: Buffer.from('fake data'), contentType: 'audio/mpeg' })
|
||||
vi.mocked(s3Service.getObject).mockResolvedValue({
|
||||
buffer: Buffer.from('fake data'),
|
||||
contentType: 'audio/mpeg',
|
||||
})
|
||||
|
||||
const asset = await prisma.asset.create({
|
||||
data: {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import type { WorkflowTask } from '@/generated/prisma/client'
|
||||
import { getActivities, executeActivity, TaskQueueDb, TaskQueueTranscode, sleep } from '../workflow-utils'
|
||||
import {
|
||||
getActivities,
|
||||
executeActivity,
|
||||
TaskQueueDb,
|
||||
TaskQueueTranscode,
|
||||
sleep,
|
||||
} from '../workflow-utils'
|
||||
|
||||
export async function aiTranscriptionMedia(task: WorkflowTask): Promise<void> {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user