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.
- package/CHANGELOG.md +5 -0
- package/client.js +2 -2
- package/package.json +55 -55
package/CHANGELOG.md
CHANGED
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}):((?:(?!\[\[
|
|
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_\-\
|
|
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.
|
|
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
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
+
}
|