@hashimkarim/usagestat-darwin-arm64 2.0.0-alpha.4 → 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.
- package/native-manifest.json +873 -141
- package/package.json +124 -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 +60 -26
- package/plugins/antigravity-cli/plugin.js +21 -5
- package/plugins/antigravity-ide/plugin.js +19 -7
- 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/copilot/plugin.json +1 -0
- 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 +51 -14
- 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 +121 -56
- 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/LICENSE +21 -0
- package/plugins/lithosai/icon.svg +1 -0
- package/plugins/lithosai/plugin.js +130 -0
- package/plugins/lithosai/plugin.json +26 -0
- package/plugins/llmman/icon.svg +4 -0
- package/plugins/llmman/plugin.js +5 -0
- package/plugins/llmman/plugin.json +9 -1
- package/plugins/mistral/plugin.js +54 -22
- 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 +98 -129
- package/plugins/muse/plugin.json +10 -2
- package/plugins/museai/LICENSE +21 -0
- package/plugins/museai/icon.svg +3 -0
- package/plugins/museai/plugin.js +161 -0
- package/plugins/museai/plugin.json +26 -0
- 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 +74 -25
- 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 +6 -1
- package/plugins/raycast/plugin.json +10 -2
- 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/LICENSE +21 -0
- package/plugins/workbuddy/icon.svg +1 -0
- package/plugins/workbuddy/plugin.js +318 -0
- package/plugins/workbuddy/plugin.json +63 -0
- 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/plugins/zai/plugin.js +5 -1
- package/usagestat +0 -0
- package/usagestatd +0 -0
- package/plugins/cursor-nightly/plugin.js +0 -1416
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "tinyapi",
|
|
4
|
+
"name": "TinyApi",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"entry": "plugin.js",
|
|
7
|
+
"enabledByDefault": false,
|
|
8
|
+
"supportedModes": [
|
|
9
|
+
"web"
|
|
10
|
+
],
|
|
11
|
+
"autoMode": "web",
|
|
12
|
+
"usageDashboardUrl": "https://tinyapi.rest",
|
|
13
|
+
"webUrl": "https://tinyapi.rest",
|
|
14
|
+
"envVars": [
|
|
15
|
+
"TINYAPI_COOKIE"
|
|
16
|
+
],
|
|
17
|
+
"setupFields": [],
|
|
18
|
+
"upstream": {
|
|
19
|
+
"repository": "https://github.com/steipete/CodexBar",
|
|
20
|
+
"revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
|
|
21
|
+
"path": "Sources/CodexBarCore/Resources/Plugins/tinyapi.js",
|
|
22
|
+
"sha256": "14f874b433198e9bfb9f1d689a0822f35ac8d97945cab015c039f836eed4ef17",
|
|
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,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
|
2
|
+
<path fill-rule="evenodd" d="M24 20.541H3.428v-3.426H0V3.4h24V20.54zM3.428 17.115h17.144V6.827H3.428v10.288zm8.573-5.196l-2.425 2.424-2.424-2.424 2.424-2.424 2.425 2.424zm6.857-.001l-2.424 2.423-2.425-2.423 2.425-2.425 2.424 2.425z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
|
|
2
|
+
globalThis.__usagestat_bundled_options = {"labels":["Credits","Additional","Additional"],"defaults":{},"autoMode":"web"};
|
|
3
|
+
(function(defineProvider) {
|
|
4
|
+
// BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/traecn.js
|
|
5
|
+
defineProvider({
|
|
6
|
+
id: "traecn",
|
|
7
|
+
name: "Trae CN",
|
|
8
|
+
endpoints: ["https://api.trae.cn"],
|
|
9
|
+
settings: [],
|
|
10
|
+
capabilities: ["browser-cookies", "http-status"],
|
|
11
|
+
// Include parent-domain sessions shared by the dashboard and API.
|
|
12
|
+
cookieDomains: ["trae.cn", "api.trae.cn"],
|
|
13
|
+
async fetchUsage(ctx) {
|
|
14
|
+
const domain = ctx.browser.availability("api.trae.cn") === "manual" ? "api.trae.cn" : "trae.cn";
|
|
15
|
+
const signIn = "Sign in to Trae CN at trae.cn, then refresh CodexBar.";
|
|
16
|
+
const malformed = () => {
|
|
17
|
+
throw ctx.fail.parseFailure("Trae CN usage response format changed.");
|
|
18
|
+
};
|
|
19
|
+
const finite = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
20
|
+
const rejected = (response) =>
|
|
21
|
+
response.status === 401 || response.status === 403 || (response.status >= 300 && response.status < 400);
|
|
22
|
+
const read = (response) => {
|
|
23
|
+
const message = "Trae CN request failed. Try refreshing later.";
|
|
24
|
+
if (response.status === 429) throw ctx.fail.rateLimited(message);
|
|
25
|
+
if (response.status === 408 || response.status >= 500) throw ctx.fail.providerUnavailable(message);
|
|
26
|
+
if (response.status !== 200) throw ctx.fail.apiFailure(message);
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(response.bodyText);
|
|
29
|
+
} catch {
|
|
30
|
+
return malformed();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
if (ctx.browser.availability(domain) === "off") throw ctx.fail.missingCredential(signIn);
|
|
34
|
+
let sessionRejected = false;
|
|
35
|
+
for await (const session of ctx.browser.sessions(domain)) {
|
|
36
|
+
const headers = { Cookie: session.header ?? "", Origin: "https://www.trae.cn", Referer: "https://www.trae.cn/" };
|
|
37
|
+
const tokenResponse = await ctx.http.post("https://api.trae.cn/cloudide/api/v3/common/GetUserToken", {
|
|
38
|
+
headers,
|
|
39
|
+
body: {},
|
|
40
|
+
timeoutSeconds: 15,
|
|
41
|
+
});
|
|
42
|
+
if (rejected(tokenResponse)) {
|
|
43
|
+
sessionRejected = true;
|
|
44
|
+
ctx.browser.rejectCookie(domain, session);
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const tokenPayload = read(tokenResponse);
|
|
48
|
+
const token = tokenPayload?.Result?.Token;
|
|
49
|
+
if (typeof token !== "string" || !token.trim()) return malformed();
|
|
50
|
+
// The exchanged token lives only for this refresh, and only goes back to the declared API origin.
|
|
51
|
+
const usageResponse = await ctx.http.post("https://api.trae.cn/trae/api/v2/pay/user_current_entitlement_list", {
|
|
52
|
+
headers: { ...headers, Authorization: `Cloud-IDE-JWT ${token}` },
|
|
53
|
+
body: { require_usage: true, full_data: true },
|
|
54
|
+
timeoutSeconds: 15,
|
|
55
|
+
});
|
|
56
|
+
if (rejected(usageResponse)) {
|
|
57
|
+
sessionRejected = true;
|
|
58
|
+
ctx.browser.rejectCookie(domain, session);
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
const payload = read(usageResponse);
|
|
62
|
+
const { total_amount: total, consumed_amount: used } = payload?.usage_summary ?? {};
|
|
63
|
+
if (payload?.code === 1001) {
|
|
64
|
+
sessionRejected = true;
|
|
65
|
+
ctx.browser.rejectCookie(domain, session);
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (payload?.is_credits_billing !== true || !finite(total) || !finite(used)) return malformed();
|
|
69
|
+
const packs = Array.isArray(payload.user_entitlement_pack_list) ? payload.user_entitlement_pack_list : [];
|
|
70
|
+
const subscription = packs.find(
|
|
71
|
+
(pack) => pack && pack.group_type === 0 && (pack.status === undefined || pack.status === 1),
|
|
72
|
+
);
|
|
73
|
+
const plan = typeof subscription?.display_desc === "string" ? subscription.display_desc.trim() : undefined;
|
|
74
|
+
const remaining = Math.max(0, total - used);
|
|
75
|
+
const hasFraction = [used, total, remaining].some((value) => !Number.isInteger(value));
|
|
76
|
+
const number = (value) =>
|
|
77
|
+
ctx.format.number(value, {
|
|
78
|
+
minimumFractionDigits: hasFraction ? 2 : 0,
|
|
79
|
+
maximumFractionDigits: 2,
|
|
80
|
+
});
|
|
81
|
+
// Pack expiry and billing timestamps do not establish an aggregate reset or subscription renewal.
|
|
82
|
+
return {
|
|
83
|
+
primary: total > 0 ? { usedPercent: Math.min(100, (used / total) * 100) } : undefined,
|
|
84
|
+
identity: plan ? { loginMethod: plan } : undefined,
|
|
85
|
+
details: [
|
|
86
|
+
{
|
|
87
|
+
title: "Credits",
|
|
88
|
+
rows: [
|
|
89
|
+
{ label: "Used", value: number(used) },
|
|
90
|
+
{ label: "Total", value: number(total) },
|
|
91
|
+
{ label: "Remaining", value: number(remaining) },
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
dataConfidence: "exact",
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
throw sessionRejected ? ctx.fail.authenticationExpired(signIn) : ctx.fail.missingCredential(signIn);
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// END UPSTREAM
|
|
103
|
+
})(globalThis.defineProvider);
|
|
@@ -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,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>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
|
|
2
2
|
globalThis.__usagestat_bundled_options = {"labels":["Spend","Spend","Additional"],"defaults":{},"autoMode":"web"};
|
|
3
|
+
(function(defineProvider) {
|
|
4
|
+
// BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/typesafe.js
|
|
3
5
|
function _optionalChain(ops) {
|
|
4
6
|
let lastAccessLHS = undefined;
|
|
5
7
|
let value = ops[0];
|
|
@@ -22,16 +24,17 @@ function _optionalChain(ops) {
|
|
|
22
24
|
return value;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
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";
|
|
30
33
|
|
|
31
34
|
defineProvider({
|
|
32
35
|
id: "typesafe",
|
|
33
36
|
name: "TypeSafe",
|
|
34
|
-
endpoints: [
|
|
37
|
+
endpoints: ["https://console.typesafe.ai"],
|
|
35
38
|
settings: [],
|
|
36
39
|
capabilities: ["browser-cookies", "http-status"],
|
|
37
40
|
cookieDomains: ["console.typesafe.ai", "typesafe.ai"],
|
|
@@ -46,9 +49,27 @@ defineProvider({
|
|
|
46
49
|
const value = raw && /^\d+(?:\.\d+)?$/.test(raw.trim()) ? Number(raw) : 1;
|
|
47
50
|
return Number.isFinite(value) ? Math.min(10, value) : 1;
|
|
48
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.
|
|
49
65
|
const validate = (response) => {
|
|
50
|
-
if (response.status ===
|
|
51
|
-
|
|
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
|
+
}
|
|
52
73
|
if (response.status === 429)
|
|
53
74
|
throw ctx.fail.rateLimited("TypeSafe rate limit reached.", { retryAfterSeconds: retryAfter(response) });
|
|
54
75
|
if (response.status === 408 || response.status >= 500)
|
|
@@ -58,106 +79,40 @@ defineProvider({
|
|
|
58
79
|
if (response.status < 200 || response.status >= 300)
|
|
59
80
|
throw ctx.fail.apiFailure(`TypeSafe returned HTTP ${response.status}.`);
|
|
60
81
|
};
|
|
61
|
-
// Login pages can also arrive directly with HTTP 200, without an HTTP redirect.
|
|
62
|
-
const isLoginLanding = (body) => /\\?"\(auth\)\\?",\{\\?"children\\?":\[\\?"login\\?"/.test(body);
|
|
63
|
-
const validateBody = (response) => {
|
|
64
|
-
validate(response);
|
|
65
|
-
if (isLoginLanding(response.bodyText)) expired();
|
|
66
|
-
};
|
|
67
|
-
const actionIDPattern = /"([0-9a-f]{40,})"[^)]{0,150}"getBillingOverviewResult"/i;
|
|
68
|
-
const discoverActionID = async (cookie) => {
|
|
69
|
-
const page = await ctx.http.get(billingURL, {
|
|
70
|
-
headers: { Cookie: cookie, Accept: "text/html" },
|
|
71
|
-
timeoutSeconds: 6,
|
|
72
|
-
});
|
|
73
|
-
validateBody(page);
|
|
74
|
-
const scriptPattern = /<script\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/gi;
|
|
75
|
-
const chunkURLs = [];
|
|
76
|
-
let match;
|
|
77
|
-
while ((match = scriptPattern.exec(page.bodyText)) && chunkURLs.length < maximumChunkCount) {
|
|
78
|
-
const source = match[1];
|
|
79
|
-
const normalized = source.startsWith("/") ? `${billingOrigin}${source}` : source;
|
|
80
|
-
if (!normalized.startsWith(`${billingOrigin}/`) || !/\.js(?:$|\?)/i.test(normalized)) continue;
|
|
81
|
-
if (!chunkURLs.includes(normalized)) chunkURLs.push(normalized);
|
|
82
|
-
}
|
|
83
|
-
let discoveryFailure;
|
|
84
|
-
for (const url of chunkURLs) {
|
|
85
|
-
try {
|
|
86
|
-
const chunk = await ctx.http.get(url, { timeoutSeconds: 2 });
|
|
87
|
-
if (chunk.status === 429 || chunk.status === 408 || chunk.status >= 500) validate(chunk);
|
|
88
|
-
if (chunk.status < 200 || chunk.status >= 300) continue;
|
|
89
|
-
const action = _optionalChain([
|
|
90
|
-
actionIDPattern,
|
|
91
|
-
"access",
|
|
92
|
-
(_) => _.exec,
|
|
93
|
-
"call",
|
|
94
|
-
(_2) => _2(chunk.bodyText),
|
|
95
|
-
"optionalAccess",
|
|
96
|
-
(_3) => _3[1],
|
|
97
|
-
]);
|
|
98
|
-
if (action) return action;
|
|
99
|
-
} catch (error) {
|
|
100
|
-
discoveryFailure ??= error;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (discoveryFailure !== undefined) throw discoveryFailure;
|
|
104
|
-
throw ctx.fail.parseFailure("TypeSafe billing page format changed: action id not found.");
|
|
105
|
-
};
|
|
106
82
|
const cookie = await ctx.browser.cookieHeader("typesafe.ai");
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
ctx.cache.set(actionCacheKey, "", 1);
|
|
127
|
-
actionID = await discoverActionID(cookie);
|
|
128
|
-
ctx.cache.set(actionCacheKey, actionID, actionCacheTTL);
|
|
129
|
-
response = await post(actionID);
|
|
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);
|
|
130
102
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
let candidate;
|
|
138
|
-
try {
|
|
139
|
-
candidate = JSON.parse(line.slice(separator + 1));
|
|
140
|
-
} catch (error) {
|
|
141
|
-
void error;
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
const object = record(candidate);
|
|
145
|
-
if (object && Object.prototype.hasOwnProperty.call(object, "ok")) {
|
|
146
|
-
result = object;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
103
|
+
let payload;
|
|
104
|
+
try {
|
|
105
|
+
payload = JSON.parse(body);
|
|
106
|
+
} catch (error) {
|
|
107
|
+
void error;
|
|
108
|
+
throw ctx.fail.parseFailure(overviewFailure);
|
|
149
109
|
}
|
|
150
|
-
|
|
151
|
-
if (
|
|
152
|
-
const billing = record(
|
|
153
|
-
_optionalChain([record, "call", (_4) => _4(result.data), "optionalAccess", (_5) => _5.billing]),
|
|
154
|
-
);
|
|
155
|
-
if (!billing) throw ctx.fail.parseFailure("TypeSafe billing response format changed: missing billing.");
|
|
110
|
+
const billing = record(_optionalChain([record, "call", (_) => _(payload), "optionalAccess", (_2) => _2.billing]));
|
|
111
|
+
if (!billing) throw ctx.fail.parseFailure(overviewFailure);
|
|
156
112
|
const number = (value) => (typeof value === "number" && Number.isFinite(value) ? value : undefined);
|
|
157
113
|
const spent = number(billing.spent);
|
|
158
114
|
const balance = number(billing.balance);
|
|
159
|
-
if (spent === undefined || balance === undefined)
|
|
160
|
-
throw ctx.fail.parseFailure("TypeSafe billing response format changed: missing billing numbers.");
|
|
115
|
+
if (spent === undefined || balance === undefined) throw ctx.fail.parseFailure(overviewFailure);
|
|
161
116
|
const cycleLabel =
|
|
162
117
|
typeof billing.cycleLabel === "string" && billing.cycleLabel.trim() ? billing.cycleLabel.trim() : undefined;
|
|
163
118
|
const plan = typeof billing.plan === "string" && billing.plan.trim() ? billing.plan.trim() : undefined;
|
|
@@ -167,46 +122,44 @@ defineProvider({
|
|
|
167
122
|
: _optionalChain([
|
|
168
123
|
plan,
|
|
169
124
|
"optionalAccess",
|
|
170
|
-
(
|
|
125
|
+
(_3) => _3.split,
|
|
171
126
|
"call",
|
|
172
|
-
(
|
|
127
|
+
(_4) => _4(/[_-]+/),
|
|
173
128
|
"access",
|
|
174
|
-
(
|
|
129
|
+
(_5) => _5.filter,
|
|
175
130
|
"call",
|
|
176
|
-
(
|
|
131
|
+
(_6) => _6(Boolean),
|
|
177
132
|
"access",
|
|
178
|
-
(
|
|
133
|
+
(_7) => _7.map,
|
|
179
134
|
"call",
|
|
180
|
-
(
|
|
135
|
+
(_8) => _8((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()),
|
|
181
136
|
"access",
|
|
182
|
-
(
|
|
137
|
+
(_9) => _9.join,
|
|
183
138
|
"call",
|
|
184
|
-
(
|
|
139
|
+
(_10) => _10(" "),
|
|
185
140
|
]);
|
|
186
141
|
const rows = [{ label: cycleLabel ? `Spent (${cycleLabel})` : "Spent", value: ctx.format.usd(spent) }];
|
|
187
142
|
if (planLabel) rows.push({ label: "Plan", value: planLabel });
|
|
188
143
|
const availableRows = 24 - rows.length;
|
|
189
144
|
const creditRows = [];
|
|
190
145
|
let creditCount = 0;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
});
|
|
209
|
-
}
|
|
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
|
+
});
|
|
210
163
|
}
|
|
211
164
|
if (creditCount > availableRows) {
|
|
212
165
|
const shown = availableRows - 1;
|
|
@@ -223,3 +176,6 @@ defineProvider({
|
|
|
223
176
|
};
|
|
224
177
|
},
|
|
225
178
|
});
|
|
179
|
+
|
|
180
|
+
// END UPSTREAM
|
|
181
|
+
})(globalThis.defineProvider);
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"envVars": [
|
|
15
15
|
"TYPESAFE_COOKIE"
|
|
16
16
|
],
|
|
17
|
+
"setupFields": [],
|
|
17
18
|
"upstream": {
|
|
18
19
|
"repository": "https://github.com/steipete/CodexBar",
|
|
19
|
-
"revision": "
|
|
20
|
+
"revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
|
|
20
21
|
"path": "Sources/CodexBarCore/Resources/Plugins/typesafe.js",
|
|
21
|
-
"sha256": "
|
|
22
|
+
"sha256": "da91db172678133393d38836fcb4028342edade8aa7994d2bc5e95290498192f",
|
|
22
23
|
"license": "MIT"
|
|
23
24
|
}
|
|
24
25
|
}
|
package/plugins/v0/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":["Billing","Rate limit","Additional"],"defaults":{},"autoMode":"api"};
|
|
3
|
+
(function(defineProvider) {
|
|
4
|
+
// BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/v0.js
|
|
3
5
|
function _nullishCoalesce(lhs, rhsFn) {
|
|
4
6
|
if (lhs != null) {
|
|
5
7
|
return lhs;
|
|
@@ -212,3 +214,6 @@ defineProvider({
|
|
|
212
214
|
};
|
|
213
215
|
},
|
|
214
216
|
});
|
|
217
|
+
|
|
218
|
+
// END UPSTREAM
|
|
219
|
+
})(globalThis.defineProvider);
|
package/plugins/v0/plugin.json
CHANGED
|
@@ -14,9 +14,17 @@
|
|
|
14
14
|
"V0_API_KEY",
|
|
15
15
|
"V0_SCOPE"
|
|
16
16
|
],
|
|
17
|
+
"setupFields": [
|
|
18
|
+
{
|
|
19
|
+
"key": "V0_SCOPE",
|
|
20
|
+
"title": "Scope",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Provider-specific account or source selection."
|
|
23
|
+
}
|
|
24
|
+
],
|
|
17
25
|
"upstream": {
|
|
18
26
|
"repository": "https://github.com/steipete/CodexBar",
|
|
19
|
-
"revision": "
|
|
27
|
+
"revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
|
|
20
28
|
"path": "Sources/CodexBarCore/Resources/Plugins/v0.js",
|
|
21
29
|
"sha256": "5f54a9329dca35d59d76e427c34d4d9db8d3400d0b38c5fcee8899928a900019",
|
|
22
30
|
"license": "MIT"
|