@hashimkarim/usagestat-linux-x64-gnu 2.0.2 → 2.2.0

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 (181) hide show
  1. package/native-manifest.json +808 -148
  2. package/package.json +112 -2
  3. package/plugins/abliteration/LICENSE +21 -0
  4. package/plugins/abliteration/icon.svg +5 -0
  5. package/plugins/abliteration/plugin.js +89 -0
  6. package/plugins/abliteration/plugin.json +24 -0
  7. package/plugins/aerostack/LICENSE +21 -0
  8. package/plugins/aerostack/icon.svg +1 -0
  9. package/plugins/aerostack/plugin.js +94 -0
  10. package/plugins/aerostack/plugin.json +24 -0
  11. package/plugins/aixy/icon.svg +1 -0
  12. package/plugins/aixy/plugin.js +5 -0
  13. package/plugins/aixy/plugin.json +9 -1
  14. package/plugins/antigravity/plugin.js +19 -10
  15. package/plugins/antigravity-cli/plugin.js +8 -3
  16. package/plugins/antigravity-ide/plugin.js +8 -5
  17. package/plugins/atlascloud/plugin.js +5 -0
  18. package/plugins/atlascloud/plugin.json +2 -1
  19. package/plugins/bifrost/icon.svg +3 -0
  20. package/plugins/bifrost/plugin.js +5 -0
  21. package/plugins/bifrost/plugin.json +9 -1
  22. package/plugins/chatbox/LICENSE +21 -0
  23. package/plugins/chatbox/icon.svg +4 -0
  24. package/plugins/chatbox/plugin.js +208 -0
  25. package/plugins/chatbox/plugin.json +24 -0
  26. package/plugins/claude/plugin.js +39 -2
  27. package/plugins/claudeplatform/LICENSE +21 -0
  28. package/plugins/claudeplatform/icon.svg +3 -0
  29. package/plugins/claudeplatform/plugin.js +244 -0
  30. package/plugins/claudeplatform/plugin.json +25 -0
  31. package/plugins/codex/plugin.js +14 -8
  32. package/plugins/codex/plugin.json +11 -2
  33. package/plugins/cosmic/LICENSE +21 -0
  34. package/plugins/cosmic/icon.svg +1 -0
  35. package/plugins/cosmic/plugin.js +134 -0
  36. package/plugins/cosmic/plugin.json +32 -0
  37. package/plugins/cursor/plugin.js +27 -8
  38. package/plugins/cursor-nightly/plugin.json +1 -1
  39. package/plugins/devpass/icon.svg +3 -0
  40. package/plugins/devpass/plugin.js +5 -0
  41. package/plugins/devpass/plugin.json +2 -1
  42. package/plugins/exa/LICENSE +21 -0
  43. package/plugins/exa/icon-color.svg +1 -0
  44. package/plugins/exa/icon.svg +1 -0
  45. package/plugins/exa/plugin.js +75 -0
  46. package/plugins/exa/plugin.json +32 -0
  47. package/plugins/fal/LICENSE +21 -0
  48. package/plugins/fal/icon-color.svg +1 -0
  49. package/plugins/fal/icon.svg +1 -0
  50. package/plugins/fal/plugin.js +74 -0
  51. package/plugins/fal/plugin.json +24 -0
  52. package/plugins/flora/LICENSE +21 -0
  53. package/plugins/flora/icon.svg +4 -0
  54. package/plugins/flora/plugin.js +93 -0
  55. package/plugins/flora/plugin.json +32 -0
  56. package/plugins/futureagi/LICENSE +21 -0
  57. package/plugins/futureagi/icon.svg +24 -0
  58. package/plugins/futureagi/plugin.js +139 -0
  59. package/plugins/futureagi/plugin.json +32 -0
  60. package/plugins/gemini-apps/LICENSE +1 -2
  61. package/plugins/gemini-apps/plugin.js +136 -465
  62. package/plugins/gemini-apps/plugin.json +13 -7
  63. package/plugins/gitkraken/icon.svg +2 -0
  64. package/plugins/gitkraken/plugin.js +5 -0
  65. package/plugins/gitkraken/plugin.json +9 -1
  66. package/plugins/googledeveloper/LICENSE +21 -0
  67. package/plugins/googledeveloper/icon.svg +3 -0
  68. package/plugins/googledeveloper/plugin.js +204 -0
  69. package/plugins/googledeveloper/plugin.json +25 -0
  70. package/plugins/helmcode/icon.svg +5 -0
  71. package/plugins/helmcode/plugin.js +120 -55
  72. package/plugins/helmcode/plugin.json +10 -2
  73. package/plugins/huggingface/plugin.js +6 -1
  74. package/plugins/huggingface/plugin.json +4 -3
  75. package/plugins/hyper/plugin.js +53 -47
  76. package/plugins/hyper/plugin.json +3 -2
  77. package/plugins/jetbrains-ai-assistant/LICENSE +22 -0
  78. package/plugins/jetbrains-ai-assistant/plugin.js +502 -16
  79. package/plugins/jetbrains-ai-assistant/plugin.json +27 -4
  80. package/plugins/kimi/plugin.js +54 -14
  81. package/plugins/kimi/plugin.json +46 -6
  82. package/plugins/langdock/LICENSE +21 -0
  83. package/plugins/langdock/icon.svg +4 -0
  84. package/plugins/langdock/plugin.js +106 -0
  85. package/plugins/langdock/plugin.json +25 -0
  86. package/plugins/linkup/LICENSE +21 -0
  87. package/plugins/linkup/icon.svg +10 -0
  88. package/plugins/linkup/plugin.js +46 -0
  89. package/plugins/linkup/plugin.json +24 -0
  90. package/plugins/lithosai/plugin.js +5 -0
  91. package/plugins/lithosai/plugin.json +2 -1
  92. package/plugins/llmman/icon.svg +4 -0
  93. package/plugins/llmman/plugin.js +5 -0
  94. package/plugins/llmman/plugin.json +9 -1
  95. package/plugins/munito/LICENSE +21 -0
  96. package/plugins/munito/icon.svg +7 -0
  97. package/plugins/munito/plugin.js +171 -0
  98. package/plugins/munito/plugin.json +24 -0
  99. package/plugins/muse/icon.svg +3 -0
  100. package/plugins/muse/plugin.js +5 -0
  101. package/plugins/muse/plugin.json +9 -1
  102. package/plugins/museai/plugin.js +10 -3
  103. package/plugins/museai/plugin.json +3 -2
  104. package/plugins/nous/plugin.js +5 -0
  105. package/plugins/nous/plugin.json +9 -1
  106. package/plugins/ollama/plugin.js +58 -0
  107. package/plugins/opencode-go/plugin.js +21 -9
  108. package/plugins/opendesign/LICENSE +21 -0
  109. package/plugins/opendesign/icon.svg +4 -0
  110. package/plugins/opendesign/plugin.js +108 -0
  111. package/plugins/opendesign/plugin.json +25 -0
  112. package/plugins/parallel/LICENSE +21 -0
  113. package/plugins/parallel/icon.svg +11 -0
  114. package/plugins/parallel/plugin.js +97 -0
  115. package/plugins/parallel/plugin.json +25 -0
  116. package/plugins/perplexity/LICENSE +22 -0
  117. package/plugins/perplexity/plugin.js +122 -0
  118. package/plugins/perplexity/plugin.json +36 -7
  119. package/plugins/qwencloud/LICENSE +21 -0
  120. package/plugins/qwencloud/plugin.js +197 -0
  121. package/plugins/qwencloud/plugin.json +17 -0
  122. package/plugins/raycast/icon.svg +4 -0
  123. package/plugins/raycast/plugin.js +5 -0
  124. package/plugins/raycast/plugin.json +9 -1
  125. package/plugins/replicate/plugin.js +5 -0
  126. package/plugins/replicate/plugin.json +2 -1
  127. package/plugins/sailresearch/LICENSE +21 -0
  128. package/plugins/sailresearch/icon.svg +4 -0
  129. package/plugins/sailresearch/plugin.js +104 -0
  130. package/plugins/sailresearch/plugin.json +24 -0
  131. package/plugins/siliconflow/LICENSE +21 -0
  132. package/plugins/siliconflow/icon.svg +3 -0
  133. package/plugins/siliconflow/plugin.js +87 -0
  134. package/plugins/siliconflow/plugin.json +32 -0
  135. package/plugins/sofya/LICENSE +21 -0
  136. package/plugins/sofya/icon.svg +3 -0
  137. package/plugins/sofya/plugin.js +86 -0
  138. package/plugins/sofya/plugin.json +24 -0
  139. package/plugins/soniox/LICENSE +21 -0
  140. package/plugins/soniox/icon.svg +3 -0
  141. package/plugins/soniox/plugin.js +103 -0
  142. package/plugins/soniox/plugin.json +24 -0
  143. package/plugins/synthetic/plugin.js +12 -0
  144. package/plugins/synthetic/plugin.json +51 -9
  145. package/plugins/tavily/LICENSE +21 -0
  146. package/plugins/tavily/icon.svg +3 -0
  147. package/plugins/tavily/plugin.js +61 -0
  148. package/plugins/tavily/plugin.json +24 -0
  149. package/plugins/tinyapi/LICENSE +21 -0
  150. package/plugins/tinyapi/icon.svg +4 -0
  151. package/plugins/tinyapi/plugin.js +73 -0
  152. package/plugins/tinyapi/plugin.json +25 -0
  153. package/plugins/traecn/LICENSE +21 -0
  154. package/plugins/traecn/icon.svg +3 -0
  155. package/plugins/traecn/plugin.js +103 -0
  156. package/plugins/traecn/plugin.json +25 -0
  157. package/plugins/tripo/LICENSE +21 -0
  158. package/plugins/tripo/icon.svg +4 -0
  159. package/plugins/tripo/plugin.js +60 -0
  160. package/plugins/tripo/plugin.json +24 -0
  161. package/plugins/typesafe/icon.svg +4 -0
  162. package/plugins/typesafe/plugin.js +85 -129
  163. package/plugins/typesafe/plugin.json +3 -2
  164. package/plugins/v0/plugin.js +5 -0
  165. package/plugins/v0/plugin.json +9 -1
  166. package/plugins/vercel/plugin.js +147 -0
  167. package/plugins/vercel/plugin.json +34 -3
  168. package/plugins/workbuddy/icon.svg +1 -1
  169. package/plugins/workbuddy/plugin.js +110 -19
  170. package/plugins/workbuddy/plugin.json +32 -2
  171. package/plugins/xai/plugin.js +9 -0
  172. package/plugins/xapi/LICENSE +21 -0
  173. package/plugins/xapi/icon.svg +1 -0
  174. package/plugins/xapi/plugin.js +90 -0
  175. package/plugins/xapi/plugin.json +25 -0
  176. package/plugins/xkiro/icon.svg +1 -0
  177. package/plugins/xkiro/plugin.js +5 -0
  178. package/plugins/xkiro/plugin.json +2 -1
  179. package/usagestat +0 -0
  180. package/usagestatd +0 -0
  181. package/plugins/cursor-nightly/plugin.js +0 -1416
@@ -1,5 +1,7 @@
1
1
  // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
2
  globalThis.__usagestat_bundled_options = {"labels":["Balance","Balance","Additional"],"defaults":{},"autoMode":"api"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/hyper.js
3
5
  function _optionalChain(ops) {
4
6
  let lastAccessLHS = undefined;
5
7
  let value = ops[0];
@@ -34,62 +36,52 @@ defineProvider({
34
36
  async fetchUsage(ctx) {
35
37
  const domain = "hyper.charm.land";
36
38
  const key = ctx.settings.getSecret("HYPER_API_KEY");
37
- const webOnly = ctx.settings.get("SOURCE_MODE") === "web";
39
+ const canUseKey = Boolean(key) && ctx.settings.get("SOURCE_MODE") !== "web";
40
+ const cookiePolicy = ctx.browser.availability(domain);
38
41
  const missing = () => {
39
42
  throw ctx.fail.missingCredential("Sign in to hyper.charm.land or configure a Charm Hyper API key.");
40
43
  };
41
- const request = (headers, timeoutSeconds = 10) =>
42
- ctx.http.get(`https://${domain}/v1/credits`, {
44
+ // Browser sessions use the dashboard; /v1/credits accepts bearer keys only.
45
+ const request = (headers, session = false) =>
46
+ ctx.http.get(`https://${domain}/${session ? "" : "v1/credits"}`, {
43
47
  headers,
44
- timeoutSeconds,
48
+ timeoutSeconds: session ? 8 : 10,
45
49
  });
46
50
  let response;
47
51
  let session = false;
48
- if (ctx.browser.availability(domain) !== "off") {
52
+ if (cookiePolicy !== "off") {
49
53
  try {
50
54
  const cookie = await ctx.browser.cookieHeader(domain);
51
55
  session = true;
52
- response = await request({ Cookie: cookie }, 5);
56
+ response = await request({ Cookie: cookie, Accept: "text/html" }, true);
53
57
  } catch (error) {
54
58
  if (error.transportClass === "cancelled") throw error;
55
- if (webOnly || !key) {
59
+ if (!canUseKey) {
56
60
  if (session) throw ctx.fail.networkFailure("Charm Hyper session request failed.");
57
61
  return missing();
58
62
  }
59
63
  }
64
+ const team = /\/teams\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;
60
65
  if (
61
66
  response &&
62
67
  (response.status === 401 ||
63
68
  response.status === 403 ||
64
69
  (response.status >= 300 && response.status < 400) ||
65
- (response.status === 200 &&
66
- _optionalChain([
67
- response,
68
- "access",
69
- (_) => _.headers,
70
- "access",
71
- (_2) => _2["content-type"],
72
- "optionalAccess",
73
- (_3) => _3.toLowerCase,
74
- "call",
75
- (_4) => _4(),
76
- "access",
77
- (_5) => _5.includes,
78
- "call",
79
- (_6) => _6("text/html"),
80
- ])))
70
+ (response.status === 200 && !team.test(response.url) && !team.test(response.bodyText)))
81
71
  ) {
82
72
  ctx.browser.rejectCookie(domain);
83
- if (webOnly || !key) {
73
+ if (!canUseKey) {
84
74
  throw ctx.fail.authenticationExpired(
85
- "Charm Hyper session expired. Sign in again or paste a fresh Cookie header.",
75
+ cookiePolicy === "manual"
76
+ ? "Charm Hyper session expired. Paste a fresh Cookie header in Settings."
77
+ : "Charm Hyper session expired. Sign in again at hyper.charm.land.",
86
78
  );
87
79
  }
88
80
  response = undefined;
89
81
  }
90
82
  }
91
83
  if (!response) {
92
- if (webOnly || !key) return missing();
84
+ if (!canUseKey) return missing();
93
85
  response = await request({ Authorization: `Bearer ${key}` });
94
86
  session = false;
95
87
  }
@@ -100,32 +92,46 @@ defineProvider({
100
92
  if (response.status >= 500) throw ctx.fail.providerUnavailable(`Charm Hyper API error: HTTP ${response.status}`);
101
93
  if (response.status !== 200) throw ctx.fail.apiFailure(`Charm Hyper API error: HTTP ${response.status}`);
102
94
 
103
- let payload;
104
- try {
105
- payload = JSON.parse(response.bodyText);
106
- } catch (error) {
107
- void error;
108
- throw ctx.fail.parseFailure("Charm Hyper credits response is not valid JSON.");
95
+ let balance;
96
+ if (session) {
97
+ const match = /Hypercredits Available[\s\S]{0,400}?text-5xl font-bold">\s*([0-9][0-9,]*(?:\.[0-9]+)?)\s*</.exec(
98
+ response.bodyText,
99
+ );
100
+ balance = match ? Number(match[1].replace(/,/g, "")) : NaN;
101
+ } else {
102
+ try {
103
+ balance = _optionalChain([
104
+ JSON,
105
+ "access",
106
+ (_) => _.parse,
107
+ "call",
108
+ (_2) => _2(response.bodyText),
109
+ "optionalAccess",
110
+ (_3) => _3.balance,
111
+ ]);
112
+ } catch (error) {
113
+ void error;
114
+ throw ctx.fail.parseFailure("Charm Hyper credits response is not valid JSON.");
115
+ }
109
116
  }
110
- const balance = _optionalChain([payload, "optionalAccess", (_7) => _7.balance]);
111
117
  if (typeof balance !== "number" || !Number.isFinite(balance) || balance < 0) {
112
118
  throw ctx.fail.parseFailure("Charm Hyper balance must be a non-negative number.");
113
119
  }
120
+ const row = {
121
+ label: "Balance",
122
+ value: `${ctx.format.number(balance, { maximumFractionDigits: 2 })} HC`,
123
+ usageValue: balance,
124
+ };
114
125
  return {
115
- details: [
116
- {
117
- title: "Hypercredits",
118
- rows: [
119
- {
120
- label: "Balance",
121
- value: `${ctx.format.number(balance, { maximumFractionDigits: 2 })} HC`,
122
- usageValue: balance,
123
- },
124
- ],
125
- },
126
- ],
127
- identity: { loginMethod: session ? "Browser session" : "API key" },
128
- dataConfidence: "exact",
126
+ usage: {
127
+ details: [{ title: "Hypercredits", rows: [row] }],
128
+ identity: { loginMethod: session ? "Browser session" : "API key" },
129
+ dataConfidence: "exact",
130
+ },
131
+ sourceLabel: session ? "web" : "api",
129
132
  };
130
133
  },
131
134
  });
135
+
136
+ // END UPSTREAM
137
+ })(globalThis.defineProvider);
@@ -16,11 +16,12 @@
16
16
  "HYPER_API_KEY",
17
17
  "HYPER_COOKIE"
18
18
  ],
19
+ "setupFields": [],
19
20
  "upstream": {
20
21
  "repository": "https://github.com/steipete/CodexBar",
21
- "revision": "6ba06fe9ec1522dd5c59e16810115bce28aa148f",
22
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
22
23
  "path": "Sources/CodexBarCore/Resources/Plugins/hyper.js",
23
- "sha256": "893e1a9a91e7af57522bcc39791d77d6fe3b8ae0d61384aee1768f5f419636cd",
24
+ "sha256": "a8201abe6997057547d6294882b27c4040ac03e151f7ac4678b7c28844170cd5",
24
25
  "license": "MIT"
25
26
  }
26
27
  }
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Robin Ebers (original macOS creator)
4
+ Copyright (c) 2026 barramee kottanawadee
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.