owlmem 0.9.13 → 0.9.14

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 +4 -2
  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.14";
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();
@@ -1325,7 +1325,9 @@ export async function wakeLoop(o) {
1325
1325
  let r;
1326
1326
  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
1327
  catch (e) { r = { status: 0, data: { detail: e?.message || String(e) } }; }
1328
- if (r.status === 401) {
1328
+ // Only "this computer is no longer paired" removes auto-wake. Any other 401 (a signature OwlMem didn't accept this time) is
1329
+ // 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).
1330
+ if (r.status === 401 && (r.data?.error === "wake_revoked" || !r.data?.error)) {
1329
1331
  log("OwlMem no longer accepts this computer for auto-wake (" + (r.data?.detail || r.data?.error || "401") + "). Removing auto-wake from this computer.");
1330
1332
  if (cleanup) cleanup();
1331
1333
  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.14",
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" },