MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / setStoredToken

Function setStoredToken

codex_image/codex_image.ts:70–74  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

68 return `${token.slice(0, 4)}***${token.slice(-4)}`;
69}
70
71function formatDuration(ms: number): string {
72 const totalSeconds = Math.max(0, Math.round(ms / 1000));
73 const minutes = Math.floor(totalSeconds / 60);
74 const seconds = totalSeconds % 60;
75 if (minutes <= 0) return `${seconds}秒`;
76 return `${minutes}分${seconds}秒`;
77}

Callers 1

handleCximgFunction · 0.85

Calls 2

writeMethod · 0.80
getDbFunction · 0.70

Tested by

no test coverage detected