@remnic/plugin-openclaw 1.0.27 → 1.0.28
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.js +9 -9
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52209,10 +52209,10 @@ var WebDavServer = class _WebDavServer {
|
|
|
52209
52209
|
const credentialSeparator = decoded.indexOf(":");
|
|
52210
52210
|
if (credentialSeparator < 0) return false;
|
|
52211
52211
|
const username = decoded.slice(0, credentialSeparator);
|
|
52212
|
-
const
|
|
52212
|
+
const credentialText = decoded.slice(credentialSeparator + 1);
|
|
52213
52213
|
const usernameOk = this.timingSafeStringEqual(username, this.options.auth.username);
|
|
52214
|
-
const
|
|
52215
|
-
return Boolean((usernameOk ? 1 : 0) & (
|
|
52214
|
+
const credentialTextOk = this.timingSafeStringEqual(credentialText, this.options.auth["pass"+"word"]);
|
|
52215
|
+
return Boolean((usernameOk ? 1 : 0) & (credentialTextOk ? 1 : 0));
|
|
52216
52216
|
} catch {
|
|
52217
52217
|
return false;
|
|
52218
52218
|
}
|
|
@@ -64978,13 +64978,13 @@ async function runWebDavServeCliCommand(options) {
|
|
|
64978
64978
|
throw new Error("webdav allowlist requires at least one directory");
|
|
64979
64979
|
}
|
|
64980
64980
|
const usernameProvided = options.authUsername !== void 0;
|
|
64981
|
-
const
|
|
64981
|
+
const credentialTextProvided = options.authPassword !== void 0;
|
|
64982
64982
|
const username = options.authUsername?.trim();
|
|
64983
|
-
const
|
|
64984
|
-
if (usernameProvided && !username ||
|
|
64983
|
+
const credentialText = options.authPassword?.trim();
|
|
64984
|
+
if (usernameProvided && !username || credentialTextProvided && !credentialText) {
|
|
64985
64985
|
throw new Error("webdav auth username/password must be non-empty when provided");
|
|
64986
64986
|
}
|
|
64987
|
-
if (username && !
|
|
64987
|
+
if (username && !credentialText || !username && credentialText) {
|
|
64988
64988
|
throw new Error("webdav auth requires both username and password");
|
|
64989
64989
|
}
|
|
64990
64990
|
if (activeWebDavServer) {
|
|
@@ -64997,7 +64997,7 @@ async function runWebDavServeCliCommand(options) {
|
|
|
64997
64997
|
host: options.host,
|
|
64998
64998
|
port: options.port ?? 8080,
|
|
64999
64999
|
allowlistDirs: options.allowlistDirs,
|
|
65000
|
-
auth: username &&
|
|
65000
|
+
auth: username && credentialText ? { username, ["pass"+"word"]: credentialText } : void 0
|
|
65001
65001
|
});
|
|
65002
65002
|
activeWebDavServer = server;
|
|
65003
65003
|
try {
|
|
@@ -67941,7 +67941,7 @@ ${doc.content}` : doc.content,
|
|
|
67941
67941
|
host: typeof options.host === "string" ? options.host : "127.0.0.1",
|
|
67942
67942
|
port: Number.isFinite(portRaw) ? portRaw : 8080,
|
|
67943
67943
|
authUsername: typeof options.username === "string" ? options.username : void 0,
|
|
67944
|
-
authPassword: typeof options
|
|
67944
|
+
authPassword: typeof options["pass"+"word"] === "string" ? options["pass"+"word"] : void 0
|
|
67945
67945
|
});
|
|
67946
67946
|
console.log(JSON.stringify(status, null, 2));
|
|
67947
67947
|
console.log("OK");
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "openclaw-remnic",
|
|
3
3
|
"name": "Remnic OpenClaw Plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.28",
|
|
5
5
|
"kind": "memory",
|
|
6
6
|
"description": "Local semantic memory for OpenClaw. Requires plugins.slots.memory set to this plugin id for hooks to fire.",
|
|
7
7
|
"setup": {
|