lume-dsh-plugin 0.4.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/LICENSE +21 -0
- package/README.md +238 -0
- package/assets/personalities/butler-corpus.jsonl +30 -0
- package/assets/personalities/butler.txt +12 -0
- package/assets/personalities/loli-corpus.jsonl +30 -0
- package/assets/personalities/loli.txt +12 -0
- package/assets/personalities/none-corpus.jsonl +0 -0
- package/assets/personalities/none.txt +0 -0
- package/assets/personalities/senpai-corpus.jsonl +30 -0
- package/assets/personalities/senpai.txt +12 -0
- package/assets/personalities/tsundere-corpus.jsonl +30 -0
- package/assets/personalities/tsundere.txt +12 -0
- package/assets/personalities.json +47 -0
- package/cordis.patch.yml +5 -0
- package/lib/client.js +2395 -0
- package/lib/core/card.js +101 -0
- package/lib/core/dialogue-mining.js +409 -0
- package/lib/core/leak-detector.js +41 -0
- package/lib/core/manifest.js +60 -0
- package/lib/core/persona-text.js +30 -0
- package/lib/core/retrieval.js +100 -0
- package/lib/core/sampling.js +46 -0
- package/lib/core/text.js +17 -0
- package/lib/host/boundary.js +32 -0
- package/lib/host/distill.js +520 -0
- package/lib/host/extraction.js +150 -0
- package/lib/host/identity.js +217 -0
- package/lib/host/injection.js +100 -0
- package/lib/host/personalities.js +49 -0
- package/lib/host/reflection.js +150 -0
- package/lib/host/registry.js +62 -0
- package/lib/host/rpc.js +284 -0
- package/lib/host/session-runtime.js +48 -0
- package/lib/host/store.js +123 -0
- package/lib/index.js +737 -0
- package/package.json +99 -0
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lume-dsh-plugin",
|
|
3
|
+
"description": "微光 (Lume) — DSH Desktop 增强插件:Codex 风格自适应任务执行协议 + 人设系统(聊天记录蒸馏具名角色、长期记忆、风格纠偏自动捕获)",
|
|
4
|
+
"version": "0.4.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./client": {
|
|
12
|
+
"default": "./lib/client.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"dsh": {
|
|
17
|
+
"bundle": {
|
|
18
|
+
"patch": "./cordis.patch.yml"
|
|
19
|
+
},
|
|
20
|
+
"client": {
|
|
21
|
+
"inject": [
|
|
22
|
+
"@deepseek-ai/dsh-client-connection",
|
|
23
|
+
"@deepseek-ai/dsh-client-locale",
|
|
24
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
25
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
26
|
+
"@deepseek-ai/dsh-client-ui-primitives"
|
|
27
|
+
],
|
|
28
|
+
"external": [
|
|
29
|
+
"react",
|
|
30
|
+
"react/jsx-runtime",
|
|
31
|
+
"@deepseek-ai/dsh-client-ui-primitives"
|
|
32
|
+
],
|
|
33
|
+
"platform": "web",
|
|
34
|
+
"immediately": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/cayan0x/Lume.git"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"dsh-plugin",
|
|
44
|
+
"persona",
|
|
45
|
+
"personality",
|
|
46
|
+
"identity",
|
|
47
|
+
"memory"
|
|
48
|
+
],
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=20"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
54
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-storage-domain": "^0.0.1-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-tools": "^0.0.1-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.1-rc.2",
|
|
65
|
+
"@deepseek-ai/schemastery": "^3.18.1"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsc -p tsconfig.build.json && tsdown",
|
|
69
|
+
"bundle": "tsdown",
|
|
70
|
+
"watch": "tsdown --watch",
|
|
71
|
+
"test": "vitest run"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
75
|
+
"@deepseek-ai/dsh-agent-default-model": "^0.1.0-rc.6",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
|
|
77
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-scope": "^0.0.1-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-session": "^0.0.1-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-storage": "^0.0.1-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-storage-domain": "^0.0.1-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-storage-json": "^0.0.1-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-tools": "^0.0.1-rc.1",
|
|
85
|
+
"@deepseek-ai/schemastery": "^3.18.1",
|
|
86
|
+
"@types/node": "^22.20.1",
|
|
87
|
+
"@types/react": "~18.3.1",
|
|
88
|
+
"tsdown": "^0.22.14",
|
|
89
|
+
"typescript": "^5.9.3",
|
|
90
|
+
"vitest": "^3.2.7"
|
|
91
|
+
},
|
|
92
|
+
"files": [
|
|
93
|
+
"lib",
|
|
94
|
+
"cordis.patch.yml",
|
|
95
|
+
"assets/personalities.json",
|
|
96
|
+
"assets/personalities/*.txt",
|
|
97
|
+
"assets/personalities/*.jsonl"
|
|
98
|
+
]
|
|
99
|
+
}
|