openclaw-storage-plugin 0.1.1 → 0.1.2
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/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/index.ts +2 -1
- package/openclaw.plugin.json +9 -0
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,QAmDxC"}
|
package/dist/index.js
CHANGED
|
@@ -8,8 +8,9 @@ export default function register(api) {
|
|
|
8
8
|
const entry = api.getConfig?.()?.plugins?.entries?.['openclaw-storage'] || {};
|
|
9
9
|
const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
|
|
10
10
|
const storageHost = pluginConfig.storageHost || 'https://storage.bsv.direct';
|
|
11
|
+
const network = pluginConfig.network || 'mainnet';
|
|
11
12
|
const walletDir = pluginConfig.walletDir || path.join(os.homedir(), '.openclaw', 'bsv-wallet');
|
|
12
|
-
api.logger.info(`[storage] Initializing Storage Plugin (host: ${storageHost})`);
|
|
13
|
+
api.logger.info(`[storage] Initializing Storage Plugin (network: ${network}, host: ${storageHost})`);
|
|
13
14
|
// Register the storage tool
|
|
14
15
|
api.registerTool({
|
|
15
16
|
name: "storage",
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC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
CHANGED
|
@@ -9,9 +9,10 @@ export default function register(api: any) {
|
|
|
9
9
|
const entry = api.getConfig?.()?.plugins?.entries?.['openclaw-storage'] || {};
|
|
10
10
|
const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
|
|
11
11
|
const storageHost = pluginConfig.storageHost || 'https://storage.bsv.direct';
|
|
12
|
+
const network = pluginConfig.network || 'mainnet';
|
|
12
13
|
const walletDir = pluginConfig.walletDir || path.join(os.homedir(), '.openclaw', 'bsv-wallet');
|
|
13
14
|
|
|
14
|
-
api.logger.info(`[storage] Initializing Storage Plugin (host: ${storageHost})`);
|
|
15
|
+
api.logger.info(`[storage] Initializing Storage Plugin (network: ${network}, host: ${storageHost})`);
|
|
15
16
|
|
|
16
17
|
// Register the storage tool
|
|
17
18
|
api.registerTool({
|
package/openclaw.plugin.json
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"default": "https://storage.bsv.direct",
|
|
16
16
|
"description": "Preferred UHRP storage host URL"
|
|
17
17
|
},
|
|
18
|
+
"network": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["mainnet", "testnet"],
|
|
21
|
+
"default": "mainnet",
|
|
22
|
+
"description": "BSV network to use"
|
|
23
|
+
},
|
|
18
24
|
"walletDir": {
|
|
19
25
|
"type": "string",
|
|
20
26
|
"description": "Path to BSV wallet storage (defaults to ~/.openclaw/bsv-wallet)"
|
|
@@ -25,6 +31,9 @@
|
|
|
25
31
|
"storageHost": {
|
|
26
32
|
"label": "Storage Host",
|
|
27
33
|
"placeholder": "https://storage.bsv.direct"
|
|
34
|
+
},
|
|
35
|
+
"network": {
|
|
36
|
+
"label": "BSV Network"
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
}
|