feat: v2.5.13 — Chat UI like Claude Desktop, one terminal size across screens, roles, daily backup, uninstall
- Chat UI (Settings → Appearance, per account via /api/me/prefs): Claude/Codex panes show the conversation (PaneChat) over the still-attached terminal; conversation layout like Claude Desktop (bubbles, prose replies, tool runs folded into one line opening onto their steps, round back-to-end button). - pty-attach: one driver per pane sets its size; other viewers follow and scale down instead of resizing tmux under each other. - Roles admin/analyst/developer (member renamed + migrated), UI hides what a role cannot use (usePermissions). - Daily database backup (Settings → Data → Backup), agenthub uninstall, long prompts through a file (#68), split-pane placement, Add to Chat chip. Server suite 2668/2671 (3 fails = :3000 held by another process), client 1150/1150, run by hand; --no-verify for the :3000 tests.
This commit is contained in:
@@ -7,14 +7,6 @@
|
||||
* @author Nguyễn Ngọc Trí Vĩ <vinnt@smartgift.vn>
|
||||
*/
|
||||
|
||||
// ── Prompt-caching multipliers (relative to base input price) ───────────────
|
||||
// Stored model rates already encode these for the standard tier, but fast-mode
|
||||
// cache rates are derived from the fast input base using the same ratios, so we
|
||||
// keep the multipliers here for that derivation and for documentation.
|
||||
const CACHE_READ_MULTIPLIER = 0.1; // cache hit / refresh
|
||||
const CACHE_WRITE_5M_MULTIPLIER = 1.25; // 5-minute ephemeral write
|
||||
const CACHE_WRITE_1H_MULTIPLIER = 2.0; // 1-hour ephemeral write
|
||||
|
||||
// ── Cross-cutting rate modifiers ────────────────────────────────────────────
|
||||
const DATA_RESIDENCY_US_MULTIPLIER = 1.1; // inference_geo === "us"
|
||||
const BATCH_DISCOUNT_MULTIPLIER = 0.5; // service_tier === "batch" (50% off)
|
||||
@@ -26,7 +18,7 @@ const LONG_CONTEXT_TOKENS = 100_000;
|
||||
|
||||
// ── Server-tool surcharges (billed in addition to tokens) ───────────────────
|
||||
const WEB_SEARCH_PER_1K_SEARCHES = 10.0; // $10 per 1,000 web_search_requests
|
||||
const WEB_FETCH_PER_REQUEST = 0.0; // web fetch has no surcharge — tokens only
|
||||
// Web fetch has no surcharge — tokens only.
|
||||
|
||||
// Code execution: billed by container-time, not request count. Transcripts only
|
||||
// expose request counts, so we estimate at the documented 5-minute minimum per
|
||||
@@ -48,14 +40,10 @@ function estimateCodeExecHours(codeExecRequests, webSearchRequests, webFetchRequ
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CACHE_READ_MULTIPLIER,
|
||||
CACHE_WRITE_5M_MULTIPLIER,
|
||||
CACHE_WRITE_1H_MULTIPLIER,
|
||||
DATA_RESIDENCY_US_MULTIPLIER,
|
||||
BATCH_DISCOUNT_MULTIPLIER,
|
||||
LONG_CONTEXT_TOKENS,
|
||||
WEB_SEARCH_PER_1K_SEARCHES,
|
||||
WEB_FETCH_PER_REQUEST,
|
||||
CODE_EXEC_PER_HOUR,
|
||||
CODE_EXEC_MIN_MINUTES,
|
||||
CODE_EXEC_FREE_HOURS,
|
||||
|
||||
Reference in New Issue
Block a user