owlmem 0.9.13 → 0.9.15

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 +7 -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.13";
46
+ export const VERSION = "0.9.15";
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();
@@ -1234,7 +1234,9 @@ export function wakeArgv(client, command, trust) {
1234
1234
  cmd.splice(at, 0, ...(full ? ["--dangerously-bypass-approvals-and-sandbox"] : ["--sandbox", "read-only"]));
1235
1235
  return cmd;
1236
1236
  }
1237
- if (client === "antigravity" && cmd[1] === "-p" && full) return [...cmd, "--dangerously-skip-permissions"];
1237
+ // agy -p takes the NEXT argument as the prompt, so the flag goes before -p (0.9.12–0.9.14 put it after: agy read the flag as the
1238
+ // prompt and exited with code 2 on every full-trust wake; seen 11-04 on notes #414 and #436)
1239
+ if (client === "antigravity" && cmd[1] === "-p" && full) return [cmd[0], "--dangerously-skip-permissions", ...cmd.slice(1)];
1238
1240
  if (client === "opencode" && cmd[1] === "run" && full && !cmd.includes("--auto")) return [...cmd, "--auto"];
1239
1241
  return cmd;
1240
1242
  }
@@ -1325,7 +1327,9 @@ export async function wakeLoop(o) {
1325
1327
  let r;
1326
1328
  try { r = await api("poll", { busy: sched.busy(), slots: sched.slots(), timeout: (cfg.timeout_min || WAKE_DEFAULTS.timeout_min) * 60, wait: 50, version: VERSION }); }
1327
1329
  catch (e) { r = { status: 0, data: { detail: e?.message || String(e) } }; }
1328
- if (r.status === 401) {
1330
+ // Only "this computer is no longer paired" removes auto-wake. Any other 401 (a signature OwlMem didn't accept this time) is
1331
+ // retried like a network error: on 11-04 one replayed request made ori remove itself and no AI on it could be woken (0.9.14).
1332
+ if (r.status === 401 && (r.data?.error === "wake_revoked" || !r.data?.error)) {
1329
1333
  log("OwlMem no longer accepts this computer for auto-wake (" + (r.data?.detail || r.data?.error || "401") + "). Removing auto-wake from this computer.");
1330
1334
  if (cleanup) cleanup();
1331
1335
  return "revoked";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owlmem",
3
- "version": "0.9.13",
3
+ "version": "0.9.15",
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" },