@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.
package/dist/index.js CHANGED
@@ -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';
@@ -295,8 +296,6 @@ async function assertApiKeyValid(apiKey, opts = {}) {
295
296
  statusCode: result.status
296
297
  });
297
298
  }
298
-
299
- // src/channel.wizard.ts
300
299
  var JUST_REGISTERED_SENTINEL = "_agentchatJustRegistered";
301
300
  var HANDLE_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
302
301
  var HANDLE_MIN_LENGTH = 3;
@@ -731,12 +730,12 @@ var agentchatSetupWizard = {
731
730
  inspect: ({ cfg, accountId }) => {
732
731
  const apiKey = readAgentchatConfigField(cfg, accountId, "apiKey");
733
732
  const configured = isApiKeyPresent(apiKey);
734
- const envValue = process.env.AGENTCHAT_API_KEY?.trim();
733
+ const envValue = readApiKeyFromEnv(MIN_API_KEY_LENGTH);
735
734
  return {
736
735
  accountConfigured: configured,
737
736
  hasConfiguredValue: configured,
738
737
  resolvedValue: configured ? apiKey : void 0,
739
- envValue: envValue && envValue.length >= MIN_API_KEY_LENGTH ? envValue : void 0
738
+ envValue
740
739
  };
741
740
  }
742
741
  }
@@ -1797,7 +1796,7 @@ var CircuitBreaker = class {
1797
1796
  };
1798
1797
 
1799
1798
  // src/version.ts
1800
- var PACKAGE_VERSION = "0.4.0";
1799
+ var PACKAGE_VERSION = "0.6.0";
1801
1800
 
1802
1801
  // src/outbound.ts
1803
1802
  var DEFAULT_RETRY_POLICY = {