@huanlin/dsh-plugin-input-history 0.1.0
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 +9 -0
- package/README.md +115 -0
- package/cordis.patch.yml +14 -0
- package/lib/client.js +467 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +12 -0
- package/lib/invariant.js +24 -0
- package/lib/types/client/HistoryDock.d.ts +31 -0
- package/lib/types/client/HistoryDock.js +83 -0
- package/lib/types/client/dom.d.ts +57 -0
- package/lib/types/client/dom.js +99 -0
- package/lib/types/client/history.d.ts +105 -0
- package/lib/types/client/history.js +203 -0
- package/lib/types/client/ime.d.ts +23 -0
- package/lib/types/client/ime.js +22 -0
- package/lib/types/client/index.d.ts +42 -0
- package/lib/types/client/index.js +147 -0
- package/lib/types/client/locales.d.ts +17 -0
- package/lib/types/client/locales.js +23 -0
- package/lib/types/index.d.ts +25 -0
- package/lib/types/index.js +26 -0
- package/lib/types/invariant.d.ts +16 -0
- package/lib/types/invariant.js +26 -0
- package/package.json +105 -0
package/package.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@huanlin/dsh-plugin-input-history",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"keywords": [
|
|
8
|
+
"dsh-plugin"
|
|
9
|
+
],
|
|
10
|
+
"description": "在 DSH prompt 输入框按上/下方向键切换最近发送过的消息(终端式历史导航),跨会话持久化。 | Terminal-style prompt history navigation for the DSH composer: ArrowUp/ArrowDown cycles through recently sent messages, persisted across sessions.",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"license": "AGPL-3.0",
|
|
13
|
+
"main": "./lib/index.js",
|
|
14
|
+
"types": "./lib/types/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./lib/types/index.d.ts",
|
|
18
|
+
"import": "./lib/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./invariant": {
|
|
21
|
+
"types": "./lib/types/invariant.d.ts",
|
|
22
|
+
"import": "./lib/invariant.js"
|
|
23
|
+
},
|
|
24
|
+
"./client": {
|
|
25
|
+
"types": "./lib/types/client/index.d.ts",
|
|
26
|
+
"default": "./lib/client.js"
|
|
27
|
+
},
|
|
28
|
+
"./src/*": "./src/*",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"lib/",
|
|
33
|
+
"cordis.patch.yml"
|
|
34
|
+
],
|
|
35
|
+
"dsh": {
|
|
36
|
+
"bundle": {
|
|
37
|
+
"patch": "./cordis.patch.yml"
|
|
38
|
+
},
|
|
39
|
+
"client": {
|
|
40
|
+
"inject": [
|
|
41
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
42
|
+
"@deepseek-ai/dsh-client-locale",
|
|
43
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
44
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
45
|
+
],
|
|
46
|
+
"platform": "web"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.1",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.1",
|
|
55
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1",
|
|
56
|
+
"react": "^18.2.0",
|
|
57
|
+
"react-dom": "^18.2.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"@deepseek-ai/dsh-client-locale": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"@deepseek-ai/dsh-client-runtime": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-conversation": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"@deepseek-ai/dsh-invariants": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"@deepseek-ai/cordis": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"react": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"react-dom": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@types/node": "^22.20.1",
|
|
87
|
+
"@types/react": "~18.3.31",
|
|
88
|
+
"@types/react-dom": "~18.3.0",
|
|
89
|
+
"jsdom": "^25.0.1",
|
|
90
|
+
"react": "^18.2.0",
|
|
91
|
+
"react-dom": "^18.2.0",
|
|
92
|
+
"tsdown": "^0.15.0",
|
|
93
|
+
"typescript": "^5.9.2",
|
|
94
|
+
"vitest": "^3.2.7"
|
|
95
|
+
},
|
|
96
|
+
"engines": {
|
|
97
|
+
"node": ">=22.0.0"
|
|
98
|
+
},
|
|
99
|
+
"scripts": {
|
|
100
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
101
|
+
"test": "vitest run",
|
|
102
|
+
"build": "tsdown -c tsdown.config.ts && tsc -p tsconfig.json",
|
|
103
|
+
"bundle:client": "tsdown -c tsdown.config.ts"
|
|
104
|
+
}
|
|
105
|
+
}
|