@mrc2204/agent-smart-memo 5.1.3 → 5.1.5

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/bin/asm.mjs +8 -8
  2. package/package.json +1 -1
package/bin/asm.mjs CHANGED
@@ -36,11 +36,13 @@ export function parseAsmCliArgs(argv = []) {
36
36
  return { command: "setup-openclaw", argv: args.slice(2) };
37
37
  }
38
38
 
39
- if (first === "install" && (args[1] || "")) {
39
+ if (first === "install") {
40
+ const platform = String(args[1] || "openclaw").trim().toLowerCase();
41
+ const hasExplicitPlatform = Boolean(args[1]);
40
42
  return {
41
43
  command: "install-platform",
42
- platform: String(args[1] || "").trim().toLowerCase(),
43
- argv: args.slice(2),
44
+ platform,
45
+ argv: hasExplicitPlatform ? args.slice(2) : args.slice(1),
44
46
  };
45
47
  }
46
48
 
@@ -358,8 +360,6 @@ export async function main(argv = process.argv.slice(2)) {
358
360
  return 1;
359
361
  }
360
362
 
361
- if (import.meta.url === `file://${process.argv[1]}`) {
362
- main().then((code) => {
363
- process.exitCode = code;
364
- });
365
- }
363
+ main().then((code) => {
364
+ process.exitCode = code;
365
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrc2204/agent-smart-memo",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "description": "Smart Memory Plugin for OpenClaw \u2014 structured slot memory with auto-capture, auto-recall, essence distillation, and Qdrant vector search",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",