@howaboua/opencode-chat 0.1.1 → 0.1.2
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 +5 -5
- package/dist/config.js +1 -1
- package/dist/tools/glob.js +1 -1
- package/dist/tools/patch.js +8 -8
- package/dist/tools/semantic-search.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@ A conversational coding assistant plugin for OpenCode with semantic code search.
|
|
|
10
10
|
|
|
11
11
|
### Chat Agents
|
|
12
12
|
|
|
13
|
-
| Agent | Purpose
|
|
14
|
-
| ------------- |
|
|
15
|
-
| **Just Chat** | Quick questions, web research,
|
|
16
|
-
| **Tool Chat** | Full
|
|
13
|
+
| Agent | Purpose |
|
|
14
|
+
| ------------- | ------------------------------------------------------ |
|
|
15
|
+
| **Just Chat** | Quick questions, web research, semantic search, memory |
|
|
16
|
+
| **Tool Chat** | Full toolkit with files, semantic search, and memory |
|
|
17
17
|
|
|
18
18
|
### Features
|
|
19
19
|
|
|
@@ -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.
|
|
42
|
+
"plugin": ["@howaboua/opencode-chat@0.1.2"]
|
|
43
43
|
}
|
|
44
44
|
```
|
|
45
45
|
|
package/dist/config.js
CHANGED
|
@@ -31,7 +31,7 @@ const NATIVE_TOOLS = [
|
|
|
31
31
|
// Tools for Just Chat: web research and conversation
|
|
32
32
|
// Uses native tools directly (no chat_* wrappers needed)
|
|
33
33
|
const JUST_CHAT_NATIVE = ["webfetch", "websearch"];
|
|
34
|
-
const JUST_CHAT_TOOLS = ["chat_remember", "chat_todowrite", "chat_todoread"];
|
|
34
|
+
const JUST_CHAT_TOOLS = ["chat_remember", "chat_todowrite", "chat_todoread", "chat_semantic_search"];
|
|
35
35
|
// Native tools to enable for Tool Chat (in addition to chat_* tools)
|
|
36
36
|
const TOOL_CHAT_NATIVE = ["websearch", "webfetch"];
|
|
37
37
|
export function configureChatAgents(config, toolIds) {
|
package/dist/tools/glob.js
CHANGED
|
@@ -39,7 +39,7 @@ export function createChatGlob(baseDir) {
|
|
|
39
39
|
description: `Find files by pattern.
|
|
40
40
|
|
|
41
41
|
Usage:
|
|
42
|
-
- Supports glob patterns like "**/*.txt" or "
|
|
42
|
+
- Supports glob patterns like "**/*.txt" or "notes/**/*.md"
|
|
43
43
|
- Returns files sorted by modification time
|
|
44
44
|
- Results truncated at 100 files`,
|
|
45
45
|
args: {
|
package/dist/tools/patch.js
CHANGED
|
@@ -48,24 +48,24 @@ CREATE A NEW FILE:
|
|
|
48
48
|
REPLACE A LINE (must include both - and +):
|
|
49
49
|
*** Begin Patch
|
|
50
50
|
*** Update File: path/to/file.txt
|
|
51
|
-
@@
|
|
52
|
-
-
|
|
53
|
-
+
|
|
51
|
+
@@ any header or section line
|
|
52
|
+
- old text
|
|
53
|
+
+ new text
|
|
54
54
|
*** End Patch
|
|
55
55
|
|
|
56
56
|
DELETE A LINE (use - with no +):
|
|
57
57
|
*** Begin Patch
|
|
58
58
|
*** Update File: path/to/file.txt
|
|
59
|
-
@@
|
|
60
|
-
-
|
|
59
|
+
@@ any header or section line
|
|
60
|
+
- remove this line
|
|
61
61
|
*** End Patch
|
|
62
62
|
|
|
63
63
|
INSERT A NEW LINE (use space prefix for context, then +):
|
|
64
64
|
*** Begin Patch
|
|
65
65
|
*** Update File: path/to/file.txt
|
|
66
|
-
@@
|
|
67
|
-
|
|
68
|
-
+
|
|
66
|
+
@@ any header or section line
|
|
67
|
+
kept line
|
|
68
|
+
+new line
|
|
69
69
|
*** End Patch
|
|
70
70
|
|
|
71
71
|
DELETE A FILE:
|
|
@@ -36,10 +36,10 @@ export function createChatSemanticSearch(worktree) {
|
|
|
36
36
|
id: "chat_semantic_search",
|
|
37
37
|
run,
|
|
38
38
|
tool: tool({
|
|
39
|
-
description: `Semantic search over
|
|
39
|
+
description: `Semantic search over project files using local embeddings.
|
|
40
40
|
|
|
41
41
|
Usage:
|
|
42
|
-
- Best for natural language queries ("where is
|
|
42
|
+
- Best for natural language queries ("where is that explained")
|
|
43
43
|
- Returns file + line ranges + snippet
|
|
44
44
|
- Indexing is incremental based on file mtime`,
|
|
45
45
|
args: {
|