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.

Add per-session "download details" debug bundle (#42)

adilei90060a453fb9
diff --git a/common/ipc.ts b/common/ipc.ts
index f80e332..bc0eb6c 100644
--- a/common/ipc.ts
+++ b/common/ipc.ts
@@ -275,6 +275,16 @@ export interface DeleteSessionResult {
error?: string;
}
+/** Result of packaging a recording into a downloadable debug bundle (.zip). */
+export interface DebugBundleResult {
+ ok: boolean;
+ /** Absolute path of the written .zip on success. */
+ path?: string;
+ /** True when the user dismissed the save dialog — a cancel, not an error. */
+ canceled?: boolean;
+ error?: string;
+}
+
export interface CopilotInfo {
ok: boolean;
path: string | null;
@@ -345,6 +355,7 @@ export const IPC = {
analyzeProgress: "analyze:progress",
listSessions: "sessions:list",
deleteSession: "sessions:delete",
+ exportDebugBundle: "sessions:export-debug",
buildSkill: "skill:build",
createSkill: "skill:create",
getSkill: "skill:get",
@@ -403,6 +414,12 @@ export interface SkillRecorderApi {
listSessions(): Promise<SessionSummary[]>;
/** Permanently delete a saved recording and all its artifacts from disk. */
deleteSession(sessionId: string): Promise<DeleteSessionResult>;
+ /**
+ * Package a single recording (its whole session folder plus a generated
+ * diagnostics file) into a .zip the user picks a location for. The bundle
+ * contains private capture data; the renderer warns before calling this.
+ */
+ exportDebugBundle(sessionId: string): Promise<DebugBundleResult>;
/**
* Propose (or refine) a skill from a recording's analysis. Pass `feedback` to
* revise the current plan in the same multi-turn conversation.
diff --git a/electron/debug-bundle.test.ts b/electron/debug-bundle.test.ts
new file mode 100644
index 0000000..369ec30
--- /dev/null
+++ b/electron/debug-bundle.test.ts
@@ -0,0 +1,59 @@
+import assert from "node:assert/strict";
+import { execFileSync } from "node:child_process";
+import { existsSync } from "node:fs";
+import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import path from "node:path";
+import test from "node:test";
+
+import { writeDebugBundle } from "./debug-bundle";
+
+test("writeDebugBundle zips the whole session under session/ next to debug-info.json", async () => {
+ const root = await mkdtemp(path.join(tmpdir(), "skill-recorder-debug-"));
+ const previousRoot = process.env.SKILL_RECORDER_SESSIONS_DIR;
+ process.env.SKILL_RECORDER_SESSIONS_DIR = root;
+
+ try {
+ const id = "debug-test";
+ const dir = path.join(root, id);
+ await mkdir(path.join(dir, "frames"), { recursive: true });
+ await writeFile(path.join(dir, "session.json"), JSON.stringify({ id }));
+ await writeFile(path.join(dir, "events.jsonl"), '{"seq":0}\n');
+ await writeFile(path.join(dir, "frames", "event_1000.jpg"), Buffer.alloc(8, 7));
+
+ const dest = path.join(root, "bundle.zip");
+ await writeDebugBundle(id, dest, { sessionId: id, marker: "diagnostics" });
+
+ assert.ok(existsSync(dest), "zip file should be written");
+ const head = await readFile(dest);
+ assert.deepEqual(
+ [...head.subarray(0, 4)],
+ [0x50, 0x4b, 0x03, 0x04],
+ "output should start with the ZIP local-file-header magic",
+ );
+
+ const names = execFileSync("unzip", ["-Z1", dest], { encoding: "utf8" })
+ .split(/\r?\n/)
+ .filter(Boolean);
+ assert.ok(names.includes("debug-info.json"), "carries a top-level debug-info.json");
+ assert.ok(
+ names.includes("session/session.json"),
+ "nests the recording's files under session/",
+ );
+ assert.ok(
+ names.includes("session/frames/event_1000.jpg"),
+ "includes nested session artifacts (frames, etc.)",
+ );
+ } finally {
+ if (previousRoot === undefined) delete process.env.SKILL_RECORDER_SESSIONS_DIR;
+ else process.env.SKILL_RECORDER_SESSIONS_DIR = previousRoot;
+ await rm(root, { recursive: true, force: true });
+ }
+});
+
+test("writeDebugBundle refuses a traversal session id", async () => {
+ await assert.rejects(
+ async () => writeDebugBundle("../escape", path.join(tmpdir(), "x.zip"), {}),
+ /Invalid session id/,
+ );
+});
diff --git a/electron/debug-bundle.ts b/electron/debug-bundle.ts
new file mode 100644
index 0000000..887b70b
--- /dev/null
+++ b/electron/debug-bundle.ts
@@ -0,0 +1,99 @@
+import { createWriteStream } from "node:fs";
+import os from "node:os";
+
+import archiver from "archiver";
+import { app } from "electron";
+
+import type { DoctorReport } from "../common/ipc";
+import { runDoctor } from "./doctor";
+import { createLogger } from "./logger";
+import { sessionDir } from "./recorder/session-store";
+
+const log = createLogger("DebugBundle");
+
+/**
+ * Environment diagnostics captured at download time and written as the bundle's
+ * top-level `debug-info.json`. Deliberately separate from the recording itself so
+ * it reflects the machine *now*, not when the session was captured.
+ */
+export interface DebugInfo {
+ generatedAt: string;
+ sessionId: string;
+ app: {
+ name: string;
+ version: string;
+ /** Null on runtimes without `app.getLocale` (e.g. the headless test stub). */
+ locale: string | null;
+ };
+ runtime: {
+ platform: NodeJS.Platform;
+ arch: string;
+ osRelease: string;
+ versions: NodeJS.ProcessVersions;
+ };
+ doctor: DoctorReport;
+}
+
+/** Assemble the environment diagnostics that ride alongside a session's files. */
+export function buildDebugInfo(sessionId: string): DebugInfo {
+ return {
+ generatedAt: new Date().toISOString(),
+ sessionId,
+ app: {
+ name: app.getName(),
+ version: app.getVersion(),
+ locale: typeof app.getLocale === "function" ? app.getLocale() : null,
+ },
+ runtime: {
+ platform: process.platform,
+ arch: process.arch,
+ osRelease: os.release(),
+ versions: process.versions,
+ },
+ doctor: runDoctor(),
+ };
+}
+
+/**
+ * Stream a single recording into a downloadable `.zip` at `destZipPath`: the
+ * entire session directory (events, frames, screen video, voice audio, analysis,
+ * …) is included verbatim under `session/`, next to a top-level `debug-info.json`.
+ *
+ * The whole folder is copied on purpose — this is a debug bundle, so completeness
+ * beats size — which means it contains **private capture data**; callers must warn
+ * before invoking this. The id is validated via {@link sessionDir}, so it can
+ * never escape the sessions root.
+ */
+export function writeDebugBundle(
+ sessionId: string,
+ destZipPath: string,
+ debugInfo: unknown,
+): Promise<void> {
+ const dir = sessionDir(sessionId); // throws on traversal / invalid id
+ return new Promise<void>((resolve, reject) => {
+ let settled = false;
+ const done = (err?: Error): void => {
+ if (settled) return;
+ settled = true;
+ if (err) reject(err);
+ else resolve();
+ };
+
+ const output = createWriteStream(destZipPath);
+ const archive = archiver("zip", { zlib: { level: 6 } });
+
+ output.on("close", () => done());
+ output.on("error", (err) => done(err));
+ archive.on("error", (err) => done(err));
+ archive.on("warning", (err: NodeJS.ErrnoException) => {
+ // A file disappearing mid-archive is best-effort; anything else is fatal.
+ if (err.code === "ENOENT") log.warn("archive warning:", err.message);
+ else done(err);
+ });
+
+ archive.pipe(output);
+ archive.append(JSON.stringify(debugInfo, null, 2), { name: "debug-info.json" });
+ archive.directory(dir, "session");
+ void archive.finalize();
+ });
+}
diff --git a/electron/ipc.ts b/electron/ipc.ts
index 2c6bf9e..4599352 100644
--- a/electron/ipc.ts
+++ b/electron/ipc.ts
@@ -1,4 +1,11 @@
-import { BrowserWindow, dialog, ipcMain, shell, type OpenDialogOptions } from "electron";
+import {
+ BrowserWindow,
+ dialog,
+ ipcMain,
+ shell,
+ type OpenDialogOptions,
+ type SaveDialogOptions,
+} from "electron";
import os from "node:os";
import path from "node:path";
@@ -9,6 +16,7 @@ import type {
AutomationBuildInput,
AutomationCreateResult,
AutomationPlanResult,
+ DebugBundleResult,
DeleteSessionResult,
MicrophoneSettingsResult,
SkillBuildInput,
@@ -21,6 +29,7 @@ import type { AutomationPlan } from "../common/automation";
import type { NarrationLanguage } from "../common/narration";
import type { SkillPlan } from "../common/skill";
import { AutomationBuilder, loadPersistedAutomation } from "./automationbuilder/builder";
+import { buildDebugInfo, writeDebugBundle } from "./debug-bundle";
import { Describer, loadPersistedAnalysis } from "./describer/describer";
import { runDoctor } from "./doctor";
import { createLogger } from "./logger";
@@ -216,6 +225,44 @@ export function registerIpc(
}
});
+ ipcMain.handle(
+ IPC.exportDebugBundle,
+ async (event, sessionId: string): Promise<DebugBundleResult> => {
+ if (!isValidSessionId(sessionId)) return { ok: false, error: "Unknown session." };
+ // The session folder is still being written while it records; refuse to zip
+ // a moving target. Analyzing/building are read-only, so those are allowed.
+ if (recorder.status().sessionId === sessionId) {
+ return {
+ ok: false,
+ error: "You can't download details while this recording is still in progress.",
+ };
+ }
+ const win = BrowserWindow.fromWebContents(event.sender) ?? undefined;
+ const opts: SaveDialogOptions = {
+ title: "Download session details",
+ defaultPath: path.join(
+ os.homedir(),
+ "Downloads",
+ `skill-recorder-debug-${sessionId}.zip`,
+ ),
+ filters: [{ name: "Zip archive", extensions: ["zip"] }],
+ };
+ const result = win
+ ? await dialog.showSaveDialog(win, opts)
+ : await dialog.showSaveDialog(opts);
+ if (result.canceled || !result.filePath) return { ok: false, canceled: true };
+ try {
+ await writeDebugBundle(sessionId, result.filePath, buildDebugInfo(sessionId));
+ shell.showItemInFolder(result.filePath); // hand the file to the user to attach
+ return { ok: true, path: result.filePath };
+ } catch (err) {
+ const error = err instanceof Error ? err.message : String(err);
+ log.warn("debug bundle failed:", error);
+ return { ok: false, error };
+ }
+ },
+ );
+
ipcMain.handle(IPC.buildSkill, async (_event, input: SkillBuildInput): Promise<SkillPlanResult> => {
if (!isValidSessionId(input?.sessionId)) return { ok: false, error: "Unknown session." };
try {
diff --git a/electron/preload.cjs b/electron/preload.cjs
index 0829233..167734f 100644
--- a/electron/preload.cjs
+++ b/electron/preload.cjs
@@ -31,6 +31,7 @@ const IPC = {
analyzeProgress: "analyze:progress",
listSessions: "sessions:list",
deleteSession: "sessions:delete",
+ exportDebugBundle: "sessions:export-debug",
buildSkill: "skill:build",
createSkill: "skill:create",
getSkill: "skill:get",
@@ -112,6 +113,7 @@ contextBridge.exposeInMainWorld("skillRecorder", {
},
listSessions: () => ipcRenderer.invoke(IPC.listSessions),
deleteSession: (sessionId) => ipcRenderer.invoke(IPC.deleteSession, sessionId),
+ exportDebugBundle: (sessionId) => ipcRenderer.invoke(IPC.exportDebugBundle, sessionId),
buildSkill: (input) => ipcRenderer.invoke(IPC.buildSkill, input),
createSkill: (sessionId, plan, placement) => ipcRenderer.invoke(IPC.createSkill, sessionId, plan, placement),
getSkill: (sessionId) => ipcRenderer.invoke(IPC.getSkill, sessionId),
diff --git a/package-lock.json b/package-lock.json
index 2c7d22f..daba9f9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,6 +11,7 @@
"dependencies": {
"@github/copilot-sdk": "^1.0.6",
"@huggingface/transformers": "^4.2.0",
+ "archiver": "^7.0.1",
"koffi": "^3.1.1",
"react": "^19.2.5",
"react-dom": "^19.2.5",
@@ -19,6 +20,7 @@
},
"devDependencies": {
"@electron/asar": "^3.4.1",
+ "@types/archiver": "^6.0.4",
"@types/node": "^22.10.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
@@ -1035,7 +1037,6 @@
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/@isaacs/cliui/-/cliui-8.0.2.tgz",
"integrity": "sha1-s3Znt7wYHBaHgiWbq0JHT79StVA=",
"license": "ISC",
- "optional": true,
"dependencies": {
"string-width": "^5.1.2",
"string-width-cjs": "npm:string-width@^4.2.0",
@@ -1053,7 +1054,6 @@
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/ansi-regex/-/ansi-regex-6.2.2.tgz",
"integrity": "sha1-YCFu6kZNhkWXzigyAAc4oFiWUME=",
"license": "MIT",
- "optional": true,
"engines": {
"node": ">=12"
},
@@ -1066,7 +1066,6 @@
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/ansi-styles/-/ansi-styles-6.2.3.tgz",
"integrity": "sha1-wETV3MUhoHZBNHJZehrLHxA8QEE=",
"license": "MIT",
- "optional": true,
"engines": {
"node": ">=12"
},
@@ -1078,15 +1077,13 @@
"version": "9.2.2",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/emoji-regex/-/emoji-regex-9.2.2.tgz",
"integrity": "sha1-hAyIA7DYBH9P8M+WMXazLU7z7XI=",
- "license": "MIT",
- "optional": true
+ "license": "MIT"
},
"node_modules/@isaacs/cliui/node_modules/string-width": {
"version": "5.1.2",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/string-width/-/string-width-5.1.2.tgz",
"integrity": "sha1-FPja7G2B5yIdKjV+Zoyrc728p5Q=",
"license": "MIT",
- "optional": true,
"dependencies": {
"eastasianwidth": "^0.2.0",
"emoji-regex": "^9.2.2",
@@ -1104,7 +1101,6 @@
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/strip-ansi/-/strip-ansi-7.2.0.tgz",
"integrity": "sha1-0iomlSKDamJ6+NBLXD/Sx/o+MuM=",
"license": "MIT",
- "optional": true,
"dependencies": {
"ansi-regex": "^6.2.2"
},
@@ -1120,7 +1116,6 @@
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
"integrity": "sha1-VtwiNo7lcPrOG0mBmXXZuaXq0hQ=",
"license": "MIT",
- "optional": true,
"dependencies": {
"ansi-styles": "^6.1.0",
"string-width": "^5.0.1",
@@ -2101,6 +2096,16 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@types/archiver": {
+ "version": "6.0.4",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/@types/archiver/-/archiver-6.0.4.tgz",
+ "integrity": "sha1-wkl9fwCbl/3Z7tb9GhW8gqvZ3BM=",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/readdir-glob": "*"
+ }
+ },
"node_modules/@types/cacheable-request": {
"version": "6.0.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",
@@ -2187,6 +2192,16 @@
"@types/react": "^19.2.0"
}
},
+ "node_modules/@types/readdir-glob": {
+ "version": "1.1.5",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/@types/readdir-glob/-/readdir-glob-1.1.5.tgz",
+ "integrity": "sha1-IaSpiJj8YGy1aK2BXyoO7cJNQSo=",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/responselike": {
"version": "1.0.3",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/@types/responselike/-/responselike-1.0.3.tgz",
@@ -2580,6 +2595,18 @@
"license": "ISC",
"optional": true
},
+ "node_modules/abort-controller": {
+ "version": "3.0.0",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/abort-controller/-/abort-controller-3.0.0.tgz",
+ "integrity": "sha1-6vVNU7YrrkE46AnKIlyEOabvs5I=",
+ "license": "MIT",
+ "dependencies": {
+ "event-target-shim": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6.5"
+ }
+ },
"node_modules/acorn": {
"version": "8.17.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/acorn/-/acorn-8.17.0.tgz",
@@ -2647,7 +2674,6 @@
"version": "5.0.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha1-CCyyyJyf6GWaMRpTvWpNxTAdswQ=",
- "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -2657,7 +2683,6 @@
"version": "4.3.0",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
@@ -2839,6 +2864,125 @@
"license": "ISC",
"optional": true
},
+ "node_modules/archiver": {
+ "version": "7.0.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/archiver/-/archiver-7.0.1.tgz",
+ "integrity": "sha1-ydkcNQNiBAuJJzeceqacBlUSL2E=",
+ "license": "MIT",
+ "dependencies": {
+ "archiver-utils": "^5.0.2",
+ "async": "^3.2.4",
+ "buffer-crc32": "^1.0.0",
+ "readable-stream": "^4.0.0",
+ "readdir-glob": "^1.1.2",
+ "tar-stream": "^3.0.0",
+ "zip-stream": "^6.0.1"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/archiver-utils": {
+ "version": "5.0.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/archiver-utils/-/archiver-utils-5.0.2.tgz",
+ "integrity": "sha1-Y7xxnZUYA+/HLPlhpW74EHYN0U0=",
+ "license": "MIT",
+ "dependencies": {
+ "glob": "^10.0.0",
+ "graceful-fs": "^4.2.0",
+ "is-stream": "^2.0.1",
+ "lazystream": "^1.0.0",
+ "lodash": "^4.17.15",
+ "normalize-path": "^3.0.0",
+ "readable-stream": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/archiver-utils/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4=",
+ "license": "MIT"
+ },
+ "node_modules/archiver-utils/node_modules/brace-expansion": {
+ "version": "2.1.2",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/brace-expansion/-/brace-expansion-2.1.2.tgz",
+ "integrity": "sha1-C7oicf631Fiw0xrRNiWqpHVEMeI=",
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/archiver-utils/node_modules/glob": {
+ "version": "10.5.0",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/glob/-/glob-10.5.0.tgz",
+ "integrity": "sha1-jsA1WRnNMzjChCiiPU8k7MX+c4w=",
+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",
+ "license": "ISC",
+ "dependencies": {
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^3.1.2",
+ "minimatch": "^9.0.4",
+ "minipass": "^7.1.2",
+ "package-json-from-dist": "^1.0.0",
+ "path-scurry": "^1.11.1"
+ },
+ "bin": {
+ "glob": "dist/esm/bin.mjs"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/archiver-utils/node_modules/minimatch": {
+ "version": "9.0.9",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/minimatch/-/minimatch-9.0.9.tgz",
+ "integrity": "sha1-mwy5/LeAh/b9fqur4lEcTT1gV04=",
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/archiver-utils/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha1-ztvYoRRsE9//jasUBoAo1YwVrJE=",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/archiver/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha1-ztvYoRRsE9//jasUBoAo1YwVrJE=",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
"node_modules/are-we-there-yet": {
"version": "2.0.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
@@ -2880,7 +3024,6 @@
"version": "3.2.6",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/async/-/async-3.2.6.tgz",
"integrity": "sha1-Gwco4Ukp1RuFtEm38G4nwRReOM4=",
- "dev": true,
"license": "MIT"
},
"node_modules/async-exit-hook": {
@@ -2917,6 +3060,20 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/b4a": {
+ "version": "1.8.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/b4a/-/b4a-1.8.1.tgz",
+ "integrity": "sha1-fxYzTKgBJ66yYGSiiEGsvxdIQKQ=",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "react-native-b4a": "*"
+ },
+ "peerDependenciesMeta": {
+ "react-native-b4a": {
+ "optional": true
+ }
+ }
+ },
"node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/balanced-match/-/balanced-match-4.0.4.tgz",
@@ -2927,11 +3084,90 @@
"node": "18 || 20 || >=22"
}
},
+ "node_modules/bare-events": {
+ "version": "2.9.1",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/bare-events/-/bare-events-2.9.1.tgz",
+ "integrity": "sha1-XIZhaWY0O8sDobMVX+qyU+rb80k=",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "bare-abort-controller": "*"
+ },
+ "peerDependenciesMeta": {
+ "bare-abort-controller": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/bare-fs": {
+ "version": "4.7.4",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/bare-fs/-/bare-fs-4.7.4.tgz",
+ "integrity": "sha1-Q1CH1CR38Gft3zwsdG506dthd7w=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "bare-events": "^2.5.4",
+ "bare-path": "^3.0.0",
+ "bare-stream": "^2.6.4",
+ "bare-url": "^2.2.2",
+ "fast-fifo": "^1.3.2"
+ },
+ "engines": {
+ "bare": ">=1.16.0"
+ },
+ "peerDependencies": {
+ "bare-buffer": "*"
+ },
+ "peerDependenciesMeta": {
+ "bare-buffer": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/bare-path": {
+ "version": "3.1.1",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/bare-path/-/bare-path-3.1.1.tgz",
+ "integrity": "sha1-1KIHwIhgm0Zjp1VqRqlzQjmL9+I=",
+ "license": "Apache-2.0"
+ },
+ "node_modules/bare-stream": {
+ "version": "2.13.3",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/bare-stream/-/bare-stream-2.13.3.tgz",
+ "integrity": "sha1-9hhsfLtLv1OkVg815IsWNzulHOY=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "b4a": "^1.8.1",
+ "streamx": "^2.25.0",
+ "teex": "^1.0.1"
+ },
+ "peerDependencies": {
+ "bare-abort-controller": "*",
+ "bare-buffer": "*",
+ "bare-events": "*"
+ },
+ "peerDependenciesMeta": {
+ "bare-abort-controller": {
+ "optional": true
+ },
+ "bare-buffer": {
+ "optional": true
+ },
+ "bare-events": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/bare-url": {
+ "version": "2.4.5",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/bare-url/-/bare-url-2.4.5.tgz",
+ "integrity": "sha1-UNIF+PJyTuxg/Qkbqc69Z1/KY6o=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "bare-path": "^3.0.0"
+ }
+ },
"node_modules/base64-js": {
"version": "1.5.1",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha1-GxtEAWClv3rUC2UPCVljSBkDkwo=",
- "dev": true,
"funding": [
{
"type": "github",
@@ -2975,6 +3211,39 @@
"node": "18 || 20 || >=22"
}
},
+ "node_modules/buffer": {
+ "version": "6.0.3",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/buffer/-/buffer-6.0.3.tgz",
+ "integrity": "sha1-Ks5XhFnMj74qcKqo9S7mO2p0xsY=",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.2.1"
+ }
+ },
+ "node_modules/buffer-crc32": {
+ "version": "1.0.0",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/buffer-crc32/-/buffer-crc32-1.0.0.tgz",
+ "integrity": "sha1-oQmTuQVQgdVTBL2f60oHLeF59AU=",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -3371,7 +3640,6 @@
"version": "2.0.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
@@ -3384,7 +3652,6 @@
"version": "1.1.4",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
- "devOptional": true,
"license": "MIT"
},
"node_modules/color-support": {
@@ -3430,6 +3697,38 @@
"node": ">=0.10.0"
}
},
+ "node_modules/compress-commons": {
+ "version": "6.0.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/compress-commons/-/compress-commons-6.0.2.tgz",
+ "integrity": "sha1-JtMSUaZrnWuiOoQGTs06anHSYJ4=",
+ "license": "MIT",
+ "dependencies": {
+ "crc-32": "^1.2.0",
+ "crc32-stream": "^6.0.0",
+ "is-stream": "^2.0.1",
+ "normalize-path": "^3.0.0",
+ "readable-stream": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/compress-commons/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha1-ztvYoRRsE9//jasUBoAo1YwVrJE=",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/concat-map/-/concat-map-0.0.1.tgz",
@@ -3455,9 +3754,49 @@
"version": "1.0.3",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/core-util-is/-/core-util-is-1.0.3.tgz",
"integrity": "sha1-pgQtNjTCsn6TKPg3uWX6yDgI24U=",
- "dev": true,
"license": "MIT"
},
+ "node_modules/crc-32": {
+ "version": "1.2.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/crc-32/-/crc-32-1.2.2.tgz",
+ "integrity": "sha1-PK01qTS4v3HyXKUkttpR+36s4v8=",
+ "license": "Apache-2.0",
+ "bin": {
+ "crc32": "bin/crc32.njs"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/crc32-stream": {
+ "version": "6.0.0",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/crc32-stream/-/crc32-stream-6.0.0.tgz",
+ "integrity": "sha1-hSmjho+LJ6u5FfbDYXwPre2/lDA=",
+ "license": "MIT",
+ "dependencies": {
+ "crc-32": "^1.2.0",
+ "readable-stream": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/crc32-stream/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha1-ztvYoRRsE9//jasUBoAo1YwVrJE=",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
"node_modules/cross-dirname": {
"version": "0.1.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/cross-dirname/-/cross-dirname-0.1.0.tgz",
@@ -3471,7 +3810,6 @@
"version": "7.0.6",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha1-ilj+ePANzXDDcEUXWd+/rwPo7p8=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"path-key": "^3.1.0",
@@ -3486,14 +3824,12 @@
"version": "2.0.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "devOptional": true,
"license": "ISC"
},
"node_modules/cross-spawn/node_modules/which": {
"version": "2.0.2",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/which/-/which-2.0.2.tgz",
"integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
- "devOptional": true,
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
@@ -3781,8 +4117,7 @@
"version": "0.2.0",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
"integrity": "sha1-aWzi7Aqg5uqTo5f/zySqeEDIJ8s=",
- "license": "MIT",
- "optional": true
+ "license": "MIT"
},
"node_modules/ejs": {
"version": "3.1.10",
@@ -3957,7 +4292,6 @@
"version": "8.0.0",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
- "devOptional": true,
"license": "MIT"
},
"node_modules/encoding": {
@@ -4075,6 +4409,33 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/event-target-shim": {
+ "version": "5.0.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/event-target-shim/-/event-target-shim-5.0.1.tgz",
+ "integrity": "sha1-XU0+vflYPWOlMzzi3rdICrKwV4k=",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/events": {
+ "version": "3.3.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/events/-/events-3.3.0.tgz",
+ "integrity": "sha1-Mala0Kkk4tLEGagTrrLE6HjqdAA=",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.x"
+ }
+ },
+ "node_modules/events-universal": {
+ "version": "1.0.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/events-universal/-/events-universal-1.0.1.tgz",
+ "integrity": "sha1-tWqE/WEbZhDgotDwn4D9+THi3+Y=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "bare-events": "^2.7.0"
+ }
+ },
"node_modules/exponential-backoff": {
"version": "3.1.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
@@ -4096,6 +4457,12 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/fast-fifo": {
+ "version": "1.3.2",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/fast-fifo/-/fast-fifo-1.3.2.tgz",
+ "integrity": "sha1-KG4x3pbrltOKl4mYFXQLoqTzZAw=",
+ "license": "MIT"
+ },
"node_modules/fast-uri": {
"version": "3.1.3",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/fast-uri/-/fast-uri-3.1.3.tgz",
@@ -4182,7 +4549,6 @@
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/foreground-child/-/foreground-child-3.3.1.tgz",
"integrity": "sha1-Mujp7Rtoo0l777msK2rfkqY4V28=",
"license": "ISC",
- "optional": true,
"dependencies": {
"cross-spawn": "^7.0.6",
"signal-exit": "^4.0.1"
@@ -4199,7 +4565,6 @@
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/signal-exit/-/signal-exit-4.1.0.tgz",
"integrity": "sha1-lSGIwcvVRgcOLdIND0HArgUwywQ=",
"license": "ISC",
- "optional": true,
"engines": {
"node": ">=14"
},
@@ -4759,7 +5124,6 @@
"version": "4.2.11",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/graceful-fs/-/graceful-fs-4.2.11.tgz",
"integrity": "sha1-QYPk6L8Iu24Fu7L30uDI9xLKQOM=",
- "devOptional": true,
"license": "ISC"
},
"node_modules/guid-typescript": {
@@ -4914,6 +5278,26 @@
"node": ">=0.10.0"
}
},
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I=",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
"node_modules/imurmurhash": {
"version": "0.1.4",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/imurmurhash/-/imurmurhash-0.1.4.tgz",
@@ -4950,7 +5334,6 @@
"version": "2.0.4",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=",
- "devOptional": true,
"license": "ISC"
},
"node_modules/ip-address": {
@@ -4967,7 +5350,6 @@
"version": "3.0.0",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
- "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -4980,11 +5362,22 @@
"license": "MIT",
"optional": true
},
+ "node_modules/is-stream": {
+ "version": "2.0.1",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/is-stream/-/is-stream-2.0.1.tgz",
+ "integrity": "sha1-+sHj1TuXrVqdCunO8jifWBClwHc=",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/isarray": {
"version": "1.0.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true,
"license": "MIT"
},
"node_modules/isbinaryfile": {
@@ -5015,7 +5408,6 @@
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/jackspeak/-/jackspeak-3.4.3.tgz",
"integrity": "sha1-iDOp2Jq0rN5hiJQr0cU7Y5DtWoo=",
"license": "BlueOak-1.0.0",
- "optional": true,
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
@@ -5167,6 +5559,48 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/lazystream": {
+ "version": "1.0.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/lazystream/-/lazystream-1.0.1.tgz",
+ "integrity": "sha1-SUyDEGLx+UCCUexE2xy6KSQqJjg=",
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.0.5"
+ },
+ "engines": {
+ "node": ">= 0.6.3"
+ }
+ },
+ "node_modules/lazystream/node_modules/readable-stream": {
+ "version": "2.3.8",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-2.3.8.tgz",
+ "integrity": "sha1-kRJegEK7obmIf0k0X2J3Anzovps=",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/lazystream/node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
+ "license": "MIT"
+ },
+ "node_modules/lazystream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
"node_modules/lightningcss": {
"version": "1.32.0",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/lightningcss/-/lightningcss-1.32.0.tgz",
@@ -5450,7 +5884,6 @@
"version": "4.18.1",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/lodash/-/lodash-4.18.1.tgz",
"integrity": "sha1-/ytmwfYybVlRPeJAe/iBQ5gSdxw=",
- "dev": true,
"license": "MIT"
},
"node_modules/long": {
@@ -5640,7 +6073,6 @@
"version": "7.1.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/minipass/-/minipass-7.1.3.tgz",
"integrity": "sha1-eTibTrG7LQA6m7qH1JLyvTe9xls=",
- "devOptional": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=16 || 14 >=14.17"
@@ -6051,6 +6483,15 @@
"node": ">=6"
}
},
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU=",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/normalize-url": {
"version": "6.1.0",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/normalize-url/-/normalize-url-6.1.0.tgz",
@@ -6196,8 +6637,7 @@
"version": "1.0.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
"integrity": "sha1-TxRxoBCCeob5TP2bByfjbSZ95QU=",
- "license": "BlueOak-1.0.0",
- "optional": true
+ "license": "BlueOak-1.0.0"
},
"node_modules/path-is-absolute": {
"version": "1.0.1",
@@ -6213,7 +6653,6 @@
"version": "3.1.1",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U=",
- "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -6224,7 +6663,6 @@
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/path-scurry/-/path-scurry-1.11.1.tgz",
"integrity": "sha1-eWCmaIiFlKByCxKpEdGnQqufEdI=",
"license": "BlueOak-1.0.0",
- "optional": true,
"dependencies": {
"lru-cache": "^10.2.0",
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
@@ -6240,8 +6678,7 @@
"version": "10.4.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/lru-cache/-/lru-cache-10.4.3.tgz",
"integrity": "sha1-QQ/IoXtw5ZgBPfJXwkRrfzOD8Rk=",
- "license": "ISC",
- "optional": true
+ "license": "ISC"
},
"node_modules/pathe": {
"version": "2.0.3",
@@ -6418,11 +6855,19 @@
"node": "^20.17.0 || >=22.9.0"
}
},
+ "node_modules/process": {
+ "version": "0.11.10",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/process/-/process-0.11.10.tgz",
+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha1-eCDZsWEgzFXKmud5JoCufbptf+I=",
- "dev": true,
"license": "MIT"
},
"node_modules/progress": {
@@ -6594,6 +7039,42 @@
"node": ">= 6"
}
},
+ "node_modules/readdir-glob": {
+ "version": "1.1.3",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readdir-glob/-/readdir-glob-1.1.3.tgz",
+ "integrity": "sha1-w9gx9R9ee/pi+i/75LUIxkDwlYQ=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "minimatch": "^5.1.0"
+ }
+ },
+ "node_modules/readdir-glob/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4=",
+ "license": "MIT"
+ },
+ "node_modules/readdir-glob/node_modules/brace-expansion": {
+ "version": "2.1.2",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/brace-expansion/-/brace-expansion-2.1.2.tgz",
+ "integrity": "sha1-C7oicf631Fiw0xrRNiWqpHVEMeI=",
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/readdir-glob/node_modules/minimatch": {
+ "version": "5.1.9",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/minimatch/-/minimatch-5.1.9.tgz",
+ "integrity": "sha1-EpPvFdsAmLOUVA6Pn3RPn9qN7ks=",
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/require-directory/-/require-directory-2.1.1.tgz",
@@ -6748,8 +7229,7 @@
"url": "https://feross.org/support"
}
],
- "license": "MIT",
- "optional": true
+ "license": "MIT"
},
"node_modules/safer-buffer": {
"version": "2.1.2",
@@ -6872,7 +7352,6 @@
"version": "2.0.0",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha1-zNCvT4g1+9wmW4JGGq8MNmY/NOo=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"shebang-regex": "^3.0.0"
@@ -6885,7 +7364,6 @@
"version": "3.0.0",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha1-rhbxZE2HPsrYQ7AwexQzYtTEIXI=",
- "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -7012,12 +7490,22 @@
"node": ">= 6"
}
},
+ "node_modules/streamx": {
+ "version": "2.28.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/streamx/-/streamx-2.28.0.tgz",
+ "integrity": "sha1-A1q1YFe37SIRtR1TLmlz8PmfvxE=",
+ "license": "MIT",
+ "dependencies": {
+ "events-universal": "^1.0.0",
+ "fast-fifo": "^1.3.2",
+ "text-decoder": "^1.1.0"
+ }
+ },
"node_modules/string_decoder": {
"version": "1.3.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha1-QvEUWUpGzxqOMLCoT1bHjD7awh4=",
"license": "MIT",
- "optional": true,
"dependencies": {
"safe-buffer": "~5.2.0"
}
@@ -7026,7 +7514,6 @@
"version": "4.2.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha1-JpxxF9J7Ba0uU2gwqOyJXvnG0BA=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"emoji-regex": "^8.0.0",
@@ -7043,7 +7530,6 @@
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha1-JpxxF9J7Ba0uU2gwqOyJXvnG0BA=",
"license": "MIT",
- "optional": true,
"dependencies": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
@@ -7057,7 +7543,6 @@
"version": "6.0.1",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha1-nibGPTD1NEPpSJSVshBdN7Z6hdk=",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
@@ -7072,7 +7557,6 @@
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha1-nibGPTD1NEPpSJSVshBdN7Z6hdk=",
"license": "MIT",
- "optional": true,
"dependencies": {
"ansi-regex": "^5.0.1"
},
@@ -7123,6 +7607,18 @@
"node": ">=18"
}
},
+ "node_modules/tar-stream": {
+ "version": "3.2.0",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/tar-stream/-/tar-stream-3.2.0.tgz",
+ "integrity": "sha1-DQBk2bZ+o8n1q94VXjX6qw3zdZE=",
+ "license": "MIT",
+ "dependencies": {
+ "b4a": "^1.6.4",
+ "bare-fs": "^4.5.5",
+ "fast-fifo": "^1.2.0",
+ "streamx": "^2.15.0"
+ }
+ },
"node_modules/tar/node_modules/yallist": {
"version": "5.0.0",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/yallist/-/yallist-5.0.0.tgz",
@@ -7133,6 +7629,15 @@
"node": ">=18"
}
},
+ "node_modules/teex": {
+ "version": "1.0.1",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/teex/-/teex-1.0.1.tgz",
+ "integrity": "sha1-uPpyRe+Ojv+oB4KBlGyFq3gKCxI=",
+ "license": "MIT",
+ "dependencies": {
+ "streamx": "^2.12.5"
+ }
+ },
"node_modules/temp": {
"version": "0.9.4",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/temp/-/temp-0.9.4.tgz",
@@ -7174,6 +7679,15 @@
"rimraf": "bin.js"
}
},
+ "node_modules/text-decoder": {
+ "version": "1.2.7",
+ "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/text-decoder/-/text-decoder-1.2.7.tgz",
+ "integrity": "sha1-XQc6mnS5wKnSjfrcq5a2BK9X2Lo=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "b4a": "^1.6.4"
+ }
+ },
"node_modules/tiny-async-pool": {
"version": "1.3.0",
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",
@@ -7402,7 +7916,6 @@
"version": "1.0.2",
"resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "devOptional": true,
"license": "MIT"
},
"node_modules/vite": {
@@ -7592,7 +8105,6 @@
"resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM=",
"license": "MIT",
- "optional": true,
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@@ -7681,6 +8193,36 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/zip-stream": {
+ "version": "6.0.1",
+ "resolved": "https://ms-feed-12.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/zip-stream/-/zip-stream-6.0.1.tgz",
+ "integrity": "sha1-4UG5MO1gzK9df6nIJg4NF0iiu/s=",
+ "license": "MIT",
+ "dependencies": {
+ "archiver-utils": "^5.0.0",
+ "compress-commons": "^6.0.2",
+ "readable-stream": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/zip-stream/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://ms-feed-25.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha1-ztvYoRRsE9//jasUBoAo1YwVrJE=",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
"node_modules/zod": {
"version": "4.4.3",
"resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/zod/-/zod-4.4.3.tgz",
diff --git a/package.json b/package.json
index 8908079..3f9bca7 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"build": "tsc --noEmit && vite build",
"typecheck": "tsc --noEmit",
"typecheck:evals": "tsc --noEmit -p evals/tsconfig.json",
- "test": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs --test common/audio.test.ts common/microphone.test.ts common/narration.test.ts electron/recording-controls-bounds.test.ts electron/recording-privacy.test.ts electron/recorder/controller.test.ts electron/frames/extractor.test.ts electron/narration/audio-analysis.test.ts electron/narration/analyze-gate.test.ts electron/narration/transcribe.test.ts electron/narration/whisper.test.ts electron/sessions.test.ts",
+ "test": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs --test common/audio.test.ts common/microphone.test.ts common/narration.test.ts electron/recording-controls-bounds.test.ts electron/recording-privacy.test.ts electron/recorder/controller.test.ts electron/frames/extractor.test.ts electron/narration/audio-analysis.test.ts electron/narration/analyze-gate.test.ts electron/narration/transcribe.test.ts electron/narration/whisper.test.ts electron/sessions.test.ts electron/debug-bundle.test.ts",
"eval": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/run.ts",
"eval:builder": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/builder/run.ts",
"eval:skill": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/skillbuilder/run.ts",
@@ -28,6 +28,7 @@
"dependencies": {
"@github/copilot-sdk": "^1.0.6",
"@huggingface/transformers": "^4.2.0",
+ "archiver": "^7.0.1",
"koffi": "^3.1.1",
"react": "^19.2.5",
"react-dom": "^19.2.5",
@@ -39,6 +40,7 @@
},
"devDependencies": {
"@electron/asar": "^3.4.1",
+ "@types/archiver": "^6.0.4",
"@types/node": "^22.10.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
diff --git a/src/App.css b/src/App.css
index 3a2198c..7652955 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1744,6 +1744,58 @@ button:focus-visible,
color: var(--muted);
}
+/* Subtle per-session debug bundle download, right side of the session header. */
+.debug-dl {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.debug-dl-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 28px;
+ height: 28px;
+ padding: 0;
+ border-radius: 8px;
+ background: transparent;
+ color: var(--faint);
+ transition: background 0.12s ease, color 0.12s ease;
+}
+
+.debug-dl-icon:not(:disabled):hover {
+ background: var(--signal-dim);
+ color: var(--signal);
+}
+
+.debug-dl-icon:disabled {
+ cursor: default;
+}
+
+.debug-dl-icon.is-saved {
+ color: var(--go);
+}
+
+.debug-dl-note {
+ font-size: 11px;
+ color: var(--warn);
+}
+
+/* Privacy-warning modal — reuses the .sheet system (see WhatsRecorded). */
+.debug-sheet {
+ max-width: 380px;
+ gap: 12px;
+}
+
+.sheet-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 14px;
+ margin-top: 2px;
+}
+
.ws-body {
flex: 1 1 auto;
overflow-y: auto;
diff --git a/src/Library.tsx b/src/Library.tsx
index 2ff6d72..dbb686f 100644
--- a/src/Library.tsx
+++ b/src/Library.tsx
@@ -242,6 +242,165 @@ function SessionsList({
/* --- Analysis workspace --------------------------------------------------- */
+const DownloadGlyph = () => (
+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden>
+ <path
+ d="M8 2.6v6.2m0 0 2.3-2.3M8 8.8 5.7 6.5"
+ stroke="currentColor"
+ strokeWidth="1.2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ <path
+ d="M3.2 10.4v1.2c0 .6.5 1.1 1.1 1.1h7.4c.6 0 1.1-.5 1.1-1.1v-1.2"
+ stroke="currentColor"
+ strokeWidth="1.2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+);
+
+const SavedGlyph = () => (
+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden>
+ <path
+ d="M3.4 8.4 6.3 11.3 12.6 4.8"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+);
+
+/**
+ * Subtle, per-recording "download a debug bundle" affordance shown in the session
+ * header. A quiet download icon packages the whole session (private capture data)
+ * into a `.zip` the user can hand to us; a privacy-warning modal gates the actual
+ * download. It says nothing about where to send the file — that's shared separately.
+ */
+function DebugDownload({ sessionId }: { sessionId: string }) {
+ const [phase, setPhase] = useState<"idle" | "confirm" | "saving" | "saved" | "error">("idle");
+ const [errorMsg, setErrorMsg] = useState("");
+ const dialogRef = useRef<HTMLDivElement>(null);
+
+ const download = useCallback(async () => {
+ setPhase("saving");
+ setErrorMsg("");
+ const res = await window.skillRecorder.exportDebugBundle(sessionId);
+ if (res.ok) setPhase("saved");
+ else if (res.canceled) setPhase("idle");
+ else {
+ setErrorMsg(res.error ?? "Couldn't create the debug bundle.");
+ setPhase("error");
+ }
+ }, [sessionId]);
+
+ // Let the "Saved" acknowledgement fade back to the quiet icon on its own.
+ useEffect(() => {
+ if (phase !== "saved") return;
+ const t = setTimeout(() => setPhase("idle"), 3200);
+ return () => clearTimeout(t);
+ }, [phase]);
+
+ // While the warning is up, focus it and close on Escape — matching the app's sheets.
+ useEffect(() => {
+ if (phase !== "confirm") return;
+ dialogRef.current?.focus({ preventScroll: true });
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") setPhase("idle");
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, [phase]);
+
+ const label =
+ phase === "saving"
+ ? "Preparing debug bundle…"
+ : phase === "saved"
+ ? "Debug bundle saved"
+ : "Download details for debugging";
+
+ return (
+ <div className="debug-dl">
+ {phase === "error" && (
+ <span className="debug-dl-note" title={errorMsg}>
+ Couldn't save
+ </span>
+ )}
+ <button
+ className={`debug-dl-icon${phase === "saved" ? " is-saved" : ""}`}
+ onClick={() => setPhase("confirm")}
+ disabled={phase === "saving"}
+ aria-label={label}
+ title={label}
+ >
+ {phase === "saving" ? (
+ <span className="spinner" aria-hidden />
+ ) : phase === "saved" ? (
+ <SavedGlyph />
+ ) : (
+ <DownloadGlyph />
+ )}
+ </button>
+
+ {phase === "confirm" && (
+ <div className="sheet-backdrop" onClick={() => setPhase("idle")}>
+ <div
+ ref={dialogRef}
+ className="sheet debug-sheet"
+ role="alertdialog"
+ aria-modal="true"
+ aria-labelledby="debug-dl-title"
+ aria-describedby="debug-dl-desc"
+ 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">
+ <rect
+ x="4.4"
+ y="8.7"
+ width="11.2"
+ height="7.9"
+ rx="1.9"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ />
+ <path
+ d="M6.9 8.7V6.7a3.1 3.1 0 0 1 6.2 0v2"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinecap="round"
+ />
+ <circle cx="10" cy="12.4" r="1.1" fill="currentColor" />
+ </svg>
+ </span>
+ <h2 id="debug-dl-title">Includes private information</h2>
+ </header>
+
+ <p className="sheet-lead" id="debug-dl-desc">
+ This bundle is everything captured in this recording — screen video, screenshots,
+ visited URLs, clipboard contents, and any voice narration and transcript. Share it
+ only with people you trust.
+ </p>
+
+ <div className="sheet-actions">
+ <button className="linky" onClick={() => setPhase("idle")}>
+ Cancel
+ </button>
+ <button className="record-cta" onClick={() => void download()}>
+ Download .zip
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
+
function AnalysisWorkspace({
summary,
narrationStatus,
@@ -448,6 +607,7 @@ function AnalysisWorkspace({
<span className="eyebrow">Analysis</span>
<span className="ws-when">{formatWhen(summary.startedAt)}</span>
</div>
+ <DebugDownload sessionId={sessionId} />
</div>
<div className="ws-body">
diff --git a/vite.config.ts b/vite.config.ts
index 53ae27b..e7df993 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -53,10 +53,12 @@ export default defineConfig({
outDir: "dist-electron",
rolldownOptions: {
// Native / binary deps must be required from node_modules at runtime,
- // never inlined into the main bundle.
+ // never inlined into the main bundle. archiver is pure-JS but pulls a
+ // large CJS dependency graph, so it's required at runtime too.
external: [
"electron",
"@github/copilot-sdk",
+ "archiver",
"get-windows",
"koffi",
"sharp",