dsh-dock 0.25.0 → 0.26.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/README.md +13 -5
- package/client.js +1576 -130
- package/features/dshtools/host.js +2 -1
- package/features/git/host.js +551 -16
- package/features/git/rpc.js +13 -1
- package/features/git/view.jsx +1782 -54
- package/package.json +1 -1
- package/src/client.jsx +5 -3
- package/src/host-core.js +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "DeepSeek Harness 功能坞插件(dsh-dock):模块化功能中枢——每个功能一个 features/ 模块(可单独提取成包发布,又可经 dockBridge 装回面板)。含用量记录(LLM 调用记账/费用统计,支持各模型自定义单价、多段分时价与周末/节假日谷价)、模型能力、图片理解代理、模型余额、任务动画(19 种运行动画 + 桌面伙伴 3D 场景)、任务通知(完成/异常/需确认通知、提示音、语音播报可选音色、系统通知、钉钉/飞书推送)、运行状态(进行中任务与最近完成一览)、语音朗读(浏览器 TTS 读回复:回合下方喇叭按钮 + 自动朗读)、DSH功能(给 DSH 自带界面补能力:文件右键大文件流式下载、右侧抽屉 Git 仓库操作面板)、Git 管理(提交历史表格与逐行差异、子仓库多选、时间段与提交人筛选、暂存/提交/推送);侧栏入口 + 可拖拽弹窗(最大化/最小化/缩放)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/src/client.jsx
CHANGED
|
@@ -33,7 +33,7 @@ import { feature as fDshTools, installClient as installDshTools } from "../featu
|
|
|
33
33
|
import { installClient as installGit, css as GIT_CSS, DirBrowser as GitDirBrowser, GitView as GitPanelView } from "../features/git/view.jsx";
|
|
34
34
|
|
|
35
35
|
const name = "dsh-dock";
|
|
36
|
-
const DOCK_VERSION = "0.
|
|
36
|
+
const DOCK_VERSION = "0.26.0";
|
|
37
37
|
|
|
38
38
|
// ---- 内置功能注册表:新功能 = features/<id>/ 加模块 + 这里 import 一行 ----
|
|
39
39
|
const BUILTIN_FEATURES = [fTokenlog, fModelconfig, fProviderConfig, fMcpConfig, fBalance, fAnimation, fNotify, fRunState, fTts, fGames, fMobileRelay, fDshTools];
|
|
@@ -311,7 +311,7 @@ function scheduleInitialCss() {
|
|
|
311
311
|
if (typeof document === "undefined" || initialCssSchedule || (dockCssTag && dockCssTag.isConnected && dockCssTag.dataset.plugin === "dsh-dock")) return;
|
|
312
312
|
const run = () => {
|
|
313
313
|
initialCssSchedule = null;
|
|
314
|
-
|
|
314
|
+
ensureCss();
|
|
315
315
|
};
|
|
316
316
|
if (typeof window !== "undefined" && typeof window.requestIdleCallback === "function") {
|
|
317
317
|
initialCssSchedule = { type: "idle", id: window.requestIdleCallback(run, { timeout: 350 }) };
|
|
@@ -798,12 +798,14 @@ export const inject = ["timer"];
|
|
|
798
798
|
export { dockBridge };
|
|
799
799
|
// 测试探针:目录浏览器单独导出,便于用例直接渲染校验(不参与运行逻辑)
|
|
800
800
|
export { GitDirBrowser as DirBrowser };
|
|
801
|
+
// 测试探针:Git 面板开关(验证「没勾选就不注册入口」)
|
|
802
|
+
export { gitPanelEnabled } from "../features/git/view.jsx";
|
|
801
803
|
export { GitPanelView as GitView };
|
|
802
804
|
// 测试探针:会话目录读取函数(验证按 sessionId 取值,而非全局当前会话)
|
|
803
805
|
export { currentSessionDir as readSessionDir } from "../features/git/rpc.js";
|
|
804
806
|
// 测试探针:时间格式化(验证列表里的绝对时间精确到秒)
|
|
805
807
|
export { fmtDateTime } from "../features/git/rpc.js";
|
|
806
808
|
// 测试探针:提交表格的列定义与列宽计算(验证「列可勾选」)
|
|
807
|
-
export { COMMIT_COLUMNS, DEFAULT_VISIBLE_COLUMNS, columnsTemplate, toggleRepoSelection } from "../features/git/view.jsx";
|
|
809
|
+
export { COMMIT_COLUMNS, DEFAULT_VISIBLE_COLUMNS, columnsTemplate, toggleRepoSelection, pairHunkLines, readModalSize, writeModalSize, clampModalSize, readModalPos, writeModalPos, clampModalPos, snapToPanel, dockToPanel, readModalDock, writeModalDock, changedLinesOf } from "../features/git/view.jsx";
|
|
808
810
|
// 测试探针:拖动分隔条(验证上下拖动确实改变高度比例)
|
|
809
811
|
export { DragSplitter as GitDragSplitter, clampPercent, splitterStep, dragToPercent } from "../features/git/view.jsx";
|
package/src/host-core.js
CHANGED
|
@@ -193,6 +193,19 @@ export const DockConfig = z.object({
|
|
|
193
193
|
/** 大文件下载(流式):文件超过 32 MiB 时右键多出「下载(大文件)」。 */
|
|
194
194
|
streamingDownload: z.boolean().default(true),
|
|
195
195
|
}).default({}),
|
|
196
|
+
/**
|
|
197
|
+
* 界面增强:给 DSH 自带界面补的入口。
|
|
198
|
+
*
|
|
199
|
+
* 这里必须与 features/dshtools/host.js 的 DSH_TOOL_GROUPS 逐项对齐——
|
|
200
|
+
* 写入时是整段回写(next 会带上所有分组),schema 里没声明的分组会让
|
|
201
|
+
* settings.describe 算不出该条目的表单,取消勾选时报
|
|
202
|
+
* 「Plugin entry "dsh-dock" is no longer configurable」。
|
|
203
|
+
*/
|
|
204
|
+
interface: z.object({
|
|
205
|
+
/** Git 仓库操作:右侧抽屉页签 + 工作区文件右键「查看 Git 历史」。 */
|
|
206
|
+
// 默认开启:装好即可用;不想要的人在功能坞里取消勾选。
|
|
207
|
+
gitPanel: z.boolean().default(true),
|
|
208
|
+
}).default({}),
|
|
196
209
|
}).default({}).volatile(),
|
|
197
210
|
})
|
|
198
211
|
|