feat(webui): add AI usage dashboard for team and member token tracking

This commit is contained in:
yiling
2026-07-23 15:03:09 +08:00
parent 2c04c97a02
commit df013aa4bb
36 changed files with 1047 additions and 11 deletions
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Cache_Read_TokensInputs */
const en_cache_read_tokens = /** @type {(inputs: Cache_Read_TokensInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Cache Read Tokens`)
};
const zh_cache_read_tokens = /** @type {(inputs: Cache_Read_TokensInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`缓存读取 Token`)
};
/**
* | output |
* | --- |
* | "Cache Read Tokens" |
*
* @param {Cache_Read_TokensInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const cache_read_tokens = /** @type {((inputs?: Cache_Read_TokensInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cache_Read_TokensInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_cache_read_tokens(inputs)
return zh_cache_read_tokens(inputs)
});