@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 CHANGED
@@ -39,7 +39,7 @@ OpenCode automatically installs the plugin on next launch.
39
39
 
40
40
  ```json
41
41
  {
42
- "plugin": ["@howaboua/opencode-chat@0.1.3"]
42
+ "plugin": ["@howaboua/opencode-chat@0.1.4"]
43
43
  }
44
44
  ```
45
45
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tools/index.ts"],"names":[],"mappings":"AAgBA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;gCAW/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC;;EA6B9E"}
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"}
@@ -4,7 +4,8 @@
4
4
  */
5
5
  import { createChatBash } from "./bash";
6
6
  import { createChatRead } from "./read";
7
- import { createChatPatch } from "./patch";
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 patch = createChatPatch(baseDir);
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
- [patch.id]: (p) => patch.run(p),
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
- [patch.id]: patch.tool,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/opencode-chat",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Chatifier plugin for OpenCode - Adds chat-optimized tools and semantic search",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",