dsh-auto-collapse 0.1.3
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.en.md +80 -0
- package/README.md +80 -0
- package/cordis.patch.yml +4 -0
- package/lib/client.js +1440 -0
- package/lib/index.js +8 -0
- package/lib/types/client/index.d.ts +15 -0
- package/lib/types/index.d.ts +10 -0
- package/package.json +54 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-auto-collapse — browser half 类型声明。
|
|
3
|
+
*
|
|
4
|
+
* 折叠会话里的工具卡片与 Think 推理块;把官方 "Deep diving..." 运行状态行
|
|
5
|
+
* 替换为 "Deep sleeping..."(特效不变)。
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/** 客户端根上下文的最小结构化类型(仅用 cordis 标准 effect)。 */
|
|
9
|
+
export interface FoldClientCtx {
|
|
10
|
+
effect(fn: () => unknown, label?: string): unknown
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const name: string
|
|
14
|
+
export const inject: string[]
|
|
15
|
+
export function apply(ctx: FoldClientCtx): void
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-auto-collapse — host half 类型声明。
|
|
3
|
+
*
|
|
4
|
+
* 纯 UI 插件:host 侧没有行为,空的 apply 让插件出现在宿主插件树;
|
|
5
|
+
* 浏览器端 bundle 通过 package.json 的 dsh.client 声明 + exports["./client"]
|
|
6
|
+
* 被 dsh web 的 client-modules 服务发现并注入页面。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** Host 插件体 —— 无 host 侧行为。 */
|
|
10
|
+
export function apply(): void
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-auto-collapse",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "DeepSeek Harness Web 客户端插件:把会话里的工具卡片与 Think 推理块折叠成一行,折叠态实时显示当前正在进行的工作(工具名 + 正在执行的命令/参数、或思考内容),运行中带流光动画;点击展开/收起。让界面只保留模型说的话。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./lib/types/client/index.d.ts",
|
|
15
|
+
"default": "./lib/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"dsh": {
|
|
20
|
+
"bundle": {
|
|
21
|
+
"patch": "./cordis.patch.yml"
|
|
22
|
+
},
|
|
23
|
+
"client": {
|
|
24
|
+
"inject": [],
|
|
25
|
+
"platform": "web"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "node build.mjs",
|
|
30
|
+
"deploy": "node deploy.mjs",
|
|
31
|
+
"test": "node test/run-all.mjs",
|
|
32
|
+
"typecheck": "tsc --noEmit --pretty false",
|
|
33
|
+
"check": "npm run typecheck && npm test",
|
|
34
|
+
"prepack": "node build.mjs"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"lib",
|
|
38
|
+
"cordis.patch.yml"
|
|
39
|
+
],
|
|
40
|
+
"keywords": [
|
|
41
|
+
"dsh",
|
|
42
|
+
"deepseek-harness",
|
|
43
|
+
"client-plugin",
|
|
44
|
+
"ui",
|
|
45
|
+
"collapse",
|
|
46
|
+
"auto-collapse",
|
|
47
|
+
"chat"
|
|
48
|
+
],
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"esbuild": "0.25.0",
|
|
52
|
+
"typescript": "5.9.3"
|
|
53
|
+
}
|
|
54
|
+
}
|