Skip to content

Commit c2844fb

Browse files
move backend/src/templates/strings.ts to agent-runtime
Moved backend/src/templates/strings.ts to packages/agent-runtime/src/templates/strings.ts Updated imports in backend/src/run-agent-step.ts to use @codebuff/agent-runtime Replaced package imports with relative imports in strings.ts 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 3eb1c8f commit c2844fb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

backend/src/run-agent-step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { getErrorObject } from '@codebuff/common/util/error'
2121
import { cloneDeep } from 'lodash'
2222

2323
import { runProgrammaticStep } from './run-programmatic-step'
24-
import { getAgentPrompt } from './templates/strings'
24+
import { getAgentPrompt } from '@codebuff/agent-runtime/templates/strings'
2525
import { processStreamWithTools } from './tools/stream-parser'
2626
import { getAgentOutput } from '@codebuff/agent-runtime/util/agent-output'
2727

backend/src/templates/strings.ts renamed to packages/agent-runtime/src/templates/strings.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ import {
22
getGitChangesPrompt,
33
getProjectFileTreePrompt,
44
getSystemInfoPrompt,
5-
} from '@codebuff/agent-runtime/system-prompt/prompts'
6-
import { getAgentTemplate } from '@codebuff/agent-runtime/templates/agent-registry'
5+
} from '../system-prompt/prompts'
6+
import { getAgentTemplate } from './agent-registry'
77
import {
88
PLACEHOLDER,
99
placeholderValues,
10-
} from '@codebuff/agent-runtime/templates/types'
11-
import { parseUserMessage } from '@codebuff/agent-runtime/util/messages'
10+
} from './types'
11+
import { parseUserMessage } from '../util/messages'
1212
import { CodebuffConfigSchema } from '@codebuff/common/json-config/constants'
1313
import { escapeString } from '@codebuff/common/util/string'
1414
import { schemaToJsonStr } from '@codebuff/common/util/zod-schema'
1515
import { z } from 'zod/v4'
1616

17-
import { buildSpawnableAgentsDescription } from '@codebuff/agent-runtime/templates/prompts'
17+
import { buildSpawnableAgentsDescription } from './prompts'
1818
import {
1919
fullToolList,
2020
getShortToolInstructions,
2121
getToolsInstructions,
22-
} from '@codebuff/agent-runtime/tools/prompts'
22+
} from '../tools/prompts'
2323

2424
import type {
2525
AgentTemplate,
2626
PlaceholderValue,
27-
} from '@codebuff/agent-runtime/templates/types'
27+
} from './types'
2828
import type { Logger } from '@codebuff/common/types/contracts/logger'
2929
import type { ParamsExcluding } from '@codebuff/common/types/function-params'
3030
import type {

0 commit comments

Comments
 (0)