mindkeeper-openclaw 0.2.32 → 0.2.33

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 (3) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +10 -9
  3. package/LICENSE +0 -21
package/dist/index.js CHANGED
@@ -1376,9 +1376,9 @@ function resolveBundledSkillDir() {
1376
1376
  function createWatcherService(api, trackerRef) {
1377
1377
  let watcher = null;
1378
1378
  const log = {
1379
- info: (msg) => api.log?.info?.(msg),
1380
- warn: (msg) => api.log?.warn?.(msg),
1381
- error: (msg) => api.log?.error?.(msg)
1379
+ info: (msg) => api.logger?.info?.(msg),
1380
+ warn: (msg) => api.logger?.warn?.(msg),
1381
+ error: (msg) => api.logger?.error?.(msg)
1382
1382
  };
1383
1383
  return {
1384
1384
  id: "mindkeeper-watcher",
@@ -1388,7 +1388,7 @@ function createWatcherService(api, trackerRef) {
1388
1388
  log.warn("[mindkeeper] No workspace directory in service context. Watcher disabled.");
1389
1389
  return;
1390
1390
  }
1391
- ensureWorkspaceSkillMirror(workspaceDir, { log: api.log });
1391
+ ensureWorkspaceSkillMirror(workspaceDir, { log: api.logger });
1392
1392
  log.info(
1393
1393
  `[mindkeeper] Service starting: ctx.config=${ctx.config ? "present" : "missing"}, pluginConfig=${api.pluginConfig ? JSON.stringify(api.pluginConfig) : "none"}`
1394
1394
  );
@@ -1447,11 +1447,11 @@ function mindkeeperPlugin(api) {
1447
1447
  const trackerRef = { current: null };
1448
1448
  registerTrackerTools(api, trackerRef);
1449
1449
  registerTrackerCli(api, trackerRef);
1450
- ensureWorkspaceSkillMirror(api.getWorkspaceDir?.(), { log: api.log });
1450
+ ensureWorkspaceSkillMirror(api.getWorkspaceDir?.(), { log: api.logger });
1451
1451
  const watcherService = createWatcherService(api, trackerRef);
1452
1452
  api.registerService?.(watcherService);
1453
1453
  ensureToolsInConfig(api);
1454
- api.log?.info?.("[mindkeeper] Plugin loaded.");
1454
+ api.logger?.info?.("[mindkeeper] Plugin loaded.");
1455
1455
  }
1456
1456
  function ensureToolsInConfig(api) {
1457
1457
  const cfg = api.config;
@@ -1472,5 +1472,5 @@ function ensureToolsInConfig(api) {
1472
1472
  void writeConfigFile({
1473
1473
  ...cfg,
1474
1474
  tools: { ...cfg.tools, [key]: merged }
1475
- }).catch((err) => api.log?.warn?.(`[mindkeeper] Failed to auto-update tools.${key}:`, String(err)));
1475
+ }).catch((err) => api.logger?.warn?.(`[mindkeeper] Failed to auto-update tools.${key}:`, String(err)));
1476
1476
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindkeeper-openclaw",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "OpenClaw plugin for mindkeeper: auto-snapshot, diff, and rollback for agent context files",
5
5
  "keywords": [
6
6
  "openclaw",
@@ -29,6 +29,14 @@
29
29
  "scripts/postinstall-merge-config.cjs",
30
30
  "README.md"
31
31
  ],
32
+ "scripts": {
33
+ "build": "node build.mjs",
34
+ "test": "vitest run",
35
+ "typecheck": "tsc --noEmit",
36
+ "clean": "rm -rf dist",
37
+ "prepublishOnly": "npm run clean && npm run build",
38
+ "postinstall": "node scripts/postinstall-merge-config.cjs"
39
+ },
32
40
  "openclaw": {
33
41
  "extensions": [
34
42
  "./dist/index.js"
@@ -51,12 +59,5 @@
51
59
  },
52
60
  "publishConfig": {
53
61
  "access": "public"
54
- },
55
- "scripts": {
56
- "build": "node build.mjs",
57
- "test": "vitest run",
58
- "typecheck": "tsc --noEmit",
59
- "clean": "rm -rf dist",
60
- "postinstall": "node scripts/postinstall-merge-config.cjs"
61
62
  }
62
- }
63
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 context-vault contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.