@jerryliang122/openclaw-qqbot 1.0.7 → 1.0.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/README.md +4 -4
- package/README.zh.md +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
- package/src/adapter/pairing.ts +1 -1
- package/src/adapter/resolve.ts +2 -2
- package/src/adapter/setup.ts +1 -1
- package/src/dispatch/dispatch.ts +1 -1
- package/src/features/question-helpers.ts +1 -1
- package/src/openclaw-plugin-sdk.d.ts +1 -1
- package/src/utils/pkg-version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jerryliang122/openclaw-qqbot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "QQ Bot channel plugin for OpenClaw (independently maintained fork)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^20.19.43",
|
|
51
|
-
"openclaw": "2026.9.
|
|
51
|
+
"openclaw": "2026.9.1",
|
|
52
52
|
"tsup": "^8.5.1",
|
|
53
53
|
"typescript": "^5.9.3",
|
|
54
54
|
"tsx": "^4.23.13"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@tencent-connect/qqbot-connector": "1.2.0",
|
|
58
|
-
"openclaw": ">=2026.9.
|
|
58
|
+
"openclaw": ">=2026.9.1"
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://github.com/jerryliang122/qqbot-openclaw",
|
|
61
61
|
"repository": {
|
package/src/adapter/pairing.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* readAllowFromStore / issueChallenge / buildReply 直接来自稳定 subpath。
|
|
5
5
|
*
|
|
6
|
-
* approveCode 例外:`approveChannelPairingCode` 在 2026.9.2
|
|
6
|
+
* approveCode 例外:`approveChannelPairingCode` 在 2026.9.1/2026.9.2 均未从任何
|
|
7
7
|
* plugin-sdk subpath 导出(只存在于内部 pairing-store chunk 与
|
|
8
8
|
* `openclaw pairing approve` CLI),走与网关同源的 CLI 执行
|
|
9
9
|
* (见 secret-store-cli 的 resolveOpenClawCli 同源约束)。
|
package/src/adapter/resolve.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Runtime Adapters — 一次 resolve,全程复用。
|
|
3
3
|
*
|
|
4
4
|
* Capability Probe 模式:按候选 API 路径探测,选出第一个可用函数。
|
|
5
|
-
* 构建基线为 openclaw 2026.9.
|
|
5
|
+
* 构建基线为 openclaw 2026.9.1(peer >=2026.9.1),不再保留对更旧版本的回退。
|
|
6
6
|
*
|
|
7
7
|
* 调用方通过 `resolveRuntimeAdapters(runtime)` 获取适配层对象,
|
|
8
8
|
* 后续所有 dispatch / channel 代码只使用 adapters 上的方法。
|
|
@@ -237,7 +237,7 @@ export async function persistAuthConfig(
|
|
|
237
237
|
const config: Record<string, unknown> | undefined = runtime.config as any;
|
|
238
238
|
|
|
239
239
|
if (typeof config?.mutateConfigFile !== 'function') {
|
|
240
|
-
throw new Error('persistAuthConfig: runtime.config.mutateConfigFile is unavailable (requires openclaw >= 2026.9.
|
|
240
|
+
throw new Error('persistAuthConfig: runtime.config.mutateConfigFile is unavailable (requires openclaw >= 2026.9.1)');
|
|
241
241
|
}
|
|
242
242
|
await (config.mutateConfigFile as Function)({
|
|
243
243
|
mutate: () => cfg,
|
package/src/adapter/setup.ts
CHANGED
package/src/dispatch/dispatch.ts
CHANGED
|
@@ -97,7 +97,7 @@ export async function dispatchToOpenClaw(
|
|
|
97
97
|
dlog?.debug(`received sender=${envelope.senderId} scope=${envelope.chatScope} msgId=${envelope.messageId}`);
|
|
98
98
|
|
|
99
99
|
if (!adapters.inboundRun || !adapters.dispatchReply) {
|
|
100
|
-
dlog?.error(`runtime adapter inboundRun/dispatchReply not available (openclaw=${adapters.version}, requires >=2026.9.
|
|
100
|
+
dlog?.error(`runtime adapter inboundRun/dispatchReply not available (openclaw=${adapters.version}, requires >=2026.9.1)`);
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -74,7 +74,7 @@ let questionRuntimePromise: Promise<QuestionGatewayRuntime> | undefined;
|
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* question gateway runtime(openclaw/plugin-sdk/question-gateway-runtime,
|
|
77
|
-
* 2026.8.1+ 稳定导出,peer 已要求 >=2026.9.
|
|
77
|
+
* 2026.8.1+ 稳定导出,peer 已要求 >=2026.9.1)。
|
|
78
78
|
*/
|
|
79
79
|
export function getQuestionGatewayRuntime(): Promise<QuestionGatewayRuntime> {
|
|
80
80
|
questionRuntimePromise ??= import('openclaw/plugin-sdk/question-gateway-runtime')
|
|
@@ -536,7 +536,7 @@ declare module "openclaw/plugin-sdk" {
|
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
// 2026.8.1-beta 起 openclaw 发布包明确排除该子路径的 .d.ts(files 列表
|
|
539
|
-
// "!dist/plugin-sdk/text-utility-runtime.d.ts"),2026.9.2
|
|
539
|
+
// "!dist/plugin-sdk/text-utility-runtime.d.ts"),2026.9.1/2026.9.2 均未恢复,运行时导出仍在。
|
|
540
540
|
// 仅声明本项目实际使用的函数(签名对齐 dist/utf16-slice-*.js)。
|
|
541
541
|
declare module "openclaw/plugin-sdk/text-utility-runtime" {
|
|
542
542
|
export function truncateUtf16Safe(input: string, maxLen: number): string;
|
package/src/utils/pkg-version.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function getPackageVersion(): string {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* OpenClaw 框架版本(PluginRuntime.version,peer >=2026.9.
|
|
19
|
+
* OpenClaw 框架版本(PluginRuntime.version,peer >=2026.9.1 恒存在)。
|
|
20
20
|
*/
|
|
21
21
|
export function getOpenclawVersion(runtimeVersion?: string): string {
|
|
22
22
|
return runtimeVersion && runtimeVersion !== 'unknown' ? runtimeVersion : 'unknown';
|