owlmem 0.9.29 → 0.9.30
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/owlmem.mjs +11 -3
- package/package.json +1 -1
package/owlmem.mjs
CHANGED
|
@@ -44,7 +44,7 @@ import { fileURLToPath } from "node:url";
|
|
|
44
44
|
import { spawn, spawnSync } from "node:child_process";
|
|
45
45
|
import { createConnection } from "node:net";
|
|
46
46
|
|
|
47
|
-
export const VERSION = "0.9.
|
|
47
|
+
export const VERSION = "0.9.30";
|
|
48
48
|
const BASE = (process.env.OWLMEM_URL || "https://owlmem.com").replace(/\/$/, "");
|
|
49
49
|
const DIR = process.env.OWLMEM_HOME || join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "owlmem");
|
|
50
50
|
const enc = new TextEncoder(), dec = new TextDecoder();
|
|
@@ -877,6 +877,8 @@ export function allowCodex(home_ = home()) {
|
|
|
877
877
|
return true;
|
|
878
878
|
}
|
|
879
879
|
// Antigravity's CLI reads ~/.gemini/antigravity-cli/settings.json: add only the rules for WAKE_TOOLS
|
|
880
|
+
// Is agy (Antigravity's command line) bound, not just the app? Only then are agy's settings touched.
|
|
881
|
+
export function agyCli(cl) { return Array.isArray(cl?.command) && cl.command.length > 0; }
|
|
880
882
|
export function allowAntigravity(home_ = home()) {
|
|
881
883
|
const f = join(home_, ".gemini", "antigravity-cli", "settings.json"), need = WAKE_TOOLS.map((n) => "mcp(owlmem/" + n + ")");
|
|
882
884
|
let j = {};
|
|
@@ -1820,7 +1822,7 @@ export function wakeTools(cfg, home_ = home(), env = process.env) {
|
|
|
1820
1822
|
let changed = false;
|
|
1821
1823
|
if (i >= 0 && ours.includes(cmd[i + 1])) { cmd[i + 1] = now; changed = true; }
|
|
1822
1824
|
if (cfg.clients?.codex) allowCodex(home_);
|
|
1823
|
-
if (cfg.clients?.antigravity) allowAntigravity(home_);
|
|
1825
|
+
if (agyCli(cfg.clients?.antigravity)) allowAntigravity(home_); // only agy reads that file; the app alone doesn't (11-21)
|
|
1824
1826
|
if (cfg.clients?.hermes) allowHermes(home_, env);
|
|
1825
1827
|
return changed;
|
|
1826
1828
|
}
|
|
@@ -1993,7 +1995,13 @@ export function agyServers(psOut, daemonDir = join(homedir(), ".gemini", "antigr
|
|
|
1993
1995
|
if (!token) { try { const d = JSON.parse(readFileSync(join(daemonDir, "hub_" + port[1] + ".json"), "utf8")); token = d?.csrfToken; } catch {} }
|
|
1994
1996
|
add(port[1], token);
|
|
1995
1997
|
} else if (/(^|\/)language_server[\w.-]*$/.test(exe) && /antigravity/i.test(l) && tok) {
|
|
1998
|
+
const before = out.length;
|
|
1996
1999
|
for (const m of l.matchAll(/--(?:server_port|extension_server_port|http_server_port|lsp_port)[= ](\d{2,5})\b/g)) add(m[1], tok);
|
|
2000
|
+
// macOS app 2.33 (Cirila.local 11-21): no http port flag (only --https_server_port 0); the port is in its daemon file,
|
|
2001
|
+
// the one whose csrfToken is this process's token
|
|
2002
|
+
if (out.length === before) {
|
|
2003
|
+
try { for (const f of readdirSync(daemonDir)) if (/^hub_\d+\.json$/.test(f)) { try { const d = JSON.parse(readFileSync(join(daemonDir, f), "utf8")); if (d?.csrfToken === tok) add(d.httpPort, tok); } catch {} } } catch {}
|
|
2004
|
+
}
|
|
1997
2005
|
}
|
|
1998
2006
|
}
|
|
1999
2007
|
return out;
|
|
@@ -2315,7 +2323,7 @@ async function wakeEnable(args = []) {
|
|
|
2315
2323
|
(told ? "\nOwlMem support has been told; you'll hear from us once your AI app is supported." : ""));
|
|
2316
2324
|
}
|
|
2317
2325
|
if (clients.codex && allowCodex()) say("Let Codex report back to OwlMem when nobody is watching (tool approvals in ~/.codex/config.toml).");
|
|
2318
|
-
if (clients.antigravity && allowAntigravity()) say("Let Antigravity's command line report back to OwlMem when nobody is watching (rules in ~/.gemini/antigravity-cli/settings.json).");
|
|
2326
|
+
if (agyCli(clients.antigravity) && allowAntigravity()) say("Let Antigravity's command line report back to OwlMem when nobody is watching (rules in ~/.gemini/antigravity-cli/settings.json).");
|
|
2319
2327
|
if (clients.dsh) {
|
|
2320
2328
|
const d = allowDsh();
|
|
2321
2329
|
if (d === "init") say("DeepSeek Harness: run `dsh --profile headless --help` once to create its headless profile, then run this again.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owlmem",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.30",
|
|
4
4
|
"description": "OwlMem command line: connect your AI apps to OwlMem in one command (npx -y owlmem install), an end-to-end encrypted vault for your AI agents, and a local MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": { "owlmem": "owlmem.mjs" },
|