@ryantest/openclaw-qqbot 1.6.7-beta.7 → 1.6.7-beta.9
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/src/slash-commands.d.ts +6 -21
- package/dist/src/slash-commands.js +1532 -35
- package/package.json +1 -1
- package/scripts/upgrade-via-npm.sh +99 -15
- package/scripts/upgrade-via-source.sh +3 -1
- package/src/slash-commands.ts +1627 -33
- package/dist/src/commands/bot-clear-storage.d.ts +0 -1
- package/dist/src/commands/bot-clear-storage.js +0 -157
- package/dist/src/commands/bot-help.d.ts +0 -1
- package/dist/src/commands/bot-help.js +0 -24
- package/dist/src/commands/bot-logs.d.ts +0 -1
- package/dist/src/commands/bot-logs.js +0 -232
- package/dist/src/commands/bot-ping.d.ts +0 -1
- package/dist/src/commands/bot-ping.js +0 -29
- package/dist/src/commands/bot-upgrade.d.ts +0 -1
- package/dist/src/commands/bot-upgrade.js +0 -252
- package/dist/src/commands/bot-version.d.ts +0 -1
- package/dist/src/commands/bot-version.js +0 -33
- package/dist/src/upgrade-utils.d.ts +0 -74
- package/dist/src/upgrade-utils.js +0 -634
- package/src/commands/bot-clear-storage.ts +0 -176
- package/src/commands/bot-help.ts +0 -26
- package/src/commands/bot-logs.ts +0 -234
- package/src/commands/bot-ping.ts +0 -31
- package/src/commands/bot-upgrade.ts +0 -281
- package/src/commands/bot-version.ts +0 -32
- package/src/upgrade-utils.ts +0 -673
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
* 从而计算「开平→插件」和「插件处理」两段耗时
|
|
12
12
|
*/
|
|
13
13
|
import type { QQBotAccountConfig } from "./types.js";
|
|
14
|
-
export
|
|
14
|
+
export declare function getFrameworkVersion(): string;
|
|
15
|
+
/**
|
|
16
|
+
* 解析框架版本字符串中的日期版本号
|
|
17
|
+
* 输入示例: "OpenClaw 2026.3.13 (61d171a)" → "2026.3.13"
|
|
18
|
+
*/
|
|
19
|
+
export declare function parseFrameworkDateVersion(versionStr: string): string | null;
|
|
15
20
|
/** 斜杠指令上下文(消息元数据 + 运行时状态) */
|
|
16
21
|
export interface SlashCommandContext {
|
|
17
22
|
/** 消息类型 */
|
|
@@ -62,26 +67,6 @@ export interface SlashCommandFileResult {
|
|
|
62
67
|
/** 要发送的本地文件路径 */
|
|
63
68
|
filePath: string;
|
|
64
69
|
}
|
|
65
|
-
/** 斜杠指令定义 */
|
|
66
|
-
export interface SlashCommand {
|
|
67
|
-
/** 指令名(不含 /) */
|
|
68
|
-
name: string;
|
|
69
|
-
/** 简要描述 */
|
|
70
|
-
description: string;
|
|
71
|
-
/** 详细用法说明(支持多行),用于 /指令 ? 查询 */
|
|
72
|
-
usage?: string;
|
|
73
|
-
/** 处理函数 */
|
|
74
|
-
handler: (ctx: SlashCommandContext) => SlashCommandResult | Promise<SlashCommandResult>;
|
|
75
|
-
}
|
|
76
|
-
export declare function registerCommand(cmd: SlashCommand): void;
|
|
77
|
-
/** 获取指令注册表(只读访问,供 bot-help 等使用) */
|
|
78
|
-
export declare function getCommands(): ReadonlyMap<string, SlashCommand>;
|
|
79
|
-
import "./commands/bot-ping.js";
|
|
80
|
-
import "./commands/bot-version.js";
|
|
81
|
-
import "./commands/bot-help.js";
|
|
82
|
-
import "./commands/bot-upgrade.js";
|
|
83
|
-
import "./commands/bot-logs.js";
|
|
84
|
-
import "./commands/bot-clear-storage.js";
|
|
85
70
|
/**
|
|
86
71
|
* 尝试匹配并执行插件级斜杠指令
|
|
87
72
|
*
|