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
Fix Windows PowerShell 5.1 source installer
Giorgio Ughini14c54d0a26e5
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.ymlindex 035c3a1..cefedb0 100644--- a/.github/workflows/windows.yml+++ b/.github/workflows/windows.yml@@ -64,7 +64,7 @@ jobs:}- name: Test commit-pinned source installation- shell: pwsh+ shell: powershellenv:SKILL_RECORDER_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}SKILL_RECORDER_INSTALL_ROOT: ${{ runner.temp }}\skill-recorder-sourcediff --git a/install.ps1 b/install.ps1index d6ef90f..c340f8b 100644--- a/install.ps1+++ b/install.ps1@@ -131,11 +131,27 @@ function Invoke-CheckedCommand {}function Get-WindowsArchitecture {- $architecture = [Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant()- if ($architecture -notin @("x64", "arm64")) {- throw "Skill Recorder supports Windows x64 and ARM64, not $architecture."+ $architecture = [Environment]::GetEnvironmentVariable(+ "PROCESSOR_ARCHITECTURE",+ [EnvironmentVariableTarget]::Machine+ )+ if ([string]::IsNullOrWhiteSpace($architecture)) {+ $architecture = [Environment]::GetEnvironmentVariable("PROCESSOR_ARCHITEW6432")+ }+ if ([string]::IsNullOrWhiteSpace($architecture)) {+ $architecture = [Environment]::GetEnvironmentVariable("PROCESSOR_ARCHITECTURE")+ }+ if ([string]::IsNullOrWhiteSpace($architecture)) {+ throw "Windows did not report its native processor architecture."+ }++ switch ($architecture.ToUpperInvariant()) {+ "AMD64" { return "x64" }+ "ARM64" { return "arm64" }+ default {+ throw "Skill Recorder supports Windows x64 and ARM64, not $architecture."+ }}- return $architecture}function Get-ElectronExecutable {@@ -218,20 +234,24 @@ function Get-NodeRuntime {Write-Step "Resolving the latest Node.js 24 LTS release for Windows $Architecture."$indexPath = Join-Path $StagingRoot "node-index.json"Invoke-Download -Uri "https://nodejs.org/dist/index.json" -Destination $indexPath- $index = @(Get-Content -LiteralPath $indexPath -Raw | ConvertFrom-Json)+ $index = Get-Content -LiteralPath $indexPath -Raw | ConvertFrom-Json$fileKind = "win-$Architecture-zip"- $matches = @(- $index | Where-Object {- $_.version -match "^v24\.\d+\.\d+$" -and- [bool]$_.lts -and- $_.files -contains $fileKind+ $compatibleReleases = @(+ foreach ($release in $index) {+ if (+ $release.version -match "^v24\.\d+\.\d+$" -and+ [bool]$release.lts -and+ $release.files -contains $fileKind+ ) {+ $release+ }})- if ($matches.Count -eq 0) {+ if ($compatibleReleases.Count -eq 0) {throw "Node.js did not publish a Node 24 archive for Windows $Architecture."}- $version = [string]$matches[0].version+ $version = [string]$compatibleReleases[0].version$archiveName = "node-$version-win-$Architecture.zip"$runtimeDirectory = Join-Path $RuntimeRoot ([IO.Path]::GetFileNameWithoutExtension($archiveName))$nodeExe = Join-Path $runtimeDirectory "node.exe"diff --git a/package-lock.json b/package-lock.jsonindex 13ca6cf..ebd4d25 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "skill-recorder",- "version": "0.1.0",+ "version": "0.2.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "skill-recorder",- "version": "0.1.0",+ "version": "0.2.0","license": "MIT","dependencies": {"@github/copilot-sdk": "^1.0.6",diff --git a/package.json b/package.jsonindex 75f4fc0..1a7279a 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "skill-recorder",- "version": "0.1.0",+ "version": "0.2.0","description": "Records a user's on-screen work session and derives a structured description for building AI-agent skills.","author": "Skill Recorder contributors","repository": "github:adilei/skill-recorder",diff --git a/scripts/compliance.test.mjs b/scripts/compliance.test.mjsindex d702cc5..929e288 100644--- a/scripts/compliance.test.mjs+++ b/scripts/compliance.test.mjs@@ -301,14 +301,24 @@ test("licenses-only bundles cannot pass release verification", async () => {});test("source and release instructions remain compliance-preserving", async () => {- const [windowsInstaller, unixInstaller, instructions, readme, releasing] =- await Promise.all([- readFile(path.join(repoRoot, "install.ps1"), "utf8"),- readFile(path.join(repoRoot, "install.sh"), "utf8"),- readFile(path.join(repoRoot, "INSTALL.md"), "utf8"),- readFile(path.join(repoRoot, "README.md"), "utf8"),- readFile(path.join(repoRoot, "RELEASING.md"), "utf8"),- ]);+ const [+ windowsInstaller,+ unixInstaller,+ instructions,+ readme,+ releasing,+ windowsWorkflow,+ ] = await Promise.all([+ readFile(path.join(repoRoot, "install.ps1"), "utf8"),+ readFile(path.join(repoRoot, "install.sh"), "utf8"),+ readFile(path.join(repoRoot, "INSTALL.md"), "utf8"),+ readFile(path.join(repoRoot, "README.md"), "utf8"),+ readFile(path.join(repoRoot, "RELEASING.md"), "utf8"),+ readFile(+ path.join(repoRoot, ".github", "workflows", "windows.yml"),+ "utf8",+ ),+ ]);assert.match(windowsInstaller, /\^\[0-9a-fA-F\]\{40\}\$/);assert.match(@@ -330,6 +340,19 @@ test("source and release instructions remain compliance-preserving", async () =>assert.match(windowsInstaller, /node_modules\\electron\\dist\\LICENSES\.chromium\.html/);assert.match(windowsInstaller, /third_party\\compliance-policy\.json/);assert.match(windowsInstaller, /Assert-ReviewedElectronDistribution/);+ assert.match(windowsInstaller, /EnvironmentVariableTarget\]::Machine/);+ assert.doesNotMatch(+ windowsInstaller,+ /RuntimeInformation\]::OSArchitecture/,+ );+ assert.match(+ windowsInstaller,+ /\$compatibleReleases = @\(\s+foreach \(\$release in \$index\)/,+ );+ assert.doesNotMatch(+ windowsInstaller,+ /\$index = @\(Get-Content [^\r\n]+ConvertFrom-Json\)/,+ );assert.match(windowsInstaller, /\$versionOutput = @\(& \$nodeExe --version\)/);assert.doesNotMatch(windowsInstaller,@@ -387,4 +410,8 @@ test("source and release instructions remain compliance-preserving", async () =>assert.match(releasing, /SHA-256 values for `install\.ps1` and `install\.sh`/i);assert.match(releasing, /complete, version-matched\s+compliance bundle/i);assert.match(releasing, /Never silently replace an asset or move a release tag/i);+ assert.match(+ windowsWorkflow,+ /- name: Test commit-pinned source installation\r?\n\s+shell: powershell/,+ );});