@lotargo/memory_plugin 1.2.5 → 1.2.7

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/README.md CHANGED
@@ -9,6 +9,7 @@
9
9
  <br>
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/@lotargo/memory_plugin)](https://www.npmjs.com/package/@lotargo/memory_plugin)
12
+ [![npm downloads](https://img.shields.io/npm/dt/@lotargo/memory_plugin)](https://www.npmjs.com/package/@lotargo/memory_plugin)
12
13
  [![license](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)
13
14
  [![node version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org)
14
15
  [![mcp](https://img.shields.io/badge/MCP-Supported-8A2BE2)](https://modelcontextprotocol.io)
@@ -54,9 +55,13 @@ Standard AI coding assistants lose context as soon as a chat session closes or a
54
55
 
55
56
  ### Installation
56
57
 
57
- Run the unified setup command to configure all detected AI environments automatically:
58
+ Run the setup command to configure all detected AI environments automatically:
58
59
 
59
60
  ```bash
61
+ # Recommended: Global installation & setup (works across local CLI, Jules, Docker, and CI)
62
+ npm install -g @lotargo/memory_plugin && memory_plugin setup
63
+
64
+ # Or via npx
60
65
  npx @lotargo/memory_plugin setup
61
66
  ```
62
67
 
@@ -64,16 +69,16 @@ To target a specific environment:
64
69
 
65
70
  ```bash
66
71
  # Antigravity / Gemini CLI
67
- npx @lotargo/memory_plugin setup --antigravity
72
+ npm install -g @lotargo/memory_plugin && memory_plugin setup --antigravity
68
73
 
69
74
  # OpenCode
70
- npx @lotargo/memory_plugin setup --opencode
75
+ npm install -g @lotargo/memory_plugin && memory_plugin setup --opencode
71
76
 
72
77
  # Claude Code
73
- npx @lotargo/memory_plugin setup --claude
78
+ npm install -g @lotargo/memory_plugin && memory_plugin setup --claude
74
79
 
75
80
  # Codex
76
- npx @lotargo/memory_plugin setup --codex
81
+ npm install -g @lotargo/memory_plugin && memory_plugin setup --codex
77
82
  ```
78
83
 
79
84
  ---
@@ -1,7 +1,11 @@
1
1
  import { execSync } from "child_process";
2
2
 
3
+ // Skip preinstall entirely in CI / Docker / Jules containers
4
+ if (process.env.CI || process.env.CONTINUOUS_INTEGRATION || process.env.DEBIAN_FRONTEND === "noninteractive" || process.cwd().startsWith("/app")) {
5
+ process.exit(0);
6
+ }
7
+
3
8
  // Only run graceful process termination during explicit global npm updates
4
- // Skip if running interactively or inside active MCP sessions to avoid EOF drops
5
9
  if (process.env.npm_config_global === "true" || process.env.MEMORY_PREINSTALL_FORCE === "true") {
6
10
  try {
7
11
  const currentPid = process.pid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotargo/memory_plugin",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Persistent memory agent for coding AI tools — remembers user preferences and project context across sessions. Works with Antigravity, OpenCode, Claude Code, and Codex.",
5
5
  "type": "module",
6
6
  "main": "opencode-plugin/index.js",