@copylee/dsh-computer-use 0.8.2 → 0.8.4

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.
@@ -24,6 +24,19 @@ export interface OverlaySettings {
24
24
  cardOpacity: number;
25
25
  userIdleMs: number;
26
26
  }
27
+ interface WindowRow {
28
+ hwnd: number;
29
+ pid: number;
30
+ exe: string;
31
+ title: string;
32
+ minimized: boolean;
33
+ maximized?: boolean;
34
+ foreground?: boolean;
35
+ x: number;
36
+ y: number;
37
+ width: number;
38
+ height: number;
39
+ }
27
40
  interface DisplayRow {
28
41
  x: number;
29
42
  y: number;
@@ -57,22 +70,21 @@ export declare class OverlayController {
57
70
  private hostWindows;
58
71
  private returnTo;
59
72
  private ending;
73
+ private workTab;
60
74
  private starting;
61
75
  private stopping;
62
- /** Progress card lines: the reply as it streams, and what the agent is doing. */
76
+ /** Progress card lines: host-provided reasoning and recent operations. */
63
77
  private streamAgent;
64
- private text;
65
78
  private thinking;
66
79
  /** Recent steps (tool actions), oldest first. */
67
80
  private steps;
68
- /** Whether the agent is thinking now (newer than the last step). */
69
- private thinkingLatest;
70
- private freshAttempt;
81
+ private resume;
71
82
  private pushTimer;
72
83
  /** An instruction the user typed into the progress card. */
73
84
  onMessage: ((agent: CancellableAgent, text: string) => void) | undefined;
74
85
  /** Called when control starts (before the first action), e.g. to remember the window layout. */
75
86
  onStart: (() => Promise<void>) | undefined;
87
+ onRelease: (() => Promise<void>) | undefined;
76
88
  /** Opacity the card was last given, to apply setting changes while it floats. */
77
89
  private cardOpacity;
78
90
  /** Paused by Esc or the pill; actions wait until resumed. */
@@ -105,11 +117,18 @@ export declare class OverlayController {
105
117
  toolStarted(agent: unknown, name: string, detail: string): void;
106
118
  private schedulePush;
107
119
  /** Agent finished (idle), was cancelled, or the plugin is stopping. */
108
- end(agent?: CancellableAgent): Promise<void>;
120
+ end(agent?: CancellableAgent, replying?: boolean): Promise<void>;
109
121
  isRememberedWebWindow(win: {
110
122
  hwnd: number;
111
123
  pid: number;
112
124
  }): boolean;
125
+ forgetResume(agent: unknown): void;
126
+ rememberWorkTab(win: {
127
+ hwnd: number;
128
+ pid: number;
129
+ }, tab: string): void;
130
+ rememberWebHost(win: WindowRow, tab: string): void;
131
+ isWorkTab(tab: string): boolean;
113
132
  private rememberHost;
114
133
  private focusRememberedHost;
115
134
  private stop;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copylee/dsh-computer-use",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "DeepSeek Harness Computer Use 插件(Windows):让 AI 看屏幕、点鼠标、敲键盘操控电脑;控制时屏幕泛起橙色光晕并显示“DeepSeek Harness 正在操控你的电脑”,按 Esc 暂停 / 继续。",
5
5
  "type": "module",
6
6
  "author": "copylee",