@vib795/agent-memory 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.ps1 +19 -2
- package/package.json +1 -1
package/install.ps1
CHANGED
|
@@ -37,8 +37,25 @@ if (-not $node) {
|
|
|
37
37
|
|
|
38
38
|
Write-Host ""
|
|
39
39
|
Write-Host "Linking the CLI" -ForegroundColor Cyan
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
# npm writes its warnings to stderr, and `2>&1` turns each one into an ErrorRecord,
|
|
41
|
+
# which $ErrorActionPreference = 'Stop' then treats as terminating. A managed npm
|
|
42
|
+
# config makes that certain rather than unlikely: an unknown key such as `always-auth`
|
|
43
|
+
# produces a warning on every single npm invocation, so this step could never succeed
|
|
44
|
+
# on the desktops this script exists for. It aborted the whole install — no fallback
|
|
45
|
+
# message, no doctor, no closing instructions — over a warning about an unrelated
|
|
46
|
+
# config key. Scope the preference to this one call.
|
|
47
|
+
$previousPreference = $ErrorActionPreference
|
|
48
|
+
$ErrorActionPreference = 'Continue'
|
|
49
|
+
try {
|
|
50
|
+
& npm install -g $source 2>&1 | Out-Null
|
|
51
|
+
$npmExit = $LASTEXITCODE
|
|
52
|
+
} catch {
|
|
53
|
+
$npmExit = 1
|
|
54
|
+
} finally {
|
|
55
|
+
$ErrorActionPreference = $previousPreference
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if ($npmExit -eq 0) {
|
|
42
59
|
Write-Host " [npm] agent-memory installed globally" -ForegroundColor Green
|
|
43
60
|
} else {
|
|
44
61
|
# A global install failing on a managed desktop is common and not worth aborting
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vib795/agent-memory",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Durable cross-repo knowledge graph for GitHub Copilot and Claude Code. Markdown source of truth, disposable SQLite index, zero runtime dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-copilot",
|