Skip to content

Commit 6502d2d

Browse files
move tool definitions to agent-runtime
Moved backend/src/tools/definitions/ to packages/agent-runtime/src/tools/definitions/ Updated imports in backend to use @codebuff/agent-runtime Converted internal agent-runtime imports to relative paths 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent efeed97 commit 6502d2d

28 files changed

+4
-4
lines changed

backend/src/tools/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { buildArray } from '@codebuff/common/util/array'
44
import { pluralize } from '@codebuff/common/util/string'
55
import z from 'zod/v4'
66

7-
import { codebuffToolDefs } from './definitions/list'
7+
import { codebuffToolDefs } from '@codebuff/agent-runtime/tools/definitions/list'
88

99
import type { ToolName } from '@codebuff/common/tools/constants'
1010
import type { customToolDefinitionsSchema } from '@codebuff/common/util/file'

backend/src/tools/tool-executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash'
77
import z from 'zod/v4'
88
import { convertJsonSchemaToZod } from 'zod-from-json-schema'
99

10-
import { codebuffToolDefs } from './definitions/list'
10+
import { codebuffToolDefs } from '@codebuff/agent-runtime/tools/definitions/list'
1111
import { codebuffToolHandlers } from './handlers/list'
1212

1313
import type { AgentTemplate } from '@codebuff/agent-runtime/templates/types'

packages/agent-runtime/src/system-prompt/search-system-prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
countTokens,
33
countTokensJson,
4-
} from '@codebuff/agent-runtime/util/token-counter'
4+
} from '../util/token-counter'
55
import { insertTrace } from '@codebuff/bigquery'
66
import { buildArray } from '@codebuff/common/util/array'
77

File renamed without changes.

backend/src/tools/definitions/tool-def-type.ts renamed to packages/agent-runtime/src/tools/definitions/tool-def-type.ts

File renamed without changes.

backend/src/tools/definitions/tool/add-message.ts renamed to packages/agent-runtime/src/tools/definitions/tool/add-message.ts

File renamed without changes.

backend/src/tools/definitions/tool/add-subgoal.ts renamed to packages/agent-runtime/src/tools/definitions/tool/add-subgoal.ts

File renamed without changes.

backend/src/tools/definitions/tool/browser-logs.ts renamed to packages/agent-runtime/src/tools/definitions/tool/browser-logs.ts

File renamed without changes.

backend/src/tools/definitions/tool/code-search.ts renamed to packages/agent-runtime/src/tools/definitions/tool/code-search.ts

File renamed without changes.

backend/src/tools/definitions/tool/create-plan.ts renamed to packages/agent-runtime/src/tools/definitions/tool/create-plan.ts

File renamed without changes.

0 commit comments

Comments
 (0)