@mrc2204/agent-smart-memo 5.1.7 → 5.1.8

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 +22 -2
  2. package/package.json +1 -1
package/bin/asm.mjs CHANGED
@@ -40,12 +40,15 @@ export function parseAsmCliArgs(argv = []) {
40
40
  }
41
41
 
42
42
  if (first === "install") {
43
- const platform = String(args[1] || "openclaw").trim().toLowerCase();
44
43
  const hasExplicitPlatform = Boolean(args[1]);
44
+ if (!hasExplicitPlatform) {
45
+ return { command: "install-cli", argv: [] };
46
+ }
47
+ const platform = String(args[1] || "").trim().toLowerCase();
45
48
  return {
46
49
  command: "install-platform",
47
50
  platform,
48
- argv: hasExplicitPlatform ? args.slice(2) : args.slice(1),
51
+ argv: args.slice(2),
49
52
  };
50
53
  }
51
54
 
@@ -80,6 +83,7 @@ export function printHelp(log = console.log) {
80
83
  log("asm - Agent Smart Memo CLI");
81
84
  log("");
82
85
  log("Usage:");
86
+ log(" asm install # install / expose CLI only");
83
87
  log(" asm setup-openclaw [--yes]");
84
88
  log(" asm setup openclaw [--yes]");
85
89
  log(" asm install openclaw [--yes]");
@@ -167,6 +171,17 @@ function parseProjectEventArgs(argv = []) {
167
171
  return out;
168
172
  }
169
173
 
174
+ export async function runCliBootstrapFlow({ log = console.log } = {}) {
175
+ log("[ASM-CLI] Installing / exposing ASM CLI only...");
176
+ log(`[ASM-CLI] Package: ${ASM_PLUGIN_PACKAGE}`);
177
+ log("[ASM-CLI] The CLI entrypoint is now available as: asm");
178
+ log("[ASM-CLI] Next steps:");
179
+ log(" 1) asm install openclaw");
180
+ log(" 2) asm install opencode");
181
+ log(" 3) asm install paperclip");
182
+ return { ok: true, step: "install-cli" };
183
+ }
184
+
170
185
  export async function runSetupOpenClawFlow({
171
186
  runner = createShellRunner(),
172
187
  initOpenClaw = runInitOpenClaw,
@@ -250,6 +265,11 @@ export async function main(argv = process.argv.slice(2)) {
250
265
  return 0;
251
266
  }
252
267
 
268
+ if (parsed.command === "install-cli") {
269
+ const result = await runCliBootstrapFlow({ log: console.log });
270
+ return result.ok ? 0 : 1;
271
+ }
272
+
253
273
  if (parsed.command === "setup-openclaw") {
254
274
  const result = await runSetupOpenClawFlow({ argv: parsed.argv });
255
275
  return result.ok ? 0 : 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrc2204/agent-smart-memo",
3
- "version": "5.1.7",
3
+ "version": "5.1.8",
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",