@openviking/opencode-plugin 2026.10.12 → 2026.10.13-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/INSTALL-ZH.md CHANGED
@@ -28,9 +28,19 @@ openviking-server --config ~/.openviking/ov.conf
28
28
  curl http://localhost:1933/health
29
29
  ```
30
30
 
31
- ## 安装方式一:发布包安装
31
+ ## 安装方式一:一键安装(推荐)
32
32
 
33
- 普通用户推荐通过 OpenCode 的 package plugin 机制启用:
33
+ OpenCode 与其他记忆插件共用同一个安装器。它会询问要安装的宿主和 OpenViking 凭据:
34
+
35
+ ```bash
36
+ curl -fsSL https://openviking.ai/install | bash
37
+ ```
38
+
39
+ 安装器会把插件作为本地文件插件复制到 `~/.config/opencode/plugins/`,把 `openviking` MCP server 条目写进 `~/.config/opencode/opencode.json`,并配置 `~/.openviking/ovcli.conf`。
40
+
41
+ ## 安装方式二:发布包安装
42
+
43
+ 也可以通过 OpenCode 的 package plugin 机制启用:
34
44
 
35
45
  ```json
36
46
  {
@@ -40,7 +50,7 @@ curl http://localhost:1933/health
40
50
 
41
51
  这份 `plugin` 配置同时兼容 v1 和 v2;v2 会在加载时规范化为原生的 `plugins`,无需手工迁移配置。
42
52
 
43
- ## 安装方式二:源码安装
53
+ ## 安装方式三:源码安装
44
54
 
45
55
  用于开发调试或 PR 测试。OpenCode 推荐插件目录:
46
56
 
package/INSTALL.md CHANGED
@@ -28,9 +28,19 @@ Check the service:
28
28
  curl http://localhost:1933/health
29
29
  ```
30
30
 
31
- ## Installation Method 1: Published Package
31
+ ## Installation Method 1: One-line Installer (Recommended)
32
32
 
33
- Normal users are recommended to enable it through OpenCode's package plugin mechanism:
33
+ OpenCode shares the unified installer with the other memory plugins. It asks which harnesses to install and for your OpenViking credentials:
34
+
35
+ ```bash
36
+ curl -fsSL https://openviking.ai/install | bash
37
+ ```
38
+
39
+ The installer copies the plugin into `~/.config/opencode/plugins/` as a local file plugin, writes the `openviking` MCP server entry into `~/.config/opencode/opencode.json`, and configures `~/.openviking/ovcli.conf`.
40
+
41
+ ## Installation Method 2: Published Package
42
+
43
+ To enable it through OpenCode's package plugin mechanism instead:
34
44
 
35
45
  ```json
36
46
  {
@@ -40,7 +50,7 @@ Normal users are recommended to enable it through OpenCode's package plugin mech
40
50
 
41
51
  This `plugin` entry works on both v1 and v2. OpenCode v2 normalizes it to the native `plugins` form at load time, so no manual config migration is required.
42
52
 
43
- ## Installation Method 2: Source Install
53
+ ## Installation Method 3: Source Install
44
54
 
45
55
  Use this method for development, debugging, or PR testing. OpenCode's recommended plugin directory is:
46
56
 
package/README.md CHANGED
@@ -68,9 +68,19 @@ openviking-server --config ~/.openviking/ov.conf
68
68
 
69
69
  ## Installation
70
70
 
71
+ ### One-line Installer (Recommended)
72
+
73
+ OpenCode shares the unified installer with the other memory plugins. It asks which harnesses to install and for your OpenViking credentials:
74
+
75
+ ```bash
76
+ curl -fsSL https://openviking.ai/install | bash
77
+ ```
78
+
79
+ The installer copies the plugin into `~/.config/opencode/plugins/` as a local file plugin, writes the `openviking` MCP server entry into `~/.config/opencode/opencode.json`, and configures `~/.openviking/ovcli.conf`.
80
+
71
81
  ### Published Package
72
82
 
73
- Normal users should enable it through OpenCode's package plugin mechanism:
83
+ To enable it through OpenCode's package plugin mechanism instead:
74
84
 
75
85
  The published npm package is `@openviking/opencode-plugin`; verify availability with:
76
86
 
@@ -617,7 +617,7 @@ function hasEnoughSignal(text) {
617
617
  }
618
618
 
619
619
  function isPunctuationOnly(text) {
620
- return !/[a-z0-9\u3400-\u9fff]/i.test(text);
620
+ return !/[\p{L}\p{N}\u3400-\u9fff]/u.test(text);
621
621
  }
622
622
 
623
623
  /**
@@ -102,7 +102,7 @@ function parseSseMessages(text) {
102
102
  messages.push(JSON.parse(data));
103
103
  }
104
104
 
105
- for (const rawLine of String(text || "").split(/\r?\n/)) {
105
+ for (const rawLine of String(text || "").split(/\r\n|\r|\n/)) {
106
106
  if (rawLine === "") {
107
107
  flush();
108
108
  continue;
@@ -27,9 +27,15 @@ Write a memory digest for a coding agent about to answer that query. Keep the
27
27
  concrete facts (paths, identifiers, decisions, constraints); drop pleasantries
28
28
  and conversational filler.
29
29
 
30
+ Report only facts found in the fragments; never restate the user query as a
31
+ fact. Do not tell the agent what to do with them: no advice, instructions,
32
+ warnings, or next steps of your own. Report a preference or rule as something
33
+ the user recorded, not as a command to the agent.
34
+
30
35
  Format rules:
31
36
  - Group related facts by topic, one bullet per topic, at most ${maxBullets} bullets.
32
37
  - Start every bullet with "- ".
38
+ - Write in the language of the user query.
33
39
  - End every bullet with its source, copied verbatim from the fragments above:
34
40
  "来源:viking://..." or "source: viking://...". Never edit, shorten, or invent a URI.
35
41
  - Output the digest body only. No preamble, no closing remark.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/opencode-plugin",
3
- "version": "2026.10.12",
3
+ "version": "2026.10.13-2",
4
4
  "author": "@openviking",
5
5
  "description": "Unified OpenCode plugin for OpenViking repository retrieval and long-term memory",
6
6
  "type": "module",
@@ -46,5 +46,5 @@
46
46
  "code-search"
47
47
  ],
48
48
  "license": "Apache-2.0",
49
- "openvikingSourceCommit": "b35c3f2aae5ad3f72891306c1b7dba919f2aff5f"
49
+ "openvikingSourceCommit": "676c4038d95be79b91a22782c1ad1b8359a0a4e1"
50
50
  }