@howaboua/opencode-chat 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +8 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tools/index.ts"],"names":[],"mappings":"AAiBA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;gCAY/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC;;EA+B9E"}
|
package/dist/tools/index.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { createChatBash } from "./bash";
|
|
6
6
|
import { createChatRead } from "./read";
|
|
7
|
-
import {
|
|
7
|
+
import { createChatEdit } from "./edit";
|
|
8
|
+
import { createChatWrite } from "./write";
|
|
8
9
|
import { createChatGlob } from "./glob";
|
|
9
10
|
import { createChatGrep } from "./grep";
|
|
10
11
|
import { createChatTodo } from "./todo";
|
|
@@ -14,7 +15,8 @@ import { createChatRemember } from "./remember";
|
|
|
14
15
|
import { createChatSemanticSearch } from "./semantic-search";
|
|
15
16
|
export function createChatTools(baseDir, repoRoot, todoPath) {
|
|
16
17
|
const read = createChatRead(baseDir);
|
|
17
|
-
const
|
|
18
|
+
const edit = createChatEdit(baseDir, repoRoot);
|
|
19
|
+
const write = createChatWrite(baseDir, repoRoot);
|
|
18
20
|
const glob = createChatGlob(baseDir);
|
|
19
21
|
const grep = createChatGrep(baseDir);
|
|
20
22
|
const bash = createChatBash(baseDir);
|
|
@@ -24,7 +26,8 @@ export function createChatTools(baseDir, repoRoot, todoPath) {
|
|
|
24
26
|
const semantic = createChatSemanticSearch(repoRoot);
|
|
25
27
|
const runners = {
|
|
26
28
|
[read.id]: (p) => read.run(p),
|
|
27
|
-
[
|
|
29
|
+
[edit.id]: (p) => edit.run(p),
|
|
30
|
+
[write.id]: (p) => write.run(p),
|
|
28
31
|
[glob.id]: (p) => glob.run(p),
|
|
29
32
|
[grep.id]: (p) => grep.run(p),
|
|
30
33
|
[bash.id]: (p) => bash.run(p),
|
|
@@ -36,7 +39,8 @@ export function createChatTools(baseDir, repoRoot, todoPath) {
|
|
|
36
39
|
const batch = createChatBatch(runners, todo.read.run);
|
|
37
40
|
const tools = {
|
|
38
41
|
[read.id]: read.tool,
|
|
39
|
-
[
|
|
42
|
+
[edit.id]: edit.tool,
|
|
43
|
+
[write.id]: write.tool,
|
|
40
44
|
[glob.id]: glob.tool,
|
|
41
45
|
[grep.id]: grep.tool,
|
|
42
46
|
[bash.id]: bash.tool,
|