feat: workspace→session picker and /model switch (v0.3.0)

Align Telegram session list with Web via apiProxy (exclude archived), resume cold sessions on bind, and allow model selection from the phone.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
owo
2026-08-14 18:46:56 +08:00
co-authored by Cursor
parent 9bae1a3702
commit ef0e7f34e3
18 changed files with 1486 additions and 108 deletions
+34
View File
@@ -0,0 +1,34 @@
import type { Context } from '@deepseek-ai/cordis';
export interface ModelOption {
provider: string;
model: string;
label: string;
efforts?: Array<{
id: string;
name: string;
}>;
}
export interface ModelSnapshot {
current: {
provider: string;
model: string;
reasoningEffort?: string;
};
routable: boolean;
options: ModelOption[];
}
export declare function loadSessionModels(ctx: Context, sessionId: string): Promise<ModelSnapshot>;
export declare function selectSessionModel(ctx: Context, sessionId: string, selection: {
provider: string;
model: string;
reasoningEffort?: string;
}): Promise<{
provider: string;
model: string;
reasoningEffort?: string;
}>;
export declare function formatModel(sel: {
provider: string;
model: string;
reasoningEffort?: string;
}): string;