mqtt2matter 0.2.0 → 0.3.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.
- package/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/server/fabrics.d.ts +42 -0
- package/dist/server/fabrics.js +50 -0
- package/dist/server/fabrics.js.map +1 -0
- package/dist/server/server.d.ts +19 -7
- package/dist/server/server.js +60 -8
- package/dist/server/server.js.map +1 -1
- package/dist/server/stats.d.ts +36 -0
- package/dist/server/stats.js +76 -0
- package/dist/server/stats.js.map +1 -0
- package/docs/api.md +19 -13
- package/package.json +1 -1
- package/ui/dist/assets/index-1HdbTkGD.css +1 -0
- package/ui/dist/assets/index-tiKYDC-5.js +10 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/licenses.json +1 -0
- package/ui/dist/assets/index-BDtT6bdH.js +0 -10
- package/ui/dist/assets/index-CHiG-aoU.css +0 -1
package/docs/api.md
CHANGED
|
@@ -32,14 +32,20 @@ the proxy's header, and the WebSocket upgrade of `/api/events` is refused with `
|
|
|
32
32
|
|
|
33
33
|
## Status and configuration
|
|
34
34
|
|
|
35
|
-
| Route | Answer
|
|
36
|
-
| ------------------- |
|
|
37
|
-
| `GET /api/status` | `{version, uptime (s), running, configPath, mqtt: {url, connected}, bridges: [bridge…], devices: n, importers: ["z2m", …], update: {latest?, newer}}`
|
|
38
|
-
| `GET /api/
|
|
39
|
-
| `
|
|
40
|
-
| `
|
|
41
|
-
| `
|
|
42
|
-
| `POST /api/
|
|
35
|
+
| Route | Answer |
|
|
36
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
37
|
+
| `GET /api/status` | `{version, uptime (s), running, configPath, mqtt: {url, connected}, bridges: [bridge…], devices: n, importers: ["z2m", …], update: {latest?, newer}}` |
|
|
38
|
+
| `GET /api/stats` | the statistics popup: `{uptime (s), memoryMb (RSS), heapMb, cpuPercent (of one core), eluPercent (event loop utilisation), lagMeanMs, lagMaxMs (event loop delay), mqttMessagesPerSecond, window (s), devices, endpoints, bridges, bridgesCommissioned, fabrics, mqttConnected, mqttTopics}` — the rates and the event loop figures are averages over a window the server closes every 5 s (since the start until the first one closes), so every viewer reads the same values; the counts are current |
|
|
39
|
+
| `GET /api/config` | `{path, settings, overridden, effective}` — `settings` is the file's top level without `devices` (what the editor saves back), `overridden` the paths the environment sets (`["mqtt.url"]`), `effective` the running values with the MQTT password masked |
|
|
40
|
+
| `PUT /api/config` | body: the `settings` object (`mqtt`, `storage`, `log`, `vendorId`, `productId`, `bridges`, `server`, `presets`, `importers`); validated as a whole; `409` when a path the environment owns would change; answers `{saved: true, restartNeeded: true}` — settings apply at the next start |
|
|
41
|
+
| `GET /api/update` | `?check=1` asks the registry now (else at most every 6 hours); `{current, latest?, published, newer, checkedAt?, error?, restart: {available, reason?}, update: {available, reason?, requested?, log}}` — `published: false` while the package is not on npm, `log` the last lines of the update helper's log |
|
|
42
|
+
| `POST /api/update` | `{version}`: the registry's newer latest version only; writes the request the root helper takes (README "Restart and update from the UI"); `409` with the reason otherwise (not under the service, not published, not the latest) |
|
|
43
|
+
| `POST /api/restart` | `{restarting: true}`, then a clean stop with exit code 75, which the service's unit restarts on; `409` when not running as that service |
|
|
44
|
+
|
|
45
|
+
The licences of the package — mqtt2matter's own (`LICENSE`, `NOTICE`) and the third-party ones of the runtime
|
|
46
|
+
dependencies and of what the UI bundle contains — are a static file of the built UI, `/licenses.json`:
|
|
47
|
+
`{self: {name, version, license, text, notice}, runtime: [package…], ui: [package…]}`, each package
|
|
48
|
+
`{name, version, license, repository?, text?}`; generated by `npm run build` from `node_modules`.
|
|
43
49
|
|
|
44
50
|
## Devices
|
|
45
51
|
|
|
@@ -77,11 +83,11 @@ the proxy's header, and the WebSocket upgrade of `/api/events` is refused with `
|
|
|
77
83
|
|
|
78
84
|
## Bridges
|
|
79
85
|
|
|
80
|
-
| Route | Answer
|
|
81
|
-
| ---------------------------------------- |
|
|
82
|
-
| `GET /api/bridges` | `[{id, port, online, commissioned, pairingCodes: {manualPairingCode, qrPairingCode}, devices: n, fabrics: [
|
|
83
|
-
| `POST /api/bridges/:id/commissioning` | `{open: true, minutes?}` opens a basic commissioning window with the bridge's passcode (≤ 15 minutes, the default); `{open: false}` closes it; answers the bridge
|
|
84
|
-
| `DELETE /api/bridges/:id/fabrics/:index` | removes a fabric (the controller loses the bridge); `204`
|
|
86
|
+
| Route | Answer |
|
|
87
|
+
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
88
|
+
| `GET /api/bridges` | `[{id, port, online, commissioned, pairingCodes: {manualPairingCode, qrPairingCode}, devices: n, fabrics: [fabric…], windowStatus}]` — `windowStatus` 0 closed, 1 enhanced window open, 2 basic window open; a fabric is `{index, label, vendorId, vendorName?, nodeId, rootNodeId, fabricId, compressedFabricId, sessions, subscriptions, lastInteraction?}`: `vendorName` the controller of a known root vendor id (Apple Home, Apple Keychain, Google Home, Amazon Alexa, Home Assistant, SmartThings, …), `nodeId` the bridge's node id in the fabric, `rootNodeId` the controller's, `compressedFabricId` hex, `sessions` the active sessions and `subscriptions` their subscriptions, `lastInteraction` ms since the epoch |
|
|
89
|
+
| `POST /api/bridges/:id/commissioning` | `{open: true, minutes?}` opens a basic commissioning window with the bridge's passcode (≤ 15 minutes, the default); `{open: false}` closes it; answers the bridge |
|
|
90
|
+
| `DELETE /api/bridges/:id/fabrics/:index` | removes a fabric (the controller loses the bridge); `204` |
|
|
85
91
|
|
|
86
92
|
## Adopt
|
|
87
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mqtt2matter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Generic MQTT to Matter bridge: compose Matter devices by hand and map them onto MQTT topics with configurable payloads; importers for Zigbee2MQTT and Home Assistant MQTT discovery",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.login.svelte-12tsuzi{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:16px;background:var(--ui-bg);color:var(--ui-fg)}.card.svelte-12tsuzi{width:min(340px,100%);gap:12px;background:var(--ui-header-bg)}.brand.svelte-12tsuzi{font-weight:700;letter-spacing:1px;color:var(--ui-accent);text-align:center}form.svelte-12tsuzi{display:flex;flex-direction:column;gap:8px}form.svelte-12tsuzi .ui-form-label:where(.svelte-12tsuzi){text-align:left}p.svelte-12tsuzi{margin:0}.language.svelte-12tsuzi{align-self:center;width:auto}.ui-dialog.svelte-1vv01t1{max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);padding:0;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius);background:var(--ui-bg);color:var(--ui-fg);font-family:var(--ui-font);font-size:var(--ui-font-size);box-shadow:var(--ui-shadow-menu)}.ui-dialog[open].svelte-1vv01t1{display:flex;flex-direction:column}.ui-dialog.svelte-1vv01t1::backdrop{background:var(--ui-backdrop)}.ui-dialog-titlebar.svelte-1vv01t1{display:flex;flex:0 0 auto;align-items:center;gap:8px;padding:4px 6px 4px 10px;background:var(--ui-header-bg);border-bottom:1px solid var(--ui-border)}.ui-dialog-title.svelte-1vv01t1{font-weight:700;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-dialog-close.svelte-1vv01t1{border:1px solid transparent;border-radius:var(--ui-radius);background:none;cursor:pointer;line-height:1;padding:2px 6px}.ui-dialog-close.svelte-1vv01t1:hover{border-color:var(--ui-border);background:var(--ui-accent-bg)}.ui-dialog-body.svelte-1vv01t1{display:flex;flex-direction:column;gap:var(--ui-form-section-gap);flex:1 1 auto;min-height:0;padding:10px;overflow:auto}.ui-dialog-buttons.svelte-1vv01t1{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:6px;padding:6px 10px;border-top:1px solid var(--ui-border-muted);background:var(--ui-bg-sunken)}.message.svelte-kd97iv{margin:0;white-space:pre-line}section.svelte-9byitx{margin-bottom:12px}h3.svelte-9byitx{margin:0 0 6px;font-size:var(--ui-font-size);font-weight:600}details.svelte-9byitx{padding:2px 0;border-bottom:1px solid var(--ui-border-muted)}summary.svelte-9byitx{cursor:pointer;padding:2px 0}.name.svelte-9byitx{font-weight:500}details.svelte-9byitx p:where(.svelte-9byitx){margin:4px 0}details.svelte-9byitx pre:where(.svelte-9byitx){margin:4px 0 6px}.notices.svelte-1cnh99m{position:fixed;right:10px;bottom:10px;z-index:400;display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:460px;max-height:calc(100vh - 20px);overflow-y:auto}.more.svelte-1cnh99m{align-self:flex-end;padding:2px 8px;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius);background:var(--ui-bg);color:var(--ui-fg-muted);font:inherit;font-size:var(--ui-font-size-small);cursor:pointer}.notice.svelte-1cnh99m{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border:1px solid var(--ui-border-strong);border-left-width:4px;border-radius:var(--ui-radius);background:var(--ui-bg);box-shadow:var(--ui-shadow-toast)}.warn.svelte-1cnh99m{border-left-color:var(--ui-warn)}.error.svelte-1cnh99m{border-left-color:var(--ui-error)}.text.svelte-1cnh99m{flex:1 1 auto;overflow-wrap:anywhere}.close.svelte-1cnh99m{border:none;background:none;cursor:pointer;line-height:1;padding:0 2px;color:inherit}.note.svelte-qffmqt{margin:0 0 6px;font-size:var(--ui-font-size-small)}.ui-tabs.svelte-1p26yap{display:flex;align-self:stretch;align-items:stretch;gap:2px;margin-bottom:-1px;position:relative;z-index:1;overflow-x:auto;scrollbar-width:none}.ui-tab.svelte-1p26yap{display:flex;align-items:center;gap:4px;padding:0 12px;border:none;border-radius:var(--ui-radius) var(--ui-radius) 0 0;background:none;color:var(--ui-fg-muted);font-weight:500;cursor:pointer;white-space:nowrap}.ui-tab.svelte-1p26yap:hover:not(.ui-tab-active){background:var(--ui-control-bg-hover);color:var(--ui-fg)}.ui-tab-active.svelte-1p26yap{background:var(--ui-accent-bg);color:var(--ui-fg);box-shadow:inset 0 -2px 0 var(--ui-accent)}.ui-tab.svelte-1p26yap .ui-dot:where(.svelte-1p26yap){margin-right:0}.ui-tab-badge.svelte-1p26yap{color:var(--ui-fg-muted);font-size:var(--ui-font-size-small)}.version.svelte-1af60h4{font-size:var(--ui-font-size-small)}.spin.svelte-1af60h4{display:inline-flex}.newer.svelte-1af60h4{color:var(--ui-warn);font-weight:600}p.svelte-1af60h4{margin:0 0 6px}.reason.svelte-1af60h4{margin:0 0 4px;text-align:center;font-size:var(--ui-font-size-small)}.log.svelte-1af60h4{margin-top:6px;max-height:160px;font-size:var(--ui-font-size-small)}.filter.svelte-izwxip{width:220px}.notes.svelte-izwxip{white-space:normal}.group.svelte-izwxip,.native.svelte-izwxip{margin-left:4px}p.svelte-izwxip{margin:0}.qr.svelte-qzpscf{display:block;border:4px solid #ffffff;border-radius:var(--ui-radius);background:#fff}.fabrics.svelte-1amxn89{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}.fabric.svelte-1amxn89{padding:6px 8px;border:1px solid var(--ui-border-muted);border-radius:var(--ui-radius)}.fabric-head.svelte-1amxn89{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.controller.svelte-1amxn89{font-weight:600}.remove.svelte-1amxn89{margin-left:auto}.hint.svelte-1amxn89{margin:4px 0 0}.details.svelte-1amxn89{margin-top:6px;font-size:var(--ui-font-size-grid)}.bridges.svelte-1amxn89{display:flex;flex-direction:column;gap:10px}.pairing.svelte-1amxn89{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.code.svelte-1amxn89{font-size:16px;letter-spacing:1px}p.svelte-1amxn89{margin:0}.issues.svelte-1j1p4r5{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:3px;font-size:var(--ui-font-size-grid)}.issues.svelte-1j1p4r5 li:where(.svelte-1j1p4r5){display:flex;gap:6px;align-items:baseline;overflow-wrap:anywhere}.verdict.svelte-1wugbv7{font-weight:600;margin-bottom:8px}.ui-section.svelte-1wugbv7{margin-bottom:8px}.display.svelte-ovo0td{grid-column:1 / -1}.display-row.svelte-ovo0td{display:flex;flex-wrap:wrap;gap:8px 20px}.display-field.svelte-ovo0td{display:flex;align-items:center;gap:8px}.display-field.svelte-ovo0td .ui-select:where(.svelte-ovo0td){width:auto}.columns.svelte-ovo0td{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px;align-content:start}.stack.svelte-ovo0td{display:flex;flex-direction:column;gap:10px}p.svelte-ovo0td{margin:0}@media(max-width:900px){.columns.svelte-ovo0td{grid-template-columns:minmax(0,1fr)}}.list.svelte-1w7v0oq{max-height:300px;overflow:auto;border:1px solid var(--ui-border-muted)}.payload.svelte-1w7v0oq{max-width:300px}.detail.svelte-1w7v0oq{display:flex;flex-direction:column;gap:4px}.short.svelte-1w7v0oq{max-height:120px}.paths.svelte-1w7v0oq{display:flex;flex-wrap:wrap;gap:4px}.halves.svelte-92wfck{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}@media(max-width:900px){.halves.svelte-92wfck{grid-template-columns:minmax(0,1fr)}}.compact.svelte-92wfck{--ui-form-label-width: 150px}.rows.svelte-92wfck{display:flex;flex-direction:column;gap:4px}.row.svelte-92wfck{display:flex;align-items:center;gap:4px}.preview.svelte-92wfck{border-top:1px solid var(--ui-border-muted);padding-top:6px;display:flex;flex-direction:column;gap:4px}.stages.svelte-92wfck{margin:0;padding-left:18px;font-size:var(--ui-font-size-grid)}.step.svelte-92wfck{display:inline-block;min-width:70px}.title.svelte-21g4qu{display:flex;align-items:baseline;gap:8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.column.svelte-21g4qu{display:flex;flex-direction:column;gap:10px}.json.svelte-21g4qu{flex:1 1 auto;min-height:300px}.types.svelte-21g4qu,.options.svelte-21g4qu{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.chip.svelte-21g4qu{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border:1px solid var(--ui-accent);border-radius:999px;color:var(--ui-accent);font-size:var(--ui-font-size-grid)}.chip-remove.svelte-21g4qu{border:none;background:none;color:inherit;cursor:pointer;padding:0;line-height:1}.option.svelte-21g4qu{display:inline-flex;align-items:center;gap:4px}.option.svelte-21g4qu .ui-select:where(.svelte-21g4qu){width:auto}.suggestion.svelte-21g4qu td:where(.svelte-21g4qu){height:auto;padding:4px 8px;white-space:normal;background:var(--ui-bg-sunken)}.suggest.svelte-21g4qu{margin:2px 2px 2px 4px;font-size:var(--ui-font-size-small);min-height:20px;padding:1px 6px}.filter.svelte-19ysaj4{width:220px}.types.svelte-19ysaj4{width:100%;font-family:var(--ui-font-mono)}.level.svelte-skp5ex{width:auto}.filter.svelte-skp5ex{width:260px}.log.svelte-skp5ex td:where(.svelte-skp5ex){height:22px;font-family:var(--ui-font-mono)}.log.svelte-skp5ex td.ts:where(.svelte-skp5ex),.log.svelte-skp5ex td.level-cell:where(.svelte-skp5ex),.log.svelte-skp5ex td.scope:where(.svelte-skp5ex){width:1%;white-space:nowrap}.log.svelte-skp5ex td.message:where(.svelte-skp5ex){white-space:pre-wrap;overflow-wrap:anywhere}tr.warn.svelte-skp5ex .level-cell:where(.svelte-skp5ex){color:var(--ui-warn)}tr.error.svelte-skp5ex .level-cell:where(.svelte-skp5ex),tr.error.svelte-skp5ex .message:where(.svelte-skp5ex){color:var(--ui-error)}tr.debug.svelte-skp5ex td:where(.svelte-skp5ex){color:var(--ui-fg-muted)}.split.svelte-1q9v7x1{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr)}.column.svelte-1q9v7x1{display:flex;flex-direction:column;min-height:0;gap:6px}.right.svelte-1q9v7x1{gap:10px}.right.svelte-1q9v7x1>.column:where(.svelte-1q9v7x1){flex:1 1 auto}.payload.svelte-1q9v7x1{max-width:320px}.time.svelte-1q9v7x1{width:1%}.retain.svelte-1q9v7x1{margin-left:4px}.detail.svelte-1q9v7x1{flex:0 0 auto;display:flex;flex-direction:column;gap:3px}.search.svelte-11516m7{width:320px;max-width:100%}.group.svelte-11516m7{margin-bottom:14px}.group.svelte-11516m7 h3:where(.svelte-11516m7){margin-bottom:6px;color:var(--ui-fg-muted)}.cards.svelte-11516m7{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.card.svelte-11516m7{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;padding:8px 10px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-bg);color:var(--ui-fg);cursor:pointer}.card.svelte-11516m7:hover{background:var(--ui-row-hover);border-color:var(--ui-border-strong)}.name.svelte-11516m7{font-weight:600}.description.svelte-11516m7{font-size:var(--ui-font-size-grid)}.intro.svelte-11516m7{margin:0}.shell.svelte-pjescm{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;background:var(--ui-bg);color:var(--ui-fg)}.header.svelte-pjescm{display:flex;align-items:center;gap:10px;height:var(--ui-header-height);padding:0 10px;background:var(--ui-header-bg);border-bottom:1px solid var(--ui-border);flex:0 0 auto;min-width:0}.brand.svelte-pjescm{font-weight:700;letter-spacing:1px;color:var(--ui-accent);white-space:nowrap}.tabs.svelte-pjescm{display:flex;align-self:stretch;flex:1 1 auto;min-width:0}.actions.svelte-pjescm{display:flex;align-items:center;gap:2px;flex:0 0 auto;white-space:nowrap}.status.svelte-pjescm{display:inline-flex;align-items:center;gap:2px;margin-right:6px;color:var(--ui-fg-muted);font-size:var(--ui-font-size-small)}.paragraph.svelte-pjescm{font-size:15px;font-weight:600;line-height:1}.main.svelte-pjescm{flex:1 1 auto;min-height:0;overflow:hidden}@media(max-width:700px){.status.svelte-pjescm{display:none}}@media(max-width:480px){.brand.svelte-pjescm{display:none}}:root{color-scheme:light;--ui-bg: #ffffff;--ui-bg-sunken: #f8f8f8;--ui-header-bg: #f3f3f3;--ui-control-bg: #f0f0f0;--ui-control-bg-hover: #e4e4e4;--ui-input-bg: #ffffff;--ui-row-hover: #f0f4f8;--ui-row-selected: #cfe4f7;--ui-backdrop: rgba(0, 0, 0, .35);--ui-shadow-menu: 0 4px 12px rgb(0 0 0 / 18%);--ui-shadow-toast: 0 2px 10px rgb(0 0 0 / 16%);--ui-border: #cecece;--ui-border-muted: #e6e6e6;--ui-border-strong: #b0b0b0;--ui-fg: #3b3b3b;--ui-fg-muted: #6d6d6d;--ui-fg-faint: #9a9a9a;--ui-link: #0070c1;--ui-accent: #0070c1;--ui-accent-bg: #e2eefa;--ui-accent-fg: #ffffff;--ui-ok: #008000;--ui-warn: #a06800;--ui-error: #cd3131;--ui-focus: #0070c1;--ui-font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;--ui-font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, Monaco, monospace;--ui-font-size: 13px;--ui-font-size-grid: 12px;--ui-font-size-small: 11px;--ui-row-height: 30px;--ui-header-height: 36px;--ui-radius: 3px;--ui-form-label-width: 170px;--ui-form-column-gap: 10px;--ui-form-row-gap: 6px;--ui-form-section-gap: 14px;--ui-field-narrow: 90px;--ui-field-medium: 150px}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--ui-bg: #1e1e1e;--ui-bg-sunken: #191919;--ui-header-bg: #252526;--ui-control-bg: #333333;--ui-control-bg-hover: #3f3f3f;--ui-input-bg: #3c3c3c;--ui-row-hover: #2a2d2e;--ui-row-selected: #264f78;--ui-backdrop: rgba(0, 0, 0, .6);--ui-shadow-menu: 0 4px 14px rgb(0 0 0 / 60%);--ui-shadow-toast: 0 2px 12px rgb(0 0 0 / 55%);--ui-border: #3c3c3c;--ui-border-muted: #303030;--ui-border-strong: #565656;--ui-fg: #cccccc;--ui-fg-muted: #8a8a8a;--ui-fg-faint: #6a6a6a;--ui-link: #569cd6;--ui-accent: #569cd6;--ui-accent-bg: #253b52;--ui-accent-fg: #1e1e1e;--ui-ok: #4ec9b0;--ui-warn: #cca700;--ui-error: #f48771;--ui-focus: #569cd6}}:root[data-theme=dark]{color-scheme:dark;--ui-bg: #1e1e1e;--ui-bg-sunken: #191919;--ui-header-bg: #252526;--ui-control-bg: #333333;--ui-control-bg-hover: #3f3f3f;--ui-input-bg: #3c3c3c;--ui-row-hover: #2a2d2e;--ui-row-selected: #264f78;--ui-backdrop: rgba(0, 0, 0, .6);--ui-shadow-menu: 0 4px 14px rgb(0 0 0 / 60%);--ui-shadow-toast: 0 2px 12px rgb(0 0 0 / 55%);--ui-border: #3c3c3c;--ui-border-muted: #303030;--ui-border-strong: #565656;--ui-fg: #cccccc;--ui-fg-muted: #8a8a8a;--ui-fg-faint: #6a6a6a;--ui-link: #569cd6;--ui-accent: #569cd6;--ui-accent-bg: #253b52;--ui-accent-fg: #1e1e1e;--ui-ok: #4ec9b0;--ui-warn: #cca700;--ui-error: #f48771;--ui-focus: #569cd6}html,body,#app{height:100%;min-height:0}#app{overflow:hidden}body{margin:0;padding:0;background:var(--ui-bg);color:var(--ui-fg);font-family:var(--ui-font);font-size:var(--ui-font-size);line-height:1.4}*,*:before,*:after{box-sizing:border-box}*{scrollbar-width:thin;scrollbar-color:var(--ui-border-strong) transparent}:focus-visible{outline:2px solid var(--ui-focus);outline-offset:-1px}a{color:var(--ui-link)}code,.ui-mono{font-family:var(--ui-font-mono);font-size:var(--ui-font-size-grid)}button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}.ui-input,.ui-select,.ui-textarea{min-height:24px;padding:2px 6px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-input-bg);color:var(--ui-fg);width:100%;min-width:0}.ui-textarea{font-family:var(--ui-font-mono);font-size:var(--ui-font-size-grid);resize:vertical}.ui-input:focus-visible,.ui-select:focus-visible,.ui-textarea:focus-visible{border-color:var(--ui-accent)}.ui-input:disabled,.ui-select:disabled,.ui-textarea:disabled{opacity:.55}.ui-input.ui-invalid,.ui-select.ui-invalid{border-color:var(--ui-error)}.ui-input::placeholder,.ui-textarea::placeholder{color:var(--ui-fg-faint)}.ui-button{min-height:24px;padding:3px 10px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-control-bg);color:var(--ui-fg);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}.ui-button:hover:not(:disabled){background:var(--ui-control-bg-hover)}.ui-button:disabled{opacity:.45;cursor:default}.ui-button-primary{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-accent-fg)}.ui-button-primary:hover:not(:disabled){background:var(--ui-accent);filter:brightness(1.1)}.ui-button-danger{color:var(--ui-error)}.ui-icon-button{width:26px;height:26px;padding:0;border:1px solid transparent;border-radius:var(--ui-radius);background:none;color:var(--ui-fg-muted);cursor:pointer;line-height:1;display:inline-flex;align-items:center;justify-content:center}.ui-icon-button:hover:not(:disabled){background:var(--ui-control-bg-hover);color:var(--ui-fg)}.ui-icon-button:disabled{opacity:.4;cursor:default}.ui-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px;overflow:hidden}.ui-page-scroll{flex:1 1 auto;min-height:0;overflow:auto}.ui-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ui-toolbar-trailing{margin-left:auto;display:flex;align-items:center;gap:6px;color:var(--ui-fg-muted)}.ui-muted{color:var(--ui-fg-muted)}.ui-faint{color:var(--ui-fg-faint)}.ui-error-text{color:var(--ui-error)}.ui-warn-text{color:var(--ui-warn)}.ui-ok-text{color:var(--ui-ok)}.ui-small{font-size:var(--ui-font-size-small)}.ui-empty{color:var(--ui-fg-muted);padding:20px;text-align:center}h1,h2,h3{font-size:inherit;font-weight:600;margin:0}.ui-section{border:1px solid var(--ui-border-muted);border-radius:var(--ui-radius);padding:8px 10px;display:flex;flex-direction:column;gap:var(--ui-form-row-gap)}.ui-section-title{display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:2px}.ui-section-title .ui-toolbar-trailing{font-weight:400}.ui-table{width:100%;border-collapse:collapse;font-size:var(--ui-font-size-grid)}.ui-table th,.ui-table td{text-align:left;padding:0 8px;height:var(--ui-row-height);border-bottom:1px solid var(--ui-border-muted);vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-table th{position:sticky;top:0;background:var(--ui-header-bg);color:var(--ui-fg-muted);font-weight:600;border-bottom:1px solid var(--ui-border);z-index:1}.ui-table tbody tr:hover{background:var(--ui-row-hover)}.ui-table tbody tr.ui-row-selected{background:var(--ui-row-selected)}.ui-table tr.ui-row-link{cursor:pointer}.ui-table td.ui-actions{text-align:right;width:1%}.ui-badge{display:inline-block;padding:0 6px;border:1px solid var(--ui-border);border-radius:999px;font-size:10px;line-height:15px;color:var(--ui-fg-muted);white-space:nowrap;vertical-align:middle}.ui-badge-accent{border-color:var(--ui-accent);color:var(--ui-accent)}.ui-badge-warn{border-color:var(--ui-warn);color:var(--ui-warn)}.ui-badge-error{border-color:var(--ui-error);color:var(--ui-error)}.ui-badge-ok{border-color:var(--ui-ok);color:var(--ui-ok)}.ui-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ui-fg-faint);vertical-align:middle;margin-right:5px}.ui-dot-ok{background:var(--ui-ok)}.ui-dot-warn{background:var(--ui-warn)}.ui-dot-error{background:var(--ui-error)}.ui-form{display:grid;grid-template-columns:var(--ui-form-label-width) minmax(0,1fr);column-gap:var(--ui-form-column-gap);row-gap:var(--ui-form-row-gap);align-items:center}.ui-form-label{color:var(--ui-fg-muted);text-align:right;padding-right:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-form-field{display:flex;align-items:center;gap:6px;min-width:0}.ui-form-help{grid-column:2;color:var(--ui-fg-faint);font-size:var(--ui-font-size-small);margin-top:-4px}.ui-form-full{grid-column:1 / -1}.ui-field-narrow{width:var(--ui-field-narrow);flex:0 0 auto}.ui-field-medium{width:var(--ui-field-medium);flex:0 0 auto}.ui-check{display:inline-flex;align-items:center;gap:6px;cursor:pointer;user-select:none;white-space:nowrap}.ui-check input[type=checkbox]{width:14px;height:14px;margin:0;accent-color:var(--ui-accent);cursor:pointer;flex-shrink:0}.ui-check input[type=checkbox]:disabled{cursor:default}.ui-check.ui-disabled{opacity:.55;cursor:default}.ui-kv{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:3px;margin:0}.ui-kv dt{color:var(--ui-fg-muted);white-space:nowrap}.ui-kv dd{margin:0;overflow-wrap:anywhere}.ui-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-height:0}@media(max-width:900px){.ui-split{grid-template-columns:minmax(0,1fr)}}pre.ui-pre{margin:0;padding:6px 8px;background:var(--ui-bg-sunken);border:1px solid var(--ui-border-muted);border-radius:var(--ui-radius);font-family:var(--ui-font-mono);font-size:var(--ui-font-size-grid);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.ui-bar-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:28px;height:26px;padding:0 6px;border:none;border-radius:var(--ui-radius);background:none;color:var(--ui-fg-muted);font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer}.ui-bar-button:hover,.ui-bar-button[aria-expanded=true]{background:var(--ui-control-bg-hover);color:var(--ui-fg)}.ui-bar-button.ui-bar-button-active{background:var(--ui-accent-bg);color:var(--ui-fg)}.ui-popup-anchor{position:relative}.ui-popup{position:absolute;right:0;top:calc(100% + 6px);z-index:200;width:max-content;min-width:200px;max-width:min(360px,calc(100vw - 16px));padding:10px 12px 6px;background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:5px;box-shadow:var(--ui-shadow-menu);font-size:var(--ui-font-size-grid);white-space:normal}.ui-popup .ui-kv{grid-template-columns:1fr auto;margin-bottom:8px}.ui-popup .ui-kv dd{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.ui-popup-actions{display:flex;flex-direction:column;gap:2px;padding-top:6px;border-top:1px solid var(--ui-border-muted)}.ui-popup-actions button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:4px 8px;border:none;border-radius:var(--ui-radius);background:none;color:var(--ui-fg-muted);font:inherit;cursor:pointer}.ui-popup-actions button:hover:not(:disabled){background:var(--ui-control-bg-hover);color:var(--ui-fg)}.ui-popup-actions button:disabled{opacity:.5;cursor:default}.ui-popup-actions button.ui-popup-primary{color:var(--ui-accent);font-weight:600}.ui-update-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ui-warn);flex:0 0 auto}@keyframes ui-spin{to{transform:rotate(360deg)}}.ui-spinning{animation:ui-spin .8s linear infinite}
|