48a11ff077
- Core: 新增 :new/:n 命令返回 new_session action - Server: 处理 new_session action 创建新会话 - UI: useChat 添加 onSessionSwitch 回调 - Web/Desktop: ChatPage 和 App 实现会话切换逻辑
18 lines
327 B
TypeScript
18 lines
327 B
TypeScript
/**
|
|
* 内置系统命令
|
|
*/
|
|
|
|
import type { SystemCommand } from '../types.js';
|
|
import { clearCommand } from './clear.js';
|
|
import { newCommand } from './new.js';
|
|
|
|
/**
|
|
* 所有内置系统命令
|
|
*/
|
|
export const builtinSystemCommands: SystemCommand[] = [
|
|
clearCommand,
|
|
newCommand,
|
|
];
|
|
|
|
export { clearCommand, newCommand };
|