codex-copilot-dx 0.8.10 → 0.8.11

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/README.md CHANGED
@@ -219,6 +219,8 @@ After starting `ccdx`, open [http://127.0.0.1:2026/](http://127.0.0.1:2026/) in
219
219
 
220
220
  The dashboard loads local status, a live GitHub Copilot model directory, and a summary of local usage metadata once when opened. Each section has an explicit Refresh control; nothing polls in the background. The appearance button switches between the default dark terminal theme (sun icon) and a light theme (moon icon); the choice is stored only in that browser. The live model table uses the same fresh account validation and selectable GPT filtering as `ccdx models`, never labels cached fallback data as online, and makes no inference request. A catalog listing does not guarantee inference access. The Usage table combines the current and rotated local usage logs, shows totals and up to 100 model rows, and contains no prompt, response body, or credential fields. The animation selector previews the existing themes and saves through the same settings writer as `ccdx animation`; changes take effect on the next adapter start, and `CCDX_TERMINAL_ANIMATION=off` still disables terminal motion. Dashboard data requests require a custom header that cross-site simple requests cannot send; animation writes also require a matching same-origin `Origin`. The dashboard does not initialize the optional image handler. The overview's known-model count is the adapter's current in-memory catalog, not the live table. A missing image-generation status does not prove the feature is disabled: use `ccdx image-status` to check setup. Recent upstream error prose may contain sensitive details, so review the page before sharing screenshots.
221
221
 
222
+ The transparent, single-color double-peak favicon follows the dashboard's saved light/dark choice without a separate network request.
223
+
222
224
  Inspect only the local Codex configuration:
223
225
 
224
226
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "Use Codex App with GitHub Copilot",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <meta name="color-scheme" content="dark light">
7
- <link rel="icon" href="data:,">
7
+ <link id="favicon" rel="icon" type="image/svg+xml" href="data:,">
8
8
  <script src="/theme.js"></script>
9
9
  <link rel="stylesheet" href="/ui.css">
10
10
  <script src="/ui.js" defer></script>
@@ -4,7 +4,13 @@
4
4
  try {
5
5
  if (localStorage.getItem(key) === "light") theme = "light";
6
6
  } catch { /* Private browsing may disable storage. */ }
7
- document.documentElement.dataset.theme = theme;
7
+ const applyTheme = () => {
8
+ document.documentElement.dataset.theme = theme;
9
+ const color = theme === "dark" ? "#a6f5a8" : "#176b3a";
10
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M7 27v10M12 22v20M17 14v36M22 19v26M27 25v14M32 28v8M37 25v14M42 19v26M47 14v36M52 22v20M57 27v10" fill="none" stroke="${color}" stroke-width="3.5" stroke-linecap="round"/></svg>`;
11
+ document.getElementById("favicon").href = `data:image/svg+xml,${encodeURIComponent(svg)}`;
12
+ };
13
+ applyTheme();
8
14
 
9
15
  document.addEventListener("DOMContentLoaded", () => {
10
16
  const button = document.getElementById("theme-toggle");
@@ -16,7 +22,7 @@
16
22
  updateLabel();
17
23
  button.addEventListener("click", () => {
18
24
  theme = theme === "dark" ? "light" : "dark";
19
- document.documentElement.dataset.theme = theme;
25
+ applyTheme();
20
26
  try { localStorage.setItem(key, theme); } catch { /* Keep the current selection. */ }
21
27
  updateLabel();
22
28
  });