dsh-color-text 2.5.14 → 2.5.15

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/client.js +2 -2
  3. package/package.json +55 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.15 (2026-11-29)
4
+
5
+ - 修复标记内文以单个 `]` 结尾时被吞掉:闭合判断改为最后两个 `]`(`\]\](?!\])`),并把富文本色名范围与普通路径统一
6
+ - 本地开发恢复为 link 安装(npm 2.5.14 仍在线)
7
+
3
8
  ## 2.5.14 (2026-11-29)
4
9
 
5
10
  - 定向回收直接移除的 Text,保留同批移动时的伴生着色。
package/client.js CHANGED
@@ -59,7 +59,7 @@
59
59
  const NAME_RE = /^[a-zA-Z0-9_\-\u3400-\u9fff]{1,16}$/
60
60
  const SESSION_ID_EXTRACT_RE = /\b(session-[A-Za-z0-9_-]{8,80})\b/
61
61
  const RESERVED_KEYS = new Set(['__proto__', 'constructor', 'prototype'])
62
- const MARK = /\[\[(#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z0-9_\-\u3400-\u9fff]{1,16}):((?:(?!\[\[|\]\])[^\n]){1,400}?)\]\]/g
62
+ const MARK = /\[\[(#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z0-9_\-\u3400-\u9fff]{1,16}):((?:(?!\[\[)[^\n]){1,400}?)\]\](?!\])/g
63
63
  const SKIP_SELECTOR = [
64
64
  'pre', 'code', 'script', 'style', 'textarea', 'input', 'kbd', 'samp',
65
65
  'svg', 'math', 'noscript', 'title', 'option',
@@ -974,7 +974,7 @@
974
974
  }
975
975
 
976
976
  // ---- DOM 结构模式(可选):会移动 React 节点,默认关闭 ----
977
- const RICH_MARK = /\[\[([#a-zA-Z0-9_\-\u4e00-\u9fa5]{1,16}):((?:(?!\[\[|\]\])[^\n]){1,400}?)\]\]/g
977
+ const RICH_MARK = /\[\[([#a-zA-Z0-9_\-\u3400-\u9fff]{1,16}):((?:(?!\[\[)[^\n]){1,400}?)\]\](?!\])/g
978
978
 
979
979
  function collectTextNodesDom(block) {
980
980
  const nodes = []
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "dsh-color-text",
3
- "version": "2.5.14",
4
- "private": false,
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "Aaron",
8
- "description": "Inline colored text and per-session semantic highlighting rules for DeepSeek Harness.",
9
- "keywords": [
10
- "dsh",
11
- "deepseek-harness",
12
- "plugin",
13
- "color",
14
- "highlight",
15
- "prompt"
16
- ],
17
- "icon": "icon.png",
18
- "main": "index.js",
19
- "exports": {
20
- ".": "./index.js",
21
- "./client": "./client.js",
22
- "./cordis.patch.yml": "./cordis.patch.yml",
23
- "./locale/*.json": "./locale/*.json",
24
- "./icon": "./icon.png",
25
- "./package.json": "./package.json"
26
- },
27
- "files": [
28
- "index.js",
29
- "client.js",
30
- "cordis.patch.yml",
31
- "locale/*.json",
32
- "docs",
33
- "icon.png",
34
- "icon.svg",
35
- "README.md",
36
- "CHANGELOG.md",
37
- "AUDIT.md",
38
- "LICENSE"
39
- ],
40
- "dsh": {
41
- "bundle": {
42
- "patch": "./cordis.patch.yml"
43
- },
44
- "client": {
45
- "platform": "web",
46
- "immediately": true,
47
- "inject": [
48
- "@deepseek-ai/dsh-client-ui-conversation"
49
- ]
50
- }
51
- },
52
- "scripts": {
53
- "test": "node tests/run-tests.mjs"
54
- }
55
- }
1
+ {
2
+ "name": "dsh-color-text",
3
+ "version": "2.5.15",
4
+ "private": false,
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Aaron",
8
+ "description": "Inline colored text and per-session semantic highlighting rules for DeepSeek Harness.",
9
+ "keywords": [
10
+ "dsh",
11
+ "deepseek-harness",
12
+ "plugin",
13
+ "color",
14
+ "highlight",
15
+ "prompt"
16
+ ],
17
+ "icon": "icon.png",
18
+ "main": "index.js",
19
+ "exports": {
20
+ ".": "./index.js",
21
+ "./client": "./client.js",
22
+ "./cordis.patch.yml": "./cordis.patch.yml",
23
+ "./locale/*.json": "./locale/*.json",
24
+ "./icon": "./icon.png",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "index.js",
29
+ "client.js",
30
+ "cordis.patch.yml",
31
+ "locale/*.json",
32
+ "docs",
33
+ "icon.png",
34
+ "icon.svg",
35
+ "README.md",
36
+ "CHANGELOG.md",
37
+ "AUDIT.md",
38
+ "LICENSE"
39
+ ],
40
+ "scripts": {
41
+ "test": "node tests/run-tests.mjs"
42
+ },
43
+ "dsh": {
44
+ "bundle": {
45
+ "patch": "./cordis.patch.yml"
46
+ },
47
+ "client": {
48
+ "platform": "web",
49
+ "immediately": true,
50
+ "inject": [
51
+ "@deepseek-ai/dsh-client-ui-conversation"
52
+ ]
53
+ }
54
+ }
55
+ }