Skip to content

Commit b11110a

Browse files
committed
move prompt-agent-stream into agent-runtime
1 parent da3bc2e commit b11110a

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

backend/src/__tests__/xml-stream-parser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { globalStopSequence } from '@codebuff/agent-runtime/constants'
12
import { endsAgentStepParam } from '@codebuff/common/tools/constants'
23
import { getToolCallString } from '@codebuff/common/tools/utils'
34
import { describe, expect, it } from 'bun:test'
45

5-
import { globalStopSequence } from '../tools/constants'
66
import { processStreamWithTags } from '../xml-stream-parser'
77

88
import type { Logger } from '@codebuff/common/types/contracts/logger'

backend/src/run-agent-step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { getAgentStreamFromTemplate } from '@codebuff/agent-runtime/prompt-agent-stream'
12
import {
23
asSystemInstruction,
34
asSystemMessage,
@@ -17,7 +18,6 @@ import { cloneDeep } from 'lodash'
1718

1819
import { checkLiveUserInput } from './live-user-inputs'
1920
import { getMCPToolData } from './mcp/util'
20-
import { getAgentStreamFromTemplate } from './prompt-agent-stream'
2121
import { runProgrammaticStep } from './run-programmatic-step'
2222
import { additionalSystemPrompts } from './system-prompt/prompts'
2323
import { getAgentTemplate } from './templates/agent-registry'
File renamed without changes.

backend/src/prompt-agent-stream.ts renamed to packages/agent-runtime/src/prompt-agent-stream.ts

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

3-
import { globalStopSequence } from './tools/constants'
3+
import { globalStopSequence } from './constants'
44

55
import type { AgentTemplate } from '@codebuff/agent-runtime/templates/types'
66
import type { SendActionFn } from '@codebuff/common/types/contracts/client'

0 commit comments

Comments
 (0)