@celljs/ta-web 4.29.0 → 4.30.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 (55) hide show
  1. package/esm/browser/chat/chat-view.js +1 -1
  2. package/esm/browser/components/app-contexts.js +6 -4
  3. package/esm/browser/components/app-nav.js +4 -4
  4. package/esm/browser/components/chat-list-row.js +7 -2
  5. package/esm/browser/components/chat-tag.d.ts +20 -0
  6. package/esm/browser/components/chat-tag.js +103 -0
  7. package/esm/browser/components/custom-host.js +1 -1
  8. package/esm/browser/components/editor-area.js +1 -1
  9. package/esm/browser/components/launcher-surface.js +1 -1
  10. package/esm/browser/components/session-view.js +6 -1
  11. package/esm/browser/extension/extension-view.d.ts +7 -0
  12. package/esm/browser/extension/extension-view.js +5 -0
  13. package/esm/browser/extension/icons.js +2 -1
  14. package/esm/browser/extension/web-api-chats.d.ts +29 -0
  15. package/esm/browser/extension/web-extension-api.d.ts +4 -5
  16. package/esm/browser/extension/web-extension-context.js +1 -0
  17. package/esm/browser/extension/web-extension-protocol.d.ts +8 -1
  18. package/esm/browser/extension/web-extension-protocol.js +1 -0
  19. package/esm/browser/extension/web-extension-run.d.ts +3 -2
  20. package/esm/browser/extension/web-extension-run.js +2 -0
  21. package/esm/browser/extension/web-extensions-running.d.ts +3 -0
  22. package/esm/browser/extension/web-extensions-running.js +13 -1
  23. package/esm/browser/extension/web-extensions.js +5 -1
  24. package/esm/browser/extension/web-metrics.d.ts +32 -0
  25. package/esm/browser/extension/web-metrics.js +98 -0
  26. package/esm/browser/style/chat-list.d.ts +1 -1
  27. package/esm/browser/style/chat-list.js +6 -0
  28. package/lib/browser/chat/chat-view.js +1 -1
  29. package/lib/browser/components/app-contexts.js +6 -4
  30. package/lib/browser/components/app-nav.js +4 -4
  31. package/lib/browser/components/chat-list-row.js +7 -2
  32. package/lib/browser/components/chat-tag.d.ts +21 -0
  33. package/lib/browser/components/chat-tag.js +142 -0
  34. package/lib/browser/components/custom-host.js +1 -1
  35. package/lib/browser/components/editor-area.js +1 -1
  36. package/lib/browser/components/launcher-surface.js +1 -1
  37. package/lib/browser/components/session-view.js +6 -1
  38. package/lib/browser/extension/extension-view.d.ts +7 -0
  39. package/lib/browser/extension/extension-view.js +6 -1
  40. package/lib/browser/extension/icons.js +1 -0
  41. package/lib/browser/extension/web-api-chats.d.ts +29 -0
  42. package/lib/browser/extension/web-extension-api.d.ts +4 -5
  43. package/lib/browser/extension/web-extension-context.js +1 -0
  44. package/lib/browser/extension/web-extension-protocol.d.ts +8 -1
  45. package/lib/browser/extension/web-extension-protocol.js +1 -0
  46. package/lib/browser/extension/web-extension-run.d.ts +3 -2
  47. package/lib/browser/extension/web-extension-run.js +2 -0
  48. package/lib/browser/extension/web-extensions-running.d.ts +3 -0
  49. package/lib/browser/extension/web-extensions-running.js +13 -1
  50. package/lib/browser/extension/web-extensions.js +5 -1
  51. package/lib/browser/extension/web-metrics.d.ts +33 -0
  52. package/lib/browser/extension/web-metrics.js +102 -0
  53. package/lib/browser/style/chat-list.d.ts +1 -1
  54. package/lib/browser/style/chat-list.js +6 -0
  55. package/package.json +7 -7
@@ -38,6 +38,35 @@ export interface WebChatIcon {
38
38
  */
39
39
  folder?: string;
40
40
  }
41
+ /**
42
+ * A small label a conversation has after its name, in the lists and on top of it (WebExtensionAPI.registerChatTag):
43
+ * what it is, at a glance (Work, of a directory marked so). A few words.
44
+ */
45
+ export interface WebChatTag {
46
+ text: string;
47
+ /** Its color: `blue`, `gray` (with a lock), `green`; default `gray`. */
48
+ tone?: 'blue' | 'gray' | 'green';
49
+ /** Under a pointer: what it means. */
50
+ title?: string;
51
+ }
52
+ /**
53
+ * The tags an extension gives conversations (WebExtensionAPI.registerChatTag). Asked for each row as it is drawn:
54
+ * answer at once, from what the extension holds.
55
+ */
56
+ export interface WebChatTagSource {
57
+ tag(chat: WebChat): WebChatTag | undefined;
58
+ /** What `tag` answers changed: the lists draw their rows again. */
59
+ subscribe?(listener: () => void): () => void;
60
+ }
61
+ /** What a web extension adds to the conversations of the lists (WebExtensionAPI extends it). */
62
+ export interface WebChatTagsAPI {
63
+ /**
64
+ * A small label for conversations, after their name in the lists and on top of a conversation: what they are at a
65
+ * glance (Work, of a directory marked so). The first extension that gives one for a conversation is drawn. Newer
66
+ * than some Ta apps: `pi.registerChatTag?.(…)`.
67
+ */
68
+ registerChatTag(source: WebChatTagSource): void;
69
+ }
41
70
  /**
42
71
  * The conversations an extension gives an icon of their own (WebExtensionAPI.registerChatIcon): a brief it writes,
43
72
  * the questions it asks. Asked for each row as it is drawn: answer at once, from what the extension holds.
@@ -7,7 +7,7 @@ import type { Game3DProps } from '../game/game3d-protocol';
7
7
  import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol';
8
8
  import type { Language, Theme } from '../settings/settings-protocol';
9
9
  import type { CodeEditorProps, DiffEditorProps, WebChatImagesProps, WebComposerProps, WebConversationViewProps, WebDialogProps, WebEmptyProps, WebFaceProps, WebFolderPickerProps, WebFullScreenProps, WebGroupFaceProps, WebHoldToTalkProps, WebImageViewerProps, WebLoadingProps, WebModelPickerProps, WebPictureCardsProps, WebPictureProps, WebSelectBarProps, WebSelectCheckProps, WebShareSheetProps, WebStackProps, WebSwipeRowProps, WebSwitchProps, WebTaskIconProps, WebVoice } from './web-api-components';
10
- import type { WebAsk, WebCallsAPI, WebChatIconSource, WebCodeRendererOptions, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions';
10
+ import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, WebCodeRendererOptions, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions';
11
11
  import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop';
12
12
  import type { WebEditorsUI } from './web-api-editors';
13
13
  import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home';
@@ -31,11 +31,10 @@ export type * from './web-api-services';
31
31
  export type * from './web-api-terminal';
32
32
  export type { WebPageInfo, WebPageState } from './web-pages';
33
33
  /**
34
- * What a web extension gets: the web client's side of pi's extension API, with the same names where
35
- * the two mean the same. A web extension is one ES module without imports, the `web` part of a pi
36
- * package (see TaWebExtensionInfo); it exports a {@link WebExtensionFactory}.
34
+ * What a web extension gets: the web client's side of pi's extension API, its names where they mean the same. A web
35
+ * extension is one ES module without imports, the `web` part of a pi package (TaWebExtensionInfo): a {@link WebExtensionFactory}.
37
36
  */
38
- export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebCallsAPI {
37
+ export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebCallsAPI, WebChatTagsAPI {
39
38
  /** The React of the page: an extension brings no React of its own. */
40
39
  readonly React: typeof React;
41
40
  readonly ui: WebExtensionUI;
@@ -251,6 +251,7 @@ class WebExtensionContext {
251
251
  run.avatar = avatar;
252
252
  }),
253
253
  registerChatIcon: source => register(() => run.chatIcons.push(source)),
254
+ registerChatTag: source => register(() => run.chatTags.push(source)),
254
255
  registerTool: tool => register(() => run.tools.push(tool)),
255
256
  registerToolRenderer: resolver => register(() => run.toolRenderers.push(resolver)),
256
257
  registerTasks: source => register(() => run.taskSources.push(source)),
@@ -2,7 +2,7 @@ import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-pr
2
2
  import type * as React from 'react';
3
3
  import type { MessageId } from '../i18n/messages';
4
4
  import type { BlockSpeech } from '../util/spoken';
5
- import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
5
+ import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
6
6
  import type { WebHomeBoard } from './web-home';
7
7
  import type { PageUsage, WebPageInfo } from './web-pages';
8
8
  import type { WebPartnerBoard } from './web-partners';
@@ -104,6 +104,11 @@ export interface WebChatIconEntry {
104
104
  extension: string;
105
105
  source: WebChatIconSource;
106
106
  }
107
+ export interface WebChatTagEntry {
108
+ /** The name of the extension's package. */
109
+ extension: string;
110
+ source: WebChatTagSource;
111
+ }
107
112
  export interface WebExtensionsState {
108
113
  extensions: LoadedWebExtension[];
109
114
  views: WebViewEntry[];
@@ -136,6 +141,8 @@ export interface WebExtensionsState {
136
141
  avatars: Record<string, React.ComponentType<WebAvatarProps>>;
137
142
  /** The icons extensions give conversations of theirs (WebExtensionAPI.registerChatIcon), with the extension of each. */
138
143
  chatIcons: WebChatIconEntry[];
144
+ /** The tags extensions give conversations (WebExtensionAPI.registerChatTag), with the extension of each. */
145
+ chatTags: WebChatTagEntry[];
139
146
  /** What answers how far the page goes on its own (WebExtensionAPI.registerInitiative), in the order registered. */
140
147
  initiatives: WebInitiative[];
141
148
  /** The first tool of each name. */
@@ -20,6 +20,7 @@ var WebExtensionsStateUtil;
20
20
  avatars: {},
21
21
  callMoves: [],
22
22
  chatIcons: [],
23
+ chatTags: [],
23
24
  initiatives: [],
24
25
  tools: [],
25
26
  toolRenderers: [],
@@ -1,6 +1,6 @@
1
1
  import type { TaEvent } from '@celljs/ta-protocol';
2
2
  import type * as React from 'react';
3
- import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api';
3
+ import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api';
4
4
  import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol';
5
5
  /** What an extension registered through its API: all of it goes when it stops. */
6
6
  export interface WebRegistrations {
@@ -17,6 +17,7 @@ export interface WebRegistrations {
17
17
  callMoves: WebCallMoves[];
18
18
  avatar?: WebExtensionsState['avatars'][string];
19
19
  chatIcons: WebChatIconSource[];
20
+ chatTags: WebChatTagSource[];
20
21
  homeSources: WebHomeSource[];
21
22
  partnerSources: WebPartnerSource[];
22
23
  initiatives: WebInitiative[];
@@ -60,6 +61,6 @@ export declare namespace WebExtensionRunUtil {
60
61
  /** Subscribes for the extension: undone when it stops, or by the function returned. */
61
62
  function track(run: WebExtensionRun, subscribe: () => () => void): () => void;
62
63
  /** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
63
- function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
64
+ function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
64
65
  }
65
66
  //# sourceMappingURL=web-extension-run.d.ts.map
@@ -30,6 +30,7 @@ var WebExtensionRunUtil;
30
30
  callMoves: [],
31
31
  avatar: undefined,
32
32
  chatIcons: [],
33
+ chatTags: [],
33
34
  homeSources: [],
34
35
  partnerSources: [],
35
36
  initiatives: [],
@@ -148,6 +149,7 @@ var WebExtensionRunUtil;
148
149
  callMoves: runs.flatMap(run => run.callMoves),
149
150
  avatars,
150
151
  chatIcons: runs.flatMap(run => run.chatIcons.map(source => ({ extension: run.loaded.name, source }))),
152
+ chatTags: runs.flatMap(run => run.chatTags.map(source => ({ extension: run.loaded.name, source }))),
151
153
  initiatives: runs.flatMap(run => run.initiatives),
152
154
  tools,
153
155
  toolRenderers: runs.flatMap(run => run.toolRenderers),
@@ -14,6 +14,7 @@ import type { WebExtensionContext } from './web-extension-context';
14
14
  import { BuiltinWebExtension, type LoadedWebExtension, type WebExtensionConversation, type WebExtensionsState, type WebSessionSwitcher, type WebViewEntry } from './web-extension-protocol';
15
15
  import { type WebExtensionRun } from './web-extension-run';
16
16
  import { WebHomeBoard } from './web-home';
17
+ import { WebMetrics } from './web-metrics';
17
18
  import { WebOnDemand } from './web-on-demand';
18
19
  import { WebPageList } from './web-page-list';
19
20
  import { WebPartnerBoard } from './web-partners';
@@ -41,6 +42,8 @@ export declare abstract class WebExtensionsRunning {
41
42
  protected readonly code: WebExtensionCode;
42
43
  protected current: WebExtensionsState;
43
44
  protected readonly running: Map<string, WebExtensionRun>;
45
+ /** What the page counts of the packages (docs/design/ta-metrics.md 4.1). */
46
+ protected readonly metrics: WebMetrics;
44
47
  protected readonly listeners: Set<(state: WebExtensionsState) => void>;
45
48
  protected conversation?: WebExtensionConversation;
46
49
  protected switcher?: WebSessionSwitcher;
@@ -25,6 +25,7 @@ const web_extension_code_1 = require("./web-extension-code");
25
25
  const web_extension_protocol_1 = require("./web-extension-protocol");
26
26
  const web_extension_run_1 = require("./web-extension-run");
27
27
  const web_home_1 = require("./web-home");
28
+ const web_metrics_1 = require("./web-metrics");
28
29
  const web_on_demand_1 = require("./web-on-demand");
29
30
  const web_page_list_1 = require("./web-page-list");
30
31
  const web_pages_1 = require("./web-pages");
@@ -59,6 +60,8 @@ class WebExtensionsRunning {
59
60
  this.code = new web_extension_code_1.WebExtensionCode((0, device_values_1.deviceValues)(), () => (typeof localStorage === 'undefined' ? undefined : localStorage));
60
61
  this.current = web_extension_protocol_1.WebExtensionsStateUtil.empty();
61
62
  this.running = new Map();
63
+ /** What the page counts of the packages (docs/design/ta-metrics.md 4.1). */
64
+ this.metrics = new web_metrics_1.WebMetrics(batch => this.workbench.packages.reportMetrics(batch), extension => { var _a; var _b; return (_b = (_a = this.running.get(extension)) === null || _a === void 0 ? void 0 : _a.loaded.name) !== null && _b !== void 0 ? _b : ([...this.running.values()].some(run => run.loaded.name === extension) ? extension : undefined); });
62
65
  this.listeners = new Set();
63
66
  this.refreshing = Promise.resolve(false);
64
67
  /** The extensions of the list of the last time have started (startKept), once. */
@@ -69,6 +72,7 @@ class WebExtensionsRunning {
69
72
  return this.current;
70
73
  }
71
74
  init() {
75
+ this.metrics.start();
72
76
  this.placeholders = web_view_util_1.WebViewUtil.placeholders(this.persisted.get(web_view_util_1.WebViewUtil.KEPT));
73
77
  this.current = { ...this.current, page: this.persisted.get(web_view_util_1.WebViewUtil.PAGE), views: this.placeholders, usage: this.onDemand.used };
74
78
  }
@@ -220,6 +224,7 @@ class WebExtensionsRunning {
220
224
  return stopped;
221
225
  }
222
226
  async loadPackage(info) {
227
+ const start = performance.now();
223
228
  try {
224
229
  const kept = await this.code.get(info.hash);
225
230
  if (kept !== undefined) {
@@ -227,9 +232,13 @@ class WebExtensionsRunning {
227
232
  }
228
233
  const { code, hash } = await this.workbench.packages.readWebExtension(info.id);
229
234
  void this.code.set(hash, code);
230
- return { factory: await web_view_util_1.WebExtensionUtil.load(code), hash };
235
+ const factory = await web_view_util_1.WebExtensionUtil.load(code);
236
+ // Read from the computer: what the user waits for the first time (kept code is quick).
237
+ this.metrics.record(info.name, 'web:load', false, performance.now() - start);
238
+ return { factory, hash };
231
239
  }
232
240
  catch (error) {
241
+ this.metrics.record(info.name, 'web:load', true, performance.now() - start);
233
242
  return { error: web_view_util_1.WebExtensionUtil.message(error) };
234
243
  }
235
244
  }
@@ -249,8 +258,10 @@ class WebExtensionsRunning {
249
258
  const dispose = factory(this.context.create(run));
250
259
  run.dispose = typeof dispose === 'function' ? dispose : undefined;
251
260
  run.started = true;
261
+ this.metrics.record(loaded.id, 'web:start');
252
262
  }
253
263
  catch (error) {
264
+ this.metrics.record(loaded.id, 'web:start', true);
254
265
  this.stop(run);
255
266
  run.loaded = { ...loaded, error: web_view_util_1.WebExtensionUtil.message(error) };
256
267
  }
@@ -268,6 +279,7 @@ class WebExtensionsRunning {
268
279
  action();
269
280
  }
270
281
  catch (error) {
282
+ this.metrics.record(run.loaded.id, 'web:error', true);
271
283
  console.error(`The web extension ${run.loaded.name} failed:`, error);
272
284
  }
273
285
  }
@@ -84,7 +84,11 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl extends web_extensions_runni
84
84
  }
85
85
  showPage(id) {
86
86
  this.persisted.set(web_view_util_1.WebViewUtil.PAGE, id);
87
- this.onDemand.shown(this.current.views.find(view => view.id === id));
87
+ const view = this.current.views.find(candidate => candidate.id === id);
88
+ this.onDemand.shown(view);
89
+ if ((view === null || view === void 0 ? void 0 : view.location) === 'page' && !view.pending) {
90
+ this.metrics.record(view.extension, `page:${view.id.slice(view.id.lastIndexOf('/') + 1)}`);
91
+ }
88
92
  this.update({
89
93
  page: id,
90
94
  pageShown: this.current.pageShown + 1,
@@ -0,0 +1,33 @@
1
+ import { type TaMetricsBatchItem } from '@celljs/ta-protocol';
2
+ /**
3
+ * What the page counts of the packages (docs/design/ta-metrics.md 4.1): pages opened, web extensions loaded and
4
+ * started, what they drew that threw. In memory, a few additions a record; told to ta serve in one batch every minute
5
+ * or as the page is hidden, never more often than it takes (TA_METRICS_BATCH_MS), at most TA_METRICS_BATCH items.
6
+ * Nothing it does throws to what it counts, and a Ta service of before, which does not take them, is simply not told.
7
+ */
8
+ export declare class WebMetrics {
9
+ protected readonly send: (batch: TaMetricsBatchItem[]) => Promise<void>;
10
+ /** The package of an extension, by its id or its name; undefined for one not known. */
11
+ protected readonly packageOf: (extension: string) => string | undefined;
12
+ protected readonly now: () => number;
13
+ /** The one of the page: what draws an extension (ExtensionBoundary) counts what threw there. */
14
+ static current?: WebMetrics;
15
+ protected counts: Map<string, TaMetricsBatchItem>;
16
+ protected sent: number;
17
+ protected timer?: ReturnType<typeof setInterval>;
18
+ protected readonly onHidden: () => void;
19
+ constructor(send: (batch: TaMetricsBatchItem[]) => Promise<void>,
20
+ /** The package of an extension, by its id or its name; undefined for one not known. */
21
+ packageOf?: (extension: string) => string | undefined, now?: () => number);
22
+ start(): void;
23
+ dispose(): void;
24
+ /** One of `item` (`page:main`, `web:load`) of the package of `extension`. */
25
+ record(extension: string | undefined, item: string, err?: boolean, ms?: number): void;
26
+ /** What threw where an extension drew (ExtensionBoundary). */
27
+ renderError(extension: string | undefined): void;
28
+ /** What was counted, told when it may be; dropped when the service does not take it. */
29
+ flush(): Promise<void>;
30
+ /** What it holds now, for tests. */
31
+ pending(): TaMetricsBatchItem[];
32
+ }
33
+ //# sourceMappingURL=web-metrics.d.ts.map
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebMetrics = void 0;
4
+ const ta_protocol_1 = require("@celljs/ta-protocol");
5
+ /** How often the page tells what it counted, when it changed; and when it is hidden, if it may by then. */
6
+ const FLUSH_MS = 60000;
7
+ /**
8
+ * What the page counts of the packages (docs/design/ta-metrics.md 4.1): pages opened, web extensions loaded and
9
+ * started, what they drew that threw. In memory, a few additions a record; told to ta serve in one batch every minute
10
+ * or as the page is hidden, never more often than it takes (TA_METRICS_BATCH_MS), at most TA_METRICS_BATCH items.
11
+ * Nothing it does throws to what it counts, and a Ta service of before, which does not take them, is simply not told.
12
+ */
13
+ class WebMetrics {
14
+ constructor(send,
15
+ /** The package of an extension, by its id or its name; undefined for one not known. */
16
+ packageOf = name => name, now = Date.now) {
17
+ this.send = send;
18
+ this.packageOf = packageOf;
19
+ this.now = now;
20
+ this.counts = new Map();
21
+ this.sent = 0;
22
+ this.onHidden = () => {
23
+ if (typeof document !== 'undefined' && document.visibilityState === 'hidden') {
24
+ void this.flush();
25
+ }
26
+ };
27
+ }
28
+ start() {
29
+ var _a;
30
+ WebMetrics.current = this;
31
+ (_a = this.timer) !== null && _a !== void 0 ? _a : (this.timer = setInterval(() => void this.flush(), FLUSH_MS));
32
+ if (typeof document !== 'undefined') {
33
+ document.addEventListener('visibilitychange', this.onHidden);
34
+ }
35
+ }
36
+ dispose() {
37
+ clearInterval(this.timer);
38
+ this.timer = undefined;
39
+ if (typeof document !== 'undefined') {
40
+ document.removeEventListener('visibilitychange', this.onHidden);
41
+ }
42
+ if (WebMetrics.current === this) {
43
+ WebMetrics.current = undefined;
44
+ }
45
+ }
46
+ /** One of `item` (`page:main`, `web:load`) of the package of `extension`. */
47
+ record(extension, item, err = false, ms) {
48
+ var _a, _b;
49
+ try {
50
+ const pkg = extension === undefined ? undefined : this.packageOf(extension);
51
+ if (!pkg) {
52
+ return;
53
+ }
54
+ const key = `${pkg}\u0000${item}`;
55
+ let one = this.counts.get(key);
56
+ if (!one) {
57
+ if (this.counts.size >= ta_protocol_1.TA_METRICS_BATCH) {
58
+ return;
59
+ }
60
+ one = { pkg, item, n: 0 };
61
+ this.counts.set(key, one);
62
+ }
63
+ one.n++;
64
+ if (err) {
65
+ one.err = ((_a = one.err) !== null && _a !== void 0 ? _a : 0) + 1;
66
+ }
67
+ if (ms !== undefined && Number.isFinite(ms) && ms >= 0) {
68
+ (_b = one.ms) !== null && _b !== void 0 ? _b : (one.ms = new Array(ta_protocol_1.TA_METRICS_BOUNDS.length + 1).fill(0));
69
+ one.ms[ta_protocol_1.TaMetricsUtil.bucket(ms)]++;
70
+ }
71
+ }
72
+ catch (_c) {
73
+ // Never to what it counts.
74
+ }
75
+ }
76
+ /** What threw where an extension drew (ExtensionBoundary). */
77
+ renderError(extension) {
78
+ this.record(extension, 'render:view', true);
79
+ }
80
+ /** What was counted, told when it may be; dropped when the service does not take it. */
81
+ async flush() {
82
+ const now = this.now();
83
+ if (this.counts.size === 0 || now - this.sent < ta_protocol_1.TA_METRICS_BATCH_MS) {
84
+ return;
85
+ }
86
+ const batch = [...this.counts.values()];
87
+ this.counts = new Map();
88
+ this.sent = now;
89
+ try {
90
+ await this.send(batch);
91
+ }
92
+ catch (_a) {
93
+ // A Ta service of before, or not there now: dropped, as a minute of counts.
94
+ }
95
+ }
96
+ /** What it holds now, for tests. */
97
+ pending() {
98
+ return [...this.counts.values()];
99
+ }
100
+ }
101
+ exports.WebMetrics = WebMetrics;
102
+ //# sourceMappingURL=web-metrics.js.map
@@ -1,3 +1,3 @@
1
1
  /** The list of chats: its search, its rows, the letters and faces of their groups. */
2
- export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */\n.ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-partner-pick-row:disabled { cursor: default; }\n.ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }\n.ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }\n.ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }\n.ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-foot { display: flex; justify-content: flex-end; }\n";
2
+ export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }\n.ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }\n.ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }\n.ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-title-line > .ta-chat-tag { margin: 0; }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */\n.ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-partner-pick-row:disabled { cursor: default; }\n.ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }\n.ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }\n.ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }\n.ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-foot { display: flex; justify-content: flex-end; }\n";
3
3
  //# sourceMappingURL=chat-list.d.ts.map
@@ -64,6 +64,12 @@ exports.CHAT_LIST_STYLE = `
64
64
  .ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }
65
65
  /* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */
66
66
  .ta-chat-title.ta-badged { flex: 0 1 auto; }
67
+ .ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }
68
+ .ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }
69
+ .ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }
70
+ .ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
71
+ .ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
72
+ .ta-title-line > .ta-chat-tag { margin: 0; }
67
73
  .ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }
68
74
  .ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
69
75
  .ta-chat-line .ta-spinner { width: 12px; height: 12px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-web",
3
- "version": "4.29.0",
3
+ "version": "4.30.0",
4
4
  "description": "The web client of ta serve: sessions, streaming messages, tool runs with diffs, and dialogs",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -33,12 +33,12 @@
33
33
  "watch": "tsc -b -w --preserveWatchOutput"
34
34
  },
35
35
  "dependencies": {
36
- "@celljs/core": "4.29.0",
37
- "@celljs/react": "4.29.0",
38
- "@celljs/ta-client": "4.29.0",
39
- "@celljs/ta-protocol": "4.29.0",
40
- "@celljs/ta-relay": "4.29.0",
41
- "@celljs/widget": "4.29.0",
36
+ "@celljs/core": "4.30.0",
37
+ "@celljs/react": "4.30.0",
38
+ "@celljs/ta-client": "4.30.0",
39
+ "@celljs/ta-protocol": "4.30.0",
40
+ "@celljs/ta-relay": "4.30.0",
41
+ "@celljs/widget": "4.30.0",
42
42
  "@types/three": "^0.187.0",
43
43
  "@xterm/addon-fit": "^0.11.0",
44
44
  "@xterm/addon-unicode11": "^0.9.0",