@tmhs/screencast-mcp 0.44.2 → 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 +41 -7
- package/assets/ui/player.html +9 -0
- package/assets/ui/player.js +20 -0
- package/dist/index.js +12 -0
- package/dist/prompts.js +18 -1
- package/dist/server.js +12 -0
- package/dist/tools/addMarker.js +89 -0
- package/dist/tools/backdrop.js +89 -0
- package/dist/tools/bugReport.js +266 -0
- package/dist/tools/chapters.js +156 -0
- package/dist/tools/contactSheet.js +19 -17
- package/dist/tools/findText.js +14 -64
- package/dist/tools/keystrokeOverlay.js +131 -0
- package/dist/tools/pipeline.js +56 -4
- package/dist/tools/reviewRecording.js +12 -0
- package/dist/tools/saveReplay.js +90 -0
- package/dist/tools/startRecording.js +51 -10
- package/dist/tools/stopRecording.js +25 -1
- package/dist/utils/backdrop.js +151 -0
- package/dist/utils/bugReport.js +246 -0
- package/dist/utils/chapters.js +222 -0
- package/dist/utils/keystrokes.js +170 -0
- package/dist/utils/lifecycle.js +11 -2
- package/dist/utils/media.js +5 -2
- package/dist/utils/ocrScan.js +77 -0
- package/dist/utils/pipeline.js +39 -2
- package/dist/utils/replay.js +278 -0
- package/dist/utils/toolsets.js +23 -3
- package/package.json +1 -1
package/dist/utils/toolsets.js
CHANGED
|
@@ -3,9 +3,11 @@ export const TOOLSETS = {
|
|
|
3
3
|
capture: [
|
|
4
4
|
"start_recording",
|
|
5
5
|
"stop_recording",
|
|
6
|
+
"save_replay",
|
|
6
7
|
"list_sessions",
|
|
7
8
|
"get_session",
|
|
8
9
|
"read_events",
|
|
10
|
+
"add_marker",
|
|
9
11
|
"screenshot",
|
|
10
12
|
"list_targets",
|
|
11
13
|
"list_audio_devices",
|
|
@@ -35,6 +37,8 @@ export const TOOLSETS = {
|
|
|
35
37
|
],
|
|
36
38
|
produce: [
|
|
37
39
|
"callout",
|
|
40
|
+
"keystroke_overlay",
|
|
41
|
+
"backdrop",
|
|
38
42
|
"overlay",
|
|
39
43
|
"zoom",
|
|
40
44
|
"reframe",
|
|
@@ -43,6 +47,8 @@ export const TOOLSETS = {
|
|
|
43
47
|
"assemble_highlights",
|
|
44
48
|
"export_preset",
|
|
45
49
|
"burn_subtitles",
|
|
50
|
+
"chapters",
|
|
51
|
+
"bug_report",
|
|
46
52
|
],
|
|
47
53
|
audio: ["extract_audio", "normalize_audio", "denoise", "transcribe", "music_bed"],
|
|
48
54
|
};
|
|
@@ -75,19 +81,33 @@ export function serverInstructions(selection) {
|
|
|
75
81
|
];
|
|
76
82
|
if (on.has("capture")) {
|
|
77
83
|
lines.push("Capture: screenshot for a still; start_recording -> (do the task) -> stop_recording for video " +
|
|
78
|
-
"(events: true also logs clicks for read_events and zoom).
|
|
84
|
+
"(events: true also logs clicks for read_events and zoom). For flaky failures, start_recording " +
|
|
85
|
+
"{ replayBufferSec } keeps a rolling buffer and save_replay writes the last seconds after the fact. " +
|
|
86
|
+
"Never start a recording the user did not ask for.");
|
|
79
87
|
}
|
|
80
88
|
if (on.has("watch")) {
|
|
81
89
|
lines.push("Look: contact_sheet is the cheapest overview, sample_frames (mode scenes) for detail, find_text for OCR " +
|
|
82
90
|
"and secret finding, wait_for_change instead of sleeping, screen_diff to compare two states.");
|
|
83
91
|
}
|
|
84
92
|
if (on.has("edit")) {
|
|
85
|
-
lines.push("Edit: prefer one pipeline call (trim, crop, scale, speed, redact, callout, reframe, zoom, then " +
|
|
93
|
+
lines.push("Edit: prefer one pipeline call (trim, crop, scale, speed, redact, callout, keystroke_overlay, reframe, zoom, backdrop, then " +
|
|
86
94
|
"export_preset or export_gif) over chaining single-edit tools; each tool call re-encodes. trim = one " +
|
|
87
95
|
"segment, clip = several files; export_gif for size-bounded GIF/WebP, compress for a smaller mp4.");
|
|
88
96
|
}
|
|
89
97
|
if (on.has("produce")) {
|
|
90
|
-
lines.push("Produce: callout, zoom, overlay, title_card, xfade_transition, assemble_highlights, burn_subtitles, export_preset.");
|
|
98
|
+
lines.push("Produce: callout, zoom, keystroke_overlay, backdrop, overlay, title_card, xfade_transition, assemble_highlights, burn_subtitles, export_preset.");
|
|
99
|
+
}
|
|
100
|
+
if (on.has("produce")) {
|
|
101
|
+
lines.push("Bug reports: bug_report turns a recording (path or sessionId) into one redacted folder: clip, GIF, " +
|
|
102
|
+
"contact sheet, steps from the event log, OCR'd error text, environment, and report.md.");
|
|
103
|
+
}
|
|
104
|
+
if (on.has("capture") || on.has("produce")) {
|
|
105
|
+
const marks = [
|
|
106
|
+
on.has("capture") && "add_marker stamps a labelled moment during a recording (or at a second of a file).",
|
|
107
|
+
on.has("produce") && "chapters writes markers, scene changes, or a transcript as mp4/mkv chapters plus YouTube text.",
|
|
108
|
+
on.has("edit") && "pipeline chapters: true keeps markers as chapters through trims and speed.",
|
|
109
|
+
];
|
|
110
|
+
lines.push(`Markers: ${marks.filter(Boolean).join(" ")}`);
|
|
91
111
|
}
|
|
92
112
|
if (on.has("audio")) {
|
|
93
113
|
lines.push("Audio: extract_audio, normalize_audio, denoise, music_bed; transcribe makes an SRT for burn_subtitles.");
|
package/package.json
CHANGED