From a60804e0b460a3bd5ee32227a2c8f36a493c2fad Mon Sep 17 00:00:00 2001
From: merefield Quota refresh failed. Policy state is based on the last successful
- observation. The longest Codex quota window selects one active model profile. ASK
- creates a per-session review; AUTO applies the profile on the next
- eligible check. No threshold-based model steps were configured at launch. Quota refresh failed. Values below are the last successful observation. Expiry details unavailable. No listed expiry does not mean no expiry. Read-only preview. Use the terminal to redeem a reset. The backend may return only some credits. This list does not establish
- redemption order. Cycle duration or reset date unavailable — position cannot be
- plotted. No quota windows reported yet. All reported windows are shown. API-equivalent learning and quota status
- scoring remain in the terminal for this first preview. Loading / sending… Review expired. Press Enter to review again. No available matching commands. Review expired. Review the option again. Send this saved prompt now? This starts Codex work and consumes quota. In memory only. Closing Codexometer cancels pending work. Managed policy requires approval each time. MODEL / REASONING LEVEL / SPEED MODEL / REASONING LEVEL / SPEED Applied settings remain after Codexometer closes. Approval details unavailable from this observation. Open Codex to
- inspect the request. Session controls temporarily unavailable. Check Codex for current state. Checking session controls… Controls require a supported live request from a connected shared
- app-server session. Local observations alone cannot provide them. Not before this time; when quota and idle allow. The existing trigger remains active until saved or deleted. If
- it changes or sends while you edit, saving is blocked. Type one of these choices exactly. Your answer stays masked. Choose multiple fields and their order. These display preferences do not
- change Codex CLI configuration. Missing values are omitted. View this reply in Codex. If this session has an active goal, Codex may continue it
- automatically. Loading saved sessions… Start a new Codex session and send this message? Loading… Session information unavailable. No background terminals reported. Additional background terminals are not shown. No linked agents observed. Loading… Session unavailable here. Command unavailable from this observation. Open Codex to inspect the
- request. Session connection or refresh unavailable. Context and telemetry may be
- stale. Some quota profile checks are unavailable. Only sessions with freshly
- verified quota and settings can be updated; previous outcome notices remain
- visible. Read only — reply or approve in Codex. This session is no longer in the current observation. Return to sessions. No live sessions match the filter. No locally observed sessions yet. Keep Codex running alongside
- Codexometer. ↑ ↓ SELECT SESSION // ← LESS DETAIL // → MORE DETAIL // ESC BACK Relative usage/credits are not tokens or quota percentages. Groupings
- describe the same usage, not additional consumption. Partial accounting: totals may still change. Percentage of this period's historical allowance, not today's limit. May
- exceed 100%. This is not a manual/automatic reset log. This optional account report is unavailable. Token history remains
- available; missing data does not mean zero usage. No usage reported for this day. Selected breakdown unavailable; missing does not mean zero. History refresh failed. Any displayed history is the last successful
- observation. Token history unavailable; other reports may still be available. LESS ░ ▒ ▓ █ MORE // HOVER FOR DATE AND TOKENS DAYS SECONDS DAYS OPENAI // UTC History unavailable or awaiting a matching account observation. Missing
- history is not treated as zero usage. Account-wide history reported by Codex, not the local Sessions counter. Dates
- use UTC. Allowance history is approximate where indicated; reset causes are
- not provided. Connecting to your local Codexometer… Quota refresh failed. Policy state is based on the last successful
+ observation. The longest Codex quota window selects one active model profile. ASK
+ creates a per-session review; AUTO applies the profile on the next
+ eligible check. No threshold-based model steps were configured at launch. Quota refresh failed. Values below are the last successful observation. Expiry details unavailable. No listed expiry does not mean no expiry. Read-only preview. Use the terminal to redeem a reset. The backend may return only some credits. This list does not establish
+ redemption order. Cycle duration or reset date unavailable — position cannot be
+ plotted. No quota windows reported yet. All reported windows are shown. API-equivalent learning and quota status
+ scoring remain in the terminal for this first preview. Loading / sending… Review expired. Press Enter to review again. No available matching commands. Review expired. Review the option again. Send this saved prompt now? This starts Codex work and consumes quota. In memory only. Closing Codexometer cancels pending work. Managed policy requires approval each time. MODEL / REASONING LEVEL / SPEED MODEL / REASONING LEVEL / SPEED Applied settings remain after Codexometer closes. Approval details unavailable from this observation. Open Codex to
+ inspect the request. Session controls temporarily unavailable. Check Codex for current state. Checking session controls… Controls require a supported live request from a connected shared
+ app-server session. Local observations alone cannot provide them. Not before this time; when quota and idle allow. The existing trigger remains active until saved or deleted. If
+ it changes or sends while you edit, saving is blocked. Type one of these choices exactly. Your answer stays masked. Choose multiple fields and their order. These display preferences do not
+ change Codex CLI configuration. Missing values are omitted. View this reply in Codex. If this session has an active goal, Codex may continue it
+ automatically. Loading saved sessions… Start a new Codex session and send this message? Loading… Session information unavailable. No background terminals reported. Additional background terminals are not shown. No linked agents observed. Loading… Session unavailable here. Command unavailable from this observation. Open Codex to inspect the
+ request. Session connection or refresh unavailable. Context and telemetry may be
+ stale. Some quota profile checks are unavailable. Only sessions with freshly
+ verified quota and settings can be updated; previous outcome notices remain
+ visible. Read only — reply or approve in Codex. This session is no longer in the current observation. Return to sessions. No live sessions match the filter. No locally observed sessions yet. Keep Codex running alongside
+ Codexometer. ↑ ↓ SELECT SESSION // ← LESS DETAIL // → MORE DETAIL // ESC BACK Relative usage/credits are not tokens or quota percentages. Groupings
+ describe the same usage, not additional consumption. Partial accounting: totals may still change. Percentage of this period's historical allowance, not today's limit. May
+ exceed 100%. This is not a manual/automatic reset log. This optional account report is unavailable. Token history remains
+ available; missing data does not mean zero usage. No usage reported for this day. Selected breakdown unavailable; missing does not mean zero. History refresh failed. Any displayed history is the last successful
+ observation. Token history unavailable; other reports may still be available. LESS ░ ▒ ▓ █ MORE // HOVER FOR DATE AND TOKENS DAYS SECONDS DAYS OPENAI // UTC History unavailable or awaiting a matching account observation. Missing
+ history is not treated as zero usage. Account-wide history reported by Codex, not the local Sessions counter. Dates
+ use UTC. Allowance history is approximate where indicated; reset causes are
+ not provided. Connecting to your local Codexometer…0){var E=i&4&&s===0?n:null;if(o){for(v=0;v
`,1),Ba=K(` `),Va=K(` Observed at Period elapsed Consumed Trail segment OBSERVATION DATA
`,1),jo=K(`
TOOL
`,1),as=K(`TITLE
APP
MCP TOOL APPROVAL
MCP SERVER
ARGUMENTS
`,1),us=K(`
`),ps=K(` `),ms=K(`
`),vs=K(`
HUMAN APPROVAL REQUIRED
CURRENT PROFILE
PROPOSED PROFILE
`,1),Os=K(`About browser controls
`),Fs=K(`Grants permission beyond this one action. Check the scope
- carefully.`),Is=K(``),Ls=K(``),Rs=K(``),zs=K(``),Bs=K(`View fixed choices
`),dc=K(``),fc=K(``),pc=K(``),mc=K(``),hc=K(` `),gc=K(` `),_c=K(` STATUS LINE // CODEXOMETER
SAVED // SESSIONS
`,1),Rc=K(`NEW SESSION
`,1),Sl=K(`LATEST GUIDANCE
`,1),Cl=K(`CONTEXT
`,1),wl=K(`
`),El=K(`
`),Dl=K(`
`,1),Ol=K(`
`),kl=K(`
`,1),jl=K(` `,1),Ml=K(`
TOKEN ACTIVITY // 30 SECOND SAMPLES
SESSION TOTALS
`),Iu=K(` LIFETIME TOKENS
PEAK DAY
CURRENT STREAK
LONGEST TURN
LONGEST STREAK
Accessible data table
Date (UTC) Tokens USAGE // ACCOUNT HISTORY
Page not found
`,1);function Vu(e){var t=Bu();xe(2),q(e,t)}var Hu=`CODEXOMETER`,Uu=[`█▀▀ █▀█ █▀▄ █▀▀ ▀▄▀ █▀█ █▀▄▀█ █▀▀ ▀█▀ █▀▀ █▀█`,`█▄▄ █▄█ █▄▀ ██▄ █ █ █▄█ █ ▀ █ ██▄ █ ██▄ █▀▄`].flatMap(e=>[[...e].map(e=>e===`█`||e===`▀`),[...e].map(e=>e===`█`||e===`▄`)]),Wu=Uu[0].length,Gu=Uu.length,Ku=0,qu=[...Hu].map(e=>{let t=e===`M`?5:3,n={start:Ku,width:t};return Ku+=t+1,n}),Ju=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,Yu=`010 101 111 101.110 111 101 110.111 100 100 111.110 101 101 110.111 100 110 111.111 100 110 100.111 100 101 111.101 101 111 101.111 010 010 111.001 001 101 111.101 110 110 101.100 100 100 111.101 111 101 101.101 111 111 101.111 101 101 111.111 101 111 100.111 101 111 001.111 101 110 101.111 100 001 111.111 010 010 010.101 101 101 111.101 101 101 010.101 101 111 101.101 010 010 101.101 101 010 010.111 001 100 111.111 101 101 111.110 010 010 111.111 001 110 111.111 011 001 111.101 101 111 001.111 110 001 111.100 111 101 111.111 001 010 010.111 111 101 111.111 101 111 001`.split(`.`).map(e=>e.split(` `));function Xu(e=Hu,t=-1,n=!1){let r=``;for(let i=0;i0){var E=i&4&&s===0?n:null;if(o){for(v=0;v
`,1),Ba=q(` `),Va=q(` Observed at Period elapsed Consumed Trail segment OBSERVATION DATA
`,1),jo=q(`
TOOL
`,1),as=q(`TITLE
APP
MCP TOOL APPROVAL
MCP SERVER
ARGUMENTS
`,1),us=q(`
`),ps=q(` `),ms=q(`
`),vs=q(`
HUMAN APPROVAL REQUIRED
CURRENT PROFILE
PROPOSED PROFILE
`,1),Os=q(`About browser controls
`),Fs=q(`Grants permission beyond this one action. Check the scope
+ carefully.`),Is=q(``),Ls=q(``),Rs=q(``),zs=q(``),Bs=q(`View fixed choices
`),dc=q(``),fc=q(``),pc=q(``),mc=q(``),hc=q(` `),gc=q(` `),_c=q(` STATUS LINE // CODEXOMETER
SAVED // SESSIONS
`,1),Rc=q(`NEW SESSION
`,1),Sl=q(`LATEST GUIDANCE
`,1),Cl=q(`CONTEXT
`,1),wl=q(`
`),El=q(`
`),Dl=q(`
`,1),Ol=q(`
`),kl=q(`
`,1),jl=q(` `,1),Ml=q(`
TOKEN ACTIVITY // 30 SECOND SAMPLES
SESSION TOTALS
`),Iu=q(` LIFETIME TOKENS
PEAK DAY
CURRENT STREAK
LONGEST TURN
LONGEST STREAK
Accessible data table
Date (UTC) Tokens USAGE // ACCOUNT HISTORY
Page not found
`,1);function Vu(e){var t=Bu();be(2),J(e,t)}var Hu=`CODEXOMETER`,Uu=[`█▀▀ █▀█ █▀▄ █▀▀ ▀▄▀ █▀█ █▀▄▀█ █▀▀ ▀█▀ █▀▀ █▀█`,`█▄▄ █▄█ █▄▀ ██▄ █ █ █▄█ █ ▀ █ ██▄ █ ██▄ █▀▄`].flatMap(e=>[[...e].map(e=>e===`█`||e===`▀`),[...e].map(e=>e===`█`||e===`▄`)]),Wu=Uu[0].length,Gu=Uu.length,Ku=0,qu=[...Hu].map(e=>{let t=e===`M`?5:3,n={start:Ku,width:t};return Ku+=t+1,n}),Ju=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,Yu=`010 101 111 101.110 111 101 110.111 100 100 111.110 101 101 110.111 100 110 111.111 100 110 100.111 100 101 111.101 101 111 101.111 010 010 111.001 001 101 111.101 110 110 101.100 100 100 111.101 111 101 101.101 111 111 101.111 101 101 111.111 101 111 100.111 101 111 001.111 101 110 101.111 100 001 111.111 010 010 010.101 101 101 111.101 101 101 010.101 101 111 101.101 010 010 101.101 101 010 010.111 001 100 111.111 101 101 111.110 010 010 111.111 001 110 111.111 011 001 111.101 101 111 001.111 110 001 111.100 111 101 111.111 001 010 010.111 111 101 111.111 101 111 001`.split(`.`).map(e=>e.split(` `));function Xu(e=Hu,t=-1,n=!1){let r=``;for(let i=0;i
Cycle duration or reset date unavailable — position cannot be plotted.
`),ao=q(`
`),uo=q(`
No quota windows reported yet.
`),po=q(` `,1),mo=q(`
All reported windows are shown. API-equivalent learning and quota status scoring remain in the terminal for this first preview.
`,1),ho=q(` `,1);function go(e,t){He(t,!0);let n=Gi(t,`params`,19,()=>({})),r=I(()=>ta.filter(e=>e!==`thresholds`||!!$.data?.thresholds?.length)),i=R(Jt(Date.now())),a=I(()=>G(r).includes(na(n().view))?na(n().view):`bars`);Ki(()=>{let e=setInterval(()=>z(i,Date.now(),!0),1e3);return()=>clearInterval(e)});function o(e){return!e.duration||e.duration<=0||!e.reset?null:Math.max(0,Math.min(100,100*(1-(e.reset*1e3-G(i))/(e.duration*6e4))))}_n(()=>{oa.view=G(a),(n().view===`zone`||n().view===`consumption-pace`)&&Qi(`/quota/pace`)});function s(e){let t=e/100*Math.PI*2;return`M60 60 L60 14 A46 46 0 ${+(e>50)} 1 ${60+46*Math.sin(t)} ${60-46*Math.cos(t)} Z`}var c=ho(),l=V(c);Z(l,21,()=>G(r),qr,(e,t)=>{var n=Ga();let r;var i=H(n,!0);W(e=>{Q(n,`href`,`#/quota/`+G(t)),Q(n,`aria-current`,G(a)===G(t)?`page`:void 0),r=li(n,1,``,null,r,{active:G(a)===G(t)}),Y(i,e)},[()=>G(t)===`fuel`?`FUEL TANK`:G(t).toUpperCase()]),J(e,n)}),F(l);var u=U(l,2),d=e=>{var t=mo(),n=V(t),r=e=>{J(e,Ka())};X(n,e=>{$.data.quotaError&&e(r)});var i=U(n,2),c=e=>{var t=qa(),n=H(t);W(()=>Y(n,`Last usage accounting issue: - ${$.data.usageDiagnostic??``}`)),J(e,t)};X(i,e=>{$.data.usageDiagnostic&&e(c)});var l=U(i,2),u=H(l),d=U(l,2),f=e=>{Pa(e,{})},p=e=>{var t=Xa(),n=B(t),r=H(n),i=U(n,4),a=e=>{J(e,Ja())};X(i,e=>{$.data.credits.length||e(a)}),Z(U(i,2),17,()=>$.data.credits,qr,(e,t)=>{var n=Ya(),r=B(n),i=H(r),a=H(U(r,2),!0);F(n),W(e=>{Y(i,`${(G(t).title||`Quota reset`)??``} // ${G(t).status??``}`),Y(a,e)},[()=>G(t).expiryKnown?G(t).expires?`EXPIRES `+ha(G(t).expires):`Does not expire`:`Expiry information unavailable`]),J(e,n)}),be(2),F(t),W(()=>Y(r,`RESET INVENTORY // ${$.data.creditCount??``} AVAILABLE`)),J(e,t)},m=e=>{var t=po(),n=V(t);let r;Z(n,21,()=>$.data.meters,qr,(e,t)=>{let n=I(()=>o(G(t))),r=I(()=>G(n)===null?null:Math.round(G(n)));var i=uo(),c=B(i),l=H(c,!0),u=U(c,2);let d;var f=B(u),p=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`FREE ${100-G(t).used}%`),Y(a,`USED ${G(t).used??``}%`)}),J(e,n)},m=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`USED ${G(t).used??``}%`),Y(a,`FREE ${100-G(t).used}%`)}),J(e,n)};X(f,e=>{G(a)===`fuel`?e(p):e(m,-1)}),F(u);var h=U(u,2);let g;var _=B(h),v=e=>{var i=ro(),a=B(i),o=B(a),c=U(B(o)),l=e=>{J(e,Qa())},u=e=>{var n=$a();W(e=>Q(n,`d`,e),[()=>s(G(t).used)]),J(e,n)};X(c,e=>{G(t).used>=100?e(l):G(t).used>0&&e(u,1)});var d=U(c),f=e=>{var t=to(),r=U(V(t)),i=e=>{var t=eo();W(()=>Q(t,`stroke-dasharray`,`${G(n)} 100`)),J(e,t)};X(r,e=>{G(n)>0&&e(i)}),J(e,t)};X(d,e=>{G(n)!==null&&e(f)}),F(o),F(a);var p=U(a,2),m=B(p),h=H(m),g=U(m,2),_=e=>{var t=no(),n=H(t);W(()=>Y(n,`RING // ${G(r)??``}% ELAPSED`)),J(e,t)};X(g,e=>{G(r)!==null&&e(_)}),F(p),F(i),W(()=>{Q(o,`aria-label`,`${G(t).used}% quota used; ${G(r)===null?`reset cycle unavailable`:`${G(r)}% of reset cycle elapsed`}`),Y(h,`PIE // ${G(t).used??``}% USED`)}),J(e,i)},y=e=>{var r=Pr(),i=V(r),a=e=>{{let r=I(()=>G(t).trail||[]);Wa(e,{get used(){return G(t).used},get elapsed(){return G(n)},get trail(){return G(r)},get plot(){return G(t).plot}})}},o=e=>{J(e,io())};X(i,e=>{G(n)===null?e(o,-1):e(a)}),J(e,r)},b=e=>{var r=so(),i=V(r),o=B(i);let s;F(i);var c=U(i,2),l=e=>{J(e,ao())};X(c,e=>{G(a)===`fuel`&&e(l)});var u=U(c,2),d=e=>{var t=oo(),r=V(t),i=H(r),o=U(r,2),s=B(o);let c;F(o),W(e=>{Y(i,`RESET CYCLE // ${e??``}% ELAPSED`),c=di(s,``,c,{width:`${G(a)===`fuel`?100-G(n):G(n)}%`})},[()=>Math.floor(G(n))]),J(e,t)};X(u,e=>{G(n)!==null&&e(d)}),W(()=>{Q(i,`aria-label`,G(a)===`fuel`?`Fuel remaining`:`Quota used`),Q(i,`aria-valuenow`,G(a)===`fuel`?100-G(t).used:G(t).used),s=di(o,``,s,{width:`${G(a)===`fuel`?100-G(t).used:G(t).used}%`})}),J(e,r)};X(_,e=>{G(a)===`pie`?e(v):G(a)===`pace`?e(y,1):e(b,-1)}),F(h);var x=U(h,2),S=B(x),C=e=>{var t=Pr(),n=V(t),i=e=>{J(e,Nr(`RESET CYCLE UNAVAILABLE ·`))},a=e=>{var t=co(),n=H(t);W(()=>Y(n,`RING ${G(r)??``}% ELAPSED ·`)),J(e,t)};X(n,e=>{G(r)===null?e(i):e(a,-1)}),J(e,t)};X(S,e=>{G(a)===`pie`&&e(C)});var w=U(S);F(x);var T=U(x,2),E=e=>{var n=lo(),r=H(n,!0);W(()=>Y(r,G(t).details)),J(e,n)};X(T,e=>{G(t).details&&e(E)}),F(i),W(e=>{Y(l,G(t).name),d=li(u,1,`spread`,null,d,{"pie-stats":G(a)===`pie`}),g=li(h,1,`meter-graphic`,null,g,{"bar-graphic":G(a)===`bars`||G(a)===`fuel`}),Y(w,` RESETS // ${e??``}`)},[()=>ha(G(t).reset)]),J(e,i)}),F(n);var i=U(n,2),c=e=>{J(e,fo())};X(i,e=>{$.data.meters.length||e(c)}),W(()=>r=li(n,1,`quota-grid`,null,r,{radial:G(a)===`pie`,zone:G(a)===`pace`})),J(e,t)};X(d,e=>{G(a)===`thresholds`?e(f):G(a)===`resets`?e(p,1):e(m,-1)}),be(2),W(e=>Y(u,`QUOTA // OBSERVED ${e??``}`),[()=>ha($.data.quotaAt)]),J(e,t)};X(u,e=>{$.data&&e(d)}),J(e,c),Ue()}var _o=q(``),vo=q(``,1);function yo(e,t){He(t,!0);let n=Gi(t,`values`,19,()=>[]),r=Gi(t,`label`,3,`Token activity`),i=Gi(t,`capacity`,3,0),a=I(()=>Math.max(0,...n())),o=I(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=V(s),l=H(c),u=U(c,2);Z(u,21,()=>G(o),qr,(e,t)=>{var n=_o();let r;W((e,t)=>{Q(n,`title`,e),r=di(n,``,r,{height:t})},[()=>G(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*G(t)/Math.max(1,G(a))}%`]),J(e,n)}),F(u),W((e,t)=>{Y(l,`SCALE // 0 — ${e??``} TOKENS`),Q(u,`aria-label`,t)},[()=>G(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${G(a).toLocaleString(`en-GB`)} tokens.`]),J(e,s),Ue()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`Open Codexometer’s usage history. Existing quota and reset views remain available.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=q(` `),To=q(``),Eo=q(`
`),Do=q(`
`),Oo=q(``),ko=q(`
`),Ao=q(`
`),Mo=q(`
Loading / sending…
`),No=q(``),Po=q(``),Fo=q(`
Review expired. Press Enter to review again.
`),zo=q(``,1),Bo=q(`
`,1),Vo=q(`
No available matching commands.
`),Ho=q(` `,1),Uo=q(``),Wo=q(`
Review expired. Review the option again.
`),Go=q(``),Ko=q(``),qo=q(``),Jo=q(``),Yo=q(``),Xo=q(``),Zo=q(``,1);function yo(e,t){He(t,!0);let n=Gi(t,`values`,19,()=>[]),r=Gi(t,`label`,3,`Token activity`),i=Gi(t,`capacity`,3,0),a=I(()=>Math.max(0,...n())),o=I(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=V(s),l=H(c),u=U(c,2);Z(u,21,()=>G(o),qr,(e,t)=>{var n=_o();let r;W((e,t)=>{Q(n,`title`,e),r=di(n,``,r,{height:t})},[()=>G(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*G(t)/Math.max(1,G(a))}%`]),J(e,n)}),F(u),W((e,t)=>{Y(l,`SCALE // 0 — ${e??``} TOKENS`),Q(u,`aria-label`,t)},[()=>G(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${G(a).toLocaleString(`en-GB`)} tokens.`]),J(e,s),Ue()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`Open Codexometer’s usage history. Existing quota and reset views remain available.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=q(` `),To=q(``),Eo=q(`
`),Do=q(`
`),Oo=q(``),ko=q(`
`),Ao=q(`
`),Mo=q(`
Loading / sending…
`),No=q(``),Po=q(``),Fo=q(`
Review expired. Press Enter to review again.
`),zo=q(``,1),Bo=q(`
`,1),Vo=q(`
No available matching commands.
`),Ho=q(` `,1),Uo=q(``),Wo=q(`
Review expired. Review the option again.
`),Go=q(``),Ko=q(``),qo=q(``),Jo=q(``),Yo=q(``),Xo=q(``),Zo=q(`Cycle duration or reset date unavailable — position cannot be plotted.
`),ao=q(`
`),uo=q(`
No quota windows reported yet.
`),po=q(` `,1),mo=q(`
All reported windows are shown. API-equivalent learning and quota status scoring remain in the terminal for this first preview.
`,1),ho=q(` `,1);function go(e,t){He(t,!0);let n=Gi(t,`params`,19,()=>({})),r=I(()=>ta.filter(e=>e!==`thresholds`||!!$.data?.thresholds?.length)),i=R(Jt(Date.now())),a=I(()=>G(r).includes(na(n().view))?na(n().view):`bars`);Ki(()=>{let e=setInterval(()=>z(i,Date.now(),!0),1e3);return()=>clearInterval(e)});function o(e){return!e.duration||e.duration<=0||!e.reset?null:Math.max(0,Math.min(100,100*(1-(e.reset*1e3-G(i))/(e.duration*6e4))))}_n(()=>{oa.view=G(a),(n().view===`zone`||n().view===`consumption-pace`)&&Qi(`/quota/pace`)});function s(e){let t=e/100*Math.PI*2;return`M60 60 L60 14 A46 46 0 ${+(e>50)} 1 ${60+46*Math.sin(t)} ${60-46*Math.cos(t)} Z`}var c=ho(),l=V(c);Z(l,21,()=>G(r),qr,(e,t)=>{var n=Ga();let r;var i=H(n,!0);W(e=>{Q(n,`href`,`#/quota/`+G(t)),Q(n,`aria-current`,G(a)===G(t)?`page`:void 0),r=li(n,1,``,null,r,{active:G(a)===G(t)}),Y(i,e)},[()=>G(t)===`fuel`?`FUEL TANK`:G(t).toUpperCase()]),J(e,n)}),F(l);var u=U(l,2),d=e=>{var t=mo(),n=V(t),r=e=>{J(e,Ka())};X(n,e=>{$.data.quotaError&&e(r)});var i=U(n,2),c=e=>{var t=qa(),n=H(t);W(()=>Y(n,`Last usage accounting issue: - ${$.data.usageDiagnostic??``}`)),J(e,t)};X(i,e=>{$.data.usageDiagnostic&&e(c)});var l=U(i,2),u=H(l),d=U(l,2),f=e=>{Pa(e,{})},p=e=>{var t=Xa(),n=B(t),r=H(n),i=U(n,4),a=e=>{J(e,Ja())};X(i,e=>{$.data.credits.length||e(a)}),Z(U(i,2),17,()=>$.data.credits,qr,(e,t)=>{var n=Ya(),r=B(n),i=H(r),a=H(U(r,2),!0);F(n),W(e=>{Y(i,`${(G(t).title||`Quota reset`)??``} // ${G(t).status??``}`),Y(a,e)},[()=>G(t).expiryKnown?G(t).expires?`EXPIRES `+ha(G(t).expires):`Does not expire`:`Expiry information unavailable`]),J(e,n)}),be(2),F(t),W(()=>Y(r,`RESET INVENTORY // ${$.data.creditCount??``} AVAILABLE`)),J(e,t)},m=e=>{var t=po(),n=V(t);let r;Z(n,21,()=>$.data.meters,qr,(e,t)=>{let n=I(()=>o(G(t))),r=I(()=>G(n)===null?null:Math.round(G(n)));var i=uo(),c=B(i),l=H(c,!0),u=U(c,2);let d;var f=B(u),p=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`FREE ${100-G(t).used}%`),Y(a,`USED ${G(t).used??``}%`)}),J(e,n)},m=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`USED ${G(t).used??``}%`),Y(a,`FREE ${100-G(t).used}%`)}),J(e,n)};X(f,e=>{G(a)===`fuel`?e(p):e(m,-1)}),F(u);var h=U(u,2);let g;var _=B(h),v=e=>{var i=ro(),a=B(i),o=B(a),c=U(B(o)),l=e=>{J(e,Qa())},u=e=>{var n=$a();W(e=>Q(n,`d`,e),[()=>s(G(t).used)]),J(e,n)};X(c,e=>{G(t).used>=100?e(l):G(t).used>0&&e(u,1)});var d=U(c),f=e=>{var t=to(),r=U(V(t)),i=e=>{var t=eo();W(()=>Q(t,`stroke-dasharray`,`${G(n)} 100`)),J(e,t)};X(r,e=>{G(n)>0&&e(i)}),J(e,t)};X(d,e=>{G(n)!==null&&e(f)}),F(o),F(a);var p=U(a,2),m=B(p),h=H(m),g=U(m,2),_=e=>{var t=no(),n=H(t);W(()=>Y(n,`RING // ${G(r)??``}% ELAPSED`)),J(e,t)};X(g,e=>{G(r)!==null&&e(_)}),F(p),F(i),W(()=>{Q(o,`aria-label`,`${G(t).used}% quota used; ${G(r)===null?`reset cycle unavailable`:`${G(r)}% of reset cycle elapsed`}`),Y(h,`PIE // ${G(t).used??``}% USED`)}),J(e,i)},y=e=>{var r=Pr(),i=V(r),a=e=>{{let r=I(()=>G(t).trail||[]);Wa(e,{get used(){return G(t).used},get elapsed(){return G(n)},get trail(){return G(r)},get plot(){return G(t).plot}})}},o=e=>{J(e,io())};X(i,e=>{G(n)===null?e(o,-1):e(a)}),J(e,r)},b=e=>{var r=so(),i=V(r),o=B(i);let s;F(i);var c=U(i,2),l=e=>{J(e,ao())};X(c,e=>{G(a)===`fuel`&&e(l)});var u=U(c,2),d=e=>{var t=oo(),r=V(t),i=H(r),o=U(r,2),s=B(o);let c;F(o),W(e=>{Y(i,`RESET CYCLE // ${e??``}% ELAPSED`),c=di(s,``,c,{width:`${G(a)===`fuel`?100-G(n):G(n)}%`})},[()=>Math.floor(G(n))]),J(e,t)};X(u,e=>{G(n)!==null&&e(d)}),W(()=>{Q(i,`aria-label`,G(a)===`fuel`?`Fuel remaining`:`Quota used`),Q(i,`aria-valuenow`,G(a)===`fuel`?100-G(t).used:G(t).used),s=di(o,``,s,{width:`${G(a)===`fuel`?100-G(t).used:G(t).used}%`})}),J(e,r)};X(_,e=>{G(a)===`pie`?e(v):G(a)===`pace`?e(y,1):e(b,-1)}),F(h);var x=U(h,2),S=B(x),C=e=>{var t=Pr(),n=V(t),i=e=>{J(e,Nr(`RESET CYCLE UNAVAILABLE ·`))},a=e=>{var t=co(),n=H(t);W(()=>Y(n,`RING ${G(r)??``}% ELAPSED ·`)),J(e,t)};X(n,e=>{G(r)===null?e(i):e(a,-1)}),J(e,t)};X(S,e=>{G(a)===`pie`&&e(C)});var w=U(S);F(x);var T=U(x,2),E=e=>{var n=lo(),r=H(n,!0);W(()=>Y(r,G(t).details)),J(e,n)};X(T,e=>{G(t).details&&e(E)}),F(i),W(e=>{Y(l,G(t).name),d=li(u,1,`spread`,null,d,{"pie-stats":G(a)===`pie`}),g=li(h,1,`meter-graphic`,null,g,{"bar-graphic":G(a)===`bars`||G(a)===`fuel`}),Y(w,` RESETS // ${e??``}`)},[()=>ha(G(t).reset)]),J(e,i)}),F(n);var i=U(n,2),c=e=>{J(e,fo())};X(i,e=>{$.data.meters.length||e(c)}),W(()=>r=li(n,1,`quota-grid`,null,r,{radial:G(a)===`pie`,zone:G(a)===`pace`})),J(e,t)};X(d,e=>{G(a)===`thresholds`?e(f):G(a)===`resets`?e(p,1):e(m,-1)}),be(2),W(e=>Y(u,`QUOTA // OBSERVED ${e??``}`),[()=>ha($.data.quotaAt)]),J(e,t)};X(u,e=>{$.data&&e(d)}),J(e,c),Ue()}var _o=q(``),vo=q(``,1);function yo(e,t){He(t,!0);let n=Gi(t,`values`,19,()=>[]),r=Gi(t,`label`,3,`Token activity`),i=Gi(t,`capacity`,3,0),a=I(()=>Math.max(0,...n())),o=I(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=V(s),l=H(c),u=U(c,2);Z(u,21,()=>G(o),qr,(e,t)=>{var n=_o();let r;W((e,t)=>{Q(n,`title`,e),r=di(n,``,r,{height:t})},[()=>G(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*G(t)/Math.max(1,G(a))}%`]),J(e,n)}),F(u),W((e,t)=>{Y(l,`SCALE // 0 — ${e??``} TOKENS`),Q(u,`aria-label`,t)},[()=>G(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${G(a).toLocaleString(`en-GB`)} tokens.`]),J(e,s),Ue()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`Open Codexometer’s usage history. Existing quota and reset views remain available.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=q(` `),To=q(``),Eo=q(`
`),Do=q(`
`),Oo=q(``),ko=q(`
`),Ao=q(`
`),Mo=q(`
Loading / sending…
`),No=q(``),Po=q(``),Fo=q(`
Review expired. Press Enter to review again.
`),zo=q(``,1),Bo=q(`
`,1),Vo=q(`
No available matching commands.
`),Ho=q(` `,1),Uo=q(``),Wo=q(`
Review expired. Review the option again.
`),Go=q(``),Ko=q(``),qo=q(``),Jo=q(``),Yo=q(``),Xo=q(``),Zo=q(``,1);function yo(e,t){He(t,!0);let n=Gi(t,`values`,19,()=>[]),r=Gi(t,`label`,3,`Token activity`),i=Gi(t,`capacity`,3,0),a=I(()=>Math.max(0,...n())),o=I(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=V(s),l=H(c),u=U(c,2);Z(u,21,()=>G(o),qr,(e,t)=>{var n=_o();let r;W((e,t)=>{Q(n,`title`,e),r=di(n,``,r,{height:t})},[()=>G(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*G(t)/Math.max(1,G(a))}%`]),J(e,n)}),F(u),W((e,t)=>{Y(l,`SCALE // 0 — ${e??``} TOKENS`),Q(u,`aria-label`,t)},[()=>G(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${G(a).toLocaleString(`en-GB`)} tokens.`]),J(e,s),Ue()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`Open Codexometer’s usage history. Existing quota and reset views remain available.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=q(` `),To=q(``),Eo=q(`
`),Do=q(`
`),Oo=q(``),ko=q(`
`),Ao=q(`
`),Mo=q(`
Loading / sending…
`),No=q(``),Po=q(``),Fo=q(`
Review expired. Press Enter to review again.
`),zo=q(``,1),Bo=q(`
`,1),Vo=q(`
No available matching commands.
`),Ho=q(` `,1),Uo=q(``),Wo=q(`
Review expired. Review the option again.
`),Go=q(``),Ko=q(``),qo=q(``),Jo=q(``),Yo=q(``),Xo=q(``),Zo=q(`Quota refresh failed. Policy state is based on the last successful - observation.
`),ja=q(`
The longest Codex quota window selects one active model profile. ASK - creates a per-session review; AUTO applies the profile on the next - eligible check.
No threshold-based model steps were configured at launch.
`);function Pa(e,t){He(t,!1),zi();var n=Pr(),r=V(n),i=e=>{var t=Ma(),n=V(t),r=H(n),i=U(n,2),a=e=>{J(e,Aa())};X(i,e=>{$.data.quotaError&&e(a)});var o=U(i,2),s=B(o),c=H(s),l=U(s,4);Z(l,5,()=>$.data.thresholds,qr,(e,t)=>{var n=ja();let r;var i=B(n),a=H(i),o=U(i,2),s=B(o),c=H(s,!0),l=H(U(s,2));F(o);var u=U(o,2),d=H(u,!0),f=H(U(u,2));F(n),W((e,i)=>{r=li(n,1,``,null,r,{active:G(t).state===`ACTIVE`,next:G(t).state===`NEXT`}),Y(a,`${G(t).threshold??``}%`),Y(c,G(t).model),Y(l,`${e??``} REASONING // ${i??``} - SPEED`),Y(d,G(t).mode),Y(f,`${G(t).state??``}${G(t).state===`NEXT`?` // ${G(t).remaining||0} PP TO GO`:``}`)},[()=>G(t).effort.toUpperCase(),()=>G(t).speed.toUpperCase()]),J(e,n)}),F(l),F(o),W(e=>{Y(r,`MODEL STEP POLICY // OBSERVED ${e??``}`),Y(c,`THRESHOLDS // ${$.data.thresholds.length??``} CONFIGURED`)},[()=>ha($.data.quotaAt)]),J(e,t)},a=e=>{J(e,Na())};X(r,e=>{$.data?.thresholds?.length?e(i):e(a,-1)}),J(e,n),Ue()}var Fa=Mr(`| Observed at | Period elapsed | Consumed | Trail segment |
|---|
Quota refresh failed. Values below are the last successful observation.
`),qa=q(``),Ja=q(`
Expiry details unavailable. No listed expiry does not mean no expiry.
`),Ya=q(`
Read-only preview. Use the terminal to redeem a reset.
The backend may return only some credits. This list does not establish - redemption order.
Cycle duration or reset date unavailable — position cannot be - plotted.
`),ao=q(`
`),uo=q(`
No quota windows reported yet.
`),po=q(` `,1),mo=q(`
All reported windows are shown. API-equivalent learning and quota status - scoring remain in the terminal for this first preview.
`,1),ho=q(` `,1);function go(e,t){He(t,!0);let n=Gi(t,`params`,19,()=>({})),r=I(()=>ta.filter(e=>e!==`thresholds`||!!$.data?.thresholds?.length)),i=R(Jt(Date.now())),a=I(()=>G(r).includes(na(n().view))?na(n().view):`bars`);Ki(()=>{let e=setInterval(()=>z(i,Date.now(),!0),1e3);return()=>clearInterval(e)});function o(e){return!e.duration||e.duration<=0||!e.reset?null:Math.max(0,Math.min(100,100*(1-(e.reset*1e3-G(i))/(e.duration*6e4))))}_n(()=>{oa.view=G(a),(n().view===`zone`||n().view===`consumption-pace`)&&Qi(`/quota/pace`)});function s(e){let t=e/100*Math.PI*2;return`M60 60 L60 14 A46 46 0 ${+(e>50)} 1 ${60+46*Math.sin(t)} ${60-46*Math.cos(t)} Z`}var c=ho(),l=V(c);Z(l,21,()=>G(r),qr,(e,t)=>{var n=Ga();let r;var i=H(n,!0);W(e=>{Q(n,`href`,`#/quota/`+G(t)),Q(n,`aria-current`,G(a)===G(t)?`page`:void 0),r=li(n,1,``,null,r,{active:G(a)===G(t)}),Y(i,e)},[()=>G(t)===`fuel`?`FUEL TANK`:G(t).toUpperCase()]),J(e,n)}),F(l);var u=U(l,2),d=e=>{var t=mo(),n=V(t),r=e=>{J(e,Ka())};X(n,e=>{$.data.quotaError&&e(r)});var i=U(n,2),c=e=>{var t=qa(),n=H(t);W(()=>Y(n,`Last usage accounting issue: - ${$.data.usageDiagnostic??``}`)),J(e,t)};X(i,e=>{$.data.usageDiagnostic&&e(c)});var l=U(i,2),u=H(l),d=U(l,2),f=e=>{Pa(e,{})},p=e=>{var t=Xa(),n=B(t),r=H(n),i=U(n,4),a=e=>{J(e,Ja())};X(i,e=>{$.data.credits.length||e(a)}),Z(U(i,2),17,()=>$.data.credits,qr,(e,t)=>{var n=Ya(),r=B(n),i=H(r),a=H(U(r,2),!0);F(n),W(e=>{Y(i,`${(G(t).title||`Quota reset`)??``} // ${G(t).status??``}`),Y(a,e)},[()=>G(t).expiryKnown?G(t).expires?`EXPIRES `+ha(G(t).expires):`Does not expire`:`Expiry information unavailable`]),J(e,n)}),be(2),F(t),W(()=>Y(r,`RESET INVENTORY // ${$.data.creditCount??``} AVAILABLE`)),J(e,t)},m=e=>{var t=po(),n=V(t);let r;Z(n,21,()=>$.data.meters,qr,(e,t)=>{let n=I(()=>o(G(t))),r=I(()=>G(n)===null?null:Math.round(G(n)));var i=uo(),c=B(i),l=H(c,!0),u=U(c,2);let d;var f=B(u),p=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`FREE ${100-G(t).used}%`),Y(a,`USED ${G(t).used??``}%`)}),J(e,n)},m=e=>{var n=Za(),r=V(n),i=H(r),a=H(U(r));W(()=>{Y(i,`USED ${G(t).used??``}%`),Y(a,`FREE ${100-G(t).used}%`)}),J(e,n)};X(f,e=>{G(a)===`fuel`?e(p):e(m,-1)}),F(u);var h=U(u,2);let g;var _=B(h),v=e=>{var i=ro(),a=B(i),o=B(a),c=U(B(o)),l=e=>{J(e,Qa())},u=e=>{var n=$a();W(e=>Q(n,`d`,e),[()=>s(G(t).used)]),J(e,n)};X(c,e=>{G(t).used>=100?e(l):G(t).used>0&&e(u,1)});var d=U(c),f=e=>{var t=to(),r=U(V(t)),i=e=>{var t=eo();W(()=>Q(t,`stroke-dasharray`,`${G(n)} 100`)),J(e,t)};X(r,e=>{G(n)>0&&e(i)}),J(e,t)};X(d,e=>{G(n)!==null&&e(f)}),F(o),F(a);var p=U(a,2),m=B(p),h=H(m),g=U(m,2),_=e=>{var t=no(),n=H(t);W(()=>Y(n,`RING // ${G(r)??``}% ELAPSED`)),J(e,t)};X(g,e=>{G(r)!==null&&e(_)}),F(p),F(i),W(()=>{Q(o,`aria-label`,`${G(t).used}% quota used; ${G(r)===null?`reset cycle unavailable`:`${G(r)}% of reset cycle elapsed`}`),Y(h,`PIE // ${G(t).used??``}% USED`)}),J(e,i)},y=e=>{var r=Pr(),i=V(r),a=e=>{{let r=I(()=>G(t).trail||[]);Wa(e,{get used(){return G(t).used},get elapsed(){return G(n)},get trail(){return G(r)},get plot(){return G(t).plot}})}},o=e=>{J(e,io())};X(i,e=>{G(n)===null?e(o,-1):e(a)}),J(e,r)},b=e=>{var r=so(),i=V(r),o=B(i);let s;F(i);var c=U(i,2),l=e=>{J(e,ao())};X(c,e=>{G(a)===`fuel`&&e(l)});var u=U(c,2),d=e=>{var t=oo(),r=V(t),i=H(r),o=U(r,2),s=B(o);let c;F(o),W(e=>{Y(i,`RESET CYCLE // ${e??``}% ELAPSED`),c=di(s,``,c,{width:`${G(a)===`fuel`?100-G(n):G(n)}%`})},[()=>Math.floor(G(n))]),J(e,t)};X(u,e=>{G(n)!==null&&e(d)}),W(()=>{Q(i,`aria-label`,G(a)===`fuel`?`Fuel remaining`:`Quota used`),Q(i,`aria-valuenow`,G(a)===`fuel`?100-G(t).used:G(t).used),s=di(o,``,s,{width:`${G(a)===`fuel`?100-G(t).used:G(t).used}%`})}),J(e,r)};X(_,e=>{G(a)===`pie`?e(v):G(a)===`pace`?e(y,1):e(b,-1)}),F(h);var x=U(h,2),S=B(x),C=e=>{var t=Pr(),n=V(t),i=e=>{J(e,Nr(`RESET CYCLE UNAVAILABLE ·`))},a=e=>{var t=co(),n=H(t);W(()=>Y(n,`RING ${G(r)??``}% ELAPSED ·`)),J(e,t)};X(n,e=>{G(r)===null?e(i):e(a,-1)}),J(e,t)};X(S,e=>{G(a)===`pie`&&e(C)});var w=U(S);F(x);var T=U(x,2),E=e=>{var n=lo(),r=H(n,!0);W(()=>Y(r,G(t).details)),J(e,n)};X(T,e=>{G(t).details&&e(E)}),F(i),W(e=>{Y(l,G(t).name),d=li(u,1,`spread`,null,d,{"pie-stats":G(a)===`pie`}),g=li(h,1,`meter-graphic`,null,g,{"bar-graphic":G(a)===`bars`||G(a)===`fuel`}),Y(w,` RESETS // ${e??``}`)},[()=>ha(G(t).reset)]),J(e,i)}),F(n);var i=U(n,2),c=e=>{J(e,fo())};X(i,e=>{$.data.meters.length||e(c)}),W(()=>r=li(n,1,`quota-grid`,null,r,{radial:G(a)===`pie`,zone:G(a)===`pace`})),J(e,t)};X(d,e=>{G(a)===`thresholds`?e(f):G(a)===`resets`?e(p,1):e(m,-1)}),be(2),W(e=>Y(u,`QUOTA // OBSERVED ${e??``}`),[()=>ha($.data.quotaAt)]),J(e,t)};X(u,e=>{$.data&&e(d)}),J(e,c),Ue()}var _o=q(``),vo=q(``,1);function yo(e,t){He(t,!0);let n=Gi(t,`values`,19,()=>[]),r=Gi(t,`label`,3,`Token activity`),i=Gi(t,`capacity`,3,0),a=I(()=>Math.max(0,...n())),o=I(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=V(s),l=H(c),u=U(c,2);Z(u,21,()=>G(o),qr,(e,t)=>{var n=_o();let r;W((e,t)=>{Q(n,`title`,e),r=di(n,``,r,{height:t})},[()=>G(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*G(t)/Math.max(1,G(a))}%`]),J(e,n)}),F(u),W((e,t)=>{Y(l,`SCALE // 0 — ${e??``} TOKENS`),Q(u,`aria-label`,t)},[()=>G(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${G(a).toLocaleString(`en-GB`)} tokens.`]),J(e,s),Ue()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`Open Codexometer’s usage history. Existing quota and reset views remain available.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=q(` `),To=q(``),Eo=q(`
`),Do=q(`
`),Oo=q(``),ko=q(`
`),Ao=q(`
`),Mo=q(`
Loading / sending…
`),No=q(``),Po=q(``),Fo=q(`
Review expired. Press Enter to review again.
`),zo=q(``,1),Bo=q(`
`,1),Vo=q(`
No available matching commands.
`),Ho=q(` `,1),Uo=q(``),Wo=q(`
Review expired. Review the option again.
`),Go=q(``),Ko=q(``),qo=q(``),Jo=q(``),Yo=q(``),Xo=q(``),Zo=q(` `,1),as=q(`
`,1),os=q(`
`,1),ss=q(`
`,1),us=q(`
`),ps=q(` `),ms=q(`
`),hs=q(`
`),vs=q(`
`),ys=q(``),bs=q(``),xs=q(`
Send this saved prompt now? This starts Codex work and consumes quota.
`,1),Ss=q(``),Cs=q(`
In memory only. Closing Codexometer cancels pending work.
Managed policy requires approval each time.
`,1),Ts=q(`
MODEL / REASONING LEVEL / SPEED
MODEL / REASONING LEVEL / SPEED
Applied settings remain after Codexometer closes.
`,1),Es=q(``),Ds=q(`
`,1),Os=q(`
Approval details unavailable from this observation. Open Codex to - inspect the request.
`),ks=q(`Session controls temporarily unavailable. Check Codex for current state.
`),As=q(`Checking session controls…
`),js=q(``),Ms=q(`
Controls require a supported live request from a connected shared - app-server session. Local observations alone cannot provide them.
`),Fs=q(`Grants permission beyond this one action. Check the scope
- carefully.`),Is=q(``),Ls=q(``),Rs=q(``),zs=q(``),Bs=q(`Not before this time; when quota and idle allow.
`),Vs=q(``,1),Hs=q(`
The existing trigger remains active until saved or deleted. If - it changes or sends while you edit, saving is blocked.
`),Us=q(` `,1),Ws=q(``),Gs=q(``),Ks=q(``),qs=q(` `,1),Js=q(`Type one of these choices exactly. Your answer stays masked.
`),Qs=q(`
`,1),$s=q(` `,1),ec=q(``),tc=q(`
`,1),nc=q(`
`),dc=q(``),fc=q(``),pc=q(``),mc=q(`Choose multiple fields and their order. These display preferences do not - change Codex CLI configuration. Missing values are omitted.
`),Nc=q(`
View this reply in Codex.
`),Pc=q(``),Fc=q(` `,1);function Ic(e,t){He(t,!0);let n=Gi(t,`unverified`,3,!1);var r=Pr();Z(V(r),17,()=>[...t.turns||[]].reverse(),qr,(e,t)=>{var n=Fc(),r=V(n),i=e=>{var n=Mc(),r=H(n,!0);W(()=>Y(r,G(t).task)),J(e,n)};X(r,e=>{G(t).task&&e(i)});var a=U(r,2),o=e=>{J(e,Nc())},s=e=>{bc(e,{get blocks(){return G(t).prose}})},c=e=>{var n=Pc(),r=H(n,!0);W(()=>Y(r,G(t).reply)),J(e,n)};X(a,e=>{G(t).restricted?e(o):G(t).prose?.length?e(s,1):G(t).reply&&e(c,2)}),J(e,n)},e=>{var t=Pc(),r=H(t,!0);W(()=>Y(r,n()?`Could not verify which completed turns belong to this agent.`:`No completed turns available.`)),J(e,t)}),J(e,r),Ue()}var Lc=q(`
`),zc=q(`
If this session has an active goal, Codex may continue it - automatically.
`,1),Wc=q(` `,1),Gc=q(` `,1),Kc=q(`Loading saved sessions…
`),qc=q(``),Jc=q(``),Yc=q(`
Start a new Codex session and send this message?
`,1),Qc=q(` `,1),$c=q(``),el=q(``),tl=q(`
Loading…
`),al=q(`Session information unavailable.
`),ol=q(`
No background terminals reported.
`),cl=q(`Additional background terminals are not shown.
`),ll=q(` `,1),ul=q(``),dl=q(`No linked agents observed.
`),fl=q(`Loading…
`),hl=q(`Session unavailable here.
`),gl=q(``),_l=q(``);function vl(e,t){He(t,!0);let n=I(()=>ba.ids.at(-1)),r=R(void 0),i=R(void 0),a=R(void 0),o=R(void 0),s=R(!1),c=R(!1),l=R(!1),u,d=``,f=new Map;function p(){G(l)||(ba.ids=ba.ids.slice(0,-1))}function m(){G(o)&&(location.hash=`/sessions/`+encodeURIComponent(G(o).root.id),ba.ids=[])}_n(()=>{let e=G(n),p=G(r),m=ba.scope,h=t.scope;if(p){if(e&&m!==h)ba.ids=[];else if(!e)p.open&&p.close(),z(l,!1),u?.focus({preventScroll:!0}),u=void 0,f.clear(),d=``;else return p.open||(document.activeElement instanceof HTMLElement&&(u=document.activeElement),p.showModal()),pr(()=>{d&&G(i)&&f.set(d,G(i).scrollTop),d=e,z(c,!1),z(l,!1),z(o,void 0),z(s,!0),G(a)?.focus({preventScroll:!0});let n=new AbortController;return(async()=>{try{let r=await Sa?.(m,e,n.signal);n.signal.aborted||(z(c,!!r&&!r.agent&&!t.liveIDs.has(r.root.id)&&!!$.data?.control,!0),z(o,r,!0))}catch{}finally{n.signal.aborted||z(s,!1)}await ur(),!n.signal.aborted&&G(i)&&(G(i).scrollTop=f.get(e)||0)})(),()=>n.abort()})}}),qi(()=>{ba.ids=[]});var h=_l(),g=B(h),_=B(g),v=H(_),y=U(_,2);Li(y,e=>z(a,e),()=>G(a)),F(g);var b=U(g,2),x=B(b),S=e=>{J(e,ml())},C=e=>{J(e,hl())},w=e=>{{let n=I(()=>({row:G(o).root,turns:G(o).turns}));Xc(e,{get scope(){return t.scope},get liveIDs(){return t.liveIDs},get target(){return G(n)},get resumeBusy(){return G(l)},set resumeBusy(e){z(l,e,!0)}})}},T=e=>{Ic(e,{get turns(){return G(o).turns},get unverified(){return G(o).unverifiedTurns}})};X(x,e=>{G(s)?e(S):G(o)?G(c)?e(w,2):e(T,-1):e(C,1)}),F(b),Li(b,e=>z(i,e),()=>G(i));var E=U(b,2),D=e=>{var t=gl();K(`click`,t,m),J(e,t)},O=I(()=>G(o)&&!G(o).agent&&!G(c)&&t.liveIDs.has(G(o).root.id));X(E,e=>{G(O)&&e(D)}),F(h),Li(h,e=>z(r,e),()=>G(r)),W(e=>{Y(v,`${G(o)?.agent?`Agent transcript`:`Session preview`}${e??``}`),y.disabled=G(l)},[()=>G(o)?` // ${G(o).agent?.name||(G(o).agent?G(o).agent.id.slice(-5):G(o).root.name||G(o).root.id.slice(-5))}`:``]),Sr(`cancel`,h,e=>{e.preventDefault(),p()}),K(`keydown`,h,e=>e.stopPropagation()),K(`click`,y,p),J(e,h),Ue()}Cr([`keydown`,`click`]);function yl(e,t){let n=e.trim().toLowerCase();return!n||[t.id,t.name,t.directory].some(e=>e?.toLowerCase().includes(n))}var bl=q(``),xl=q(`
`,1),Sl=q(`
`,1),Cl=q(`
`),Tl=q(`
`),Dl=q(`
`,1),Ol=q(`
`),kl=q(`
Command unavailable from this observation. Open Codex to inspect the - request.
`),Al=q(``),Nl=q(``),Pl=q(``),Fl=q(`
Session connection or refresh unavailable. Context and telemetry may be - stale.
`),Rl=q(`Some quota profile checks are unavailable. Only sessions with freshly - verified quota and settings can be updated; previous outcome notices remain - visible.
`),zl=q(` `),Bl=q(` `),Vl=q(` `),Hl=q(``),Ul=q(`Read only — reply or approve in Codex.
This session is no longer in the current observation. Return to sessions.
`),Yl=q(`No live sessions match the filter.
`),Xl=q(``),Zl=q(``),Ql=q(``),$l=q(``),eu=q(` `),tu=q(`
`),nu=q(`QUOTA THRESHOLD // REVIEW PROFILE ↗`),ru=q(`
No locally observed sessions yet. Keep Codex running alongside - Codexometer.
`),su=q(`↑ ↓ SELECT SESSION // ← LESS DETAIL // → MORE DETAIL // ESC BACK
`,1);function lu(e,t){He(t,!0);let n=(e,t=f,n,r)=>{let i=ft(()=>g(n?.(),!0)),a=ft(()=>g(r?.(),!1));var o=jl(),s=V(o),c=e=>{var n=bl(),r=H(n);W(()=>Y(r,`DEFAULT REVIEW // ${t().reviewer===`auto_review`?`AUTO`:`HUMAN`}`)),J(e,n)};X(s,e=>{(t().reviewer===`user`||t().reviewer===`auto_review`)&&e(c)});var l=U(s,2),u=e=>{var n=xl(),r=V(n),i=H(r,!0),a=H(U(r,2),!0);W(()=>{Y(i,t().contextKind===`LAST REPLY`&&!t().streaming?`TASK`:`CURRENT TASK`),Y(a,t().currentTask)}),J(e,n)};X(l,e=>{t().currentTask&&e(u)});var d=U(l,2),p=e=>{var n=Sl(),r=H(U(V(n),2),!0);W(()=>Y(r,t().latestGuidance)),J(e,n)};X(d,e=>{t().latestGuidance&&e(p)});var m=U(d,2),h=e=>{var n=Cl(),r=H(U(V(n),2),!0);be(2),W(()=>Y(r,t().approvalContext)),J(e,n)};X(m,e=>{G(a)&&t().contextKind===`APPROVAL REQUEST`&&t().approvalContext&&e(h)});var _=U(m,2),v=e=>{var n=wl();let r;var i=H(n,!0);W(e=>{r=li(n,1,`attention-note`,null,r,{inferred:t().status===`CHECK SESSION`}),Y(i,e)},[()=>ve(t())]),J(e,n)},y=I(()=>ve(t())&&(!G(a)||G(E)||t().status===`CHECK SESSION`||D(t())));X(_,e=>{G(y)&&e(v)});var b=U(_,2),x=e=>{var n=Tl(),r=H(n,!0);W(e=>Y(r,e),[()=>N(t())]),J(e,n)};X(b,e=>{G(i)&&e(x)});var S=U(b,2),C=e=>{ds(e,{get review(){return t().approvalReview}})},w=e=>{cs(e,{get details(){return t().mcpTool}})},T=e=>{var n=Pr(),r=V(n),i=e=>{bc(e,{get blocks(){return t().prose}})},a=e=>{var n=El(),r=H(n,!0);W(()=>Y(r,t().text||`No session context available.`)),J(e,n)};X(r,e=>{t().prose?.length?e(i):e(a,-1)}),J(e,n)};X(S,e=>{t().approvalReview&&(!G(a)||!$.data?.control)?e(C):t().mcpTool&&(!G(a)||!$.data?.control)?e(w,1):t().approvalReview||!t().text&&t().workingCommand||e(T,2)});var O=U(S,2),ee=e=>{var n=Dl(),r=U(V(n),2),i=B(r),a=U(i),o=e=>{var n=Nr();W(()=>Y(n,`// ${t().commandTiming??``}`)),J(e,n)};X(a,e=>{t().commandTiming&&e(o)});var s=U(a,2),c=e=>{var n=Nr();W(()=>Y(n,`// +${(t().runningCommands||0)-+(t().commandStatus===`running`)} RUNNING`)),J(e,n)};X(s,e=>{!G(E)&&(t().runningCommands||0)>+(t().commandStatus===`running`)&&e(c)});var l=U(s,2),u=e=>{J(e,Nr(`+`))};X(l,e=>{t().runningLimited&&e(u)}),F(r);var d=H(U(r,2),!0);W(e=>{Y(i,`COMMAND // ${e??``} `),Y(d,t().workingCommand)},[()=>G(E)?`UNKNOWN`:(t().commandStatus||`unknown`).toUpperCase()]),J(e,n)};X(O,e=>{t().workingCommand&&e(ee)});var k=U(O,2),te=e=>{rs(e,{get lines(){return t().fileChanges}})},A=e=>{var n=Al(),r=U(V(n),2),i=H(r,!0),a=U(r,2),o=e=>{var n=Ol(),r=H(n,!0);W(()=>Y(r,t().command)),J(e,n)},s=e=>{J(e,kl())};X(a,e=>{t().command?e(o):e(s,-1)}),W(()=>Y(i,G(E)||t().status!==`APPROVAL NEEDED`?`LAST OBSERVED COMMAND`:$.data?.control?`COMMAND REQUEST`:`COMMAND TO APPROVE IN CODEX`)),J(e,n)};X(k,e=>{(!G(a)||!$.data?.control)&&t().fileChanges?.length?e(te):G(a)&&$.data?.control||t().mcpTool||t().approvalReview||!t().command&&t().status!==`APPROVAL NEEDED`||e(A,1)});var j=U(k,2),ne=e=>{gs(e,{get assessment(){return t().autoReview},get full(){return G(a)}})};X(j,e=>{t().autoReview&&!(G(a)&&$.data?.control&&t().command&&t().autoReview.attached)&&e(ne)});var re=U(j,2),ie=e=>{var n=bl(),r=H(n);W(()=>Y(r,`CONTEXT SOURCE // ${(t().source||`LOCAL`)??``} // OBSERVATION`)),J(e,n)};X(re,e=>{G(a)||e(ie)}),J(e,o)},r=R(void 0),i=Gi(t,`params`,19,()=>({})),a=I(()=>$.data?.sessions||[]),o=R(``),s=R(``),c=R(void 0),l=I(()=>$.connected&&!$.data?.sessionsError&&$.data?.savedScope||``),u=R(``);_n(()=>{i().id&&z(u,``)});let d=``;_n(()=>{ya.open?!G(l)||d&&d!==G(l)?ya.open=!1:d=G(l):d=``});let p=I(()=>new Set(G(a).map(e=>e.id))),m=I(()=>G(a).filter(e=>yl(G(o),e)&&(!G(s)||e.status===G(s)))),h=I(()=>$.data?.control&&$.data.profiles||[]),v=I(()=>($.data?.triggers||[]).filter(e=>G(a).some(t=>t.id===e.session)));function y(e,t){i().id&&i().id!==t&&G(x)?e.preventDefault():he(t)}function b(e){return[`TURN COMPLETE`,`IDLE`,`ACTIVE`].includes(e.status)&&G(v).some(t=>t.session===e.id)?`TRIGGER SET`:e.status}let x=R(!1);function S(e,t){i().id&&i().id!==t&&G(x)?e.preventDefault():he(t)}_n(()=>{let e=i().id;e&&pr(()=>{oa.selected=e,pa(e,2)})});let C=I(()=>G(a).find(e=>e.id===i().id)),w=I(()=>new URLSearchParams(Xi.querystring).get(`review`)===`profile`&&G(h).some(e=>e.session===i().id&&e.pending)),T=I(()=>G(m).some(e=>e.id===oa.selected)?oa.selected:G(m)[0]?.id),E=I(()=>!$.connected||!!$.data?.sessionsError);function D(e){return e.status!==`STALE`&&e.failed===!0}let O=I(()=>[[`OBSERVED TOKENS`,ma(G(a).reduce((e,t)=>e+t.tokens,0))],[`LISTED SESSIONS`,ma(G(a).length)],...[[`WORKING`,`WORKING`],[`AWAITING APPROVAL`,`APPROVAL NEEDED`],[`AWAITING INPUT`,`INPUT NEEDED`],[`ERRORS`,`ERRORS`],[`CHECK · INFERRED`,`CHECK SESSION`]].map(([e,t])=>[e,G(E)?`—`:ma(G(a).filter(e=>t===`ERRORS`?D(e):e.status===t).length)])]),ee=I(()=>G(a).filter(e=>[`INPUT NEEDED`,`APPROVAL NEEDED`].includes(e.status)||D(e)).sort((e,t)=>k(e)-k(t)));function k(e){return e.status===`APPROVAL NEEDED`?0:e.status===`INPUT NEEDED`?1:2}let te=I(()=>G(a).filter(e=>e.status===`TURN COMPLETE`&&(!e.readStateKnown||e.unread)&&!G(v).some(t=>t.session===e.id)&&!G(h).some(t=>t.session===e.id&&t.pending))),A=R(``),j=new Set,ne=0,re=R(void 0);function ie(e){return $.data?.control&&!ba.ids.length&&!G(E)&&e.unread&&e.readRevision&&e.replyTurn&&!e.streaming&&e.contextKind===`LAST REPLY`&&!!e.text&&!G(w)&&!G(h).some(t=>t.session===e.id&&t.pending)}function ae(e){let t=document.getElementById(`content`),n=t?.getBoundingClientRect(),r=n?n.left+t.clientLeft:0,i=n?n.top+t.clientTop:0,a=r+(t?.clientWidth||0),o=i+(t?.clientHeight||0);return Array.from(document.querySelectorAll(`[data-result-session]`)).some(n=>{let s=n.querySelector(`[data-reply-text]`);if(!s)return!1;let c=s.getBoundingClientRect();return t?.contains(n)&&n.dataset.resultSession===e.id&&n.dataset.resultTurn===e.replyTurn&&!n.closest(`[inert], [hidden]`)&&document.visibilityState===`visible`&&c.left
`),fu=q(`
Relative usage/credits are not tokens or quota percentages. Groupings - describe the same usage, not additional consumption.
`,1),pu=q(`// APPROXIMATE`),mu=q(`Partial accounting: totals may still change.
`),hu=q(`
Percentage of this period's historical allowance, not today's limit. May - exceed 100%. This is not a manual/automatic reset log.
`,1),gu=q(`
`,1),_u=q(`
This optional account report is unavailable. Token history remains - available; missing data does not mean zero usage.
`),vu=q(`No usage reported for this day.
`),xu=q(`Selected breakdown unavailable; missing does not mean zero.
`),Su=q(`
History refresh failed. Any displayed history is the last successful - observation.
`),Au=q(`Token history unavailable; other reports may still be available.
`),ju=q(``),Mu=q(``),Nu=q(`LESS ░ ▒ ▓ █ MORE // HOVER FOR DATE AND TOKENS
`,1),Pu=q(`
DAYS
SECONDS
DAYS
OPENAI // UTC
| Date (UTC) | Tokens |
|---|
`,1),Lu=q(`
History unavailable or awaiting a matching account observation. Missing - history is not treated as zero usage.
`),Ru=q(`Account-wide history reported by Codex, not the local Sessions counter. Dates - use UTC. Allowance history is approximate where indicated; reset causes are - not provided.
`,1);function zu(e,t){He(t,!0);let n=R(`daily`),r=R(12),i=R(0),a=I(()=>{let e=$.data?.usage?.dailyUsageBuckets;if(!e)return[];let{start:t,end:n}=Eu(new Date,G(r),G(i)),a=new Map;for(let t of e)!Number.isFinite(t.tokens)||t.tokens<0||a.set(t.startDate,(a.get(t.startDate)||0)+t.tokens);let o=[];for(let e=t;e<=n;e=new Date(e.getTime()+864e5)){let t=e.toISOString().slice(0,10);o.push({date:t,tokens:a.get(t)||0})}return o}),o=I(()=>Math.max(1,...G(a).map(e=>e.tokens))),s=I(()=>G(a).length?new Date(G(a)[0].date+`T00:00:00Z`).getUTCDay():0),c=I(()=>{if(G(n)===`monthly`){let e=new Map;for(let t of G(a))e.set(t.date.slice(0,7),(e.get(t.date.slice(0,7))||0)+t.tokens);return[...e].map(([e,t])=>({date:e,tokens:t}))}let e=0;return G(a).map(t=>({date:t.date,tokens:e+=t.tokens}))});var l=Ru(),u=U(V(l),4);Z(u,20,()=>[[`daily`,`Daily`],[`monthly`,`Monthly`],[`cumulative`,`Cumulative`],[`breakdown`,`Breakdown`],[`periods`,`Windows`]],qr,(e,t)=>{var r=I(()=>_(t,2));let a=()=>G(r)[0],o=()=>G(r)[1];var s=Du();let c;var l=H(s,!0);W(()=>{Q(s,`aria-pressed`,G(n)===a()),c=li(s,1,``,null,c,{active:G(n)===a()}),Y(l,o())}),K(`click`,s,()=>{z(n,a(),!0),z(i,0)}),J(e,s)}),F(u);var d=U(u,2),f=B(d),p=e=>{var t=Ou(),n=V(t),a=U(B(n)),o=B(a);o.value=o.__value=6;var s=U(o);s.value=s.__value=12,F(a),hi(a),F(n);var c=U(n),l=U(c);W(()=>l.disabled=G(i)===0),K(`change`,a,()=>z(i,0)),gi(a,()=>G(r),e=>z(r,e)),K(`click`,c,()=>Gt(i)),K(`click`,l,()=>Gt(i,-1)),J(e,t)};X(f,e=>{G(n)!==`breakdown`&&G(n)!==`periods`&&e(p)}),F(d);var m=U(d,2),h=e=>{J(e,ku())};X(m,e=>{$.data?.usageError&&e(h)});var g=U(m,2),v=e=>{J(e,Au())};X(g,e=>{$.data?.usage?.tokenStatus===`UNAVAILABLE`&&G(n)!==`breakdown`&&G(n)!==`periods`&&e(v)});var y=U(g,2),b=e=>{var t=Pr();Kr(V(t),()=>G(n),e=>{{let t=I(()=>$.data?.usage?.reports);Cu(e,{get reports(){return G(t)},get mode(){return G(n)}})}}),J(e,t)},x=e=>{var t=Iu(),r=V(t),i=B(r),l=H(U(B(i),2),!0);F(i);var u=U(i,2),d=H(U(B(u),2),!0);F(u);var f=U(u,2),p=U(B(f),2),m=B(p);be(),F(p),F(f);var h=U(f,2),g=U(B(h),2),_=B(g);be(),F(g),F(h);var v=U(h,2),y=U(B(v),2),b=B(y);be(),F(y),F(v),F(r);var x=U(r,4),S=B(x),C=H(S),w=U(S,2),T=e=>{var t=Nu(),n=V(t),r=B(n),i=B(r);Z(i,17,()=>Array(G(s)),qr,(e,t)=>{J(e,ju())}),Z(U(i,2),17,()=>G(a),qr,(e,t)=>{var n=Mu();let r,i;W(e=>{r=li(n,1,`heat-cell`,null,r,{zero:G(t).tokens===0}),Q(n,`title`,e),i=di(n,``,i,{opacity:G(t).tokens?.25+.75*G(t).tokens/G(o):1})},[()=>`${G(t).date}: ${ma(G(t).tokens)} tokens`]),J(e,n)}),F(r),F(n),be(2),J(e,t)},E=e=>{var t=Pu(),r=V(t);{let e=I(()=>G(c).map(e=>e.tokens)),t=I(()=>G(n)+` usage`);yo(r,{get values(){return G(e)},get label(){return G(t)}})}var i=U(r,2),a=B(i),o=H(a,!0),s=H(U(a),!0);F(i),W(e=>{Y(o,G(c)[0]?.date),Y(s,e)},[()=>G(c).at(-1)?.date]),J(e,t)};X(w,e=>{G(n)===`daily`?e(T):e(E,-1)});var D=U(w,2),O=U(B(D),2),ee=B(O),k=U(B(ee));Z(k,21,()=>G(n)===`daily`?G(a):G(c),qr,(e,t)=>{var n=Fu(),r=B(n),i=H(r,!0),a=H(U(r),!0);F(n),W(e=>{Y(i,G(t).date),Y(a,e)},[()=>ma(G(t).tokens)]),J(e,n)}),F(k),F(ee),F(O),F(D),F(x);var te=H(U(x,2));W((e,t,n,r,i,o,s)=>{Y(l,e),Y(d,t),Y(m,`${n??``} `),Y(_,`${r??``} `),Y(b,`${i??``} `),Y(C,`${G(a)[0]?.date??``} — ${o??``}`),Y(te,`OBSERVED ${s??``} // CUMULATIVE IS FOR THE SELECTED PERIOD`)},[()=>ma($.data.usage.summary.lifetimeTokens),()=>ma($.data.usage.summary.peakDailyTokens),()=>ma($.data.usage.summary.currentStreakDays),()=>ma($.data.usage.summary.longestRunningTurnSec),()=>ma($.data.usage.summary.longestStreakDays),()=>G(a).at(-1)?.date,()=>ha($.data.usageAt)]),J(e,t)},S=e=>{J(e,Lu())};X(y,e=>{G(n)===`breakdown`||G(n)===`periods`?e(b):$.data?.usage&&$.data.usage.dailyUsageBuckets!==null?e(x,1):e(S,-1)}),J(e,l),Ue()}Cr([`click`,`change`]);var Bu=q(``),ld=q(`
Connecting to your local Codexometer…
`),ud=q(``),dd=q(``);function fd(e,t){He(t,!0);let n={"/":go,"/quota/:view?":go,"/sessions/:id?":lu,"/usage":zu,"*":Vu},r={quota:/^(?:\/|\/quota(?:\/[^/]+)?\/?)$/,sessions:/^\/sessions(?:\/[^/]+)?\/?$/,usage:/^\/usage\/?$/},i=R(`hacker`),a=R(!0),o=R(void 0);_n(()=>{ca.requests&&ur().then(()=>{G(o)?.focus(),G(o)?.scrollIntoView({block:`nearest`})})});let s=R(void 0),c=[`hacker`,`rust`,`blue-steel`,`ultraviolet`,`nightshade`];_n(()=>{la()}),_n(()=>{if($.data)for(let[e,t]of Object.entries(r))t.test(Xi.location)&&(oa.tab=e)}),Ki(()=>{try{let e=localStorage.getItem(`codexometer.web.theme`);e&&c.includes(e)&&z(i,e,!0)}catch{}return ka()});function l(){try{localStorage.setItem(`codexometer.web.theme`,G(i))}catch{}}var u=dd(),d=B(u),f=B(d),p=B(f);rd(B(p),{}),F(p),Li(p,e=>z(s,e),()=>G(s)),be(2),F(f);var m=U(f,2),h=B(m);let g;var v=U(h,1,!0),y=H(U(v));F(m),F(d);var b=U(d,2);Z(b,21,()=>Object.entries(r),qr,(e,t)=>{var n=I(()=>_(G(t),2));let r=()=>G(n)[0],i=()=>G(n)[1],a=I(()=>i().test(Xi.location));var o=sd();let s;var c=H(o,!0);W(e=>{Q(o,`href`,r()===`quota`?`#/quota/`+oa.view:`#/`+r()),Q(o,`aria-current`,G(a)?`page`:void 0),s=li(o,1,``,null,s,{active:G(a)}),Y(c,e)},[()=>r().toUpperCase()]),J(e,o)}),F(b);var x=U(b,2),S=B(x),C=e=>{var t=cd(),n=H(t,!0);W(()=>Y(n,$.error)),J(e,t)};X(S,e=>{$.error&&e(C)});var w=U(S,2),T=e=>{ea(e,{get routes(){return n}})},E=e=>{J(e,ld())};X(w,e=>{$.data?e(T):$.error||e(E,1)}),F(x);var D=U(x,2),O=B(D),ee=H(O),k=U(O,2),te=H(k,!0),A=U(k,2),j=U(B(A));Z(j,21,()=>c,qr,(e,t)=>{var n=ud(),r=H(n,!0),i={};W(e=>{Y(r,e),i!==(i=G(t))&&(n.value=(n.__value=i)??``)},[()=>G(t).replace(`-`,` `).toUpperCase()]),J(e,n)}),F(j),Li(j,e=>z(o,e),()=>G(o)),hi(j),F(A),F(D);var ne=U(D,2),re=e=>{od(e,{get target(){return G(s)},onfinish:()=>z(a,!1)})};X(ne,e=>{G(a)&&e(re)}),F(u),W(()=>{Q(u,`data-theme`,G(i)),Q(u,`data-starting`,G(a)),d.inert=G(a),g=li(h,1,`lamp`,null,g,{lit:$.connected}),Y(v,$.connected?`CONNECTED`:`OFFLINE`),Y(y,`EXPERIMENTAL // ${$.data?.control?`SESSION CONTROL`:`READ ONLY`}`),b.inert=G(a),x.inert=G(a),D.inert=G(a),Y(ee,`v${($.data?.version||`…`)??``} // LOCAL ONLY`),Y(te,$.data?.control?`Session control enabled. Stop the server to revoke access.`:`No actions can be sent from this preview.`)}),K(`change`,j,l),gi(j,()=>G(i),e=>z(i,e)),J(e,u),Ue()}Cr([`change`]),Br(fd,{target:document.getElementById(`app`)}); \ No newline at end of file diff --git a/internal/web/dist/assets/index-Dcz7wClf.js b/internal/web/dist/assets/index-Dcz7wClf.js new file mode 100644 index 0000000..5b09144 --- /dev/null +++ b/internal/web/dist/assets/index-Dcz7wClf.js @@ -0,0 +1,54 @@ +(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible;function d(e){return typeof e==`function`}var f=()=>{};function p(e){return e()}function m(e){for(var t=0;tQuota refresh failed. Policy state is based on the last successful + observation.
`),ja=K(`
The longest Codex quota window selects one active model profile. ASK + creates a per-session review; AUTO applies the profile on the next + eligible check.
No threshold-based model steps were configured at launch.
`);function Pa(e,t){Ue(t,!1),Bi();var n=Fr(),r=B(n),i=e=>{var t=Ma(),n=B(t),r=V(n),i=H(n,2),a=e=>{q(e,Aa())};Y(i,e=>{$.data.quotaError&&e(a)});var o=H(i,2),s=z(o),c=V(s),l=H(s,4);X(l,5,()=>$.data.thresholds,Jr,(e,t)=>{var n=ja();let r;var i=z(n),a=V(i),o=H(i,2),s=z(o),c=V(s,!0),l=V(H(s,2));P(o);var u=H(o,2),d=V(u,!0),f=V(H(u,2));P(n),U((e,i)=>{r=ui(n,1,``,null,r,{active:W(t).state===`ACTIVE`,next:W(t).state===`NEXT`}),J(a,`${W(t).threshold??``}%`),J(c,W(t).model),J(l,`${e??``} REASONING // ${i??``} + SPEED`),J(d,W(t).mode),J(f,`${W(t).state??``}${W(t).state===`NEXT`?` // ${W(t).remaining||0} PP TO GO`:``}`)},[()=>W(t).effort.toUpperCase(),()=>W(t).speed.toUpperCase()]),q(e,n)}),P(l),P(o),U(e=>{J(r,`MODEL STEP POLICY // OBSERVED ${e??``}`),J(c,`THRESHOLDS // ${$.data.thresholds.length??``} CONFIGURED`)},[()=>ha($.data.quotaAt)]),q(e,t)},a=e=>{q(e,Na())};Y(r,e=>{$.data?.thresholds?.length?e(i):e(a,-1)}),q(e,n),We()}var Fa=Nr(`| Observed at | Period elapsed | Consumed | Trail segment |
|---|
Quota refresh failed. Values below are the last successful observation.
`),qa=K(``),Ja=K(`
Expiry details unavailable. No listed expiry does not mean no expiry.
`),Ya=K(`
Read-only preview. Use the terminal to redeem a reset.
The backend may return only some credits. This list does not establish + redemption order.
Cycle duration or reset date unavailable — position cannot be + plotted.
`),ao=K(`
`),uo=K(`
No quota windows reported yet.
`),po=K(` `,1),mo=K(`
All reported windows are shown. API-equivalent learning and quota status + scoring remain in the terminal for this first preview.
`,1),ho=K(` `,1);function go(e,t){Ue(t,!0);let n=Q(t,`params`,19,()=>({})),r=F(()=>ta.filter(e=>e!==`thresholds`||!!$.data?.thresholds?.length)),i=L(Yt(Date.now())),a=F(()=>W(r).includes(na(n().view))?na(n().view):`bars`);Ki(()=>{let e=setInterval(()=>R(i,Date.now(),!0),1e3);return()=>clearInterval(e)});function o(e){return!e.duration||e.duration<=0||!e.reset?null:Math.max(0,Math.min(100,100*(1-(e.reset*1e3-W(i))/(e.duration*6e4))))}vn(()=>{oa.view=W(a),(n().view===`zone`||n().view===`consumption-pace`)&&Qi(`/quota/pace`)});function s(e){let t=e/100*Math.PI*2;return`M60 60 L60 14 A46 46 0 ${+(e>50)} 1 ${60+46*Math.sin(t)} ${60-46*Math.cos(t)} Z`}var c=ho(),l=B(c);X(l,21,()=>W(r),Jr,(e,t)=>{var n=Ga();let r;var i=V(n,!0);U(e=>{Z(n,`href`,`#/quota/`+W(t)),Z(n,`aria-current`,W(a)===W(t)?`page`:void 0),r=ui(n,1,``,null,r,{active:W(a)===W(t)}),J(i,e)},[()=>W(t)===`fuel`?`FUEL TANK`:W(t).toUpperCase()]),q(e,n)}),P(l);var u=H(l,2),d=e=>{var t=mo(),n=B(t),r=e=>{q(e,Ka())};Y(n,e=>{$.data.quotaError&&e(r)});var i=H(n,2),c=e=>{var t=qa(),n=V(t);U(()=>J(n,`Last usage accounting issue: + ${$.data.usageDiagnostic??``}`)),q(e,t)};Y(i,e=>{$.data.usageDiagnostic&&e(c)});var l=H(i,2),u=V(l),d=H(l,2),f=e=>{Pa(e,{})},p=e=>{var t=Xa(),n=z(t),r=V(n),i=H(n,4),a=e=>{q(e,Ja())};Y(i,e=>{$.data.credits.length||e(a)}),X(H(i,2),17,()=>$.data.credits,Jr,(e,t)=>{var n=Ya(),r=z(n),i=V(r),a=V(H(r,2),!0);P(n),U(e=>{J(i,`${(W(t).title||`Quota reset`)??``} // ${W(t).status??``}`),J(a,e)},[()=>W(t).expiryKnown?W(t).expires?`EXPIRES `+ha(W(t).expires):`Does not expire`:`Expiry information unavailable`]),q(e,n)}),xe(2),P(t),U(()=>J(r,`RESET INVENTORY // ${$.data.creditCount??``} AVAILABLE`)),q(e,t)},m=e=>{var t=po(),n=B(t);let r;X(n,21,()=>$.data.meters,Jr,(e,t)=>{let n=F(()=>o(W(t))),r=F(()=>W(n)===null?null:Math.round(W(n)));var i=uo(),c=z(i),l=V(c,!0),u=H(c,2);let d;var f=z(u),p=e=>{var n=Za(),r=B(n),i=V(r),a=V(H(r));U(()=>{J(i,`FREE ${100-W(t).used}%`),J(a,`USED ${W(t).used??``}%`)}),q(e,n)},m=e=>{var n=Za(),r=B(n),i=V(r),a=V(H(r));U(()=>{J(i,`USED ${W(t).used??``}%`),J(a,`FREE ${100-W(t).used}%`)}),q(e,n)};Y(f,e=>{W(a)===`fuel`?e(p):e(m,-1)}),P(u);var h=H(u,2);let g;var _=z(h),v=e=>{var i=ro(),a=z(i),o=z(a),c=H(z(o)),l=e=>{q(e,Qa())},u=e=>{var n=$a();U(e=>Z(n,`d`,e),[()=>s(W(t).used)]),q(e,n)};Y(c,e=>{W(t).used>=100?e(l):W(t).used>0&&e(u,1)});var d=H(c),f=e=>{var t=to(),r=H(B(t)),i=e=>{var t=eo();U(()=>Z(t,`stroke-dasharray`,`${W(n)} 100`)),q(e,t)};Y(r,e=>{W(n)>0&&e(i)}),q(e,t)};Y(d,e=>{W(n)!==null&&e(f)}),P(o),P(a);var p=H(a,2),m=z(p),h=V(m),g=H(m,2),_=e=>{var t=no(),n=V(t);U(()=>J(n,`RING // ${W(r)??``}% ELAPSED`)),q(e,t)};Y(g,e=>{W(r)!==null&&e(_)}),P(p),P(i),U(()=>{Z(o,`aria-label`,`${W(t).used}% quota used; ${W(r)===null?`reset cycle unavailable`:`${W(r)}% of reset cycle elapsed`}`),J(h,`PIE // ${W(t).used??``}% USED`)}),q(e,i)},y=e=>{var r=Fr(),i=B(r),a=e=>{{let r=F(()=>W(t).trail||[]);Wa(e,{get used(){return W(t).used},get elapsed(){return W(n)},get trail(){return W(r)},get plot(){return W(t).plot}})}},o=e=>{q(e,io())};Y(i,e=>{W(n)===null?e(o,-1):e(a)}),q(e,r)},b=e=>{var r=so(),i=B(r),o=z(i);let s;P(i);var c=H(i,2),l=e=>{q(e,ao())};Y(c,e=>{W(a)===`fuel`&&e(l)});var u=H(c,2),d=e=>{var t=oo(),r=B(t),i=V(r),o=H(r,2),s=z(o);let c;P(o),U(e=>{J(i,`RESET CYCLE // ${e??``}% ELAPSED`),c=fi(s,``,c,{width:`${W(a)===`fuel`?100-W(n):W(n)}%`})},[()=>Math.floor(W(n))]),q(e,t)};Y(u,e=>{W(n)!==null&&e(d)}),U(()=>{Z(i,`aria-label`,W(a)===`fuel`?`Fuel remaining`:`Quota used`),Z(i,`aria-valuenow`,W(a)===`fuel`?100-W(t).used:W(t).used),s=fi(o,``,s,{width:`${W(a)===`fuel`?100-W(t).used:W(t).used}%`})}),q(e,r)};Y(_,e=>{W(a)===`pie`?e(v):W(a)===`pace`?e(y,1):e(b,-1)}),P(h);var x=H(h,2),S=z(x),C=e=>{var t=Fr(),n=B(t),i=e=>{q(e,Pr(`RESET CYCLE UNAVAILABLE ·`))},a=e=>{var t=co(),n=V(t);U(()=>J(n,`RING ${W(r)??``}% ELAPSED ·`)),q(e,t)};Y(n,e=>{W(r)===null?e(i):e(a,-1)}),q(e,t)};Y(S,e=>{W(a)===`pie`&&e(C)});var w=H(S);P(x);var T=H(x,2),E=e=>{var n=lo(),r=V(n,!0);U(()=>J(r,W(t).details)),q(e,n)};Y(T,e=>{W(t).details&&e(E)}),P(i),U(e=>{J(l,W(t).name),d=ui(u,1,`spread`,null,d,{"pie-stats":W(a)===`pie`}),g=ui(h,1,`meter-graphic`,null,g,{"bar-graphic":W(a)===`bars`||W(a)===`fuel`}),J(w,` RESETS // ${e??``}`)},[()=>ha(W(t).reset)]),q(e,i)}),P(n);var i=H(n,2),c=e=>{q(e,fo())};Y(i,e=>{$.data.meters.length||e(c)}),U(()=>r=ui(n,1,`quota-grid`,null,r,{radial:W(a)===`pie`,zone:W(a)===`pace`})),q(e,t)};Y(d,e=>{W(a)===`thresholds`?e(f):W(a)===`resets`?e(p,1):e(m,-1)}),xe(2),U(e=>J(u,`QUOTA // OBSERVED ${e??``}`),[()=>ha($.data.quotaAt)]),q(e,t)};Y(u,e=>{$.data&&e(d)}),q(e,c),We()}var _o=K(``),vo=K(``,1);function yo(e,t){Ue(t,!0);let n=Q(t,`values`,19,()=>[]),r=Q(t,`label`,3,`Token activity`),i=Q(t,`capacity`,3,0),a=F(()=>Math.max(0,...n())),o=F(()=>i()>n().length?[...Array(i()-n().length).fill(0),...n()]:n());var s=vo(),c=B(s),l=V(c),u=H(c,2);X(u,21,()=>W(o),Jr,(e,t)=>{var n=_o();let r;U((e,t)=>{Z(n,`title`,e),r=fi(n,``,r,{height:t})},[()=>W(t).toLocaleString(`en-GB`)+` tokens`,()=>`${100*W(t)/Math.max(1,W(a))}%`]),q(e,n)}),P(u),U((e,t)=>{J(l,`SCALE // 0 — ${e??``} TOKENS`),Z(u,`aria-label`,t)},[()=>W(a).toLocaleString(`en-GB`),()=>`${r()}. Peak ${W(a).toLocaleString(`en-GB`)} tokens.`]),q(e,s),We()}function bo(e,t=!1){return e===`require`||e!==`none`&&!t}function xo(e){if(!e||![`LAST REPLY`,`LAST ACTIVITY`].includes(e.contextKind))return``;let t=e.text||e.contextKind===`LAST ACTIVITY`&&e.workingCommand||``;return t.trim()?t:``}var So=[{id:`local-statusline`,label:`/statusline`,help:`Choose fields for Codexometer’s detail footer. Saved display preferences only.`,next:`statusline`},{id:`local-usage`,label:`/usage`,help:`View account usage or resets. Specify daily, weekly or cumulative to open a chart.`,next:`usage`},{id:`local-copy`,label:`/copy`,help:`Copy the selected session’s observed reply or activity using Codexometer’s copy control.`,next:`copy`},{id:`local-theme`,label:`/theme`,help:`Choose a Codexometer display theme. Saved local display preferences only.`,next:`theme`},{id:`local-exit`,label:`/exit`,help:`Leave this Codexometer interface. Codex sessions continue running.`,next:`exit`},{id:`local-quit`,label:`/quit`,help:`Alias for /exit. Codex sessions continue running.`,next:`quit`},{id:`local-resume`,label:`/resume`,help:`Search saved Codex sessions, preview, or explicitly resume one in Sessions.`,next:`resume`},{id:`local-subagents`,label:`/subagents`,help:`Inspect the selected session’s linked agents and their read-only transcripts.`,next:`subagents`},{id:`local-ps`,label:`/ps`,help:`List the selected session’s background terminals without stopping anything.`,next:`ps`}],Co=[`surface`,`model`,`feature`,`task start`],wo=K(` `),To=K(``),Eo=K(`
`),Do=K(`
`),Oo=K(``),ko=K(`
`),Ao=K(`
`),Mo=K(`
Loading / sending…
`),No=K(``),Po=K(``),Fo=K(`
Review expired. Press Enter to review again.
`),zo=K(``,1),Bo=K(`
`,1),Vo=K(`
No available matching commands.
`),Ho=K(` `,1),Uo=K(``),Wo=K(`
Review expired. Review the option again.
`),Go=K(``),Ko=K(``),qo=K(``),Jo=K(``),Yo=K(``),Xo=K(``),Zo=K(` `,1),as=K(`
`,1),os=K(`
`,1),ss=K(`
`,1),us=K(`
`),ps=K(` `),ms=K(`
`),hs=K(`
`),vs=K(`
`),ys=K(``),bs=K(``),xs=K(`
Send this saved prompt now? This starts Codex work and consumes quota.
`,1),Ss=K(``),Cs=K(`
In memory only. Closing Codexometer cancels pending work.
Managed policy requires approval each time.
`,1),Ts=K(`
MODEL / REASONING LEVEL / SPEED
MODEL / REASONING LEVEL / SPEED
Applied settings remain after Codexometer closes.
`,1),Es=K(``),Ds=K(`
`,1),Os=K(`
Approval details unavailable from this observation. Open Codex to + inspect the request.
`),ks=K(`Session controls temporarily unavailable. Check Codex for current state.
`),As=K(`Checking session controls…
`),js=K(``),Ms=K(`
Controls require a supported live request from a connected shared + app-server session. Local observations alone cannot provide them.
`),Fs=K(`Grants permission beyond this one action. Check the scope
+ carefully.`),Is=K(``),Ls=K(``),Rs=K(``),zs=K(``),Bs=K(`Not before this time; when quota and idle allow.
`),Vs=K(``,1),Hs=K(`
The existing trigger remains active until saved or deleted. If + it changes or sends while you edit, saving is blocked.
`),Us=K(` `,1),Ws=K(``),Gs=K(``),Ks=K(``),qs=K(` `,1),Js=K(`Type one of these choices exactly. Your answer stays masked.
`),Qs=K(`
`,1),$s=K(` `,1),ec=K(``),tc=K(`
`,1),nc=K(`
`),dc=K(``),fc=K(``),pc=K(``),mc=K(`Choose multiple fields and their order. These display preferences do not + change Codex CLI configuration. Missing values are omitted.
`),Nc=K(`
View this reply in Codex.
`),Pc=K(``),Fc=K(` `,1);function Ic(e,t){Ue(t,!0);let n=Q(t,`unverified`,3,!1);var r=Fr();X(B(r),17,()=>[...t.turns||[]].reverse(),Jr,(e,t)=>{var n=Fc(),r=B(n),i=e=>{var n=Mc(),r=V(n,!0);U(()=>J(r,W(t).task)),q(e,n)};Y(r,e=>{W(t).task&&e(i)});var a=H(r,2),o=e=>{q(e,Nc())},s=e=>{bc(e,{get blocks(){return W(t).prose}})},c=e=>{var n=Pc(),r=V(n,!0);U(()=>J(r,W(t).reply)),q(e,n)};Y(a,e=>{W(t).restricted?e(o):W(t).prose?.length?e(s,1):W(t).reply&&e(c,2)}),q(e,n)},e=>{var t=Pc(),r=V(t,!0);U(()=>J(r,n()?`Could not verify which completed turns belong to this agent.`:`No completed turns available.`)),q(e,t)}),q(e,r),We()}var Lc=K(`
`),zc=K(`
If this session has an active goal, Codex may continue it + automatically.
`,1),Wc=K(` `,1),Gc=K(` `,1),Kc=K(`Loading saved sessions…
`),qc=K(``),Jc=K(``),Yc=K(`
Start a new Codex session and send this message?
`,1),Qc=K(` `,1),$c=K(``),el=K(``),tl=K(`
Loading…
`),al=K(`Session information unavailable.
`),ol=K(`
No background terminals reported.
`),cl=K(`Additional background terminals are not shown.
`),ll=K(` `,1),ul=K(``),dl=K(`No linked agents observed.
`),fl=K(`Loading…
`),hl=K(`Session unavailable here.
`),gl=K(``),_l=K(``);function vl(e,t){Ue(t,!0);let n=F(()=>ba.ids.at(-1)),r=L(void 0),i=L(void 0),a=L(void 0),o=L(void 0),s=L(!1),c=L(!1),l=L(!1),u,d=``,f=new Map;function p(){W(l)||(ba.ids=ba.ids.slice(0,-1))}function m(){W(o)&&(location.hash=`/sessions/`+encodeURIComponent(W(o).root.id),ba.ids=[])}vn(()=>{let e=W(n),p=W(r),m=ba.scope,h=t.scope;if(p){if(e&&m!==h)ba.ids=[];else if(!e)p.open&&p.close(),R(l,!1),u?.focus({preventScroll:!0}),u=void 0,f.clear(),d=``;else return p.open||(document.activeElement instanceof HTMLElement&&(u=document.activeElement),p.showModal()),mr(()=>{d&&W(i)&&f.set(d,W(i).scrollTop),d=e,R(c,!1),R(l,!1),R(o,void 0),R(s,!0),W(a)?.focus({preventScroll:!0});let n=new AbortController;return(async()=>{try{let r=await Sa?.(m,e,n.signal);n.signal.aborted||(R(c,!!r&&!r.agent&&!t.liveIDs.has(r.root.id)&&!!$.data?.control,!0),R(o,r,!0))}catch{}finally{n.signal.aborted||R(s,!1)}await dr(),!n.signal.aborted&&W(i)&&(W(i).scrollTop=f.get(e)||0)})(),()=>n.abort()})}}),qi(()=>{ba.ids=[]});var h=_l(),g=z(h),_=z(g),v=V(_),y=H(_,2);Ri(y,e=>R(a,e),()=>W(a)),P(g);var b=H(g,2),x=z(b),S=e=>{q(e,ml())},C=e=>{q(e,hl())},w=e=>{{let n=F(()=>({row:W(o).root,turns:W(o).turns}));Xc(e,{get scope(){return t.scope},get liveIDs(){return t.liveIDs},get target(){return W(n)},get resumeBusy(){return W(l)},set resumeBusy(e){R(l,e,!0)}})}},T=e=>{Ic(e,{get turns(){return W(o).turns},get unverified(){return W(o).unverifiedTurns}})};Y(x,e=>{W(s)?e(S):W(o)?W(c)?e(w,2):e(T,-1):e(C,1)}),P(b),Ri(b,e=>R(i,e),()=>W(i));var E=H(b,2),D=e=>{var t=gl();G(`click`,t,m),q(e,t)},O=F(()=>W(o)&&!W(o).agent&&!W(c)&&t.liveIDs.has(W(o).root.id));Y(E,e=>{W(O)&&e(D)}),P(h),Ri(h,e=>R(r,e),()=>W(r)),U(e=>{J(v,`${W(o)?.agent?`Agent transcript`:`Session preview`}${e??``}`),y.disabled=W(l)},[()=>W(o)?` // ${W(o).agent?.name||(W(o).agent?W(o).agent.id.slice(-5):W(o).root.name||W(o).root.id.slice(-5))}`:``]),Cr(`cancel`,h,e=>{e.preventDefault(),p()}),G(`keydown`,h,e=>e.stopPropagation()),G(`click`,y,p),q(e,h),We()}wr([`keydown`,`click`]);function yl(e,t){let n=e.trim().toLowerCase();return!n||[t.id,t.name,t.directory].some(e=>e?.toLowerCase().includes(n))}var bl=K(``),xl=K(`
`,1),Sl=K(`
`,1),Cl=K(`
`),Tl=K(`
`),Dl=K(`
`,1),Ol=K(`
`),kl=K(`
Command unavailable from this observation. Open Codex to inspect the + request.
`),Al=K(``),Nl=K(``),Pl=K(``),Fl=K(`
Session connection or refresh unavailable. Context and telemetry may be + stale.
`),Rl=K(`Some quota profile checks are unavailable. Only sessions with freshly + verified quota and settings can be updated; previous outcome notices remain + visible.
`),zl=K(` `),Bl=K(` `),Vl=K(` `),Hl=K(``),Ul=K(`Read only — reply or approve in Codex.
This session is no longer in the current observation. Return to sessions.
`),Yl=K(`No live sessions match the filter.
`),Xl=K(``),Zl=K(``),Ql=K(``),$l=K(``),eu=K(` `),tu=K(`
`),nu=K(`QUOTA THRESHOLD // REVIEW PROFILE ↗`),ru=K(`
No locally observed sessions yet. Keep Codex running alongside + Codexometer.
`),su=K(`↑ ↓ SELECT SESSION // ← LESS DETAIL // → MORE DETAIL // ESC BACK
`,1);function lu(e,t){Ue(t,!0);let n=(e,t=f,n,r)=>{let i=pt(()=>g(n?.(),!0)),a=pt(()=>g(r?.(),!1));var o=jl(),s=B(o),c=e=>{var n=bl(),r=V(n);U(()=>J(r,`DEFAULT REVIEW // ${t().reviewer===`auto_review`?`AUTO`:`HUMAN`}`)),q(e,n)};Y(s,e=>{(t().reviewer===`user`||t().reviewer===`auto_review`)&&e(c)});var l=H(s,2),u=e=>{var n=xl(),r=B(n),i=V(r,!0),a=V(H(r,2),!0);U(()=>{J(i,t().contextKind===`LAST REPLY`&&!t().streaming?`TASK`:`CURRENT TASK`),J(a,t().currentTask)}),q(e,n)};Y(l,e=>{t().currentTask&&e(u)});var d=H(l,2),p=e=>{var n=Sl(),r=V(H(B(n),2),!0);U(()=>J(r,t().latestGuidance)),q(e,n)};Y(d,e=>{t().latestGuidance&&e(p)});var m=H(d,2),h=e=>{var n=Cl(),r=V(H(B(n),2),!0);xe(2),U(()=>J(r,t().approvalContext)),q(e,n)};Y(m,e=>{W(a)&&t().contextKind===`APPROVAL REQUEST`&&t().approvalContext&&e(h)});var _=H(m,2),v=e=>{var n=wl();let r;var i=V(n,!0);U(e=>{r=ui(n,1,`attention-note`,null,r,{inferred:t().status===`CHECK SESSION`}),J(i,e)},[()=>ye(t())]),q(e,n)},y=F(()=>ye(t())&&(!W(a)||W(E)||t().status===`CHECK SESSION`||D(t())));Y(_,e=>{W(y)&&e(v)});var b=H(_,2),x=e=>{var n=Tl(),r=V(n,!0);U(e=>J(r,e),[()=>M(t())]),q(e,n)};Y(b,e=>{W(i)&&e(x)});var S=H(b,2),C=e=>{ds(e,{get review(){return t().approvalReview}})},w=e=>{cs(e,{get details(){return t().mcpTool}})},T=e=>{var n=Fr(),r=B(n),i=e=>{bc(e,{get blocks(){return t().prose}})},a=e=>{var n=El(),r=V(n,!0);U(()=>J(r,t().text||`No session context available.`)),q(e,n)};Y(r,e=>{t().prose?.length?e(i):e(a,-1)}),q(e,n)};Y(S,e=>{t().approvalReview&&(!W(a)||!$.data?.control)?e(C):t().mcpTool&&(!W(a)||!$.data?.control)?e(w,1):t().approvalReview||!t().text&&t().workingCommand||e(T,2)});var O=H(S,2),k=e=>{var n=Dl(),r=H(B(n),2),i=z(r),a=H(i),o=e=>{var n=Pr();U(()=>J(n,`// ${t().commandTiming??``}`)),q(e,n)};Y(a,e=>{t().commandTiming&&e(o)});var s=H(a,2),c=e=>{var n=Pr();U(()=>J(n,`// +${(t().runningCommands||0)-+(t().commandStatus===`running`)} RUNNING`)),q(e,n)};Y(s,e=>{!W(E)&&(t().runningCommands||0)>+(t().commandStatus===`running`)&&e(c)});var l=H(s,2),u=e=>{q(e,Pr(`+`))};Y(l,e=>{t().runningLimited&&e(u)}),P(r);var d=V(H(r,2),!0);U(e=>{J(i,`COMMAND // ${e??``} `),J(d,t().workingCommand)},[()=>W(E)?`UNKNOWN`:(t().commandStatus||`unknown`).toUpperCase()]),q(e,n)};Y(O,e=>{t().workingCommand&&e(k)});var ee=H(O,2),te=e=>{rs(e,{get lines(){return t().fileChanges}})},A=e=>{var n=Al(),r=H(B(n),2),i=V(r,!0),a=H(r,2),o=e=>{var n=Ol(),r=V(n,!0);U(()=>J(r,t().command)),q(e,n)},s=e=>{q(e,kl())};Y(a,e=>{t().command?e(o):e(s,-1)}),U(()=>J(i,W(E)||t().status!==`APPROVAL NEEDED`?`LAST OBSERVED COMMAND`:$.data?.control?`COMMAND REQUEST`:`COMMAND TO APPROVE IN CODEX`)),q(e,n)};Y(ee,e=>{(!W(a)||!$.data?.control)&&t().fileChanges?.length?e(te):W(a)&&$.data?.control||t().mcpTool||t().approvalReview||!t().command&&t().status!==`APPROVAL NEEDED`||e(A,1)});var ne=H(ee,2),re=e=>{gs(e,{get assessment(){return t().autoReview},get full(){return W(a)}})};Y(ne,e=>{t().autoReview&&!(W(a)&&$.data?.control&&t().command&&t().autoReview.attached)&&e(re)});var ie=H(ne,2),ae=e=>{var n=bl(),r=V(n);U(()=>J(r,`CONTEXT SOURCE // ${(t().source||`LOCAL`)??``} // OBSERVATION`)),q(e,n)};Y(ie,e=>{W(a)||e(ae)}),q(e,o)},r=L(void 0),i=Q(t,`params`,19,()=>({})),a=F(()=>$.data?.sessions||[]),o=L(``),s=L(``),c=L(void 0),l=F(()=>$.connected&&!$.data?.sessionsError&&$.data?.savedScope||``),u=L(``);vn(()=>{i().id&&R(u,``)});let d=``;vn(()=>{ya.open?!W(l)||d&&d!==W(l)?ya.open=!1:d=W(l):d=``});let p=F(()=>new Set(W(a).map(e=>e.id))),m=F(()=>W(a).filter(e=>yl(W(o),e)&&(!W(s)||e.status===W(s)))),h=F(()=>$.data?.control&&$.data.profiles||[]),v=F(()=>($.data?.triggers||[]).filter(e=>W(a).some(t=>t.id===e.session)));function y(e,t){i().id&&i().id!==t&&W(x)?e.preventDefault():ge(t)}function b(e){return[`TURN COMPLETE`,`IDLE`,`ACTIVE`].includes(e.status)&&W(v).some(t=>t.session===e.id)?`TRIGGER SET`:e.status}let x=L(!1);function S(e,t){i().id&&i().id!==t&&W(x)?e.preventDefault():ge(t)}vn(()=>{let e=i().id;e&&mr(()=>{oa.selected=e,pa(e,2)})});let C=F(()=>W(a).find(e=>e.id===i().id)),w=F(()=>new URLSearchParams(Xi.querystring).get(`review`)===`profile`&&W(h).some(e=>e.session===i().id&&e.pending)),T=F(()=>W(m).some(e=>e.id===oa.selected)?oa.selected:W(m)[0]?.id),E=F(()=>!$.connected||!!$.data?.sessionsError);function D(e){return e.status!==`STALE`&&e.failed===!0}let O=F(()=>[[`OBSERVED TOKENS`,ma(W(a).reduce((e,t)=>e+t.tokens,0))],[`LISTED SESSIONS`,ma(W(a).length)],...[[`WORKING`,`WORKING`],[`AWAITING APPROVAL`,`APPROVAL NEEDED`],[`AWAITING INPUT`,`INPUT NEEDED`],[`ERRORS`,`ERRORS`],[`CHECK · INFERRED`,`CHECK SESSION`]].map(([e,t])=>[e,W(E)?`—`:ma(W(a).filter(e=>t===`ERRORS`?D(e):e.status===t).length)])]),k=F(()=>W(a).filter(e=>[`INPUT NEEDED`,`APPROVAL NEEDED`].includes(e.status)||D(e)).sort((e,t)=>ee(e)-ee(t)));function ee(e){return e.status===`APPROVAL NEEDED`?0:e.status===`INPUT NEEDED`?1:2}let te=F(()=>W(a).filter(e=>e.status===`TURN COMPLETE`&&(!e.readStateKnown||e.unread)&&!W(v).some(t=>t.session===e.id)&&!W(h).some(t=>t.session===e.id&&t.pending))),A=L(``),ne=new Set,re=0,ie=L(void 0);function ae(e){return $.data?.control&&!ba.ids.length&&!W(E)&&e.unread&&e.readRevision&&e.replyTurn&&!e.streaming&&e.contextKind===`LAST REPLY`&&!!e.text&&!W(w)&&!W(h).some(t=>t.session===e.id&&t.pending)}function oe(e){let t=document.getElementById(`content`),n=t?.getBoundingClientRect(),r=n?n.left+t.clientLeft:0,i=n?n.top+t.clientTop:0,a=r+(t?.clientWidth||0),o=i+(t?.clientHeight||0);return Array.from(document.querySelectorAll(`[data-result-session]`)).some(n=>{let s=n.querySelector(`[data-reply-text]`);if(!s)return!1;let c=s.getBoundingClientRect();return t?.contains(n)&&n.dataset.resultSession===e.id&&n.dataset.resultTurn===e.replyTurn&&!n.closest(`[inert], [hidden]`)&&document.visibilityState===`visible`&&c.left
`),fu=K(`
Relative usage/credits are not tokens or quota percentages. Groupings + describe the same usage, not additional consumption.
`,1),pu=K(`// APPROXIMATE`),mu=K(`Partial accounting: totals may still change.
`),hu=K(`
Percentage of this period's historical allowance, not today's limit. May + exceed 100%. This is not a manual/automatic reset log.
`,1),gu=K(`
`,1),_u=K(`
This optional account report is unavailable. Token history remains + available; missing data does not mean zero usage.
`),vu=K(`No usage reported for this day.
`),xu=K(`Selected breakdown unavailable; missing does not mean zero.
`),Su=K(`
History refresh failed. Any displayed history is the last successful + observation.
`),Au=K(`Token history unavailable; other reports may still be available.
`),ju=K(``),Mu=K(``),Nu=K(`LESS ░ ▒ ▓ █ MORE // HOVER FOR DATE AND TOKENS
`,1),Pu=K(`
DAYS
SECONDS
DAYS
OPENAI // UTC
| Date (UTC) | Tokens |
|---|
`,1),Lu=K(`
History unavailable or awaiting a matching account observation. Missing + history is not treated as zero usage.
`),Ru=K(`Account-wide history reported by Codex, not the local Sessions counter. Dates + use UTC. Allowance history is approximate where indicated; reset causes are + not provided.
`,1);function zu(e,t){Ue(t,!0);let n=Q(t,`params`,19,()=>({})),r=L(`daily`);vn(()=>{[`daily`,`weekly`,`cumulative`].includes(n().view||``)&&(R(r,n().view,!0),R(a,0))});let i=L(12),a=L(0),o=F(()=>{let e=$.data?.usage?.dailyUsageBuckets;if(!e)return[];let{start:t,end:n}=Eu(new Date,W(i),W(a)),r=new Map;for(let t of e)!Number.isFinite(t.tokens)||t.tokens<0||r.set(t.startDate,(r.get(t.startDate)||0)+t.tokens);let o=[];for(let e=t;e<=n;e=new Date(e.getTime()+864e5)){let t=e.toISOString().slice(0,10);o.push({date:t,tokens:r.get(t)||0})}return o}),s=F(()=>Math.max(1,...W(o).map(e=>e.tokens))),c=F(()=>W(o).length?new Date(W(o)[0].date+`T00:00:00Z`).getUTCDay():0),l=F(()=>{if(W(r)===`monthly`||W(r)===`weekly`){let e=new Map;for(let t of W(o)){let n=new Date(t.date+`T00:00:00Z`);n.setUTCDate(n.getUTCDate()-n.getUTCDay());let i=W(r)===`weekly`?n.toISOString().slice(0,10):t.date.slice(0,7);e.set(i,(e.get(i)||0)+t.tokens)}return[...e].map(([e,t])=>({date:e,tokens:t}))}let e=0;return W(o).map(t=>({date:t.date,tokens:e+=t.tokens}))});var u=Ru(),d=H(B(u),4);X(d,20,()=>[[`daily`,`Daily`],[`weekly`,`Weekly`],[`monthly`,`Monthly`],[`cumulative`,`Cumulative`],[`breakdown`,`Breakdown`],[`periods`,`Windows`]],Jr,(e,t)=>{var n=F(()=>_(t,2));let i=()=>W(n)[0],o=()=>W(n)[1];var s=Du();let c;var l=V(s,!0);U(()=>{Z(s,`aria-pressed`,W(r)===i()),c=ui(s,1,``,null,c,{active:W(r)===i()}),J(l,o())}),G(`click`,s,()=>{R(r,i(),!0),R(a,0)}),q(e,s)}),P(d);var f=H(d,2),p=z(f),m=e=>{var t=Ou(),n=B(t),r=H(z(n)),o=z(r);o.value=o.__value=6;var s=H(o);s.value=s.__value=12,P(r),gi(r),P(n);var c=H(n),l=H(c);U(()=>l.disabled=W(a)===0),G(`change`,r,()=>R(a,0)),_i(r,()=>W(i),e=>R(i,e)),G(`click`,c,()=>Kt(a)),G(`click`,l,()=>Kt(a,-1)),q(e,t)};Y(p,e=>{W(r)!==`breakdown`&&W(r)!==`periods`&&e(m)}),P(f);var h=H(f,2),g=e=>{q(e,ku())};Y(h,e=>{$.data?.usageError&&e(g)});var v=H(h,2),y=e=>{q(e,Au())};Y(v,e=>{$.data?.usage?.tokenStatus===`UNAVAILABLE`&&W(r)!==`breakdown`&&W(r)!==`periods`&&e(y)});var b=H(v,2),x=e=>{var t=Fr();qr(B(t),()=>W(r),e=>{{let t=F(()=>$.data?.usage?.reports);Cu(e,{get reports(){return W(t)},get mode(){return W(r)}})}}),q(e,t)},S=e=>{var t=Iu(),n=B(t),i=z(n),a=V(H(z(i),2),!0);P(i);var u=H(i,2),d=V(H(z(u),2),!0);P(u);var f=H(u,2),p=H(z(f),2),m=z(p);xe(),P(p),P(f);var h=H(f,2),g=H(z(h),2),_=z(g);xe(),P(g),P(h);var v=H(h,2),y=H(z(v),2),b=z(y);xe(),P(y),P(v),P(n);var x=H(n,4),S=z(x),C=V(S),w=H(S,2),T=e=>{var t=Nu(),n=B(t),r=z(n),i=z(r);X(i,17,()=>Array(W(c)),Jr,(e,t)=>{q(e,ju())}),X(H(i,2),17,()=>W(o),Jr,(e,t)=>{var n=Mu();let r,i;U(e=>{r=ui(n,1,`heat-cell`,null,r,{zero:W(t).tokens===0}),Z(n,`title`,e),i=fi(n,``,i,{opacity:W(t).tokens?.25+.75*W(t).tokens/W(s):1})},[()=>`${W(t).date}: ${ma(W(t).tokens)} tokens`]),q(e,n)}),P(r),P(n),xe(2),q(e,t)},E=e=>{var t=Pu(),n=B(t);{let e=F(()=>W(l).map(e=>e.tokens)),t=F(()=>W(r)+` usage`);yo(n,{get values(){return W(e)},get label(){return W(t)}})}var i=H(n,2),a=z(i),o=V(a,!0),s=V(H(a),!0);P(i),U(e=>{J(o,W(l)[0]?.date),J(s,e)},[()=>W(l).at(-1)?.date]),q(e,t)};Y(w,e=>{W(r)===`daily`?e(T):e(E,-1)});var D=H(w,2),O=H(z(D),2),k=z(O),ee=H(z(k));X(ee,21,()=>W(r)===`daily`?W(o):W(l),Jr,(e,t)=>{var n=Fu(),r=z(n),i=V(r,!0),a=V(H(r),!0);P(n),U(e=>{J(i,W(t).date),J(a,e)},[()=>ma(W(t).tokens)]),q(e,n)}),P(ee),P(k),P(O),P(D),P(x);var te=V(H(x,2));U((e,t,n,r,i,s,c)=>{J(a,e),J(d,t),J(m,`${n??``} `),J(_,`${r??``} `),J(b,`${i??``} `),J(C,`${W(o)[0]?.date??``} — ${s??``}`),J(te,`OBSERVED ${c??``} // CUMULATIVE IS FOR THE SELECTED PERIOD`)},[()=>ma($.data.usage.summary.lifetimeTokens),()=>ma($.data.usage.summary.peakDailyTokens),()=>ma($.data.usage.summary.currentStreakDays),()=>ma($.data.usage.summary.longestRunningTurnSec),()=>ma($.data.usage.summary.longestStreakDays),()=>W(o).at(-1)?.date,()=>ha($.data.usageAt)]),q(e,t)},C=e=>{q(e,Lu())};Y(b,e=>{W(r)===`breakdown`||W(r)===`periods`?e(x):$.data?.usage&&$.data.usage.dailyUsageBuckets!==null?e(S,1):e(C,-1)}),q(e,u),We()}wr([`click`,`change`]);var Bu=K(``),ld=K(`
Connecting to your local Codexometer…
`),ud=K(``),dd=K(``);function fd(e,t){Ue(t,!0);let n={"/":go,"/quota/:view?":go,"/sessions/:id?":lu,"/usage/:view?":zu,"*":Vu},r={quota:/^(?:\/|\/quota(?:\/[^/]+)?\/?)$/,sessions:/^\/sessions(?:\/[^/]+)?\/?$/,usage:/^\/usage(?:\/[^/]+)?\/?$/},i=L(`hacker`),a=L(!0),o=L(void 0);vn(()=>{ca.requests&&dr().then(()=>{W(o)?.focus(),W(o)?.scrollIntoView({block:`nearest`})})});let s=L(void 0),c=[`hacker`,`rust`,`blue-steel`,`ultraviolet`,`nightshade`];vn(()=>{la()}),vn(()=>{if($.data)for(let[e,t]of Object.entries(r))t.test(Xi.location)&&(oa.tab=e)}),Ki(()=>{try{let e=localStorage.getItem(`codexometer.web.theme`);e&&c.includes(e)&&R(i,e,!0)}catch{}return ka()});function l(){try{localStorage.setItem(`codexometer.web.theme`,W(i))}catch{}}var u=dd(),d=z(u),f=z(d),p=z(f);rd(z(p),{}),P(p),Ri(p,e=>R(s,e),()=>W(s)),xe(2),P(f);var m=H(f,2),h=z(m);let g;var v=H(h,1,!0),y=V(H(v));P(m),P(d);var b=H(d,2);X(b,21,()=>Object.entries(r),Jr,(e,t)=>{var n=F(()=>_(W(t),2));let r=()=>W(n)[0],i=()=>W(n)[1],a=F(()=>i().test(Xi.location));var o=sd();let s;var c=V(o,!0);U(e=>{Z(o,`href`,r()===`quota`?`#/quota/`+oa.view:`#/`+r()),Z(o,`aria-current`,W(a)?`page`:void 0),s=ui(o,1,``,null,s,{active:W(a)}),J(c,e)},[()=>r().toUpperCase()]),q(e,o)}),P(b);var x=H(b,2),S=z(x),C=e=>{var t=cd(),n=V(t,!0);U(()=>J(n,$.error)),q(e,t)};Y(S,e=>{$.error&&e(C)});var w=H(S,2),T=e=>{ea(e,{get routes(){return n}})},E=e=>{q(e,ld())};Y(w,e=>{$.data?e(T):$.error||e(E,1)}),P(x);var D=H(x,2),O=z(D),k=V(O),ee=H(O,2),te=V(ee,!0),A=H(ee,2),ne=H(z(A));X(ne,21,()=>c,Jr,(e,t)=>{var n=ud(),r=V(n,!0),i={};U(e=>{J(r,e),i!==(i=W(t))&&(n.value=(n.__value=i)??``)},[()=>W(t).replace(`-`,` `).toUpperCase()]),q(e,n)}),P(ne),Ri(ne,e=>R(o,e),()=>W(o)),gi(ne),P(A),P(D);var re=H(D,2),ie=e=>{od(e,{get target(){return W(s)},onfinish:()=>R(a,!1)})};Y(re,e=>{W(a)&&e(ie)}),P(u),U(()=>{Z(u,`data-theme`,W(i)),Z(u,`data-starting`,W(a)),d.inert=W(a),g=ui(h,1,`lamp`,null,g,{lit:$.connected}),J(v,$.connected?`CONNECTED`:`OFFLINE`),J(y,`EXPERIMENTAL // ${$.data?.control?`SESSION CONTROL`:`READ ONLY`}`),b.inert=W(a),x.inert=W(a),D.inert=W(a),J(k,`v${($.data?.version||`…`)??``} // LOCAL ONLY`),J(te,$.data?.control?`Session control enabled. Stop the server to revoke access.`:`No actions can be sent from this preview.`)}),G(`change`,ne,l),_i(ne,()=>W(i),e=>R(i,e)),q(e,u),We()}wr([`change`]),Vr(fd,{target:document.getElementById(`app`)}); \ No newline at end of file diff --git a/internal/web/dist/index.html b/internal/web/dist/index.html index 7e7d546..e5fbe5e 100644 --- a/internal/web/dist/index.html +++ b/internal/web/dist/index.html @@ -5,7 +5,7 @@