Compare commits

..
2 Commits
Author SHA1 Message Date
fraujulianandClaude Opus 5.5 d4f76fb132 fix(credentials): prompt for client when -Client is omitted
CI / CI configuration security checks (push) Successful in 4s
CI / Capabilities and shell quality (push) Successful in 12s
CI / Python tests and compilation (push) Successful in 31s
CI / QMD unit tests (push) Successful in 7s
CI / Build and inspect generated packages (push) Successful in 25s
CI / PowerShell tests on Ubuntu (push) Successful in 1m41s
CI / Installed client configuration smoke tests (push) Successful in 1m8s
CI / Bash integration and installation guards (push) Successful in 1m39s
add-credentials.ps1 and remove-credentials.ps1 saved $Client and $Key
before dot-sourcing with-credential.ps1 and assigned them back
afterwards. Without -Client, that assignment put an empty string into
a ValidateSet variable, and the script stopped with ValidateSetFailure
before it could ask which client to use. with-credential.ps1 now uses
its own variable names, so the save-and-restore is no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:15:17 +01:00
fraujulianandClaude Opus 5.5 3725fe31ee fix(plugins): allow npm tarball fetches for plugin installs
npm 12 changed the default of allow-remote to none. Claude installs
npm plugin sources such as rea-agents from a registry tarball URL, so
`claude plugin install rea@rea` failed with EALLOWREMOTE. The client
commands now run with npm_config_allow_remote=all. root does not
cover this case. The setting applies only to these child processes,
and a value the user sets still takes precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:05:24 +01:00
3 changed files with 3 additions and 8 deletions

No files matched your search

-4
View File
@@ -8,11 +8,7 @@ param(
$ErrorActionPreference = 'Stop'
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
. (Join-Path $root 'scripts/lib/install-targets.ps1')
$selectedClient = $Client
$selectedKey = $Key
. (Join-Path $root 'scripts/lib/with-credential.ps1')
$Client = $selectedClient
$Key = $selectedKey
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
if (-not $Key) { $Key = Read-Host 'Credential key' }
-4
View File
@@ -6,11 +6,7 @@ param(
$ErrorActionPreference = 'Stop'
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
. (Join-Path $root 'scripts/lib/install-targets.ps1')
$selectedClient = $Client
$selectedKey = $Key
. (Join-Path $root 'scripts/lib/with-credential.ps1')
$Client = $selectedClient
$Key = $selectedKey
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
if (-not $Key) { $Key = Read-Host 'Credential key to remove' }
+3
View File
@@ -83,6 +83,9 @@ def run_command(arguments, summary=False, home=None):
if executable is None:
raise ValueError(f'{arguments[0]} CLI is required to manage plugins.')
environment = os.environ.copy()
# npm 12 defaults allow-remote to none, so Claude's install of an npm plugin source (a registry tarball URL) fails
# with EALLOWREMOTE. "root" is not enough there; "all" applies only to this child process, and a user value wins.
environment.setdefault('npm_config_allow_remote', 'all')
if home is not None:
environment.update(HOME=str(home), USERPROFILE=str(home), CODEX_HOME=str(home / '.codex'), CLAUDE_CONFIG_DIR=str(home / '.claude'))
result = subprocess.run([executable, *arguments[1:]], stdin=subprocess.DEVNULL,