@hashimkarim/usagestat-darwin-arm64 2.0.0-alpha.3 → 2.3.2

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.
Files changed (284) hide show
  1. package/native-manifest.json +1532 -134
  2. package/package.json +235 -2
  3. package/plugins/UPSTREAM-LICENSES.md +6 -2
  4. package/plugins/_provider-icons/LICENSE +21 -0
  5. package/plugins/_provider-icons/NOTICE +12 -0
  6. package/plugins/_provider-icons/licenses/CodexBar-MIT.txt +21 -0
  7. package/plugins/_provider-icons/licenses/LobeHub-MIT.txt +21 -0
  8. package/plugins/_provider-icons/licenses/UsageStat-Bar-MIT.txt +21 -0
  9. package/plugins/_provider-icons/manifest.json +1219 -0
  10. package/plugins/_provider-icons/provenance.json +269 -0
  11. package/plugins/_provider-icons/source.json +4 -0
  12. package/plugins/abacus-ai/icon-color.svg +18 -0
  13. package/plugins/abliteration/LICENSE +21 -0
  14. package/plugins/abliteration/icon.svg +5 -0
  15. package/plugins/abliteration/plugin.js +89 -0
  16. package/plugins/abliteration/plugin.json +24 -0
  17. package/plugins/aerostack/LICENSE +21 -0
  18. package/plugins/aerostack/icon.svg +1 -0
  19. package/plugins/aerostack/plugin.js +94 -0
  20. package/plugins/aerostack/plugin.json +24 -0
  21. package/plugins/aixy/LICENSE +21 -0
  22. package/plugins/aixy/icon.svg +1 -0
  23. package/plugins/aixy/plugin.js +266 -0
  24. package/plugins/aixy/plugin.json +32 -0
  25. package/plugins/antigravity/plugin.js +189 -65
  26. package/plugins/antigravity-cli/icon-color.svg +1 -0
  27. package/plugins/antigravity-cli/icon.svg +1 -3
  28. package/plugins/antigravity-cli/plugin.js +32 -20
  29. package/plugins/antigravity-ide/icon-color.svg +1 -0
  30. package/plugins/antigravity-ide/icon.svg +1 -3
  31. package/plugins/antigravity-ide/plugin.js +19 -7
  32. package/plugins/atlascloud/LICENSE +21 -0
  33. package/plugins/atlascloud/icon-color.svg +1 -0
  34. package/plugins/atlascloud/icon.svg +1 -0
  35. package/plugins/atlascloud/plugin.js +54 -0
  36. package/plugins/atlascloud/plugin.json +24 -0
  37. package/plugins/augment/icon-color.svg +14 -0
  38. package/plugins/bifrost/LICENSE +21 -0
  39. package/plugins/bifrost/icon.svg +3 -0
  40. package/plugins/bifrost/plugin.js +366 -0
  41. package/plugins/bifrost/plugin.json +31 -0
  42. package/plugins/chatbox/LICENSE +21 -0
  43. package/plugins/chatbox/icon.svg +4 -0
  44. package/plugins/chatbox/plugin.js +208 -0
  45. package/plugins/chatbox/plugin.json +24 -0
  46. package/plugins/claude/plugin.js +340 -153
  47. package/plugins/claude/plugin.json +1 -1
  48. package/plugins/claudeplatform/LICENSE +21 -0
  49. package/plugins/claudeplatform/icon.svg +3 -0
  50. package/plugins/claudeplatform/plugin.js +244 -0
  51. package/plugins/claudeplatform/plugin.json +25 -0
  52. package/plugins/clinepass/plugin.js +19 -3
  53. package/plugins/codebuff/icon-color.svg +92 -0
  54. package/plugins/coderabbit/plugin.js +25 -0
  55. package/plugins/coderabbit/plugin.json +12 -0
  56. package/plugins/codex/plugin.js +15 -8
  57. package/plugins/codex/plugin.json +11 -2
  58. package/plugins/command-code/icon-color.svg +3 -0
  59. package/plugins/command-code/plugin.js +7 -3
  60. package/plugins/copilot/icon.svg +1 -1
  61. package/plugins/copilot/plugin.json +1 -0
  62. package/plugins/cosmic/LICENSE +21 -0
  63. package/plugins/cosmic/icon.svg +1 -0
  64. package/plugins/cosmic/plugin.js +134 -0
  65. package/plugins/cosmic/plugin.json +32 -0
  66. package/plugins/crof/icon-color.svg +3 -0
  67. package/plugins/crofai/icon-color.svg +3 -0
  68. package/plugins/crofai/icon.svg +2 -15
  69. package/plugins/cursor/icon-color.svg +1 -0
  70. package/plugins/cursor/plugin.js +51 -14
  71. package/plugins/cursor-nightly/plugin.json +1 -1
  72. package/plugins/deepinfra/icon-color.svg +1 -0
  73. package/plugins/deepinfra/icon.svg +1 -4
  74. package/plugins/deepseek/plugin.js +150 -59
  75. package/plugins/deepseek/plugin.json +3 -1
  76. package/plugins/devin/plugin.js +3 -0
  77. package/plugins/devpass/LICENSE +21 -0
  78. package/plugins/devpass/icon.svg +3 -0
  79. package/plugins/devpass/plugin.js +120 -0
  80. package/plugins/devpass/plugin.json +24 -0
  81. package/plugins/elevenlabs/icon-color.svg +4 -0
  82. package/plugins/exa/LICENSE +21 -0
  83. package/plugins/exa/icon-color.svg +1 -0
  84. package/plugins/exa/icon.svg +1 -0
  85. package/plugins/exa/plugin.js +75 -0
  86. package/plugins/exa/plugin.json +32 -0
  87. package/plugins/factory/icon-color.svg +1 -0
  88. package/plugins/fal/LICENSE +21 -0
  89. package/plugins/fal/icon-color.svg +1 -0
  90. package/plugins/fal/icon.svg +1 -0
  91. package/plugins/fal/plugin.js +74 -0
  92. package/plugins/fal/plugin.json +24 -0
  93. package/plugins/fireworks-ai/icon-color.svg +1 -0
  94. package/plugins/fireworks-ai/icon.svg +1 -6
  95. package/plugins/flora/LICENSE +21 -0
  96. package/plugins/flora/icon.svg +4 -0
  97. package/plugins/flora/plugin.js +93 -0
  98. package/plugins/flora/plugin.json +32 -0
  99. package/plugins/futureagi/LICENSE +21 -0
  100. package/plugins/futureagi/icon.svg +24 -0
  101. package/plugins/futureagi/plugin.js +139 -0
  102. package/plugins/futureagi/plugin.json +32 -0
  103. package/plugins/gemini-apps/LICENSE +21 -0
  104. package/plugins/gemini-apps/icon-color.svg +1 -0
  105. package/plugins/gemini-apps/icon.svg +1 -0
  106. package/plugins/gemini-apps/plugin.js +141 -0
  107. package/plugins/gemini-apps/plugin.json +25 -0
  108. package/plugins/gitkraken/LICENSE +21 -0
  109. package/plugins/gitkraken/icon.svg +2 -0
  110. package/plugins/gitkraken/plugin.js +158 -0
  111. package/plugins/gitkraken/plugin.json +32 -0
  112. package/plugins/googledeveloper/LICENSE +21 -0
  113. package/plugins/googledeveloper/icon.svg +3 -0
  114. package/plugins/googledeveloper/plugin.js +204 -0
  115. package/plugins/googledeveloper/plugin.json +25 -0
  116. package/plugins/grok/icon-color.svg +1 -0
  117. package/plugins/groqcloud/icon-color.svg +1 -0
  118. package/plugins/helmcode/LICENSE +21 -0
  119. package/plugins/helmcode/icon.svg +5 -0
  120. package/plugins/helmcode/plugin.js +253 -0
  121. package/plugins/helmcode/plugin.json +32 -0
  122. package/plugins/huggingface/LICENSE +21 -0
  123. package/plugins/huggingface/icon-color.svg +1 -0
  124. package/plugins/huggingface/icon.svg +1 -0
  125. package/plugins/huggingface/plugin.js +298 -0
  126. package/plugins/huggingface/plugin.json +26 -0
  127. package/plugins/hyper/LICENSE +21 -0
  128. package/plugins/hyper/plugin.js +137 -0
  129. package/plugins/hyper/plugin.json +27 -0
  130. package/plugins/jetbrains-ai-assistant/LICENSE +22 -0
  131. package/plugins/jetbrains-ai-assistant/plugin.js +502 -16
  132. package/plugins/jetbrains-ai-assistant/plugin.json +27 -4
  133. package/plugins/kilo/icon-color.svg +1 -0
  134. package/plugins/kimi/plugin.js +54 -14
  135. package/plugins/kimi/plugin.json +46 -6
  136. package/plugins/langdock/LICENSE +21 -0
  137. package/plugins/langdock/icon.svg +4 -0
  138. package/plugins/langdock/plugin.js +106 -0
  139. package/plugins/langdock/plugin.json +25 -0
  140. package/plugins/linkup/LICENSE +21 -0
  141. package/plugins/linkup/icon.svg +10 -0
  142. package/plugins/linkup/plugin.js +46 -0
  143. package/plugins/linkup/plugin.json +24 -0
  144. package/plugins/litellm/plugin.js +54 -3
  145. package/plugins/lithosai/LICENSE +21 -0
  146. package/plugins/lithosai/icon.svg +1 -0
  147. package/plugins/lithosai/plugin.js +130 -0
  148. package/plugins/lithosai/plugin.json +26 -0
  149. package/plugins/llmman/LICENSE +21 -0
  150. package/plugins/llmman/icon.svg +4 -0
  151. package/plugins/llmman/plugin.js +138 -0
  152. package/plugins/llmman/plugin.json +31 -0
  153. package/plugins/longcat/icon-color.svg +1 -0
  154. package/plugins/longcat/icon.svg +1 -4
  155. package/plugins/manus/icon-color.svg +6 -0
  156. package/plugins/mimo/icon-color.svg +4 -0
  157. package/plugins/mimo/icon.svg +4 -1
  158. package/plugins/mistral/plugin.js +164 -27
  159. package/plugins/moonshot/icon-color.svg +1 -0
  160. package/plugins/munito/LICENSE +21 -0
  161. package/plugins/munito/icon.svg +7 -0
  162. package/plugins/munito/plugin.js +171 -0
  163. package/plugins/munito/plugin.json +24 -0
  164. package/plugins/muse/LICENSE +21 -0
  165. package/plugins/muse/icon.svg +3 -0
  166. package/plugins/muse/plugin.js +288 -0
  167. package/plugins/muse/plugin.json +34 -0
  168. package/plugins/museai/LICENSE +21 -0
  169. package/plugins/museai/icon.svg +3 -0
  170. package/plugins/museai/plugin.js +161 -0
  171. package/plugins/museai/plugin.json +26 -0
  172. package/plugins/nous/LICENSE +21 -0
  173. package/plugins/nous/icon-color.svg +1 -0
  174. package/plugins/nous/icon.svg +1 -0
  175. package/plugins/nous/plugin.js +129 -0
  176. package/plugins/nous/plugin.json +32 -0
  177. package/plugins/ollama/icon-color.svg +1 -0
  178. package/plugins/ollama/plugin.js +58 -0
  179. package/plugins/openai-api/icon-color.svg +1 -0
  180. package/plugins/opencode/icon-color.svg +1 -0
  181. package/plugins/opencode-go/icon-color.svg +1 -0
  182. package/plugins/opencode-go/plugin.js +104 -37
  183. package/plugins/opendesign/LICENSE +21 -0
  184. package/plugins/opendesign/icon.svg +4 -0
  185. package/plugins/opendesign/plugin.js +108 -0
  186. package/plugins/opendesign/plugin.json +25 -0
  187. package/plugins/openrouter/icon-color.svg +1 -0
  188. package/plugins/parallel/LICENSE +21 -0
  189. package/plugins/parallel/icon.svg +11 -0
  190. package/plugins/parallel/plugin.js +97 -0
  191. package/plugins/parallel/plugin.json +25 -0
  192. package/plugins/perplexity/LICENSE +22 -0
  193. package/plugins/perplexity/plugin.js +122 -0
  194. package/plugins/perplexity/plugin.json +36 -7
  195. package/plugins/pi/plugin.js +113 -0
  196. package/plugins/pi/plugin.json +11 -0
  197. package/plugins/qwencloud/LICENSE +21 -0
  198. package/plugins/qwencloud/icon-color.svg +1 -0
  199. package/plugins/qwencloud/icon.svg +1 -4
  200. package/plugins/qwencloud/plugin.js +197 -0
  201. package/plugins/qwencloud/plugin.json +17 -0
  202. package/plugins/raycast/LICENSE +21 -0
  203. package/plugins/raycast/icon.svg +4 -0
  204. package/plugins/raycast/plugin.js +179 -0
  205. package/plugins/raycast/plugin.json +32 -0
  206. package/plugins/replicate/LICENSE +21 -0
  207. package/plugins/replicate/icon-color.svg +1 -0
  208. package/plugins/replicate/icon.svg +1 -0
  209. package/plugins/replicate/plugin.js +170 -0
  210. package/plugins/replicate/plugin.json +25 -0
  211. package/plugins/sailresearch/LICENSE +21 -0
  212. package/plugins/sailresearch/icon.svg +4 -0
  213. package/plugins/sailresearch/plugin.js +104 -0
  214. package/plugins/sailresearch/plugin.json +24 -0
  215. package/plugins/siliconflow/LICENSE +21 -0
  216. package/plugins/siliconflow/icon.svg +3 -0
  217. package/plugins/siliconflow/plugin.js +87 -0
  218. package/plugins/siliconflow/plugin.json +32 -0
  219. package/plugins/sofya/LICENSE +21 -0
  220. package/plugins/sofya/icon.svg +3 -0
  221. package/plugins/sofya/plugin.js +86 -0
  222. package/plugins/sofya/plugin.json +24 -0
  223. package/plugins/soniox/LICENSE +21 -0
  224. package/plugins/soniox/icon.svg +3 -0
  225. package/plugins/soniox/plugin.js +103 -0
  226. package/plugins/soniox/plugin.json +24 -0
  227. package/plugins/synthetic/icon-color.svg +14 -0
  228. package/plugins/synthetic/plugin.js +12 -0
  229. package/plugins/synthetic/plugin.json +51 -9
  230. package/plugins/tavily/LICENSE +21 -0
  231. package/plugins/tavily/icon.svg +3 -0
  232. package/plugins/tavily/plugin.js +61 -0
  233. package/plugins/tavily/plugin.json +24 -0
  234. package/plugins/tinyapi/LICENSE +21 -0
  235. package/plugins/tinyapi/icon.svg +4 -0
  236. package/plugins/tinyapi/plugin.js +73 -0
  237. package/plugins/tinyapi/plugin.json +25 -0
  238. package/plugins/traecn/LICENSE +21 -0
  239. package/plugins/traecn/icon.svg +3 -0
  240. package/plugins/traecn/plugin.js +103 -0
  241. package/plugins/traecn/plugin.json +25 -0
  242. package/plugins/tripo/LICENSE +21 -0
  243. package/plugins/tripo/icon.svg +4 -0
  244. package/plugins/tripo/plugin.js +60 -0
  245. package/plugins/tripo/plugin.json +24 -0
  246. package/plugins/typesafe/LICENSE +21 -0
  247. package/plugins/typesafe/icon.svg +4 -0
  248. package/plugins/typesafe/plugin.js +181 -0
  249. package/plugins/typesafe/plugin.json +25 -0
  250. package/plugins/v0/LICENSE +21 -0
  251. package/plugins/v0/icon-color.svg +1 -0
  252. package/plugins/v0/icon.svg +1 -0
  253. package/plugins/v0/plugin.js +219 -0
  254. package/plugins/v0/plugin.json +32 -0
  255. package/plugins/venice/plugin.js +50 -1
  256. package/plugins/venice/plugin.json +2 -1
  257. package/plugins/vercel/LICENSE +21 -0
  258. package/plugins/vercel/icon-color.svg +1 -0
  259. package/plugins/vercel/icon.svg +1 -0
  260. package/plugins/vercel/plugin.js +202 -0
  261. package/plugins/vercel/plugin.json +54 -0
  262. package/plugins/windsurf/icon-color.svg +1 -0
  263. package/plugins/workbuddy/LICENSE +21 -0
  264. package/plugins/workbuddy/icon.svg +1 -0
  265. package/plugins/workbuddy/plugin.js +318 -0
  266. package/plugins/workbuddy/plugin.json +63 -0
  267. package/plugins/xai/icon-color.svg +1 -0
  268. package/plugins/xai/icon.svg +1 -7
  269. package/plugins/xai/plugin.js +9 -0
  270. package/plugins/xapi/LICENSE +21 -0
  271. package/plugins/xapi/icon.svg +1 -0
  272. package/plugins/xapi/plugin.js +90 -0
  273. package/plugins/xapi/plugin.json +25 -0
  274. package/plugins/xkiro/LICENSE +21 -0
  275. package/plugins/xkiro/icon.svg +1 -0
  276. package/plugins/xkiro/plugin.js +104 -0
  277. package/plugins/xkiro/plugin.json +24 -0
  278. package/plugins/zai/icon-color.svg +1 -0
  279. package/plugins/zai/plugin.js +5 -1
  280. package/plugins/zenmux/icon-color.svg +1 -0
  281. package/plugins/zenmux/icon.svg +1 -3
  282. package/usagestat +0 -0
  283. package/usagestatd +0 -0
  284. package/plugins/cursor-nightly/plugin.js +0 -1416
@@ -0,0 +1,25 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "traecn",
4
+ "name": "Trae CN",
5
+ "version": "0.1.0",
6
+ "entry": "plugin.js",
7
+ "enabledByDefault": false,
8
+ "supportedModes": [
9
+ "web"
10
+ ],
11
+ "autoMode": "web",
12
+ "usageDashboardUrl": "https://www.trae.cn",
13
+ "webUrl": "https://trae.cn",
14
+ "envVars": [
15
+ "TRAECN_COOKIE"
16
+ ],
17
+ "setupFields": [],
18
+ "upstream": {
19
+ "repository": "https://github.com/steipete/CodexBar",
20
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
21
+ "path": "Sources/CodexBarCore/Resources/Plugins/traecn.js",
22
+ "sha256": "a41123c0e7220f6c5577abd64c7ce3c2854d59ffdd4a7e92a439099dc7068042",
23
+ "license": "MIT"
24
+ }
25
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="11.5 0 100 100">
2
+ <path d="M91.473 8.51074H33.043L41.3462 22.6625H65.4259L53.3138 43.2764L58.7833 52.5905C59.3789 53.6014 60.4439 54.2151 61.6172 54.2151C62.7905 54.2151 63.8555 53.6014 64.4512 52.5905L82.0325 22.6625H107.195C106.311 14.5758 99.5958 8.51074 91.4549 8.51074H91.473Z" fill="currentColor"/>
3
+ <path d="M61.6539 73.4931C59.4337 73.4931 57.4482 72.3559 56.3291 70.4425L21.5273 11.2002C15.7511 15.5143 12.5019 24.4494 17.0146 32.139L47.755 84.4679C50.6792 89.4499 55.8777 92.4283 61.672 92.4283C67.4482 92.4283 72.6649 89.4499 75.5891 84.4679L105.084 34.2329H88.2606L66.997 70.4245C65.8778 72.3378 63.8742 73.475 61.672 73.475L61.6539 73.4931Z" fill="currentColor"/>
4
+ </svg>
@@ -0,0 +1,60 @@
1
+ // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
+ globalThis.__usagestat_bundled_options = {"labels":["Credits","Reserved","Additional"],"defaults":{},"autoMode":"api"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/tripo.js
5
+ defineProvider({
6
+ id: "tripo",
7
+ name: "Tripo",
8
+ endpoints: ["https://openapi.tripo3d.ai"],
9
+ auth: { type: "bearer", secret: "TRIPO_API_KEY" },
10
+ settings: [
11
+ { key: "TRIPO_API_KEY", title: "API key", type: "secure" },
12
+ { key: "MESSAGES", title: "Tripo", type: "plain" },
13
+ ],
14
+ capabilities: ["http-status"],
15
+ async fetchUsage(ctx) {
16
+ const messages = JSON.parse(ctx.settings.get("MESSAGES") || "{}");
17
+ const message = (key) => messages[key] || key;
18
+ const response = await ctx.http.get("https://openapi.tripo3d.ai/v3/account/balance");
19
+ if (response.status === 401) throw ctx.fail.authenticationExpired(message("Check your API key in Settings."));
20
+ if (response.status === 403) throw ctx.fail.permissionDenied(message("Check your API key in Settings."));
21
+ if (response.status === 429)
22
+ throw ctx.fail.rateLimited(message("Tripo is rate limiting requests. Try again later."));
23
+ if (response.status >= 500)
24
+ throw ctx.fail.providerUnavailable(message("Tripo request failed. Try refreshing later."));
25
+ if (response.status !== 200) throw ctx.fail.apiFailure(message("Tripo request failed. Try refreshing later."));
26
+ const fail = () => {
27
+ throw ctx.fail.parseFailure(message("Tripo returned an unrecognized response. Update CodexBar and try again."));
28
+ };
29
+ let body;
30
+ try {
31
+ body = JSON.parse(response.bodyText);
32
+ } catch (error) {
33
+ void error;
34
+ return fail();
35
+ }
36
+ if (!body || typeof body !== "object" || Array.isArray(body) || !Number.isInteger(body.code)) return fail();
37
+ if (body.code !== 0) throw ctx.fail.apiFailure(message("Tripo request failed. Try refreshing later."));
38
+ if (!body.data || typeof body.data !== "object" || Array.isArray(body.data)) return fail();
39
+ const credits = (value) =>
40
+ typeof value === "number" && Number.isFinite(value) && value >= 0
41
+ ? ctx.format.number(value, { maximumFractionDigits: 2 })
42
+ : fail();
43
+ return {
44
+ details: [
45
+ {
46
+ title: "Credits",
47
+ rows: [
48
+ // The API balance is already available credits; frozen credits are a separate reservation.
49
+ { label: "Balance", value: credits(body.data.balance) },
50
+ { label: "Reserved", value: credits(body.data.frozen) },
51
+ ],
52
+ },
53
+ ],
54
+ dataConfidence: "exact",
55
+ };
56
+ },
57
+ });
58
+
59
+ // END UPSTREAM
60
+ })(globalThis.defineProvider);
@@ -0,0 +1,24 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "tripo",
4
+ "name": "Tripo",
5
+ "version": "0.1.0",
6
+ "entry": "plugin.js",
7
+ "enabledByDefault": false,
8
+ "supportedModes": [
9
+ "api"
10
+ ],
11
+ "autoMode": "api",
12
+ "usageDashboardUrl": "https://platform.tripo3d.ai",
13
+ "envVars": [
14
+ "TRIPO_API_KEY"
15
+ ],
16
+ "setupFields": [],
17
+ "upstream": {
18
+ "repository": "https://github.com/steipete/CodexBar",
19
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
20
+ "path": "Sources/CodexBarCore/Resources/Plugins/tripo.js",
21
+ "sha256": "78325930a28ec25a2a5164c0f596d8e003fdae966aa53c52c0f761e7d19dfb21",
22
+ "license": "MIT"
23
+ }
24
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ <svg fill="currentColor" viewBox="24.68 24.68 350.65 350.65" xmlns="http://www.w3.org/2000/svg">
2
+ <title>TypeSafe</title>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M256.407 86.5946V138.33L303.032 168.589L303.045 283.148L199.987 350L143.594 313.42V260.25L96.9556 229.993V116.866L101.395 113.977L199.999 50L256.407 86.5946ZM171.208 308.124L199.975 326.788L275.394 277.838L246.639 259.188L171.208 308.124ZM209.728 179.157V230.005L163.078 260.264V290.192L236.923 242.283V161.517L209.728 179.157ZM256.407 242.31L283.55 259.92V179.144L256.407 161.532V242.31ZM124.582 224.709L153.337 243.374L182.104 224.709L153.349 206.057L124.582 224.709ZM116.438 127.421V206.791L143.594 189.166V138.318L190.258 108.034V79.5105L116.438 127.421ZM163.078 189.154L190.246 206.779V179.144L163.078 161.517V189.154ZM171.208 143.589L199.999 162.266L228.768 143.601L199.987 124.925L171.208 143.589ZM209.742 108.034L236.923 125.671V97.1619L209.742 79.5105V108.034Z" />
4
+ </svg>
@@ -0,0 +1,181 @@
1
+ // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
+ globalThis.__usagestat_bundled_options = {"labels":["Spend","Spend","Additional"],"defaults":{},"autoMode":"web"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/typesafe.js
5
+ function _optionalChain(ops) {
6
+ let lastAccessLHS = undefined;
7
+ let value = ops[0];
8
+ let i = 1;
9
+ while (i < ops.length) {
10
+ const op = ops[i];
11
+ const fn = ops[i + 1];
12
+ i += 2;
13
+ if ((op === "optionalAccess" || op === "optionalCall") && value == null) {
14
+ return undefined;
15
+ }
16
+ if (op === "access" || op === "optionalAccess") {
17
+ lastAccessLHS = value;
18
+ value = fn(value);
19
+ } else if (op === "call" || op === "optionalCall") {
20
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
21
+ lastAccessLHS = undefined;
22
+ }
23
+ }
24
+ return value;
25
+ }
26
+
27
+ const billingOverviewURL = "https://console.typesafe.ai/api/billing/overview";
28
+ const overviewFailure =
29
+ "TypeSafe billing overview could not be read. Open https://console.typesafe.ai/billing to check access; if the page opens, report the integration failure.";
30
+ // Cloudflare blocks the Linux default UA (it contains "curl/"), so send a browser-style one.
31
+ const userAgent =
32
+ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36";
33
+
34
+ defineProvider({
35
+ id: "typesafe",
36
+ name: "TypeSafe",
37
+ endpoints: ["https://console.typesafe.ai"],
38
+ settings: [],
39
+ capabilities: ["browser-cookies", "http-status"],
40
+ cookieDomains: ["console.typesafe.ai", "typesafe.ai"],
41
+ async fetchUsage(ctx) {
42
+ const record = (value) =>
43
+ value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
44
+ const expired = () => {
45
+ throw ctx.fail.authenticationExpired("TypeSafe session expired. Sign in again or paste a fresh Cookie header.");
46
+ };
47
+ const retryAfter = (response) => {
48
+ const raw = response.headers["retry-after"];
49
+ const value = raw && /^\d+(?:\.\d+)?$/.test(raw.trim()) ? Number(raw) : 1;
50
+ return Number.isFinite(value) ? Math.min(10, value) : 1;
51
+ };
52
+ // A redirect only means the session is gone when it targets a login/SSO route. The billing overview
53
+ // itself may redirect for benign route moves (for example /settings/billing -> /billing).
54
+ const loginRedirect = (location) => {
55
+ if (typeof location !== "string" || !location.trim()) return false;
56
+ const target = location.trim();
57
+ const loginPath = /(?:^|[/?#])(?:login|sign-?in|signin|auth|oauth|sso)(?:[/?#]|$)/i;
58
+ if (!/^(?:https?:)?\/\//i.test(target)) return loginPath.test(target);
59
+ const hostMatch = /^(?:https?:)?\/\/([^/?#]+)/i.exec(target);
60
+ const hostname = hostMatch ? hostMatch[1].toLowerCase().replace(/:\d+$/, "") : "";
61
+ const knownHost = hostname === "typesafe.ai" || hostname.endsWith(".typesafe.ai");
62
+ return !knownHost || loginPath.test(target);
63
+ };
64
+ // The billing overview API refuses requests that do not look same-origin, even with a valid session.
65
+ const validate = (response) => {
66
+ if (response.status === 403 && /cross-origin request refused/i.test(response.bodyText))
67
+ throw ctx.fail.apiFailure(overviewFailure);
68
+ if (response.status === 401 || response.status === 403) expired();
69
+ if (response.status >= 300 && response.status < 400) {
70
+ if (loginRedirect(response.headers["location"])) expired();
71
+ throw ctx.fail.apiFailure(overviewFailure);
72
+ }
73
+ if (response.status === 429)
74
+ throw ctx.fail.rateLimited("TypeSafe rate limit reached.", { retryAfterSeconds: retryAfter(response) });
75
+ if (response.status === 408 || response.status >= 500)
76
+ throw ctx.fail.providerUnavailable("TypeSafe billing is unavailable.", {
77
+ retryAfterSeconds: retryAfter(response),
78
+ });
79
+ if (response.status < 200 || response.status >= 300)
80
+ throw ctx.fail.apiFailure(`TypeSafe returned HTTP ${response.status}.`);
81
+ };
82
+ const cookie = await ctx.browser.cookieHeader("typesafe.ai");
83
+ const response = await ctx.http.get(billingOverviewURL, {
84
+ headers: {
85
+ Cookie: cookie,
86
+ Accept: "application/json",
87
+ Origin: "https://console.typesafe.ai",
88
+ Referer: "https://console.typesafe.ai/billing",
89
+ "Sec-Fetch-Site": "same-origin",
90
+ "Sec-Fetch-Mode": "cors",
91
+ "Sec-Fetch-Dest": "empty",
92
+ "User-Agent": userAgent,
93
+ },
94
+ timeoutSeconds: 10,
95
+ });
96
+ validate(response);
97
+ // A signed-out console can answer with an HTML login page instead of JSON.
98
+ const body = response.bodyText.trim();
99
+ if (body.startsWith("<")) {
100
+ if (/(?:login|sign[-\s]?in|\(auth\))/i.test(body)) expired();
101
+ throw ctx.fail.apiFailure(overviewFailure);
102
+ }
103
+ let payload;
104
+ try {
105
+ payload = JSON.parse(body);
106
+ } catch (error) {
107
+ void error;
108
+ throw ctx.fail.parseFailure(overviewFailure);
109
+ }
110
+ const billing = record(_optionalChain([record, "call", (_) => _(payload), "optionalAccess", (_2) => _2.billing]));
111
+ if (!billing) throw ctx.fail.parseFailure(overviewFailure);
112
+ const number = (value) => (typeof value === "number" && Number.isFinite(value) ? value : undefined);
113
+ const spent = number(billing.spent);
114
+ const balance = number(billing.balance);
115
+ if (spent === undefined || balance === undefined) throw ctx.fail.parseFailure(overviewFailure);
116
+ const cycleLabel =
117
+ typeof billing.cycleLabel === "string" && billing.cycleLabel.trim() ? billing.cycleLabel.trim() : undefined;
118
+ const plan = typeof billing.plan === "string" && billing.plan.trim() ? billing.plan.trim() : undefined;
119
+ const planLabel =
120
+ plan === "free_plan"
121
+ ? "Free"
122
+ : _optionalChain([
123
+ plan,
124
+ "optionalAccess",
125
+ (_3) => _3.split,
126
+ "call",
127
+ (_4) => _4(/[_-]+/),
128
+ "access",
129
+ (_5) => _5.filter,
130
+ "call",
131
+ (_6) => _6(Boolean),
132
+ "access",
133
+ (_7) => _7.map,
134
+ "call",
135
+ (_8) => _8((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()),
136
+ "access",
137
+ (_9) => _9.join,
138
+ "call",
139
+ (_10) => _10(" "),
140
+ ]);
141
+ const rows = [{ label: cycleLabel ? `Spent (${cycleLabel})` : "Spent", value: ctx.format.usd(spent) }];
142
+ if (planLabel) rows.push({ label: "Plan", value: planLabel });
143
+ const availableRows = 24 - rows.length;
144
+ const creditRows = [];
145
+ let creditCount = 0;
146
+ for (const item of Array.isArray(billing.credits) ? billing.credits : []) {
147
+ const credit = record(item);
148
+ const amount = number(_optionalChain([credit, "optionalAccess", (_11) => _11.amount]));
149
+ const remaining = number(_optionalChain([credit, "optionalAccess", (_12) => _12.remaining]));
150
+ const expiresAt =
151
+ typeof _optionalChain([credit, "optionalAccess", (_13) => _13.expiresAt]) === "string"
152
+ ? credit.expiresAt
153
+ : undefined;
154
+ if (amount === undefined || remaining === undefined || remaining <= 0 || !expiresAt) continue;
155
+ const expires = Date.parse(expiresAt);
156
+ if (!Number.isFinite(expires)) continue;
157
+ creditCount++;
158
+ if (creditRows.length >= availableRows) continue;
159
+ creditRows.push({
160
+ label: "Credit",
161
+ value: `${ctx.format.number(remaining)} of ${ctx.format.number(amount)}, expires ${ctx.format.monthDay(expires)}`,
162
+ });
163
+ }
164
+ if (creditCount > availableRows) {
165
+ const shown = availableRows - 1;
166
+ rows.push(...creditRows.slice(0, shown));
167
+ rows.push({ label: "Additional credits", value: String(creditCount - shown) });
168
+ } else {
169
+ rows.push(...creditRows);
170
+ }
171
+ return {
172
+ cost: { used: spent, balance, currency: "USD", period: cycleLabel },
173
+ details: [{ title: "Billing", rows }],
174
+ identity: { loginMethod: `Balance: ${ctx.format.usd(balance)}` },
175
+ dataConfidence: "exact",
176
+ };
177
+ },
178
+ });
179
+
180
+ // END UPSTREAM
181
+ })(globalThis.defineProvider);
@@ -0,0 +1,25 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "typesafe",
4
+ "name": "TypeSafe",
5
+ "version": "0.1.0",
6
+ "entry": "plugin.js",
7
+ "enabledByDefault": false,
8
+ "supportedModes": [
9
+ "web"
10
+ ],
11
+ "autoMode": "web",
12
+ "usageDashboardUrl": "https://console.typesafe.ai/usage",
13
+ "webUrl": "https://console.typesafe.ai",
14
+ "envVars": [
15
+ "TYPESAFE_COOKIE"
16
+ ],
17
+ "setupFields": [],
18
+ "upstream": {
19
+ "repository": "https://github.com/steipete/CodexBar",
20
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
21
+ "path": "Sources/CodexBarCore/Resources/Plugins/typesafe.js",
22
+ "sha256": "da91db172678133393d38836fcb4028342edade8aa7994d2bc5e95290498192f",
23
+ "license": "MIT"
24
+ }
25
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>V0</title><path clip-rule="evenodd" d="M14.252 8.25h5.624c.088 0 .176.006.26.018l-5.87 5.87a1.889 1.889 0 01-.019-.265V8.25h-2.25v5.623a4.124 4.124 0 004.125 4.125h5.624v-2.25h-5.624c-.09 0-.179-.006-.265-.018l5.874-5.875a1.9 1.9 0 01.02.27v5.623H24v-5.624A4.124 4.124 0 0019.876 6h-5.624v2.25zM0 7.5v.006l7.686 9.788c.924 1.176 2.813.523 2.813-.973V7.5H8.25v6.87L2.856 7.5H0z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>V0</title><path clip-rule="evenodd" d="M14.252 8.25h5.624c.088 0 .176.006.26.018l-5.87 5.87a1.889 1.889 0 01-.019-.265V8.25h-2.25v5.623a4.124 4.124 0 004.125 4.125h5.624v-2.25h-5.624c-.09 0-.179-.006-.265-.018l5.874-5.875a1.9 1.9 0 01.02.27v5.623H24v-5.624A4.124 4.124 0 0019.876 6h-5.624v2.25zM0 7.5v.006l7.686 9.788c.924 1.176 2.813.523 2.813-.973V7.5H8.25v6.87L2.856 7.5H0z"></path></svg>
@@ -0,0 +1,219 @@
1
+ // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
+ globalThis.__usagestat_bundled_options = {"labels":["Billing","Rate limit","Additional"],"defaults":{},"autoMode":"api"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/v0.js
5
+ function _nullishCoalesce(lhs, rhsFn) {
6
+ if (lhs != null) {
7
+ return lhs;
8
+ } else {
9
+ return rhsFn();
10
+ }
11
+ }
12
+ function _optionalChain(ops) {
13
+ let lastAccessLHS = undefined;
14
+ let value = ops[0];
15
+ let i = 1;
16
+ while (i < ops.length) {
17
+ const op = ops[i];
18
+ const fn = ops[i + 1];
19
+ i += 2;
20
+ if ((op === "optionalAccess" || op === "optionalCall") && value == null) {
21
+ return undefined;
22
+ }
23
+ if (op === "access" || op === "optionalAccess") {
24
+ lastAccessLHS = value;
25
+ value = fn(value);
26
+ } else if (op === "call" || op === "optionalCall") {
27
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
28
+ lastAccessLHS = undefined;
29
+ }
30
+ }
31
+ return value;
32
+ }
33
+ const V0_API_BASE = "https://api.v0.dev/v1";
34
+
35
+ defineProvider({
36
+ id: "v0",
37
+ name: "v0",
38
+ endpoints: ["https://api.v0.dev"],
39
+ auth: { type: "bearer", secret: "V0_API_KEY" },
40
+ settings: [
41
+ {
42
+ key: "V0_API_KEY",
43
+ title: "API key",
44
+ subtitle: "A v0 Platform API key.",
45
+ type: "secure",
46
+ },
47
+ {
48
+ key: "V0_SCOPE",
49
+ title: "Scope",
50
+ subtitle: "Optional project ID or slug.",
51
+ type: "plain",
52
+ },
53
+ ],
54
+ capabilities: ["http-status"],
55
+
56
+ async fetchUsage(ctx) {
57
+ const scope = _optionalChain([
58
+ ctx,
59
+ "access",
60
+ (_) => _.settings,
61
+ "access",
62
+ (_2) => _2.get,
63
+ "call",
64
+ (_3) => _3("V0_SCOPE"),
65
+ "optionalAccess",
66
+ (_4) => _4.trim,
67
+ "call",
68
+ (_5) => _5(),
69
+ ]);
70
+ const query = scope ? `?scope=${encodeURIComponent(scope)}` : "";
71
+
72
+ function apiError(response) {
73
+ if (response.status === 401) throw ctx.fail.authenticationExpired("v0 API key was rejected.");
74
+ if (response.status === 403) throw ctx.fail.permissionDenied("v0 denied access to this scope.");
75
+ if (response.status === 429) {
76
+ const delay = Number(_nullishCoalesce(response.headers["retry-after"], () => 1));
77
+ throw ctx.fail.rateLimited("v0 API rate limit reached.", {
78
+ retryAfterSeconds: Number.isFinite(delay) && delay >= 0 ? Math.min(delay, 10) : 1,
79
+ });
80
+ }
81
+ if (response.status >= 500) throw ctx.fail.providerUnavailable(`v0 API returned HTTP ${response.status}.`);
82
+ throw ctx.fail.apiFailure(`v0 API returned HTTP ${response.status}.`);
83
+ }
84
+
85
+ function fail(field) {
86
+ throw ctx.fail.parseFailure(`Could not parse v0 usage: ${field}`);
87
+ }
88
+
89
+ async function getJSON(path) {
90
+ const response = await ctx.http.get(`${V0_API_BASE}${path}${query}`);
91
+ if (response.status !== 200) apiError(response);
92
+ try {
93
+ return JSON.parse(response.bodyText);
94
+ } catch (error) {
95
+ void error;
96
+ return fail(`${path} returned invalid JSON`);
97
+ }
98
+ }
99
+
100
+ function object(value, field) {
101
+ if (!value || typeof value !== "object" || Array.isArray(value)) return fail(field);
102
+ return value;
103
+ }
104
+
105
+ function number(value, field) {
106
+ if (typeof value !== "number" || !Number.isFinite(value)) return fail(field);
107
+ return value;
108
+ }
109
+
110
+ function text(value, field) {
111
+ if (value === undefined || value === null) return undefined;
112
+ if (typeof value !== "string") return fail(field);
113
+ return value.trim() || undefined;
114
+ }
115
+
116
+ function reset(value, field) {
117
+ if (value === undefined || value === null) return undefined;
118
+ const timestamp = number(value, field);
119
+ if (timestamp <= 0) return undefined;
120
+ return timestamp >= 1000000000000 ? ctx.date.unixMillis(timestamp) : ctx.date.unixSeconds(timestamp);
121
+ }
122
+
123
+ function optionalNumber(value, field) {
124
+ if (value === undefined || value === null) return undefined;
125
+ return number(value, field);
126
+ }
127
+
128
+ function quota(value, field) {
129
+ const payload = object(value, field);
130
+ const limit = number(payload.limit, `${field}.limit`);
131
+ const remaining = optionalNumber(payload.remaining, `${field}.remaining`);
132
+ if (limit < 0) return fail(`${field}.limit must not be negative`);
133
+ return {
134
+ usedPercent: remaining === undefined ? undefined : ctx.pct(Math.max(0, limit - remaining), limit),
135
+ resetsAt: reset(payload.reset, `${field}.reset`),
136
+ remaining,
137
+ limit,
138
+ };
139
+ }
140
+
141
+ function tokenBilling(value, field) {
142
+ const payload = object(value, field);
143
+ const balance = object(payload.balance, `${field}.balance`);
144
+ const total = number(balance.total, `${field}.balance.total`);
145
+ const remaining = number(balance.remaining, `${field}.balance.remaining`);
146
+ const billingCycle = object(payload.billingCycle, `${field}.billingCycle`);
147
+ const onDemand =
148
+ payload.onDemand === undefined || payload.onDemand === null
149
+ ? undefined
150
+ : object(payload.onDemand, `${field}.onDemand`);
151
+ if (total < 0) return fail(`${field}.balance.total must not be negative`);
152
+ return {
153
+ usedPercent: ctx.pct(Math.max(0, total - remaining), total),
154
+ resetsAt: reset(billingCycle.end, `${field}.billingCycle.end`),
155
+ remaining,
156
+ limit: total,
157
+ onDemandBalance: onDemand === undefined ? undefined : number(onDemand.balance, `${field}.onDemand.balance`),
158
+ };
159
+ }
160
+
161
+ const billing = object(await getJSON("/user/billing"), "billing response");
162
+ const billingType = text(billing.billingType, "billingType");
163
+ if (billingType !== "token" && billingType !== "legacy") return fail("billingType");
164
+ const tokenBillingData = billingType === "token" ? tokenBilling(billing.data, "billing.data") : undefined;
165
+ const billingData = _nullishCoalesce(tokenBillingData, () => quota(billing.data, "billing.data"));
166
+
167
+ const rateLimit = quota(await getJSON("/rate-limits"), "rate limit response");
168
+ const rateRemaining = rateLimit.remaining;
169
+
170
+ const billingRemaining = billingData.remaining;
171
+ const rows = [
172
+ {
173
+ label: "Billing remaining",
174
+ value:
175
+ billingRemaining === undefined
176
+ ? "Unavailable"
177
+ : ctx.format.number(billingRemaining, { maximumFractionDigits: 2 }),
178
+ secondaryValue: `${billingRemaining === undefined ? "limit" : "of"} ${ctx.format.number(billingData.limit, { maximumFractionDigits: 2 })}`,
179
+ },
180
+ ];
181
+ if (_optionalChain([tokenBillingData, "optionalAccess", (_6) => _6.onDemandBalance]) !== undefined) {
182
+ rows.push({
183
+ label: "On-demand balance",
184
+ value: ctx.format.number(tokenBillingData.onDemandBalance, { maximumFractionDigits: 2 }),
185
+ });
186
+ }
187
+ rows.push({
188
+ label: "Rate-limit remaining",
189
+ value:
190
+ rateRemaining === undefined ? "Unavailable" : ctx.format.number(rateRemaining, { maximumFractionDigits: 2 }),
191
+ secondaryValue:
192
+ rateRemaining === undefined
193
+ ? `limit ${ctx.format.number(rateLimit.limit, { maximumFractionDigits: 2 })}`
194
+ : `of ${ctx.format.number(rateLimit.limit, { maximumFractionDigits: 2 })}`,
195
+ });
196
+ if (billingType) rows.push({ label: "Billing type", value: billingType });
197
+ if (scope) rows.push({ label: "Scope", value: scope.slice(0, 120) });
198
+
199
+ return {
200
+ primary:
201
+ billingData.usedPercent === undefined
202
+ ? null
203
+ : { usedPercent: billingData.usedPercent, resetsAt: billingData.resetsAt },
204
+ secondary:
205
+ rateRemaining === undefined
206
+ ? null
207
+ : {
208
+ usedPercent: ctx.pct(Math.max(0, rateLimit.limit - rateRemaining), rateLimit.limit),
209
+ resetsAt: rateLimit.resetsAt,
210
+ },
211
+ details: [{ title: "v0 API", rows }],
212
+ identity: { loginMethod: "API key" },
213
+ dataConfidence: "exact",
214
+ };
215
+ },
216
+ });
217
+
218
+ // END UPSTREAM
219
+ })(globalThis.defineProvider);
@@ -0,0 +1,32 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "v0",
4
+ "name": "v0",
5
+ "version": "0.1.0",
6
+ "entry": "plugin.js",
7
+ "enabledByDefault": false,
8
+ "supportedModes": [
9
+ "api"
10
+ ],
11
+ "autoMode": "api",
12
+ "usageDashboardUrl": "https://v0.app/settings/billing",
13
+ "envVars": [
14
+ "V0_API_KEY",
15
+ "V0_SCOPE"
16
+ ],
17
+ "setupFields": [
18
+ {
19
+ "key": "V0_SCOPE",
20
+ "title": "Scope",
21
+ "type": "string",
22
+ "description": "Provider-specific account or source selection."
23
+ }
24
+ ],
25
+ "upstream": {
26
+ "repository": "https://github.com/steipete/CodexBar",
27
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
28
+ "path": "Sources/CodexBarCore/Resources/Plugins/v0.js",
29
+ "sha256": "5f54a9329dca35d59d76e427c34d4d9db8d3400d0b38c5fcee8899928a900019",
30
+ "license": "MIT"
31
+ }
32
+ }