lume-dsh-plugin 0.4.1 → 0.4.5

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 (39) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +284 -238
  3. package/assets/personalities/butler-corpus.jsonl +0 -0
  4. package/assets/personalities/butler.txt +0 -0
  5. package/assets/personalities/loli-corpus.jsonl +30 -30
  6. package/assets/personalities/loli.txt +12 -12
  7. package/assets/personalities/none-corpus.jsonl +0 -0
  8. package/assets/personalities/none.txt +0 -0
  9. package/assets/personalities/senpai-corpus.jsonl +30 -30
  10. package/assets/personalities/senpai.txt +12 -12
  11. package/assets/personalities/tsundere-corpus.jsonl +0 -0
  12. package/assets/personalities/tsundere.txt +0 -0
  13. package/assets/personalities.json +47 -47
  14. package/cordis.patch.yml +5 -5
  15. package/lib/client.js +0 -0
  16. package/lib/core/card.js +0 -0
  17. package/lib/core/dialogue-mining.js +0 -0
  18. package/lib/core/leak-detector.js +0 -0
  19. package/lib/core/manifest.js +0 -0
  20. package/lib/core/persona-text.js +0 -0
  21. package/lib/core/retrieval.js +0 -0
  22. package/lib/core/sampling.js +0 -0
  23. package/lib/core/text.js +0 -0
  24. package/lib/host/boundary.js +0 -0
  25. package/lib/host/compaction.js +219 -0
  26. package/lib/host/distill.js +12 -12
  27. package/lib/host/extraction.js +0 -0
  28. package/lib/host/identity.js +32 -4
  29. package/lib/host/injection.js +0 -0
  30. package/lib/host/personalities.js +0 -0
  31. package/lib/host/protocol.js +81 -0
  32. package/lib/host/reflection.js +1 -1
  33. package/lib/host/registry.js +0 -0
  34. package/lib/host/rpc.js +2 -2
  35. package/lib/host/session-runtime.js +9 -0
  36. package/lib/host/store.js +0 -0
  37. package/lib/host/thinking.js +71 -0
  38. package/lib/index.js +71 -50
  39. package/package.json +120 -99
package/package.json CHANGED
@@ -1,99 +1,120 @@
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
- }
1
+ {
2
+ "name": "lume-dsh-plugin",
3
+ "description": "微光 (Lume) — DSH Desktop 增强插件:Codex 风格自适应任务执行协议 + 人设系统(聊天记录蒸馏具名角色、长期记忆、风格纠偏自动捕获)",
4
+ "version": "0.4.5",
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-ui-primitives": "*",
55
+ "@deepseek-ai/dsh-llm": "*",
56
+ "@deepseek-ai/dsh-storage-domain": "*",
57
+ "@deepseek-ai/dsh-tools": "*",
58
+ "@deepseek-ai/dsh-compaction": "*",
59
+ "@deepseek-ai/dsh-compaction-basic": "*",
60
+ "@deepseek-ai/schemastery": "^3.18.1"
61
+ },
62
+ "scripts": {
63
+ "build": "tsc -p tsconfig.build.json && tsdown",
64
+ "bundle": "tsdown",
65
+ "watch": "tsdown --watch",
66
+ "test": "vitest run"
67
+ },
68
+ "devDependencies": {
69
+ "@deepseek-ai/cordis": "^4.0.1",
70
+ "@deepseek-ai/dsh-agent-default-model": "^0.1.0-rc.6",
71
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
72
+ "@deepseek-ai/dsh-llm": "^0.0.1-rc.1",
73
+ "@deepseek-ai/dsh-scope": "^0.0.1-rc.1",
74
+ "@deepseek-ai/dsh-session": "^0.0.1-rc.1",
75
+ "@deepseek-ai/dsh-storage": "^0.0.1-rc.1",
76
+ "@deepseek-ai/dsh-storage-domain": "^0.0.1-rc.1",
77
+ "@deepseek-ai/dsh-storage-json": "^0.0.1-rc.1",
78
+ "@deepseek-ai/dsh-timeout": "^0.0.1-rc.1",
79
+ "@deepseek-ai/dsh-tools": "^0.0.1-rc.1",
80
+ "@deepseek-ai/schemastery": "^3.18.1",
81
+ "@types/node": "^22.20.1",
82
+ "@types/react": "~18.3.1",
83
+ "tsdown": "^0.22.14",
84
+ "typescript": "^5.9.3",
85
+ "vitest": "^3.2.7"
86
+ },
87
+ "files": [
88
+ "lib",
89
+ "cordis.patch.yml",
90
+ "assets/personalities.json",
91
+ "assets/personalities/*.txt",
92
+ "assets/personalities/*.jsonl"
93
+ ],
94
+ "peerDependenciesMeta": {
95
+ "@deepseek-ai/cordis": {
96
+ "optional": true
97
+ },
98
+ "@deepseek-ai/dsh-client-ui-primitives": {
99
+ "optional": true
100
+ },
101
+ "@deepseek-ai/dsh-llm": {
102
+ "optional": true
103
+ },
104
+ "@deepseek-ai/dsh-storage-domain": {
105
+ "optional": true
106
+ },
107
+ "@deepseek-ai/dsh-tools": {
108
+ "optional": true
109
+ },
110
+ "@deepseek-ai/dsh-compaction": {
111
+ "optional": true
112
+ },
113
+ "@deepseek-ai/dsh-compaction-basic": {
114
+ "optional": true
115
+ },
116
+ "@deepseek-ai/schemastery": {
117
+ "optional": true
118
+ }
119
+ }
120
+ }