@lingyao037/openclaw-lingyao-cli 0.9.7 → 0.9.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/{accounts-BykE02r0.d.ts → accounts-t-QtF58y.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/index.d.ts +8 -4
- package/dist/index.js +48 -7
- package/dist/index.js.map +1 -1
- package/dist/setup-entry.d.ts +2 -2
- package/dist/setup-entry.js +17 -3
- package/dist/setup-entry.js.map +1 -1
- package/dist/{status-CVwSoPKi.d.ts → status-BaZOYVZY.d.ts} +1 -1
- package/dist/{types-LFC6Wpqo.d.ts → types-D3SmE-b0.d.ts} +7 -0
- package/openclaw.plugin.json +11 -0
- package/package.json +1 -1
package/dist/setup-entry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as openclaw_plugin_sdk from 'openclaw/plugin-sdk';
|
|
2
|
-
import { R as ResolvedAccount, L as LingyaoProbeResult } from './status-
|
|
3
|
-
import './types-
|
|
2
|
+
import { R as ResolvedAccount, L as LingyaoProbeResult } from './status-BaZOYVZY.js';
|
|
3
|
+
import './types-D3SmE-b0.js';
|
|
4
4
|
|
|
5
5
|
declare const _default: {
|
|
6
6
|
plugin: openclaw_plugin_sdk.ChannelPlugin<ResolvedAccount, LingyaoProbeResult>;
|
package/dist/setup-entry.js
CHANGED
|
@@ -36,7 +36,8 @@ function extractAccounts(cfg) {
|
|
|
36
36
|
allowFrom: Array.isArray(lingyao.allowFrom) ? lingyao.allowFrom : [],
|
|
37
37
|
maxOfflineMessages: lingyao.maxOfflineMessages,
|
|
38
38
|
tokenExpiryDays: lingyao.tokenExpiryDays,
|
|
39
|
-
gatewayId: lingyao.gatewayId
|
|
39
|
+
gatewayId: lingyao.gatewayId,
|
|
40
|
+
websocketHeartbeatIntervalMs: lingyao.websocketHeartbeatIntervalMs
|
|
40
41
|
};
|
|
41
42
|
if (!accounts || Object.keys(accounts).length === 0) {
|
|
42
43
|
return { default: baseConfig };
|
|
@@ -416,7 +417,8 @@ var lingyaoAccountConfigSchema = z.object({
|
|
|
416
417
|
allowFrom: allowFromSchema,
|
|
417
418
|
maxOfflineMessages: z.number().int().min(1).max(1e3).optional(),
|
|
418
419
|
tokenExpiryDays: z.number().int().min(1).max(365).optional(),
|
|
419
|
-
gatewayId: z.string().min(1).optional()
|
|
420
|
+
gatewayId: z.string().min(1).optional(),
|
|
421
|
+
websocketHeartbeatIntervalMs: z.number().int().min(5e3).max(12e4).optional()
|
|
420
422
|
});
|
|
421
423
|
var lingyaoConfigSchema = z.object({
|
|
422
424
|
enabled: z.boolean().default(true),
|
|
@@ -424,6 +426,7 @@ var lingyaoConfigSchema = z.object({
|
|
|
424
426
|
allowFrom: allowFromSchema.default([]),
|
|
425
427
|
maxOfflineMessages: z.number().int().min(1).max(1e3).optional().default(100),
|
|
426
428
|
tokenExpiryDays: z.number().int().min(1).max(365).optional().default(30),
|
|
429
|
+
websocketHeartbeatIntervalMs: z.number().int().min(5e3).max(12e4).optional(),
|
|
427
430
|
defaultAccount: z.string().min(1).optional(),
|
|
428
431
|
accounts: z.record(lingyaoAccountConfigSchema).optional()
|
|
429
432
|
});
|
|
@@ -461,6 +464,12 @@ var lingyaoChannelConfigSchema = {
|
|
|
461
464
|
defaultAccount: {
|
|
462
465
|
type: "string"
|
|
463
466
|
},
|
|
467
|
+
websocketHeartbeatIntervalMs: {
|
|
468
|
+
type: "integer",
|
|
469
|
+
minimum: 5e3,
|
|
470
|
+
maximum: 12e4,
|
|
471
|
+
description: "WebSocket gateway_heartbeat interval in ms (default: server register response). Use 5000\u201355000 for typical relay timeout."
|
|
472
|
+
},
|
|
464
473
|
accounts: {
|
|
465
474
|
type: "object",
|
|
466
475
|
additionalProperties: {
|
|
@@ -490,6 +499,11 @@ var lingyaoChannelConfigSchema = {
|
|
|
490
499
|
},
|
|
491
500
|
gatewayId: {
|
|
492
501
|
type: "string"
|
|
502
|
+
},
|
|
503
|
+
websocketHeartbeatIntervalMs: {
|
|
504
|
+
type: "integer",
|
|
505
|
+
minimum: 5e3,
|
|
506
|
+
maximum: 12e4
|
|
493
507
|
}
|
|
494
508
|
}
|
|
495
509
|
},
|
|
@@ -593,7 +607,7 @@ var lingyaoPlugin = {
|
|
|
593
607
|
};
|
|
594
608
|
var pluginMetadata = {
|
|
595
609
|
name: "lingyao",
|
|
596
|
-
version: "0.9.
|
|
610
|
+
version: "0.9.8",
|
|
597
611
|
description: "Lingyao Channel Plugin - bidirectional sync via lingyao.live server relay",
|
|
598
612
|
type: "channel",
|
|
599
613
|
capabilities: {
|