dsh-worldbook 0.1.0 → 0.1.1

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
@@ -14,13 +14,13 @@
14
14
  ### Desktop(`tauri` profile)
15
15
 
16
16
  ```bash
17
- "C:/Users/jayma/AppData/Local/deepseek-harness/bin/dsh.cmd" plugin --profile tauri add dsh-worldbook@0.1.0
17
+ "C:/Users/jayma/AppData/Local/deepseek-harness/bin/dsh.cmd" plugin --profile tauri add dsh-worldbook@0.1.1
18
18
  ```
19
19
 
20
20
  本地 tgz:
21
21
 
22
22
  ```bash
23
- "C:/Users/jayma/AppData/Local/deepseek-harness/bin/dsh.cmd" plugin --profile tauri add ./dsh-worldbook-0.1.0.tgz
23
+ "C:/Users/jayma/AppData/Local/deepseek-harness/bin/dsh.cmd" plugin --profile tauri add ./dsh-worldbook-0.1.1.tgz
24
24
  ```
25
25
 
26
26
  > Desktop 不要用 `file:` / 目录链接安装:`ensure_internal_plugins` 会把它们当成 orphan 清掉。用 npm、git 或 HTTP tarball。
@@ -28,7 +28,7 @@
28
28
  ### dsh-go(本机引擎,`web` profile)
29
29
 
30
30
  ```bash
31
- dsh plugin --profile web add dsh-worldbook@0.1.0
31
+ dsh plugin --profile web add dsh-worldbook@0.1.1
32
32
  ```
33
33
 
34
34
  远程主机模式:在电脑/服务器上装到对应 profile,手机只是客户端。
@@ -52,6 +52,18 @@ dsh plugin --profile web add "$DSH_HOME/dsh-go/plugins/local-worldbook"
52
52
 
53
53
  > 原生插件是目录链接安装,目录不能删。`package.json` / 清单改动会自动重读;`lib/` 改动需要重启引擎。
54
54
 
55
+ ### 界面语言
56
+
57
+ 插件在 Desktop **Plugins** 页的标题和简介已经内置中文(`locale/zh.json`),会跟随 App 语言显示,并带一个书本图标。
58
+
59
+ 如果整个 DSH App 还是英文:
60
+
61
+ 1. 打开左下角 **Settings**(齿轮图标);
62
+ 2. 进入 **General**;
63
+ 3. 第一行 **Language**,点右侧下拉,选 **中文**。
64
+
65
+ 切换即时生效,不需要重启。插件不配置也能用:默认扫描深度 2、预算 2048 tokens。
66
+
55
67
  ---
56
68
 
57
69
  ## 2. 世界书放在哪
@@ -303,7 +315,7 @@ npm pack --dry-run
303
315
  ```bash
304
316
  export DSH_HOME=/tmp/dsh-wb-test
305
317
  dsh --profile web --dump-config
306
- dsh plugin --profile web add ./dsh-worldbook-0.1.0.tgz
318
+ dsh plugin --profile web add ./dsh-worldbook-0.1.1.tgz
307
319
  dsh --profile web --port 3099
308
320
  ```
309
321
 
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="World Book">
2
+ <rect width="64" height="64" rx="14" fill="#3F4A5A"/>
3
+ <path d="M14 17h13.2c2.1 0 3.9.7 4.8 2 1-1.3 2.8-2 4.8-2H50v31H36.8c-2.2 0-4 .8-4.8 2.1-.8-1.3-2.6-2.1-4.8-2.1H14z" fill="#F7F8FA"/>
4
+ <path d="M32 19v29" stroke="#AEB6C2" stroke-width="2" stroke-linecap="round"/>
5
+ <path d="M20 24h7M20 30h7M20 36h7M37 24h7M37 30h7M37 36h7" stroke="#8C97A7" stroke-width="2" stroke-linecap="round"/>
6
+ <path d="M43 15v10l3-2 3 2V15z" fill="#E8B44A"/>
7
+ </svg>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-worldbook",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "dsh-go native UI companion for dsh-worldbook: an input strip with the active entry count and a panel with books, budget, reload and a session toggle.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11,18 +11,30 @@
11
11
  },
12
12
  "dshGo": {
13
13
  "v": 1,
14
- "title": { "zh": "世界书", "en": "World Book" },
14
+ "title": {
15
+ "zh": "世界书",
16
+ "en": "World Book"
17
+ },
15
18
  "icon": "book",
16
19
  "contributes": {
17
20
  "composer.strip": [
18
- { "id": "lore", "icon": "book", "panel": "worldbook" }
21
+ {
22
+ "id": "lore",
23
+ "icon": "book",
24
+ "panel": "worldbook"
25
+ }
19
26
  ],
20
27
  "panels": [
21
28
  {
22
29
  "id": "worldbook",
23
- "title": { "zh": "世界书", "en": "World Book" },
30
+ "title": {
31
+ "zh": "世界书",
32
+ "en": "World Book"
33
+ },
24
34
  "icon": "book",
25
- "placement": ["session.tab"]
35
+ "placement": [
36
+ "session.tab"
37
+ ]
26
38
  }
27
39
  ]
28
40
  }
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "World Book",
4
+ "description": "SillyTavern-compatible World Info (lorebook): keyword-triggered entries, inclusion groups, recursion, timed effects, a token budget, the /worldbook command and the worldbook_search tool."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "世界书",
4
+ "description": "SillyTavern 兼容的世界书:关键词触发、包含组、递归、sticky/cooldown/delay、token 预算,带 /worldbook 命令与 worldbook_search 工具。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "dsh-worldbook",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "SillyTavern-compatible World Info / lorebook plugin for DeepSeek Harness and dsh-go: keyword-triggered entries, groups, recursion, timed effects, outlets and a token budget.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
+ "icon": "assets/worldbook.svg",
7
8
  "exports": {
8
9
  ".": "./lib/index.js",
9
10
  "./settings": "./lib/settings.js",
11
+ "./locale/*": "./locale/*",
10
12
  "./package.json": "./package.json"
11
13
  },
12
14
  "files": [
13
15
  "lib/",
16
+ "locale/",
17
+ "assets/",
14
18
  "cordis.patch.yml",
15
19
  "dsh-go/",
16
20
  "README.md",