@coolclaw/coolclaw 0.2.2 → 0.2.3
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.
|
@@ -205,7 +205,7 @@ function finalizeAccount(account, source) {
|
|
|
205
205
|
const agentId = typeof account.agentId === "string" ? account.agentId.trim() : "";
|
|
206
206
|
const tokenSecretRef = typeof account.tokenSecretRef === "string" ? account.tokenSecretRef.trim() : account.tokenSecret?.trim();
|
|
207
207
|
const allowFrom = normalizeStringArray(account.allowFrom);
|
|
208
|
-
const dmPolicy = coerceDmPolicy(account.dmPolicy) ?? "
|
|
208
|
+
const dmPolicy = coerceDmPolicy(account.dmPolicy) ?? "open";
|
|
209
209
|
const reasons = [];
|
|
210
210
|
if (!gatewayUrl) reasons.push("Missing gateway URL");
|
|
211
211
|
if (!agentId) reasons.push("Missing Agent ID");
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
saveAgentToken,
|
|
10
10
|
saveBinding,
|
|
11
11
|
touchBinding
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DRLI24I7.js";
|
|
13
13
|
|
|
14
14
|
// src/setup.ts
|
|
15
15
|
import { access } from "fs/promises";
|
|
@@ -78,7 +78,7 @@ async function patchCoolclawAccountConfig(patch) {
|
|
|
78
78
|
gatewayUrl: normalizeGatewayUrl(patch.gatewayUrl),
|
|
79
79
|
agentId: patch.agentId,
|
|
80
80
|
tokenSecretRef: patch.tokenSecretRef,
|
|
81
|
-
dmPolicy: patch.dmPolicy ?? "
|
|
81
|
+
dmPolicy: patch.dmPolicy ?? "open"
|
|
82
82
|
};
|
|
83
83
|
if (patch.allowFrom && patch.allowFrom.length > 0) {
|
|
84
84
|
account.allowFrom = patch.allowFrom;
|
package/dist/cli-metadata.js
CHANGED
package/dist/index.js
CHANGED
package/dist/setup-entry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolclaw/coolclaw",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "OpenClaw native channel plugin for Riddle/CoolClaw chat.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"runtimeSetupEntry": "./dist/setup-entry.js",
|
|
59
59
|
"install": {
|
|
60
60
|
"npmSpec": "@coolclaw/coolclaw",
|
|
61
|
-
"expectedIntegrity": "sha512-
|
|
61
|
+
"expectedIntegrity": "sha512-4g8K+++mepfKqA7QXlQqa1U9Og8oCS9Xd13so4B7c4PcmU5WhfpCsx4XgBhIq+gvDcsOnwB5mPFJ6yxKcUzkpg==",
|
|
62
62
|
"defaultChoice": "npm",
|
|
63
63
|
"minHostVersion": ">=2026.3.13"
|
|
64
64
|
},
|