kaizen-agent 1.26.0 → 1.26.1
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/cli/web.ts +8 -1
- package/package.json +1 -1
- package/web/board.html +3 -0
- package/web/notes.html +3 -0
package/cli/web.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { listNotes, saveNote, renameNote, deleteNote, boardIndex, linksTo } from
|
|
|
17
17
|
const PAGE = join(dirname(import.meta.dir), "web", "board.html");
|
|
18
18
|
// The notebook: its page, and the CodeMirror bundle `bun run build:web` commits beside it.
|
|
19
19
|
const NOTES_PAGE = join(dirname(import.meta.dir), "web", "notes.html");
|
|
20
|
+
const ICO = join(dirname(import.meta.dir), "assets", "kaizen.ico");
|
|
20
21
|
const NOTES_JS = join(dirname(import.meta.dir), "web", "notebook.js");
|
|
21
22
|
// The in-card terminal (agent.launch: card): xterm.js, bundled the same way.
|
|
22
23
|
const TERM_JS = join(dirname(import.meta.dir), "web", "term.js");
|
|
@@ -307,7 +308,13 @@ export async function web(repoDir: string, opts: Opts = {}) {
|
|
|
307
308
|
return json(boardIndex(dir));
|
|
308
309
|
}
|
|
309
310
|
|
|
310
|
-
// The icon
|
|
311
|
+
// The tab's icon: small sizes from the .ico, the logo for anything bigger.
|
|
312
|
+
if (req.method === "GET" && path === "/favicon.ico") {
|
|
313
|
+
if (!existsSync(ICO)) return bad("no icon", 404);
|
|
314
|
+
return new Response(Bun.file(ICO), { headers: { "content-type": "image/x-icon", "cache-control": "max-age=86400" } });
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// The icon on a web notification and the large app icon.
|
|
311
318
|
if (req.method === "GET" && path === "/logo.png") {
|
|
312
319
|
if (!existsSync(LOGO)) return bad("no logo", 404);
|
|
313
320
|
return new Response(Bun.file(LOGO), { headers: { "content-type": "image/png", "cache-control": "max-age=86400" } });
|
package/package.json
CHANGED
package/web/board.html
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<title>kaizen</title>
|
|
7
|
+
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
8
|
+
<link rel="icon" type="image/png" href="/logo.png">
|
|
9
|
+
<link rel="apple-touch-icon" href="/logo.png">
|
|
7
10
|
<style>
|
|
8
11
|
:root{--bg:#f6f8fc;--bg-2:#fff;--line:#d9e0ee;--ink:#0c162f;--ink-hi:#0c162f;--dim:#5b6b8c;--accent:#2d50a5;--run:#0f8fa3;--ok:#1f9d55;--warn:#a8720a;--danger:#c8322f;color-scheme:light}
|
|
9
12
|
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0c162f;--bg-2:#121e3c;--line:#22305a;--ink:#eef2fa;--ink-hi:#deeeff;--dim:#96aacd;--accent:#486ed9;--run:#4fd6e6;--ok:#5fd28a;--warn:#e6b450;--danger:#e85050;color-scheme:dark}}
|
package/web/notes.html
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<title>kaizen notebook</title>
|
|
7
|
+
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
8
|
+
<link rel="icon" type="image/png" href="/logo.png">
|
|
9
|
+
<link rel="apple-touch-icon" href="/logo.png">
|
|
7
10
|
<style>
|
|
8
11
|
/* Tokens: copied from web/board.html, line for line; cli/notes.test.ts holds them equal. */
|
|
9
12
|
:root{--bg:#f6f8fc;--bg-2:#fff;--line:#d9e0ee;--ink:#0c162f;--ink-hi:#0c162f;--dim:#5b6b8c;--accent:#2d50a5;--run:#0f8fa3;--ok:#1f9d55;--warn:#a8720a;--danger:#c8322f;color-scheme:light}
|