@vib795/agent-memory 0.1.6 → 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/HOWTO.md +5 -2
- package/README.md +9 -2
- package/install.ps1 +19 -2
- package/package.json +1 -1
package/HOWTO.md
CHANGED
|
@@ -70,11 +70,14 @@ agent-memory setup
|
|
|
70
70
|
you have. Modern npm refuses to let a package run its own setup automatically — a
|
|
71
71
|
sensible security default — so the second line is you giving permission, by hand.
|
|
72
72
|
|
|
73
|
-
> No access to the npm registry at work?
|
|
73
|
+
> No access to the npm registry at work? Clone it instead. This needs nothing but
|
|
74
|
+
> GitHub, and it is what to use if your company proxy blocks or quarantines npm:
|
|
74
75
|
> ```bash
|
|
75
|
-
>
|
|
76
|
+
> git clone https://github.com/vib795/agent-memory.git
|
|
77
|
+
> npm install -g ./agent-memory
|
|
76
78
|
> agent-memory setup
|
|
77
79
|
> ```
|
|
80
|
+
> Clone first — installing from the git URL directly does not work. See the README.
|
|
78
81
|
|
|
79
82
|
### What just happened
|
|
80
83
|
|
package/README.md
CHANGED
|
@@ -182,13 +182,20 @@ npm install -g @vib795/agent-memory
|
|
|
182
182
|
agent-memory setup
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
No registry access? Clone it and install the directory. This needs nothing but
|
|
186
|
+
GitHub, and it is the path to use behind a proxy that blocks or quarantines npm:
|
|
186
187
|
|
|
187
188
|
```bash
|
|
188
|
-
|
|
189
|
+
git clone https://github.com/vib795/agent-memory.git
|
|
190
|
+
npm install -g ./agent-memory
|
|
189
191
|
agent-memory setup
|
|
190
192
|
```
|
|
191
193
|
|
|
194
|
+
**Do not install from the git URL directly.** `npm install -g <git-url>` fails for
|
|
195
|
+
this package: npm links the package into `~/.npm/_cacache/tmp/git-clone*`, a
|
|
196
|
+
directory it then cleans, and `postinstall` dies with `Cannot find module` before it
|
|
197
|
+
can run. Cloning first avoids npm's git handling entirely. Verified on npm 11.18.
|
|
198
|
+
|
|
192
199
|
Every release is mirrored to **GitHub Packages**. Treat that as redundancy rather
|
|
193
200
|
than a second front door: GitHub Packages requires authentication even for public
|
|
194
201
|
packages, so installing from it costs you a token that npmjs does not ask for.
|
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",
|