@celljs/ta-web 4.15.1 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/esm/browser/components/access-view.d.ts +6 -0
  2. package/esm/browser/components/access-view.js +4 -4
  3. package/esm/browser/components/app-view.js +11 -1
  4. package/esm/browser/components/chat-list.d.ts +3 -1
  5. package/esm/browser/components/chat-list.js +9 -4
  6. package/esm/browser/components/chat-seen.d.ts +7 -0
  7. package/esm/browser/components/chat-seen.js +57 -10
  8. package/esm/browser/components/environment-view.js +59 -3
  9. package/esm/browser/components/folder-picker.js +3 -3
  10. package/esm/browser/components/host-tag.js +2 -2
  11. package/esm/browser/components/host-view.d.ts +1 -1
  12. package/esm/browser/components/remote-hosts.js +66 -5
  13. package/esm/browser/components/settings-parts.js +4 -1
  14. package/esm/browser/extension/icons.js +23 -4
  15. package/esm/browser/extension/web-extension-protocol.d.ts +6 -0
  16. package/esm/browser/extension/web-extensions.d.ts +3 -0
  17. package/esm/browser/extension/web-extensions.js +7 -0
  18. package/esm/browser/gateway/console-extension.d.ts +20 -0
  19. package/esm/browser/gateway/console-extension.js +75 -0
  20. package/esm/browser/gateway/console-parts.d.ts +64 -0
  21. package/esm/browser/gateway/console-parts.js +278 -0
  22. package/esm/browser/gateway/console-tenant.d.ts +22 -0
  23. package/esm/browser/gateway/console-tenant.js +286 -0
  24. package/esm/browser/gateway/console-util.d.ts +59 -0
  25. package/esm/browser/gateway/console-util.js +187 -0
  26. package/esm/browser/gateway/console-view.d.ts +2 -0
  27. package/esm/browser/gateway/console-view.js +226 -0
  28. package/esm/browser/i18n/locales.d.ts +201 -3
  29. package/esm/browser/i18n/messages-ja.js +198 -0
  30. package/esm/browser/i18n/messages-zh-tw.js +198 -0
  31. package/esm/browser/i18n/messages.d.ts +198 -0
  32. package/esm/browser/i18n/messages.js +396 -0
  33. package/esm/browser/index.d.ts +3 -0
  34. package/esm/browser/index.js +3 -0
  35. package/esm/browser/style/pages.d.ts +1 -1
  36. package/esm/browser/style/pages.js +141 -0
  37. package/lib/browser/components/access-view.d.ts +6 -0
  38. package/lib/browser/components/access-view.js +5 -4
  39. package/lib/browser/components/app-view.js +11 -1
  40. package/lib/browser/components/chat-list.d.ts +3 -1
  41. package/lib/browser/components/chat-list.js +9 -4
  42. package/lib/browser/components/chat-seen.d.ts +7 -0
  43. package/lib/browser/components/chat-seen.js +57 -10
  44. package/lib/browser/components/environment-view.js +58 -2
  45. package/lib/browser/components/folder-picker.js +2 -2
  46. package/lib/browser/components/host-tag.js +1 -1
  47. package/lib/browser/components/host-view.d.ts +1 -1
  48. package/lib/browser/components/remote-hosts.js +65 -4
  49. package/lib/browser/components/settings-parts.js +4 -1
  50. package/lib/browser/extension/icons.js +22 -3
  51. package/lib/browser/extension/web-extension-protocol.d.ts +6 -0
  52. package/lib/browser/extension/web-extensions.d.ts +3 -0
  53. package/lib/browser/extension/web-extensions.js +7 -0
  54. package/lib/browser/gateway/console-extension.d.ts +21 -0
  55. package/lib/browser/gateway/console-extension.js +111 -0
  56. package/lib/browser/gateway/console-parts.d.ts +65 -0
  57. package/lib/browser/gateway/console-parts.js +322 -0
  58. package/lib/browser/gateway/console-tenant.d.ts +23 -0
  59. package/lib/browser/gateway/console-tenant.js +327 -0
  60. package/lib/browser/gateway/console-util.d.ts +60 -0
  61. package/lib/browser/gateway/console-util.js +190 -0
  62. package/lib/browser/gateway/console-view.d.ts +3 -0
  63. package/lib/browser/gateway/console-view.js +262 -0
  64. package/lib/browser/i18n/locales.d.ts +201 -3
  65. package/lib/browser/i18n/messages-ja.js +198 -0
  66. package/lib/browser/i18n/messages-zh-tw.js +198 -0
  67. package/lib/browser/i18n/messages.d.ts +198 -0
  68. package/lib/browser/i18n/messages.js +396 -0
  69. package/lib/browser/index.d.ts +3 -0
  70. package/lib/browser/index.js +3 -0
  71. package/lib/browser/style/pages.d.ts +1 -1
  72. package/lib/browser/style/pages.js +141 -0
  73. package/package.json +7 -7
@@ -273,5 +273,146 @@ export const PAGES_STYLE = `
273
273
  .ta-custom-form .ta-input, .ta-custom-model-input { font-size: max(16px, calc(14px * var(--ta-font-scale))); }
274
274
  .ta-custom-actions .ta-button { flex: 1; }
275
275
  }
276
+ /* The console of a gateway (gateway/console-view.tsx). */
277
+ .ta-console-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
278
+ .ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
279
+ .ta-console-stats-small .ta-console-stat-value { font-size: calc(18px * var(--ta-font-scale)); }
280
+ .ta-console-agent { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; }
281
+ .ta-console-agent + .ta-console-agent::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }
282
+ .ta-console-dot.ta-console-agent-working { background: var(--ta-green); animation: ta-console-pulse 1.2s ease-in-out infinite; }
283
+ .ta-console-dot.ta-console-agent-waiting, .ta-console-dot.ta-console-agent-asking { background: var(--ta-blue); }
284
+ .ta-console-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; color: inherit; text-align: left; }
285
+ button.ta-console-stat:not(:disabled):hover { background: var(--ta-hover); }
286
+ button.ta-console-stat:disabled { cursor: default; }
287
+ .ta-console-stat-value { font-size: calc(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
288
+ .ta-console-stat-value.ta-good { color: var(--ta-green); }
289
+ .ta-console-stat-value.ta-warn { color: var(--ta-yellow); }
290
+ .ta-console-stat-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }
291
+ .ta-console-section { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 4px 4px -8px; }
292
+ .ta-console-section-title { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }
293
+ .ta-console-tenant, .ta-console-provider { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px; border: 0; background: none; font: inherit; color: var(--ta-text); text-align: left; }
294
+ .ta-console-tenant { transition: background 120ms; }
295
+ .ta-console-tenant:hover { background: var(--ta-hover); }
296
+ .ta-console-tenant:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }
297
+ .ta-console-tenant + .ta-console-tenant::before, .ta-console-provider + .ta-console-provider::before { content: ''; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--ta-border-muted); }
298
+ .ta-console-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }
299
+ .ta-console-avatar.ta-chat-avatar { font-size: 14px; }
300
+ .ta-console-avatar-large { width: 56px; height: 56px; }
301
+ .ta-console-avatar-large.ta-chat-avatar { font-size: 22px; }
302
+ .ta-console-tenant-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
303
+ .ta-console-tenant-name { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 500; }
304
+ .ta-console-account { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); }
305
+ .ta-console-tenant-state { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); min-width: 0; }
306
+ .ta-console-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-border-field); }
307
+ .ta-console-dot.ta-console-running { background: var(--ta-green); }
308
+ .ta-console-dot.ta-console-starting { background: var(--ta-blue); animation: ta-console-pulse 1.2s ease-in-out infinite; }
309
+ .ta-console-dot.ta-console-failed { background: var(--ta-red); }
310
+ @keyframes ta-console-pulse { 50% { opacity: 0.35; } }
311
+ .ta-console-tenant-usage { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-secondary); }
312
+ .ta-console-bar { display: block; height: 6px; border-radius: 3px; background: var(--ta-chip); overflow: hidden; }
313
+ .ta-console-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ta-green); transition: width 300ms var(--ta-ease); }
314
+ .ta-console-bar > span.ta-warm { background: var(--ta-yellow); }
315
+ .ta-console-bar > span.ta-high { background: var(--ta-red); }
316
+ .ta-console-bar-small { width: 56px; height: 4px; }
317
+ .ta-console-chip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); vertical-align: 1px; }
318
+ .ta-console-invite { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }
319
+ .ta-console-invite .ta-list-hint { margin: 0; }
320
+ .ta-console-mono { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); word-break: break-all; }
321
+ .ta-console-actions { display: flex; flex-wrap: wrap; gap: 8px; }
322
+ .ta-console-person { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }
323
+ .ta-console-person-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
324
+ .ta-console-person-name { font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
325
+ .ta-console-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
326
+ .ta-console-meter { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }
327
+ .ta-console-meter-text { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }
328
+ .ta-console-meter-value { font-variant-numeric: tabular-nums; color: var(--ta-text); }
329
+ .ta-console-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); }
330
+ .ta-console-facts dt { color: var(--ta-muted); }
331
+ .ta-console-facts dd { margin: 0; min-width: 0; text-align: right; }
332
+ .ta-console-logs { margin: 0; max-height: 420px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: var(--ta-secondary); }
333
+ .ta-console-loading { align-self: center; margin: 40px 0; }
334
+ .ta-console .ta-phone-stack-top { background: var(--ta-list-bg); }
335
+ @media ${DeviceMedia.COMPACT} {
336
+ .ta-console-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
337
+ .ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
338
+ }
339
+ .ta-console-content { gap: 14px; }
340
+ .ta-console-content > .ta-segmented { align-self: stretch; }
341
+ .ta-console-stat-value.ta-bad { color: var(--ta-red); }
342
+ .ta-console-chip-warn { background: color-mix(in srgb, var(--ta-yellow) 18%, transparent); color: var(--ta-yellow); }
343
+ .ta-console-role-owner { background: color-mix(in srgb, var(--ta-blue) 16%, transparent); color: var(--ta-blue); }
344
+ .ta-console-role-admin { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }
345
+ .ta-console-meter-hint { font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); }
346
+ .ta-console-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }
347
+ .ta-console-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
348
+ .ta-console-card-controls { display: flex; gap: 8px; flex-wrap: wrap; }
349
+ .ta-console-card-controls .ta-segmented button { padding: 0 10px; white-space: nowrap; }
350
+ .ta-console-total { display: flex; flex-direction: column; gap: 2px; }
351
+ .ta-console-total strong { font-size: calc(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
352
+ .ta-console-total span, .ta-console-card-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }
353
+ .ta-console-card-label { margin-top: 4px; }
354
+ .ta-console-chart { display: flex; flex-direction: column; gap: 4px; }
355
+ .ta-console-chart svg { width: 100%; height: 120px; display: block; overflow: visible; }
356
+ .ta-console-chart-loading { height: 160px; border-radius: 8px; background: var(--ta-chip); opacity: 0.5; }
357
+ .ta-console-chart-hover { display: flex; align-items: baseline; gap: 8px; min-height: 20px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }
358
+ .ta-console-chart-hover strong { color: var(--ta-text); font-weight: 600; }
359
+ .ta-console-chart-hit { fill: transparent; }
360
+ .ta-console-chart-bar { fill: color-mix(in srgb, var(--ta-green) 55%, transparent); transition: fill 120ms; }
361
+ .ta-console-chart-bar.ta-on { fill: var(--ta-green); }
362
+ .ta-console-chart-axis { stroke: var(--ta-border-muted); stroke-width: 1; }
363
+ .ta-console-chart-ticks { display: flex; justify-content: space-between; font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }
364
+ .ta-console-shares { display: flex; flex-direction: column; gap: 6px; }
365
+ .ta-console-share { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; align-items: center; gap: 10px; font-size: calc(12.5px * var(--ta-font-scale)); }
366
+ .ta-console-share .ta-console-bar-small { width: 100%; }
367
+ .ta-console-bar > span.ta-part { background: var(--ta-blue); }
368
+ .ta-console-share-button { padding: 2px 4px; margin: 0 -4px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; }
369
+ .ta-console-share-button:hover { background: var(--ta-hover); }
370
+ .ta-console-share-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ta-secondary); }
371
+ .ta-console-limits { gap: 0; padding: 4px 14px; }
372
+ .ta-console-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
373
+ .ta-console-limit + .ta-console-limit, .ta-console-chips + .ta-console-limit { border-top: 1px solid var(--ta-border-muted); }
374
+ .ta-console-limit-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: calc(13.5px * var(--ta-font-scale)); }
375
+ .ta-console-limit-hint { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }
376
+ .ta-console-limit-control { flex: none; display: flex; align-items: center; gap: 6px; }
377
+ .ta-console-select { width: auto; min-width: 104px; height: 32px; padding: 0 8px; font-size: calc(13px * var(--ta-font-scale)); }
378
+ .ta-console-number { width: 84px; height: 32px; font-variant-numeric: tabular-nums; }
379
+ .ta-console-number.ta-invalid { border-color: var(--ta-red); }
380
+ .ta-console-chips { display: flex; flex-wrap: wrap; gap: 6px; }
381
+ .ta-console-limits .ta-console-chips { padding: 0 0 10px; }
382
+ .ta-console-chip-toggle { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); transition: background 120ms, color 120ms, border-color 120ms; }
383
+ .ta-console-chip-toggle:hover:not(:disabled) { color: var(--ta-text); }
384
+ .ta-console-chip-toggle.ta-on { border-color: transparent; background: var(--ta-segment); color: var(--ta-text); font-weight: 500; }
385
+ .ta-console-chip-count { font-variant-numeric: tabular-nums; color: var(--ta-muted); }
386
+ .ta-console-form-actions { justify-content: flex-end; padding: 10px 0; border-top: 1px solid var(--ta-border-muted); }
387
+ .ta-console-role-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-secondary); }
388
+ .ta-console-role-row > span { flex: 1; }
389
+ .ta-console-toolbar { display: flex; gap: 8px; }
390
+ .ta-console-search { flex: 1; }
391
+ .ta-console-agent-block { position: relative; }
392
+ .ta-console-agent-block + .ta-console-agent-block::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }
393
+ button.ta-console-agent { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; transition: background 120ms; }
394
+ button.ta-console-agent:hover { background: var(--ta-hover); }
395
+ .ta-console-activity { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px 33px; }
396
+ .ta-console-activity-summary { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); padding-bottom: 4px; }
397
+ .ta-console-activity-empty { margin: 0; padding: 0 14px 12px 33px; }
398
+ .ta-console-activity-row { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: calc(12.5px * var(--ta-font-scale)); }
399
+ .ta-console-activity-name { flex: none; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }
400
+ .ta-console-activity-error { flex: 1; min-width: 0; color: var(--ta-red); }
401
+ .ta-console-activity-time { flex: none; margin-left: auto; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }
402
+ .ta-console-audit { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; font-size: calc(13px * var(--ta-font-scale)); }
403
+ .ta-console-audit + .ta-console-audit { border-top: 1px solid var(--ta-border-muted); }
404
+ .ta-console-audit-text { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; }
405
+ .ta-console-audit-text strong { font-weight: 500; }
406
+ .ta-console-audit-detail { color: var(--ta-muted); }
407
+ .ta-console-foot { text-align: center; }
408
+ .ta-setting-row .ta-console-usage, .ta-setting-row .ta-console-invite { width: 100%; }
409
+ @media ${DeviceMedia.COMPACT} {
410
+ .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }
411
+ .ta-console-limit { flex-direction: column; align-items: stretch; }
412
+ .ta-console-limit-control { justify-content: flex-end; }
413
+ .ta-console-select, .ta-console-number { font-size: max(16px, calc(13px * var(--ta-font-scale))); }
414
+ .ta-console-card-controls { width: 100%; }
415
+ .ta-console-card-controls .ta-segmented { flex: 1; }
416
+ }
276
417
  `;
277
418
  //# sourceMappingURL=pages.js.map
@@ -5,6 +5,12 @@ export declare function useAccess(): {
5
5
  info: TaAccessInfo | undefined;
6
6
  read: () => Promise<void>;
7
7
  };
8
+ /** The account's letter or picture, as a conversation of the list; `className` sizes it. */
9
+ export declare function AccountAvatar({ id, avatar, className }: {
10
+ id: string;
11
+ avatar?: string;
12
+ className?: string;
13
+ }): React.JSX.Element;
8
14
  /**
9
15
  * Settings, Access: the accounts that may sign in (those of TA_ALLOWED_USERS, and those added here), the
10
16
  * ones that signed in and wait, and the browsers signed in. The owner, in with the token on the page of
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.useAccess = useAccess;
37
+ exports.AccountAvatar = AccountAvatar;
37
38
  exports.AccessSettings = AccessSettings;
38
39
  const lucide_react_1 = require("lucide-react");
39
40
  const React = __importStar(require("react"));
@@ -58,13 +59,13 @@ function useAccess() {
58
59
  }, [workbench.status, read]);
59
60
  return { info, read };
60
61
  }
61
- /** The account's letter or picture, as a conversation of the list. */
62
- function AccountAvatar({ id, avatar }) {
62
+ /** The account's letter or picture, as a conversation of the list; `className` sizes it. */
63
+ function AccountAvatar({ id, avatar, className = 'ta-access-avatar' }) {
63
64
  if (avatar) {
64
- return React.createElement("img", { className: "ta-access-avatar", src: avatar, alt: "", referrerPolicy: "no-referrer" });
65
+ return React.createElement("img", { className: className, src: avatar, alt: "", referrerPolicy: "no-referrer" });
65
66
  }
66
67
  const name = id.split(':').slice(1).join(':') || id;
67
- return (React.createElement("span", { className: `ta-access-avatar ta-chat-avatar ta-tone-${chat_list_1.ChatListUtil.tone(id)}`, "aria-hidden": "true" }, name.charAt(0).toUpperCase()));
68
+ return (React.createElement("span", { className: `${className} ta-chat-avatar ta-tone-${chat_list_1.ChatListUtil.tone(id)}`, "aria-hidden": "true" }, name.charAt(0).toUpperCase()));
68
69
  }
69
70
  function AccountLabel({ id, name, avatar }) {
70
71
  return (React.createElement("span", { className: "ta-access-account" },
@@ -199,6 +199,10 @@ function AppShell() {
199
199
  setSurface(undefined);
200
200
  }
201
201
  }, [focus, revealRight, revealEditor]);
202
+ React.useEffect(() => {
203
+ host.setSettingsOpener(openSettings);
204
+ return () => host.setSettingsOpener(undefined);
205
+ }, [host, openSettings]);
202
206
  // A web extension shows another conversation: the conversation, not a page, a drawer or the workbench over it, is then in front.
203
207
  React.useEffect(() => {
204
208
  host.setSessionSwitcher(async (session, opening) => {
@@ -438,7 +442,13 @@ function AppShell() {
438
442
  showPage('');
439
443
  }
440
444
  };
441
- const chats = (React.createElement(assistant_chat_list_1.AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats, letGo: letGoAsks, onLetGo: entry => {
445
+ const chats = (React.createElement(assistant_chat_list_1.AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats, onUnseen: (entry, unseen) => {
446
+ var _a;
447
+ const file = chat_list_1.ChatListUtil.file(entry);
448
+ const before = state.get(chat_seen_1.SEEN_CHATS);
449
+ const now = Date.now();
450
+ state.set(chat_seen_1.SEEN_CHATS, unseen ? chat_seen_1.ChatSeenUtil.markUnseen(before, file, now) : ((_a = chat_seen_1.ChatSeenUtil.look(before, file, entry.updatedAt, now)) !== null && _a !== void 0 ? _a : before));
451
+ }, letGo: letGoAsks, onLetGo: entry => {
442
452
  var _a;
443
453
  const at = (_a = entry.asking) === null || _a === void 0 ? void 0 : _a.at;
444
454
  if (at !== undefined) {
@@ -179,6 +179,8 @@ export interface ChatListProps {
179
179
  /** The asks the user let go (LET_GO_ASKS): the others wait for them at the top of the list. */
180
180
  letGo: LetGoAsks;
181
181
  onLetGo(entry: ChatEntry): void;
182
+ /** Marks it unread by hand (ChatSeenUtil.markUnseen), or read. */
183
+ onUnseen(entry: ChatEntry, unseen: boolean): void;
182
184
  /** As a chat is picked, not once it is shown (it shows at once, while it opens): a drawer closes, a phone slides it in. */
183
185
  onPicked(): void;
184
186
  /** Under the head: the state of the connection on a phone (ConnectionBanner). */
@@ -191,5 +193,5 @@ export interface ChatListProps {
191
193
  * opened or searched, and those taken out last, folded, to put back. However long, it draws the rows of
192
194
  * its first screens, and more as it is scrolled to its end.
193
195
  */
194
- export declare function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, }: ChatListProps): React.JSX.Element;
196
+ export declare function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, onUnseen, }: ChatListProps): React.JSX.Element;
195
197
  //# sourceMappingURL=chat-list.d.ts.map
@@ -234,7 +234,7 @@ var ChatListUtil;
234
234
  function filter(sessions, query, t) {
235
235
  const words = query.trim().toLowerCase();
236
236
  return sessions
237
- .filter(session => { var _a; return !words || `${title(session, t)} ${(_a = session.group) !== null && _a !== void 0 ? _a : session.cwd}`.toLowerCase().includes(words); })
237
+ .filter(session => { var _a, _b; return !words || `${title(session, t)} ${(_a = session.group) !== null && _a !== void 0 ? _a : session.cwd} ${(_b = session.lastMessage) !== null && _b !== void 0 ? _b : ''}`.toLowerCase().includes(words); })
238
238
  .sort((a, b) => b.updatedAt - a.updatedAt);
239
239
  }
240
240
  ChatListUtil.filter = filter;
@@ -412,6 +412,10 @@ const ChatItem = React.memo(function ChatItem({ session, source, selected, time,
412
412
  { label: t('ta.chat.open'), run: onSelect },
413
413
  ...(asking ? [{ label: t('ta.chat.letGo'), run: () => actions.letGo(session) }] : []),
414
414
  ...(onPin ? [{ label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: onPin }] : []),
415
+ // As a messenger's, read or not by hand; not the one shown, which is seen as it is.
416
+ ...(onRestore || selected || asking
417
+ ? []
418
+ : [{ label: t(unseen ? 'ta.chat.markSeen' : 'ta.chat.markUnseen'), run: () => actions.markUnseen(session, !unseen) }]),
415
419
  ...(onHand ? [{ label: t('ta.chat.handToDouble'), run: onHand }] : []),
416
420
  // What extensions add (Share…) before taking it out, which stays last.
417
421
  ...actions.extensionMenu(session, title),
@@ -492,7 +496,7 @@ const ChatItem = React.memo(function ChatItem({ session, source, selected, time,
492
496
  * opened or searched, and those taken out last, folded, to put back. However long, it draws the rows of
493
497
  * its first screens, and more as it is scrolled to its end.
494
498
  */
495
- function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, }) {
499
+ function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, onUnseen, }) {
496
500
  const t = (0, use_t_1.useT)();
497
501
  const now = useMinute();
498
502
  const [query, setQuery] = React.useState('');
@@ -506,8 +510,8 @@ function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSa
506
510
  const pageCount = typeof IntersectionObserver === 'undefined' ? Number.POSITIVE_INFINITY : paged.query === query ? paged.count : exports.CHAT_PAGE;
507
511
  // What the rows do reads the props of now, through one object that stays the same: no row is drawn again for it.
508
512
  const sessionMenus = React.useContext(extension_view_1.SessionMenus);
509
- const latest = React.useRef({ chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo });
510
- latest.current = { chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo };
513
+ const latest = React.useRef({ chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo, onUnseen });
514
+ latest.current = { chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo, onUnseen };
511
515
  const actions = React.useMemo(() => {
512
516
  const pick = (change) => {
513
517
  void change;
@@ -530,6 +534,7 @@ function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSa
530
534
  latest.current.onPinned(pin ? [file, ...others] : others);
531
535
  },
532
536
  letGo: entry => latest.current.onLetGo(entry),
537
+ markUnseen: (entry, unseen) => latest.current.onUnseen(entry, unseen),
533
538
  extensionMenu: (entry, title) => {
534
539
  const open = ChatListUtil.isOpen(entry);
535
540
  const session = {
@@ -7,6 +7,8 @@ export interface ChatSeen {
7
7
  /** 0 until it is first kept: then nothing is unseen. */
8
8
  since: number;
9
9
  at: Record<string, number>;
10
+ /** Those the user marked unread, by file, and when: unseen until they are seen after it. */
11
+ unread?: Record<string, number>;
10
12
  }
11
13
  /** The same on every device: one seen on the phone is seen on the computer too. */
12
14
  export declare const SEEN_CHATS: StateSpec<ChatSeen>;
@@ -45,6 +47,11 @@ export declare namespace ChatSeenUtil {
45
47
  function seeAll(seen: ChatSeen, entries: readonly {
46
48
  updatedAt: number;
47
49
  }[], now: number): ChatSeen;
50
+ /**
51
+ * Marked unread by the user, as a messenger's: its dot until it is seen again (look). Marked later than it
52
+ * was seen, whatever the clocks: the page's and the computer's may differ.
53
+ */
54
+ function markUnseen(seen: ChatSeen, file: string, now: number): ChatSeen;
48
55
  /**
49
56
  * Seen now, at rest, its last message at `updatedAt`: the kept value with it, or undefined when nothing
50
57
  * changes. The clocks of the page and the computer may differ: it is seen at least as late as its last message.
@@ -17,19 +17,36 @@ var ChatSeenUtil;
17
17
  if (!value || typeof value !== 'object') {
18
18
  return undefined;
19
19
  }
20
- const { since, at } = value;
20
+ const { since, at, unread } = value;
21
21
  if (typeof since !== 'number' || !at || typeof at !== 'object') {
22
22
  return undefined;
23
23
  }
24
- return { since, at: Object.fromEntries(Object.entries(at).filter(([, time]) => typeof time === 'number')) };
24
+ const times = (record) => Object.fromEntries(Object.entries(record).filter(([, time]) => typeof time === 'number'));
25
+ return unread && typeof unread === 'object' ? { since, at: times(at), unread: times(unread) } : { since, at: times(at) };
25
26
  }
26
27
  ChatSeenUtil.parse = parse;
28
+ /** Whether the user marked it unread since they last saw it. */
29
+ function marked(seen, file) {
30
+ var _a;
31
+ var _b;
32
+ const mark = (_a = seen.unread) === null || _a === void 0 ? void 0 : _a[file];
33
+ return mark !== undefined && mark > ((_b = seen.at[file]) !== null && _b !== void 0 ? _b : seen.since);
34
+ }
35
+ /** The marks still unread (marked) of `unread`, against `at` and `since`: undefined when none is. */
36
+ function stillUnread(unread, at, since) {
37
+ const kept = Object.entries(unread !== null && unread !== void 0 ? unread : {}).filter(([file, mark]) => { var _a; return mark > ((_a = at[file]) !== null && _a !== void 0 ? _a : since); });
38
+ return kept.length ? Object.fromEntries(kept) : undefined;
39
+ }
40
+ function sameRecord(a, b) {
41
+ const left = Object.entries(a !== null && a !== void 0 ? a : {});
42
+ return left.length === Object.keys(b !== null && b !== void 0 ? b : {}).length && left.every(([file, time]) => (b === null || b === void 0 ? void 0 : b[file]) === time);
43
+ }
27
44
  /**
28
45
  * What two pages saw together: each conversation seen as late as either saw it, kept since the later of
29
46
  * the two (what one forgot past KEPT, the other forgets too). `a` itself when `b` adds nothing.
30
47
  */
31
48
  function merge(a, b) {
32
- var _a;
49
+ var _a, _b, _c;
33
50
  const since = a.since && b.since ? Math.max(a.since, b.since) : a.since || b.since;
34
51
  const at = { ...a.at };
35
52
  for (const [file, time] of Object.entries(b.at)) {
@@ -42,8 +59,15 @@ var ChatSeenUtil;
42
59
  delete at[file];
43
60
  }
44
61
  }
45
- const same = since === a.since && Object.keys(at).length === Object.keys(a.at).length && Object.entries(at).every(([file, time]) => a.at[file] === time);
46
- return same ? a : { since, at };
62
+ const marks = { ...a.unread };
63
+ for (const [file, mark] of Object.entries((_b = b.unread) !== null && _b !== void 0 ? _b : {})) {
64
+ if (mark > ((_c = marks[file]) !== null && _c !== void 0 ? _c : 0)) {
65
+ marks[file] = mark;
66
+ }
67
+ }
68
+ const unread = stillUnread(marks, at, since);
69
+ const same = since === a.since && sameRecord(at, a.at) && sameRecord(unread, a.unread);
70
+ return same ? a : unread ? { since, at, unread } : { since, at };
47
71
  }
48
72
  ChatSeenUtil.merge = merge;
49
73
  /**
@@ -52,7 +76,11 @@ var ChatSeenUtil;
52
76
  */
53
77
  function unseen(entry, file, seen, shown) {
54
78
  var _a;
55
- return seen.since > 0 && file !== shown && !entry.isStreaming && entry.messageCount > 0 && entry.updatedAt > ((_a = seen.at[file]) !== null && _a !== void 0 ? _a : seen.since);
79
+ return (seen.since > 0 &&
80
+ file !== shown &&
81
+ !entry.isStreaming &&
82
+ entry.messageCount > 0 &&
83
+ (entry.updatedAt > ((_a = seen.at[file]) !== null && _a !== void 0 ? _a : seen.since) || marked(seen, file)));
56
84
  }
57
85
  ChatSeenUtil.unseen = unseen;
58
86
  /**
@@ -74,19 +102,37 @@ var ChatSeenUtil;
74
102
  */
75
103
  function seeAll(seen, entries, now) {
76
104
  const since = entries.reduce((latest, entry) => Math.max(latest, entry.updatedAt), Math.max(now, seen.since));
77
- return { since, at: Object.fromEntries(Object.entries(seen.at).filter(([, time]) => time > since)) };
105
+ const at = Object.fromEntries(Object.entries(seen.at).filter(([, time]) => time > since));
106
+ const unread = stillUnread(seen.unread, at, since);
107
+ return unread ? { since, at, unread } : { since, at };
78
108
  }
79
109
  ChatSeenUtil.seeAll = seeAll;
110
+ /**
111
+ * Marked unread by the user, as a messenger's: its dot until it is seen again (look). Marked later than it
112
+ * was seen, whatever the clocks: the page's and the computer's may differ.
113
+ */
114
+ function markUnseen(seen, file, now) {
115
+ var _a;
116
+ if (seen.since <= 0) {
117
+ return seen;
118
+ }
119
+ const mark = Math.max(now, (_a = seen.at[file]) !== null && _a !== void 0 ? _a : seen.since) + 1;
120
+ return { ...seen, unread: { ...seen.unread, [file]: mark } };
121
+ }
122
+ ChatSeenUtil.markUnseen = markUnseen;
80
123
  /**
81
124
  * Seen now, at rest, its last message at `updatedAt`: the kept value with it, or undefined when nothing
82
125
  * changes. The clocks of the page and the computer may differ: it is seen at least as late as its last message.
83
126
  */
84
127
  function look(seen, file, updatedAt, now) {
128
+ var _a;
85
129
  const before = seen.at[file];
86
- if (seen.since > 0 && (before !== null && before !== void 0 ? before : seen.since) >= updatedAt) {
130
+ const mark = (_a = seen.unread) === null || _a === void 0 ? void 0 : _a[file];
131
+ if (seen.since > 0 && (before !== null && before !== void 0 ? before : seen.since) >= updatedAt && !marked(seen, file)) {
87
132
  return undefined;
88
133
  }
89
- const at = { ...seen.at, [file]: Math.max(now, updatedAt) };
134
+ // Seen no earlier than it was marked unread: another page that still has the mark lets it go too (merge).
135
+ const at = { ...seen.at, [file]: Math.max(now, updatedAt, mark !== null && mark !== void 0 ? mark : 0) };
90
136
  let since = seen.since || now;
91
137
  const files = Object.keys(at);
92
138
  if (files.length > KEPT) {
@@ -97,7 +143,8 @@ var ChatSeenUtil;
97
143
  delete at[gone];
98
144
  }
99
145
  }
100
- return { since, at };
146
+ const unread = stillUnread(seen.unread, at, since);
147
+ return unread ? { since, at, unread } : { since, at };
101
148
  }
102
149
  ChatSeenUtil.look = look;
103
150
  })(ChatSeenUtil || (exports.ChatSeenUtil = ChatSeenUtil = {}));
@@ -39,6 +39,7 @@ exports.EnvironmentSettings = EnvironmentSettings;
39
39
  exports.EnvironmentPage = EnvironmentPage;
40
40
  const lucide_react_1 = require("lucide-react");
41
41
  const React = __importStar(require("react"));
42
+ const console_parts_1 = require("../gateway/console-parts");
42
43
  const hooks_1 = require("../hooks");
43
44
  const use_t_1 = require("../i18n/use-t");
44
45
  const callout_1 = require("./callout");
@@ -190,6 +191,53 @@ function Tenants() {
190
191
  " ",
191
192
  t('ta.environment.stop'))))))));
192
193
  }
194
+ /**
195
+ * A token of this account for another Ta (Ta Desktop on a laptop) to work in this sandbox as a cloud workspace, its agent
196
+ * staying there: shown once, with the address to paste beside it; signed out in Access, as a browser is.
197
+ */
198
+ function UseElsewhere() {
199
+ const t = (0, use_t_1.useT)();
200
+ const [, bench] = (0, hooks_1.useWorkbench)();
201
+ const [, notices] = (0, hooks_1.useNotices)();
202
+ const [made, setMade] = React.useState();
203
+ const [busy, setBusy] = React.useState(false);
204
+ const copy = (text) => { var _a; return void ((_a = navigator.clipboard) === null || _a === void 0 ? void 0 : _a.writeText(text).then(() => notices.notify(t('ta.console.copied'), { level: 'success' })).catch(() => undefined)); };
205
+ if (!made) {
206
+ return (React.createElement("button", { type: "button", className: "ta-button", disabled: busy, onClick: async () => {
207
+ var _a;
208
+ setBusy(true);
209
+ try {
210
+ const answer = await bench.gateway.createAccessToken(t('ta.environment.tokenLabel'));
211
+ setMade({ token: answer.token, url: (_a = answer.url) !== null && _a !== void 0 ? _a : location.origin });
212
+ }
213
+ catch (error) {
214
+ notices.error(error);
215
+ }
216
+ finally {
217
+ setBusy(false);
218
+ }
219
+ } },
220
+ busy ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.KeyRound, size: 14 }),
221
+ " ",
222
+ t('ta.environment.makeToken')));
223
+ }
224
+ return (React.createElement("div", { className: "ta-console-invite" },
225
+ React.createElement("span", { className: "ta-console-section-title" }, t('ta.remote.cloudUrl')),
226
+ React.createElement("div", { className: "ta-console-actions" },
227
+ React.createElement("code", { className: "ta-console-mono" }, made.url),
228
+ React.createElement("button", { type: "button", className: "ta-link-button", onClick: () => copy(made.url) },
229
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.Copy, size: 13 }),
230
+ " ",
231
+ t('ta.console.copy'))),
232
+ React.createElement("span", { className: "ta-console-section-title" }, t('ta.remote.cloudToken')),
233
+ React.createElement("div", { className: "ta-console-actions" },
234
+ React.createElement("code", { className: "ta-console-mono" }, made.token),
235
+ React.createElement("button", { type: "button", className: "ta-link-button", onClick: () => copy(made.token) },
236
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.Copy, size: 13 }),
237
+ " ",
238
+ t('ta.console.copy'))),
239
+ React.createElement("span", { className: "ta-list-hint" }, t('ta.environment.tokenHint'))));
240
+ }
193
241
  /** Settings, Environment: where this account's Ta runs, to restart or change; administrators see every tenant. */
194
242
  function EnvironmentSettings({ info, onChange }) {
195
243
  const t = (0, use_t_1.useT)();
@@ -215,6 +263,10 @@ function EnvironmentSettings({ info, onChange }) {
215
263
  busy ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.RotateCw, size: 14 }),
216
264
  " ",
217
265
  t('ta.environment.restart'))),
266
+ React.createElement(settings_controls_1.Row, { label: t('ta.console.quota'), description: t('ta.environment.quotaHint'), stacked: true },
267
+ React.createElement(console_parts_1.QuotaMeters, { quota: info.quota })),
268
+ React.createElement(settings_controls_1.Row, { label: t('ta.environment.elsewhere'), description: t('ta.environment.elsewhereHint'), stacked: true },
269
+ React.createElement(UseElsewhere, null)),
218
270
  React.createElement(settings_controls_1.Row, { label: t('ta.environment.where'), description: t('ta.environment.whereHint'), stacked: true },
219
271
  React.createElement(EnvironmentChooser, { info: info, onChanged: reload })),
220
272
  info.admin && React.createElement(Tenants, null)));
@@ -230,8 +282,12 @@ function EnvironmentPage() {
230
282
  return (React.createElement("div", { className: "ta-signin" },
231
283
  React.createElement("div", { className: "ta-card ta-environment-card" },
232
284
  React.createElement(ta_avatar_1.TaAvatar, { size: 72 }),
233
- React.createElement("h1", null, t('ta.environment.failedTitle')),
234
- React.createElement(callout_1.Callout, { level: "error" }, (_a = info === null || info === void 0 ? void 0 : info.environment.error) !== null && _a !== void 0 ? _a : workbench.environmentError),
285
+ React.createElement("h1", null, t((info === null || info === void 0 ? void 0 : info.quota.blocked) ? 'ta.environment.blockedTitle' : 'ta.environment.failedTitle')),
286
+ (info === null || info === void 0 ? void 0 : info.quota.blocked) ? (React.createElement(React.Fragment, null,
287
+ React.createElement(callout_1.Callout, { level: "warning" }, t(info.quota.blocked === 'suspended' ? 'ta.environment.blockedSuspended' : 'ta.environment.blockedMinutes', {
288
+ date: new Date(info.quota.resetsAt).toLocaleDateString(undefined, { month: 'long', day: 'numeric' }),
289
+ })),
290
+ React.createElement(console_parts_1.QuotaMeters, { quota: info.quota }))) : (React.createElement(callout_1.Callout, { level: "error" }, (_a = info === null || info === void 0 ? void 0 : info.environment.error) !== null && _a !== void 0 ? _a : workbench.environmentError)),
235
291
  React.createElement("button", { type: "button", className: "ta-button ta-primary ta-wide", disabled: busy, onClick: async () => {
236
292
  setBusy(true);
237
293
  try {
@@ -154,8 +154,8 @@ function Machines({ host, hosts, onPick }) {
154
154
  React.createElement(icon_1.Icon, { icon: lucide_react_1.Monitor, size: 13 }),
155
155
  t('ta.remote.local')),
156
156
  shown.map(known => (React.createElement("button", { key: known.host, type: "button", role: "tab", "aria-selected": known.host === host, className: "ta-chip-filter", title: known.connected ? `${known.host} · ${t('ta.remote.connected')}` : known.host, onClick: () => onPick(known.host) },
157
- React.createElement(icon_1.Icon, { icon: lucide_react_1.Server, size: 13 }),
158
- known.host,
157
+ React.createElement(icon_1.Icon, { icon: ta_protocol_1.TaLocation.isCloud(known.host) ? lucide_react_1.Cloud : lucide_react_1.Server, size: 13 }),
158
+ ta_protocol_1.TaLocation.isCloud(known.host) ? ta_protocol_1.TaLocation.hostLabel(known.host) : known.host,
159
159
  known.connected && React.createElement("span", { className: "ta-remote-dot" })))),
160
160
  adding ? (React.createElement("form", { className: "ta-folder-add", onSubmit: event => {
161
161
  event.preventDefault();
@@ -51,7 +51,7 @@ function HostTag({ location, host }) {
51
51
  }
52
52
  const title = t('ta.host.title', { host: full });
53
53
  return (React.createElement("span", { className: "ta-host-tag", title: title, role: "img", "aria-label": title },
54
- React.createElement(icon_1.Icon, { icon: lucide_react_1.Server, size: 10 }),
54
+ React.createElement(icon_1.Icon, { icon: ta_protocol_1.TaLocation.isCloud(full) ? lucide_react_1.Cloud : lucide_react_1.Server, size: 10 }),
55
55
  React.createElement("span", null, ta_protocol_1.TaLocation.hostLabel(full))));
56
56
  }
57
57
  //# sourceMappingURL=host-tag.js.map