diff options
Diffstat (limited to 'js/example/cli.ts')
| -rw-r--r-- | js/example/cli.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/js/example/cli.ts b/js/example/cli.ts deleted file mode 100644 index 9c9e07edd..000000000 --- a/js/example/cli.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { App } from "../src/app"; -import path from "path"; -import { edit } from "../src/tool"; -import { FileTimes } from "../src/tool/util/file-times"; - -await App.provide({ directory: process.cwd() }, async () => { - const file = path.join(process.cwd(), "example/broken.ts"); - FileTimes.read(file); - const tool = await edit.execute( - { - file_path: file, - old_string: "x:", - new_string: "x:", - }, - { - toolCallId: "test", - messages: [], - }, - ); - console.log(tool.output); -}); |
