@nextclaw/openclaw-compat 0.3.15 → 0.3.16
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/LICENSE +21 -0
- package/dist/index.d.ts +35 -1
- package/package.json +24 -25
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NextClaw contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,25 @@ type OpenClawChannelAuthLoginResult = {
|
|
|
140
140
|
accountId?: string | null;
|
|
141
141
|
notes?: string[];
|
|
142
142
|
};
|
|
143
|
+
type OpenClawChannelAuthStartResult = {
|
|
144
|
+
channel: string;
|
|
145
|
+
kind: "qr_code";
|
|
146
|
+
sessionId: string;
|
|
147
|
+
qrCode: string;
|
|
148
|
+
qrCodeUrl: string;
|
|
149
|
+
expiresAt: string;
|
|
150
|
+
intervalMs: number;
|
|
151
|
+
note?: string;
|
|
152
|
+
};
|
|
153
|
+
type OpenClawChannelAuthPollResult = {
|
|
154
|
+
channel: string;
|
|
155
|
+
status: "pending" | "scanned" | "authorized" | "expired" | "error";
|
|
156
|
+
message?: string;
|
|
157
|
+
nextPollMs?: number;
|
|
158
|
+
accountId?: string | null;
|
|
159
|
+
notes?: string[];
|
|
160
|
+
pluginConfig?: Record<string, unknown>;
|
|
161
|
+
};
|
|
143
162
|
type OpenClawChannelAuth = {
|
|
144
163
|
login?: (params: {
|
|
145
164
|
cfg: Config;
|
|
@@ -150,6 +169,21 @@ type OpenClawChannelAuth = {
|
|
|
150
169
|
baseUrl?: string | null;
|
|
151
170
|
verbose?: boolean;
|
|
152
171
|
}) => Promise<OpenClawChannelAuthLoginResult> | OpenClawChannelAuthLoginResult;
|
|
172
|
+
start?: (params: {
|
|
173
|
+
cfg: Config;
|
|
174
|
+
pluginId: string;
|
|
175
|
+
channelId: string;
|
|
176
|
+
pluginConfig?: Record<string, unknown>;
|
|
177
|
+
accountId?: string | null;
|
|
178
|
+
baseUrl?: string | null;
|
|
179
|
+
}) => Promise<OpenClawChannelAuthStartResult> | OpenClawChannelAuthStartResult;
|
|
180
|
+
poll?: (params: {
|
|
181
|
+
cfg: Config;
|
|
182
|
+
pluginId: string;
|
|
183
|
+
channelId: string;
|
|
184
|
+
pluginConfig?: Record<string, unknown>;
|
|
185
|
+
sessionId: string;
|
|
186
|
+
}) => Promise<OpenClawChannelAuthPollResult | null> | OpenClawChannelAuthPollResult | null;
|
|
153
187
|
};
|
|
154
188
|
type OpenClawChannelPlugin = {
|
|
155
189
|
id: string;
|
|
@@ -718,4 +752,4 @@ declare function uninstallPlugin(params: {
|
|
|
718
752
|
extensionsDir?: string;
|
|
719
753
|
}): Promise<UninstallPluginResult>;
|
|
720
754
|
|
|
721
|
-
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, mergePluginConfigView, normalizeAccountId, normalizePluginHttpPath, normalizePluginsConfig, recordPluginInstall, registerPluginWithApi, removePluginFromConfig, resolveEnableState, resolvePluginChannelMessageToolHints, resolvePluginInstallDir, resolvePluginManifestPath, resolveUninstallDirectoryTarget, resolveUninstallDirectoryTargets, setPluginRuntimeBridge, sleep, startPluginChannelGateways, stopPluginChannelGateways, toPluginConfigView, toPluginUiMetadata, uninstallPlugin, validateJsonSchemaValue };
|
|
755
|
+
export { DEFAULT_ACCOUNT_ID, type InstallPluginResult, type NormalizedPluginsConfig, type OpenClawChannelAgentPrompt, type OpenClawChannelAuth, type OpenClawChannelAuthLoginResult, type OpenClawChannelAuthPollResult, type OpenClawChannelAuthStartResult, 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, mergePluginConfigView, normalizeAccountId, normalizePluginHttpPath, normalizePluginsConfig, recordPluginInstall, registerPluginWithApi, removePluginFromConfig, resolveEnableState, resolvePluginChannelMessageToolHints, resolvePluginInstallDir, resolvePluginManifestPath, resolveUninstallDirectoryTarget, resolveUninstallDirectoryTargets, setPluginRuntimeBridge, sleep, startPluginChannelGateways, stopPluginChannelGateways, toPluginConfigView, toPluginUiMetadata, uninstallPlugin, validateJsonSchemaValue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/openclaw-compat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OpenClaw plugin compatibility layer for NextClaw.",
|
|
6
6
|
"type": "module",
|
|
@@ -14,33 +14,26 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsup src/index.ts --format esm --dts --out-dir dist",
|
|
19
|
-
"prepack": "pnpm run build",
|
|
20
|
-
"lint": "eslint .",
|
|
21
|
-
"tsc": "tsc -p tsconfig.json",
|
|
22
|
-
"test": "vitest"
|
|
23
|
-
},
|
|
24
17
|
"dependencies": {
|
|
25
|
-
"@nextclaw/channel-plugin-dingtalk": "workspace:*",
|
|
26
|
-
"@nextclaw/channel-plugin-discord": "workspace:*",
|
|
27
|
-
"@nextclaw/channel-plugin-email": "workspace:*",
|
|
28
|
-
"@nextclaw/channel-plugin-feishu": "workspace:*",
|
|
29
|
-
"@nextclaw/channel-plugin-mochat": "workspace:*",
|
|
30
|
-
"@nextclaw/channel-plugin-qq": "workspace:*",
|
|
31
|
-
"@nextclaw/channel-plugin-slack": "workspace:*",
|
|
32
|
-
"@nextclaw/channel-plugin-telegram": "workspace:*",
|
|
33
|
-
"@nextclaw/channel-plugin-weixin": "workspace:*",
|
|
34
|
-
"@nextclaw/channel-plugin-wecom": "workspace:*",
|
|
35
|
-
"@nextclaw/channel-plugin-whatsapp": "workspace:*",
|
|
36
|
-
"@nextclaw/channel-runtime": "workspace:*",
|
|
37
|
-
"@nextclaw/core": "workspace:*",
|
|
38
|
-
"@nextclaw/ncp": "workspace:*",
|
|
39
|
-
"@nextclaw/ncp-toolkit": "workspace:*",
|
|
40
18
|
"ajv": "^8.17.1",
|
|
41
19
|
"jiti": "^1.21.7",
|
|
42
20
|
"jszip": "^3.10.1",
|
|
43
|
-
"tar": "^7.4.3"
|
|
21
|
+
"tar": "^7.4.3",
|
|
22
|
+
"@nextclaw/channel-plugin-dingtalk": "0.2.11",
|
|
23
|
+
"@nextclaw/channel-plugin-discord": "0.2.11",
|
|
24
|
+
"@nextclaw/channel-plugin-slack": "0.2.11",
|
|
25
|
+
"@nextclaw/channel-plugin-telegram": "0.2.11",
|
|
26
|
+
"@nextclaw/channel-plugin-email": "0.2.11",
|
|
27
|
+
"@nextclaw/channel-plugin-weixin": "0.1.4",
|
|
28
|
+
"@nextclaw/channel-plugin-qq": "0.2.11",
|
|
29
|
+
"@nextclaw/channel-plugin-mochat": "0.2.11",
|
|
30
|
+
"@nextclaw/channel-plugin-feishu": "0.2.11",
|
|
31
|
+
"@nextclaw/channel-plugin-wecom": "0.2.11",
|
|
32
|
+
"@nextclaw/core": "0.9.11",
|
|
33
|
+
"@nextclaw/channel-plugin-whatsapp": "0.2.11",
|
|
34
|
+
"@nextclaw/channel-runtime": "0.2.11",
|
|
35
|
+
"@nextclaw/ncp": "0.3.1",
|
|
36
|
+
"@nextclaw/ncp-toolkit": "0.4.1"
|
|
44
37
|
},
|
|
45
38
|
"devDependencies": {
|
|
46
39
|
"@types/node": "^20.17.6",
|
|
@@ -49,5 +42,11 @@
|
|
|
49
42
|
"tsx": "^4.19.2",
|
|
50
43
|
"typescript": "^5.6.3",
|
|
51
44
|
"vitest": "^2.1.2"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsup src/index.ts --format esm --dts --out-dir dist",
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"tsc": "tsc -p tsconfig.json",
|
|
50
|
+
"test": "vitest"
|
|
52
51
|
}
|
|
53
|
-
}
|
|
52
|
+
}
|