feat: rename info to status, add /status slash command

Rename session info endpoint from /sessions/:id/info to /sessions/:id/status
and update frontend tab label accordingly. Add /status slash command that
displays current session metrics (message count, context usage, cache hit
rate, used skills) as formatted text in any channel.
This commit is contained in:
Acbox
2026-04-02 03:28:48 +08:00
parent b3c783fb0b
commit 33b57ee345
14 changed files with 154 additions and 28 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -5256,7 +5256,7 @@ export type PatchBotsByBotIdSessionsBySessionIdResponses = {
export type PatchBotsByBotIdSessionsBySessionIdResponse = PatchBotsByBotIdSessionsBySessionIdResponses[keyof PatchBotsByBotIdSessionsBySessionIdResponses];
export type GetBotsByBotIdSessionsBySessionIdInfoData = {
export type GetBotsByBotIdSessionsBySessionIdStatusData = {
body?: never;
path: {
/**
@@ -5274,10 +5274,10 @@ export type GetBotsByBotIdSessionsBySessionIdInfoData = {
*/
model_id?: string;
};
url: '/bots/{bot_id}/sessions/{session_id}/info';
url: '/bots/{bot_id}/sessions/{session_id}/status';
};
export type GetBotsByBotIdSessionsBySessionIdInfoErrors = {
export type GetBotsByBotIdSessionsBySessionIdStatusErrors = {
/**
* Bad Request
*/
@@ -5292,16 +5292,16 @@ export type GetBotsByBotIdSessionsBySessionIdInfoErrors = {
500: HandlersErrorResponse;
};
export type GetBotsByBotIdSessionsBySessionIdInfoError = GetBotsByBotIdSessionsBySessionIdInfoErrors[keyof GetBotsByBotIdSessionsBySessionIdInfoErrors];
export type GetBotsByBotIdSessionsBySessionIdStatusError = GetBotsByBotIdSessionsBySessionIdStatusErrors[keyof GetBotsByBotIdSessionsBySessionIdStatusErrors];
export type GetBotsByBotIdSessionsBySessionIdInfoResponses = {
export type GetBotsByBotIdSessionsBySessionIdStatusResponses = {
/**
* OK
*/
200: HandlersSessionInfoResponse;
};
export type GetBotsByBotIdSessionsBySessionIdInfoResponse = GetBotsByBotIdSessionsBySessionIdInfoResponses[keyof GetBotsByBotIdSessionsBySessionIdInfoResponses];
export type GetBotsByBotIdSessionsBySessionIdStatusResponse = GetBotsByBotIdSessionsBySessionIdStatusResponses[keyof GetBotsByBotIdSessionsBySessionIdStatusResponses];
export type DeleteBotsByBotIdSettingsData = {
body?: never;