@tmhs/screencast-mcp 0.39.0 → 0.45.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 +95 -17
- package/assets/icon.png +0 -0
- package/assets/ui/player.html +47 -302
- package/assets/ui/player.js +402 -0
- package/dist/context.js +0 -5
- package/dist/index.js +17 -21
- package/dist/prompts.js +18 -8
- package/dist/resources.js +2 -14
- package/dist/server.js +49 -11
- package/dist/tools/addMarker.js +89 -0
- package/dist/tools/assembleHighlights.js +12 -7
- package/dist/tools/backdrop.js +89 -0
- package/dist/tools/bugReport.js +266 -0
- package/dist/tools/burnSubtitles.js +12 -6
- package/dist/tools/callout.js +32 -16
- package/dist/tools/chapters.js +156 -0
- package/dist/tools/clip.js +12 -9
- package/dist/tools/compress.js +10 -5
- package/dist/tools/concat.js +16 -15
- package/dist/tools/contactSheet.js +39 -33
- package/dist/tools/convert.js +12 -6
- package/dist/tools/crop.js +12 -7
- package/dist/tools/cutIdle.js +15 -9
- package/dist/tools/denoise.js +12 -6
- package/dist/tools/doctor.js +133 -0
- package/dist/tools/exportGif.js +14 -10
- package/dist/tools/exportPreset.js +11 -8
- package/dist/tools/extractAudio.js +10 -8
- package/dist/tools/findText.js +52 -98
- package/dist/tools/getMediaInfo.js +17 -3
- package/dist/tools/getSession.js +15 -3
- package/dist/tools/keystrokeOverlay.js +131 -0
- package/dist/tools/listAudioDevices.js +14 -7
- package/dist/tools/listSessions.js +13 -3
- package/dist/tools/listTargets.js +76 -0
- package/dist/tools/musicBed.js +14 -10
- package/dist/tools/normalizeAudio.js +12 -8
- package/dist/tools/overlay.js +16 -12
- package/dist/tools/pipeline.js +86 -25
- package/dist/tools/readEvents.js +21 -12
- package/dist/tools/redactRegion.js +19 -17
- package/dist/tools/reframe.js +9 -5
- package/dist/tools/reviewRecording.js +75 -22
- package/dist/tools/sampleFrames.js +33 -40
- package/dist/tools/saveReplay.js +90 -0
- package/dist/tools/scale.js +9 -3
- package/dist/tools/screenDiff.js +23 -17
- package/dist/tools/screenshot.js +21 -17
- package/dist/tools/speed.js +15 -4
- package/dist/tools/startRecording.js +96 -59
- package/dist/tools/stopRecording.js +35 -10
- package/dist/tools/titleCard.js +19 -11
- package/dist/tools/transcribe.js +13 -7
- package/dist/tools/trim.js +11 -10
- package/dist/tools/waitForChange.js +37 -22
- package/dist/tools/xfadeTransition.js +12 -8
- package/dist/tools/zoom.js +26 -29
- package/dist/utils/anim.js +1 -21
- package/dist/utils/animExport.js +5 -10
- package/dist/utils/audio.js +4 -33
- package/dist/utils/audioDevices.js +1 -48
- package/dist/utils/backdrop.js +151 -0
- package/dist/utils/bugReport.js +246 -0
- package/dist/utils/callout.js +1 -19
- package/dist/utils/calloutAssets.js +21 -11
- package/dist/utils/capabilities.js +95 -0
- package/dist/utils/captions.js +9 -26
- package/dist/utils/chapters.js +222 -0
- package/dist/utils/consent.js +29 -0
- package/dist/utils/diff.js +0 -46
- package/dist/utils/errors.js +5 -13
- package/dist/utils/events.js +21 -77
- package/dist/utils/expr.js +11 -0
- package/dist/utils/ffmpeg.js +119 -48
- package/dist/utils/fontCoverage.js +177 -0
- package/dist/utils/fonts.js +139 -23
- package/dist/utils/idle.js +12 -24
- package/dist/utils/images.js +0 -17
- package/dist/utils/jobs.js +42 -41
- package/dist/utils/keystrokes.js +170 -0
- package/dist/utils/lifecycle.js +11 -31
- package/dist/utils/logging.js +75 -0
- package/dist/utils/media.js +16 -124
- package/dist/utils/monitors.js +7 -43
- package/dist/utils/ocr.js +53 -71
- package/dist/utils/ocrScan.js +77 -0
- package/dist/utils/paths.js +68 -31
- package/dist/utils/pipeline.js +39 -25
- package/dist/utils/player.js +50 -27
- package/dist/utils/produce.js +6 -66
- package/dist/utils/replay.js +278 -0
- package/dist/utils/resolveTarget.js +0 -19
- package/dist/utils/retention.js +1 -15
- package/dist/utils/roots.js +42 -0
- package/dist/utils/sessions.js +195 -160
- package/dist/utils/sheet.js +0 -19
- package/dist/utils/still.js +0 -15
- package/dist/utils/targetList.js +63 -0
- package/dist/utils/targets.js +5 -70
- package/dist/utils/toolSpec.js +25 -0
- package/dist/utils/toolsets.js +122 -0
- package/dist/utils/validate.js +0 -22
- package/dist/utils/wgc.js +0 -46
- package/dist/utils/windows.js +5 -50
- package/dist/utils/zoom.js +55 -85
- package/dist/wgcRecorder.js +1 -30
- package/package.json +7 -3
- package/dist/context.d.ts +0 -9
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/prompts.d.ts +0 -10
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js.map +0 -1
- package/dist/resources.d.ts +0 -3
- package/dist/resources.d.ts.map +0 -1
- package/dist/resources.js.map +0 -1
- package/dist/server.d.ts +0 -3
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/tools/assembleHighlights.d.ts +0 -3
- package/dist/tools/assembleHighlights.d.ts.map +0 -1
- package/dist/tools/assembleHighlights.js.map +0 -1
- package/dist/tools/burnSubtitles.d.ts +0 -3
- package/dist/tools/burnSubtitles.d.ts.map +0 -1
- package/dist/tools/burnSubtitles.js.map +0 -1
- package/dist/tools/callout.d.ts +0 -37
- package/dist/tools/callout.d.ts.map +0 -1
- package/dist/tools/callout.js.map +0 -1
- package/dist/tools/clip.d.ts +0 -3
- package/dist/tools/clip.d.ts.map +0 -1
- package/dist/tools/clip.js.map +0 -1
- package/dist/tools/compress.d.ts +0 -3
- package/dist/tools/compress.d.ts.map +0 -1
- package/dist/tools/compress.js.map +0 -1
- package/dist/tools/concat.d.ts +0 -3
- package/dist/tools/concat.d.ts.map +0 -1
- package/dist/tools/concat.js.map +0 -1
- package/dist/tools/contactSheet.d.ts +0 -3
- package/dist/tools/contactSheet.d.ts.map +0 -1
- package/dist/tools/contactSheet.js.map +0 -1
- package/dist/tools/convert.d.ts +0 -3
- package/dist/tools/convert.d.ts.map +0 -1
- package/dist/tools/convert.js.map +0 -1
- package/dist/tools/crop.d.ts +0 -3
- package/dist/tools/crop.d.ts.map +0 -1
- package/dist/tools/crop.js.map +0 -1
- package/dist/tools/cutIdle.d.ts +0 -3
- package/dist/tools/cutIdle.d.ts.map +0 -1
- package/dist/tools/cutIdle.js.map +0 -1
- package/dist/tools/denoise.d.ts +0 -3
- package/dist/tools/denoise.d.ts.map +0 -1
- package/dist/tools/denoise.js.map +0 -1
- package/dist/tools/exportGif.d.ts +0 -3
- package/dist/tools/exportGif.d.ts.map +0 -1
- package/dist/tools/exportGif.js.map +0 -1
- package/dist/tools/exportPreset.d.ts +0 -3
- package/dist/tools/exportPreset.d.ts.map +0 -1
- package/dist/tools/exportPreset.js.map +0 -1
- package/dist/tools/extractAudio.d.ts +0 -3
- package/dist/tools/extractAudio.d.ts.map +0 -1
- package/dist/tools/extractAudio.js.map +0 -1
- package/dist/tools/findText.d.ts +0 -6
- package/dist/tools/findText.d.ts.map +0 -1
- package/dist/tools/findText.js.map +0 -1
- package/dist/tools/getMediaInfo.d.ts +0 -3
- package/dist/tools/getMediaInfo.d.ts.map +0 -1
- package/dist/tools/getMediaInfo.js.map +0 -1
- package/dist/tools/getSession.d.ts +0 -3
- package/dist/tools/getSession.d.ts.map +0 -1
- package/dist/tools/getSession.js.map +0 -1
- package/dist/tools/listAudioDevices.d.ts +0 -3
- package/dist/tools/listAudioDevices.d.ts.map +0 -1
- package/dist/tools/listAudioDevices.js.map +0 -1
- package/dist/tools/listSessions.d.ts +0 -3
- package/dist/tools/listSessions.d.ts.map +0 -1
- package/dist/tools/listSessions.js.map +0 -1
- package/dist/tools/musicBed.d.ts +0 -3
- package/dist/tools/musicBed.d.ts.map +0 -1
- package/dist/tools/musicBed.js.map +0 -1
- package/dist/tools/normalizeAudio.d.ts +0 -3
- package/dist/tools/normalizeAudio.d.ts.map +0 -1
- package/dist/tools/normalizeAudio.js.map +0 -1
- package/dist/tools/overlay.d.ts +0 -3
- package/dist/tools/overlay.d.ts.map +0 -1
- package/dist/tools/overlay.js.map +0 -1
- package/dist/tools/pipeline.d.ts +0 -3
- package/dist/tools/pipeline.d.ts.map +0 -1
- package/dist/tools/pipeline.js.map +0 -1
- package/dist/tools/readEvents.d.ts +0 -6
- package/dist/tools/readEvents.d.ts.map +0 -1
- package/dist/tools/readEvents.js.map +0 -1
- package/dist/tools/redactRegion.d.ts +0 -13
- package/dist/tools/redactRegion.d.ts.map +0 -1
- package/dist/tools/redactRegion.js.map +0 -1
- package/dist/tools/reframe.d.ts +0 -3
- package/dist/tools/reframe.d.ts.map +0 -1
- package/dist/tools/reframe.js.map +0 -1
- package/dist/tools/reviewRecording.d.ts +0 -5
- package/dist/tools/reviewRecording.d.ts.map +0 -1
- package/dist/tools/reviewRecording.js.map +0 -1
- package/dist/tools/sampleFrames.d.ts +0 -3
- package/dist/tools/sampleFrames.d.ts.map +0 -1
- package/dist/tools/sampleFrames.js.map +0 -1
- package/dist/tools/scale.d.ts +0 -3
- package/dist/tools/scale.d.ts.map +0 -1
- package/dist/tools/scale.js.map +0 -1
- package/dist/tools/screenDiff.d.ts +0 -3
- package/dist/tools/screenDiff.d.ts.map +0 -1
- package/dist/tools/screenDiff.js.map +0 -1
- package/dist/tools/screenshot.d.ts +0 -3
- package/dist/tools/screenshot.d.ts.map +0 -1
- package/dist/tools/screenshot.js.map +0 -1
- package/dist/tools/speed.d.ts +0 -3
- package/dist/tools/speed.d.ts.map +0 -1
- package/dist/tools/speed.js.map +0 -1
- package/dist/tools/startRecording.d.ts +0 -3
- package/dist/tools/startRecording.d.ts.map +0 -1
- package/dist/tools/startRecording.js.map +0 -1
- package/dist/tools/stopRecording.d.ts +0 -3
- package/dist/tools/stopRecording.d.ts.map +0 -1
- package/dist/tools/stopRecording.js.map +0 -1
- package/dist/tools/titleCard.d.ts +0 -3
- package/dist/tools/titleCard.d.ts.map +0 -1
- package/dist/tools/titleCard.js.map +0 -1
- package/dist/tools/transcribe.d.ts +0 -3
- package/dist/tools/transcribe.d.ts.map +0 -1
- package/dist/tools/transcribe.js.map +0 -1
- package/dist/tools/trim.d.ts +0 -3
- package/dist/tools/trim.d.ts.map +0 -1
- package/dist/tools/trim.js.map +0 -1
- package/dist/tools/waitForChange.d.ts +0 -3
- package/dist/tools/waitForChange.d.ts.map +0 -1
- package/dist/tools/waitForChange.js.map +0 -1
- package/dist/tools/xfadeTransition.d.ts +0 -3
- package/dist/tools/xfadeTransition.d.ts.map +0 -1
- package/dist/tools/xfadeTransition.js.map +0 -1
- package/dist/tools/zoom.d.ts +0 -15
- package/dist/tools/zoom.d.ts.map +0 -1
- package/dist/tools/zoom.js.map +0 -1
- package/dist/utils/anim.d.ts +0 -33
- package/dist/utils/anim.d.ts.map +0 -1
- package/dist/utils/anim.js.map +0 -1
- package/dist/utils/animExport.d.ts +0 -27
- package/dist/utils/animExport.d.ts.map +0 -1
- package/dist/utils/animExport.js.map +0 -1
- package/dist/utils/audio.d.ts +0 -49
- package/dist/utils/audio.d.ts.map +0 -1
- package/dist/utils/audio.js.map +0 -1
- package/dist/utils/audioDevices.d.ts +0 -33
- package/dist/utils/audioDevices.d.ts.map +0 -1
- package/dist/utils/audioDevices.js.map +0 -1
- package/dist/utils/callout.d.ts +0 -72
- package/dist/utils/callout.d.ts.map +0 -1
- package/dist/utils/callout.js.map +0 -1
- package/dist/utils/calloutAssets.d.ts +0 -3
- package/dist/utils/calloutAssets.d.ts.map +0 -1
- package/dist/utils/calloutAssets.js.map +0 -1
- package/dist/utils/captions.d.ts +0 -26
- package/dist/utils/captions.d.ts.map +0 -1
- package/dist/utils/captions.js.map +0 -1
- package/dist/utils/diff.d.ts +0 -112
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/diff.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -33
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/events.d.ts +0 -143
- package/dist/utils/events.d.ts.map +0 -1
- package/dist/utils/events.js.map +0 -1
- package/dist/utils/ffmpeg.d.ts +0 -50
- package/dist/utils/ffmpeg.d.ts.map +0 -1
- package/dist/utils/ffmpeg.js.map +0 -1
- package/dist/utils/fonts.d.ts +0 -17
- package/dist/utils/fonts.d.ts.map +0 -1
- package/dist/utils/fonts.js.map +0 -1
- package/dist/utils/idle.d.ts +0 -23
- package/dist/utils/idle.d.ts.map +0 -1
- package/dist/utils/idle.js.map +0 -1
- package/dist/utils/images.d.ts +0 -21
- package/dist/utils/images.d.ts.map +0 -1
- package/dist/utils/images.js.map +0 -1
- package/dist/utils/jobs.d.ts +0 -44
- package/dist/utils/jobs.d.ts.map +0 -1
- package/dist/utils/jobs.js.map +0 -1
- package/dist/utils/lifecycle.d.ts +0 -29
- package/dist/utils/lifecycle.d.ts.map +0 -1
- package/dist/utils/lifecycle.js.map +0 -1
- package/dist/utils/media.d.ts +0 -272
- package/dist/utils/media.d.ts.map +0 -1
- package/dist/utils/media.js.map +0 -1
- package/dist/utils/monitors.d.ts +0 -47
- package/dist/utils/monitors.d.ts.map +0 -1
- package/dist/utils/monitors.js.map +0 -1
- package/dist/utils/ocr.d.ts +0 -50
- package/dist/utils/ocr.d.ts.map +0 -1
- package/dist/utils/ocr.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -28
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/pipeline.d.ts +0 -69
- package/dist/utils/pipeline.d.ts.map +0 -1
- package/dist/utils/pipeline.js.map +0 -1
- package/dist/utils/player.d.ts +0 -30
- package/dist/utils/player.d.ts.map +0 -1
- package/dist/utils/player.js.map +0 -1
- package/dist/utils/produce.d.ts +0 -126
- package/dist/utils/produce.d.ts.map +0 -1
- package/dist/utils/produce.js.map +0 -1
- package/dist/utils/resolveTarget.d.ts +0 -32
- package/dist/utils/resolveTarget.d.ts.map +0 -1
- package/dist/utils/resolveTarget.js.map +0 -1
- package/dist/utils/retention.d.ts +0 -10
- package/dist/utils/retention.d.ts.map +0 -1
- package/dist/utils/retention.js.map +0 -1
- package/dist/utils/sessions.d.ts +0 -154
- package/dist/utils/sessions.d.ts.map +0 -1
- package/dist/utils/sessions.js.map +0 -1
- package/dist/utils/sheet.d.ts +0 -26
- package/dist/utils/sheet.d.ts.map +0 -1
- package/dist/utils/sheet.js.map +0 -1
- package/dist/utils/still.d.ts +0 -7
- package/dist/utils/still.d.ts.map +0 -1
- package/dist/utils/still.js.map +0 -1
- package/dist/utils/targets.d.ts +0 -113
- package/dist/utils/targets.d.ts.map +0 -1
- package/dist/utils/targets.js.map +0 -1
- package/dist/utils/validate.d.ts +0 -15
- package/dist/utils/validate.d.ts.map +0 -1
- package/dist/utils/validate.js.map +0 -1
- package/dist/utils/wgc.d.ts +0 -46
- package/dist/utils/wgc.d.ts.map +0 -1
- package/dist/utils/wgc.js.map +0 -1
- package/dist/utils/windows.d.ts +0 -94
- package/dist/utils/windows.d.ts.map +0 -1
- package/dist/utils/windows.js.map +0 -1
- package/dist/utils/zoom.d.ts +0 -95
- package/dist/utils/zoom.d.ts.map +0 -1
- package/dist/utils/zoom.js.map +0 -1
- package/dist/wgcRecorder.d.ts +0 -2
- package/dist/wgcRecorder.d.ts.map +0 -1
- package/dist/wgcRecorder.js.map +0 -1
package/dist/utils/windows.js
CHANGED
|
@@ -1,49 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Window-to-rectangle resolution for the `window:<title>` capture target.
|
|
3
|
-
*
|
|
4
|
-
* gdigrab's own `title=` input grabs the window's GDI surface, which comes back
|
|
5
|
-
* blank/black for GPU- or DirectComposition-composited windows (Chrome,
|
|
6
|
-
* Electron editors, UWP apps) - i.e. most modern software. Instead we resolve
|
|
7
|
-
* the window to the on-screen rectangle it currently occupies and capture that
|
|
8
|
-
* rectangle through the same desktop (monitor/region) path that is known to
|
|
9
|
-
* work. This captures the window "as displayed": it must be visible, on top,
|
|
10
|
-
* and not minimized.
|
|
11
|
-
*
|
|
12
|
-
* Enumeration (getRawWindows) is impure (PowerShell + user32 P/Invoke, DPI
|
|
13
|
-
* aware). The matching, clamping, and even-dimension math (selectWindow) is
|
|
14
|
-
* pure so it is unit-tested without Windows.
|
|
15
|
-
*/
|
|
16
1
|
import { ScreencastError } from "./errors.js";
|
|
17
2
|
import { runPowerShell } from "./monitors.js";
|
|
18
|
-
/** How many candidate titles a match reports. */
|
|
19
3
|
export const MAX_CANDIDATES = 5;
|
|
20
|
-
/** `hwnd=0x1A2B` / `hwnd=6699` or `exe=Code.exe` / `exe=code`: a window
|
|
21
|
-
* picked by handle or by its process's executable instead of its title. */
|
|
22
4
|
export function parseWindowSelector(wanted) {
|
|
23
5
|
const h = /^hwnd=(0x[0-9a-f]+|\d+)$/i.exec(wanted.trim());
|
|
24
6
|
if (h)
|
|
25
7
|
return { kind: "hwnd", hwnd: Number(h[1]) };
|
|
26
8
|
const e = /^exe=(.+)$/i.exec(wanted.trim());
|
|
27
|
-
if (e)
|
|
9
|
+
if (e?.[1])
|
|
28
10
|
return { kind: "exe", exe: e[1].trim().toLowerCase().replace(/\.exe$/, "") };
|
|
29
11
|
return null;
|
|
30
12
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Choose a window and reduce it to a clamped, even-sized rectangle.
|
|
33
|
-
*
|
|
34
|
-
* Matching by title: a case-insensitive EXACT title match wins; if none, a
|
|
35
|
-
* case-insensitive SUBSTRING match is used (unless exactOnly). `hwnd=...`
|
|
36
|
-
* picks one window by handle and `exe=...` the windows of an executable, so a
|
|
37
|
-
* window can be targeted without relying on its title (#107). With several
|
|
38
|
-
* matches the topmost (first in Z-order) is chosen. Pure: takes the enumerated
|
|
39
|
-
* query, returns the rectangle or throws a ScreencastError the caller can
|
|
40
|
-
* surface verbatim.
|
|
41
|
-
*/
|
|
42
13
|
export function selectWindow(query, wanted, opts = {}) {
|
|
43
14
|
const windows = Array.isArray(query.windows) ? query.windows : [];
|
|
44
15
|
const visible = windows.filter((w) => !w.cloaked);
|
|
45
|
-
// Cloaked windows are never chosen over a visible match (#227). Without
|
|
46
|
-
// allowCloaked they are not chosen at all, only named in the error.
|
|
47
16
|
try {
|
|
48
17
|
return matchWindow(query, visible, wanted, opts);
|
|
49
18
|
}
|
|
@@ -64,7 +33,6 @@ export function selectWindow(query, wanted, opts = {}) {
|
|
|
64
33
|
return { ...hit, cloaked: true };
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
|
-
/** No window matched at all (as opposed to a match that can't be captured). */
|
|
68
36
|
class NoWindowMatch extends ScreencastError {
|
|
69
37
|
}
|
|
70
38
|
function matchWindow(query, all, wanted, opts) {
|
|
@@ -97,9 +65,10 @@ function matchWindow(query, all, wanted, opts) {
|
|
|
97
65
|
}
|
|
98
66
|
return toBounds(query, matches, matchKind);
|
|
99
67
|
}
|
|
100
|
-
/** The topmost of `matches`, clamped to the desktop and rounded down to even. */
|
|
101
68
|
function toBounds(query, matches, matchKind) {
|
|
102
|
-
const chosen = matches[0];
|
|
69
|
+
const chosen = matches[0];
|
|
70
|
+
if (!chosen)
|
|
71
|
+
throw new NoWindowMatch("No visible window matched.");
|
|
103
72
|
if (chosen.minimized) {
|
|
104
73
|
throw new ScreencastError(`Window "${chosen.title}" is minimized. Restore it before capturing - ` +
|
|
105
74
|
`window capture grabs whatever is on screen at the window's rectangle.`);
|
|
@@ -115,7 +84,6 @@ function toBounds(query, matches, matchKind) {
|
|
|
115
84
|
throw new ScreencastError(`Window "${chosen.title}" has no visible on-screen area to capture ` +
|
|
116
85
|
`(off-screen or fully occluded by the desktop edge).`);
|
|
117
86
|
}
|
|
118
|
-
// libx264 + yuv420p requires even dimensions; gdigrab region must match.
|
|
119
87
|
width -= width % 2;
|
|
120
88
|
height -= height % 2;
|
|
121
89
|
if (width <= 0 || height <= 0) {
|
|
@@ -131,9 +99,6 @@ function toBounds(query, matches, matchKind) {
|
|
|
131
99
|
candidates: matches.slice(0, MAX_CANDIDATES).map((w) => w.title),
|
|
132
100
|
};
|
|
133
101
|
}
|
|
134
|
-
/** The window-match fields a capture tool returns, with a warning when the
|
|
135
|
-
* match was ambiguous or only a substring, so an agent notices before it
|
|
136
|
-
* records the wrong window (#89). Pure. */
|
|
137
102
|
export function windowMatchReport(w) {
|
|
138
103
|
const reasons = [];
|
|
139
104
|
if (w.matchKind === "substring")
|
|
@@ -156,12 +121,6 @@ export function windowMatchReport(w) {
|
|
|
156
121
|
: {}),
|
|
157
122
|
};
|
|
158
123
|
}
|
|
159
|
-
// Per-monitor-DPI-aware enumeration of top-level windows + virtual screen
|
|
160
|
-
// bounds. Runs as a single PowerShell process; passed base64 (EncodedCommand)
|
|
161
|
-
// so no quoting of the C# shim is needed. Kept verbatim-small for startup cost.
|
|
162
|
-
// Bounds come from DWMWA_EXTENDED_FRAME_BOUNDS (9), the visible frame:
|
|
163
|
-
// GetWindowRect includes the invisible resize border (about 8 px on Windows
|
|
164
|
-
// 10/11), so a window: capture also grabbed a strip of whatever was behind it.
|
|
165
124
|
const PS_ENUM = `
|
|
166
125
|
$ErrorActionPreference='Stop'
|
|
167
126
|
Add-Type @"
|
|
@@ -206,17 +165,15 @@ foreach($h in [WinShim]::Z()){
|
|
|
206
165
|
$procId=[WinShim]::P($h)
|
|
207
166
|
$c=[WinShim]::C($h)
|
|
208
167
|
if(-not $exes.ContainsKey($procId)){$exes[$procId]=try{(Get-Process -Id $procId -ErrorAction Stop).ProcessName+'.exe'}catch{''}}
|
|
209
|
-
[void]$ws.Add([pscustomobject]@{title=$t;left=$r[0];top=$r[1];right=$r[2];bottom=$r[3];minimized=[bool][WinShim]::Ic($h);hwnd=[int64]$h;exe=$exes[$procId];clientX=$c[0];clientY=$c[1];cloaked=[WinShim]::Ck($h)})
|
|
168
|
+
[void]$ws.Add([pscustomobject]@{title=$t;left=$r[0];top=$r[1];right=$r[2];bottom=$r[3];minimized=[bool][WinShim]::Ic($h);hwnd=[int64]$h;exe=$exes[$procId];pid=$procId;clientX=$c[0];clientY=$c[1];cloaked=[WinShim]::Ck($h)})
|
|
210
169
|
}
|
|
211
170
|
$v=[pscustomobject]@{x=[WinShim]::SM(76);y=[WinShim]::SM(77);w=[WinShim]::SM(78);h=[WinShim]::SM(79)}
|
|
212
171
|
[pscustomobject]@{virtual=$v;windows=@($ws)}|ConvertTo-Json -Compress -Depth 4
|
|
213
172
|
`;
|
|
214
|
-
/** Enumerate live windows on Windows. Throws on non-Windows or failure. */
|
|
215
173
|
export async function getRawWindows() {
|
|
216
174
|
if (process.platform !== "win32") {
|
|
217
175
|
throw new ScreencastError("Window capture is implemented for Windows (gdigrab) only.");
|
|
218
176
|
}
|
|
219
|
-
// Not cached: windows move and restack between calls, unlike monitors.
|
|
220
177
|
const stdout = await runPowerShell(PS_ENUM, "windows");
|
|
221
178
|
let parsed;
|
|
222
179
|
try {
|
|
@@ -230,8 +187,6 @@ export async function getRawWindows() {
|
|
|
230
187
|
const v = obj.virtual ?? { x: 0, y: 0, w: 0, h: 0 };
|
|
231
188
|
return { virtual: v, windows };
|
|
232
189
|
}
|
|
233
|
-
/** Resolve a window title to its current on-screen rectangle (Windows). */
|
|
234
190
|
export async function resolveWindowBounds(title, opts = {}) {
|
|
235
191
|
return selectWindow(await getRawWindows(), title, opts);
|
|
236
192
|
}
|
|
237
|
-
//# sourceMappingURL=windows.js.map
|
package/dist/utils/zoom.js
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Animated zoom-and-pan (#119): Screen Studio-style emphasis for screencasts.
|
|
3
|
-
*
|
|
4
|
-
* A zoom is a list of keyframes, each a rectangle of the source to fill the
|
|
5
|
-
* frame by a given time. Between keyframes the view holds, then eases into
|
|
6
|
-
* the next one over `transition` seconds (smoothstep). It is rendered with
|
|
7
|
-
* zoompan (d=1: one output frame per input frame at a fixed size). A
|
|
8
|
-
* scale + crop chain cannot do this: crop reads its input size once, so a
|
|
9
|
-
* per-frame scale leaves it cropping the top-left corner. The source is
|
|
10
|
-
* upscaled 2x first so zoompan's whole-pixel positions do not judder.
|
|
11
|
-
*
|
|
12
|
-
* Auto mode needs no input capture: it zooms toward where the screen changed,
|
|
13
|
-
* using the same cell-grid differ as screen_diff, and zooms back out when
|
|
14
|
-
* activity stops or the whole screen changes. All helpers are pure.
|
|
15
|
-
*/
|
|
16
1
|
import { ScreencastError } from "./errors.js";
|
|
17
2
|
import { diffFrames } from "./diff.js";
|
|
18
3
|
import { resolveQuality } from "./targets.js";
|
|
4
|
+
import { sumExpr } from "./expr.js";
|
|
19
5
|
export const DEFAULT_TRANSITION_SEC = 0.6;
|
|
20
6
|
export const MAX_ZOOM = 6;
|
|
21
7
|
export const DEFAULT_AUTO_MAX_ZOOM = 2.5;
|
|
22
|
-
/** Turn keyframes into views for a W x H source, adding a full-frame start at
|
|
23
|
-
* t=0 when the first keyframe is later. Pure. */
|
|
24
8
|
export function keyframesToViews(kfs, W, H, maxZoom = MAX_ZOOM) {
|
|
25
9
|
if (kfs.length === 0)
|
|
26
10
|
throw new ScreencastError("Give at least one keyframe.");
|
|
@@ -35,50 +19,47 @@ export function keyframesToViews(kfs, W, H, maxZoom = MAX_ZOOM) {
|
|
|
35
19
|
const z = Math.max(1, Math.min(maxZoom, W / k.width, H / k.height));
|
|
36
20
|
return { t: k.t, z, cx: (k.x ?? 0) + k.width / 2, cy: (k.y ?? 0) + k.height / 2 };
|
|
37
21
|
});
|
|
38
|
-
if (views[0].t > 0)
|
|
22
|
+
if (views[0] && views[0].t > 0)
|
|
39
23
|
views.unshift({ t: 0, z: 1, cx: W / 2, cy: H / 2 });
|
|
40
24
|
return views;
|
|
41
25
|
}
|
|
42
26
|
const n = (v) => Number(v.toFixed(4)).toString();
|
|
43
|
-
/** A zoompan expression for one view property over input time `it`: hold each
|
|
44
|
-
* value, then ease (smoothstep) into the next over the transition before its
|
|
45
|
-
* keyframe. Pure. */
|
|
46
27
|
export function viewExpr(views, key, transition) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
|
|
28
|
+
const [first, ...rest] = views;
|
|
29
|
+
if (!first)
|
|
30
|
+
throw new ScreencastError("Give at least one keyframe.");
|
|
31
|
+
const terms = [n(first[key])];
|
|
32
|
+
let prev = first;
|
|
33
|
+
for (const next of rest) {
|
|
34
|
+
const a = prev[key];
|
|
35
|
+
const b = next[key];
|
|
36
|
+
const start = prev.t;
|
|
37
|
+
prev = next;
|
|
38
|
+
if (a === b)
|
|
39
|
+
continue;
|
|
40
|
+
const end = next.t;
|
|
41
|
+
const T = Math.max(0.001, Math.min(transition, end - start));
|
|
42
|
+
const s = `clip((it-${n(end - T)})/${n(T)},0,1)`;
|
|
43
|
+
terms.push(`(${n(b - a)})*${s}*${s}*(3-2*${s})`);
|
|
57
44
|
}
|
|
58
|
-
return
|
|
45
|
+
return sumExpr(terms);
|
|
59
46
|
}
|
|
60
|
-
/** The zoom as one filter chain on a W x H stream. The source is upscaled
|
|
61
|
-
* (2x up to 1920 wide, else 1x) so zoompan's whole-pixel steps do not judder.
|
|
62
|
-
* Shared by zoom and pipeline. Pure. */
|
|
63
47
|
export function zoomFilter(views, size, transition = DEFAULT_TRANSITION_SEC) {
|
|
64
48
|
const { width: W, height: H, fps } = size;
|
|
65
49
|
const up = W <= 1920 ? 2 : 1;
|
|
66
50
|
const z = viewExpr(views, "z", transition);
|
|
67
51
|
const cx = viewExpr(views, "cx", transition);
|
|
68
52
|
const cy = viewExpr(views, "cy", transition);
|
|
69
|
-
return (`scale=${W * up}:${H * up},` +
|
|
53
|
+
return (`fps=${n(fps)},scale=${W * up}:${H * up},` +
|
|
70
54
|
`zoompan=z='${z}':x='clip((${cx})*${up}-iw/zoom/2,0,iw-iw/zoom)':y='clip((${cy})*${up}-ih/zoom/2,0,ih-ih/zoom)'` +
|
|
71
55
|
`:d=1:s=${W}x${H}:fps=${n(fps)}`);
|
|
72
56
|
}
|
|
73
|
-
/** Render the zoom. `up` is the pre-zoompan upscale factor (2 for sources up
|
|
74
|
-
* to 1920 wide, else 1, to keep frames a sane size). Pure. */
|
|
75
57
|
export function buildZoomArgs(input, output, views, size, transition = DEFAULT_TRANSITION_SEC, quality = "standard", rings) {
|
|
76
58
|
const { width: W, height: H, fps } = size;
|
|
77
59
|
const vf = zoomFilter(views, size, transition);
|
|
78
60
|
if (!rings || rings.clicks.length === 0) {
|
|
79
61
|
return ["-y", "-i", input, "-vf", vf, ...resolveQuality(quality), "-c:a", "copy", output];
|
|
80
62
|
}
|
|
81
|
-
// Rings go on before the zoom, in source pixels, so they move with it.
|
|
82
63
|
const graph = [
|
|
83
64
|
"[0:v]null[in]",
|
|
84
65
|
...ringFilters(rings.clicks, W, H, fps, rings.color),
|
|
@@ -89,10 +70,13 @@ export function buildZoomArgs(input, output, views, size, transition = DEFAULT_T
|
|
|
89
70
|
"-map", "[v]", "-map", "0:a?", ...resolveQuality(quality), "-c:a", "copy", output,
|
|
90
71
|
];
|
|
91
72
|
}
|
|
92
|
-
/** Plan keyframes from a sequence of low-res gray frames (`w` x `h`, one per
|
|
93
|
-
* `step` seconds) of a W x H source: zoom toward localised changes, hold,
|
|
94
|
-
* and zoom out when activity stops or the whole screen changes. Pure. */
|
|
95
73
|
export function planAutoZoom(frames, w, h, W, H, opts = {}) {
|
|
74
|
+
const planner = createAutoZoomPlanner(w, h, W, H, opts);
|
|
75
|
+
for (const f of frames)
|
|
76
|
+
planner.push(f);
|
|
77
|
+
return planner.finish();
|
|
78
|
+
}
|
|
79
|
+
export function createAutoZoomPlanner(w, h, W, H, opts = {}) {
|
|
96
80
|
const step = opts.step ?? 0.25;
|
|
97
81
|
const hold = opts.holdSec ?? 2;
|
|
98
82
|
const maxZoom = opts.maxZoom ?? DEFAULT_AUTO_MAX_ZOOM;
|
|
@@ -108,17 +92,25 @@ export function planAutoZoom(frames, w, h, W, H, opts = {}) {
|
|
|
108
92
|
focuses.push(cur);
|
|
109
93
|
cur = null;
|
|
110
94
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
95
|
+
let prev = null;
|
|
96
|
+
let i = 0;
|
|
97
|
+
const push = (frame) => {
|
|
98
|
+
const before = prev;
|
|
99
|
+
prev = frame;
|
|
100
|
+
if (!before) {
|
|
101
|
+
i = 1;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const t = i++ * step;
|
|
105
|
+
const d = diffFrames(before, frame, w, h, { scale });
|
|
114
106
|
if (d.regions.length === 0) {
|
|
115
107
|
if (cur && t - cur.last > hold)
|
|
116
108
|
close();
|
|
117
|
-
|
|
109
|
+
return;
|
|
118
110
|
}
|
|
119
111
|
if (d.changedFraction > globalFraction) {
|
|
120
112
|
close();
|
|
121
|
-
|
|
113
|
+
return;
|
|
122
114
|
}
|
|
123
115
|
const box = unionRects(d.regions);
|
|
124
116
|
if (cur && t - cur.last <= hold && near(cur.box, box, W, H)) {
|
|
@@ -129,19 +121,21 @@ export function planAutoZoom(frames, w, h, W, H, opts = {}) {
|
|
|
129
121
|
close();
|
|
130
122
|
cur = { start: t, last: t, box };
|
|
131
123
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
124
|
+
};
|
|
125
|
+
const finish = () => {
|
|
126
|
+
close();
|
|
127
|
+
const kfs = [];
|
|
128
|
+
let lastT = 0;
|
|
129
|
+
for (const f of focuses) {
|
|
130
|
+
const view = fitView(f.box, W, H, minW, minH);
|
|
131
|
+
const inAt = Math.max(f.start, lastT + T);
|
|
132
|
+
const outAt = Math.max(f.last + hold, inAt + T);
|
|
133
|
+
kfs.push({ t: round(inAt), ...view }, { t: round(outAt), full: true });
|
|
134
|
+
lastT = outAt;
|
|
135
|
+
}
|
|
136
|
+
return kfs;
|
|
137
|
+
};
|
|
138
|
+
return { push, finish };
|
|
145
139
|
}
|
|
146
140
|
const round = (v) => Math.round(v * 100) / 100;
|
|
147
141
|
function unionRects(rs) {
|
|
@@ -151,14 +145,10 @@ function unionRects(rs) {
|
|
|
151
145
|
const y1 = Math.max(...rs.map((r) => r.y + r.height));
|
|
152
146
|
return { x: x0, y: y0, width: x1 - x0, height: y1 - y0 };
|
|
153
147
|
}
|
|
154
|
-
/** Two boxes count as the same area of interest when the union is still
|
|
155
|
-
* small enough to zoom into meaningfully (under half the screen each way). */
|
|
156
148
|
function near(a, b, W, H) {
|
|
157
149
|
const u = unionRects([a, b]);
|
|
158
150
|
return u.width <= W / 2 && u.height <= H / 2;
|
|
159
151
|
}
|
|
160
|
-
/** Pad a box by 20%, grow it to the frame's aspect ratio and the minimum size
|
|
161
|
-
* for maxZoom, and keep it inside the frame. Pure. */
|
|
162
152
|
export function fitView(box, W, H, minW, minH) {
|
|
163
153
|
let width = Math.max(box.width * 1.4, minW);
|
|
164
154
|
let height = Math.max(box.height * 1.4, minH);
|
|
@@ -175,7 +165,6 @@ export function fitView(box, W, H, minW, minH) {
|
|
|
175
165
|
const y = Math.max(0, Math.min(H - height, cy - height / 2));
|
|
176
166
|
return { x: Math.round(x), y: Math.round(y), width: Math.round(width), height: Math.round(height) };
|
|
177
167
|
}
|
|
178
|
-
/** Decode a video to low-res gray frames every `step` seconds, for planning. */
|
|
179
168
|
export function buildAnalysisArgs(input, size, step) {
|
|
180
169
|
return [
|
|
181
170
|
"-v", "error", "-i", input, "-an",
|
|
@@ -183,13 +172,6 @@ export function buildAnalysisArgs(input, size, step) {
|
|
|
183
172
|
"-f", "rawvideo", "-",
|
|
184
173
|
];
|
|
185
174
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Plan keyframes from clicks (#119, from the input event log #118). Clicks
|
|
188
|
-
* less than `holdSec` apart form one zoomed-in run that pans from click to
|
|
189
|
-
* click; the view is reached as each click happens (the ease starts
|
|
190
|
-
* `transition` earlier, so the camera arrives with the cursor) and zooms out
|
|
191
|
-
* `holdSec` after the run's last click. Pure.
|
|
192
|
-
*/
|
|
193
175
|
export function planClickZoom(clicks, W, H, opts = {}) {
|
|
194
176
|
const hold = opts.holdSec ?? 2;
|
|
195
177
|
const maxZoom = opts.maxZoom ?? DEFAULT_AUTO_MAX_ZOOM;
|
|
@@ -201,17 +183,14 @@ export function planClickZoom(clicks, W, H, opts = {}) {
|
|
|
201
183
|
const kfs = [];
|
|
202
184
|
let lastT = 0;
|
|
203
185
|
let runEnd = -Infinity;
|
|
204
|
-
for (
|
|
205
|
-
const c = sorted[i];
|
|
186
|
+
for (const c of sorted) {
|
|
206
187
|
const view = fitView({ x: c.x - pad, y: c.y - pad, width: 2 * pad, height: 2 * pad }, W, H, minW, minH);
|
|
207
188
|
const prev = kfs[kfs.length - 1];
|
|
208
|
-
// Already well inside the current view: no pan, just extend the run.
|
|
209
189
|
if (prev && !prev.full && c.t - runEnd <= hold && insideView(prev, c)) {
|
|
210
190
|
runEnd = c.t;
|
|
211
191
|
continue;
|
|
212
192
|
}
|
|
213
193
|
if (c.t - runEnd > hold && kfs.length > 0) {
|
|
214
|
-
// Close the previous run before starting a new one.
|
|
215
194
|
const outAt = Math.max(runEnd + hold, lastT + T);
|
|
216
195
|
kfs.push({ t: round(outAt), full: true });
|
|
217
196
|
lastT = outAt;
|
|
@@ -225,7 +204,6 @@ export function planClickZoom(clicks, W, H, opts = {}) {
|
|
|
225
204
|
kfs.push({ t: round(Math.max(runEnd + hold, lastT + T)), full: true });
|
|
226
205
|
return kfs;
|
|
227
206
|
}
|
|
228
|
-
/** True when a point lies in the middle 70% of a view, away from its edges. */
|
|
229
207
|
function insideView(v, p) {
|
|
230
208
|
const mx = v.width * 0.15;
|
|
231
209
|
const my = v.height * 0.15;
|
|
@@ -233,15 +211,9 @@ function insideView(v, p) {
|
|
|
233
211
|
}
|
|
234
212
|
export const RING_SEC = 0.6;
|
|
235
213
|
export const DEFAULT_RING_COLOR = "#FF4545";
|
|
236
|
-
/** Ring diameter in pixels for a W x H video: about 9% of the short side. */
|
|
237
214
|
export function ringSize(W, H) {
|
|
238
215
|
return Math.max(40, 2 * Math.round(Math.min(W, H) * 0.045));
|
|
239
216
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Filter chains that draw an expanding, fading ring at each click, applied to
|
|
242
|
-
* `[in]` and ending at `[out]`. Each ring is its own short colour source whose
|
|
243
|
-
* radius and alpha follow its own clock T, shifted to the click time. Pure.
|
|
244
|
-
*/
|
|
245
217
|
export function ringFilters(clicks, W, H, fps, color) {
|
|
246
218
|
const D = ringSize(W, H);
|
|
247
219
|
const c = D / 2;
|
|
@@ -251,7 +223,6 @@ export function ringFilters(clicks, W, H, fps, color) {
|
|
|
251
223
|
const steps = [];
|
|
252
224
|
let cur = "[in]";
|
|
253
225
|
clicks.forEach((k, i) => {
|
|
254
|
-
// Solid for the first half, then fading; the ring grows the whole time.
|
|
255
226
|
const alpha = `if(lt(abs(hypot(X-${c},Y-${c})-(${n(r0)}+${n(dr)}*T/${RING_SEC})),${th / 2}),255*min(1,2-2*T/${RING_SEC}),0)`;
|
|
256
227
|
steps.push(`color=c=${color}:s=${D}x${D}:r=${n(fps)}:d=${RING_SEC},format=rgba,` +
|
|
257
228
|
`geq=r='r(X,Y)':g='g(X,Y)':b='b(X,Y)':a='${alpha}',setpts=PTS+${n(k.t)}/TB[ring${i}]`);
|
|
@@ -261,4 +232,3 @@ export function ringFilters(clicks, W, H, fps, color) {
|
|
|
261
232
|
});
|
|
262
233
|
return steps;
|
|
263
234
|
}
|
|
264
|
-
//# sourceMappingURL=zoom.js.map
|
package/dist/wgcRecorder.js
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recorder process for window recordings through Windows Graphics Capture
|
|
3
|
-
* (#113). See utils/wgc.ts for why it exists. Started by start_recording as
|
|
4
|
-
*
|
|
5
|
-
* node wgcRecorder.js '<WgcRecorderConfig as JSON>'
|
|
6
|
-
*
|
|
7
|
-
* and stopped like ffmpeg: "q" on stdin, stdin closing (the server went away),
|
|
8
|
-
* the stop file appearing (a stop from another server instance, #182), or the
|
|
9
|
-
* duration cap finalizes the file and exits 0. If the window closes, the
|
|
10
|
-
* recording ends there too, with WGC_WINDOW_CLOSED_EXIT (#240). Every exit
|
|
11
|
-
* path kills the grab, encoder and nudge children first (#208). Diagnostics go
|
|
12
|
-
* to stderr; the first frame prints an ffmpeg-style "start:" banner the
|
|
13
|
-
* session code reads.
|
|
14
|
-
*/
|
|
15
1
|
import { spawn } from "node:child_process";
|
|
16
2
|
import { existsSync, rmSync } from "node:fs";
|
|
17
3
|
import { buildWgcEncodeArgs, buildWgcGrabArgs, framesDue, parseRawSize, nudgeScript, startBanner, yuv420FrameBytes, wgcStopFile, WGC_WINDOW_CLOSED_EXIT, } from "./utils/wgc.js";
|
|
18
|
-
/** Give up if the window produces no frame at all within this long. */
|
|
19
4
|
const FIRST_FRAME_TIMEOUT_MS = 10_000;
|
|
20
|
-
/** Skip a frame instead of queueing when the encoder is this far behind. */
|
|
21
5
|
const MAX_QUEUED_FRAMES = 4;
|
|
22
6
|
const cfg = JSON.parse(process.argv[2] ?? "{}");
|
|
23
7
|
const log = (s) => process.stderr.write(s.endsWith("\n") ? s : `${s}\n`);
|
|
24
8
|
const grab = spawn(cfg.ffmpeg, buildWgcGrabArgs(cfg.hwnd, cfg.fps), { stdio: ["ignore", "pipe", "pipe"], windowsHide: true });
|
|
25
|
-
// Tiny repaints for the whole recording; see nudgeScript.
|
|
26
9
|
const nudge = spawn("powershell", ["-NoProfile", "-NonInteractive", "-Command", nudgeScript(cfg.hwnd, 200, process.pid)], {
|
|
27
10
|
stdio: "ignore",
|
|
28
11
|
windowsHide: true,
|
|
@@ -45,12 +28,9 @@ function killChild(c) {
|
|
|
45
28
|
c.kill();
|
|
46
29
|
}
|
|
47
30
|
catch {
|
|
48
|
-
/* already gone */
|
|
49
31
|
}
|
|
50
32
|
}
|
|
51
33
|
}
|
|
52
|
-
/** Kill every child, then exit: no grab, encoder or repaint loop outlives the
|
|
53
|
-
* recorder on any path (#208). */
|
|
54
34
|
function exitWith(code) {
|
|
55
35
|
killChild(nudge);
|
|
56
36
|
killChild(grab);
|
|
@@ -58,9 +38,6 @@ function exitWith(code) {
|
|
|
58
38
|
rmSync(stopFile, { force: true });
|
|
59
39
|
process.exit(code);
|
|
60
40
|
}
|
|
61
|
-
/** Cut whole frames off the buffered bytes; the newest becomes `latest`. Runs
|
|
62
|
-
* from both handlers: the size line (stderr) and the frames (stdout) can
|
|
63
|
-
* arrive in either order, and a static window may send nothing more. */
|
|
64
41
|
function drain() {
|
|
65
42
|
if (!size || finishing)
|
|
66
43
|
return;
|
|
@@ -96,7 +73,6 @@ function begin() {
|
|
|
96
73
|
encoder.stderr?.on("data", (d) => log(d.toString()));
|
|
97
74
|
encoder.on("exit", (code) => exitWith(code === 0 && windowClosed ? WGC_WINDOW_CLOSED_EXIT : (code ?? 1)));
|
|
98
75
|
encoder.stdin?.on("error", () => {
|
|
99
|
-
// The encoder went away; its exit handler reports it.
|
|
100
76
|
});
|
|
101
77
|
startedAt = Date.now();
|
|
102
78
|
log(startBanner(startedAt));
|
|
@@ -105,7 +81,7 @@ function begin() {
|
|
|
105
81
|
const due = framesDue(Date.now() - startedAt, cfg.fps);
|
|
106
82
|
while (written < due && latest && encoder?.stdin?.writable) {
|
|
107
83
|
if ((encoder.stdin.writableLength ?? 0) > MAX_QUEUED_FRAMES * frameBytes) {
|
|
108
|
-
written = due;
|
|
84
|
+
written = due;
|
|
109
85
|
break;
|
|
110
86
|
}
|
|
111
87
|
encoder.stdin.write(latest);
|
|
@@ -117,8 +93,6 @@ function begin() {
|
|
|
117
93
|
if (cfg.maxDurationSec > 0)
|
|
118
94
|
finishAfter(cfg.maxDurationSec * 1000);
|
|
119
95
|
}
|
|
120
|
-
/** setTimeout clamps delays past 2^31-1 ms to 1 ms, so a long cap is chained
|
|
121
|
-
* in steps instead of firing at once (#184). */
|
|
122
96
|
function finishAfter(ms) {
|
|
123
97
|
const step = Math.min(ms, 2 ** 31 - 1);
|
|
124
98
|
setTimeout(() => (ms > step ? finishAfter(ms - step) : finish()), step);
|
|
@@ -136,7 +110,6 @@ function finish() {
|
|
|
136
110
|
exitWith(1);
|
|
137
111
|
}
|
|
138
112
|
encoder.stdin?.end();
|
|
139
|
-
// encoder's exit handler ends this process with its exit code.
|
|
140
113
|
}
|
|
141
114
|
grab.on("exit", () => {
|
|
142
115
|
if (finishing)
|
|
@@ -156,7 +129,6 @@ setTimeout(() => {
|
|
|
156
129
|
exitWith(1);
|
|
157
130
|
}
|
|
158
131
|
}, FIRST_FRAME_TIMEOUT_MS);
|
|
159
|
-
// A stop from another server instance, which has no stdin handle (#182).
|
|
160
132
|
rmSync(stopFile, { force: true });
|
|
161
133
|
setInterval(() => {
|
|
162
134
|
if (existsSync(stopFile))
|
|
@@ -169,4 +141,3 @@ process.stdin.on("data", (d) => {
|
|
|
169
141
|
finish();
|
|
170
142
|
});
|
|
171
143
|
process.stdin.on("end", finish);
|
|
172
|
-
//# sourceMappingURL=wgcRecorder.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmhs/screencast-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Let AI agents record the Windows screen, watch it as frames, and edit it with ffmpeg",
|
|
5
5
|
"mcpName": "io.github.TMHSDigital/screencast-mcp",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"screencast-mcp": "dist/index.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
-
"dist",
|
|
12
|
+
"dist/**/*.js",
|
|
13
13
|
"assets",
|
|
14
14
|
"README.md",
|
|
15
15
|
"LICENSE"
|
|
@@ -19,12 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc",
|
|
22
|
-
"typecheck": "tsc --noEmit",
|
|
22
|
+
"typecheck": "tsc --noEmit && tsc -p src/__tests__",
|
|
23
23
|
"lint": "eslint .",
|
|
24
24
|
"dev": "tsx watch src/index.ts",
|
|
25
25
|
"start": "node dist/index.js",
|
|
26
26
|
"test": "vitest run",
|
|
27
27
|
"test:watch": "vitest",
|
|
28
|
+
"eval": "tsx evals/run.ts",
|
|
29
|
+
"typecheck:evals": "tsc -p evals/tsconfig.json",
|
|
28
30
|
"prepublishOnly": "npm run build"
|
|
29
31
|
},
|
|
30
32
|
"author": "TMHSDigital",
|
|
@@ -64,8 +66,10 @@
|
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|
|
66
68
|
"@eslint/js": "^10.0.1",
|
|
69
|
+
"@types/jsdom": "^30.0.0",
|
|
67
70
|
"@types/node": "^22.15.3",
|
|
68
71
|
"eslint": "^10.5.0",
|
|
72
|
+
"jsdom": "^30.1.3",
|
|
69
73
|
"tsx": "^4.19.4",
|
|
70
74
|
"typescript": "^5.8.3",
|
|
71
75
|
"typescript-eslint": "^8.61.1",
|
package/dist/context.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Process-wide singletons shared by every tool. */
|
|
2
|
-
import { SessionStore } from "./utils/sessions.js";
|
|
3
|
-
/** Lazily construct and load the on-disk session registry. */
|
|
4
|
-
export declare function getStore(): SessionStore;
|
|
5
|
-
/** Set once shutdown begins: from then on nothing writes to the client, whose
|
|
6
|
-
* pipe may already be closed (#229). */
|
|
7
|
-
export declare function markShuttingDown(): void;
|
|
8
|
-
export declare function isShuttingDown(): boolean;
|
|
9
|
-
//# sourceMappingURL=context.d.ts.map
|
package/dist/context.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,8DAA8D;AAC9D,wBAAgB,QAAQ,IAAI,YAAY,CAMvC;AAID;wCACwC;AACxC,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
|
package/dist/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,IAAI,KAAK,GAAwB,IAAI,CAAC;AAEtC,8DAA8D;AAC9D,MAAM,UAAU,QAAQ;IACtB,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,KAAK,GAAG,IAAI,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC;QACzC,KAAK,CAAC,IAAI,EAAE,CAAC;IACf,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,IAAI,YAAY,GAAG,KAAK,CAAC;AAEzB;wCACwC;AACxC,MAAM,UAAU,gBAAgB;IAC9B,YAAY,GAAG,IAAI,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAA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KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,gBAAgB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAC3E,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/prompts.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
/** The workflow texts, exported so tests can check they name real tools. */
|
|
3
|
-
export declare const PROMPT_TEXT: {
|
|
4
|
-
bugReproClip: (target: string, notes: string) => string;
|
|
5
|
-
demoGif: (target: string, maxMB: string) => string;
|
|
6
|
-
verifyUiChange: (target: string, expectation: string) => string;
|
|
7
|
-
reviewRecording: (path: string) => string;
|
|
8
|
-
};
|
|
9
|
-
export declare function registerPrompts(server: McpServer): void;
|
|
10
|
-
//# sourceMappingURL=prompts.d.ts.map
|
package/dist/prompts.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,4EAA4E;AAC5E,eAAO,MAAM,WAAW;2BACC,MAAM,SAAS,MAAM;sBAU1B,MAAM,SAAS,MAAM;6BASd,MAAM,eAAe,MAAM;4BAU5B,MAAM;CAQ/B,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAiDvD"}
|
package/dist/prompts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA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,EAAE,oBAAoB;QAC3B,WAAW,EAAE,iGAAiG;QAC9G,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE;KACpE,EACD,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CACzD,CAAC;AACJ,CAAC"}
|
package/dist/resources.d.ts
DELETED
package/dist/resources.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAoB,MAAM,yCAAyC,CAAC;AAiBtF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAiEzD"}
|
package/dist/resources.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAa,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,IAAI,GAAG,CAAC,GAAW,EAAE,KAAc,EAAE,EAAE,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE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AAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YACnE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;QACvF,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACjC,CAAC;IACH,CAAC,CACF,CAAC;IAEF,0EAA0E;IAC1E,iDAAiD;IACjD,QAAQ,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE;QACvB,IAAI,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YAAE,OAAO;QACtD,IAAI,CAAC;YACH,MAAM,CAAC,uBAAuB,EAAE,CAAC;QACnC,CAAC;QAAC,MAAM,CAAC;YACP,0BAA0B;QAC5B,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/server.d.ts
DELETED
package/dist/server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAoDpE,wBAAgB,YAAY,IAAI,SAAS,CAkDxC"}
|
package/dist/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,QAAQ,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,QAAQ,IA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