@agentchatme/openclaw 0.6.1 → 0.6.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.js CHANGED
@@ -1796,7 +1796,7 @@ var CircuitBreaker = class {
1796
1796
  };
1797
1797
 
1798
1798
  // src/version.ts
1799
- var PACKAGE_VERSION = "0.6.1";
1799
+ var PACKAGE_VERSION = "0.6.2";
1800
1800
 
1801
1801
  // src/outbound.ts
1802
1802
  var DEFAULT_RETRY_POLICY = {
@@ -4410,7 +4410,10 @@ var agentchatSetupEntry = defineSetupPluginEntry(agentchatPlugin);
4410
4410
  function hasAgentChatConfiguredState(config) {
4411
4411
  if (!config || typeof config !== "object") return false;
4412
4412
  const key = config.apiKey;
4413
- return typeof key === "string" && key.length >= 20;
4413
+ if (typeof key !== "string" || key.length < 20) return false;
4414
+ const handle = config.agentHandle;
4415
+ if (typeof handle !== "string" || handle.trim().length === 0) return false;
4416
+ return true;
4414
4417
  }
4415
4418
 
4416
4419
  export { AGENTCHAT_CHANNEL_ID, AGENTCHAT_DEFAULT_ACCOUNT_ID, AgentChatChannelError, AgentchatChannelRuntime, agentchatChannelEntry, agentchatPlugin, agentchatSetupEntry, agentchatPlugin as agentchatSetupPlugin, assertApiKeyValid, agentchatChannelEntry as default, hasAgentChatConfiguredState, parseChannelConfig, registerAgentStart, registerAgentVerify, validateApiKey };