Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.
TypeScript agent-skillsai-agentsautomationcopilotcopilot-clicopilot-coworkcopilot-studioelectronmicrosoft-scoutscreen-recording
Merge master into recording overlay
Giorgio Ughiniea739c4143c6
diff --cc electron/main.tsindex 7f0ca18,1d30350..8fb0f73--- a/electron/main.ts+++ b/electron/main.ts@@@ -1,7 -1,7 +1,7 @@@- import { app, globalShortcut, ipcMain, BrowserWindow, screen } from "electron";-import { app, BrowserWindow, globalShortcut, ipcMain, Menu } from "electron";++import { app, BrowserWindow, globalShortcut, ipcMain, Menu, screen } from "electron";import { FULL_CAPTURE } from "../common/config";-import { IPC } from "../common/ipc";+import { IPC, type RecorderStatus } from "../common/ipc";import { createCollectors } from "./collectors";import { Describer } from "./describer/describer";import { processSession } from "./pipeline";@@@ -91,79 -75,9 +91,81 @@@ function openLibrary(): void});}+function ensureRecordingControlsWindow(): BrowserWindow {+ if (recordingControlsWindow && !recordingControlsWindow.isDestroyed()) {+ return recordingControlsWindow;+ }+ controlsExpanded = false;+ recordingControlsWindow = createRecordingControlsWindow();+ recordingControlsWindow.on("closed", () => {+ recordingControlsWindow = null;+ controlsExpanded = false;+ });+ return recordingControlsWindow;+}++function showRecordingControls(): void {+ const win = ensureRecordingControlsWindow();+ clampRecordingControlsWindow(win);+ if (!win.isVisible()) win.showInactive();+ win.moveTop();+}++function showRecorderWindow(): void {+ if (!recorderWindow || recorderWindow.isDestroyed()) {+ recorderWindow = createRecorderWindow();+ }+ recorderWindow.show();+ recorderWindow.focus();+}++/** Keep the full HUD and compact overlay mutually exclusive. */+function syncRecordingWindows(status: RecorderStatus): void {+ if (status.state === "recording") {+ if (libraryWindow && !libraryWindow.isDestroyed()) libraryWindow.close();+ if (recorderWindow && !recorderWindow.isDestroyed()) recorderWindow.hide();+ showRecordingControls();+ return;+ }+ // A start emits an idle/starting status before the session folder exists.+ if (status.transition === "starting") return;++ if (recordingControlsWindow && !recordingControlsWindow.isDestroyed()) {+ const controls = recordingControlsWindow;+ if (controlsExpanded) {+ setRecordingControlsExpanded(controls, false);+ controlsExpanded = false;+ }+ controls.hide();+ // Let an overlay-originated stop/discard IPC reply reach its renderer before+ // tearing that renderer down. A recording restarted in the same turn reuses it.+ setTimeout(() => {+ if (+ recorder.state === "idle" &&+ recordingControlsWindow === controls &&+ !controls.isDestroyed()+ ) {+ controls.destroy();+ recordingControlsWindow = null;+ }+ }, 500);+ }+ if (recorderWindow && !recorderWindow.isDestroyed()) {+ const wasHidden = !recorderWindow.isVisible();+ recorderWindow.show();+ if (wasHidden) recorderWindow.focus();+ }+}++function clampControlsToDisplay(): void {+ if (recordingControlsWindow && !recordingControlsWindow.isDestroyed()) {+ clampRecordingControlsWindow(recordingControlsWindow);+ }+}+app.whenReady().then(() => {+ if (process.platform === "win32") Menu.setApplicationMenu(null);+narration.initialize();registerIpc(recorder, describer, builder, automationBuilder, narration);log.info("Capture: recording all sources");