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.

959 B
Raw Blame
import { readdir } from "node:fs/promises";

import {
  createCatalogueRegistry,
  providersFromModules,
} from "../../electron/architectures/catalogue-provider";

const cataloguesDirectory = new URL(
  "../../electron/architectures/catalogues/",
  import.meta.url,
);
const catalogueFiles = (
  await readdir(cataloguesDirectory, { withFileTypes: true })
)
  .filter((entry) => entry.isFile() && entry.name.endsWith("-catalogue.ts"))
  .sort((left, right) => left.name.localeCompare(right.name));

const providerModules = Object.fromEntries(
  await Promise.all(
    catalogueFiles.map(
      async (entry) =>
        [
          `./catalogues/${entry.name}`,
          await import(new URL(entry.name, cataloguesDirectory).href),
        ] as const,
    ),
  ),
);
const registry = createCatalogueRegistry(providersFromModules(providerModules));

export const catalogueFor = registry.catalogueFor;
export const requireCatalogue = registry.requireCatalogue;