Skip to content

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.

Record everything; add What's recorded privacy note (#9)

adilei469c953afe19
diff --git a/common/config.ts b/common/config.ts
index 0054cf5..5b427cc 100644
--- a/common/config.ts
+++ b/common/config.ts
@@ -1,131 +1,51 @@
/**
- * Capture configuration — the knob the user turns to trade *consent + setup*
- * against *description accuracy*. The guiding principle: the default level
- * must work with ZERO permission prompts and ZERO manual setup, and each step
- * up is an explicit, understood opt-in.
+ * Capture configuration. The recorder captures every available signal on every
+ * recording — there is no user-facing capture level. Transparency comes from the
+ * in-app "What's recorded" note, not from a tiered picker that mostly described
+ * overlapping OS permissions.
*
- * Cost tiers (per source):
- * 0 — no prompt, no setup (works out of the box)
- * 1 — one-time OS grant (accessibility / screen-capture permission)
- * 3 — heaviest OS grant (screen-capture permission for video)
+ * This module stays the single source of truth for *which* signals exist, so the
+ * collectors, the doctor, and the evals all share one shape.
*/
-export type CaptureLevel = "basic" | "standard" | "full" | "custom";
-
export interface CaptureConfig {
- /** Foreground app switches (app name/bundle/pid). Tier 0 — no prompt. */
+ /** Foreground app switches (app name/bundle/pid). */
appActivity: boolean;
- /** Clipboard copies (formats, length, hash, short preview). Tier 0 — no prompt. */
+ /** Clipboard copies (formats, length, hash, short text preview). */
clipboard: boolean;
- /** Window titles. Tier 1 — needs an accessibility / screen-capture grant. */
+ /** Window and document titles. */
windowTitles: boolean;
- /** Active browser tab URLs. Tier 1 — needs the same grant as titles. */
+ /** Active browser tab URLs. */
browserUrls: boolean;
- /** Low-fps screen video + extracted keyframes. Tier 3 — needs screen-capture. */
+ /** Low-fps screen video + extracted keyframes. */
video: boolean;
}
export type CaptureSourceKey = keyof CaptureConfig;
-/** Preset levels. "custom" is represented by an explicit CaptureConfig, not here. */
-export const LEVEL_PRESETS: Record<Exclude<CaptureLevel, "custom">, CaptureConfig> = {
- // Zero friction: nothing here shows an OS prompt or needs setup.
- basic: {
- appActivity: true,
- clipboard: true,
- windowTitles: false,
- browserUrls: false,
- video: false,
- },
- // One-time OS grant unlocks the biggest accuracy jump (what/where, not just which app).
- standard: {
- appActivity: true,
- clipboard: true,
- windowTitles: true,
- browserUrls: true,
- video: false,
- },
- // Everything: adds screen video + frame correlation on top of standard.
- full: {
- appActivity: true,
- clipboard: true,
- windowTitles: true,
- browserUrls: true,
- video: true,
- },
+/** The recorder always captures everything. */
+export const FULL_CAPTURE: CaptureConfig = {
+ appActivity: true,
+ clipboard: true,
+ windowTitles: true,
+ browserUrls: true,
+ video: true,
};
-export const DEFAULT_LEVEL: CaptureLevel = "basic";
-
export interface CaptureSourceInfo {
key: CaptureSourceKey;
label: string;
+ /** Rough setup weight, surfaced only in the doctor: 0 none, 1 one-time OS grant, 3 screen capture. */
tier: 0 | 1 | 2 | 3;
- /** Short, human description of what enabling this costs the user. */
+ /** Short, human description of what this source needs to work (doctor diagnostics). */
cost: string;
}
-/** Metadata for the settings UI and the doctor report. */
+/** Source metadata for the doctor report (labels + platform-support diagnostics). */
export const CAPTURE_SOURCES: readonly CaptureSourceInfo[] = [
{ key: "appActivity", label: "App switches", tier: 0, cost: "No permission needed" },
{ key: "clipboard", label: "Clipboard copies", tier: 0, cost: "No permission needed" },
- {
- key: "windowTitles",
- label: "Window titles",
- tier: 1,
- cost: "One-time OS permission",
- },
- {
- key: "browserUrls",
- label: "Browser URLs",
- tier: 1,
- cost: "One-time OS permission",
- },
+ { key: "windowTitles", label: "Window titles", tier: 1, cost: "One-time OS permission" },
+ { key: "browserUrls", label: "Browser URLs", tier: 1, cost: "One-time OS permission" },
{ key: "video", label: "Screen video + keyframes", tier: 3, cost: "Screen-capture permission" },
];
-
-export function configForLevel(level: Exclude<CaptureLevel, "custom">): CaptureConfig {
- return { ...LEVEL_PRESETS[level] };
-}
-
-export interface CaptureLevelInfo {
- level: Exclude<CaptureLevel, "custom">;
- label: string;
- /** One-line summary of the consent/accuracy trade-off. */
- blurb: string;
-}
-
-/** Ordered, user-facing descriptions of the preset levels for the settings UI. */
-export const CAPTURE_LEVEL_INFO: readonly CaptureLevelInfo[] = [
- {
- level: "basic",
- label: "Basic",
- blurb: "App switches + clipboard. No permissions, no setup.",
- },
- {
- level: "standard",
- label: "Standard",
- blurb: "Adds window titles + browser URLs. One-time OS permission.",
- },
- {
- level: "full",
- label: "Full",
- blurb: "Adds screen video + keyframes. Most setup, best detail.",
- },
-];
-
-/** Reverse-map a config to a named level, or "custom" if it matches no preset. */
-export function levelForConfig(config: CaptureConfig): CaptureLevel {
- for (const level of ["basic", "standard", "full"] as const) {
- const preset = LEVEL_PRESETS[level];
- if ((Object.keys(preset) as CaptureSourceKey[]).every((k) => preset[k] === config[k])) {
- return level;
- }
- }
- return "custom";
-}
-
-/** True when the config needs no OS prompt and no manual setup (all tier-0). */
-export function isFrictionless(config: CaptureConfig): boolean {
- return CAPTURE_SOURCES.every((s) => s.tier === 0 || !config[s.key]);
-}
diff --git a/common/ipc.ts b/common/ipc.ts
index c0222a5..0a9df8a 100644
--- a/common/ipc.ts
+++ b/common/ipc.ts
@@ -1,5 +1,4 @@
import type { Analysis, AnalysisFeedback, Confidence } from "./analysis";
-import type { CaptureConfig, CaptureLevel } from "./config";
import type { BuiltSkill, SkillArchitecture, SkillPlan } from "./skill";
import type { RecorderState } from "./types";
@@ -169,16 +168,9 @@ export interface DoctorReport {
activeWindow: ActiveWindowInfo;
browserUrl: BrowserUrlInfo;
sessionsDir: string;
- captureLevel: CaptureLevel;
activeSources: DoctorSource[];
}
-/** Current capture configuration plus its resolved named level. */
-export interface CaptureState {
- level: CaptureLevel;
- config: CaptureConfig;
-}
-
/** IPC channel names — the single source of truth shared by main + preload. */
export const IPC = {
start: "recorder:start",
@@ -187,9 +179,6 @@ export const IPC = {
marker: "recorder:marker",
doctor: "doctor:check",
statusChanged: "recorder:status-changed",
- getCapture: "capture:get",
- setLevel: "capture:set-level",
- setConfig: "capture:set-config",
analyze: "analyze:start",
analyzeFeedback: "analyze:feedback",
getAnalysis: "analyze:get",
@@ -215,9 +204,6 @@ export interface SkillRecorderApi {
status(): Promise<RecorderStatus>;
marker(note: string): Promise<MarkerResult>;
doctor(): Promise<DoctorReport>;
- getCapture(): Promise<CaptureState>;
- setLevel(level: Exclude<CaptureLevel, "custom">): Promise<CaptureState>;
- setConfig(config: CaptureConfig): Promise<CaptureState>;
onStatusChanged(cb: (status: RecorderStatus) => void): () => void;
/** Run the Copilot describer on a session (defaults to the last completed one). */
analyze(sessionId?: string): Promise<AnalyzeResult>;
diff --git a/electron/doctor.ts b/electron/doctor.ts
index e6a4706..3b5be6d 100644
--- a/electron/doctor.ts
+++ b/electron/doctor.ts
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
import { createRequire } from "node:module";
import path from "node:path";
-import { CAPTURE_SOURCES } from "../common/config";
+import { CAPTURE_SOURCES, FULL_CAPTURE } from "../common/config";
import type {
ActiveWindowInfo,
BrowserUrlInfo,
@@ -14,7 +14,6 @@ import type {
} from "../common/ipc";
import { browserUrlProviderKind } from "./collectors/url-provider";
import { sessionsRoot } from "./recorder/session-store";
-import type { SettingsStore } from "./settings";
const require = createRequire(import.meta.url);
@@ -84,8 +83,8 @@ function sourceSupport(key: string, browserUrl: BrowserUrlInfo): { supported: bo
}
/** Environment readiness check surfaced in the UI and (later) a CLI `doctor` command. */
-export function runDoctor(settings: SettingsStore): DoctorReport {
- const config = settings.resolve();
+export function runDoctor(): DoctorReport {
+ const config = FULL_CAPTURE;
const browserUrl = checkBrowserUrl();
const activeSources: DoctorSource[] = CAPTURE_SOURCES.filter((s) => config[s.key]).map((s) => {
@@ -100,7 +99,6 @@ export function runDoctor(settings: SettingsStore): DoctorReport {
activeWindow: checkActiveWindow(),
browserUrl,
sessionsDir: sessionsRoot(),
- captureLevel: settings.level,
activeSources,
};
}
diff --git a/electron/ipc.ts b/electron/ipc.ts
index 4daef06..7421f76 100644
--- a/electron/ipc.ts
+++ b/electron/ipc.ts
@@ -1,12 +1,10 @@
import { ipcMain, shell } from "electron";
import path from "node:path";
-import { type CaptureConfig, type CaptureLevel, levelForConfig } from "../common/config";
import type {
AnalysisEditInput,
AnalysisFeedbackInput,
AnalyzeResult,
- CaptureState,
DeleteSessionResult,
SkillBuildInput,
SkillCreateResult,
@@ -19,37 +17,21 @@ import { createLogger } from "./logger";
import type { RecorderController } from "./recorder/controller";
import { isValidSessionId } from "./recorder/session-store";
import { deleteSession, listSessions } from "./sessions";
-import type { SettingsStore } from "./settings";
import { loadPersistedSkill, SkillBuilder } from "./skillbuilder/builder";
const log = createLogger("IPC");
-/** Wire the renderer-facing invoke channels to the recorder, describer, builder, doctor + settings. */
+/** Wire the renderer-facing invoke channels to the recorder, describer, builder + doctor. */
export function registerIpc(
recorder: RecorderController,
- settings: SettingsStore,
describer: Describer,
builder: SkillBuilder,
): void {
- const captureState = (): CaptureState => {
- const config = settings.resolve();
- return { level: levelForConfig(config), config };
- };
-
ipcMain.handle(IPC.start, () => recorder.start());
ipcMain.handle(IPC.stop, () => recorder.stop());
ipcMain.handle(IPC.status, () => recorder.status());
ipcMain.handle(IPC.marker, (_event, note: string) => recorder.marker(note));
- ipcMain.handle(IPC.doctor, () => runDoctor(settings));
- ipcMain.handle(IPC.getCapture, () => captureState());
- ipcMain.handle(IPC.setLevel, (_event, level: Exclude<CaptureLevel, "custom">) => {
- settings.setLevel(level);
- return captureState();
- });
- ipcMain.handle(IPC.setConfig, (_event, config: CaptureConfig) => {
- settings.setConfig(config);
- return captureState();
- });
+ ipcMain.handle(IPC.doctor, () => runDoctor());
const resolveSessionId = (sessionId?: string): string | null => {
if (sessionId) return sessionId;
diff --git a/electron/main.ts b/electron/main.ts
index 369d126..8fe22b4 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -1,5 +1,6 @@
import { app, globalShortcut, ipcMain, BrowserWindow } from "electron";
+import { FULL_CAPTURE } from "../common/config";
import { IPC } from "../common/ipc";
import { createCollectors } from "./collectors";
import { Describer } from "./describer/describer";
@@ -7,7 +8,6 @@ import { processSession } from "./pipeline";
import { registerIpc } from "./ipc";
import { createLogger } from "./logger";
import { RecorderController } from "./recorder/controller";
-import { SettingsStore } from "./settings";
import { SkillBuilder } from "./skillbuilder/builder";
import { createTray } from "./tray";
import { VideoRecorder } from "./video/recorder";
@@ -18,9 +18,8 @@ const log = createLogger("Main");
let recorderWindow: BrowserWindow | null = null;
let libraryWindow: BrowserWindow | null = null;
let recorderHome: Electron.Rectangle | null = null;
-let settings: SettingsStore | null = null;
const recorder = new RecorderController({
- resolveConfig: () => (settings as SettingsStore).resolve(),
+ resolveConfig: () => ({ ...FULL_CAPTURE }),
buildCollectors: createCollectors,
createVideoRecorder: () => new VideoRecorder(),
postProcess: processSession,
@@ -61,9 +60,8 @@ function openLibrary(): void {
}
app.whenReady().then(() => {
- settings = new SettingsStore();
- registerIpc(recorder, settings, describer, builder);
- log.info("Capture level:", settings.level);
+ registerIpc(recorder, describer, builder);
+ log.info("Capture: recording all sources");
ipcMain.handle(IPC.openLibrary, () => openLibrary());
ipcMain.handle(IPC.closeLibrary, () => {
diff --git a/electron/preload.cjs b/electron/preload.cjs
index 86e429b..84df48f 100644
--- a/electron/preload.cjs
+++ b/electron/preload.cjs
@@ -9,9 +9,6 @@ const IPC = {
marker: "recorder:marker",
doctor: "doctor:check",
statusChanged: "recorder:status-changed",
- getCapture: "capture:get",
- setLevel: "capture:set-level",
- setConfig: "capture:set-config",
analyze: "analyze:start",
analyzeFeedback: "analyze:feedback",
getAnalysis: "analyze:get",
@@ -36,9 +33,6 @@ contextBridge.exposeInMainWorld("skillRecorder", {
status: () => ipcRenderer.invoke(IPC.status),
marker: (note) => ipcRenderer.invoke(IPC.marker, note),
doctor: () => ipcRenderer.invoke(IPC.doctor),
- getCapture: () => ipcRenderer.invoke(IPC.getCapture),
- setLevel: (level) => ipcRenderer.invoke(IPC.setLevel, level),
- setConfig: (config) => ipcRenderer.invoke(IPC.setConfig, config),
onStatusChanged: (cb) => {
const listener = (_event, status) => cb(status);
ipcRenderer.on(IPC.statusChanged, listener);
diff --git a/electron/settings.ts b/electron/settings.ts
deleted file mode 100644
index 9fa39ed..0000000
--- a/electron/settings.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-import { readFileSync, writeFileSync } from "node:fs";
-import path from "node:path";
-
-import { app } from "electron";
-
-import {
- type CaptureConfig,
- type CaptureLevel,
- configForLevel,
- DEFAULT_LEVEL,
- levelForConfig,
- LEVEL_PRESETS,
-} from "../common/config";
-import { createLogger } from "./logger";
-
-const log = createLogger("Settings");
-
-interface PersistedSettings {
- level: CaptureLevel;
- /** Only meaningful when level === "custom". */
- custom?: CaptureConfig;
-}
-
-/**
- * Persists the user's capture-level choice to `<userData>/settings.json` and
- * resolves it into a concrete CaptureConfig for the recorder. Defaults to the
- * frictionless `basic` level on first run so nothing prompts until the user
- * opts in.
- */
-export class SettingsStore {
- private readonly file: string;
- private settings: PersistedSettings;
-
- constructor() {
- this.file = path.join(app.getPath("userData"), "settings.json");
- this.settings = this.load();
- }
-
- private load(): PersistedSettings {
- try {
- const raw = JSON.parse(readFileSync(this.file, "utf8")) as Partial<PersistedSettings>;
- const level = raw.level ?? DEFAULT_LEVEL;
- if (level === "custom" && raw.custom) {
- return { level, custom: { ...LEVEL_PRESETS.basic, ...raw.custom } };
- }
- if (level !== "custom") return { level };
- } catch {
- // Missing/corrupt file — fall through to default.
- }
- return { level: DEFAULT_LEVEL };
- }
-
- private save(): void {
- try {
- writeFileSync(this.file, JSON.stringify(this.settings, null, 2));
- } catch (err) {
- log.warn("failed to persist settings:", err instanceof Error ? err.message : err);
- }
- }
-
- get level(): CaptureLevel {
- return this.settings.level;
- }
-
- /** The concrete capture config in effect right now. */
- resolve(): CaptureConfig {
- if (this.settings.level === "custom" && this.settings.custom) {
- return { ...this.settings.custom };
- }
- if (this.settings.level !== "custom") {
- return configForLevel(this.settings.level);
- }
- return configForLevel("basic");
- }
-
- /** Select a named preset level. */
- setLevel(level: Exclude<CaptureLevel, "custom">): CaptureConfig {
- this.settings = { level };
- this.save();
- return this.resolve();
- }
-
- /** Apply a full custom config; normalises to a named level if it matches a preset. */
- setConfig(config: CaptureConfig): CaptureConfig {
- const level = levelForConfig(config);
- this.settings = level === "custom" ? { level, custom: { ...config } } : { level };
- this.save();
- return this.resolve();
- }
-}
diff --git a/src/App.css b/src/App.css
index 0f2762a..96f266f 100644
--- a/src/App.css
+++ b/src/App.css
@@ -427,61 +427,205 @@ button:focus-visible,
color: var(--text);
}
-.capture {
- background: var(--surface);
+.privacy-note {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ width: 100%;
+ text-align: left;
+ background: transparent;
border: 1px solid var(--line);
+ color: var(--text);
border-radius: 12px;
- padding: 11px 12px;
+ padding: 11px 13px;
+ transition: border-color 0.15s ease, background 0.15s ease;
+}
+
+.privacy-note:hover {
+ border-color: var(--line-strong);
+ background: var(--surface);
+}
+
+.privacy-note-icon {
+ display: flex;
+ flex: none;
+ color: var(--brand-ink);
+}
+
+.privacy-note-text {
display: flex;
flex-direction: column;
- gap: 9px;
+ gap: 1px;
+ flex: 1;
+ min-width: 0;
+}
+
+.privacy-note-title {
+ font-size: 12.5px;
+ font-weight: 600;
+ color: var(--text);
+ line-height: 1.25;
+}
+
+.privacy-note-sub {
+ font-size: 11px;
+ color: var(--muted);
+ line-height: 1.25;
}
-.capture-head {
+.privacy-note-chevron {
+ display: flex;
+ flex: none;
+ color: var(--faint);
+ transition: transform 0.15s ease;
+}
+
+.privacy-note:hover .privacy-note-chevron {
+ transform: translateX(2px);
+}
+
+/* What's-recorded disclosure sheet */
+.sheet-backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 40;
display: flex;
align-items: center;
- justify-content: space-between;
+ justify-content: center;
+ padding: 16px;
+ background: rgba(0, 0, 0, 0.34);
+ animation: sheet-fade 0.16s ease;
}
-.capture-custom {
- font-family: var(--mono);
- font-size: 10px;
- color: var(--muted);
+.sheet {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ width: 100%;
+ max-width: 344px;
+ max-height: calc(100vh - 32px);
+ overflow-y: auto;
+ background: var(--surface);
+ border: 1px solid var(--line);
+ border-radius: 14px;
+ padding: 18px 18px 16px;
+ box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4);
+ animation: sheet-rise 0.18s ease;
}
-.segmented {
+.sheet:focus {
+ outline: none;
+}
+
+.sheet-head {
display: flex;
- gap: 4px;
- background: var(--deck);
+ align-items: center;
+ gap: 10px;
+}
+
+.sheet-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex: none;
+ width: 30px;
+ height: 30px;
border-radius: 9px;
- padding: 3px;
+ background: var(--signal-dim);
+ color: var(--brand-ink);
}
-.seg {
- flex: 1;
- padding: 7px 6px;
- font-size: 12.5px;
- border-radius: 6px;
- background: transparent;
+.sheet-head h2 {
+ margin: 0;
+ font-size: 15px;
+ font-weight: 700;
+ color: var(--text);
+}
+
+.sheet-lead {
+ margin: 0;
+ font-size: 12px;
color: var(--muted);
- font-weight: 500;
+ line-height: 1.5;
+}
+
+.sheet-block {
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
}
-.seg:hover:not(:disabled):not(.on) {
+.sheet-block h3 {
+ margin: 0;
+ font-size: 12px;
+ font-weight: 700;
color: var(--text);
}
-.seg.on {
- background: var(--signal);
+.sheet-note {
+ margin: 0;
+ font-size: 11px;
+ font-style: italic;
+ color: var(--faint);
+}
+
+.sheet-block ul {
+ margin: 2px 0 0;
+ padding-left: 16px;
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+
+.sheet-block li {
+ font-size: 12px;
+ color: var(--muted);
+ line-height: 1.45;
+}
+
+.sheet-caution {
+ margin: 3px 0 0;
+ font-size: 11.5px;
+ line-height: 1.45;
+ color: var(--brand-ink);
+ background: var(--signal-dim);
+ border-radius: 9px;
+ padding: 9px 11px;
+}
+
+.sheet-close {
+ margin-top: 2px;
+ background: var(--brand);
color: var(--brand-fg);
+ border: 0;
+ border-radius: 10px;
+ padding: 11px;
+ font-size: 13px;
font-weight: 600;
}
-.capture-blurb {
- margin: 0;
- font-size: 11.5px;
- color: var(--muted);
- line-height: 1.4;
+.sheet-close:hover {
+ background: var(--brand-hover);
+}
+
+@keyframes sheet-fade {
+ from {
+ opacity: 0;
+ }
+}
+
+@keyframes sheet-rise {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .sheet-backdrop,
+ .sheet {
+ animation: none;
+ }
}
.sessions-open {
diff --git a/src/Recorder.tsx b/src/Recorder.tsx
index e79d560..eb18bcf 100644
--- a/src/Recorder.tsx
+++ b/src/Recorder.tsx
@@ -1,8 +1,8 @@
import { useCallback, useEffect, useState } from "react";
-import { CAPTURE_LEVEL_INFO, type CaptureLevel } from "../common/config";
-import type { CaptureState, DoctorReport, RecorderStatus } from "../common/ipc";
+import type { DoctorReport, RecorderStatus } from "../common/ipc";
import { formatMs } from "./format";
+import { WhatsRecorded } from "./WhatsRecorded";
const IS_MAC = typeof navigator !== "undefined" && /Mac/i.test(navigator.userAgent);
/** Mirrors the main-process global shortcut "CommandOrControl+Shift+R", per OS. */
@@ -11,7 +11,7 @@ const TOGGLE_SHORTCUT = IS_MAC ? "⌘⇧R" : "Ctrl+Shift+R";
export function Recorder() {
const [status, setStatus] = useState<RecorderStatus | null>(null);
const [doctor, setDoctor] = useState<DoctorReport | null>(null);
- const [capture, setCapture] = useState<CaptureState | null>(null);
+ const [showPrivacy, setShowPrivacy] = useState(false);
const [elapsed, setElapsed] = useState(0);
const [sessionCount, setSessionCount] = useState(0);
const [pendingCount, setPendingCount] = useState(0);
@@ -25,7 +25,6 @@ export function Recorder() {
useEffect(() => {
void window.skillRecorder.status().then(setStatus);
void window.skillRecorder.doctor().then(setDoctor);
- void window.skillRecorder.getCapture().then(setCapture);
void refreshCount();
return window.skillRecorder.onStatusChanged(setStatus);
}, [refreshCount]);
@@ -67,12 +66,6 @@ export function Recorder() {
if (note) await window.skillRecorder.marker(note);
}, []);
- const chooseLevel = useCallback(async (level: Exclude<CaptureLevel, "custom">) => {
- const next = await window.skillRecorder.setLevel(level);
- setCapture(next);
- setDoctor(await window.skillRecorder.doctor());
- }, []);
-
const openLibrary = useCallback(() => {
void window.skillRecorder.openLibrary();
}, []);
@@ -114,9 +107,40 @@ export function Recorder() {
Add marker
</button>
- {capture && (
- <CapturePicker level={capture.level} disabled={recording} onChoose={chooseLevel} />
- )}
+ <button className="privacy-note" onClick={() => setShowPrivacy(true)}>
+ <span className="privacy-note-icon" aria-hidden>
+ <svg width="18" height="18" viewBox="0 0 20 20" fill="none">
+ <path
+ d="M10 2.5 4 4.8v4.3c0 3.4 2.4 6.2 6 7.4 3.6-1.2 6-4 6-7.4V4.8L10 2.5Z"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinejoin="round"
+ />
+ <path
+ d="m7.4 9.8 1.9 1.9 3.4-3.6"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ </span>
+ <span className="privacy-note-text">
+ <span className="privacy-note-title">Records your screen and activity</span>
+ <span className="privacy-note-sub">See exactly what's captured</span>
+ </span>
+ <span className="privacy-note-chevron" aria-hidden>
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
+ <path
+ d="M6 4l4 4-4 4"
+ stroke="currentColor"
+ strokeWidth="1.7"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ </span>
+ </button>
<button
className={`sessions-open ${pendingCount > 0 ? "has-new" : ""}`}
@@ -203,40 +227,8 @@ export function Recorder() {
)}
<p className="hint">{TOGGLE_SHORTCUT} toggles from anywhere</p>
- </div>
- );
-}
-function CapturePicker({
- level,
- disabled,
- onChoose,
-}: {
- level: CaptureLevel;
- disabled: boolean;
- onChoose: (level: Exclude<CaptureLevel, "custom">) => void;
-}) {
- const active = CAPTURE_LEVEL_INFO.find((l) => l.level === level);
- return (
- <div className="capture">
- <div className="capture-head">
- <span className="eyebrow">Capture</span>
- {level === "custom" && <span className="capture-custom">custom</span>}
- </div>
- <div className="segmented" role="group" aria-label="Capture level">
- {CAPTURE_LEVEL_INFO.map((info) => (
- <button
- key={info.level}
- className={`seg ${level === info.level ? "on" : ""}`}
- aria-pressed={level === info.level}
- disabled={disabled}
- onClick={() => onChoose(info.level)}
- >
- {info.label}
- </button>
- ))}
- </div>
- <p className="capture-blurb">{active?.blurb ?? "A custom mix of sources is active."}</p>
+ {showPrivacy && <WhatsRecorded onClose={() => setShowPrivacy(false)} />}
</div>
);
}
diff --git a/src/WhatsRecorded.tsx b/src/WhatsRecorded.tsx
new file mode 100644
index 0000000..b02893f
--- /dev/null
+++ b/src/WhatsRecorded.tsx
@@ -0,0 +1,105 @@
+import { useEffect, useRef } from "react";
+
+/**
+ * Plain-language disclosure of what the recorder captures, where it is stored,
+ * and what leaves the machine on analysis. Every claim here is grounded in the
+ * actual collectors and describer behavior, so it must be kept in sync with them.
+ */
+export function WhatsRecorded({ onClose }: { onClose: () => void }) {
+ const sheetRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ sheetRef.current?.focus({ preventScroll: true });
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") onClose();
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, [onClose]);
+
+ return (
+ <div className="sheet-backdrop" onClick={onClose}>
+ <div
+ ref={sheetRef}
+ className="sheet"
+ role="dialog"
+ aria-modal="true"
+ aria-labelledby="whats-recorded-title"
+ tabIndex={-1}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <header className="sheet-head">
+ <span className="sheet-icon" aria-hidden>
+ <svg width="18" height="18" viewBox="0 0 20 20" fill="none">
+ <path
+ d="M10 2.5 4 4.8v4.3c0 3.4 2.4 6.2 6 7.4 3.6-1.2 6-4 6-7.4V4.8L10 2.5Z"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinejoin="round"
+ />
+ <path
+ d="m7.4 9.8 1.9 1.9 3.4-3.6"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ </span>
+ <h2 id="whats-recorded-title">What's recorded</h2>
+ </header>
+
+ <p className="sheet-lead">
+ This tool records your screen and activity so it can turn what you did into a reusable
+ skill. Here is exactly what it captures and what leaves your computer.
+ </p>
+
+ <section className="sheet-block">
+ <h3>While you're recording</h3>
+ <p className="sheet-note">Only between Start and Stop.</p>
+ <ul>
+ <li>Which apps you switch to, and their window and document titles.</li>
+ <li>Web addresses of the pages you open.</li>
+ <li>A short preview of text you copy, up to 120 characters.</li>
+ <li>A silent video of your screen at a low frame rate. No microphone or audio.</li>
+ </ul>
+ <p className="sheet-caution">
+ If you copy something sensitive like a password while recording, its preview is captured.
+ Stop the recording or avoid copying secrets during a session.
+ </p>
+ </section>
+
+ <section className="sheet-block">
+ <h3>Where it's stored</h3>
+ <ul>
+ <li>Everything is saved on this computer, in the app's own session folder.</li>
+ <li>Recordings stay until you delete them. You can delete any recording from Sessions.</li>
+ </ul>
+ </section>
+
+ <section className="sheet-block">
+ <h3>What's sent for analysis</h3>
+ <ul>
+ <li>Nothing leaves your computer while you record.</li>
+ <li>
+ When you choose Analyze, the timeline, the recorded events, and screenshots from your
+ video are sent to a Copilot AI model so it can describe what you did.
+ </li>
+ </ul>
+ </section>
+
+ <section className="sheet-block">
+ <h3>What it never does</h3>
+ <ul>
+ <li>It does not log your keystrokes.</li>
+ <li>It only captures while a recording is running. Nothing runs in the background.</li>
+ </ul>
+ </section>
+
+ <button className="sheet-close" onClick={onClose}>
+ Got it
+ </button>
+ </div>
+ </div>
+ );
+}