@coolclaw/coolclaw 0.2.6 → 0.2.8

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 CHANGED
@@ -1,17 +1,27 @@
1
- import { C as CoolclawChannelPlugin } from './channel-C5YYO-tp.js';
2
- import * as openclaw_plugin_sdk_core from 'openclaw/plugin-sdk/core';
1
+ import { c as coolclawChannelPlugin } from './channel-BozkcSms.js';
3
2
 
4
- /**
5
- * 使用 OpenClaw 官方 SDK 辅助函数定义插件入口。
6
- * defineChannelPluginEntry 保证导出形状与加载器完全兼容,
7
- * 避免 Jiti interopDefault 在不同版本间的差异导致 "missing register/activate" 错误。
8
- */
3
+ type OpenClawPluginApi = {
4
+ registerChannel(input: {
5
+ plugin: typeof coolclawChannelPlugin;
6
+ }): void;
7
+ registerCli?(registrar: (ctx: {
8
+ program: unknown;
9
+ workspaceDir?: string;
10
+ }) => void, opts?: {
11
+ descriptors?: Array<{
12
+ name: string;
13
+ description: string;
14
+ hasSubcommands: boolean;
15
+ }>;
16
+ }): void;
17
+ };
18
+ declare function _register(api: OpenClawPluginApi): void;
19
+ declare const register: typeof _register;
9
20
  declare const _default: {
10
21
  id: string;
11
22
  name: string;
12
23
  description: string;
13
- register: (api: openclaw_plugin_sdk_core.OpenClawPluginApi) => void;
14
- channelPlugin: CoolclawChannelPlugin;
24
+ register: typeof _register;
15
25
  };
16
26
 
17
- export { _default as default };
27
+ export { _default as default, register };