@nextclaw/openclaw-compat 0.3.11 → 0.3.13
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.d.ts +18 -1
- package/dist/index.js +15 -12
- package/package.json +15 -14
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,22 @@ type OpenClawChannelAgentPrompt = {
|
|
|
135
135
|
accountId?: string | null;
|
|
136
136
|
}) => string[];
|
|
137
137
|
};
|
|
138
|
+
type OpenClawChannelAuthLoginResult = {
|
|
139
|
+
pluginConfig: Record<string, unknown>;
|
|
140
|
+
accountId?: string | null;
|
|
141
|
+
notes?: string[];
|
|
142
|
+
};
|
|
143
|
+
type OpenClawChannelAuth = {
|
|
144
|
+
login?: (params: {
|
|
145
|
+
cfg: Config;
|
|
146
|
+
pluginId: string;
|
|
147
|
+
channelId: string;
|
|
148
|
+
pluginConfig?: Record<string, unknown>;
|
|
149
|
+
accountId?: string | null;
|
|
150
|
+
baseUrl?: string | null;
|
|
151
|
+
verbose?: boolean;
|
|
152
|
+
}) => Promise<OpenClawChannelAuthLoginResult> | OpenClawChannelAuthLoginResult;
|
|
153
|
+
};
|
|
138
154
|
type OpenClawChannelPlugin = {
|
|
139
155
|
id: string;
|
|
140
156
|
meta?: Record<string, unknown>;
|
|
@@ -146,6 +162,7 @@ type OpenClawChannelPlugin = {
|
|
|
146
162
|
gateway?: OpenClawChannelGateway;
|
|
147
163
|
agentTools?: OpenClawPluginTool[] | (() => OpenClawPluginTool | OpenClawPluginTool[] | null | undefined);
|
|
148
164
|
agentPrompt?: OpenClawChannelAgentPrompt;
|
|
165
|
+
auth?: OpenClawChannelAuth;
|
|
149
166
|
outbound?: {
|
|
150
167
|
sendText?: (ctx: {
|
|
151
168
|
cfg: Config;
|
|
@@ -699,4 +716,4 @@ declare function uninstallPlugin(params: {
|
|
|
699
716
|
extensionsDir?: string;
|
|
700
717
|
}): Promise<UninstallPluginResult>;
|
|
701
718
|
|
|
702
|
-
export { DEFAULT_ACCOUNT_ID, type InstallPluginResult, type NormalizedPluginsConfig, type OpenClawChannelAgentPrompt, type OpenClawChannelConfigAdapter, type OpenClawChannelConfigSchema, type OpenClawChannelGateway, type OpenClawChannelGatewayStartContext, type OpenClawChannelPlugin, type OpenClawChannelSetup, type OpenClawPluginApi, type OpenClawPluginChannelRegistration, type OpenClawPluginConfigSchema, type OpenClawPluginDefinition, type OpenClawPluginEngineOptions, type OpenClawPluginModule, type OpenClawPluginNcpAgentRuntimeRegistration, type OpenClawPluginTool, type OpenClawPluginToolContext, type OpenClawPluginToolFactory, type OpenClawPluginToolOptions, type OpenClawProviderPlugin, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PackageManifest, type PluginCandidate, type PluginChannelBinding, type PluginChannelGatewayHandle, type PluginChannelRegistration, type PluginConfigUiHint, type PluginDiagnostic, type PluginDiscoveryResult, type PluginEngineRegistration, type PluginInstallLogger, type PluginInstallSource, type PluginInstallUpdate, type PluginKind, type PluginLoadOptions, type PluginLogger, type PluginManifest, type PluginManifestLoadResult, type PluginManifestRecord, type PluginManifestRegistry, type PluginNcpAgentRuntimeRegistration, type PluginOrigin, type PluginProviderRegistration, type PluginRecord, type PluginRegisterRuntime, type PluginRegistry, type PluginReplyDispatchParams, type PluginRuntime, type PluginRuntimeBridge, type PluginStatusReport, type PluginToolRegistration, type PluginUiMetadata, type UninstallActions, type UninstallPluginResult, type _CompatOnly, __nextclawPluginSdkCompat, addPluginLoadPath, buildChannelConfigSchema, buildOauthProviderAuthResult, buildPluginLoaderAliases, buildPluginStatusReport, createNextclawBuiltinChannelPlugin, createPluginRegisterRuntime, createPluginRuntime, disablePluginInConfig, discoverOpenClawPlugins, emptyPluginConfigSchema, enablePluginInConfig, getPackageManifestMetadata, getPluginChannelBindings, getPluginUiMetadataFromRegistry, installPluginFromArchive, installPluginFromDir, installPluginFromFile, installPluginFromNpmSpec, installPluginFromPath, loadOpenClawPlugins, loadPluginManifest, loadPluginManifestRegistry, loadPluginUiMetadata, normalizeAccountId, normalizePluginHttpPath, normalizePluginsConfig, recordPluginInstall, registerPluginWithApi, removePluginFromConfig, resolveEnableState, resolvePluginChannelMessageToolHints, resolvePluginInstallDir, resolvePluginManifestPath, resolveUninstallDirectoryTarget, resolveUninstallDirectoryTargets, setPluginRuntimeBridge, sleep, startPluginChannelGateways, stopPluginChannelGateways, toPluginUiMetadata, uninstallPlugin, validateJsonSchemaValue };
|
|
719
|
+
export { DEFAULT_ACCOUNT_ID, type InstallPluginResult, type NormalizedPluginsConfig, type OpenClawChannelAgentPrompt, type OpenClawChannelAuth, type OpenClawChannelAuthLoginResult, type OpenClawChannelConfigAdapter, type OpenClawChannelConfigSchema, type OpenClawChannelGateway, type OpenClawChannelGatewayStartContext, type OpenClawChannelPlugin, type OpenClawChannelSetup, type OpenClawPluginApi, type OpenClawPluginChannelRegistration, type OpenClawPluginConfigSchema, type OpenClawPluginDefinition, type OpenClawPluginEngineOptions, type OpenClawPluginModule, type OpenClawPluginNcpAgentRuntimeRegistration, type OpenClawPluginTool, type OpenClawPluginToolContext, type OpenClawPluginToolFactory, type OpenClawPluginToolOptions, type OpenClawProviderPlugin, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PackageManifest, type PluginCandidate, type PluginChannelBinding, type PluginChannelGatewayHandle, type PluginChannelRegistration, type PluginConfigUiHint, type PluginDiagnostic, type PluginDiscoveryResult, type PluginEngineRegistration, type PluginInstallLogger, type PluginInstallSource, type PluginInstallUpdate, type PluginKind, type PluginLoadOptions, type PluginLogger, type PluginManifest, type PluginManifestLoadResult, type PluginManifestRecord, type PluginManifestRegistry, type PluginNcpAgentRuntimeRegistration, type PluginOrigin, type PluginProviderRegistration, type PluginRecord, type PluginRegisterRuntime, type PluginRegistry, type PluginReplyDispatchParams, type PluginRuntime, type PluginRuntimeBridge, type PluginStatusReport, type PluginToolRegistration, type PluginUiMetadata, type UninstallActions, type UninstallPluginResult, type _CompatOnly, __nextclawPluginSdkCompat, addPluginLoadPath, buildChannelConfigSchema, buildOauthProviderAuthResult, buildPluginLoaderAliases, buildPluginStatusReport, createNextclawBuiltinChannelPlugin, createPluginRegisterRuntime, createPluginRuntime, disablePluginInConfig, discoverOpenClawPlugins, emptyPluginConfigSchema, enablePluginInConfig, getPackageManifestMetadata, getPluginChannelBindings, getPluginUiMetadataFromRegistry, installPluginFromArchive, installPluginFromDir, installPluginFromFile, installPluginFromNpmSpec, installPluginFromPath, loadOpenClawPlugins, loadPluginManifest, loadPluginManifestRegistry, loadPluginUiMetadata, normalizeAccountId, normalizePluginHttpPath, normalizePluginsConfig, recordPluginInstall, registerPluginWithApi, removePluginFromConfig, resolveEnableState, resolvePluginChannelMessageToolHints, resolvePluginInstallDir, resolvePluginManifestPath, resolveUninstallDirectoryTarget, resolveUninstallDirectoryTargets, setPluginRuntimeBridge, sleep, startPluginChannelGateways, stopPluginChannelGateways, toPluginUiMetadata, uninstallPlugin, validateJsonSchemaValue };
|
package/dist/index.js
CHANGED
|
@@ -1091,6 +1091,21 @@ import { fileURLToPath } from "url";
|
|
|
1091
1091
|
import { createRequire } from "module";
|
|
1092
1092
|
import { getWorkspacePathFromConfig } from "@nextclaw/core";
|
|
1093
1093
|
|
|
1094
|
+
// src/plugins/bundled-channel-plugin-packages.constants.ts
|
|
1095
|
+
var BUNDLED_CHANNEL_PLUGIN_PACKAGES = [
|
|
1096
|
+
"@nextclaw/channel-plugin-telegram",
|
|
1097
|
+
"@nextclaw/channel-plugin-whatsapp",
|
|
1098
|
+
"@nextclaw/channel-plugin-discord",
|
|
1099
|
+
"@nextclaw/channel-plugin-feishu",
|
|
1100
|
+
"@nextclaw/channel-plugin-mochat",
|
|
1101
|
+
"@nextclaw/channel-plugin-dingtalk",
|
|
1102
|
+
"@nextclaw/channel-plugin-wecom",
|
|
1103
|
+
"@nextclaw/channel-plugin-email",
|
|
1104
|
+
"@nextclaw/channel-plugin-slack",
|
|
1105
|
+
"@nextclaw/channel-plugin-qq",
|
|
1106
|
+
"@nextclaw/channel-plugin-weixin"
|
|
1107
|
+
];
|
|
1108
|
+
|
|
1094
1109
|
// src/plugins/candidate-filter.ts
|
|
1095
1110
|
import path4 from "path";
|
|
1096
1111
|
function isPathInsideRoot(candidatePath, rootPath) {
|
|
@@ -1844,18 +1859,6 @@ var defaultLogger2 = {
|
|
|
1844
1859
|
error: (message) => console.error(message),
|
|
1845
1860
|
debug: (message) => console.debug(message)
|
|
1846
1861
|
};
|
|
1847
|
-
var BUNDLED_CHANNEL_PLUGIN_PACKAGES = [
|
|
1848
|
-
"@nextclaw/channel-plugin-telegram",
|
|
1849
|
-
"@nextclaw/channel-plugin-whatsapp",
|
|
1850
|
-
"@nextclaw/channel-plugin-discord",
|
|
1851
|
-
"@nextclaw/channel-plugin-feishu",
|
|
1852
|
-
"@nextclaw/channel-plugin-mochat",
|
|
1853
|
-
"@nextclaw/channel-plugin-dingtalk",
|
|
1854
|
-
"@nextclaw/channel-plugin-wecom",
|
|
1855
|
-
"@nextclaw/channel-plugin-email",
|
|
1856
|
-
"@nextclaw/channel-plugin-slack",
|
|
1857
|
-
"@nextclaw/channel-plugin-qq"
|
|
1858
|
-
];
|
|
1859
1862
|
function resolvePackageRootFromEntry(entryFile) {
|
|
1860
1863
|
let cursor = path6.dirname(entryFile);
|
|
1861
1864
|
for (let i = 0; i < 8; i += 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/openclaw-compat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OpenClaw plugin compatibility layer for NextClaw.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,20 +19,21 @@
|
|
|
19
19
|
"jiti": "^1.21.7",
|
|
20
20
|
"jszip": "^3.10.1",
|
|
21
21
|
"tar": "^7.4.3",
|
|
22
|
-
"@nextclaw/channel-plugin-
|
|
23
|
-
"@nextclaw/channel-plugin-
|
|
24
|
-
"@nextclaw/channel-plugin-
|
|
25
|
-
"@nextclaw/channel-plugin-
|
|
26
|
-
"@nextclaw/channel-plugin-
|
|
27
|
-
"@nextclaw/
|
|
28
|
-
"@nextclaw/channel-
|
|
29
|
-
"@nextclaw/
|
|
22
|
+
"@nextclaw/channel-plugin-feishu": "0.2.10",
|
|
23
|
+
"@nextclaw/channel-plugin-discord": "0.2.10",
|
|
24
|
+
"@nextclaw/channel-plugin-email": "0.2.10",
|
|
25
|
+
"@nextclaw/channel-plugin-dingtalk": "0.2.10",
|
|
26
|
+
"@nextclaw/channel-plugin-slack": "0.2.10",
|
|
27
|
+
"@nextclaw/channel-plugin-qq": "0.2.10",
|
|
28
|
+
"@nextclaw/channel-plugin-weixin": "0.1.2",
|
|
29
|
+
"@nextclaw/channel-runtime": "0.2.10",
|
|
30
|
+
"@nextclaw/channel-plugin-mochat": "0.2.10",
|
|
31
|
+
"@nextclaw/core": "0.9.10",
|
|
30
32
|
"@nextclaw/ncp-toolkit": "0.4.1",
|
|
31
|
-
"@nextclaw/
|
|
32
|
-
"@nextclaw/channel-plugin-telegram": "0.2.
|
|
33
|
-
"@nextclaw/channel-plugin-wecom": "0.2.
|
|
34
|
-
"@nextclaw/channel-plugin-
|
|
35
|
-
"@nextclaw/channel-plugin-whatsapp": "0.2.8"
|
|
33
|
+
"@nextclaw/ncp": "0.3.1",
|
|
34
|
+
"@nextclaw/channel-plugin-telegram": "0.2.10",
|
|
35
|
+
"@nextclaw/channel-plugin-wecom": "0.2.10",
|
|
36
|
+
"@nextclaw/channel-plugin-whatsapp": "0.2.10"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@types/node": "^20.17.6",
|