@mrc2204/agent-smart-memo 5.1.4 → 5.1.6

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 +9 -4
  2. package/package.json +1 -1
package/bin/asm.mjs CHANGED
@@ -21,7 +21,10 @@ function includesAsmPlugin(output) {
21
21
  }
22
22
 
23
23
  export function parseAsmCliArgs(argv = []) {
24
- const args = Array.isArray(argv) ? argv.map((x) => String(x)) : [];
24
+ let args = Array.isArray(argv) ? argv.map((x) => String(x)) : [];
25
+ if (args[0] === 'agent-smart-memo' || args[0] === '@mrc2204/agent-smart-memo') {
26
+ args = args.slice(1);
27
+ }
25
28
  const first = args[0] || "";
26
29
 
27
30
  if (!first || first === "help" || first === "--help" || first === "-h") {
@@ -36,11 +39,13 @@ export function parseAsmCliArgs(argv = []) {
36
39
  return { command: "setup-openclaw", argv: args.slice(2) };
37
40
  }
38
41
 
39
- if (first === "install" && (args[1] || "")) {
42
+ if (first === "install") {
43
+ const platform = String(args[1] || "openclaw").trim().toLowerCase();
44
+ const hasExplicitPlatform = Boolean(args[1]);
40
45
  return {
41
46
  command: "install-platform",
42
- platform: String(args[1] || "").trim().toLowerCase(),
43
- argv: args.slice(2),
47
+ platform,
48
+ argv: hasExplicitPlatform ? args.slice(2) : args.slice(1),
44
49
  };
45
50
  }
46
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrc2204/agent-smart-memo",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
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",