owlmem 0.9.18 → 0.9.19

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.
Files changed (2) hide show
  1. package/owlmem.mjs +9 -3
  2. package/package.json +1 -1
package/owlmem.mjs CHANGED
@@ -43,7 +43,7 @@ import { join, dirname, basename, relative, isAbsolute } from "node:path";
43
43
  import { fileURLToPath } from "node:url";
44
44
  import { spawn, spawnSync } from "node:child_process";
45
45
 
46
- export const VERSION = "0.9.18";
46
+ export const VERSION = "0.9.19";
47
47
  const BASE = (process.env.OWLMEM_URL || "https://owlmem.com").replace(/\/$/, "");
48
48
  const DIR = process.env.OWLMEM_HOME || join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "owlmem");
49
49
  const enc = new TextEncoder(), dec = new TextDecoder();
@@ -1675,12 +1675,18 @@ async function claudeQuota(fetchImpl = fetch) {
1675
1675
  // Antigravity's quota (0.9.5): its running app answers on 127.0.0.1 with each model's remaining share and reset time, the
1676
1676
  // numbers its own model picker shows. We find the app by its command line (agy --hub-port=… --csrf_token=…); the token
1677
1677
  // only goes to that local port. Models that reset together are one window; OwlMem gets percentages and times, no names.
1678
- export function agyServers(psOut) {
1678
+ // Antigravity 1.5.9 (2026-11-14) stopped putting --csrf_token on the command line: the token is in the app's
1679
+ // daemon file ~/.gemini/antigravity/daemon/hub_<port>.json ("csrfToken") and in its environment. Read the file when
1680
+ // the command line has only the port.
1681
+ export function agyServers(psOut, daemonDir = join(homedir(), ".gemini", "antigravity", "daemon")) {
1679
1682
  const out = [];
1680
1683
  for (const l of String(psOut || "").split("\n")) {
1681
1684
  if (!/(^|\/)agy$/.test(l.trim().split(/\s/)[0] || "")) continue;
1682
1685
  const port = /--hub-port[= ](\d{2,5})\b/.exec(l), tok = /--csrf_token[= ]([\w-]{8,})/.exec(l);
1683
- if (port && tok) out.push({ port: Number(port[1]), token: tok[1] });
1686
+ if (!port) continue;
1687
+ let token = tok?.[1];
1688
+ if (!token) { try { const d = JSON.parse(readFileSync(join(daemonDir, "hub_" + port[1] + ".json"), "utf8")); if (/^[\w-]{8,}$/.test(d?.csrfToken || "")) token = d.csrfToken; } catch {} }
1689
+ if (token && !out.some((s) => s.port === Number(port[1]))) out.push({ port: Number(port[1]), token });
1684
1690
  }
1685
1691
  return out;
1686
1692
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owlmem",
3
- "version": "0.9.18",
3
+ "version": "0.9.19",
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" },