owlmem 0.9.16 → 0.9.17
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 +8 -5
- 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.
|
|
46
|
+
export const VERSION = "0.9.17";
|
|
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();
|
|
@@ -506,7 +506,7 @@ async function mcpServe() {
|
|
|
506
506
|
// The snippets here must say the same as the website (design/owlmem/site.py CODE); tests/test_owlmem_install.py compares them.
|
|
507
507
|
export const MCP_URL = "https://mcp.owlmem.com/mcp";
|
|
508
508
|
export const RULES = `## Team memory (OwlMem)
|
|
509
|
-
- Before starting a task,
|
|
509
|
+
- Before starting a task, search with kb_find (documents, files and memory at once); use kb_search only for an exact string such as a commit id, a path or an error message.
|
|
510
510
|
- When you learn something reusable — a fix, a gotcha, a decision — save it with kb_write
|
|
511
511
|
under lessons/ or projects/<name>/. Search first and update the existing page instead of
|
|
512
512
|
creating a duplicate.
|
|
@@ -815,7 +815,9 @@ function nextSteps(items, out) {
|
|
|
815
815
|
const WAKE_TOOLS_0910 = ["kb_task_update", "kb_inbox", "kb_send",
|
|
816
816
|
"kb_search", "kb_recall", "kb_read", "kb_list", "kb_thread", "kb_team", "kb_notices", "kb_infra", "kb_mon_alerts", "kb_mon_query",
|
|
817
817
|
"kb_write", "kb_retain"];
|
|
818
|
-
|
|
818
|
+
// 0.9.17 (11-12): kb_find — the rules now say to look things up with kb_find first (owner: fold kb_search / kb_recall into it),
|
|
819
|
+
// so a woken AI that follows them must be allowed to call it. Reading only.
|
|
820
|
+
export const WAKE_TOOLS = [...WAKE_TOOLS_0910, "kb_file_get", "kb_find"];
|
|
819
821
|
export const WAKE_CLIENTS = {
|
|
820
822
|
"claude-code": { name: "Claude Code", bin: "claude",
|
|
821
823
|
// -p runs one prompt and exits; it may only use the OwlMem tools in WAKE_TOOLS, beyond what your own settings allow
|
|
@@ -1482,12 +1484,13 @@ function wakeLogger(dir = DIR) {
|
|
|
1482
1484
|
};
|
|
1483
1485
|
}
|
|
1484
1486
|
|
|
1485
|
-
// Computers set up before a tool joined WAKE_TOOLS (0.7.8: kb_send; 0.9.10: reading and write-back; 0.9.11: kb_file_get) catch up when the program starts after its self-update:
|
|
1487
|
+
// Computers set up before a tool joined WAKE_TOOLS (0.7.8: kb_send; 0.9.10: reading and write-back; 0.9.11: kb_file_get; 0.9.17: kb_find) catch up when the program starts after its self-update:
|
|
1486
1488
|
// Claude Code's --allowedTools in wake.json if it is still one we wrote, and the other apps' own settings (append only).
|
|
1487
1489
|
// Returns true when wake.json changed.
|
|
1488
1490
|
export function wakeTools(cfg, home_ = home(), env = process.env) {
|
|
1489
1491
|
const ours = ["mcp__owlmem__kb_task_update,mcp__owlmem__kb_inbox", "mcp__owlmem__kb_task_update,mcp__owlmem__kb_inbox,mcp__owlmem__kb_send",
|
|
1490
|
-
WAKE_TOOLS_0910.map((n) => "mcp__owlmem__" + n).join(",")
|
|
1492
|
+
WAKE_TOOLS_0910.map((n) => "mcp__owlmem__" + n).join(","), [...WAKE_TOOLS_0910, "kb_file_get"].map((n) => "mcp__owlmem__" + n).join(",")],
|
|
1493
|
+
now = WAKE_TOOLS.map((n) => "mcp__owlmem__" + n).join(",");
|
|
1491
1494
|
const cmd = cfg.clients?.["claude-code"]?.command, i = Array.isArray(cmd) ? cmd.indexOf("--allowedTools") : -1;
|
|
1492
1495
|
let changed = false;
|
|
1493
1496
|
if (i >= 0 && ours.includes(cmd[i + 1])) { cmd[i + 1] = now; changed = true; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owlmem",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.17",
|
|
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" },
|