add token speed block

This commit is contained in:
musistudio
2025-12-31 22:44:16 +08:00
parent e7073790b3
commit 10c69a586b
14 changed files with 900 additions and 369 deletions

View File

@@ -51,6 +51,7 @@ const MODULE_TYPES = [
{ label: "gitBranch", value: "gitBranch" },
{ label: "model", value: "model" },
{ label: "usage", value: "usage" },
{ label: "speed", value: "speed" },
{ label: "script", value: "script" },
];
@@ -936,6 +937,14 @@ export function StatusLineConfigDialog({
color: "bright_magenta",
};
break;
case "speed":
newModule = {
type: "speed",
icon: "⚡",
text: "{{tokenSpeed}}",
color: "bright_green",
};
break;
case "script":
newModule = {
type: "script",