@nat1an/mcp-backbone-dashboard 0.0.0-stage → 0.1.2
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/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/app.d.ts +21 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +94 -0
- package/dist/app.js.map +1 -0
- package/dist/components/app-layout.d.ts +2 -0
- package/dist/components/app-layout.d.ts.map +1 -0
- package/dist/components/app-layout.js +30 -0
- package/dist/components/app-layout.js.map +1 -0
- package/dist/components/app-sidebar.d.ts +2 -0
- package/dist/components/app-sidebar.d.ts.map +1 -0
- package/dist/components/app-sidebar.js +36 -0
- package/dist/components/app-sidebar.js.map +1 -0
- package/dist/components/copy-field.d.ts +8 -0
- package/dist/components/copy-field.d.ts.map +1 -0
- package/dist/components/copy-field.js +21 -0
- package/dist/components/copy-field.js.map +1 -0
- package/dist/components/error-alert.d.ts +7 -0
- package/dist/components/error-alert.d.ts.map +1 -0
- package/dist/components/error-alert.js +7 -0
- package/dist/components/error-alert.js.map +1 -0
- package/dist/components/json-block.d.ts +4 -0
- package/dist/components/json-block.d.ts.map +1 -0
- package/dist/components/json-block.js +6 -0
- package/dist/components/json-block.js.map +1 -0
- package/dist/components/nav-user.d.ts +9 -0
- package/dist/components/nav-user.d.ts.map +1 -0
- package/dist/components/nav-user.js +30 -0
- package/dist/components/nav-user.js.map +1 -0
- package/dist/components/notifications-card.d.ts +3 -0
- package/dist/components/notifications-card.d.ts.map +1 -0
- package/dist/components/notifications-card.js +34 -0
- package/dist/components/notifications-card.js.map +1 -0
- package/dist/components/page-header.d.ts +9 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/page-header.js +5 -0
- package/dist/components/page-header.js.map +1 -0
- package/dist/components/relative-time.d.ts +5 -0
- package/dist/components/relative-time.d.ts.map +1 -0
- package/dist/components/relative-time.js +7 -0
- package/dist/components/relative-time.js.map +1 -0
- package/dist/components/require-auth.d.ts +6 -0
- package/dist/components/require-auth.d.ts.map +1 -0
- package/dist/components/require-auth.js +24 -0
- package/dist/components/require-auth.js.map +1 -0
- package/dist/components/session-status-badges.d.ts +5 -0
- package/dist/components/session-status-badges.d.ts.map +1 -0
- package/dist/components/session-status-badges.js +10 -0
- package/dist/components/session-status-badges.js.map +1 -0
- package/dist/components/theme-provider.d.ts +16 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/theme-provider.js +145 -0
- package/dist/components/theme-provider.js.map +1 -0
- package/dist/components/tool-call-arguments.d.ts +11 -0
- package/dist/components/tool-call-arguments.d.ts.map +1 -0
- package/dist/components/tool-call-arguments.js +14 -0
- package/dist/components/tool-call-arguments.js.map +1 -0
- package/dist/components/tool-call-status-badge.d.ts +13 -0
- package/dist/components/tool-call-status-badge.d.ts.map +1 -0
- package/dist/components/tool-call-status-badge.js +16 -0
- package/dist/components/tool-call-status-badge.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +43 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +29 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +24 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +34 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.d.ts +9 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +35 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +26 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +9 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +14 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +58 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +53 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +34 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/field.d.ts +25 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +68 -0
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +58 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +9 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +8 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +36 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +8 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +39 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +257 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +7 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +26 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +8 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +9 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +29 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +29 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +8 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +18 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/config.d.ts +141 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +22 -0
- package/dist/config.js.map +1 -0
- package/dist/hooks/use-debounced-value.d.ts +2 -0
- package/dist/hooks/use-debounced-value.d.ts.map +1 -0
- package/dist/hooks/use-debounced-value.js +10 -0
- package/dist/hooks/use-debounced-value.js.map +1 -0
- package/dist/hooks/use-me.d.ts +7 -0
- package/dist/hooks/use-me.d.ts.map +1 -0
- package/dist/hooks/use-me.js +30 -0
- package/dist/hooks/use-me.js.map +1 -0
- package/dist/hooks/use-meta.d.ts +6 -0
- package/dist/hooks/use-meta.d.ts.map +1 -0
- package/dist/hooks/use-meta.js +15 -0
- package/dist/hooks/use-meta.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-now.d.ts +3 -0
- package/dist/hooks/use-now.d.ts.map +1 -0
- package/dist/hooks/use-now.js +11 -0
- package/dist/hooks/use-now.js.map +1 -0
- package/dist/hooks/use-oauth-request.d.ts +13 -0
- package/dist/hooks/use-oauth-request.d.ts.map +1 -0
- package/dist/hooks/use-oauth-request.js +20 -0
- package/dist/hooks/use-oauth-request.js.map +1 -0
- package/dist/hooks/use-push.d.ts +8 -0
- package/dist/hooks/use-push.d.ts.map +1 -0
- package/dist/hooks/use-push.js +46 -0
- package/dist/hooks/use-push.js.map +1 -0
- package/dist/hooks/use-required-param.d.ts +3 -0
- package/dist/hooks/use-required-param.d.ts.map +1 -0
- package/dist/hooks/use-required-param.js +10 -0
- package/dist/hooks/use-required-param.js.map +1 -0
- package/dist/hooks/use-sessions.d.ts +13 -0
- package/dist/hooks/use-sessions.d.ts.map +1 -0
- package/dist/hooks/use-sessions.js +53 -0
- package/dist/hooks/use-sessions.js.map +1 -0
- package/dist/hooks/use-tool-calls.d.ts +22 -0
- package/dist/hooks/use-tool-calls.d.ts.map +1 -0
- package/dist/hooks/use-tool-calls.js +98 -0
- package/dist/hooks/use-tool-calls.js.map +1 -0
- package/dist/hooks/use-tools.d.ts +3 -0
- package/dist/hooks/use-tools.d.ts.map +1 -0
- package/dist/hooks/use-tools.js +10 -0
- package/dist/hooks/use-tools.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/api.d.ts +148 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +57 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/format.d.ts +12 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +51 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/link-health.d.ts +6 -0
- package/dist/lib/link-health.d.ts.map +1 -0
- package/dist/lib/link-health.js +25 -0
- package/dist/lib/link-health.js.map +1 -0
- package/dist/lib/mcp-url.d.ts +3 -0
- package/dist/lib/mcp-url.d.ts.map +1 -0
- package/dist/lib/mcp-url.js +3 -0
- package/dist/lib/mcp-url.js.map +1 -0
- package/dist/lib/push.d.ts +15 -0
- package/dist/lib/push.d.ts.map +1 -0
- package/dist/lib/push.js +95 -0
- package/dist/lib/push.js.map +1 -0
- package/dist/lib/query-client.d.ts +3 -0
- package/dist/lib/query-client.d.ts.map +1 -0
- package/dist/lib/query-client.js +27 -0
- package/dist/lib/query-client.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/pages/activity/activity-filters.d.ts +8 -0
- package/dist/pages/activity/activity-filters.d.ts.map +1 -0
- package/dist/pages/activity/activity-filters.js +29 -0
- package/dist/pages/activity/activity-filters.js.map +1 -0
- package/dist/pages/activity/activity-page.d.ts +2 -0
- package/dist/pages/activity/activity-page.d.ts.map +1 -0
- package/dist/pages/activity/activity-page.js +61 -0
- package/dist/pages/activity/activity-page.js.map +1 -0
- package/dist/pages/activity/tool-call-details-sheet.d.ts +8 -0
- package/dist/pages/activity/tool-call-details-sheet.d.ts.map +1 -0
- package/dist/pages/activity/tool-call-details-sheet.js +19 -0
- package/dist/pages/activity/tool-call-details-sheet.js.map +1 -0
- package/dist/pages/connect/connect-page.d.ts +2 -0
- package/dist/pages/connect/connect-page.d.ts.map +1 -0
- package/dist/pages/connect/connect-page.js +18 -0
- package/dist/pages/connect/connect-page.js.map +1 -0
- package/dist/pages/consent/consent-form.d.ts +8 -0
- package/dist/pages/consent/consent-form.d.ts.map +1 -0
- package/dist/pages/consent/consent-form.js +48 -0
- package/dist/pages/consent/consent-form.js.map +1 -0
- package/dist/pages/consent/consent-page.d.ts +3 -0
- package/dist/pages/consent/consent-page.d.ts.map +1 -0
- package/dist/pages/consent/consent-page.js +27 -0
- package/dist/pages/consent/consent-page.js.map +1 -0
- package/dist/pages/login-page.d.ts +17 -0
- package/dist/pages/login-page.d.ts.map +1 -0
- package/dist/pages/login-page.js +47 -0
- package/dist/pages/login-page.js.map +1 -0
- package/dist/pages/outbox/arguments-editor.d.ts +26 -0
- package/dist/pages/outbox/arguments-editor.d.ts.map +1 -0
- package/dist/pages/outbox/arguments-editor.js +195 -0
- package/dist/pages/outbox/arguments-editor.js.map +1 -0
- package/dist/pages/outbox/outbox-card.d.ts +5 -0
- package/dist/pages/outbox/outbox-card.d.ts.map +1 -0
- package/dist/pages/outbox/outbox-card.js +29 -0
- package/dist/pages/outbox/outbox-card.js.map +1 -0
- package/dist/pages/outbox/outbox-item-page.d.ts +2 -0
- package/dist/pages/outbox/outbox-item-page.d.ts.map +1 -0
- package/dist/pages/outbox/outbox-item-page.js +104 -0
- package/dist/pages/outbox/outbox-item-page.js.map +1 -0
- package/dist/pages/outbox/outbox-page.d.ts +2 -0
- package/dist/pages/outbox/outbox-page.d.ts.map +1 -0
- package/dist/pages/outbox/outbox-page.js +27 -0
- package/dist/pages/outbox/outbox-page.js.map +1 -0
- package/dist/pages/overview/overview-page.d.ts +10 -0
- package/dist/pages/overview/overview-page.d.ts.map +1 -0
- package/dist/pages/overview/overview-page.js +30 -0
- package/dist/pages/overview/overview-page.js.map +1 -0
- package/dist/pages/sessions/disconnect-session-button.d.ts +5 -0
- package/dist/pages/sessions/disconnect-session-button.d.ts.map +1 -0
- package/dist/pages/sessions/disconnect-session-button.js +21 -0
- package/dist/pages/sessions/disconnect-session-button.js.map +1 -0
- package/dist/pages/sessions/outbox-ttl-field.d.ts +5 -0
- package/dist/pages/sessions/outbox-ttl-field.d.ts.map +1 -0
- package/dist/pages/sessions/outbox-ttl-field.js +42 -0
- package/dist/pages/sessions/outbox-ttl-field.js.map +1 -0
- package/dist/pages/sessions/session-detail-page.d.ts +2 -0
- package/dist/pages/sessions/session-detail-page.d.ts.map +1 -0
- package/dist/pages/sessions/session-detail-page.js +39 -0
- package/dist/pages/sessions/session-detail-page.js.map +1 -0
- package/dist/pages/sessions/session-name-form.d.ts +5 -0
- package/dist/pages/sessions/session-name-form.d.ts.map +1 -0
- package/dist/pages/sessions/session-name-form.js +19 -0
- package/dist/pages/sessions/session-name-form.js.map +1 -0
- package/dist/pages/sessions/session-permissions-card.d.ts +5 -0
- package/dist/pages/sessions/session-permissions-card.d.ts.map +1 -0
- package/dist/pages/sessions/session-permissions-card.js +39 -0
- package/dist/pages/sessions/session-permissions-card.js.map +1 -0
- package/dist/pages/sessions/session-recent-activity-card.d.ts +4 -0
- package/dist/pages/sessions/session-recent-activity-card.d.ts.map +1 -0
- package/dist/pages/sessions/session-recent-activity-card.js +28 -0
- package/dist/pages/sessions/session-recent-activity-card.js.map +1 -0
- package/dist/pages/sessions/session-tools-card.d.ts +5 -0
- package/dist/pages/sessions/session-tools-card.d.ts.map +1 -0
- package/dist/pages/sessions/session-tools-card.js +64 -0
- package/dist/pages/sessions/session-tools-card.js.map +1 -0
- package/dist/pages/sessions/sessions-page.d.ts +2 -0
- package/dist/pages/sessions/sessions-page.d.ts.map +1 -0
- package/dist/pages/sessions/sessions-page.js +37 -0
- package/dist/pages/sessions/sessions-page.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist-node/vite.d.ts +13 -0
- package/dist-node/vite.js +55 -0
- package/package.json +95 -4
- package/shadcn.css +638 -0
- package/styles.css +144 -0
- package/sw.js +74 -0
package/styles.css
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* mcp-backbone dashboard styles. Import from the app's stylesheet, after
|
|
3
|
+
* Tailwind:
|
|
4
|
+
*
|
|
5
|
+
* @import "tailwindcss";
|
|
6
|
+
* @import "@nat1an/mcp-backbone-dashboard/styles.css";
|
|
7
|
+
*
|
|
8
|
+
* Override the variables below (e.g. --primary) after it for the brand.
|
|
9
|
+
*/
|
|
10
|
+
@import "tw-animate-css";
|
|
11
|
+
@import "./shadcn.css";
|
|
12
|
+
@import "@fontsource-variable/geist";
|
|
13
|
+
|
|
14
|
+
/* Generate the utilities the package's components use. */
|
|
15
|
+
@source "./dist";
|
|
16
|
+
|
|
17
|
+
@custom-variant dark (&:is(.dark *));
|
|
18
|
+
|
|
19
|
+
@theme inline {
|
|
20
|
+
--font-heading: var(--font-sans);
|
|
21
|
+
--font-sans: "Geist Variable", sans-serif;
|
|
22
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
23
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
24
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
25
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
26
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
27
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
28
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
29
|
+
--color-sidebar: var(--sidebar);
|
|
30
|
+
--color-chart-5: var(--chart-5);
|
|
31
|
+
--color-chart-4: var(--chart-4);
|
|
32
|
+
--color-chart-3: var(--chart-3);
|
|
33
|
+
--color-chart-2: var(--chart-2);
|
|
34
|
+
--color-chart-1: var(--chart-1);
|
|
35
|
+
--color-ring: var(--ring);
|
|
36
|
+
--color-input: var(--input);
|
|
37
|
+
--color-border: var(--border);
|
|
38
|
+
--color-destructive: var(--destructive);
|
|
39
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
40
|
+
--color-accent: var(--accent);
|
|
41
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
42
|
+
--color-muted: var(--muted);
|
|
43
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
44
|
+
--color-secondary: var(--secondary);
|
|
45
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
46
|
+
--color-primary: var(--primary);
|
|
47
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
48
|
+
--color-popover: var(--popover);
|
|
49
|
+
--color-card-foreground: var(--card-foreground);
|
|
50
|
+
--color-card: var(--card);
|
|
51
|
+
--color-foreground: var(--foreground);
|
|
52
|
+
--color-background: var(--background);
|
|
53
|
+
--color-link: var(--link);
|
|
54
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
55
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
56
|
+
--radius-lg: var(--radius);
|
|
57
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
58
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
59
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
60
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:root {
|
|
64
|
+
--background: oklch(1 0 0);
|
|
65
|
+
--foreground: oklch(0.145 0 0);
|
|
66
|
+
--card: oklch(1 0 0);
|
|
67
|
+
--card-foreground: oklch(0.145 0 0);
|
|
68
|
+
--popover: oklch(1 0 0);
|
|
69
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
70
|
+
--primary: oklch(0.205 0 0);
|
|
71
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
72
|
+
--secondary: oklch(0.97 0 0);
|
|
73
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
74
|
+
--muted: oklch(0.97 0 0);
|
|
75
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
76
|
+
--accent: oklch(0.97 0 0);
|
|
77
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
78
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
79
|
+
--border: oklch(0.922 0 0);
|
|
80
|
+
--input: oklch(0.922 0 0);
|
|
81
|
+
--ring: oklch(0.708 0 0);
|
|
82
|
+
--chart-1: oklch(0.87 0 0);
|
|
83
|
+
--chart-2: oklch(0.556 0 0);
|
|
84
|
+
--chart-3: oklch(0.439 0 0);
|
|
85
|
+
--chart-4: oklch(0.371 0 0);
|
|
86
|
+
--chart-5: oklch(0.269 0 0);
|
|
87
|
+
--radius: 0.625rem;
|
|
88
|
+
--sidebar: oklch(0.985 0 0);
|
|
89
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
90
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
91
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
92
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
93
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
94
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
95
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
96
|
+
--link: oklch(0.52 0.16 250);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dark {
|
|
100
|
+
--background: oklch(0.145 0 0);
|
|
101
|
+
--foreground: oklch(0.985 0 0);
|
|
102
|
+
--card: oklch(0.205 0 0);
|
|
103
|
+
--card-foreground: oklch(0.985 0 0);
|
|
104
|
+
--popover: oklch(0.205 0 0);
|
|
105
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
106
|
+
--primary: oklch(0.922 0 0);
|
|
107
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
108
|
+
--secondary: oklch(0.269 0 0);
|
|
109
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
110
|
+
--muted: oklch(0.269 0 0);
|
|
111
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
112
|
+
--accent: oklch(0.269 0 0);
|
|
113
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
114
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
115
|
+
--border: oklch(1 0 0 / 10%);
|
|
116
|
+
--input: oklch(1 0 0 / 15%);
|
|
117
|
+
--ring: oklch(0.556 0 0);
|
|
118
|
+
--chart-1: oklch(0.87 0 0);
|
|
119
|
+
--chart-2: oklch(0.556 0 0);
|
|
120
|
+
--chart-3: oklch(0.439 0 0);
|
|
121
|
+
--chart-4: oklch(0.371 0 0);
|
|
122
|
+
--chart-5: oklch(0.269 0 0);
|
|
123
|
+
--sidebar: oklch(0.205 0 0);
|
|
124
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
125
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
126
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
127
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
128
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
129
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
130
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
131
|
+
--link: oklch(0.74 0.13 250);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@layer base {
|
|
135
|
+
* {
|
|
136
|
+
@apply border-border outline-ring/50;
|
|
137
|
+
}
|
|
138
|
+
body {
|
|
139
|
+
@apply bg-background text-foreground;
|
|
140
|
+
}
|
|
141
|
+
html {
|
|
142
|
+
@apply font-sans;
|
|
143
|
+
}
|
|
144
|
+
}
|
package/sw.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Service worker of the dashboard PWA. It only handles Web Push: the server
|
|
2
|
+
// notifies about tool calls landing in the outbox, and clicking a notification
|
|
3
|
+
// opens the call's outbox page. Nothing is cached offline.
|
|
4
|
+
|
|
5
|
+
self.addEventListener("install", () => self.skipWaiting())
|
|
6
|
+
self.addEventListener("activate", (event) =>
|
|
7
|
+
event.waitUntil(self.clients.claim())
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
self.addEventListener("push", (event) => {
|
|
11
|
+
let data = {}
|
|
12
|
+
try {
|
|
13
|
+
data = event.data ? event.data.json() : {}
|
|
14
|
+
} catch {
|
|
15
|
+
data = { body: event.data ? event.data.text() : "" }
|
|
16
|
+
}
|
|
17
|
+
// Every push must show a notification: browsers (Safari in particular)
|
|
18
|
+
// revoke subscriptions that receive silent pushes.
|
|
19
|
+
event.waitUntil(
|
|
20
|
+
self.registration.showNotification(data.title || "Outbox", {
|
|
21
|
+
body: data.body || "",
|
|
22
|
+
tag: data.tag,
|
|
23
|
+
icon: "/icon-192.png",
|
|
24
|
+
badge: "/icon-192.png",
|
|
25
|
+
data: { url: data.url || "/outbox" },
|
|
26
|
+
requireInteraction: Boolean(data.expires_at),
|
|
27
|
+
})
|
|
28
|
+
)
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
self.addEventListener("notificationclick", (event) => {
|
|
32
|
+
event.notification.close()
|
|
33
|
+
const url = new URL(
|
|
34
|
+
event.notification.data?.url || "/outbox",
|
|
35
|
+
self.location.origin
|
|
36
|
+
).href
|
|
37
|
+
event.waitUntil(openOrFocus(url))
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
async function openOrFocus(url) {
|
|
41
|
+
const windows = await self.clients.matchAll({
|
|
42
|
+
type: "window",
|
|
43
|
+
includeUncontrolled: true,
|
|
44
|
+
})
|
|
45
|
+
const client = windows.find(
|
|
46
|
+
(client) => new URL(client.url).origin === self.location.origin
|
|
47
|
+
)
|
|
48
|
+
if (client) {
|
|
49
|
+
await client.focus()
|
|
50
|
+
// The app routes client-side, keeping its state (see src/lib/push.ts).
|
|
51
|
+
client.postMessage({ type: "navigate", url })
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
await self.clients.openWindow(url)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// The browser rotated the subscription: hand the new one to the server.
|
|
58
|
+
self.addEventListener("pushsubscriptionchange", (event) => {
|
|
59
|
+
event.waitUntil(resubscribe(event))
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
async function resubscribe(event) {
|
|
63
|
+
const subscription =
|
|
64
|
+
event.newSubscription ||
|
|
65
|
+
(await self.registration.pushManager.subscribe(
|
|
66
|
+
event.oldSubscription?.options ?? { userVisibleOnly: true }
|
|
67
|
+
))
|
|
68
|
+
await fetch("/api/push/subscriptions", {
|
|
69
|
+
method: "POST",
|
|
70
|
+
credentials: "same-origin",
|
|
71
|
+
headers: { "Content-Type": "application/json" },
|
|
72
|
+
body: JSON.stringify(subscription.toJSON()),
|
|
73
|
+
})
|
|
74
|
+
}
|