@agentchatme/openclaw 0.4.0 → 0.6.0

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.
@@ -1,5 +1,6 @@
1
1
  import { buildChannelConfigSchema, defineChannelPluginEntry, defineSetupPluginEntry } from 'openclaw/plugin-sdk/channel-core';
2
2
  import { setSetupChannelEnabled, WizardCancelledError } from 'openclaw/plugin-sdk/setup';
3
+ import { readApiKeyFromEnv } from './credentials/read-env.js';
3
4
  import { z } from 'zod';
4
5
  import pino from 'pino';
5
6
  import { WebSocket } from 'ws';
@@ -287,8 +288,6 @@ async function post(path, body, opts) {
287
288
  clearTimeout(timer);
288
289
  }
289
290
  }
290
-
291
- // src/channel.wizard.ts
292
291
  var JUST_REGISTERED_SENTINEL = "_agentchatJustRegistered";
293
292
  var HANDLE_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
294
293
  var HANDLE_MIN_LENGTH = 3;
@@ -723,12 +722,12 @@ var agentchatSetupWizard = {
723
722
  inspect: ({ cfg, accountId }) => {
724
723
  const apiKey = readAgentchatConfigField(cfg, accountId, "apiKey");
725
724
  const configured = isApiKeyPresent(apiKey);
726
- const envValue = process.env.AGENTCHAT_API_KEY?.trim();
725
+ const envValue = readApiKeyFromEnv(MIN_API_KEY_LENGTH);
727
726
  return {
728
727
  accountConfigured: configured,
729
728
  hasConfiguredValue: configured,
730
729
  resolvedValue: configured ? apiKey : void 0,
731
- envValue: envValue && envValue.length >= MIN_API_KEY_LENGTH ? envValue : void 0
730
+ envValue
732
731
  };
733
732
  }
734
733
  }
@@ -1789,7 +1788,7 @@ var CircuitBreaker = class {
1789
1788
  };
1790
1789
 
1791
1790
  // src/version.ts
1792
- var PACKAGE_VERSION = "0.4.0";
1791
+ var PACKAGE_VERSION = "0.6.0";
1793
1792
 
1794
1793
  // src/outbound.ts
1795
1794
  var DEFAULT_RETRY_POLICY = {