@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 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, remembering context |
16
- | **Tool Chat** | Full coding toolkit with semantic search and editing |
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.0"]
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) {
@@ -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 "docs/**/*.md"
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: {
@@ -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
- @@ function hello() {
52
- - return "old"
53
- + return "new"
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
- @@ const config = {
60
- - debug: true,
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
- @@ import React from "react"
67
- import React from "react"
68
- +import { useState } from "react"
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 repo files using local embeddings.
39
+ description: `Semantic search over project files using local embeddings.
40
40
 
41
41
  Usage:
42
- - Best for natural language queries ("where is auth handled")
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/opencode-chat",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Chatifier plugin for OpenCode - Adds chat-optimized tools and semantic search",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",