mnemospark 1.4.0 → 1.5.1
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.
- package/dist/cli.js +20 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3211,6 +3211,20 @@ function renderHeader(w) {
|
|
|
3211
3211
|
HDR_FILE_OR_KEY
|
|
3212
3212
|
].join(" ");
|
|
3213
3213
|
}
|
|
3214
|
+
function formatLsCommandCopyBlock(commandLine) {
|
|
3215
|
+
return ["```", commandLine, "```"].join("\n");
|
|
3216
|
+
}
|
|
3217
|
+
function formatLsWhatsNextFooter(walletAddress) {
|
|
3218
|
+
const downloadLine = `/mnemospark cloud download wallet-address:${walletAddress} [object-key:<object-key> | name:<friendly-name>] [latest:true|at:<timestamp>] [async:true] [orchestrator:<inline|subagent>] [timeout-seconds:<n>]`;
|
|
3219
|
+
const deleteLine = `/mnemospark cloud delete wallet-address:${walletAddress} [object-key:<object-key> | name:<friendly-name>] [latest:true|at:<timestamp>]`;
|
|
3220
|
+
return [
|
|
3221
|
+
"What's next? Would you like to download or delete a file:",
|
|
3222
|
+
"",
|
|
3223
|
+
formatLsCommandCopyBlock(downloadLine),
|
|
3224
|
+
"",
|
|
3225
|
+
formatLsCommandCopyBlock(deleteLine)
|
|
3226
|
+
].join("\n");
|
|
3227
|
+
}
|
|
3214
3228
|
async function buildMnemosparkLsMessage(result, ctx) {
|
|
3215
3229
|
const now = ctx.now ?? /* @__PURE__ */ new Date();
|
|
3216
3230
|
if (isStorageLsListResponse(result)) {
|
|
@@ -3227,7 +3241,9 @@ async function buildMnemosparkLsMessage(result, ctx) {
|
|
|
3227
3241
|
const fence2 = ["```", [header2, ...bodyLines].join("\n"), "```"].join("\n");
|
|
3228
3242
|
return `${prose2}
|
|
3229
3243
|
|
|
3230
|
-
${fence2}
|
|
3244
|
+
${fence2}
|
|
3245
|
+
|
|
3246
|
+
${formatLsWhatsNextFooter(ctx.walletAddress)}`;
|
|
3231
3247
|
}
|
|
3232
3248
|
const friendly = await ctx.datastore.findLatestFriendlyNameForObjectKey(
|
|
3233
3249
|
ctx.walletAddress,
|
|
@@ -3264,7 +3280,9 @@ ${fence2}`;
|
|
|
3264
3280
|
const fence = ["```", [header, line].join("\n"), "```"].join("\n");
|
|
3265
3281
|
return `${prose}
|
|
3266
3282
|
|
|
3267
|
-
${fence}
|
|
3283
|
+
${fence}
|
|
3284
|
+
|
|
3285
|
+
${formatLsWhatsNextFooter(ctx.walletAddress)}`;
|
|
3268
3286
|
}
|
|
3269
3287
|
|
|
3270
3288
|
// src/cloud-datastore.ts
|