@marenfei/message-logger-plugin 0.1.2 → 0.1.3-beta.0

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/index.ts +9 -9
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -489,15 +489,15 @@ export default function register(api: OpenClawPluginApi) {
489
489
  }
490
490
 
491
491
  // 2. openclaw/package.json via createRequire
492
- try {
493
- const pkgPath = requireResolver.resolve("openclaw/package.json");
494
- const pkg = readJsonSync(pkgPath);
495
- if (typeof pkg?.version === "string" && (pkg.version as string).trim()) {
496
- return (pkg.version as string).trim();
497
- }
498
- } catch {
499
- // module not resolvable, fall through
500
- }
492
+ // try {
493
+ // const pkgPath = requireResolver.resolve("openclaw/package.json");
494
+ // const pkg = readJsonSync(pkgPath);
495
+ // if (typeof pkg?.version === "string" && (pkg.version as string).trim()) {
496
+ // return (pkg.version as string).trim();
497
+ // }
498
+ // } catch {
499
+ // // module not resolvable, fall through
500
+ // }
501
501
 
502
502
  // 3. npm global node_modules: `npm root -g` + /openclaw/package.json
503
503
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marenfei/message-logger-plugin",
3
- "version": "0.1.2",
3
+ "version": "0.1.3-beta.0",
4
4
  "description": "OpenClaw message logger plugin using plugin hooks",
5
5
  "type": "module",
6
6
  "main": "./index.ts",