mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-30 23:27:57 +00:00
feat: add file upload support
This commit is contained in:
@@ -24,6 +24,7 @@ import type {
|
||||
import { AgentStateSchema, CliMessagesResponseSchema, MetadataSchema, UserMessageSchema } from './types'
|
||||
import { RpcHandlerManager } from './rpc/RpcHandlerManager'
|
||||
import { registerCommonHandlers } from '../modules/common/registerCommonHandlers'
|
||||
import { cleanupUploadDir } from '../modules/common/handlers/uploads'
|
||||
import { TerminalManager } from '@/terminal/TerminalManager'
|
||||
import {
|
||||
TerminalClosePayloadSchema,
|
||||
@@ -450,6 +451,7 @@ export class ApiSessionClient extends EventEmitter {
|
||||
}
|
||||
|
||||
sendSessionDeath(): void {
|
||||
void cleanupUploadDir(this.sessionId)
|
||||
this.socket.emit('session-end', { sid: this.sessionId, time: Date.now() })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user