@tmhs/screencast-mcp 0.48.2 → 0.49.1
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 +8 -7
- package/dist/resources.js +26 -0
- package/dist/server.js +2 -0
- package/dist/tools/backdrop.js +1 -11
- package/dist/tools/bugReport.js +5 -28
- package/dist/tools/burnSubtitles.js +2 -2
- package/dist/tools/callout.js +7 -49
- package/dist/tools/contactSheet.js +3 -24
- package/dist/tools/cursor.js +2 -22
- package/dist/tools/deleteRecording.js +119 -0
- package/dist/tools/denoise.js +2 -2
- package/dist/tools/findText.js +1 -3
- package/dist/tools/indexRecording.js +6 -6
- package/dist/tools/keystrokeOverlay.js +3 -44
- package/dist/tools/normalizeAudio.js +3 -4
- package/dist/tools/pipeline.js +16 -19
- package/dist/tools/redactRegion.js +7 -16
- package/dist/tools/reframe.js +3 -3
- package/dist/tools/sampleFrames.js +6 -2
- package/dist/tools/stepGuide.js +13 -10
- package/dist/tools/titleCard.js +1 -1
- package/dist/tools/waitForChange.js +28 -46
- package/dist/tools/zoom.js +3 -18
- package/dist/utils/audio.js +4 -0
- package/dist/utils/backdrop.js +12 -1
- package/dist/utils/bugReport.js +23 -0
- package/dist/utils/callout.js +48 -2
- package/dist/utils/captions.js +1 -0
- package/dist/utils/cursor.js +22 -1
- package/dist/utils/diff.js +6 -4
- package/dist/utils/frameQueue.js +50 -0
- package/dist/utils/images.js +4 -4
- package/dist/utils/keystrokes.js +44 -1
- package/dist/utils/media.js +27 -3
- package/dist/utils/ocrScan.js +35 -19
- package/dist/utils/paths.js +3 -0
- package/dist/utils/pool.js +29 -0
- package/dist/utils/produce.js +2 -0
- package/dist/utils/recordingFiles.js +32 -0
- package/dist/utils/replay.js +16 -23
- package/dist/utils/sessions.js +25 -0
- package/dist/utils/sheet.js +25 -2
- package/dist/utils/toolSpec.js +6 -0
- package/dist/utils/toolsets.js +1 -0
- package/dist/utils/waitLoop.js +50 -0
- package/dist/utils/zoom.js +18 -0
- package/package.json +1 -1
package/dist/utils/zoom.js
CHANGED
|
@@ -2,6 +2,9 @@ import { ScreencastError } from "./errors.js";
|
|
|
2
2
|
import { diffFrames } from "./diff.js";
|
|
3
3
|
import { resolveQuality } from "./targets.js";
|
|
4
4
|
import { sumExpr } from "./expr.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
7
|
+
import { parseEventsJsonl } from "./events.js";
|
|
5
8
|
export const DEFAULT_TRANSITION_SEC = 0.6;
|
|
6
9
|
export const MAX_ZOOM = 6;
|
|
7
10
|
export const DEFAULT_AUTO_MAX_ZOOM = 2.5;
|
|
@@ -232,3 +235,18 @@ export function ringFilters(clicks, W, H, fps, color) {
|
|
|
232
235
|
});
|
|
233
236
|
return steps;
|
|
234
237
|
}
|
|
238
|
+
export function readClicks(path) {
|
|
239
|
+
if (!existsSync(path))
|
|
240
|
+
return null;
|
|
241
|
+
return parseEventsJsonl(readFileSync(path, "utf8"))
|
|
242
|
+
.filter((e) => e.type === "down" && e.inFrame)
|
|
243
|
+
.map((e) => ({ t: e.t, x: e.x, y: e.y }));
|
|
244
|
+
}
|
|
245
|
+
export const zoomKeyframeSchema = z.object({
|
|
246
|
+
t: z.number().nonnegative(),
|
|
247
|
+
x: z.number().optional(),
|
|
248
|
+
y: z.number().optional(),
|
|
249
|
+
width: z.number().positive().optional(),
|
|
250
|
+
height: z.number().positive().optional(),
|
|
251
|
+
full: z.boolean().optional(),
|
|
252
|
+
});
|
package/package.json
CHANGED