@chrysb/alphaclaw 0.8.1 → 0.8.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.
Files changed (209) hide show
  1. package/README.md +32 -24
  2. package/bin/alphaclaw.js +13 -2
  3. package/lib/public/css/tailwind.generated.css +1 -0
  4. package/lib/public/css/tailwind.input.css +3 -0
  5. package/lib/public/css/theme.css +28 -0
  6. package/lib/public/css/vendor/xterm.css +218 -0
  7. package/lib/public/dist/app.bundle.js +10514 -0
  8. package/lib/public/dist/chunks/addon-fit-W4YZGRNV.js +1 -0
  9. package/lib/public/dist/chunks/chunk-72ZECFVW.js +1 -0
  10. package/lib/public/dist/chunks/xterm-KOX4YMOF.js +9 -0
  11. package/lib/public/js/app.js +4 -4
  12. package/lib/public/js/components/action-button.js +8 -8
  13. package/lib/public/js/components/add-channel-menu.js +2 -2
  14. package/lib/public/js/components/agent-send-modal.js +6 -6
  15. package/lib/public/js/components/agents-tab/agent-bindings-section/channel-item-trailing.js +7 -7
  16. package/lib/public/js/components/agents-tab/agent-bindings-section/index.js +3 -3
  17. package/lib/public/js/components/agents-tab/agent-bindings-section/use-agent-bindings.js +1 -1
  18. package/lib/public/js/components/agents-tab/agent-bindings-section/use-channel-items.js +4 -4
  19. package/lib/public/js/components/agents-tab/agent-detail-panel.js +5 -5
  20. package/lib/public/js/components/agents-tab/agent-identity-section.js +18 -18
  21. package/lib/public/js/components/agents-tab/agent-overview/index.js +2 -2
  22. package/lib/public/js/components/agents-tab/agent-overview/manage-card.js +2 -2
  23. package/lib/public/js/components/agents-tab/agent-overview/model-card.js +8 -8
  24. package/lib/public/js/components/agents-tab/agent-overview/tools-card.js +5 -5
  25. package/lib/public/js/components/agents-tab/agent-overview/use-model-card.js +1 -1
  26. package/lib/public/js/components/agents-tab/agent-overview/use-workspace-card.js +1 -1
  27. package/lib/public/js/components/agents-tab/agent-overview/workspace-card.js +4 -4
  28. package/lib/public/js/components/agents-tab/agent-pairing-section.js +4 -4
  29. package/lib/public/js/components/agents-tab/agent-tools/index.js +5 -5
  30. package/lib/public/js/components/agents-tab/agent-tools/use-agent-tools.js +1 -1
  31. package/lib/public/js/components/agents-tab/create-agent-modal.js +13 -13
  32. package/lib/public/js/components/agents-tab/create-channel-modal.js +34 -34
  33. package/lib/public/js/components/agents-tab/delete-agent-dialog.js +3 -3
  34. package/lib/public/js/components/agents-tab/edit-agent-modal.js +9 -9
  35. package/lib/public/js/components/agents-tab/index.js +3 -3
  36. package/lib/public/js/components/agents-tab/use-agents.js +1 -1
  37. package/lib/public/js/components/badge.js +6 -6
  38. package/lib/public/js/components/channel-account-status-badge.js +2 -2
  39. package/lib/public/js/components/channel-operations-panel.js +2 -2
  40. package/lib/public/js/components/channels.js +9 -9
  41. package/lib/public/js/components/confirm-dialog.js +5 -5
  42. package/lib/public/js/components/credentials-modal.js +22 -22
  43. package/lib/public/js/components/cron-tab/cron-calendar.js +6 -6
  44. package/lib/public/js/components/cron-tab/cron-insights-panel.js +10 -10
  45. package/lib/public/js/components/cron-tab/cron-job-detail.js +4 -4
  46. package/lib/public/js/components/cron-tab/cron-job-list.js +4 -4
  47. package/lib/public/js/components/cron-tab/cron-job-settings-card.js +15 -15
  48. package/lib/public/js/components/cron-tab/cron-job-trends-panel.js +5 -5
  49. package/lib/public/js/components/cron-tab/cron-job-usage.js +16 -16
  50. package/lib/public/js/components/cron-tab/cron-overview.js +10 -10
  51. package/lib/public/js/components/cron-tab/cron-prompt-editor.js +3 -3
  52. package/lib/public/js/components/cron-tab/cron-run-history-panel.js +39 -39
  53. package/lib/public/js/components/cron-tab/cron-runs-trend-card.js +4 -4
  54. package/lib/public/js/components/cron-tab/index.js +5 -5
  55. package/lib/public/js/components/cron-tab/use-cron-tab.js +1 -1
  56. package/lib/public/js/components/device-pairings.js +12 -12
  57. package/lib/public/js/components/doctor/findings-list.js +22 -22
  58. package/lib/public/js/components/doctor/fix-card-modal.js +2 -2
  59. package/lib/public/js/components/doctor/general-warning.js +5 -5
  60. package/lib/public/js/components/doctor/index.js +26 -26
  61. package/lib/public/js/components/doctor/summary-cards.js +5 -5
  62. package/lib/public/js/components/envars.js +16 -16
  63. package/lib/public/js/components/features.js +4 -4
  64. package/lib/public/js/components/file-tree.js +4 -4
  65. package/lib/public/js/components/file-viewer/diff-viewer.js +2 -2
  66. package/lib/public/js/components/file-viewer/editor-surface.js +2 -2
  67. package/lib/public/js/components/file-viewer/frontmatter-panel.js +2 -2
  68. package/lib/public/js/components/file-viewer/index.js +3 -3
  69. package/lib/public/js/components/file-viewer/markdown-split-view.js +2 -2
  70. package/lib/public/js/components/file-viewer/media-preview.js +2 -2
  71. package/lib/public/js/components/file-viewer/scroll-sync.js +1 -1
  72. package/lib/public/js/components/file-viewer/sqlite-viewer.js +2 -2
  73. package/lib/public/js/components/file-viewer/status-banners.js +2 -2
  74. package/lib/public/js/components/file-viewer/toolbar.js +2 -2
  75. package/lib/public/js/components/file-viewer/use-editor-line-number-sync.js +1 -1
  76. package/lib/public/js/components/file-viewer/use-editor-selection-restore.js +1 -1
  77. package/lib/public/js/components/file-viewer/use-file-diff.js +1 -1
  78. package/lib/public/js/components/file-viewer/use-file-loader.js +1 -1
  79. package/lib/public/js/components/file-viewer/use-file-viewer-draft-sync.js +1 -1
  80. package/lib/public/js/components/file-viewer/use-file-viewer-hotkeys.js +1 -1
  81. package/lib/public/js/components/file-viewer/use-file-viewer.js +2 -2
  82. package/lib/public/js/components/gateway.js +12 -12
  83. package/lib/public/js/components/general/index.js +7 -7
  84. package/lib/public/js/components/general/use-general-tab.js +1 -1
  85. package/lib/public/js/components/global-restart-banner.js +2 -2
  86. package/lib/public/js/components/google/account-row.js +7 -7
  87. package/lib/public/js/components/google/add-account-modal.js +8 -8
  88. package/lib/public/js/components/google/gmail-setup-wizard.js +24 -24
  89. package/lib/public/js/components/google/gmail-watch-toggle.js +5 -5
  90. package/lib/public/js/components/google/index.js +6 -6
  91. package/lib/public/js/components/google/use-gmail-watch.js +1 -1
  92. package/lib/public/js/components/google/use-google-accounts.js +1 -1
  93. package/lib/public/js/components/icons.js +2 -2
  94. package/lib/public/js/components/info-tooltip.js +3 -3
  95. package/lib/public/js/components/loading-spinner.js +2 -2
  96. package/lib/public/js/components/modal-shell.js +5 -5
  97. package/lib/public/js/components/models-tab/index.js +11 -11
  98. package/lib/public/js/components/models-tab/model-picker.js +9 -9
  99. package/lib/public/js/components/models-tab/provider-auth-card.js +12 -12
  100. package/lib/public/js/components/models-tab/use-models.js +1 -1
  101. package/lib/public/js/components/models.js +18 -18
  102. package/lib/public/js/components/nodes-tab/browser-attach/index.js +5 -5
  103. package/lib/public/js/components/nodes-tab/connected-nodes/index.js +32 -32
  104. package/lib/public/js/components/nodes-tab/connected-nodes/use-connected-nodes-card.js +18 -3
  105. package/lib/public/js/components/nodes-tab/exec-allowlist/index.js +10 -10
  106. package/lib/public/js/components/nodes-tab/exec-allowlist/use-exec-allowlist.js +1 -1
  107. package/lib/public/js/components/nodes-tab/exec-config/index.js +13 -13
  108. package/lib/public/js/components/nodes-tab/exec-config/use-exec-config.js +1 -1
  109. package/lib/public/js/components/nodes-tab/index.js +2 -2
  110. package/lib/public/js/components/nodes-tab/setup-wizard/index.js +14 -14
  111. package/lib/public/js/components/nodes-tab/setup-wizard/use-setup-wizard.js +1 -1
  112. package/lib/public/js/components/nodes-tab/use-nodes-tab.js +1 -1
  113. package/lib/public/js/components/onboarding/use-welcome-codex.js +1 -1
  114. package/lib/public/js/components/onboarding/use-welcome-pairing.js +1 -1
  115. package/lib/public/js/components/onboarding/use-welcome-storage.js +1 -1
  116. package/lib/public/js/components/onboarding/welcome-config.js +3 -3
  117. package/lib/public/js/components/onboarding/welcome-form-step.js +34 -34
  118. package/lib/public/js/components/onboarding/welcome-header.js +2 -2
  119. package/lib/public/js/components/onboarding/welcome-import-step.js +22 -22
  120. package/lib/public/js/components/onboarding/welcome-pairing-step.js +15 -15
  121. package/lib/public/js/components/onboarding/welcome-placeholder-review-step.js +7 -7
  122. package/lib/public/js/components/onboarding/welcome-pre-step.js +9 -9
  123. package/lib/public/js/components/onboarding/welcome-secret-review-step.js +15 -15
  124. package/lib/public/js/components/onboarding/welcome-setup-step.js +8 -8
  125. package/lib/public/js/components/overflow-menu.js +3 -3
  126. package/lib/public/js/components/page-header.js +2 -2
  127. package/lib/public/js/components/pairings.js +14 -14
  128. package/lib/public/js/components/pane-shell.js +2 -2
  129. package/lib/public/js/components/pill-tabs.js +4 -4
  130. package/lib/public/js/components/pop-actions.js +3 -3
  131. package/lib/public/js/components/providers.js +17 -17
  132. package/lib/public/js/components/routes/agents-route.js +2 -2
  133. package/lib/public/js/components/routes/browse-route.js +2 -2
  134. package/lib/public/js/components/routes/cron-route.js +2 -2
  135. package/lib/public/js/components/routes/doctor-route.js +2 -2
  136. package/lib/public/js/components/routes/envars-route.js +2 -2
  137. package/lib/public/js/components/routes/general-route.js +2 -2
  138. package/lib/public/js/components/routes/models-route.js +2 -2
  139. package/lib/public/js/components/routes/nodes-route.js +2 -2
  140. package/lib/public/js/components/routes/providers-route.js +2 -2
  141. package/lib/public/js/components/routes/route-redirect.js +2 -2
  142. package/lib/public/js/components/routes/telegram-route.js +2 -2
  143. package/lib/public/js/components/routes/usage-route.js +2 -2
  144. package/lib/public/js/components/routes/watchdog-route.js +2 -2
  145. package/lib/public/js/components/routes/webhooks-route.js +2 -2
  146. package/lib/public/js/components/scope-picker.js +9 -9
  147. package/lib/public/js/components/secret-input.js +5 -5
  148. package/lib/public/js/components/segmented-control.js +2 -2
  149. package/lib/public/js/components/session-select-field.js +7 -7
  150. package/lib/public/js/components/sidebar-git-panel.js +3 -3
  151. package/lib/public/js/components/sidebar.js +3 -3
  152. package/lib/public/js/components/summary-stat-card.js +3 -3
  153. package/lib/public/js/components/telegram-workspace/index.js +10 -10
  154. package/lib/public/js/components/telegram-workspace/manage.js +36 -36
  155. package/lib/public/js/components/telegram-workspace/onboarding.js +73 -73
  156. package/lib/public/js/components/toast.js +8 -8
  157. package/lib/public/js/components/toggle-switch.js +2 -2
  158. package/lib/public/js/components/tooltip.js +5 -5
  159. package/lib/public/js/components/update-action-button.js +2 -2
  160. package/lib/public/js/components/update-modal.js +9 -9
  161. package/lib/public/js/components/usage-tab/constants.js +2 -2
  162. package/lib/public/js/components/usage-tab/index.js +3 -3
  163. package/lib/public/js/components/usage-tab/overview-section.js +15 -15
  164. package/lib/public/js/components/usage-tab/sessions-section.js +19 -19
  165. package/lib/public/js/components/usage-tab/use-usage-tab.js +2 -2
  166. package/lib/public/js/components/watchdog-tab/console/index.js +22 -8
  167. package/lib/public/js/components/watchdog-tab/console/use-console.js +28 -2
  168. package/lib/public/js/components/watchdog-tab/helpers.js +35 -6
  169. package/lib/public/js/components/watchdog-tab/incidents/index.js +6 -6
  170. package/lib/public/js/components/watchdog-tab/incidents/use-incidents.js +1 -1
  171. package/lib/public/js/components/watchdog-tab/index.js +4 -2
  172. package/lib/public/js/components/watchdog-tab/resource-bar.js +5 -5
  173. package/lib/public/js/components/watchdog-tab/resources/index.js +14 -3
  174. package/lib/public/js/components/watchdog-tab/resources/use-resources.js +1 -1
  175. package/lib/public/js/components/watchdog-tab/settings/index.js +97 -30
  176. package/lib/public/js/components/watchdog-tab/settings/use-settings.js +1 -1
  177. package/lib/public/js/components/watchdog-tab/terminal/index.js +3 -3
  178. package/lib/public/js/components/watchdog-tab/terminal/use-terminal.js +41 -5
  179. package/lib/public/js/components/watchdog-tab/use-watchdog-tab.js +2 -0
  180. package/lib/public/js/components/webhooks/create-webhook-modal/index.js +17 -17
  181. package/lib/public/js/components/webhooks/helpers.js +3 -3
  182. package/lib/public/js/components/webhooks/index.js +4 -4
  183. package/lib/public/js/components/webhooks/request-history/index.js +14 -14
  184. package/lib/public/js/components/webhooks/request-history/use-request-history.js +1 -1
  185. package/lib/public/js/components/webhooks/webhook-detail/index.js +41 -41
  186. package/lib/public/js/components/webhooks/webhook-detail/use-webhook-detail.js +1 -1
  187. package/lib/public/js/components/webhooks/webhook-list/index.js +11 -11
  188. package/lib/public/js/components/webhooks/webhook-list/use-webhook-list.js +1 -1
  189. package/lib/public/js/components/welcome/index.js +3 -3
  190. package/lib/public/js/components/welcome/use-welcome.js +10 -10
  191. package/lib/public/js/hooks/use-app-shell-controller.js +1 -1
  192. package/lib/public/js/hooks/use-app-shell-ui.js +1 -1
  193. package/lib/public/js/hooks/use-browse-navigation.js +1 -1
  194. package/lib/public/js/hooks/use-cached-fetch.js +1 -1
  195. package/lib/public/js/hooks/use-destination-session-selection.js +1 -1
  196. package/lib/public/js/hooks/use-hash-location.js +1 -1
  197. package/lib/public/js/hooks/useAgentSessions.js +1 -1
  198. package/lib/public/js/hooks/usePolling.js +1 -1
  199. package/lib/public/js/tailwind-config.js +39 -0
  200. package/lib/public/login.html +3 -18
  201. package/lib/public/setup.html +2 -18
  202. package/lib/server/init/register-server-routes.js +2 -0
  203. package/lib/server/routes/nodes.js +10 -2
  204. package/lib/server/routes/pairings.js +5 -1
  205. package/lib/server/routes/system.js +5 -0
  206. package/lib/server/routes/watchdog.js +15 -0
  207. package/lib/server/watchdog.js +137 -51
  208. package/lib/server.js +2 -0
  209. package/package.json +14 -3
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useEffect, useMemo, useState } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useEffect, useMemo, useState } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { ActionButton } from "../action-button.js";
5
5
  import { CloseIcon } from "../icons.js";
6
6
  import { ModalShell } from "../modal-shell.js";
@@ -284,14 +284,14 @@ export const CreateChannelModal = ({
284
284
  class="h-8 w-8 inline-flex items-center justify-center rounded-lg ac-btn-secondary"
285
285
  aria-label="Close modal"
286
286
  >
287
- <${CloseIcon} className="w-3.5 h-3.5 text-gray-300" />
287
+ <${CloseIcon} className="w-3.5 h-3.5 text-body" />
288
288
  </button>
289
289
  `}
290
290
  />
291
291
 
292
292
  <div class="space-y-3">
293
293
  <label class="block space-y-1">
294
- <span class="text-xs text-gray-400">Name</span>
294
+ <span class="text-xs text-fg-muted">Name</span>
295
295
  <input
296
296
  type="text"
297
297
  value=${name}
@@ -300,19 +300,19 @@ export const CreateChannelModal = ({
300
300
  setName(event.target.value);
301
301
  }}
302
302
  placeholder=${getChannelMeta(provider).label || "Channel"}
303
- class="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm text-gray-200 outline-none focus:border-gray-500"
303
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm text-body outline-none focus:border-fg-muted"
304
304
  />
305
305
  </label>
306
306
 
307
307
  <label class="block space-y-1">
308
- <span class="text-xs text-gray-400">Id</span>
308
+ <span class="text-xs text-fg-muted">Id</span>
309
309
  <input
310
310
  type="text"
311
311
  value=${accountId}
312
312
  readOnly=${true}
313
- class="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm font-mono text-gray-400 outline-none"
313
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm font-mono text-fg-muted outline-none"
314
314
  />
315
- <p class="text-xs text-gray-500">
315
+ <p class="text-xs text-fg-muted">
316
316
  ${
317
317
  isEditMode
318
318
  ? "Channel id is fixed after creation."
@@ -326,7 +326,7 @@ export const CreateChannelModal = ({
326
326
  </label>
327
327
 
328
328
  <label class="block space-y-1">
329
- <span class="text-xs text-gray-400">
329
+ <span class="text-xs text-fg-muted">
330
330
  ${needsAppToken ? "Bot Token" : "Token"}
331
331
  </span>
332
332
  <${SecretInput}
@@ -335,11 +335,11 @@ export const CreateChannelModal = ({
335
335
  placeholder=${token ? "" : "Paste bot token"}
336
336
  loading=${loadingToken}
337
337
  isSecret=${true}
338
- inputClass="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm font-mono text-gray-200 outline-none focus:border-gray-500"
338
+ inputClass="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm font-mono text-body outline-none focus:border-fg-muted"
339
339
  />
340
- <p class="text-xs text-gray-500">
340
+ <p class="text-xs text-fg-muted">
341
341
  Saved behind the scenes as
342
- <code class="font-mono text-gray-400 ml-1">${envKey || "CHANNEL_TOKEN"}</code>.
342
+ <code class="font-mono text-fg-muted ml-1">${envKey || "CHANNEL_TOKEN"}</code>.
343
343
  </p>
344
344
  </label>
345
345
 
@@ -347,7 +347,7 @@ export const CreateChannelModal = ({
347
347
  needsAppToken
348
348
  ? html`
349
349
  <label class="block space-y-1">
350
- <span class="text-xs text-gray-400"
350
+ <span class="text-xs text-fg-muted"
351
351
  >App Token (Socket Mode)</span
352
352
  >
353
353
  <${SecretInput}
@@ -355,11 +355,11 @@ export const CreateChannelModal = ({
355
355
  onInput=${(event) => setAppToken(event.target.value)}
356
356
  placeholder="xapp-..."
357
357
  isSecret=${true}
358
- inputClass="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm font-mono text-gray-200 outline-none focus:border-gray-500"
358
+ inputClass="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm font-mono text-body outline-none focus:border-fg-muted"
359
359
  />
360
- <p class="text-xs text-gray-500">
360
+ <p class="text-xs text-fg-muted">
361
361
  Saved behind the scenes as
362
- <code class="font-mono text-gray-400 ml-1">
362
+ <code class="font-mono text-fg-muted ml-1">
363
363
  ${kChannelExtraEnvKeys.slack}
364
364
  </code>
365
365
  .
@@ -371,45 +371,45 @@ export const CreateChannelModal = ({
371
371
  ${
372
372
  needsAppToken
373
373
  ? html`
374
- <details class="rounded-lg border border-border bg-black/20 px-3 py-2.5">
375
- <summary class="cursor-pointer text-xs text-gray-300 hover:text-gray-200">
374
+ <details class="rounded-lg border border-border bg-field px-3 py-2.5">
375
+ <summary class="cursor-pointer text-xs text-body hover:text-body">
376
376
  Slack-specific instructions (step-by-step)
377
377
  </summary>
378
- <div class="mt-2 space-y-2 text-xs text-gray-500">
378
+ <div class="mt-2 space-y-2 text-xs text-fg-muted">
379
379
  <ol class="list-decimal list-inside space-y-1.5">
380
380
  <li>
381
381
  In Slack app settings, turn on
382
382
  ${" "}
383
- <span class="text-gray-300">Socket Mode</span>.
383
+ <span class="text-body">Socket Mode</span>.
384
384
  </li>
385
385
  <li>
386
386
  In
387
387
  ${" "}
388
- <span class="text-gray-300">App Home</span>, enable
389
- <code class="font-mono text-gray-400 ml-1">
388
+ <span class="text-body">App Home</span>, enable
389
+ <code class="font-mono text-fg-muted ml-1">
390
390
  Allow users to send Slash commands and messages from the messages tab
391
391
  </code>.
392
392
  </li>
393
393
  <li>
394
394
  In
395
395
  ${" "}
396
- <span class="text-gray-300">Event Subscriptions</span>, toggle on
397
- <code class="font-mono text-gray-400 ml-1">Subscribe to bot events</code>
396
+ <span class="text-body">Event Subscriptions</span>, toggle on
397
+ <code class="font-mono text-fg-muted ml-1">Subscribe to bot events</code>
398
398
  ${" "}
399
399
  and add
400
- <code class="font-mono text-gray-400 ml-1">message.im</code>.
400
+ <code class="font-mono text-fg-muted ml-1">message.im</code>.
401
401
  </li>
402
402
  <li>
403
- Create a Bot Token (<code class="font-mono text-gray-400">xoxb-...</code>)
403
+ Create a Bot Token (<code class="font-mono text-fg-muted">xoxb-...</code>)
404
404
  with scopes:
405
- <code class="font-mono text-gray-400 ml-1">
405
+ <code class="font-mono text-fg-muted ml-1">
406
406
  ${kSlackBotScopes.join(", ")}
407
407
  </code>
408
408
  </li>
409
409
  <li>
410
- Create an App Token (<code class="font-mono text-gray-400">xapp-...</code>)
410
+ Create an App Token (<code class="font-mono text-fg-muted">xapp-...</code>)
411
411
  with
412
- <code class="font-mono text-gray-400 ml-1">connections:write</code>.
412
+ <code class="font-mono text-fg-muted ml-1">connections:write</code>.
413
413
  </li>
414
414
  <li>
415
415
  Reinstall the app after changing scopes.
@@ -430,11 +430,11 @@ export const CreateChannelModal = ({
430
430
  }
431
431
 
432
432
  <label class="block space-y-1">
433
- <span class="text-xs text-gray-400">Agent</span>
433
+ <span class="text-xs text-fg-muted">Agent</span>
434
434
  <select
435
435
  value=${agentId}
436
436
  onInput=${(event) => setAgentId(event.target.value)}
437
- class="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm text-gray-200 outline-none focus:border-gray-500"
437
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm text-body outline-none focus:border-fg-muted"
438
438
  >
439
439
  ${agents.map(
440
440
  (agent) => html`
@@ -449,7 +449,7 @@ export const CreateChannelModal = ({
449
449
  ${
450
450
  !isEditMode && accountExists
451
451
  ? html`
452
- <p class="text-xs text-red-400">
452
+ <p class="text-xs text-status-error-muted">
453
453
  ${isSingleAccountProvider
454
454
  ? `${getChannelMeta(provider).label} already has a configured channel account.`
455
455
  : `A ${getChannelMeta(provider).label} account with this id already exists.`}
@@ -457,7 +457,7 @@ export const CreateChannelModal = ({
457
457
  `
458
458
  : null
459
459
  }
460
- ${error ? html`<p class="text-xs text-red-400">${error}</p>` : null}
460
+ ${error ? html`<p class="text-xs text-status-error-muted">${error}</p>` : null}
461
461
  </div>
462
462
 
463
463
  <div class="flex justify-end gap-2 pt-1">
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useEffect, useState } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useEffect, useState } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { ConfirmDialog } from "../confirm-dialog.js";
5
5
  import { ToggleSwitch } from "../toggle-switch.js";
6
6
 
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useEffect, useState } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useEffect, useState } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { ActionButton } from "../action-button.js";
5
5
  import { CloseIcon } from "../icons.js";
6
6
  import { ModalShell } from "../modal-shell.js";
@@ -56,33 +56,33 @@ export const EditAgentModal = ({
56
56
  class="h-8 w-8 inline-flex items-center justify-center rounded-lg ac-btn-secondary"
57
57
  aria-label="Close modal"
58
58
  >
59
- <${CloseIcon} className="w-3.5 h-3.5 text-gray-300" />
59
+ <${CloseIcon} className="w-3.5 h-3.5 text-body" />
60
60
  </button>
61
61
  `}
62
62
  />
63
63
 
64
64
  <div class="space-y-3">
65
65
  <label class="block space-y-1">
66
- <span class="text-xs text-gray-400">Display name</span>
66
+ <span class="text-xs text-fg-muted">Display name</span>
67
67
  <input
68
68
  type="text"
69
69
  value=${name}
70
70
  onInput=${(event) => setName(event.target.value)}
71
- class="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm text-gray-200 outline-none focus:border-gray-500"
71
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm text-body outline-none focus:border-fg-muted"
72
72
  />
73
73
  </label>
74
74
 
75
75
  <label class="block space-y-1">
76
- <span class="text-xs text-gray-400">Agent ID</span>
76
+ <span class="text-xs text-fg-muted">Agent ID</span>
77
77
  <input
78
78
  type="text"
79
79
  value=${String(agent?.id || "")}
80
80
  disabled=${true}
81
- class="w-full bg-black/30 border border-border rounded-lg px-3 py-2 text-sm font-mono text-gray-500 outline-none"
81
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm font-mono text-fg-muted outline-none"
82
82
  />
83
83
  </label>
84
84
 
85
- ${error ? html`<p class="text-xs text-red-400">${error}</p>` : null}
85
+ ${error ? html`<p class="text-xs text-status-error-muted">${error}</p>` : null}
86
86
  </div>
87
87
 
88
88
  <div class="flex justify-end gap-2 pt-1">
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useState, useEffect, useCallback } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useState, useEffect, useCallback } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { LoadingSpinner } from "../loading-spinner.js";
5
5
  import { showToast } from "../toast.js";
6
6
  import { AgentDetailPanel } from "./agent-detail-panel.js";
@@ -1,4 +1,4 @@
1
- import { useCallback, useEffect, useState } from "https://esm.sh/preact/hooks";
1
+ import { useCallback, useEffect, useState } from "preact/hooks";
2
2
  import {
3
3
  createAgent,
4
4
  deleteAgent,
@@ -1,13 +1,13 @@
1
- import { h } from "https://esm.sh/preact";
2
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import htm from "htm";
3
3
 
4
4
  const html = htm.bind(h);
5
5
 
6
6
  const kToneClasses = {
7
- success: "bg-green-500/10 text-green-500",
8
- warning: "bg-yellow-500/10 text-yellow-500",
9
- danger: "bg-red-500/10 text-red-400",
10
- neutral: "bg-gray-500/10 text-gray-400",
7
+ success: "bg-green-500/10 text-status-success-muted",
8
+ warning: "bg-yellow-500/10 text-status-warning-muted",
9
+ danger: "bg-red-500/10 text-status-error-muted",
10
+ neutral: "bg-gray-500/10 text-fg-muted",
11
11
  info: "bg-blue-500/10 text-blue-400",
12
12
  accent: "bg-purple-500/10 text-purple-400",
13
13
  cyan: "bg-cyan-500/10 text-cyan-400",
@@ -1,5 +1,5 @@
1
- import { h } from "https://esm.sh/preact";
2
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import htm from "htm";
3
3
  import { Badge } from "./badge.js";
4
4
 
5
5
  const html = htm.bind(h);
@@ -1,5 +1,5 @@
1
- import { h } from "https://esm.sh/preact";
2
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import htm from "htm";
3
3
  import { AgentBindingsSection } from "./agents-tab/agent-bindings-section/index.js";
4
4
  import { AgentPairingSection } from "./agents-tab/agent-pairing-section.js";
5
5
 
@@ -1,11 +1,11 @@
1
- import { h } from "https://esm.sh/preact";
1
+ import { h } from "preact";
2
2
  import {
3
3
  useCallback,
4
4
  useEffect,
5
5
  useMemo,
6
6
  useState,
7
- } from "https://esm.sh/preact/hooks";
8
- import htm from "https://esm.sh/htm";
7
+ } from "preact/hooks";
8
+ import htm from "htm";
9
9
  import { AddChannelMenu } from "./add-channel-menu.js";
10
10
  import { ChannelAccountStatusBadge } from "./channel-account-status-badge.js";
11
11
  import { ConfirmDialog } from "./confirm-dialog.js";
@@ -74,7 +74,7 @@ export const ChannelsCard = ({
74
74
  <div
75
75
  key=${item.id || item.channel}
76
76
  class="flex justify-between items-center py-1.5 ${clickable
77
- ? "cursor-pointer hover:bg-white/5 -mx-2 px-2 rounded-lg transition-colors"
77
+ ? "cursor-pointer hover:bg-surface -mx-2 px-2 rounded-lg transition-colors"
78
78
  : ""}"
79
79
  onclick=${clickable ? item.onClick : undefined}
80
80
  >
@@ -92,12 +92,12 @@ export const ChannelsCard = ({
92
92
  `
93
93
  : null}
94
94
  <span
95
- class="truncate ${item.dimmedLabel ? "text-gray-500" : ""} ${item.labelClassName || ""}"
95
+ class="truncate ${item.dimmedLabel ? "text-fg-muted" : ""} ${item.labelClassName || ""}"
96
96
  >${item.label || channelMeta.label}</span
97
97
  >
98
98
  ${item.detailText
99
99
  ? html`
100
- <span class="text-xs text-gray-500 ml-1 shrink-0">
100
+ <span class="text-xs text-fg-muted ml-1 shrink-0">
101
101
  ${item.detailText}
102
102
  </span>
103
103
  `
@@ -109,7 +109,7 @@ export const ChannelsCard = ({
109
109
  height="14"
110
110
  viewBox="0 0 16 16"
111
111
  fill="none"
112
- class="text-gray-600 shrink-0"
112
+ class="text-fg-dim shrink-0"
113
113
  >
114
114
  <path
115
115
  d="M6 3.5L10.5 8L6 12.5"
@@ -128,7 +128,7 @@ export const ChannelsCard = ({
128
128
  </div>
129
129
  `;
130
130
  })
131
- : html`<div class="text-gray-500 text-sm text-center py-2">
131
+ : html`<div class="text-fg-muted text-sm text-center py-2">
132
132
  ${loadingLabel}
133
133
  </div>`}
134
134
  </div>
@@ -397,7 +397,7 @@ export const Channels = ({
397
397
  Edit
398
398
  </${OverflowMenuItem}>
399
399
  <${OverflowMenuItem}
400
- className="text-red-300 hover:text-red-200"
400
+ className="text-status-error hover:text-status-error"
401
401
  onClick=${() => {
402
402
  setMenuOpenId("");
403
403
  setDeletingAccount(accountData);
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useEffect } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useEffect } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { ActionButton } from "./action-button.js";
5
5
 
6
6
  const html = htm.bind(h);
@@ -37,14 +37,14 @@ export const ConfirmDialog = ({
37
37
 
38
38
  return html`
39
39
  <div
40
- class="fixed inset-0 bg-black/70 flex items-center justify-center p-4 z-50"
40
+ class="fixed inset-0 bg-overlay flex items-center justify-center p-4 z-50"
41
41
  onclick=${(event) => {
42
42
  if (event.target === event.currentTarget) onCancel?.();
43
43
  }}
44
44
  >
45
45
  <div class="bg-modal border border-border rounded-xl p-5 max-w-md w-full space-y-3">
46
46
  <h2 class="text-base font-semibold">${title}</h2>
47
- <p class="text-sm text-gray-400">${message}</p>
47
+ <p class="text-sm text-fg-muted">${message}</p>
48
48
  ${details}
49
49
  <div class="pt-1 flex items-center justify-end gap-2">
50
50
  <${ActionButton}
@@ -1,6 +1,6 @@
1
- import { h } from "https://esm.sh/preact";
2
- import { useEffect, useRef, useState } from "https://esm.sh/preact/hooks";
3
- import htm from "https://esm.sh/htm";
1
+ import { h } from "preact";
2
+ import { useEffect, useRef, useState } from "preact/hooks";
3
+ import htm from "htm";
4
4
  import { saveGoogleCredentials } from "../lib/api.js";
5
5
  import { SecretInput } from "./secret-input.js";
6
6
  import { ModalShell } from "./modal-shell.js";
@@ -113,12 +113,12 @@ export const CredentialsModal = ({
113
113
  value=${redirectUri}
114
114
  onFocus=${(e) => e.target.select()}
115
115
  onclick=${(e) => e.target.select()}
116
- class="flex-1 min-w-0 bg-black/40 border border-border rounded px-2 py-1 text-gray-300 text-xs focus:outline-none focus:border-gray-500"
116
+ class="flex-1 min-w-0 bg-field border border-border rounded px-2 py-1 text-body text-xs focus:outline-none focus:border-fg-muted"
117
117
  />
118
118
  <button
119
119
  type="button"
120
120
  onclick=${copyRedirectUri}
121
- class="shrink-0 px-2 py-1 rounded border border-border text-xs text-gray-300 hover:border-gray-500"
121
+ class="shrink-0 px-2 py-1 rounded border border-border text-xs text-body hover:border-fg-muted"
122
122
  >
123
123
  ${redirectUriCopied ? "Copied" : "Copy"}
124
124
  </button>
@@ -140,13 +140,13 @@ export const CredentialsModal = ({
140
140
  class="h-8 w-8 inline-flex items-center justify-center rounded-lg ac-btn-secondary"
141
141
  aria-label="Close modal"
142
142
  >
143
- <${CloseIcon} className="w-3.5 h-3.5 text-gray-300" />
143
+ <${CloseIcon} className="w-3.5 h-3.5 text-body" />
144
144
  </button>
145
145
  `}
146
146
  />
147
147
  <div class="space-y-3">
148
148
  <div>
149
- <p class="text-gray-400 text-sm mb-3">
149
+ <p class="text-fg-muted text-sm mb-3">
150
150
  You'll need a Google Cloud OAuth app.${" "}
151
151
  <a
152
152
  href="https://console.cloud.google.com/apis/credentials"
@@ -157,9 +157,9 @@ export const CredentialsModal = ({
157
157
  >
158
158
  </p>
159
159
  <details
160
- class="text-sm text-gray-400 mb-3 bg-black/20 border border-border rounded-lg px-3 py-2"
160
+ class="text-sm text-fg-muted mb-3 bg-field border border-border rounded-lg px-3 py-2"
161
161
  >
162
- <summary class="cursor-pointer font-medium hover:text-gray-200">
162
+ <summary class="cursor-pointer font-medium hover:text-body">
163
163
  Step-by-step instructions
164
164
  </summary>
165
165
  <div
@@ -237,7 +237,7 @@ export const CredentialsModal = ({
237
237
  Copy Client ID + Secret (or download credentials JSON)
238
238
  </li>
239
239
  </ol>
240
- <p class="mt-3 text-yellow-500/80">
240
+ <p class="mt-3 text-status-warning-muted/80">
241
241
  ⚠️ App will be in "Testing" mode. Only emails added as
242
242
  Test Users can sign in (up to 100).
243
243
  </p>
@@ -290,7 +290,7 @@ export const CredentialsModal = ({
290
290
  Copy Client ID + Secret (or download credentials JSON)
291
291
  </li>
292
292
  </ol>
293
- <p class="mt-3 text-green-500/80">
293
+ <p class="mt-3 text-status-success-muted/80">
294
294
  ✓ Internal apps skip test users and verification. Only
295
295
  users in your Workspace org can authorize this Google app.
296
296
  </p>
@@ -299,10 +299,10 @@ export const CredentialsModal = ({
299
299
  </details>
300
300
  </div>
301
301
  <div
302
- class="bg-black/20 border border-border rounded-lg p-3 space-y-3 mt-2"
302
+ class="bg-field border border-border rounded-lg p-3 space-y-3 mt-2"
303
303
  >
304
304
  <div class="flex flex-col items-center text-center gap-2 py-2">
305
- <label class="text-sm text-gray-300 font-medium"
305
+ <label class="text-sm text-body font-medium"
306
306
  >Upload credentials.json</label
307
307
  >
308
308
  <input
@@ -315,38 +315,38 @@ export const CredentialsModal = ({
315
315
  <button
316
316
  type="button"
317
317
  onclick=${() => fileRef.current?.click()}
318
- class="text-sm px-3 py-1.5 rounded-lg border border-border text-gray-300 hover:border-gray-500"
318
+ class="text-sm px-3 py-1.5 rounded-lg border border-border text-body hover:border-fg-muted"
319
319
  >
320
320
  Choose file
321
321
  </button>
322
322
  </div>
323
323
  <div class="flex items-center gap-3 py-1">
324
324
  <div class="h-px flex-1 bg-border"></div>
325
- <span class="text-gray-500 text-xs">or enter manually</span>
325
+ <span class="text-fg-muted text-xs">or enter manually</span>
326
326
  <div class="h-px flex-1 bg-border"></div>
327
327
  </div>
328
328
  <div>
329
- <label class="text-sm text-gray-400 block mb-1">Client ID</label>
329
+ <label class="text-sm text-fg-muted block mb-1">Client ID</label>
330
330
  <${SecretInput}
331
331
  value=${clientId}
332
332
  onInput=${(e) => setClientId(e.target.value)}
333
333
  placeholder="xxxx.apps.googleusercontent.com"
334
- inputClass="flex-1 bg-black/40 border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-gray-500"
334
+ inputClass="flex-1 bg-field border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-fg-muted"
335
335
  />
336
336
  </div>
337
337
  <div>
338
- <label class="text-sm text-gray-400 block mb-1"
338
+ <label class="text-sm text-fg-muted block mb-1"
339
339
  >Client Secret</label
340
340
  >
341
341
  <${SecretInput}
342
342
  value=${clientSecret}
343
343
  onInput=${(e) => setClientSecret(e.target.value)}
344
344
  placeholder="GOCSPX-..."
345
- inputClass="flex-1 bg-black/40 border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-gray-500"
345
+ inputClass="flex-1 bg-field border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-fg-muted"
346
346
  />
347
347
  </div>
348
348
  <div>
349
- <label class="text-sm text-gray-400 block mb-1"
349
+ <label class="text-sm text-fg-muted block mb-1"
350
350
  >Email (Google account to authorize)</label
351
351
  >
352
352
  <input
@@ -354,7 +354,7 @@ export const CredentialsModal = ({
354
354
  value=${email}
355
355
  onInput=${(e) => setEmail(e.target.value)}
356
356
  placeholder="you@gmail.com"
357
- class="w-full bg-black/40 border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-gray-500"
357
+ class="w-full bg-field border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-fg-muted"
358
358
  />
359
359
  </div>
360
360
  </div>
@@ -371,6 +371,6 @@ export const CredentialsModal = ({
371
371
  className="w-full px-4 py-2 rounded-lg text-sm"
372
372
  />
373
373
  </div>
374
- ${error ? html`<div class="text-red-400 text-xs">${error}</div>` : null}
374
+ ${error ? html`<div class="text-status-error-muted text-xs">${error}</div>` : null}
375
375
  </${ModalShell}>`;
376
376
  };
@@ -1,11 +1,11 @@
1
- import { h } from "https://esm.sh/preact";
1
+ import { h } from "preact";
2
2
  import {
3
3
  useCallback,
4
4
  useEffect,
5
5
  useMemo,
6
6
  useState,
7
- } from "https://esm.sh/preact/hooks";
8
- import htm from "https://esm.sh/htm";
7
+ } from "preact/hooks";
8
+ import htm from "htm";
9
9
  import { Tooltip } from "../tooltip.js";
10
10
  import { ModalShell } from "../modal-shell.js";
11
11
  import { CloseIcon } from "../icons.js";
@@ -483,7 +483,7 @@ export const CronCalendar = ({
483
483
  return html`
484
484
  <div class="space-y-2">
485
485
  ${displayedUpcomingItems.length === 0
486
- ? html`<div class="text-xs text-gray-500 py-1">
486
+ ? html`<div class="text-xs text-fg-muted py-1">
487
487
  No upcoming jobs in the next 24 hours.
488
488
  </div>`
489
489
  : html`
@@ -566,7 +566,7 @@ export const CronCalendar = ({
566
566
  const renderFullGrid = () => html`
567
567
  <div class="space-y-3">
568
568
  ${hourRows.length === 0
569
- ? html`<div class="text-sm text-gray-500">
569
+ ? html`<div class="text-sm text-fg-muted">
570
570
  No scheduled jobs in this rolling window.
571
571
  </div>`
572
572
  : html`
@@ -682,7 +682,7 @@ export const CronCalendar = ({
682
682
  ${repeatingJobs.length > 0
683
683
  ? html`
684
684
  <div class="cron-calendar-repeating-strip">
685
- <div class="text-xs text-gray-500">Repeating</div>
685
+ <div class="text-xs text-fg-muted">Repeating</div>
686
686
  <div class="cron-calendar-repeating-list">
687
687
  ${repeatingJobs.map((job) => {
688
688
  const jobId = String(job?.id || "");