@agentchatme/openclaw 0.5.0 → 0.6.1
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/CHANGELOG.md +109 -0
- package/SECURITY.md +39 -0
- package/dist/credentials/read-env.cjs +13 -0
- package/dist/credentials/read-env.cjs.map +1 -0
- package/dist/credentials/read-env.d.cts +15 -0
- package/dist/credentials/read-env.d.ts +15 -0
- package/dist/credentials/read-env.js +11 -0
- package/dist/credentials/read-env.js.map +1 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/setup-entry.cjs +4 -5
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.js +4 -5
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +12 -1
- package/package.json +180 -181
package/dist/setup-entry.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';
|
|
@@ -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 =
|
|
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
|
|
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.
|
|
1791
|
+
var PACKAGE_VERSION = "0.6.1";
|
|
1793
1792
|
|
|
1794
1793
|
// src/outbound.ts
|
|
1795
1794
|
var DEFAULT_RETRY_POLICY = {
|