Skip to content

Commit 2435a25

Browse files
committed
feat: add contentType to ExternalTool and ExternalToolPayload interfaces
1 parent 5ed2e8a commit 2435a25

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/externalTools/domain/models/ExternalTool.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface ExternalTool {
44
description: string
55
types: ToolType[]
66
scope: ToolScope
7+
contentType?: string // Only present when scope is 'file'
78
}
89

910
export enum ToolType {

src/externalTools/infra/transformers/ExternalToolPayload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface ExternalToolPayload {
44
description: string
55
types: ToolTypePayload[]
66
scope: ToolScopePayload
7+
contentType?: string // Only present when scope is 'file'
78
}
89

910
enum ToolTypePayload {

src/externalTools/infra/transformers/externalToolsTransformer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const externalToolsTransformer = (
1414
displayName: tool.displayName,
1515
description: tool.description,
1616
types: tool.types as unknown as ExternalTool['types'],
17-
scope: tool.scope as unknown as ExternalTool['scope']
17+
scope: tool.scope as unknown as ExternalTool['scope'],
18+
contentType: tool.contentType
1819
}))
1920
}

0 commit comments

Comments
 (0)