mnemospark 0.1.8 → 0.1.9
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/README.md +0 -2
- package/README.md.bak +7 -1
- package/dist/cli.js +9 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/README.md.bak
CHANGED
|
@@ -19,4 +19,10 @@ mnemospark is an OpenClaw plugin that provides access to hyper-scaler cloud oper
|
|
|
19
19
|
|
|
20
20
|
Plugin registration is handled only by `openclaw plugins install mnemospark`. The `npx mnemospark install` command sets up your wallet and helper scripts under `~/.openclaw/mnemospark/`; it does not write to `~/.openclaw/extensions/`.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
## Quick start
|
|
23
|
+
|
|
24
|
+
1. **Install the plugin in OpenClaw:** `openclaw plugins install mnemospark` then `openclaw gateway start`
|
|
25
|
+
2. **Optional wallet setup:** `npx mnemospark install --standard`
|
|
26
|
+
|
|
27
|
+
In OpenClaw chat, type `/` to see **mnemospark-wallet** and **mnemospark-cloud**. Use `/mnemospark-wallet` for wallet status or export, `/mnemospark-cloud help` for storage commands.
|
|
28
|
+
|
package/dist/cli.js
CHANGED
|
@@ -1875,24 +1875,24 @@ var REQUIRED_STORAGE_OBJECT = "--wallet-address, --object-key";
|
|
|
1875
1875
|
var CLOUD_HELP_TEXT = [
|
|
1876
1876
|
"\u2601\uFE0F **mnemospark Cloud Commands**",
|
|
1877
1877
|
"",
|
|
1878
|
-
"\u2022 `/mnemospark
|
|
1878
|
+
"\u2022 `/mnemospark-cloud` or `/mnemospark-cloud help` \u2014 show this message",
|
|
1879
1879
|
"",
|
|
1880
|
-
"\u2022 `/mnemospark
|
|
1880
|
+
"\u2022 `/mnemospark-cloud backup <file>` or `/mnemospark-cloud backup <directory>`",
|
|
1881
1881
|
" Required: <file> or <directory> (path to back up)",
|
|
1882
1882
|
"",
|
|
1883
|
-
"\u2022 `/mnemospark
|
|
1883
|
+
"\u2022 `/mnemospark-cloud price-storage --wallet-address <addr> --object-id <id> --object-id-hash <hash> --gb <gb> --provider <provider> --region <region>`",
|
|
1884
1884
|
" Required: " + REQUIRED_PRICE_STORAGE,
|
|
1885
1885
|
"",
|
|
1886
|
-
"\u2022 `/mnemospark
|
|
1886
|
+
"\u2022 `/mnemospark-cloud upload --quote-id <quote-id> --wallet-address <addr> --object-id <id> --object-id-hash <hash>`",
|
|
1887
1887
|
" Required: " + REQUIRED_UPLOAD,
|
|
1888
1888
|
"",
|
|
1889
|
-
"\u2022 `/mnemospark
|
|
1889
|
+
"\u2022 `/mnemospark-cloud ls --wallet-address <addr> --object-key <object-key>`",
|
|
1890
1890
|
" Required: " + REQUIRED_STORAGE_OBJECT,
|
|
1891
1891
|
"",
|
|
1892
|
-
"\u2022 `/mnemospark
|
|
1892
|
+
"\u2022 `/mnemospark-cloud download --wallet-address <addr> --object-key <object-key>`",
|
|
1893
1893
|
" Required: " + REQUIRED_STORAGE_OBJECT,
|
|
1894
1894
|
"",
|
|
1895
|
-
"\u2022 `/mnemospark
|
|
1895
|
+
"\u2022 `/mnemospark-cloud delete --wallet-address <addr> --object-key <object-key>`",
|
|
1896
1896
|
" Required: " + REQUIRED_STORAGE_OBJECT,
|
|
1897
1897
|
"",
|
|
1898
1898
|
"Backup creates a tar+gzip object in ~/.openclaw/mnemospark/backup and appends object metadata to ~/.openclaw/mnemospark/object.log. Upload appends storage rows and cron-tracking rows to object.log, and keeps job entries in ~/.openclaw/mnemospark/crontab.txt. All storage commands (price-storage, upload, ls, download, delete) require --wallet-address."
|
|
@@ -2633,7 +2633,7 @@ function extractUploadErrorMessage(error) {
|
|
|
2633
2633
|
function formatPriceStorageUserMessage(quote) {
|
|
2634
2634
|
return [
|
|
2635
2635
|
`Your storage quote \`${quote.quote_id}\` is valid for 1 hour, the storage price is \`${quote.storage_price}\` for \`${quote.object_id}\` with file size of \`${quote.object_size_gb}\` in \`${quote.provider}\` \`${quote.location}\``,
|
|
2636
|
-
`If you accept this quote run the command /mnemospark
|
|
2636
|
+
`If you accept this quote run the command /mnemospark-cloud upload --quote-id \`${quote.quote_id}\` --wallet-address \`${quote.addr}\` --object-id \`${quote.object_id}\` --object-id-hash \`${quote.object_id_hash}\``
|
|
2637
2637
|
].join("\n");
|
|
2638
2638
|
}
|
|
2639
2639
|
function formatStorageLsUserMessage(result, requestedObjectKey) {
|
|
@@ -2654,7 +2654,7 @@ function createCloudCommand(options = {}) {
|
|
|
2654
2654
|
const requestStorageDelete = options.requestStorageDeleteFn ?? requestStorageDeleteViaProxy;
|
|
2655
2655
|
const objectLogHomeDir = options.objectLogHomeDir ?? options.backupOptions?.homeDir;
|
|
2656
2656
|
return {
|
|
2657
|
-
name: "cloud",
|
|
2657
|
+
name: "mnemospark-cloud",
|
|
2658
2658
|
description: "Manage mnemospark cloud storage workflow commands",
|
|
2659
2659
|
acceptsArgs: true,
|
|
2660
2660
|
requireAuth: true,
|