@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.
Files changed (47) hide show
  1. package/README.md +8 -7
  2. package/dist/resources.js +26 -0
  3. package/dist/server.js +2 -0
  4. package/dist/tools/backdrop.js +1 -11
  5. package/dist/tools/bugReport.js +5 -28
  6. package/dist/tools/burnSubtitles.js +2 -2
  7. package/dist/tools/callout.js +7 -49
  8. package/dist/tools/contactSheet.js +3 -24
  9. package/dist/tools/cursor.js +2 -22
  10. package/dist/tools/deleteRecording.js +119 -0
  11. package/dist/tools/denoise.js +2 -2
  12. package/dist/tools/findText.js +1 -3
  13. package/dist/tools/indexRecording.js +6 -6
  14. package/dist/tools/keystrokeOverlay.js +3 -44
  15. package/dist/tools/normalizeAudio.js +3 -4
  16. package/dist/tools/pipeline.js +16 -19
  17. package/dist/tools/redactRegion.js +7 -16
  18. package/dist/tools/reframe.js +3 -3
  19. package/dist/tools/sampleFrames.js +6 -2
  20. package/dist/tools/stepGuide.js +13 -10
  21. package/dist/tools/titleCard.js +1 -1
  22. package/dist/tools/waitForChange.js +28 -46
  23. package/dist/tools/zoom.js +3 -18
  24. package/dist/utils/audio.js +4 -0
  25. package/dist/utils/backdrop.js +12 -1
  26. package/dist/utils/bugReport.js +23 -0
  27. package/dist/utils/callout.js +48 -2
  28. package/dist/utils/captions.js +1 -0
  29. package/dist/utils/cursor.js +22 -1
  30. package/dist/utils/diff.js +6 -4
  31. package/dist/utils/frameQueue.js +50 -0
  32. package/dist/utils/images.js +4 -4
  33. package/dist/utils/keystrokes.js +44 -1
  34. package/dist/utils/media.js +27 -3
  35. package/dist/utils/ocrScan.js +35 -19
  36. package/dist/utils/paths.js +3 -0
  37. package/dist/utils/pool.js +29 -0
  38. package/dist/utils/produce.js +2 -0
  39. package/dist/utils/recordingFiles.js +32 -0
  40. package/dist/utils/replay.js +16 -23
  41. package/dist/utils/sessions.js +25 -0
  42. package/dist/utils/sheet.js +25 -2
  43. package/dist/utils/toolSpec.js +6 -0
  44. package/dist/utils/toolsets.js +1 -0
  45. package/dist/utils/waitLoop.js +50 -0
  46. package/dist/utils/zoom.js +18 -0
  47. package/package.json +1 -1
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmhs/screencast-mcp",
3
- "version": "0.48.2",
3
+ "version": "0.49.1",
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",