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.

Fix Node version detection on Windows (quote stripping)

adileiad6a7661ec70
diff --git a/install.ps1 b/install.ps1
index 4da9600..4293645 100644
--- a/install.ps1
+++ b/install.ps1
@@ -51,8 +51,13 @@ function FileSha($path) {
# True when a Node new enough to build & run the app is already on PATH.
function Test-NodeAvailable {
if (-not (Have 'node')) { return $false }
- try { return ([int](& node -p 'process.versions.node.split(".")[0]') -ge $NodeMinMajor) }
- catch { return $false }
+ try {
+ # Parse "node -v" (e.g. v22.23.1); avoid passing a JS expression, because
+ # Windows strips the embedded quotes from 'node -p "...".split()' arguments.
+ $v = & node -v 2>$null
+ if ($v -match '^v?(\d+)\.') { return ([int]$Matches[1] -ge $NodeMinMajor) }
+ return $false
+ } catch { return $false }
}
# Ensure a usable Node/npm is on PATH: prefer the system one, otherwise download
diff --git a/install.sh b/install.sh
index 5c3b379..ebc479a 100755
--- a/install.sh
+++ b/install.sh
@@ -48,8 +48,13 @@ sha256() { # print the sha256 of a file, or nothing if it doesn't exist
# True when a Node new enough to build & run the app is already on PATH.
node_ok() {
have node || return 1
- local maj; maj="$(node -p 'process.versions.node.split(".")[0]' 2>/dev/null || echo 0)"
- [ "${maj:-0}" -ge "$NODE_MIN_MAJOR" ]
+ # Parse "node -v" (e.g. v22.23.1) rather than a quoted JS expression, to stay
+ # consistent with the Windows script and avoid any arg-quoting surprises.
+ local ver maj
+ ver="$(node -v 2>/dev/null)" || return 1
+ maj="${ver#v}"; maj="${maj%%.*}"
+ case "$maj" in ''|*[!0-9]*) return 1 ;; esac
+ [ "$maj" -ge "$NODE_MIN_MAJOR" ]
}
# Echo "<os> <arch>" tokens matching Node's dist filenames, or die if unsupported.