tokentracker-cli 0.5.49 → 0.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as a}from"./main-DQ3-Wn2t.js";const d=["claude","codex","cursor","gemini","kiro","antigravity"],k={claude:"Claude",codex:"Codex",cursor:"Cursor",gemini:"Gemini",kiro:"Kiro",antigravity:"Antigravity"},v={claude:"/brand-logos/claude-code.svg",codex:"/brand-logos/codex.svg",cursor:"/brand-logos/cursor.svg",gemini:"/brand-logos/gemini.svg",kiro:"/brand-logos/kiro.svg",antigravity:"/brand-logos/antigravity.svg"},l="tt.limits.providerOrder",g="tt.limits.providerVisibility";function y(){if(typeof window>"u")return[...d];try{const n=window.localStorage.getItem(l);if(!n)return[...d];const s=JSON.parse(n);if(!Array.isArray(s))return[...d];const o=s.filter(c=>d.includes(c));for(const c of d)o.includes(c)||o.push(c);return o}catch{return[...d]}}function m(){const n=Object.fromEntries(d.map(s=>[s,!0]));if(typeof window>"u")return n;try{const s=window.localStorage.getItem(g);if(!s)return n;const o=JSON.parse(s);if(!o||typeof o!="object")return n;const c={...n};for(const u of d)typeof o[u]=="boolean"&&(c[u]=o[u]);return c}catch{return n}}function L(){const[n,s]=a.useState(y),[o,c]=a.useState(m);a.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(l,JSON.stringify(n))}catch{}},[n]),a.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(g,JSON.stringify(o))}catch{}},[o]),a.useEffect(()=>{if(typeof window>"u")return;const r=t=>{t.key===l&&s(y()),t.key===g&&c(m())};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)},[]);const u=a.useCallback(r=>{c(t=>({...t,[r]:!t[r]}))},[]),b=a.useCallback(r=>{s(t=>{const e=t.indexOf(r);if(e<=0)return t;const i=[...t];return[i[e-1],i[e]]=[i[e],i[e-1]],i})},[]),O=a.useCallback(r=>{s(t=>{const e=t.indexOf(r);if(e<0||e>=t.length-1)return t;const i=[...t];return[i[e],i[e+1]]=[i[e+1],i[e]],i})},[]),x=a.useCallback((r,t)=>{r!==t&&s(e=>{const i=e.indexOf(r),w=e.indexOf(t);if(i<0||w<0)return e;const f=[...e],[S]=f.splice(i,1);return f.splice(w,0,S),f})},[]),I=a.useCallback(()=>{s([...d]),c(Object.fromEntries(d.map(r=>[r,!0])))},[]),E=a.useMemo(()=>n.filter(r=>o[r]!==!1),[n,o]);return{order:n,visibility:o,visibleOrdered:E,toggle:u,moveUp:b,moveDown:O,moveToward:x,reset:I}}export{v as L,k as a,L as u};
1
+ import{r as a}from"./main-C3JziweS.js";const d=["claude","codex","cursor","gemini","kiro","antigravity"],k={claude:"Claude",codex:"Codex",cursor:"Cursor",gemini:"Gemini",kiro:"Kiro",antigravity:"Antigravity"},v={claude:"/brand-logos/claude-code.svg",codex:"/brand-logos/codex.svg",cursor:"/brand-logos/cursor.svg",gemini:"/brand-logos/gemini.svg",kiro:"/brand-logos/kiro.svg",antigravity:"/brand-logos/antigravity.svg"},l="tt.limits.providerOrder",g="tt.limits.providerVisibility";function y(){if(typeof window>"u")return[...d];try{const n=window.localStorage.getItem(l);if(!n)return[...d];const s=JSON.parse(n);if(!Array.isArray(s))return[...d];const o=s.filter(c=>d.includes(c));for(const c of d)o.includes(c)||o.push(c);return o}catch{return[...d]}}function m(){const n=Object.fromEntries(d.map(s=>[s,!0]));if(typeof window>"u")return n;try{const s=window.localStorage.getItem(g);if(!s)return n;const o=JSON.parse(s);if(!o||typeof o!="object")return n;const c={...n};for(const u of d)typeof o[u]=="boolean"&&(c[u]=o[u]);return c}catch{return n}}function L(){const[n,s]=a.useState(y),[o,c]=a.useState(m);a.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(l,JSON.stringify(n))}catch{}},[n]),a.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(g,JSON.stringify(o))}catch{}},[o]),a.useEffect(()=>{if(typeof window>"u")return;const r=t=>{t.key===l&&s(y()),t.key===g&&c(m())};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)},[]);const u=a.useCallback(r=>{c(t=>({...t,[r]:!t[r]}))},[]),b=a.useCallback(r=>{s(t=>{const e=t.indexOf(r);if(e<=0)return t;const i=[...t];return[i[e-1],i[e]]=[i[e],i[e-1]],i})},[]),O=a.useCallback(r=>{s(t=>{const e=t.indexOf(r);if(e<0||e>=t.length-1)return t;const i=[...t];return[i[e],i[e+1]]=[i[e+1],i[e]],i})},[]),x=a.useCallback((r,t)=>{r!==t&&s(e=>{const i=e.indexOf(r),w=e.indexOf(t);if(i<0||w<0)return e;const f=[...e],[S]=f.splice(i,1);return f.splice(w,0,S),f})},[]),I=a.useCallback(()=>{s([...d]),c(Object.fromEntries(d.map(r=>[r,!0])))},[]),E=a.useMemo(()=>n.filter(r=>o[r]!==!1),[n,o]);return{order:n,visibility:o,visibleOrdered:E,toggle:u,moveUp:b,moveDown:O,moveToward:x,reset:I}}export{v as L,k as a,L as u};
@@ -1 +1 @@
1
- import{r,aM as l}from"./main-DQ3-Wn2t.js";function y(i){const[o,a]=r.useState(null),[u,s]=r.useState(null),[c,f]=r.useState(!0),n=!!i?.initialRefresh,g=r.useCallback(async()=>{try{const e=await l({refresh:!0});a(e&&typeof e=="object"?e:null),s(null)}catch(e){s(e?.message||String(e))}},[]);return r.useEffect(()=>{let e=!1;return(async()=>{try{const t=await l(n?{refresh:!0}:{});if(e)return;a(t&&typeof t=="object"?t:null),s(null)}catch(t){if(e)return;s(t?.message||String(t))}finally{e||f(!1)}})(),()=>{e=!0}},[n]),{data:o,error:u,isLoading:c,refresh:g}}export{y as u};
1
+ import{r,aM as l}from"./main-C3JziweS.js";function y(i){const[o,a]=r.useState(null),[u,s]=r.useState(null),[c,f]=r.useState(!0),n=!!i?.initialRefresh,g=r.useCallback(async()=>{try{const e=await l({refresh:!0});a(e&&typeof e=="object"?e:null),s(null)}catch(e){s(e?.message||String(e))}},[]);return r.useEffect(()=>{let e=!1;return(async()=>{try{const t=await l(n?{refresh:!0}:{});if(e)return;a(t&&typeof t=="object"?t:null),s(null)}catch(t){if(e)return;s(t?.message||String(t))}finally{e||f(!1)}})(),()=>{e=!0}},[n]),{data:o,error:u,isLoading:c,refresh:g}}export{y as u};
@@ -135,7 +135,7 @@
135
135
  ]
136
136
  }
137
137
  </script>
138
- <script type="module" crossorigin src="/assets/main-DQ3-Wn2t.js"></script>
138
+ <script type="module" crossorigin src="/assets/main-C3JziweS.js"></script>
139
139
  <link rel="stylesheet" crossorigin href="/assets/main-Dj-ssGgk.css">
140
140
  </head>
141
141
  <body>
@@ -51,7 +51,7 @@
51
51
  "description": "Shareable Token Tracker dashboard snapshot."
52
52
  }
53
53
  </script>
54
- <script type="module" crossorigin src="/assets/main-DQ3-Wn2t.js"></script>
54
+ <script type="module" crossorigin src="/assets/main-C3JziweS.js"></script>
55
55
  <link rel="stylesheet" crossorigin href="/assets/main-Dj-ssGgk.css">
56
56
  </head>
57
57
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokentracker-cli",
3
- "version": "0.5.49",
3
+ "version": "0.5.50",
4
4
  "description": "Token usage tracker for AI agent CLIs (Claude Code, Codex, Cursor, Kiro, Gemini, OpenCode, OpenClaw)",
5
5
  "main": "src/cli.js",
6
6
  "bin": {