@kalera/munin-openclaw 1.1.2 → 1.1.4

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @kalera/munin-openclaw@1.1.2 build /home/runner/work/munin-for-agents/munin-for-agents/adapters/openclaw
2
+ > @kalera/munin-openclaw@1.1.4 build /home/runner/work/munin-for-agents/munin-for-agents/adapters/openclaw
3
3
  > tsc -p tsconfig.json
4
4
 
package/SKILL.md CHANGED
@@ -50,14 +50,13 @@ If your Munin project has **E2EE with GraphRAG** enabled, standard E2EE rules ap
50
50
  ## 🚀 Setup (Fast & Honest)
51
51
 
52
52
  1. **Get your Munin key:** Grab a **free** cloud key at [munin.kalera.dev](https://munin.kalera.dev).
53
- 2. **Configure OpenClaw:** Once installed via `openclaw plugins install @kalera/munin-openclaw`, you can set your API key directly via the OpenClaw CLI without manually editing any config files:
53
+ 2. **Configure OpenClaw:** Once installed via `openclaw plugins install @kalera/munin-openclaw`, you can set your API key and Context Core ID directly via the OpenClaw CLI without manually editing any config files:
54
54
 
55
55
  ```bash
56
- openclaw config set plugins.entries.munin-memory.config.apiKey "your-api-key-here"
56
+ openclaw config set plugins.entries.munin-openclaw.config.apiKey "your-api-key-here"
57
+ openclaw config set plugins.entries.munin-openclaw.config.projectId "your-context-core-id"
57
58
  ```
58
- *(Alternatively, you can just set `MUNIN_BASE_URL` and `MUNIN_API_KEY` environment variables).*
59
-
60
- *(Note: Provide your agent with the `Context Core ID` in its system prompt so it knows which project to use when making tool calls).*
59
+ *(Alternatively, you can just set `MUNIN_BASE_URL`, `MUNIN_API_KEY`, and `MUNIN_PROJECT` environment variables).*
61
60
 
62
61
  3. **Profit:** Your agent now has long-term memory. No more repeating yourself.
63
62
 
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { MuninClient } from "@kalera/munin-sdk";
2
2
  import { Type } from "@sinclair/typebox";
3
3
  import { z } from "zod";
4
4
  export default {
5
- id: "munin-memory",
5
+ id: "munin-openclaw",
6
6
  name: "Munin ContextKeep",
7
7
  description: "Persistent memory tools for OpenClaw agents.",
8
8
  kind: "memory",
@@ -12,14 +12,16 @@ export default {
12
12
  .default("https://munin.kalera.dev")
13
13
  .describe("The base URL for your Munin ContextKeep server."),
14
14
  apiKey: z.string().optional().describe("Your API key for Munin."),
15
+ projectId: z.string().optional().describe("Your Context Core ID (e.g. proj_xxx)."),
15
16
  }),
16
17
  register(api) {
17
18
  const baseUrl = api.pluginConfig?.baseUrl ||
18
19
  process.env.MUNIN_BASE_URL ||
19
20
  "https://munin.kalera.dev";
20
21
  const apiKey = api.pluginConfig?.apiKey || process.env.MUNIN_API_KEY;
21
- if (!apiKey) {
22
- api.logger.warn("Munin API key is missing. ContextKeep tools will not be registered.");
22
+ const projectId = api.pluginConfig?.projectId || process.env.MUNIN_PROJECT;
23
+ if (!apiKey || !projectId) {
24
+ api.logger.warn("Munin apiKey or projectId is missing. ContextKeep tools will not be registered.");
23
25
  return;
24
26
  }
25
27
  const client = new MuninClient({ baseUrl, apiKey });
@@ -28,16 +30,12 @@ export default {
28
30
  label: "Store Munin Memory",
29
31
  description: "Store a new memory or update an existing one in ContextKeep.",
30
32
  parameters: Type.Object({
31
- projectId: Type.String({
32
- description: "The Context Core ID for isolation.",
33
- }),
34
33
  key: Type.String({ description: "Unique identifier for the memory." }),
35
34
  content: Type.String({ description: "The content of the memory." }),
36
35
  tags: Type.Optional(Type.String({ description: "Comma-separated list of tags." })),
37
36
  title: Type.Optional(Type.String({ description: "Human-readable title." })),
38
37
  }),
39
- async execute(_toolCallId, params) {
40
- const { projectId, ...payload } = params;
38
+ async execute(_toolCallId, payload) {
41
39
  const res = await client.invoke(projectId, "store", payload);
42
40
  return {
43
41
  content: [
@@ -55,13 +53,12 @@ export default {
55
53
  label: "Retrieve Munin Memory",
56
54
  description: "Retrieve a memory by its key from ContextKeep.",
57
55
  parameters: Type.Object({
58
- projectId: Type.String({ description: "The Context Core ID." }),
59
56
  key: Type.String({
60
57
  description: "The unique identifier of the memory.",
61
58
  }),
62
59
  }),
63
60
  async execute(_toolCallId, params) {
64
- const { projectId, key } = params;
61
+ const { key } = params;
65
62
  const res = await client.invoke(projectId, "retrieve", { key });
66
63
  return {
67
64
  content: [
@@ -79,11 +76,10 @@ export default {
79
76
  label: "Search Munin Memories",
80
77
  description: "Search for memories by key, title, or content in ContextKeep.",
81
78
  parameters: Type.Object({
82
- projectId: Type.String({ description: "The Context Core ID." }),
83
79
  query: Type.String({ description: "The search term." }),
84
80
  }),
85
81
  async execute(_toolCallId, params) {
86
- const { projectId, query } = params;
82
+ const { query } = params;
87
83
  const res = await client.invoke(projectId, "search", { query });
88
84
  return {
89
85
  content: [
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "munin-memory",
2
+ "id": "munin-openclaw",
3
3
  "name": "Munin ContextKeep",
4
4
  "description": "Persistent memory and Context Core for OpenClaw agents.",
5
5
  "kind": "memory",
@@ -15,6 +15,10 @@
15
15
  "apiKey": {
16
16
  "type": "string",
17
17
  "description": "Your API key for Munin."
18
+ },
19
+ "projectId": {
20
+ "type": "string",
21
+ "description": "Your Context Core ID (e.g. proj_xxx)."
18
22
  }
19
23
  }
20
24
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalera/munin-openclaw",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "openclaw": {
6
6
  "extensions": [
package/postinstall.js CHANGED
@@ -2,5 +2,6 @@ console.log('\n\x1b[36m=========================================================
2
2
  console.log('\x1b[36m\x1b[1m🐦 Munin ContextKeep successfully installed for OpenClaw!\x1b[0m');
3
3
  console.log('\x1b[36m=================================================================\x1b[0m\n');
4
4
  console.log('To activate your Munin Memory plugin, set your API key by running:\n');
5
- console.log('\x1b[33m openclaw config set plugins.entries.munin-memory.config.apiKey "YOUR_API_KEY_HERE"\x1b[0m\n');
5
+ console.log('\x1b[33m openclaw config set plugins.entries.munin-openclaw.config.apiKey "YOUR_API_KEY_HERE"\x1b[0m');
6
+ console.log('\x1b[33m openclaw config set plugins.entries.munin-openclaw.config.projectId "YOUR_CONTEXT_CORE_ID"\x1b[0m\n');
6
7
  console.log('Get your free API key at: \x1b[32mhttps://munin.kalera.dev\x1b[0m\n');
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ import { Type } from "@sinclair/typebox";
3
3
  import { z } from "zod";
4
4
 
5
5
  export default {
6
- id: "munin-memory",
6
+ id: "munin-openclaw",
7
7
  name: "Munin ContextKeep",
8
8
  description: "Persistent memory tools for OpenClaw agents.",
9
9
  kind: "memory",
@@ -13,6 +13,7 @@ export default {
13
13
  .default("https://munin.kalera.dev")
14
14
  .describe("The base URL for your Munin ContextKeep server."),
15
15
  apiKey: z.string().optional().describe("Your API key for Munin."),
16
+ projectId: z.string().optional().describe("Your Context Core ID (e.g. proj_xxx)."),
16
17
  }) as any,
17
18
  register(api: any) {
18
19
  const baseUrl =
@@ -21,10 +22,12 @@ export default {
21
22
  "https://munin.kalera.dev";
22
23
  const apiKey =
23
24
  (api.pluginConfig?.apiKey as string) || process.env.MUNIN_API_KEY;
25
+ const projectId =
26
+ (api.pluginConfig?.projectId as string) || process.env.MUNIN_PROJECT;
24
27
 
25
- if (!apiKey) {
28
+ if (!apiKey || !projectId) {
26
29
  api.logger.warn(
27
- "Munin API key is missing. ContextKeep tools will not be registered.",
30
+ "Munin apiKey or projectId is missing. ContextKeep tools will not be registered.",
28
31
  );
29
32
  return;
30
33
  }
@@ -36,9 +39,6 @@ export default {
36
39
  label: "Store Munin Memory",
37
40
  description: "Store a new memory or update an existing one in ContextKeep.",
38
41
  parameters: Type.Object({
39
- projectId: Type.String({
40
- description: "The Context Core ID for isolation.",
41
- }),
42
42
  key: Type.String({ description: "Unique identifier for the memory." }),
43
43
  content: Type.String({ description: "The content of the memory." }),
44
44
  tags: Type.Optional(
@@ -48,8 +48,7 @@ export default {
48
48
  Type.String({ description: "Human-readable title." }),
49
49
  ),
50
50
  }),
51
- async execute(_toolCallId: string, params: any) {
52
- const { projectId, ...payload } = params;
51
+ async execute(_toolCallId: string, payload: any) {
53
52
  const res = await client.invoke(projectId, "store", payload);
54
53
  return {
55
54
  content: [
@@ -68,13 +67,12 @@ export default {
68
67
  label: "Retrieve Munin Memory",
69
68
  description: "Retrieve a memory by its key from ContextKeep.",
70
69
  parameters: Type.Object({
71
- projectId: Type.String({ description: "The Context Core ID." }),
72
70
  key: Type.String({
73
71
  description: "The unique identifier of the memory.",
74
72
  }),
75
73
  }),
76
74
  async execute(_toolCallId: string, params: any) {
77
- const { projectId, key } = params;
75
+ const { key } = params;
78
76
  const res = await client.invoke(projectId, "retrieve", { key });
79
77
  return {
80
78
  content: [
@@ -93,11 +91,10 @@ export default {
93
91
  label: "Search Munin Memories",
94
92
  description: "Search for memories by key, title, or content in ContextKeep.",
95
93
  parameters: Type.Object({
96
- projectId: Type.String({ description: "The Context Core ID." }),
97
94
  query: Type.String({ description: "The search term." }),
98
95
  }),
99
96
  async execute(_toolCallId: string, params: any) {
100
- const { projectId, query } = params;
97
+ const { query } = params;
101
98
  const res = await client.invoke(projectId, "search", { query });
102
99
  return {
103
100
  content: [