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(install): drop the registry escape hatch from the installers

Giorgio Ughinie92cb9a0df2e
diff --git a/INSTALL.md b/INSTALL.md
index 1561192..62bf2cd 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -258,10 +258,10 @@ Configure a mirror once with:
npm config set registry <url> --location=global
```
-To point a single installation at a specific registry without changing any npm
-configuration, set `SKILL_RECORDER_NPM_REGISTRY` to an HTTPS registry URL before
-running the installer. The lockfile's integrity hashes are verified whichever
-registry serves the packages, so a mirror cannot substitute different content.
+The installers never pin or override the registry themselves; they only make the
+machine's existing npm configuration visible to the portable runtime. The
+lockfile's integrity hashes are verified whichever registry serves the packages,
+so a mirror cannot substitute different content.
## Licensing boundary
diff --git a/install.ps1 b/install.ps1
index 98daf58..5794af6 100644
--- a/install.ps1
+++ b/install.ps1
@@ -676,33 +676,15 @@ if (Test-Path -LiteralPath $sourceDirectory -PathType Container) {
"scripts\run-reviewed-electron.mjs"
)
- $registryOverride = $env:SKILL_RECORDER_NPM_REGISTRY
- if (-not [string]::IsNullOrWhiteSpace($registryOverride)) {
- $registryOverride = $registryOverride.Trim()
- $parsedRegistry = $null
- if (
- -not [Uri]::TryCreate($registryOverride, [UriKind]::Absolute, [ref]$parsedRegistry) -or
- $parsedRegistry.Scheme -ne "https"
- ) {
- throw "SKILL_RECORDER_NPM_REGISTRY must be an absolute HTTPS URL: $registryOverride"
- }
- } else {
- $registryOverride = $null
- }
+ $machineNpmConfig = Get-MachineNpmConfigPath
$environmentOverrides = [ordered]@{
PATH = "$($runtime.Root);$env:PATH"
NPM_CONFIG_ALLOW_SCRIPTS = $null
}
- if ($registryOverride) {
- Write-Step "Using the npm registry requested by SKILL_RECORDER_NPM_REGISTRY."
- $environmentOverrides["NPM_CONFIG_REGISTRY"] = $registryOverride
- } else {
- $machineNpmConfig = Get-MachineNpmConfigPath
- if ($machineNpmConfig) {
- Write-Step "Applying this machine's npm configuration from $machineNpmConfig."
- $environmentOverrides["NPM_CONFIG_GLOBALCONFIG"] = $machineNpmConfig
- }
+ if ($machineNpmConfig) {
+ Write-Step "Applying this machine's npm configuration from $machineNpmConfig."
+ $environmentOverrides["NPM_CONFIG_GLOBALCONFIG"] = $machineNpmConfig
}
$originalEnvironment = @{}
@@ -760,10 +742,10 @@ if (Test-Path -LiteralPath $sourceDirectory -PathType Container) {
} catch {
throw (
"$($_.Exception.Message) Dependencies were requested from $effectiveRegistry. " +
- "If your network blocks that registry, configure a compatible mirror with " +
- "'npm config set registry <url> --location=global', or set " +
- "SKILL_RECORDER_NPM_REGISTRY=<url> before running the installer again. " +
- "The lockfile's integrity hashes are verified whichever registry serves the packages."
+ "If your network blocks that registry, configure a compatible mirror for this " +
+ "machine with 'npm config set registry <url> --location=global' and run the " +
+ "installer again. The lockfile's integrity hashes are verified whichever " +
+ "registry serves the packages."
)
}
diff --git a/install.sh b/install.sh
index eb54500..68d9172 100755
--- a/install.sh
+++ b/install.sh
@@ -282,16 +282,7 @@ build_source_install() {
export NPM_CONFIG_CACHE="$INSTALL_ROOT/npm-cache"
unset NPM_CONFIG_ALLOW_SCRIPTS npm_config_allow_scripts
- if [ -n "${SKILL_RECORDER_NPM_REGISTRY:-}" ]; then
- case "$SKILL_RECORDER_NPM_REGISTRY" in
- https://*) ;;
- *)
- die "SKILL_RECORDER_NPM_REGISTRY must be an absolute HTTPS URL: $SKILL_RECORDER_NPM_REGISTRY."
- ;;
- esac
- info "Using the npm registry requested by SKILL_RECORDER_NPM_REGISTRY."
- export NPM_CONFIG_REGISTRY="$SKILL_RECORDER_NPM_REGISTRY"
- elif [ -n "${MACHINE_NPM_CONFIG:-}" ]; then
+ if [ -n "${MACHINE_NPM_CONFIG:-}" ]; then
info "Applying this machine's npm configuration from $MACHINE_NPM_CONFIG."
export NPM_CONFIG_GLOBALCONFIG="$MACHINE_NPM_CONFIG"
fi
@@ -317,10 +308,10 @@ build_source_install() {
die "$(
printf '%s' \
"npm ci failed. Dependencies were requested from $effective_registry. " \
- "If your network blocks that registry, configure a compatible mirror with " \
- "'npm config set registry <url> --location=global', or set " \
- "SKILL_RECORDER_NPM_REGISTRY=<url> before running the installer again. " \
- "The lockfile's integrity hashes are verified whichever registry serves the packages."
+ "If your network blocks that registry, configure a compatible mirror for this " \
+ "machine with 'npm config set registry <url> --location=global' and run the " \
+ "installer again. The lockfile's integrity hashes are verified whichever " \
+ "registry serves the packages."
)"
local policy_key="$PLATFORM-$ARCHITECTURE"