Revert "feat(types): add DeleteAgentResponse type and update AgentService"

This reverts commit 219844cb74.
This commit is contained in:
icarus 2025-09-18 13:31:23 +08:00
parent f9b49ffde6
commit 70a68bef27
2 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import type {
AgentEntity,
CreateAgentRequest,
CreateAgentResponse,
DeleteAgentResponse,
GetAgentResponse,
ListAgentsResponse,
ListOptions,
@ -144,7 +143,7 @@ export class AgentService extends BaseService {
return await this.getAgent(id)
}
async deleteAgent(id: string): Promise<DeleteAgentResponse> {
async deleteAgent(id: string): Promise<boolean> {
this.ensureInitialized()
const result = await this.database.delete(agentsTable).where(eq(agentsTable.id, id))

View File

@ -142,8 +142,6 @@ export const UpdateAgentResponseSchema = GetAgentResponseSchema
export type UpdateAgentResponse = GetAgentResponse
export type DeleteAgentResponse = boolean
export type CreateSessionRequest = AgentBase
export interface UpdateSessionRequest extends Partial<AgentBase> {}