@kabmo-labs/kabmo 0.19.0 → 0.21.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.
Files changed (49) hide show
  1. package/README.md +32 -5
  2. package/dist/client/index.html +3 -3
  3. package/dist/client/index.js +362 -362
  4. package/dist/client/static/js/{index-sxdw908m.css → index-0721wrkf.css} +1 -1
  5. package/dist/client/static/js/{index-fcee4c13.js → index-zg32n2sk.js} +685 -685
  6. package/dist/client/static/{manifest-42r8wcmg.webmanifest → manifest-q6h8k9e0.webmanifest} +1 -1
  7. package/index.html +1 -1
  8. package/package.json +1 -1
  9. package/public/manifest.webmanifest +1 -1
  10. package/src/client/components/common/checkbox/style.test.ts +11 -8
  11. package/src/client/components/common/panel-mark/index.test.tsx +124 -0
  12. package/src/client/components/common/panel-mark/index.tsx +9 -1
  13. package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +46 -0
  14. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +1 -1
  15. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +7 -9
  16. package/src/client/components/settings/categories/panel-plugins/PluginCard.test.tsx +149 -0
  17. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +33 -6
  18. package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +15 -0
  19. package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +6 -2
  20. package/src/client/components/settings/categories/panel-plugins/Section.tsx +7 -1
  21. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +35 -2
  22. package/src/client/glass-sticky.test.ts +46 -0
  23. package/src/client/glass.css +27 -17
  24. package/src/client/glass.test.ts +21 -61
  25. package/src/client/hooks/ui/stuck-header.test.ts +28 -3
  26. package/src/client/hooks/ui/stuck-header.ts +36 -5
  27. package/src/client/hooks/workspace/panel-registry.ts +8 -4
  28. package/src/server/lib/lifecycle/tls.test.ts +6 -1
  29. package/src/server/lib/panels/git-update.server.test.ts +20 -0
  30. package/src/server/lib/panels/git-update.server.ts +20 -4
  31. package/src/server/lib/panels/sync.server.ts +9 -1
  32. package/src/server/lib/panels/update.server.test.ts +193 -0
  33. package/src/server/lib/panels/update.server.ts +210 -0
  34. package/src/server/lib/plugins/server-half.server.ts +42 -0
  35. package/src/server/lib/terminal/attach-replay.test.ts +26 -8
  36. package/src/server/routes/panels/install-route.test.ts +238 -0
  37. package/src/server/routes/panels/install.ts +36 -64
  38. package/src/server/routes/panels/panel-routes.test-util.ts +6 -1
  39. package/src/server/routes/panels/routes.test.ts +1 -118
  40. package/src/shared/lib/icons/icon-paint-css.test.ts +8 -7
  41. package/src/shared/lib/icons/icon-paint-css.ts +2 -1
  42. package/src/shared/lib/icons/icon-paint-panel.ts +16 -7
  43. package/src/shared/lib/icons/icon-tone.ts +166 -0
  44. package/src/shared/lib/icons/tint-hues.generated.ts +50 -3
  45. package/src/shared/lib/icons/tint.test.ts +75 -15
  46. package/src/shared/lib/icons/tint.ts +40 -11
  47. package/src/shared/lib/panels/update.test.ts +107 -0
  48. package/src/shared/lib/panels/update.ts +73 -0
  49. package/src/shared/lib/theme/color.ts +50 -0
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- Browser console and diagnostic workbench for <a href="https://github.com/can1357/oh-my-pi">Oh-My-Pi</a> (<code>omp</code>) agent sessions.<br>
6
+ Web console and diagnostic workbench for <a href="https://github.com/can1357/oh-my-pi">Oh-My-Pi</a> (<code>omp</code>) agent sessions.<br>
7
7
  Watch, steer and audit autonomous coding sessions from one paper-flat dashboard.
8
8
  </p>
9
9
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  ## What it is
31
31
 
32
- The browser view onto a live `omp` install. It is not a terminal wrapper: Kabmo reads omp's own
32
+ The web app over a live `omp` install. It is not a terminal wrapper: Kabmo reads omp's own
33
33
  session JSONL, project registry, config and subagent transcripts, folds them into one live view, and
34
34
  writes back through omp's RPC mode.
35
35
 
@@ -43,7 +43,8 @@ bun run dev # source checkout: one process, HMR, no build step
43
43
  no separate client watcher.
44
44
  - **Two data modes.** `MOCK=false` (the default, also when unset) runs on the real SQLite database
45
45
  and your real workspace; `MOCK=true` swaps in bundled demo datasets. Every screenshot and
46
- recording on this page was captured in `MOCK=true`.
46
+ recording on this page was captured in `MOCK=true`, in the **glass** surface style with
47
+ **full-colour** icons.
47
48
  - **Bun only.** The server imports `bun:sqlite` and `Bun.YAML`, the client is bundled by `Bun.build`,
48
49
  and sessions, config and updates shell out to the `omp` binary.
49
50
 
@@ -61,7 +62,7 @@ bun run dev # source checkout: one process, HMR, no build step
61
62
  | ![Wiki](docs/assets/panel-wiki.png)<br>**Wiki** — reads a project's GitHub/GitLab wiki over git, with its own `_Sidebar` as navigation | ![Todos](docs/assets/panel-todo.png)<br>**Todos** — the session's live list, all five omp statuses, blockers and per-phase progress |
62
63
  | ![Plan](docs/assets/panel-plan.png)<br>**Plan** — the plan artifact an omp session is working from, rendered as a document | ![Usage](docs/assets/panel-usage.png)<br>**Usage** — provider balance, plan windows, saved resets, per-model token spend |
63
64
  | ![Your browser](docs/assets/panel-user-browser.png)<br>**Browser (yours)** — a private iframe with real history and device presets | ![Agent browser](docs/assets/panel-agent-browser.png)<br>**Browser agent** — a live screencast of the tab the agent is driving |
64
- | ![Panel plugins](docs/assets/settings-panel-plugins.png)<br>**Panel plugins** — every view is a plugin, including the eleven bundled ones | ![Providers](docs/assets/settings-providers.png)<br>**Providers** — dialects, discovery, hand-added models, credential removal |
65
+ | ![Panel plugins](docs/assets/settings-panel-plugins.png)<br>**Panel plugins** — every view is a plugin, the eleven built-in ones included | ![Providers](docs/assets/settings-providers.png)<br>**Providers** — dialects, discovery, hand-added models, credential removal |
65
66
  | ![Mobile view](docs/assets/mobile.png)<br>**Mobile view** — the same session on a phone: chat, sessions drawer, and the panel drawer | ![Light theme](docs/assets/hero-light.png)<br>**Any palette** — 63 light and dark themes, applied to the whole console |
66
67
 
67
68
  - **Chat timeline** — streaming thinking blocks (omp's narrated prose promoted to answer text), a
@@ -78,7 +79,7 @@ bun run dev # source checkout: one process, HMR, no build step
78
79
  - **Eleven right-panel views, each a plugin** — context & telemetry, files, search, source control,
79
80
  wiki, terminal, your browser, the agent browser, usage, todos and plan; each remembers its own width
80
81
  per session. A plugin can ship a Preact view, a server half, storage, RPC methods, a realtime topic
81
- and settings; three are bundled (`Runner`, `Stats`, `Session Info`).
82
+ and settings; four are bundled (`Runner`, `Stats`, `Session Info`, `Forge`).
82
83
  - **The whole omp settings surface** — engine config generated from omp's own schema, providers,
83
84
  agents, `AGENTS.md` / `RULES.md`, slash commands, MCP servers with live connection tests, skills,
84
85
  token usage, notifications and dictation.
@@ -99,6 +100,32 @@ theme needs a second set of colours for it.
99
100
 
100
101
  ![Eight of the 63 palettes, same surface](docs/assets/theme-grid.png)
101
102
 
103
+ ## Surfaces and icons
104
+
105
+ Two appearance axes sit on top of the palette, each one setting on the same shell — the same panels,
106
+ rows and dialogs, only cut from a different material:
107
+
108
+ - **Surfaces** (`surfaceStyle`) — `Classic` is opaque paper over the palette canvas: the sharpest
109
+ text and the cheapest frame, and what an upgrade keeps. `Glass` is one frosted plane under a
110
+ palette-tinted aura, with the panels above it as translucent tints. The plane owns the blur — a
111
+ single `backdrop-filter` per window — so the panel count never decides the frame budget, and the
112
+ frost is mixed from the palette's own paper and canvas, so no theme needs a second set of colours
113
+ for it. A machine that reports no backdrop blur, or asks apps to reduce transparency, falls back to
114
+ opaque panels and the settings card says which of the two it found.
115
+ - **Icons** (`iconStyle`) — `Monochrome` paints every icon in the surrounding ink. `Full colour`
116
+ gives each one its own colour: functional glyphs a generated per-icon hue, provider and model marks
117
+ their own brand colour, file-type marks their language's, and a project its accent. A brand colour
118
+ that would vanish on the active variant (a black logo on a dark theme) keeps the ink instead, and
119
+ the generated hues are stated at a lightness that clears the 3:1 non-text floor on every palette of
120
+ that variant. Tool cards in a transcript stay ink — they are read, not scanned.
121
+
122
+ Both reach the document as attributes on `<html>` (`data-surface`, `data-icon-style`) and are read by
123
+ CSS only, so one setting repaints every surface — sidebar, navbar, composer, modal — without a prop
124
+ at any call site. The first frame is painted from the SSR shell, so a glass install never flashes
125
+ opaque.
126
+
127
+ ![Classic and glass surfaces, monochrome and full-colour icons, same palette](docs/assets/theme-styles.png)
128
+
102
129
  ## Install
103
130
 
104
131
  Kabmo is published to npm and runs on **Bun 1.4+**, not Node. Live capabilities need the `omp`
@@ -12,7 +12,7 @@
12
12
  <meta name="apple-mobile-web-app-title" content="Kabmo" />
13
13
  <meta
14
14
  name="description"
15
- content="A light e-ink paper developer dashboard for AI Oh-My-Pi agent sessions — a browser console for CI/CD deployments."
15
+ content="A light e-ink paper developer dashboard for AI Oh-My-Pi agent sessions — a web console for CI/CD deployments."
16
16
  />
17
17
  <title>Kabmo</title>
18
18
  <!-- Inline and in the head on purpose: this has to be registered BEFORE the
@@ -53,7 +53,7 @@
53
53
  manifest's OWN icon entries stay absolute — Bun does not rewrite inside
54
54
  a copied JSON file, and `public/` is served directly, so `/icon.svg`
55
55
  resolves there. -->
56
- <link rel="manifest" href="./static/manifest-42r8wcmg.webmanifest" />
56
+ <link rel="manifest" href="./static/manifest-q6h8k9e0.webmanifest" />
57
57
  <link rel="icon" type="image/svg+xml" href="./static/icon-8h6v1jcy.svg" sizes="any" />
58
58
  <link rel="icon" type="image/png" href="./static/icon-192x192-kz5bvz85.png" sizes="192x192" />
59
59
  <link rel="apple-touch-icon" href="./static/apple-touch-icon-bbhgf3mq.png" />
@@ -64,7 +64,7 @@
64
64
  href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
65
65
  />
66
66
  <!--app-head-->
67
- <link rel="stylesheet" crossorigin href="./static/js/index-sxdw908m.css"><script type="module" crossorigin src="./static/js/index-fcee4c13.js"></script></head>
67
+ <link rel="stylesheet" crossorigin href="./static/js/index-0721wrkf.css"><script type="module" crossorigin src="./static/js/index-zg32n2sk.js"></script></head>
68
68
  <body>
69
69
  <div id="app"></div>
70
70
  <!--app-bootstrap-->