@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.
- package/native-manifest.json +808 -148
- package/package.json +112 -2
- package/plugins/abliteration/LICENSE +21 -0
- package/plugins/abliteration/icon.svg +5 -0
- package/plugins/abliteration/plugin.js +89 -0
- package/plugins/abliteration/plugin.json +24 -0
- package/plugins/aerostack/LICENSE +21 -0
- package/plugins/aerostack/icon.svg +1 -0
- package/plugins/aerostack/plugin.js +94 -0
- package/plugins/aerostack/plugin.json +24 -0
- package/plugins/aixy/icon.svg +1 -0
- package/plugins/aixy/plugin.js +5 -0
- package/plugins/aixy/plugin.json +9 -1
- package/plugins/antigravity/plugin.js +19 -10
- package/plugins/antigravity-cli/plugin.js +8 -3
- package/plugins/antigravity-ide/plugin.js +8 -5
- package/plugins/atlascloud/plugin.js +5 -0
- package/plugins/atlascloud/plugin.json +2 -1
- package/plugins/bifrost/icon.svg +3 -0
- package/plugins/bifrost/plugin.js +5 -0
- package/plugins/bifrost/plugin.json +9 -1
- package/plugins/chatbox/LICENSE +21 -0
- package/plugins/chatbox/icon.svg +4 -0
- package/plugins/chatbox/plugin.js +208 -0
- package/plugins/chatbox/plugin.json +24 -0
- package/plugins/claude/plugin.js +39 -2
- package/plugins/claudeplatform/LICENSE +21 -0
- package/plugins/claudeplatform/icon.svg +3 -0
- package/plugins/claudeplatform/plugin.js +244 -0
- package/plugins/claudeplatform/plugin.json +25 -0
- package/plugins/codex/plugin.js +14 -8
- package/plugins/codex/plugin.json +11 -2
- package/plugins/cosmic/LICENSE +21 -0
- package/plugins/cosmic/icon.svg +1 -0
- package/plugins/cosmic/plugin.js +134 -0
- package/plugins/cosmic/plugin.json +32 -0
- package/plugins/cursor/plugin.js +27 -8
- package/plugins/cursor-nightly/plugin.json +1 -1
- package/plugins/devpass/icon.svg +3 -0
- package/plugins/devpass/plugin.js +5 -0
- package/plugins/devpass/plugin.json +2 -1
- package/plugins/exa/LICENSE +21 -0
- package/plugins/exa/icon-color.svg +1 -0
- package/plugins/exa/icon.svg +1 -0
- package/plugins/exa/plugin.js +75 -0
- package/plugins/exa/plugin.json +32 -0
- package/plugins/fal/LICENSE +21 -0
- package/plugins/fal/icon-color.svg +1 -0
- package/plugins/fal/icon.svg +1 -0
- package/plugins/fal/plugin.js +74 -0
- package/plugins/fal/plugin.json +24 -0
- package/plugins/flora/LICENSE +21 -0
- package/plugins/flora/icon.svg +4 -0
- package/plugins/flora/plugin.js +93 -0
- package/plugins/flora/plugin.json +32 -0
- package/plugins/futureagi/LICENSE +21 -0
- package/plugins/futureagi/icon.svg +24 -0
- package/plugins/futureagi/plugin.js +139 -0
- package/plugins/futureagi/plugin.json +32 -0
- package/plugins/gemini-apps/LICENSE +1 -2
- package/plugins/gemini-apps/plugin.js +136 -465
- package/plugins/gemini-apps/plugin.json +13 -7
- package/plugins/gitkraken/icon.svg +2 -0
- package/plugins/gitkraken/plugin.js +5 -0
- package/plugins/gitkraken/plugin.json +9 -1
- package/plugins/googledeveloper/LICENSE +21 -0
- package/plugins/googledeveloper/icon.svg +3 -0
- package/plugins/googledeveloper/plugin.js +204 -0
- package/plugins/googledeveloper/plugin.json +25 -0
- package/plugins/helmcode/icon.svg +5 -0
- package/plugins/helmcode/plugin.js +120 -55
- package/plugins/helmcode/plugin.json +10 -2
- package/plugins/huggingface/plugin.js +6 -1
- package/plugins/huggingface/plugin.json +4 -3
- package/plugins/hyper/plugin.js +53 -47
- package/plugins/hyper/plugin.json +3 -2
- package/plugins/jetbrains-ai-assistant/LICENSE +22 -0
- package/plugins/jetbrains-ai-assistant/plugin.js +502 -16
- package/plugins/jetbrains-ai-assistant/plugin.json +27 -4
- package/plugins/kimi/plugin.js +54 -14
- package/plugins/kimi/plugin.json +46 -6
- package/plugins/langdock/LICENSE +21 -0
- package/plugins/langdock/icon.svg +4 -0
- package/plugins/langdock/plugin.js +106 -0
- package/plugins/langdock/plugin.json +25 -0
- package/plugins/linkup/LICENSE +21 -0
- package/plugins/linkup/icon.svg +10 -0
- package/plugins/linkup/plugin.js +46 -0
- package/plugins/linkup/plugin.json +24 -0
- package/plugins/lithosai/plugin.js +5 -0
- package/plugins/lithosai/plugin.json +2 -1
- package/plugins/llmman/icon.svg +4 -0
- package/plugins/llmman/plugin.js +5 -0
- package/plugins/llmman/plugin.json +9 -1
- package/plugins/munito/LICENSE +21 -0
- package/plugins/munito/icon.svg +7 -0
- package/plugins/munito/plugin.js +171 -0
- package/plugins/munito/plugin.json +24 -0
- package/plugins/muse/icon.svg +3 -0
- package/plugins/muse/plugin.js +5 -0
- package/plugins/muse/plugin.json +9 -1
- package/plugins/museai/plugin.js +10 -3
- package/plugins/museai/plugin.json +3 -2
- package/plugins/nous/plugin.js +5 -0
- package/plugins/nous/plugin.json +9 -1
- package/plugins/ollama/plugin.js +58 -0
- package/plugins/opencode-go/plugin.js +21 -9
- package/plugins/opendesign/LICENSE +21 -0
- package/plugins/opendesign/icon.svg +4 -0
- package/plugins/opendesign/plugin.js +108 -0
- package/plugins/opendesign/plugin.json +25 -0
- package/plugins/parallel/LICENSE +21 -0
- package/plugins/parallel/icon.svg +11 -0
- package/plugins/parallel/plugin.js +97 -0
- package/plugins/parallel/plugin.json +25 -0
- package/plugins/perplexity/LICENSE +22 -0
- package/plugins/perplexity/plugin.js +122 -0
- package/plugins/perplexity/plugin.json +36 -7
- package/plugins/qwencloud/LICENSE +21 -0
- package/plugins/qwencloud/plugin.js +197 -0
- package/plugins/qwencloud/plugin.json +17 -0
- package/plugins/raycast/icon.svg +4 -0
- package/plugins/raycast/plugin.js +5 -0
- package/plugins/raycast/plugin.json +9 -1
- package/plugins/replicate/plugin.js +5 -0
- package/plugins/replicate/plugin.json +2 -1
- package/plugins/sailresearch/LICENSE +21 -0
- package/plugins/sailresearch/icon.svg +4 -0
- package/plugins/sailresearch/plugin.js +104 -0
- package/plugins/sailresearch/plugin.json +24 -0
- package/plugins/siliconflow/LICENSE +21 -0
- package/plugins/siliconflow/icon.svg +3 -0
- package/plugins/siliconflow/plugin.js +87 -0
- package/plugins/siliconflow/plugin.json +32 -0
- package/plugins/sofya/LICENSE +21 -0
- package/plugins/sofya/icon.svg +3 -0
- package/plugins/sofya/plugin.js +86 -0
- package/plugins/sofya/plugin.json +24 -0
- package/plugins/soniox/LICENSE +21 -0
- package/plugins/soniox/icon.svg +3 -0
- package/plugins/soniox/plugin.js +103 -0
- package/plugins/soniox/plugin.json +24 -0
- package/plugins/synthetic/plugin.js +12 -0
- package/plugins/synthetic/plugin.json +51 -9
- package/plugins/tavily/LICENSE +21 -0
- package/plugins/tavily/icon.svg +3 -0
- package/plugins/tavily/plugin.js +61 -0
- package/plugins/tavily/plugin.json +24 -0
- package/plugins/tinyapi/LICENSE +21 -0
- package/plugins/tinyapi/icon.svg +4 -0
- package/plugins/tinyapi/plugin.js +73 -0
- package/plugins/tinyapi/plugin.json +25 -0
- package/plugins/traecn/LICENSE +21 -0
- package/plugins/traecn/icon.svg +3 -0
- package/plugins/traecn/plugin.js +103 -0
- package/plugins/traecn/plugin.json +25 -0
- package/plugins/tripo/LICENSE +21 -0
- package/plugins/tripo/icon.svg +4 -0
- package/plugins/tripo/plugin.js +60 -0
- package/plugins/tripo/plugin.json +24 -0
- package/plugins/typesafe/icon.svg +4 -0
- package/plugins/typesafe/plugin.js +85 -129
- package/plugins/typesafe/plugin.json +3 -2
- package/plugins/v0/plugin.js +5 -0
- package/plugins/v0/plugin.json +9 -1
- package/plugins/vercel/plugin.js +147 -0
- package/plugins/vercel/plugin.json +34 -3
- package/plugins/workbuddy/icon.svg +1 -1
- package/plugins/workbuddy/plugin.js +110 -19
- package/plugins/workbuddy/plugin.json +32 -2
- package/plugins/xai/plugin.js +9 -0
- package/plugins/xapi/LICENSE +21 -0
- package/plugins/xapi/icon.svg +1 -0
- package/plugins/xapi/plugin.js +90 -0
- package/plugins/xapi/plugin.json +25 -0
- package/plugins/xkiro/icon.svg +1 -0
- package/plugins/xkiro/plugin.js +5 -0
- package/plugins/xkiro/plugin.json +2 -1
- package/usagestat +0 -0
- package/usagestatd +0 -0
- package/plugins/cursor-nightly/plugin.js +0 -1416
package/plugins/hyper/plugin.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
42
|
-
|
|
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 (
|
|
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 },
|
|
56
|
+
response = await request({ Cookie: cookie, Accept: "text/html" }, true);
|
|
53
57
|
} catch (error) {
|
|
54
58
|
if (error.transportClass === "cancelled") throw error;
|
|
55
|
-
if (
|
|
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 (
|
|
73
|
+
if (!canUseKey) {
|
|
84
74
|
throw ctx.fail.authenticationExpired(
|
|
85
|
-
|
|
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 (
|
|
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
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
116
|
-
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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": "
|
|
22
|
+
"revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
|
|
22
23
|
"path": "Sources/CodexBarCore/Resources/Plugins/hyper.js",
|
|
23
|
-
"sha256": "
|
|
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.
|