Skip to content

Commit d9ea580

Browse files
committed
move handler-function-type into agent-runtime
1 parent 745f3d8 commit d9ea580

29 files changed

+29
-30
lines changed

backend/src/tools/handlers/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { handleUpdateSubgoal } from './tool/update-subgoal'
2222
import { handleWebSearch } from './tool/web-search'
2323
import { handleWriteFile } from './tool/write-file'
2424

25-
import type { CodebuffToolHandlerFunction } from './handler-function-type'
25+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
2626
import type { ToolName } from '@codebuff/common/tools/constants'
2727

2828
/**

backend/src/tools/handlers/tool/add-message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
CodebuffToolCall,
44
CodebuffToolOutput,

backend/src/tools/handlers/tool/add-subgoal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { buildArray } from '@codebuff/common/util/array'
22

3-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
3+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
44
import type {
55
CodebuffToolCall,
66
CodebuffToolOutput,

backend/src/tools/handlers/tool/browser-logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
ClientToolCall,
44
CodebuffToolCall,

backend/src/tools/handlers/tool/code-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
ClientToolCall,
44
CodebuffToolCall,

backend/src/tools/handlers/tool/create-plan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
33

44
import { getFileProcessingValues, postStreamProcessing } from './write-file'
55

6-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
7-
import type { Logger } from '@codebuff/common/types/contracts/logger'
86
import type {
97
FileProcessingState,
108
OptionalFileProcessingState,
119
} from './write-file'
10+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
1211
import type {
1312
ClientToolCall,
1413
CodebuffToolCall,
1514
CodebuffToolOutput,
1615
} from '@codebuff/common/tools/list'
16+
import type { Logger } from '@codebuff/common/types/contracts/logger'
1717

1818
export const handleCreatePlan = ((params: {
1919
previousToolCallFinished: Promise<void>

backend/src/tools/handlers/tool/end-turn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
CodebuffToolCall,
44
CodebuffToolOutput,

backend/src/tools/handlers/tool/find-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getFileReadingUpdates } from '../../../get-file-reading-updates'
1212
import { getSearchSystemPrompt } from '../../../system-prompt/search-system-prompt'
1313
import { renderReadFilesResult } from '../../../util/parse-tool-call-xml'
1414

15-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
15+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
1616
import type { GetExpandedFileContextForTrainingBlobTrace } from '@codebuff/bigquery'
1717
import type {
1818
CodebuffToolCall,

backend/src/tools/handlers/tool/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
ClientToolCall,
44
CodebuffToolCall,

backend/src/tools/handlers/tool/list-directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
1+
import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
22
import type {
33
ClientToolCall,
44
CodebuffToolCall,

0 commit comments

Comments
 (0)