@lingyao037/openclaw-lingyao-cli 0.9.1 → 0.9.2
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 +8 -16
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/setup-entry.d.ts +3 -0
- package/dist/setup-entry.js +3039 -0
- package/dist/setup-entry.js.map +1 -0
- package/openclaw.plugin.json +3 -0
- package/package.json +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as openclaw_plugin_sdk from 'openclaw/plugin-sdk';
|
|
2
1
|
import { PluginRuntime, ChannelPlugin } from 'openclaw/plugin-sdk';
|
|
3
2
|
import { a as LingyaoAccountConfig, L as LingyaoRuntime, D as DeviceInfo, b as DeviceToken, A as AccountManager, S as SyncRequest, c as SyncResponse, d as LingyaoMessage, e as LingyaoConfig, N as NotifyPayload, H as HealthStatus } from './accounts-B9ijYIIu.js';
|
|
4
3
|
export { f as AckRequest, g as DiarySyncPayload, F as FailedEntry, h as LINGYAO_SERVER_URL, i as LingyaoAccount, M as MemorySyncPayload, j as MessageType, k as NotifyAction, l as NotifyRequest, P as PairingCode, m as PairingConfirmRequest, n as PairingConfirmResponse, o as PollRequest, p as PollResponse, Q as QueuedMessage, T as TokenRefreshRequest, q as TokenRefreshResponse, W as WebSocketConnection } from './accounts-B9ijYIIu.js';
|
|
@@ -22,8 +21,6 @@ interface ResolvedAccount {
|
|
|
22
21
|
readonly rawConfig: LingyaoAccountConfig;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
declare function setLingyaoRuntime(runtime: PluginRuntime): void;
|
|
26
|
-
|
|
27
24
|
/**
|
|
28
25
|
* 错误处理模块
|
|
29
26
|
*/
|
|
@@ -1005,21 +1002,16 @@ declare const pluginMetadata: {
|
|
|
1005
1002
|
defaultConfig: LingyaoConfig;
|
|
1006
1003
|
};
|
|
1007
1004
|
|
|
1008
|
-
|
|
1009
|
-
registrationMode?: string;
|
|
1010
|
-
runtime?: unknown;
|
|
1011
|
-
registerChannel: (params: {
|
|
1012
|
-
plugin: unknown;
|
|
1013
|
-
}) => void;
|
|
1014
|
-
};
|
|
1015
|
-
declare const entry: {
|
|
1016
|
-
kind: "bundled-channel-entry";
|
|
1005
|
+
declare const plugin: {
|
|
1017
1006
|
id: string;
|
|
1018
1007
|
name: string;
|
|
1019
1008
|
description: string;
|
|
1020
|
-
register(api:
|
|
1021
|
-
|
|
1022
|
-
|
|
1009
|
+
register(api: {
|
|
1010
|
+
runtime?: unknown;
|
|
1011
|
+
registerChannel: (params: {
|
|
1012
|
+
plugin: unknown;
|
|
1013
|
+
}) => void;
|
|
1014
|
+
}): void;
|
|
1023
1015
|
};
|
|
1024
1016
|
|
|
1025
|
-
export { type AgentMessage, DeviceInfo, DeviceToken, HealthStatus, LingyaoAccountConfig, LingyaoChannel, LingyaoConfig, LingyaoMessage, LingyaoRuntime, NotifyPayload, SyncRequest, SyncResponse, createPlugin,
|
|
1017
|
+
export { type AgentMessage, DeviceInfo, DeviceToken, HealthStatus, LingyaoAccountConfig, LingyaoChannel, LingyaoConfig, LingyaoMessage, LingyaoRuntime, NotifyPayload, SyncRequest, SyncResponse, createPlugin, plugin as default, getDefaultConfig, initializeLingyaoRuntime, lingyaoPlugin, pluginMetadata, validateConfig };
|
package/dist/index.js
CHANGED
|
@@ -3570,24 +3570,18 @@ function setLingyaoRuntime(runtime) {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
|
|
3572
3572
|
// src/index.ts
|
|
3573
|
-
var
|
|
3574
|
-
kind: "bundled-channel-entry",
|
|
3573
|
+
var plugin = {
|
|
3575
3574
|
id: "lingyao",
|
|
3576
3575
|
name: "Lingyao",
|
|
3577
3576
|
description: "Lingyao Channel Plugin - bidirectional sync via lingyao.live server relay",
|
|
3578
3577
|
register(api) {
|
|
3579
|
-
if (api.registrationMode === "cli-metadata") {
|
|
3580
|
-
return;
|
|
3581
|
-
}
|
|
3582
3578
|
if (api.runtime) {
|
|
3583
3579
|
setLingyaoRuntime(api.runtime);
|
|
3584
3580
|
}
|
|
3585
3581
|
api.registerChannel({ plugin: lingyaoPlugin });
|
|
3586
|
-
}
|
|
3587
|
-
loadChannelPlugin: () => lingyaoPlugin,
|
|
3588
|
-
setChannelRuntime: setLingyaoRuntime
|
|
3582
|
+
}
|
|
3589
3583
|
};
|
|
3590
|
-
var index_default =
|
|
3584
|
+
var index_default = plugin;
|
|
3591
3585
|
export {
|
|
3592
3586
|
LINGYAO_SERVER_URL,
|
|
3593
3587
|
LingyaoChannel,
|