@copylee/dsh-computer-use 0.14.1 → 0.15.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/helper/Native.cs +9 -2
- package/helper/Overlay.cs +210 -54
- package/helper/Program.cs +1 -0
- package/helper/Uia.cs +40 -7
- package/lib/index.js +245 -52
- package/lib/types/computer.d.ts +27 -6
- package/lib/types/diagnostics.d.ts +10 -0
- package/lib/types/helper-client.d.ts +1 -0
- package/lib/types/overlay.d.ts +3 -0
- package/lib/types/routes.d.ts +5 -1
- package/package.json +1 -1
|
@@ -57,6 +57,11 @@ export interface DiagnosticSnapshot {
|
|
|
57
57
|
hasCustomHarnessUrl: boolean;
|
|
58
58
|
};
|
|
59
59
|
recentCalls: readonly DiagnosticCall[];
|
|
60
|
+
phaseTiming?: {
|
|
61
|
+
samples: number;
|
|
62
|
+
avgSettleMs: number;
|
|
63
|
+
avgShotMs: number;
|
|
64
|
+
};
|
|
60
65
|
}
|
|
61
66
|
export declare class DiagnosticsLog {
|
|
62
67
|
private readonly calls;
|
|
@@ -75,5 +80,10 @@ export declare function buildDiagnosticSnapshot(options: {
|
|
|
75
80
|
helperError?: string;
|
|
76
81
|
nativeAvailable: boolean;
|
|
77
82
|
recentCalls: readonly DiagnosticCall[];
|
|
83
|
+
phaseTiming?: {
|
|
84
|
+
samples: number;
|
|
85
|
+
avgSettleMs: number;
|
|
86
|
+
avgShotMs: number;
|
|
87
|
+
};
|
|
78
88
|
}): DiagnosticSnapshot;
|
|
79
89
|
export declare function formatDiagnosticText(snap: DiagnosticSnapshot): string;
|
|
@@ -24,6 +24,7 @@ export declare class HelperClient implements HelperLike {
|
|
|
24
24
|
private readonly pending;
|
|
25
25
|
private readonly listeners;
|
|
26
26
|
private readonly cardChildren;
|
|
27
|
+
private readonly overlayChildren;
|
|
27
28
|
private nextId;
|
|
28
29
|
private disposed;
|
|
29
30
|
constructor(log?: (message: string) => void);
|
package/lib/types/overlay.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare function cardRect(display: DisplayRow): {
|
|
|
76
76
|
export declare const CONTROL_STOPPED_MESSAGE = "The user stopped computer control and returned to DeepSeek Harness. Do not perform further desktop actions unless the user asks again; summarize your progress and reply in DeepSeek Harness.";
|
|
77
77
|
export interface WaitHandle {
|
|
78
78
|
readonly signal: AbortSignal;
|
|
79
|
+
readonly ready: Promise<void>;
|
|
79
80
|
skipped(): boolean;
|
|
80
81
|
controlStopped(): boolean;
|
|
81
82
|
done(): void;
|
|
@@ -134,6 +135,8 @@ export declare class OverlayController {
|
|
|
134
135
|
private skipActiveWaits;
|
|
135
136
|
/** Register an active wait so the Pet card / pill exposes the "跳过等待" button. */
|
|
136
137
|
beginWait(signal: AbortSignal): WaitHandle;
|
|
138
|
+
/** Mark that the computer-use tool finished and we are now waiting for the LLM API response. */
|
|
139
|
+
awaitingModel(agent: unknown): void;
|
|
137
140
|
private recordUserAction;
|
|
138
141
|
/** Whether the user has performed physical mouse/keyboard actions not yet reported to the model. */
|
|
139
142
|
hasUserActions(): boolean;
|
package/lib/types/routes.d.ts
CHANGED
|
@@ -47,7 +47,11 @@ export declare function sessionRoute(gate: SessionGate, settings: () => Settings
|
|
|
47
47
|
/** Export a sanitized diagnostic report (plain text by default, or JSON with ?format=json). */
|
|
48
48
|
export declare function diagnosticsRoute(helper: HelperLike & {
|
|
49
49
|
available?: boolean;
|
|
50
|
-
}, settings: () => Settings, diagnostics: DiagnosticsLog, pluginVersion: string)
|
|
50
|
+
}, settings: () => Settings, diagnostics: DiagnosticsLog, pluginVersion: string, phaseTiming?: () => {
|
|
51
|
+
samples: number;
|
|
52
|
+
avgSettleMs: number;
|
|
53
|
+
avgShotMs: number;
|
|
54
|
+
}): Handler;
|
|
51
55
|
/** Check npmjs & npmmirror concurrently for a newer plugin version. */
|
|
52
56
|
export declare function updateRoute(pluginVersion: string): Handler;
|
|
53
57
|
/** Passive read-only window list for `@窗口` composer references (never triggers overlay or focus). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copylee/dsh-computer-use",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "DeepSeek Harness Computer Use 插件(Windows):让 AI 看屏幕、点鼠标、敲键盘操控电脑;控制时屏幕泛起橙色光晕并显示“DeepSeek Harness 正在操控你的电脑”,按 Esc 暂停 / 继续。",
|
|
5
5
|
"icon": "assets/icon.svg",
|
|
6
6
|
"type": "module",
|