Skip to content

Commit f2bad53

Browse files
move fast-rewrite to agent-runtime package
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 7213c7c commit f2bad53

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

backend/src/process-file-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cleanMarkdownCodeBlock } from '@codebuff/common/util/file'
44
import { hasLazyEdit } from '@codebuff/common/util/string'
55
import { createPatch } from 'diff'
66

7-
import { fastRewrite, shouldAddFilePlaceholders } from './fast-rewrite'
7+
import { fastRewrite, shouldAddFilePlaceholders } from '@codebuff/agent-runtime/fast-rewrite'
88
import {
99
parseAndGetDiffBlocksSingleFile,
1010
retryDiffBlocksPrompt,
File renamed without changes.

backend/src/fast-rewrite.ts renamed to packages/agent-runtime/src/fast-rewrite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { promptFlashWithFallbacks } from '@codebuff/agent-runtime/llm-api/gemini-with-fallbacks'
2-
import { promptRelaceAI } from '@codebuff/agent-runtime/llm-api/relace-api'
1+
import { promptFlashWithFallbacks } from './llm-api/gemini-with-fallbacks'
2+
import { promptRelaceAI } from './llm-api/relace-api'
33
import { models, openaiModels } from '@codebuff/common/old-constants'
44
import { buildArray } from '@codebuff/common/util/array'
55
import { parseMarkdownCodeBlock } from '@codebuff/common/util/file'

plans/agent-runtime-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Most likely, there will be import errors:
1313
Run `bun test $(find . -name '*.test.ts')` twice: in `backend/` and `packages/agent-runtime/`
1414
If they do not pass, do NOT fix the tests (unless it is an import error, which should have been fixed in the step before. You can fix the imports, but do not change the test logic). Ask the user what to do and disregard the rest of this file.
1515

16-
If the tests pass, git add the changed files, then commit the changes. No need to use any subagent to commit, you have all the context you need.
16+
If the tests pass, git add the changed files (including the deleted files), then commit the changes. No need to use any subagent to commit, you have all the context you need.
1717

1818
Always listen to the user's feedback and make changes accordingly.

0 commit comments

Comments
 (0)