@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.
- package/README.md +45 -138
- package/helper/CuHelper.cs +188 -47
- package/lib/client.js +1 -1
- package/lib/index.js +210 -67
- package/lib/types/browser-host.d.ts +5 -1
- package/lib/types/computer.d.ts +3 -1
- package/lib/types/coords.d.ts +1 -1
- package/lib/types/helper-client.d.ts +1 -0
- package/lib/types/overlay.d.ts +25 -6
- package/package.json +1 -1
package/lib/types/overlay.d.ts
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
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