Skip to content

Commit 5abac3b

Browse files
committed
update plan
1 parent db9a299 commit 5abac3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plans/agent-runtime-migration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
First, read the file (provided by the user). Make sure it is a pure logic file. It should only import from @codebuff/common and @codebuff/agent-runtime (which are pure logic libraries). For example, it should not use `fetch` or `fs`. If it does, you should ask the user what to do and end turn and disregard the rest of this file.
2+
13
Move the file (provided by the user) from `backend/src/some/path.ts` to `packages/agent-runtime/src/some/path.ts`
24
If there is a test file, it will most likely be at `backend/src/some/__tests__/path.test.ts` If that file exists, move it to `packages/agent-runtime/src/some/__tests__/path.test.ts` If it does not exist, the test may or may not exist, do not worry for now.
35

@@ -6,12 +8,12 @@ Most likely, there will be import errors:
68
- Repeatedly run `bun run typecheck` in the project root and fix the typecheck errors.
79
- Any reference from `backend/` to `packages/agent-runtime/` should be imported as `@codebuff/agent-runtime/some/path`
810
- Any reference from `packages/agent-runtime/` to another file in `agent-runtime` should be imported relatively (e.g. `../some/path`)
9-
- The file moved to `packages/agent-runtime` should never reference a file in `backend/`. If it does, this was an error and you should ask the user what to do and disregard the rest of this file.
11+
- The file moved to `packages/agent-runtime` should never reference a file in `backend/`. If it does, this was an error and you should ask the user what to do and end turn and disregard the rest of this file.
1012
- Also, search for the regex in `packages/agent-runtime/`: `@codebuff/agent-runtime`. You should find nothing in any _code_ files. If you find something, replace it with the relative path.
1113
- It does appear in `package.json`, but ignore that file.
1214

1315
Run `bun test $(find . -name '*.test.ts')` twice: in `backend/` and `packages/agent-runtime/`
14-
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.
16+
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 end turn and disregard the rest of this file.
1517

1618
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.
1719

0 commit comments

Comments
 (0)