opencode-usage 0.5.1 → 0.5.3

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 (25) hide show
  1. package/dist/commander-ui/assets/index-BQeHKMP0.css +1 -0
  2. package/dist/commander-ui/assets/index-ybRDM9XN.js +20 -0
  3. package/dist/commander-ui/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2 +0 -0
  4. package/dist/commander-ui/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2 +0 -0
  5. package/dist/commander-ui/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  6. package/dist/commander-ui/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  7. package/dist/commander-ui/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  8. package/dist/commander-ui/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  9. package/dist/commander-ui/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  10. package/dist/commander-ui/dist/assets/index-BQeHKMP0.css +1 -0
  11. package/dist/commander-ui/dist/assets/index-ybRDM9XN.js +20 -0
  12. package/dist/commander-ui/dist/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2 +0 -0
  13. package/dist/commander-ui/dist/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2 +0 -0
  14. package/dist/commander-ui/dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  15. package/dist/commander-ui/dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  16. package/dist/commander-ui/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  17. package/dist/commander-ui/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  18. package/dist/commander-ui/dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  19. package/dist/commander-ui/dist/index.html +23 -0
  20. package/dist/commander-ui/dist/vite.svg +1 -0
  21. package/dist/commander-ui/index.html +23 -0
  22. package/dist/commander-ui/vite.svg +1 -0
  23. package/dist/index.js +23 -8
  24. package/dist/index.js.map +3 -3
  25. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>commander-ui</title>
8
+ <script>
9
+ (function () {
10
+ var t = localStorage.getItem("commander-theme");
11
+ var d =
12
+ t === "dark" ||
13
+ (t !== "light" && matchMedia("(prefers-color-scheme:dark)").matches);
14
+ if (d) document.documentElement.classList.add("dark");
15
+ })();
16
+ </script>
17
+ <script type="module" crossorigin src="/assets/index-ybRDM9XN.js"></script>
18
+ <link rel="stylesheet" crossorigin href="/assets/index-BQeHKMP0.css">
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ </body>
23
+ </html>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>commander-ui</title>
8
+ <script>
9
+ (function () {
10
+ var t = localStorage.getItem("commander-theme");
11
+ var d =
12
+ t === "dark" ||
13
+ (t !== "light" && matchMedia("(prefers-color-scheme:dark)").matches);
14
+ if (d) document.documentElement.classList.add("dark");
15
+ })();
16
+ </script>
17
+ <script type="module" crossorigin src="/assets/index-ybRDM9XN.js"></script>
18
+ <link rel="stylesheet" crossorigin href="/assets/index-BQeHKMP0.css">
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ </body>
23
+ </html>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/dist/index.js CHANGED
@@ -30731,8 +30731,6 @@ async function runCommanderServer(args) {
30731
30731
  }
30732
30732
  }
30733
30733
  if (!url.pathname.startsWith("/api/")) {
30734
- const base = new URL(".", import.meta.url).pathname;
30735
- const UI_DIST = await Bun.file(join10(base, "commander-ui", "index.html")).exists() ? join10(base, "commander-ui") : join10(base, "..", "commander-ui", "dist");
30736
30734
  const filePath = url.pathname === "/" ? join10(UI_DIST, "index.html") : join10(UI_DIST, url.pathname);
30737
30735
  const file = Bun.file(filePath);
30738
30736
  if (await file.exists())
@@ -30753,12 +30751,29 @@ var isBun7 = typeof globalThis.Bun !== "undefined";
30753
30751
  var DEFAULT_PORT = 4466;
30754
30752
  var __dirname2 = dirname2(fileURLToPath2(import.meta.url));
30755
30753
  var PKG_VERSION = (() => {
30756
- try {
30757
- const pkg = JSON.parse(readFileSync2(join10(__dirname2, "..", "..", "package.json"), "utf-8"));
30758
- return String(pkg.version ?? "0.0.0");
30759
- } catch {
30760
- return "0.0.0";
30754
+ for (const rel of [
30755
+ join10(__dirname2, "..", "..", "package.json"),
30756
+ join10(__dirname2, "..", "package.json")
30757
+ ]) {
30758
+ try {
30759
+ const pkg = JSON.parse(readFileSync2(rel, "utf-8"));
30760
+ if (pkg.version)
30761
+ return String(pkg.version);
30762
+ } catch {
30763
+ }
30764
+ }
30765
+ return "0.0.0";
30766
+ })();
30767
+ var UI_DIST = await (async () => {
30768
+ const candidates = [
30769
+ join10(__dirname2, "commander-ui"),
30770
+ join10(__dirname2, "..", "commander-ui", "dist")
30771
+ ];
30772
+ for (const dir of candidates) {
30773
+ if (await Bun.file(join10(dir, "index.html")).exists())
30774
+ return dir;
30761
30775
  }
30776
+ return candidates[0];
30762
30777
  })();
30763
30778
  var usageWorkerPath = join10(__dirname2, "services", "usage-worker.ts");
30764
30779
  var canUseWorker = await Bun.file(usageWorkerPath).exists();
@@ -30872,4 +30887,4 @@ async function main2() {
30872
30887
  var WATCH_INTERVAL_MS = 5 * 60 * 1000;
30873
30888
  main2().catch(console.error);
30874
30889
 
30875
- //# debugId=AAD27BF82DBA8BEB64756E2164756E21
30890
+ //# debugId=2B2A0EC747EBB71864756E2164756E21