SLOPSHOPPER

pulse-cache-tax

Keeps the one-hour prompt cache warm during /keepwarm windows and holds a cold send once with its estimated rewrite cost. Pinging runs only after /keepwarm…

newbandcommandstatuspromptmodel
v2.3.0MITupdated 2026-10-13MrValraven/pulse-mods/pulse-cache-tax
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · pulse-cache-tax
› fix the failing auth test and add an audit log call ⏺ Read(src/auth.ts) ⎿ Read 6 lines ⏺ Update(src/auth.ts) ⎿ Added 2 lines, removed 1 line ⏺ Bash(bun test) ⎿ 3 pass, 1 fail ● Done. refresh now rejects expired claims and logs an audit event. ✻ Worked for 42s · done 4:20 PM › /keepwarm ⎿ pulse-cache-tax: keepwarm on for 6h00m, a ping 50m after each idle stretch keeps the cache warm, so the next turn reads it at t ⟨Claude Code's own drawing⟩ ▣ [>] cache-tax warm ━━━━━━━━━━ 60m left · ping in 50m · keepwarm 6h00m left ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts

Draws

Band
⟨Claude Code's own drawing⟩ ▣ [>] cache-tax warm ━━━━━━━━━━ 60m left · ping in 50m · keepwarm 6h00m left
README

pulse-cache-tax

A Claude Code mod that keeps the one-hour prompt cache warm while you are away, and holds a cold send once to show its estimated rewrite cost. Pinging runs only after you arm it with /keepwarm.

  • Keepwarm window: /keepwarm arms a window (6 hours by default). After 50 idle minutes it sends one short fork of the conversation so the cache is read again before it expires. Each new turn of yours restarts the 50-minute countdown.
  • Cold-send guard: when the context is 50,000 tokens or more and the last request was an hour ago or longer, your next message is dropped once with the estimated cost. Send it again to go through. /cache-tax guard warn shows the price and sends straight away.
  • Self-stopping pings: after every ping the mod reads the token counts. It stops the window if the ping read nothing, wrote a tenth or more of what it read, failed, or was interrupted, and shows the reason.
  • Status row: while a window is armed or has stopped, in the terminal and the desktop Code tab, a row above the prompt shows a cube icon, the state (warm, cold, unknown or stopped), a warmth meter, the next ping, the time left in the window and the last ping's cost. On desktop the row leads with the state word; the terminal puts cache-tax before it. When keepwarm has stopped, the row gives the reason and says /keepwarm starts it again. Other surfaces get the plain status text. NO_COLOR swaps the icon for a bold [>].
  • Warmth meter: a bar for the cache's 60-minute life, filled with the time left. The fill turns coral in the last 10 minutes. On desktop a lilac mark shows where the next ping lands. While a ping runs the meter reads pinging, and once the cache is cold it shows the rewrite price. Desktop draws it as an image on the right of the row. The terminal, and NO_COLOR anywhere, draws it as a row of text cells with Xm left, pinging or ≈$X to re-write. A terminal under 50 columns leaves the meter out. On desktop the fill drains as the minutes pass and a running ping pulses; under reduced motion it stays still. While a message is held, the card shows the price and the row leaves the meter out.
  • Held-message card: in refuse mode a held message shows a card above the prompt. It reads "Message held" with how long the cache has been cold, and two bars compare Send now with a Warm turn. The buttons are Send anyway ≈$X and Discard message, with a hint to /clear and paste a summary. A short band gets a one-line card with the same buttons. The card shows whether or not a window is armed.
  • Live redraw: the row and card redraw once a minute while a window is armed or a message is held, so the countdowns stay true.
  • Cost card: /cache-tax shows the model, cache state, context size, the cold rewrite price, a break-even figure for pings and the cold writes paid this session.

The held message

  • Send anyway resends your held message as you, through the engine's prompt submit. It counts as the resend, so it goes through and pays the rewrite. It shows only while the cache is still cold.
  • Send anyway is hidden when the message had attachments or @-mentions. A resend from the mod cannot carry those, so the card asks you to send it again from the prompt.
  • Discard message clears the card. The message stays unsent, and the guard holds the next cold send again.
  • Sending the message again from the prompt works too, and clears the card.
  • If a resend is refused, the card comes back as it was and the log says why.
  • The held text is kept in memory only. It is cleared when it is sent or discarded, on the next turn, on compaction, on /clear and on a resume.
  • Prompts you did not type, such as notifications, follow their own rule while the cache is cold: the first is dropped once and the next one goes through. They never touch your held message.

Commands

CommandWhat it does
/keepwarmArms a 6-hour window.
/keepwarm 90mArms a window of your own length (6h, 90m, 2h30m).
/keepwarm 6h every 2mSame, with a custom ping period (at least 1m). The period lasts for that window only.
/keepwarm alwaysArms 6 hours now and at every later session start, remembered across sessions.
/keepwarm offStops the window and turns always off.
/keepwarm statusShows the window, next ping and last ping.
/cache-tax or /cache-tax statusShows the cost card.
/cache-tax guard refuseDrops a cold send once (the default).
/cache-tax guard warnLogs the price of a cold send and sends it.

Settings

None. The mod declares no userConfig. The guard mode and the always switch are set with the commands above.

How it works

  • Cold means an hour or more since the last main-session request, by the mod's own clock. It is an estimate from timing; the mod has no view of the server cache.
  • Prices come from a fixed table in hooks/register.ts (PRICES, list prices per million tokens for Fable, Opus, Sonnet and Haiku families). Unknown models show n/a.
  • A cold write is counted when a turn writes at least half of a previous context above 20,000 tokens, or after a guarded send. With no window armed, the mod logs the cost and suggests /keepwarm. It arms nothing on its own.
  • On a resumed session, Claude Code's resume fields seed the clock and context. A cold resume of 50,000 tokens or more logs one line with the estimated cost.
  • /clear resets the clock, context, tally and any held message. A compaction resets the state until the next turn. Subagent turns never move the timer.
  • Each window belongs to the session that armed it. Another session never inherits it or turns it off.

What it touches

  • Events hooked: config.set (theme key), ui.render (AbovePrompt), session.start, classic.SessionStart, command.run (keepwarm, cache-tax), prompt.submit, turn.step, turn.complete, session.compact.
  • Commands registered: /keepwarm and /cache-tax. It registers no model tools.
  • Model requests: one $.model.fork per ping, only inside an armed window and only while the cache counts as warm. The prompt is the fixed text Reply with the single word: warm. This is a normal Claude Code API request over the session's own transcript.
  • Prompt submits: one $.prompt.submit per press of Send anyway, with your held message's text, sent as you. It runs only in refuse mode, only on your press, and only while the cache is still cold.
  • Prompts: it reads whether your message starts with /, whether it has attachments or an @-mention, and whether you typed it. In refuse mode it can drop one message, and keeps the text of a message you typed in memory so Send anyway can submit it. The resend always goes through. Messages from plugins and slash commands pass untouched.
  • Timers: $.clock.after for each ping and the window's end, plus a minute timer that redraws the band while a window is armed or a message is held.
  • Reads: the theme setting and NO_COLOR once at session start, the session id, model, token usage, the band's width and height, and the command list (to warn if the separate hook form, cache-tax:status, is also installed).
  • Storage: Claude Code's mod store only. Keys are deadline:<session id>, every:<session id>, always and guard. Ended windows of this session and the old bare deadline/every keys are deleted at start. The cold-write tally and the held message live in memory.
  • No file access, processes or network hosts of its own. The icons are embedded in hooks/status-icons.ts, and the meter and the card are drawn as SVG by hooks/draw.ts.

Install

claude plugin marketplace add MrValraven/pulse-mods
claude plugin install pulse-cache-tax@pulse-mods --scope user

Then start a new Claude Code session.

Credits

Fork of karanb192/cache-tax by Karan Bansal, MIT licence. See LICENSE. This fork removes the automatic keepwarm window that the original arms after a paid cold write.

Source 3 files
hooks/register.ts 702 lines
1import type { EngineInterface, Register, RenderChildren, RenderElement } from 'claude-code'
2import { fmtDuration, fmtTok, fmtUsd, HOLD_TITLE_H, holdBarsAlt, holdBarsHeight, holdBarsSvg, holdTitleAlt, holdTitleSvg, isSoonCold, meterAlt, meterSvg, METER_H, minutesLeft, textMeter } from './draw'
3import type { Hold, Warmth } from './draw'
4import { statusIcons } from './status-icons'
5
6export { fmtDuration }
7
8const TTL_MS = 60 * 60 * 1000
9const PING_AFTER_MS = 50 * 60 * 1000
10const MIN_PING_MS = 60 * 1000
11const DEFAULT_WINDOW_MS = 6 * 60 * 60 * 1000
12const BIG_TOKENS = 50000
13const PING_PROMPT = 'Reply with the single word: warm'
14// The band redraws once a minute while a window is armed, so its countdowns stay true.
15const TICK_MS = 60 * 1000
16const KEY_DEADLINE = 'deadline'
17const KEY_EVERY = 'every'
18const KEY_GUARD = 'guard'
19const KEY_ALWAYS = 'always'
20
21// $ per million tokens, [cache read, 1h cache write, output], list prices September 2026.
22// Longer family names first: a model id matches the first row it contains.
23const PRICES: Array<[string, number, number, number]> = [
24  ['fable-5-1', 0.25, 20, 50],
25  ['fable-5', 1, 20, 50],
26  ['opus-5', 0.5, 10, 25],
27  ['opus-4', 0.5, 10, 25],
28  ['sonnet-5', 0.2, 4, 10],
29  ['sonnet', 0.3, 6, 15],
30  ['haiku', 0.1, 2, 5],
31]
32
33type PingRecord = { at: number; read: number; write: number; usd: number | null; warm: boolean }
34type Miss = { at: number; tokens: number; usd: number | null }
35type GuardMode = 'refuse' | 'warn'
36/** A cold send the guard dropped: kept in memory only, for the band's Send anyway, until the next turn. */
37type HeldPrompt = { text: string; isResendable: boolean }
38
39export type State = {
40  hasBand: boolean
41  sid: string
42  deadline: number
43  every: number
44  always: boolean
45  lastRequestAt: number
46  lastModel: string | null
47  ctx: number
48  compacted: boolean
49  guard: GuardMode
50  ackedAt: number
51  /** The guard's ack for prompts the person did not type (notifications, scheduled prompts): one drop, then the next goes through. */
52  notificationAckedAt: number
53  coldWritePending: boolean
54  misses: Miss[]
55  pending: { cancel: () => void } | null
56  last: PingRecord | null
57  stopped: string | null
58  isPinging: boolean
59  held: HeldPrompt | null
60  ticker: { cancel: () => void } | null
61  /** The last request the ticker's phase was set from. */
62  tickerAnchor: number
63}
64
65function priceOf(model: string | null): [number, number, number] | null {
66  const m = (model ?? '').toLowerCase().replace(/[\s.]+/g, '-')
67  for (const [family, read, write, output] of PRICES) if (m.includes(family)) return [read, write, output]
68  return null
69}
70
71export function parseDuration(text: string): number | null {
72  const m = /^(?:(\d+)h)?(?:(\d+)m)?$/.exec(text.trim())
73  if (!m || (m[1] === undefined && m[2] === undefined)) return null
74  return (Number(m[1] ?? 0) * 60 + Number(m[2] ?? 0)) * 60 * 1000
75}
76
77function coldUsd(s: State): number | null {
78  const price = priceOf(s.lastModel)
79  return price ? s.ctx * price[1] / 1e6 : null
80}
81
82function warmUsd(s: State): number | null {
83  const price = priceOf(s.lastModel)
84  return price ? s.ctx * price[0] / 1e6 : null
85}
86
87/** Everything a fork bills: the cache read, any cache write, uncached input at the base rate (half the 1h write rate), and the output. */
88function pingUsd(u: { input_tokens: number; output_tokens: number; cache_read_input_tokens: number; cache_creation_input_tokens: number }, price: [number, number, number]): number {
89  return (u.cache_read_input_tokens * price[0] + u.cache_creation_input_tokens * price[1] + u.input_tokens * price[1] / 2 + u.output_tokens * price[2]) / 1e6
90}
91
92/** The read-only upper bound: pings at the cache-read rate that cost as much as one cold write of the same context. */
93function breakEvenPings(s: State): number | null {
94  const price = priceOf(s.lastModel)
95  if (!price || s.ctx <= 0) return null
96  return Math.floor(price[1] / price[0])
97}
98
99function isCold(s: State, now: number): boolean {
100  return s.lastRequestAt > 0 && !s.compacted && now - s.lastRequestAt >= TTL_MS
101}
102
103function guardText(s: State, now: number): string {
104  const price = priceOf(s.lastModel)
105  const rate = price ? `$${price[1]}/MTok` : 'the cache-write rate'
106  const warm = warmUsd(s)
107  return `the prompt cache went cold ${fmtDuration(now - s.lastRequestAt - TTL_MS)} ago. Sending this re-writes ` +
108    `up to ${s.ctx.toLocaleString('en-US')} tokens at ${rate} = ${fmtUsd(coldUsd(s))}` +
109    (warm == null ? '' : ` (a warm turn would have cost ${fmtUsd(warm)})`) + '.'
110}
111
112export type ResumeFields = {
113  source: string
114  model?: string
115  context_tokens?: number
116  seconds_since_last_response?: number
117  prompt_cache_likely_expired?: boolean
118  estimated_cache_write_usd?: number
119}
120
121/** /clear starts a new conversation in the same process; nothing priced before it still exists. */
122export function resetForClear(s: State) {
123  s.ctx = 0
124  s.lastRequestAt = 0
125  s.compacted = false
126  s.ackedAt = 0
127  s.notificationAckedAt = 0
128  s.coldWritePending = false
129  s.misses = []
130  s.held = null
131  disarm(s)
132}
133
134/** Applies a resumed session's fields to the state; returns the line to log, if any. */
135export function seedFromResume(s: State, e: ResumeFields, now: number): string | null {
136  if (e.source !== 'resume' && e.source !== 'fork') return null
137  if (typeof e.context_tokens === 'number' && e.context_tokens > 0) s.ctx = e.context_tokens
138  if (typeof e.seconds_since_last_response === 'number') s.lastRequestAt = now - e.seconds_since_last_response * 1000
139  if (typeof e.model === 'string') s.lastModel = e.model
140  s.compacted = false
141  if (e.prompt_cache_likely_expired !== true || s.ctx < BIG_TOKENS) return null
142  const usd = typeof e.estimated_cache_write_usd === 'number' ? fmtUsd(e.estimated_cache_write_usd) : fmtUsd(coldUsd(s))
143  return `resuming cold. The first message re-writes ${s.ctx.toLocaleString('en-US')} tokens, about ${usd}. /clear and paste a summary if you only need the conclusions.`
144}
145
146function statusText(s: State, now: number): string | undefined {
147  if (s.stopped) return `keepwarm stopped: ${s.stopped}`
148  if (!s.deadline) return undefined
149  const pingText = s.last ? ` · last ping read ${fmtTok(s.last.read)} ${fmtUsd(s.last.usd)}` : ''
150  const nextText = !s.lastRequestAt ? ' · waiting for the first turn'
151    : s.compacted ? ' · waiting for the first turn after compaction'
152    : isCold(s, now) ? ` · cold now, first ping ${fmtDuration(s.every)} after the next turn`
153    : ` · ping in ${fmtDuration(s.lastRequestAt + s.every - now)}`
154  return `keepwarm ${fmtDuration(s.deadline - now)} left${nextText}${pingText}`
155}
156
157function updateStatus($: EngineInterface, s: State, now: number) {
158  if (s.hasBand) $.ui.invalidate('ui.render')
159  else $.ui.status(statusText(s, now))
160  syncTicker($, s, now)
161}
162
163function redraw($: EngineInterface, s: State) {
164  if (s.hasBand) $.ui.invalidate('ui.render')
165}
166
167/** Redraws the band each minute while a window is armed or a send is held; the status line keeps its own updates. */
168function syncTicker($: EngineInterface, s: State, now: number) {
169  const shouldTick = s.hasBand && (s.deadline > now || isHeld(s, now))
170  // A new request moves the minute boundary, so a ticker set from the old one starts again.
171  if (s.ticker && (!shouldTick || s.tickerAnchor !== s.lastRequestAt)) {
172    s.ticker.cancel()
173    s.ticker = null
174  }
175  if (!shouldTick || s.ticker) return
176  // The meter counts whole minutes from the last request, so the redraw lands as its minute turns.
177  s.tickerAnchor = s.lastRequestAt
178  const intoMinute = s.lastRequestAt ? (((now - s.lastRequestAt) % TICK_MS) + TICK_MS) % TICK_MS : 0
179  s.ticker = $.clock.after(Math.max(1000, TICK_MS - intoMinute), () => {
180    s.ticker = null
181    $.ui.invalidate('ui.render')
182    void $.clock.now().then(at => syncTicker($, s, at))
183  })
184}
185
186/** A cold send the guard dropped, still waiting for the person to send it again or cancel. */
187function isHeld(s: State, now: number): boolean {
188  return s.held !== null && s.guard === 'refuse' && s.ackedAt !== 0 && s.ackedAt === s.lastRequestAt && isCold(s, now)
189}
190
191/** What the band's meter shows; null while nothing is known about the cache, or keepwarm stopped. */
192function warmthOf(s: State, now: number): Warmth | null {
193  if (s.stopped || !s.lastRequestAt || s.compacted) return null
194  const usd = coldUsd(s)
195  const coldPrice = usd == null ? null : fmtUsd(usd)
196  if (isCold(s, now)) return { tone: 'cold', msLeft: 0, ttlMs: TTL_MS, pingMsLeft: null, coldPrice }
197  const isPingAhead = s.deadline > 0 && s.every < TTL_MS && s.lastRequestAt + s.every < s.deadline
198  return { tone: s.isPinging ? 'pinging' : 'warm', msLeft: s.lastRequestAt + TTL_MS - now, ttlMs: TTL_MS, pingMsLeft: isPingAhead ? TTL_MS - s.every : null, coldPrice }
199}
200
201/** The band's words after the state: what happens next, the window, the last ping. The status line's phrases, reordered; the state word already says cold. */
202function bandDetails(s: State, now: number): string {
203  if (s.stopped) return `${s.stopped} · /keepwarm starts it again`
204  const next = !s.lastRequestAt ? 'waiting for the first turn'
205    : s.compacted ? 'waiting for the first turn after compaction'
206    : isCold(s, now) ? `first ping ${fmtDuration(s.every)} after the next turn`
207    : s.isPinging ? 'pinging now'
208    : `ping in ${fmtDuration(s.lastRequestAt + s.every - now)}`
209  const pingText = s.last ? ` · last ping read ${fmtTok(s.last.read)} ${fmtUsd(s.last.usd)}` : ''
210  return `${next} · keepwarm ${fmtDuration(s.deadline - now)} left${pingText}`
211}
212
213/** The band's Send anyway: the same as sending the held message again from the prompt. */
214async function sendHeld($: EngineInterface, s: State) {
215  const held = s.held
216  if (!held) return
217  // Taken at once, so a second press finds nothing left to send.
218  s.held = null
219  if (!isCold(s, await $.clock.now()) || s.guard !== 'refuse' || s.ackedAt === 0 || s.ackedAt !== s.lastRequestAt) return
220  const ackedAt = s.ackedAt
221  s.ackedAt = 0
222  s.coldWritePending = true
223  redraw($, s)
224  let failure: string | null = null
225  try {
226    const result = await $.prompt.submit({ text: held.text, asUser: true })
227    if (result.drop !== undefined) failure = result.drop
228  } catch (err) {
229    failure = err instanceof Error ? err.message : String(err)
230  }
231  if (failure === null) return
232  // Nothing entered: the card comes back as it was.
233  s.held = held
234  s.ackedAt = ackedAt
235  s.coldWritePending = false
236  $.ui.log(`cache-tax: the resend did not go through, ${failure}`)
237  redraw($, s)
238}
239
240/** The band's Discard message: the message stays unsent and the guard holds the next cold send again. */
241function cancelHeld($: EngineInterface, s: State) {
242  s.held = null
243  s.ackedAt = 0
244  redraw($, s)
245}
246
247function disarm(s: State) {
248  if (s.pending) s.pending.cancel()
249  s.pending = null
250}
251
252// The window and its ping period belong to the session that armed them, so a
253// second session, or one resumed from another transcript, never inherits them
254// and cannot turn them off. The always switch and the guard mode stay global.
255function deadlineKey(s: State): string {
256  return `${KEY_DEADLINE}:${s.sid}`
257}
258
259function everyKey(s: State): string {
260  return `${KEY_EVERY}:${s.sid}`
261}
262
263/** Clears this session's own dead window and the bare keys a store written before 2.1.1 still holds. Other sessions' keys are never touched: a read followed by a delete cannot be made atomic against their renewal. */
264async function prune($: EngineInterface, s: State, now: number) {
265  for (const key of [KEY_DEADLINE, deadlineKey(s)]) {
266    const deadline = await $.store.get(key)
267    if (deadline === undefined) continue
268    if (typeof deadline === 'number' && deadline > now) continue
269    await $.store.delete(key)
270    await $.store.delete(KEY_EVERY + key.slice(KEY_DEADLINE.length))
271  }
272}
273
274async function stop($: EngineInterface, s: State, why: string | null, forgetAlways = false) {
275  s.deadline = 0
276  s.every = PING_AFTER_MS
277  s.stopped = why
278  disarm(s)
279  await $.store.delete(deadlineKey(s))
280  await $.store.delete(everyKey(s))
281  if (forgetAlways) {
282    s.always = false
283    await $.store.delete(KEY_ALWAYS)
284  }
285  updateStatus($, s, await $.clock.now())
286}
287
288async function arm($: EngineInterface, s: State) {
289  disarm(s)
290  if (!s.deadline) return
291  const now = await $.clock.now()
292  if (now >= s.deadline) return stop($, s, null)
293  // A cold window still needs expiry cleanup, but must not send a model request.
294  if (s.lastRequestAt && !s.compacted && !isCold(s, now)) {
295    const untilCold = s.lastRequestAt + TTL_MS - now
296    const delay = Math.min(s.deadline - now, untilCold, Math.max(1000, s.lastRequestAt + s.every - now))
297    s.pending = $.clock.after(delay, () => { void ping($, s) })
298  } else {
299    s.pending = $.clock.after(s.deadline - now, () => { void arm($, s) })
300  }
301  updateStatus($, s, now)
302}
303
304async function ping($: EngineInterface, s: State) {
305  s.pending = null
306  if (!s.deadline) return
307  const now = await $.clock.now()
308  if (now >= s.deadline) return arm($, s)
309  // A turn in the meantime re-armed the timer; this callback is stale.
310  if (isCold(s, now)) return arm($, s)
311  if (now - s.lastRequestAt < s.every - 1000) return
312  s.isPinging = true
313  redraw($, s)
314  let reply
315  try {
316    reply = await $.model.fork({ prompt: PING_PROMPT })
317  } catch (err) {
318    s.isPinging = false
319    return stop($, s, `the ping failed, ${err instanceof Error ? err.message : String(err)}`)
320  }
321  s.isPinging = false
322  if (reply === null) return stop($, s, 'the engine did not send the ping, either the snapshot was cold or the API call failed')
323  if (reply.isAnswered === false) {
324    const reason = reply.reason === 'nothing-to-fork' ? 'no conversation to warm yet'
325      : reply.reason === 'api-error' ? `the API call failed${reply.status === null ? '' : ` (${reply.status})`}`
326      : reply.reason === 'aborted' ? 'the ping was interrupted'
327      : 'the ping returned no text'
328    return stop($, s, reason)
329  }
330  const u = reply.usage
331  const price = priceOf(s.lastModel)
332  // A warm ping reads the prefix and writes only its own message; a write of a tenth of the read or more means the prefix broke.
333  const warm = u.cache_read_input_tokens > 0 && u.cache_creation_input_tokens < 0.1 * u.cache_read_input_tokens
334  const usd = price ? pingUsd(u, price) : null
335  s.last = { at: now, read: u.cache_read_input_tokens, write: u.cache_creation_input_tokens, usd, warm }
336  if (!warm) return stop($, s, `the ping read ${fmtTok(u.cache_read_input_tokens)} and wrote ${fmtTok(u.cache_creation_input_tokens)} tokens (${fmtUsd(usd)}), the cache was already gone`)
337  s.lastRequestAt = now
338  await arm($, s)
339}
340
341/** The reply to an arming command; on a cold cache it says when the first ping can come. */
342function armedText(s: State, now: number, windowMs: number): string {
343  if (isCold(s, now)) return `keepwarm on for ${fmtDuration(windowMs)}. The cache is cold now, so the first ping comes ${fmtDuration(s.every)} after the next turn`
344  return `keepwarm on for ${fmtDuration(windowMs)}, a ping ${fmtDuration(s.every)} after each idle stretch keeps the cache warm, so the next turn reads it at the cache-read rate`
345}
346
347async function startWindow($: EngineInterface, s: State, windowMs: number, every: number) {
348  const now = await $.clock.now()
349  s.every = every
350  if (every === PING_AFTER_MS) await $.store.delete(everyKey(s))
351  else await $.store.set(everyKey(s), every)
352  s.deadline = now + windowMs
353  s.stopped = null
354  await $.store.set(deadlineKey(s), s.deadline)
355  await arm($, s)
356}
357
358function card(s: State, now: number): string {
359  const lines: string[] = []
360  lines.push(`${s.lastModel ?? 'model not seen yet'}`)
361  if (s.compacted) lines.push('state       reset by compaction, waiting for the first turn')
362  else if (!s.lastRequestAt) lines.push('state       no request yet this session')
363  else if (isCold(s, now)) lines.push(`state       COLD, last request ${fmtDuration(now - s.lastRequestAt)} ago`)
364  else lines.push(`state       warm, ${fmtDuration(s.lastRequestAt + TTL_MS - now)} left`)
365  lines.push(`context     ${s.ctx.toLocaleString('en-US')} tokens`)
366  lines.push(`cold cost   ${fmtUsd(coldUsd(s))} to re-write it (warm turn ${fmtUsd(warmUsd(s))})`)
367  const always = s.always ? ' (always)' : ''
368  const idle = s.always ? 'off until the next session start, which arms 6h00m (always)' : 'off (/keepwarm to arm it for 6h00m)'
369  lines.push(`keepwarm    ${s.deadline ? (statusText(s, now) ?? '').replace(/^keepwarm /, 'on, ') + always : s.stopped ? `stopped, ${s.stopped}${always}` : idle}`)
370  const pings = breakEvenPings(s)
371  if (pings != null) lines.push(`break-even  up to ${pings} pings at the read rate cost one cold write, about ${fmtDuration(pings * s.every)} of idle at one ping per ${fmtDuration(s.every)}`)
372  lines.push(`guard       ${s.guard === 'refuse' ? 'refuse once (/cache-tax guard warn to only show the price)' : 'warn only (/cache-tax guard refuse to be stopped once)'}`)
373  const paid = s.misses.reduce((a, m) => a + (m.usd ?? 0), 0)
374  lines.push(`session     ${s.misses.length} cold write${s.misses.length === 1 ? '' : 's'} paid, ${fmtUsd(paid)}`)
375  return lines.join('\n')
376}
377
378export function freshState(): State {
379  return {
380    hasBand: false, sid: '', deadline: 0, every: PING_AFTER_MS, always: false, lastRequestAt: 0, lastModel: null, ctx: 0, compacted: false,
381    guard: 'refuse', ackedAt: 0, notificationAckedAt: 0, coldWritePending: false, misses: [], pending: null, last: null, stopped: null,
382    isPinging: false, held: null, ticker: null, tickerAnchor: 0,
383  }
384}
385
386export const register: Register = on => {
387  const s = freshState()
388  let light = false
389  let noColor = false
390
391  on('config.set', { key: 'theme' }, async ($, e, next) => {
392    const result = await next(e)
393    if (result.deny === undefined) {
394      light = typeof result.value === 'string' && result.value.startsWith('light')
395      if (s.hasBand) $.ui.invalidate('ui.render')
396    }
397    return result
398  })
399
400  // The band: one row for the cache (icon, state, what comes next, a warmth meter), and a decision card while a cold send is held.
401  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
402    const rest = await next(e)
403    if (!s.hasBand || e.props.hasSurvey) return rest
404    const now = await $.clock.now()
405    const hasRow = Boolean(statusText(s, now)) && !(s.deadline && now >= s.deadline)
406    const isHeldNow = isHeld(s, now)
407    if (!hasRow && !isHeldNow) return rest
408    const { Box, Text, Button } = $.ui.resolve(e)
409    const coral = noColor ? undefined : light ? '#c15f3c' : '#d97757'
410    // Desktop draws the meter and the card as images; the terminal, and NO_COLOR anywhere, draws them as text.
411    const isGraphic = e.surface === 'desktop' && !noColor
412    const drawSvg = (source: string, alt: string, width: number, height: number): RenderElement | null =>
413      e.surface === 'desktop' && !noColor ? $.ui.resolve(e).Svg({ source, alt, width, height }) : null
414    const bandWidth = Math.max(240, Math.min(1600, (e.props.bodyColumns || 80) * 8 - 8))
415    const children: RenderChildren[] = [rest]
416
417    if (hasRow) {
418      const state = s.stopped ? 'stopped' : !s.lastRequestAt || s.compacted ? 'unknown' : isCold(s, now) ? 'cold' : 'warm'
419      const color = noColor ? undefined : state === 'warm' ? 'success' : state === 'cold' ? coral : undefined
420      const asset = statusIcons[light ? 'light' : 'dark'][state === 'warm' || state === 'cold' ? state : 'neutral']
421      const icon = noColor ? Text({ bold: true, children: ['[>]'] })
422        : e.surface === 'terminal' ? $.ui.resolve(e).Image({ source: { png: asset.png }, columns: 3, rows: 1, alt: '[>]' })
423        : e.surface === 'desktop' ? $.ui.resolve(e).Svg({ source: asset.svg, width: 18, height: 18, alt: 'Cache Tax' })
424        : Text({ color, bold: true, children: ['[>]'] })
425      // While a send is held its card shows the price, so the row leaves the meter out.
426      const warmth = isHeldNow ? null : warmthOf(s, now)
427      const meterWidth = Math.max(bandWidth < 300 ? 88 : 104, Math.min(190, Math.round(bandWidth * 0.3)))
428      const meterImage = warmth ? drawSvg(meterSvg(warmth, meterWidth), meterAlt(warmth), meterWidth, METER_H) : null
429      const meterCells = e.props.bodyColumns >= 70 ? 10 : e.props.bodyColumns >= 50 ? 6 : 0
430      const meterText: RenderChildren[] = warmth && !meterImage && meterCells ? (() => {
431        const cells = textMeter(warmth, meterCells)
432        const fillColor = noColor ? undefined : isSoonCold(warmth) ? coral : 'success'
433        const label = warmth.tone === 'pinging' ? 'pinging'
434          : warmth.tone === 'warm' ? `${minutesLeft(warmth.msLeft)}m left`
435          : warmth.coldPrice ? `≈${warmth.coldPrice} to re-write` : 'price unknown'
436        return [
437          ' ',
438          ...(cells.filled ? [Text({ color: fillColor, children: [cells.filled] }), Text({ dimColor: true, children: [cells.empty] }), ' '] : []),
439          Text({ bold: true, color: warmth.tone === 'cold' ? coral : undefined, children: [label] }),
440        ]
441      })() : []
442      // On desktop the icon's alt names the mod, so the row leads with the state and keeps it in view when narrow.
443      const line = Text({ wrap: 'truncate-end', children: [
444        ...(isGraphic ? [] : [Text({ dimColor: true, children: ['cache-tax'] }), ' ']),
445        Text({ color, bold: true, children: [state] }),
446        ...meterText,
447        Text({ dimColor: true, children: [` · ${bandDetails(s, now)}`] }),
448      ] })
449      children.push(Box({ flexDirection: 'row', alignItems: 'center', gap: 1, children: [
450        Box({ flexShrink: 0, children: [icon] }),
451        Box({ flexGrow: 1, flexShrink: 1, children: [line] }),
452        ...(meterImage ? [Box({ flexShrink: 0, children: [meterImage] })] : []),
453      ] }))
454    }
455
456    if (isHeldNow && s.held) {
457      const hold: Hold = { coldFor: fmtDuration(now - s.lastRequestAt - TTL_MS), rewriteUsd: coldUsd(s), warmUsd: warmUsd(s), tokens: s.ctx.toLocaleString('en-US') }
458      const rewrite = hold.rewriteUsd == null ? null : fmtUsd(hold.rewriteUsd)
459      const buttons = Box({ flexDirection: 'row', alignItems: 'center', gap: 1, children: [
460        ...(s.held.isResendable
461          ? [Button({ key: 'cache-tax-send', label: rewrite ? `Send anyway ≈${rewrite}` : 'Send anyway', variant: 'primary', onPress: () => { void sendHeld($, s) } })]
462          : []),
463        Button({ key: 'cache-tax-cancel', label: 'Discard message', onPress: () => cancelHeld($, s) }),
464        Text({ dimColor: true, wrap: 'truncate-end', children: [s.held.isResendable
465          ? 'Or /clear and paste a summary. /keepwarm after sending keeps it warm.'
466          : 'It had attachments or @-mentions, so send it again from the prompt.'] }),
467      ] })
468      // The full card needs about seven rows; a shorter band gets the one-line card.
469      const cardWidth = Math.min(bandWidth, 560)
470      const title = e.props.maxRows >= 7 ? drawSvg(holdTitleSvg(hold, cardWidth), holdTitleAlt(hold), cardWidth, HOLD_TITLE_H) : null
471      const bars = title ? drawSvg(holdBarsSvg(hold, cardWidth), holdBarsAlt(hold), cardWidth, holdBarsHeight(hold)) : null
472      if (title && bars) {
473        children.push(Box({ flexDirection: 'column', gap: 1, marginTop: hasRow ? 1 : 0, children: [title, buttons, bars] }))
474      } else {
475        const cost = rewrite
476          ? `sending re-writes ≈${rewrite}${hold.warmUsd == null ? '' : `, a warm turn ≈${fmtUsd(hold.warmUsd)}`}`
477          : `sending re-writes up to ${hold.tokens} tokens, no price for this model`
478        children.push(Box({ flexDirection: 'column', children: [
479          Text({ wrap: 'truncate-end', children: [
480            Text({ bold: true, color: coral, children: ['Message held'] }),
481            Text({ dimColor: true, children: [` · ${cost} · cold for ${hold.coldFor}`] }),
482          ] }),
483          buttons,
484        ] }))
485      }
486    }
487
488    return Box({ flexDirection: 'column', children })
489  })
490
491  on('session.start', async ($, e, next) => {
492    const r = await next(e)
493    s.hasBand = e.surface === 'terminal' || e.surface === 'desktop'
494    if (s.hasBand) {
495      const theme = (await $.config.list()).find(row => row.key === 'theme')?.value
496      light = typeof theme === 'string' && theme.startsWith('light')
497      noColor = Boolean(await $.env.get('NO_COLOR'))
498      $.ui.status(undefined)
499    }
500    s.sid = await $.session.id()
501    const now = await $.clock.now()
502    await prune($, s, now)
503    const saved = await $.store.get(deadlineKey(s))
504    const savedEvery = await $.store.get(everyKey(s))
505    const savedGuard = await $.store.get(KEY_GUARD)
506    s.deadline = typeof saved === 'number' && saved > now ? saved : 0
507    s.every = typeof savedEvery === 'number' && savedEvery >= MIN_PING_MS ? savedEvery : PING_AFTER_MS
508    s.guard = savedGuard === 'warn' ? 'warn' : 'refuse'
509    s.always = (await $.store.get(KEY_ALWAYS)) === true
510    // Always means a fresh default window every session, whatever the last one left behind.
511    if (s.always) await startWindow($, s, DEFAULT_WINDOW_MS, PING_AFTER_MS)
512    const usage = await $.session.usage()
513    if (usage.context.tokens) s.ctx = usage.context.tokens
514    await $.command.register({
515      name: 'keepwarm',
516      description: 'Keep the prompt cache warm: bare for 6h, a window such as 90m, always, off, or status (cache-tax)',
517      argumentHint: '[6h | always | off | status]',
518      immediate: true,
519    })
520    await $.command.register({
521      name: 'cache-tax',
522      description: 'Prompt cache state, cold price and this session\'s cold writes; guard warn|refuse (cache-tax, the Mod)',
523      argumentHint: '[status | guard warn | guard refuse]',
524      immediate: true,
525    })
526    // The hook form of cache-tax ships a /cache-tax:status skill; both installed means two guards.
527    const commands = await $.command.list()
528    if (commands.some(c => c.name === 'cache-tax:status')) {
529      $.ui.log('the hook form (cache-tax@claude-code-hooks) is also installed, so a cold send is warned about or refused twice. Uninstall it, or /cache-tax guard warn here.')
530    }
531    updateStatus($, s, now)
532    return r
533  })
534
535  // Resume fields seed the guard before any turn of the resumed session has run.
536  on('classic.SessionStart', async ($, e, next) => {
537    const r = await next(e)
538    if (e.source === 'clear') {
539      await stop($, s, null)
540      s.stopped = null
541      resetForClear(s)
542      s.sid = await $.session.id()
543      updateStatus($, s, await $.clock.now())
544      return r
545    }
546    // A held message belongs to the conversation before the resume.
547    s.held = null
548    s.ackedAt = 0
549    s.notificationAckedAt = 0
550    const line = seedFromResume(s, e, await $.clock.now())
551    // The resume payload may omit the model; without it the guard cannot price the cold write.
552    if (!s.lastModel) s.lastModel = await $.session.model()
553    if (line) $.ui.log(line)
554    // The seeded clock decides whether a restored or always window pings before the first turn: never when it is cold.
555    await arm($, s)
556    return r
557  })
558
559  on('command.run', { command: 'keepwarm' }, async ($, e) => {
560    const words = String(e.args ?? '').trim().split(/\s+/).filter(Boolean)
561    const now = await $.clock.now()
562    if (words[0] === 'off') {
563      const wasAlways = s.always
564      await stop($, s, null, true)
565      return { text: wasAlways ? 'keepwarm is off, and no longer arms itself at session start' : 'keepwarm is off' }
566    }
567    if (words[0] === 'always') {
568      s.always = true
569      await $.store.set(KEY_ALWAYS, true)
570      await startWindow($, s, DEFAULT_WINDOW_MS, PING_AFTER_MS)
571      const cold = isCold(s, now) ? `. The cache is cold now, so the first ping comes ${fmtDuration(s.every)} after the next turn` : ''
572      return { text: `keepwarm always on: every session starts with a ${fmtDuration(DEFAULT_WINDOW_MS)} window; /keepwarm off turns it off for good${cold}` }
573    }
574    if (!words.length) {
575      await startWindow($, s, DEFAULT_WINDOW_MS, PING_AFTER_MS)
576      return { text: armedText(s, now, DEFAULT_WINDOW_MS) }
577    }
578    if (words[0] !== 'status') {
579      const window = parseDuration(words[0] ?? '')
580      if (window == null) return { text: 'keepwarm takes a window such as 6h or 90m, or always, off, or status' }
581      // "every 2m" is a testing knob and lasts only for the window it was given with.
582      let every = PING_AFTER_MS
583      if (words[1] === 'every') {
584        const period = parseDuration(words[2] ?? '')
585        if (period == null || period < MIN_PING_MS) return { text: 'every takes a period of at least 1m' }
586        every = period
587      }
588      await startWindow($, s, window, every)
589      return { text: armedText(s, now, window) }
590    }
591    return { text: statusText(s, now) ?? 'keepwarm is off' }
592  })
593
594  on('command.run', { command: 'cache-tax' }, async ($, e) => {
595    const words = String(e.args ?? '').trim().split(/\s+/).filter(Boolean)
596    const now = await $.clock.now()
597    if (words[0] === 'guard') {
598      if (words[1] !== 'warn' && words[1] !== 'refuse') return { text: '/cache-tax guard takes warn or refuse' }
599      s.guard = words[1]
600      await $.store.set(KEY_GUARD, s.guard)
601      return { text: s.guard === 'refuse' ? 'guard set to refuse once: a cold send is dropped with its price, the resend goes through' : 'guard set to warn: a cold send goes through with its price shown' }
602    }
603    return { text: card(s, now) }
604  })
605
606  // The message that pays. Its text is read for a leading slash; a held one stays in memory for the band's Send anyway until the next turn.
607  on('prompt.submit', async ($, e, next) => {
608    if (e.origin.kind === 'plugin') return next(e)
609    if (typeof e.text !== 'string' || e.text.trimStart().startsWith('/')) return next(e)
610    const now = await $.clock.now()
611    if (!isCold(s, now) || s.ctx < BIG_TOKENS) return next(e)
612    if (s.guard === 'warn') {
613      $.ui.log(`${guardText(s, now)} Sending anyway; /keepwarm holds the cache once it lands.`)
614      s.coldWritePending = true
615      return next(e)
616    }
617    // Only the person's own message is held or let through on a resend. A prompt they did not type keeps the
618    // guard's old rule on its own ack (dropped once, the next goes through), so it never touches the held card.
619    const isTyped = e.origin.kind === 'composer' || e.origin.kind === 'bridge'
620    if (!isTyped) {
621      if (s.notificationAckedAt === s.lastRequestAt) {
622        s.notificationAckedAt = 0
623        s.coldWritePending = true
624        return next(e)
625      }
626      s.notificationAckedAt = s.lastRequestAt
627      return { drop: `cache-tax: ${guardText(s, now)} Send it again to pay it, then /keepwarm holds the cache. Or /clear and start from a note.` }
628    }
629    if (s.ackedAt === s.lastRequestAt) {
630      s.ackedAt = 0
631      s.coldWritePending = true
632      s.held = null
633      redraw($, s)
634      return next(e)
635    }
636    s.ackedAt = s.lastRequestAt
637    // A plugin's resend expands no attachments or @-mentions, so those are left for the person to send again.
638    s.held = { text: e.text, isResendable: !e.attachments?.length && !/(^|\s)@\S/.test(e.text) }
639    redraw($, s)
640    syncTicker($, s, now)
641    const nextStep = !s.hasBand ? 'Send it again to pay it, then /keepwarm holds the cache. Or /clear and start from a note.'
642      : s.held.isResendable ? 'Send it again, or use Send anyway below.'
643      : 'Send it again from the prompt to pay it.'
644    return { drop: `cache-tax: ${guardText(s, now)} ${nextStep}` }
645  })
646
647  on('turn.step', async function* ($, e, next) {
648    if (!e.agentId) s.lastRequestAt = await $.clock.now()
649    yield* next(e)
650  })
651
652  on('turn.complete', async ($, e, next) => {
653    const r = await next(e)
654    if (e.agentId) return r
655    const now = await $.clock.now()
656    // A sleeping host may deliver this turn before the expired window's timer.
657    if (s.deadline && now >= s.deadline) await stop($, s, null)
658    // turn.step stamps the exact request time; when no step of this turn did, the turn's end is the floor.
659    if (now - s.lastRequestAt > e.durationMs) s.lastRequestAt = now
660    s.compacted = false
661    s.ackedAt = 0
662    s.notificationAckedAt = 0
663    s.held = null
664    const u = e.usage
665    if (u) {
666      if (u.model) s.lastModel = u.model
667      const prev = s.ctx
668      // A turn's usage is its responses summed, so a ten-step turn reports ten
669      // reads of the context. The live window is the engine's figure; the sum
670      // is only the fallback for a host that reports no tokens.
671      const write = u.cache_creation_input_tokens
672      const live = (await $.session.usage()).context.tokens
673      s.ctx = live && live > 0 ? live : u.input_tokens + u.cache_read_input_tokens + write
674      const full = prev > 20000 && write >= 0.5 * prev
675      if (full || s.coldWritePending) {
676        const price = priceOf(s.lastModel)
677        const usd = price ? write * price[1] / 1e6 : null
678        s.misses.push({ at: now, tokens: write, usd })
679        // pulse: no automatic window after a paid write; pinging runs only after /keepwarm.
680        if (s.deadline <= now) $.ui.log(`cold write of ${fmtTok(write)} tokens paid (${fmtUsd(usd)}). /keepwarm holds the cache so it is not paid again.`)
681      }
682    }
683    s.coldWritePending = false
684    await arm($, s)
685    return r
686  })
687
688  on('session.compact', async ($, e, next) => {
689    const r = await next(e)
690    if (!e.agentId) {
691      s.compacted = true
692      s.ctx = 0
693      s.ackedAt = 0
694      s.notificationAckedAt = 0
695      s.held = null
696      disarm(s)
697      await arm($, s)
698    }
699    return r
700  })
701}
702
hooks/draw.ts 241 lines
1// pulse-cache-tax drawing: pure functions that turn the cache's state into SVG and text.
2//
3// No runtime import from 'claude-code': a preview script can import this file as it is.
4
5// QueerPulse tokens, copied as hex: a mod cannot read CSS variables. The same palette as pulse-progress.
6export const CORAL = '#e8775a'
7export const JADE = '#4a8c6f'
8export const LILAC = '#8a72cf'
9const FONT = "'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif"
10const SERIF = 'Fraunces,Georgia,serif'
11const TABULAR = ' style="font-variant-numeric:tabular-nums"'
12
13// ---------------------------------------------------------------------------
14// Numbers.
15
16export function fmtDuration(ms: number): string {
17  const total = Math.max(0, Math.round(ms / 60000))
18  const hours = Math.floor(total / 60)
19  const minutes = total % 60
20  if (hours >= 48) return `${Math.floor(hours / 24)}d ${hours % 24}h`
21  return hours > 0 ? `${hours}h${String(minutes).padStart(2, '0')}m` : `${minutes}m`
22}
23
24export function fmtUsd(usd: number | null): string {
25  return usd == null ? 'n/a' : '$' + (usd >= 100 ? usd.toFixed(0) : usd.toFixed(2))
26}
27
28export function fmtTok(count: number): string {
29  return count >= 1e6 ? (count / 1e6).toFixed(1) + 'M' : count >= 1000 ? Math.round(count / 1000) + 'k' : String(count)
30}
31
32/** Whole minutes left, rounded up: a countdown reads 1m through its last minute. */
33export const minutesLeft = (ms: number): number => Math.max(0, Math.ceil(ms / 60000))
34
35// ---------------------------------------------------------------------------
36// Text in SVG.
37
38const ENTITIES: Record<string, string> = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }
39export const xml = (text: string): string => text.replace(/[&<>"]/g, ch => ENTITIES[ch] ?? ch)
40
41const charEm = (ch: string): number =>
42  /[0-9$]/.test(ch) ? 0.6 : /[\s.,:;'|!il()[\]]/.test(ch) ? 0.3 : /[A-Zmw@%≈]/.test(ch) ? 0.75 : 0.56
43export const textWidth = (text: string, size: number): number => [...text].reduce((width, ch) => width + charEm(ch) * size, 0)
44
45export const fitText = (text: string, size: number, maxWidth: number): string => {
46  if (textWidth(text, size) <= maxWidth) return text
47  let out = ''
48  for (const ch of text) {
49    if (textWidth(out + ch + '…', size) > maxWidth) break
50    out += ch
51  }
52  return out.trimEnd() + '…'
53}
54
55// ---------------------------------------------------------------------------
56// Light and dark. Text and tracks are neutral; jade means warm, coral means it costs, lilac marks the ping.
57
58const TEXT_LIGHT = '45,27,61'
59const TEXT_DARK = '243,239,233'
60// Inks hold 4.5:1 as small text on cream (#faf6f0) and on near-black (#141414).
61const CORAL_INK_LIGHT = '#9e472c'
62const CORAL_INK_DARK = '#f0907a'
63const LILAC_INK_LIGHT = '#5d47a8'
64const LILAC_INK_DARK = '#a996e0'
65const JADE_DARK = '#5aa784'
66// A deeper coral for fills on cream; the brand coral stays on near-black.
67const CORAL_FILL_LIGHT = '#d4603f'
68
69const css = (motion: string): string => `<style>
70.tx{fill:rgb(${TEXT_LIGHT})}.m{fill:rgba(${TEXT_LIGHT},.63)}.k{fill:rgba(${TEXT_LIGHT},.09)}
71.fw{fill:${JADE}}.fc{fill:${CORAL_FILL_LIGHT}}.ci{fill:${CORAL_INK_LIGHT}}.pt{fill:${LILAC}}.li{fill:${LILAC_INK_LIGHT}}
72@media (prefers-color-scheme: dark){.tx{fill:rgb(${TEXT_DARK})}.m{fill:rgba(${TEXT_DARK},.49)}.k{fill:rgba(255,255,255,.08)}
73.fw{fill:${JADE_DARK}}.fc{fill:${CORAL}}.ci{fill:${CORAL_INK_DARK}}.pt{fill:${LILAC_INK_DARK}}.li{fill:${LILAC_INK_DARK}}}
74${motion}</style>`
75
76const svg = (width: number, height: number, body: string, motion = ''): string =>
77  `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}">${css(motion)}${body}</svg>`
78
79const textAt = (x: number, y: number, cls: string, size: number, content: string, extra = ''): string =>
80  `<text class="${cls}" x="${x}" y="${y}" font-family="${FONT}" font-size="${size}"${extra}>${xml(content)}</text>`
81
82// ---------------------------------------------------------------------------
83// The warmth meter: a track as long as the cache's one-hour life, filled with what is left of it.
84
85export type Warmth = {
86  /** warm: the fill drains; pinging: keepwarm's ping is in flight; cold: only the price shows. */
87  tone: 'warm' | 'pinging' | 'cold'
88  /** Until the cache goes cold; 0 once it has. */
89  msLeft: number
90  ttlMs: number
91  /** The warmth left when keepwarm pings and refills the meter; null when no ping lands before it goes cold. */
92  pingMsLeft: number | null
93  /** What the next send re-writes, as `$4.01`; null when the model has no price. */
94  coldPrice: string | null
95}
96
97export const METER_H = 20
98const TRACK_H = 6
99// Below this the fill reads as nearly gone, so it turns coral: the last ten minutes of the hour.
100const SOON_COLD_MS = 10 * 60 * 1000
101// Narrower than this, a meter drops its label's small words and keeps the number.
102const COMPACT_W = 130
103
104type Label = { parts: Array<{ text: string; cls: string; size: number; weight?: number }> }
105
106const labelWidth = (label: Label): number => label.parts.reduce((width, part) => width + textWidth(part.text, part.size), 0)
107
108const meterLabel = (warmth: Warmth, width: number): Label => {
109  if (warmth.tone === 'pinging') return { parts: [{ text: 'pinging', cls: 'li', size: 12, weight: 600 }] }
110  if (warmth.tone === 'warm') {
111    const minutes = { text: `${minutesLeft(warmth.msLeft)}m`, cls: 'tx', size: 12, weight: 600 }
112    return { parts: width >= COMPACT_W ? [minutes, { text: ' left', cls: 'm', size: 11 }] : [minutes] }
113  }
114  if (!warmth.coldPrice) return { parts: [{ text: width >= 170 ? 'price unknown' : 'no price', cls: 'm', size: 11 }] }
115  const price = { text: `≈${warmth.coldPrice}`, cls: 'ci', size: 12, weight: 600 }
116  return { parts: width >= 170 ? [price, { text: ' to re-write', cls: 'm', size: 11 }] : [price] }
117}
118
119// The widest warm label, so the track keeps one length while the minutes count down.
120const warmLabelWidth = (width: number): number => Math.ceil(textWidth('60m', 12) + (width >= COMPACT_W ? textWidth(' left', 11) : 0))
121
122export const meterSvg = (given: Warmth, width: number): string => {
123  // Whole seconds, so two draws in the same second give the same source.
124  const warmth = { ...given, msLeft: Math.round(given.msLeft / 1000) * 1000 }
125  const label = meterLabel(warmth, width)
126  const labelW = Math.max(warmth.tone === 'cold' ? 0 : warmLabelWidth(width), Math.ceil(labelWidth(label)))
127  const trackW = Math.max(24, width - labelW - 14)
128  const trackY = (METER_H - TRACK_H) / 2
129  const radius = TRACK_H / 2
130  const isLive = warmth.tone !== 'cold'
131  const fraction = isLive ? Math.min(1, Math.max(0, warmth.msLeft / warmth.ttlMs)) : 0
132  const fillW = Math.max(isLive ? TRACK_H : 0, Math.round(trackW * fraction))
133  const fillClass = isSoonCold(warmth) ? 'fc' : 'fw'
134
135  // The fill drains to empty over the time that is left, and a ping in flight breathes.
136  // Every motion is off under reduced motion; the band redraws each minute either way.
137  const motion = isLive
138    ? `@media (prefers-reduced-motion: no-preference){${
139        warmth.tone === 'pinging'
140          ? '.pu{animation:pu 1.4s ease-in-out infinite}@keyframes pu{0%,100%{opacity:1}50%{opacity:.4}}'
141          : `.dr{animation:dr ${Math.round(warmth.msLeft)}ms linear both}@keyframes dr{to{width:${TRACK_H}px}}`
142      }}`
143    : ''
144  const fill = isLive
145    ? `<rect class="${fillClass} ${warmth.tone === 'pinging' ? 'pu' : 'dr'}" x="0" y="${trackY}" width="${fillW}" height="${TRACK_H}" rx="${radius}"/>`
146    : ''
147  // The ping's mark: where on the hour keepwarm refills it, while that point is still ahead.
148  const pingX = warmth.pingMsLeft != null && warmth.tone === 'warm' && warmth.pingMsLeft < warmth.msLeft
149    ? Math.round(trackW * Math.min(1, Math.max(0, warmth.pingMsLeft / warmth.ttlMs)))
150    : null
151  const pingMark = pingX == null ? '' : `<rect class="pt" x="${Math.max(0, pingX - 1)}" y="${trackY - 4}" width="2" height="${TRACK_H + 8}" rx="1"/>`
152
153  // One text anchored at its end, so the parts flow in the real font and never collide.
154  const labelText = `<text x="${width}" y="14" text-anchor="end" font-family="${FONT}"${TABULAR}>${label.parts
155    .map(part => `<tspan class="${part.cls}" font-size="${part.size}"${part.weight ? ` font-weight="${part.weight}"` : ''}>${xml(part.text)}</tspan>`)
156    .join('')}</text>`
157  // Cold has nothing left to fill, so it shows only the price.
158  const track = isLive ? `<rect class="k" x="0" y="${trackY}" width="${trackW}" height="${TRACK_H}" rx="${radius}"/>` : ''
159  return svg(width, METER_H, `${track}${fill}${pingMark}${labelText}`, motion)
160}
161
162export const meterAlt = (warmth: Warmth): string => {
163  if (warmth.tone === 'pinging') return 'Prompt cache warm, keepwarm is pinging it now'
164  if (warmth.tone === 'cold') {
165    return warmth.coldPrice ? `Prompt cache cold, the next message re-writes it for about ${warmth.coldPrice}` : 'Prompt cache cold, no price for this model'
166  }
167  const minutes = minutesLeft(warmth.msLeft)
168  const ping = warmth.pingMsLeft != null && warmth.pingMsLeft < warmth.msLeft
169    ? `, keepwarm pings it with ${minutesLeft(warmth.pingMsLeft)} minutes left`
170    : ''
171  return `Prompt cache warm for ${minutes} more minute${minutes === 1 ? '' : 's'}${ping}`
172}
173
174/** The terminal's meter: a row of cells standing for the hour, filled with what is left; none once cold. */
175export const textMeter = (warmth: Warmth, cells: number): { filled: string; empty: string } => {
176  if (warmth.tone === 'cold') return { filled: '', empty: '' }
177  const filledCells = Math.max(1, Math.round(cells * Math.min(1, Math.max(0, warmth.msLeft / warmth.ttlMs))))
178  return { filled: '━'.repeat(filledCells), empty: '─'.repeat(cells - filledCells) }
179}
180
181export const isSoonCold = (warmth: Warmth): boolean => warmth.tone === 'warm' && warmth.msLeft <= SOON_COLD_MS
182
183// ---------------------------------------------------------------------------
184// The held send: what sending now re-writes, beside what a warm turn costs.
185
186export type Hold = {
187  /** How long the cache has been cold, as `2h00m`. */
188  coldFor: string
189  rewriteUsd: number | null
190  warmUsd: number | null
191  /** The context the send re-writes, as `200,502`. */
192  tokens: string
193}
194
195const CARD_TITLE = 'Message held'
196const ROW_LABEL = 11.5
197const ROW_VALUE = 12
198
199export const HOLD_TITLE_H = 22
200
201/** The card's head: the title, and how long the cache has been cold. */
202export const holdTitleSvg = (hold: Hold, width: number): string => {
203  const titleW = textWidth(CARD_TITLE, 15) + 10
204  const subtitle = fitText(`cold for ${hold.coldFor}`, 12, width - titleW)
205  return svg(width, HOLD_TITLE_H, `<text x="0" y="16"><tspan class="tx" font-family="${SERIF}" font-size="15" font-style="italic" font-weight="600">${CARD_TITLE}</tspan><tspan class="m" dx="10" font-family="${FONT}" font-size="12">${xml(subtitle)}</tspan></text>`)
206}
207
208export const holdTitleAlt = (hold: Hold): string => `Message held, the cache has been cold for ${hold.coldFor}`
209
210export const holdBarsHeight = (hold: Hold): number => (hold.rewriteUsd == null ? 20 : hold.warmUsd == null ? 20 : 36)
211
212/** The card's evidence: what sending now re-writes, on one scale with what a warm turn would have cost. */
213export const holdBarsSvg = (hold: Hold, width: number): string => {
214  if (hold.rewriteUsd == null) {
215    return svg(width, holdBarsHeight(hold), textAt(0, 14, 'm', 12, fitText('No price for this model, so the cost is unknown.', 12, width)))
216  }
217  // The re-write fills its track; a warm turn is the sliver it would have cost.
218  const rows: Array<{ label: string; usd: number; fillClass: string; inkClass: string }> = [
219    { label: 'Send now', usd: hold.rewriteUsd, fillClass: 'fc', inkClass: 'ci' },
220    ...(hold.warmUsd == null ? [] : [{ label: 'Warm turn', usd: hold.warmUsd, fillClass: 'fw', inkClass: 'tx' }]),
221  ]
222  const labelW = Math.ceil(Math.max(...rows.map(row => textWidth(row.label, ROW_LABEL)))) + 12
223  const valueW = Math.ceil(Math.max(...rows.map(row => textWidth(fmtUsd(row.usd), ROW_VALUE)))) + 12
224  const trackW = Math.max(40, width - labelW - valueW)
225  const scale = Math.max(...rows.map(row => row.usd), 1e-9)
226  const body = rows
227    .map((row, index) => {
228      const centerY = 10 + index * 16
229      const fillW = Math.max(TRACK_H, Math.round((trackW * row.usd) / scale))
230      return `${textAt(0, centerY + 4, 'm', ROW_LABEL, row.label)}<rect class="k" x="${labelW}" y="${centerY - TRACK_H / 2}" width="${trackW}" height="${TRACK_H}" rx="${TRACK_H / 2}"/><rect class="${row.fillClass}" x="${labelW}" y="${centerY - TRACK_H / 2}" width="${fillW}" height="${TRACK_H}" rx="${TRACK_H / 2}"/>${textAt(width, centerY + 4, row.inkClass, ROW_VALUE, fmtUsd(row.usd), `${TABULAR} text-anchor="end" font-weight="600"`)}`
231    })
232    .join('')
233  return svg(width, holdBarsHeight(hold), body)
234}
235
236export const holdBarsAlt = (hold: Hold): string =>
237  hold.rewriteUsd == null
238    ? `No price for this model; sending re-writes up to ${hold.tokens} tokens.`
239    : `Sending now re-writes up to ${hold.tokens} tokens for about ${fmtUsd(hold.rewriteUsd)}` +
240      (hold.warmUsd == null ? '.' : `; a warm turn would have cost ${fmtUsd(hold.warmUsd)}.`)
241
hooks/status-icons.ts 32 lines
1// Generated by tools/generate-status-icons.py from the official SVG assets.
2export const statusIcons = {
3  "dark": {
4    "warm": {
5      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#faf9f5\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#78b85a\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
6      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAM10lEQVR4nO2caXQUVRbH/687JD1AIOn3qjubSEIgiqNzQMI2iAIJcpRBQBnEcSAugxgPQ3BhCRF1hBBRMrKcM5FVlMMAQjx6HEZIIiCrC4kwyqIEQmii6SUJ6Wwk3X3nAylt0pWVXujo75z60PVevbr3/uvV63erXgG/4VOYrw3oCEKIuxmjRURIAADGkEvElprN5uO+tq29+JUAoaGhvdRqtgh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O5ubuoREjhv8cQEniRyQpdETz7XdMAEkKHSFJ/Ihcb/DgeMretb3ZheBV1nLauGEdxcX1ldsu80W2tEM0ipArO3vnnb+njRvWUW1NpfKq9+ortHHDOrqj/+3OPeIjrVbb37Xt9gmg1Wr7C8E/ksv79etLmZlvUZW1XNGWulorZe/aTgMGDHC2Jddvgu8M5zxBCH5cdmTYsCGUvWt7s72hotxEmZlvUUxMb9lxuxBiR1hYSG+5zbYKwDmPFEL7jhC8QQhOvXrdQq++kkYWc2mLvfHee+9xDvy3jd+X8GuYJGmnCMHPyY6NG3c/HTq4r9lA/PSjgV59JY0iIsLlQNRIEs8ICQkJaU0ASZK6Nz5HtgrBKTw8jFJSZpPBUNTs+b784ghNfOhPzoEvFkLMBNB5VpnExsYGCaGdK0ncLDs6bdpUOnvm22YDc77wLKWkzCadTpLHB3PrAlyrI0mCkpJmtNr+s8/OJEkSTsdq58bGxgb5Ol4ew+kKrWzrFfrVl0ebXqHNCiD3sMOH9rfQwy417WHVcg/zdXy8xrV7tFgvBLd15B6tJMDw4UPbNMZER98qB94mhFjPOXfryke/oum/lNtvi6N1a7Ooukr5G0B1tVba8v5ml/1b3t9MdbVWxWOqqypo3dosuv22uFb/Zf1qae8Hm9qy+cMHm246fvtk2c1Bu3I1ztuN5pp+wwm9Xt9NkniaaEzw6fU6Sk6eRUUXfnAJfNGFHyg5eZbzZyuvSBJP0+v13Xzth98TFhYmcc5XCsGvCsEpKiqSFr+cSpeKz9Ol4vO0+OVUioqKlAN/lXO+MiwsTHm9002GX90P9Xp9jN3esARgj8LVdgJom1rdJa20tNS3y+/bgV8JINP48e5UIiQCAGPIIWLp/vjx7t/wMf8HjK9ER0Ercn4AAAAASUVORK5CYII="
7    },
8    "cold": {
9      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#faf9f5\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#d97757\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
10      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAMwklEQVR4nO1ce3RUxR3+ZjePFZKQ3Zm7G5KIJg1BsbaFBkSKoDFBqohiTSPWA/FRxHCowQePEF8VQkRIBTynkacgRwEh1pZDFUIERVDURKhCQCEISzT7Ssj7sbu//pFcXbI35ME+2Oh3zv1jZ+bO/X6/787Mzm9mLvAL/ArmbwK9gRDi94zRAiKkAABjKCJiiywWyxf+5tZTBJQAWq12kFrNFgDsEQCqDtkEsG2MsWyz2fytP/j1Bh2NuCwRHh7OJYnnqdWqEwCbrtFoVDMzZ6C09HOUln6OmZkzoNFoGEBpRM6jQuhe0+v1Bn/zDnhER0f345zPFYJXC8FJr5coI2Manfz2GLU0119wfXf6W8rKmkUGg56E4CQEr5MknqfT6SL8bUcgQsU5nyoEr2h3Jt0z+S76svQzN8d3vL7+6jBlZEyTRSAhhFmSdI8DCPK3UQEBznkK5/yI7MDx41No3949XTq+47Vv7x4aPz7FRQheJkm6NATYuOcz6HS6UULo9skOGzEiid4p3ErNTXWKDm6uryZzcSGZiwupub5auUxTHb1TuJVGjEhyFeJTIcQ4f9srw+9vg06nG6pSscUAJrX/xowZj2L6Xx9GSEiI+w1EqD/6OWy7tsFeZQYAqCO00N48CeHDbwJU7v8r7HY7Nm/eimXL8lFpMsnJ/3Y6ab7NZjvqJdO6Bb8JwDmPYYy9AFAGAHW/fv3w0IPTMGvWLISHhyne03jqKGzvb0XL92cU84OlgdAm343+141QzG9oaMC69Rvw6quvoqamFgAcAHudiJ6zWq3nPGJYD+FzASRJCnM6nTMZQw6AsODgYKSnp+Gpp56EXpIU72k+V46qXW+jsbysW8/QDEqANvVe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LDpssMvnyy7PNCjWI3rdamxpl/gAoPB0F+SeI5oD/AZDHrKzJxBp8u/cXP86fJvKDNzhutnK89LEs8xGAz9/W1HwCMqKkrinC8XgjcLwSk2NoaefSabzp45RWfPnKJnn8mm2NgY2fHNnPPlUVFRyuedLjMEVH9oMBjiHY7WhQC7D+7cCaDNanVwTmVlpX+P3/cAASWAjPaPd2cTIRUAGMNuIpYbiB/v/gV+xv8Bhtk7GIFOT8EAAAAASUVORK5CYII="
11    },
12    "neutral": {
13      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#faf9f5\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#92928b\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
14      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAMsklEQVR4nO2ceXAUVR7Hv2+GhOEIJP1ez0xCFkw2BFCwCsxBKMQr4MV6Y8S1MLu6iLFYgwdHiNcKIaJk5ajaCIKilCssZMsti9qVoLBCCFESQZCIcoUhu5npmRwTkpBk5rd/kHaHpEMO5shEP1X9x/R7/fr3+3379Zv+vX4N/EJAYYE2oDcIIW5gjJYSIRUAGEMhEVuuKMqhQNvWU4JKgIiIiJF6PVsKsCcB6NoVE8C2M8aybDbbj4Gwrze0d6JPEhYWxmWZ5+r1uhMAm2swGHTPZMxDWdnXKCv7Gs9kzIPBYGAAzSJyfyeE9I7RaDQF2u6gJyoqajDnfJEQvEYITkajTOnpj9PJH49T88ULl21nz/xImZnzyWQykhCchOD1ssxzJUkaFmg/ghEd53yOELyyLZj0wP330jdlX3UIfPvt2NHDlJ7+uCoCCSFssiw9C2B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hD8R9WxO+64nfZ9+UWngfjvfyz06ivZFBUVqQaiQZZ5bnh4eHhXAsiyPLRtHtkpBKfISDNlZs4ni+VMp+crOVhE9937G8/AVwgh5gLoP6tM4uLiBgohLZBlrqiOzp6dRt+XH+00MKdOfk+ZmfPJaJTV8UHpWoBLdWRZUHr64122//TTc0mWhcex0oK4uLiBgY6Xz/C4Quu6e4V+VXKg/RXaqQBqD9u/b88Veti59j3sgtrDAh0fv3HpHi3eFYK39uYerSXAlCmTuzXGxMSMUgPfKoR4l3MemPVJfYH2/1LGjR1DG9bn04X6mk7/pWz5cHOH/Vs+3ExNjU7NYy7U19CG9fk0buyYLv9l/Wzp6QeburMFwweb+hy/fLKsb9CjXI3ndrW5pl/wwGQyDZFlni3aEnwmk5EyMubRmdM/dAj8mdM/UEbGPM/PVtbKMs82mUxDAu1H0GM2m2XO+Woh+EUhOEVHj6CXX8qicxWn6FzFKXr5pSyKjh6hBv4i53y12WzWXu/Uxwiq+6HJZIp1uVqWAewRdLSdAPpYrw/JrqqqOhUI+3pDUAmg0vbx7iwiTAcAxrCLiOUE48e7fyHA/A+cbDv3qiAY4gAAAABJRU5ErkJggg=="
15    }
16  },
17  "light": {
18    "warm": {
19      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#141413\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#397527\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
20      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAMiUlEQVR4nO2ce3AV1R3Hv2fvMzchkpAHj0iLj4gJIIliFaNWCFYZp60a0KFOiFaRTo0GqAgxVq1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X7taE7yAIaxkwqqamFvfmzEZubh4OH/4kIP3w4ZegtGQ5gDO6XdCoqpoquNwiuEwN39TTc88WUUrKmB6PFrjn7h/Rfz6q6XrqyT5N82X1VP5Aa4Cm+bIEl/cZ6Q5/fJDy8uZSYmKCqVyjR4+igoJ8OlFfZ5TdEolo6YBQVTVVCKXKUPbLL45SQUE+JScnmSo7cmQyFRTkU13dsdOG1Li8k3NPWvey++sAzj1pGpd3Gs9Pnqij554totGjR5nKkpSUSHl5c+mzox+f+SiEUjVojN8VTfVmCy5/aCjy30MfUV7e3B5rw9ixl9JzzxZRU+NJQ3m/xuWtPp/vu0aZfXWAoihjOs8W0gSXqa21kcrKVtK4cd85Z22srek6bSkf4lyZFRHjBQsiYpwrswSXjxqK7Xv/PZo5884eDZGaegWVla0kr6fVMIRyasTUOrw3BxBRTOc8skdwmWRvG72+fh2lXT2+x/dlZ0+jPXsquxr+KyHkeUQU3o1roYSIHEJVFgguNxmK7qrYSVOmXNejYSZPvoZeX7+OVJ/HMExTbw4w0nDVSzu2b+m1/D9s2khc9Z7JqyoLiGhgO8MHA2e+UMXd1y90+vTbun+h53IA7Xv/PbrzzjvOUcOu7F7DZKOGRdo+YaOzjX5NcLljIG20mQMOHfx3n/qY5qZvDMN3CFV+TVGUoO587A8X3HE1jU1NKCsrx+bNf4SmBa6IliQJOTn3YOvWbWfdnz07B9u27YCuBwY1bTYb5sy5HwsXLkBiQgKAi8fVBNDftaF94eKBTQPg23Zk2QVJf2M1wYw1XaQLRBStcbnICPD5FDdt+v0GmjRpYoDhJ02aSJt+v6HrsZXtGpeLiCg60noMeog8iUJ41wguc9F5cOvq1WWUnp5G6elptHp1WdeDW7kQ3jVEnsA9Txc5P1RVvUxw72bBZb3ruL/z0gX3bo7ErNa3js7Du7d3Obx7+8XDuy8yIP4Ps2m8hDMsk+cAAAAASUVORK5CYII="
21    },
22    "cold": {
23      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#141413\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#c15f3c\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
24      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAMn0lEQVR4nO2ce3AV1R3Hv2fvM5cEAuQhEFMBGyEBlFhbpakvgtWMrRUjMpSGaFtMp0YDVOQRq1YkgUICdcZiEU3TFAUhHSpm2hKojxEcH6EtWsLLWIgJJCGPe+/u3XM29/76B1kIuZsn90Ein5n9Z/e3u7/z++45u+d3zh7gClfoL0LIN2pcLhdccQquODUulwsh3xhuv4Y8Ho8nUajyy4LLXsFl6rL5NC5vV1X12nD7OeQgco7mXCkUXFYFl8nZdpaKi9dTSvJkSkmeTMXF68nZdlYXQghVfpnc7vhw+z3oISKHxt1PCS63Ci6T6nFR+c5tNH36dIqJGX3RNnXqFHp1y2byKE5dCDfnSiHR2eHhLsegg4gkIdxZnMt1ehNTWfl3uvXWNL/Ad91uueU7VL5z24WmSZUbhao8QUTmcJfLCBZuB7qiqe50YqwIwFQAqKo6iBdWF+DAgQ/7dZ1bbrkZK1csR2rq9I497AgBT1utETsYYxRgtwfMZSOAEMrN8PnWgLFbAaCmpgarC9aioqICRP7xskgMGdeMBABUfNkCzedvwxhDRkYGVixfivHjx+u7P2KStNRiiXg3aIXpB2EXgHNXsgSpgIAfAkBzczM2bXoZf9i8BUIIP3uJAd+5ajiyJsciLsIKADiranjzWBP2nmqDz0Ass9mMuXPnYMmSxYiPiwMAMOCvPviW22xR/w1m+XojbAIoijLOLNFzYMgGYFIUBa++9ke8+OKLcLnchudMixmGBZPjcc1wm+HxWjfHG0ebcKDeaXjc4XDgkYcX4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dmqb52UuShMzM2di+fcdF++fMycSOHeXw+fyTmhaLBfPmzcXixYsQGxMD4MpyNX70d25oX7iyYNMA+LotWXZZ0t9cTSBzTVfoBBEN07icryf4PIqTyv5UQtOmTfUL/LRpU6nsTyWdl61s07icT0R9+63mCt1D5IoVwr1RcJmLjoVbN2woopSUZEpJSaYNG4o6L9zKhXBvJHLFhtvvIYeqqhMEd28VXPZ1/u7v2HyCu7eGY1Tra0fH4t07Oy3evfPK4t1XGBD/B0HDzNOE5wCHAAAAAElFTkSuQmCC"
25    },
26    "neutral": {
27      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\">\n  <title>Cache Tax</title>\n  <g stroke=\"#141413\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path fill=\"#686861\" d=\"M8 18 32 5 56 18 32 31Z\"/>\n    <path d=\"M8 18v28l24 13 24-13V18M32 31v28\"/>\n    <path d=\"m40 32 8 5-8 5\"/>\n  </g>\n</svg>\n",
28      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAABmJLR0QA/wD/AP+gvaeTAAAMhklEQVR4nO2ce3AURR7Hvz2bfbAJEB5JDMRoEBLYPIB43inmfEDwlLLuToxocVaIL8jVGQ1wIo944IkkICQgVR6KPA45PBC4QpG6MwEfV6IFXhCJAQIYhZgAIQF2d2ZnerL7uz/IQMhOnuwjCXyq5p/pnp5f/77TPT2/7mngBjfoKJyLt6uKuJ0rkp0rkl1VxO2ci7cH264ej8vliuWy+DZXRDdXRGp2eFRF3CLL8tBg29njILIPUBSpgCuizBWR7BfrqKhoGSXaRlCibQQVFS0j+8U6TQjOZfFtcjqjgm13t4eIrKrifJkr4gWuiCS7HLR922YaPXo0DRw44KojOTmJ1q5ZTS7JrgnhVBSpgKiuT7Dr0e0gIoFzZ6aiiNVaF1NS8h+65540L8c3P+6661e0fdvmK12TLNZyWXqRiEKCXS89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