@celljs/ta-web 4.9.0 → 4.9.1

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 (127) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/assistant/assistant-extension.js +13 -5
  4. package/esm/browser/assistant/assistant-task-source.d.ts +2 -0
  5. package/esm/browser/assistant/assistant-task-source.js +2 -0
  6. package/esm/browser/assistant/assistant-task-util.d.ts +6 -0
  7. package/esm/browser/assistant/assistant-task-util.js +8 -0
  8. package/esm/browser/assistant/assistant-tasks.js +3 -2
  9. package/esm/browser/assistant/assistant.d.ts +20 -0
  10. package/esm/browser/assistant/assistant.js +45 -1
  11. package/esm/browser/assistant/task-views.d.ts +40 -6
  12. package/esm/browser/assistant/task-views.js +73 -21
  13. package/esm/browser/avatar/dino-avatar.d.ts +3 -4
  14. package/esm/browser/avatar/dino-avatar.js +4 -178
  15. package/esm/browser/avatar/dino-face.d.ts +19 -0
  16. package/esm/browser/avatar/dino-face.js +142 -0
  17. package/esm/browser/avatar/dino-geometry.d.ts +11 -0
  18. package/esm/browser/avatar/dino-geometry.js +38 -0
  19. package/esm/browser/avatar/dino-kinds.d.ts +15 -0
  20. package/esm/browser/avatar/dino-kinds.js +544 -0
  21. package/esm/browser/avatar/dino-motion.js +1 -1
  22. package/esm/browser/avatar/dino-shape.d.ts +80 -0
  23. package/esm/browser/avatar/dino-shape.js +113 -0
  24. package/esm/browser/avatar/dino-species.d.ts +1 -61
  25. package/esm/browser/avatar/dino-species.js +2 -653
  26. package/esm/browser/components/access-view.js +1 -1
  27. package/esm/browser/components/account-menu.js +1 -1
  28. package/esm/browser/components/app-shell-hooks.d.ts +47 -0
  29. package/esm/browser/components/app-shell-hooks.js +165 -0
  30. package/esm/browser/components/app-view.js +6 -151
  31. package/esm/browser/components/auth-view.js +1 -1
  32. package/esm/browser/components/composer.js +17 -10
  33. package/esm/browser/components/dino.js +1 -1
  34. package/esm/browser/components/folder-picker.js +4 -1
  35. package/esm/browser/components/host-view.d.ts +1 -1
  36. package/esm/browser/components/host-view.js +1 -1
  37. package/esm/browser/components/select-bar.d.ts +9 -0
  38. package/esm/browser/components/select-bar.js +24 -0
  39. package/esm/browser/components/settings-choices.d.ts +35 -0
  40. package/esm/browser/components/settings-choices.js +117 -0
  41. package/esm/browser/components/settings-parts.d.ts +21 -0
  42. package/esm/browser/components/settings-parts.js +300 -0
  43. package/esm/browser/components/settings-view.d.ts +0 -6
  44. package/esm/browser/components/settings-view.js +4 -406
  45. package/esm/browser/components/workbench-view.js +1 -1
  46. package/esm/browser/extension/icons.js +2 -1
  47. package/esm/browser/extension/web-extension-api.d.ts +38 -1
  48. package/esm/browser/extension/web-extensions.js +6 -1
  49. package/esm/browser/extension/web-tasks.d.ts +9 -1
  50. package/esm/browser/extension/web-tasks.js +24 -0
  51. package/esm/browser/hooks.d.ts +3 -1
  52. package/esm/browser/hooks.js +8 -0
  53. package/esm/browser/i18n/locales.d.ts +6 -1
  54. package/esm/browser/i18n/messages.d.ts +5 -0
  55. package/esm/browser/i18n/messages.js +10 -0
  56. package/esm/browser/style/device.js +16 -0
  57. package/esm/browser/style/shell.d.ts +1 -1
  58. package/esm/browser/style/shell.js +1 -0
  59. package/esm/browser/style/tasks.d.ts +1 -1
  60. package/esm/browser/style/tasks.js +2 -0
  61. package/esm/browser/workbench-util.d.ts +61 -0
  62. package/esm/browser/workbench-util.js +138 -0
  63. package/esm/browser/workbench.d.ts +1 -37
  64. package/esm/browser/workbench.js +2 -136
  65. package/lib/browser/assistant/assistant-extension.js +13 -5
  66. package/lib/browser/assistant/assistant-task-source.d.ts +2 -0
  67. package/lib/browser/assistant/assistant-task-source.js +2 -0
  68. package/lib/browser/assistant/assistant-task-util.d.ts +6 -0
  69. package/lib/browser/assistant/assistant-task-util.js +8 -0
  70. package/lib/browser/assistant/assistant-tasks.js +2 -1
  71. package/lib/browser/assistant/assistant.d.ts +20 -0
  72. package/lib/browser/assistant/assistant.js +45 -1
  73. package/lib/browser/assistant/task-views.d.ts +40 -6
  74. package/lib/browser/assistant/task-views.js +74 -21
  75. package/lib/browser/avatar/dino-avatar.d.ts +3 -4
  76. package/lib/browser/avatar/dino-avatar.js +27 -202
  77. package/lib/browser/avatar/dino-face.d.ts +20 -0
  78. package/lib/browser/avatar/dino-face.js +148 -0
  79. package/lib/browser/avatar/dino-geometry.d.ts +12 -0
  80. package/lib/browser/avatar/dino-geometry.js +47 -0
  81. package/lib/browser/avatar/dino-kinds.d.ts +16 -0
  82. package/lib/browser/avatar/dino-kinds.js +547 -0
  83. package/lib/browser/avatar/dino-motion.js +2 -2
  84. package/lib/browser/avatar/dino-shape.d.ts +81 -0
  85. package/lib/browser/avatar/dino-shape.js +126 -0
  86. package/lib/browser/avatar/dino-species.d.ts +1 -61
  87. package/lib/browser/avatar/dino-species.js +34 -687
  88. package/lib/browser/components/access-view.js +2 -2
  89. package/lib/browser/components/account-menu.js +2 -2
  90. package/lib/browser/components/app-shell-hooks.d.ts +48 -0
  91. package/lib/browser/components/app-shell-hooks.js +207 -0
  92. package/lib/browser/components/app-view.js +16 -161
  93. package/lib/browser/components/auth-view.js +3 -3
  94. package/lib/browser/components/composer.js +17 -10
  95. package/lib/browser/components/dino.js +3 -3
  96. package/lib/browser/components/folder-picker.js +4 -1
  97. package/lib/browser/components/host-view.d.ts +1 -1
  98. package/lib/browser/components/host-view.js +5 -5
  99. package/lib/browser/components/select-bar.d.ts +10 -0
  100. package/lib/browser/components/select-bar.js +61 -0
  101. package/lib/browser/components/settings-choices.d.ts +36 -0
  102. package/lib/browser/components/settings-choices.js +156 -0
  103. package/lib/browser/components/settings-parts.d.ts +22 -0
  104. package/lib/browser/components/settings-parts.js +336 -0
  105. package/lib/browser/components/settings-view.d.ts +0 -6
  106. package/lib/browser/components/settings-view.js +2 -405
  107. package/lib/browser/components/workbench-view.js +3 -3
  108. package/lib/browser/extension/icons.js +1 -0
  109. package/lib/browser/extension/web-extension-api.d.ts +38 -1
  110. package/lib/browser/extension/web-extensions.js +5 -0
  111. package/lib/browser/extension/web-tasks.d.ts +9 -1
  112. package/lib/browser/extension/web-tasks.js +24 -0
  113. package/lib/browser/hooks.d.ts +3 -1
  114. package/lib/browser/hooks.js +9 -0
  115. package/lib/browser/i18n/locales.d.ts +6 -1
  116. package/lib/browser/i18n/messages.d.ts +5 -0
  117. package/lib/browser/i18n/messages.js +10 -0
  118. package/lib/browser/style/device.js +16 -0
  119. package/lib/browser/style/shell.d.ts +1 -1
  120. package/lib/browser/style/shell.js +1 -0
  121. package/lib/browser/style/tasks.d.ts +1 -1
  122. package/lib/browser/style/tasks.js +2 -0
  123. package/lib/browser/workbench-util.d.ts +62 -0
  124. package/lib/browser/workbench-util.js +144 -0
  125. package/lib/browser/workbench.d.ts +1 -37
  126. package/lib/browser/workbench.js +24 -159
  127. package/package.json +7 -7
@@ -0,0 +1,47 @@
1
+ import type { WebViewEntry } from '../extension/web-extension-protocol.js';
2
+ import type { Theme } from '../settings/settings-protocol.js';
3
+ import { type StateSpec } from '../state/state-protocol.js';
4
+ import type { PaneSpec } from '../util/layout.js';
5
+ /**
6
+ * What the sidebar shows in this tab: `` for the chats, else the id of a sidebar view. Until the user picks
7
+ * a tab, the first sidebar view of web extensions (the agents), or the chats if there is none.
8
+ */
9
+ export declare const FIRST_SIDE = "*";
10
+ /** A page of ta's own in place of the conversation: Discover (a tab of a phone, a page of the rail), Me (a tab of a phone). */
11
+ export type TabPage = 'discover' | 'me';
12
+ /** The user put off signing in to a model, in this tab: the page shows the app until the tab is reopened. */
13
+ export declare const LOGIN_LATER: StateSpec<boolean>;
14
+ export declare const SIDE: StateSpec<string>;
15
+ export declare const SIDEBAR: PaneSpec;
16
+ export declare const EDITOR: PaneSpec;
17
+ /** The width of the navigation rail, in style.ts. */
18
+ export declare const RAIL = 56;
19
+ /** The cards of web extensions, as a tool of the workbench and its tab. */
20
+ export declare const CARDS_ID = "ta/cards";
21
+ /**
22
+ * Whether the right of the page (editors and cards) shows; on narrow screens it starts hidden. The last of
23
+ * them hides it where it lies over the conversation, the user's choice kept.
24
+ */
25
+ export declare function useRight(): [boolean, () => void, () => void, () => void];
26
+ /** Cmd/Ctrl+B shows or hides the sidebar and Cmd/Ctrl+, opens the settings, as in an IDE. */
27
+ export declare function useKeys(toggle: () => void, openSettings: () => void): void;
28
+ /**
29
+ * The installed app with its title bar hidden draws the bar itself (see .ta-titlebar), but the browser
30
+ * paints the corners of the window's buttons with theme-color: the traffic lights at the left over the
31
+ * side columns, its own buttons at the right. So the bar is the colour of the side columns throughout, the
32
+ * conversation below it too. Otherwise the whole title bar has the conversation's colour, as the sign-in page.
33
+ */
34
+ export declare function useTitlebarColor(signedIn: boolean, theme: Theme): void;
35
+ /** Reads the open sessions and the web extensions again while the tab is visible: other clients change them too. */
36
+ export declare function useRefresh(online: boolean): void;
37
+ /** The drawer of a compact layout comes out from the left edge under the finger, and goes the same way. */
38
+ export declare function useDrawerSwipe(enabled: boolean, open: boolean, setOpen: (open: boolean) => void): void;
39
+ /**
40
+ * The cards of web extensions as a tool of the workbench and its tab: the tab opens when the first card
41
+ * comes while the workbench `shown` has nothing else open, and goes with the last card.
42
+ */
43
+ export declare function useWorkbenchCards(shown: boolean): {
44
+ hasCards: boolean;
45
+ openCards(): void;
46
+ cardsTool: WebViewEntry;
47
+ };
@@ -0,0 +1,165 @@
1
+ import { LayoutGrid } from 'lucide-react';
2
+ import * as React from 'react';
3
+ import { useDevice } from '../device/device.js';
4
+ import { useSheetSwipe } from '../device/sheet-swipe.js';
5
+ import { usePersisted, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
6
+ import { message } from '../i18n/messages.js';
7
+ import { THEME_COLORS } from '../settings/settings.js';
8
+ import { StateUtil } from '../state/state-protocol.js';
9
+ import { WorkbenchCards } from './editor-area.js';
10
+ /**
11
+ * What the sidebar shows in this tab: `` for the chats, else the id of a sidebar view. Until the user picks
12
+ * a tab, the first sidebar view of web extensions (the agents), or the chats if there is none.
13
+ */
14
+ export const FIRST_SIDE = '*';
15
+ /** The user put off signing in to a model, in this tab: the page shows the app until the tab is reopened. */
16
+ export const LOGIN_LATER = { key: 'login.later', tier: 'tab', initial: false, parse: StateUtil.boolean };
17
+ export const SIDE = { key: 'side', tier: 'tab', initial: FIRST_SIDE, parse: StateUtil.string };
18
+ export const SIDEBAR = { key: 'sidebar', initial: 300, min: 200, max: 520 };
19
+ export const EDITOR = { key: 'editor', initial: 480, min: 320, max: 1200 };
20
+ /** The width of the navigation rail, in style.ts. */
21
+ export const RAIL = 56;
22
+ /** Whether the workbench on the right shows, in this browser, whose screen decides. */
23
+ const RIGHT = { key: 'panel', tier: 'device', initial: true, parse: StateUtil.boolean };
24
+ /** Sessions change with other clients too; while the tab is visible they are read again now and then. */
25
+ const REFRESH_MS = 5000;
26
+ /** The cards of web extensions, as a tool of the workbench and its tab. */
27
+ export const CARDS_ID = 'ta/cards';
28
+ const CARDS_TAB_ID = `view:${CARDS_ID}`;
29
+ function cardsTab(title) {
30
+ return { id: CARDS_TAB_ID, extension: 'ta', title, icon: LayoutGrid, render: WorkbenchCards };
31
+ }
32
+ /**
33
+ * Whether the right of the page (editors and cards) shows; on narrow screens it starts hidden. The last of
34
+ * them hides it where it lies over the conversation, the user's choice kept.
35
+ */
36
+ export function useRight() {
37
+ const [kept, keep] = usePersisted(RIGHT);
38
+ // Where it does not fit beside the conversation it opens over it: only when asked, in this page.
39
+ const inline = useDevice(device => device.layout) === 'expanded';
40
+ const [asked, setAsked] = React.useState(false);
41
+ const open = kept && (inline || asked);
42
+ const set = React.useCallback((next) => {
43
+ setAsked(next);
44
+ keep(next);
45
+ }, [keep]);
46
+ const toggle = React.useCallback(() => set(!open), [set, open]);
47
+ const reveal = React.useCallback(() => set(true), [set]);
48
+ const uncover = React.useCallback(() => setAsked(false), []);
49
+ // `set` is stable, so `reveal` is too: effects may depend on it.
50
+ return [open, toggle, reveal, uncover];
51
+ }
52
+ /** Cmd/Ctrl+B shows or hides the sidebar and Cmd/Ctrl+, opens the settings, as in an IDE. */
53
+ export function useKeys(toggle, openSettings) {
54
+ React.useEffect(() => {
55
+ const onKey = (event) => {
56
+ if (!(event.metaKey || event.ctrlKey) || event.shiftKey || event.altKey) {
57
+ return;
58
+ }
59
+ const key = event.key.toLowerCase();
60
+ if (key === 'b') {
61
+ event.preventDefault();
62
+ toggle();
63
+ }
64
+ else if (key === ',') {
65
+ event.preventDefault();
66
+ openSettings();
67
+ }
68
+ };
69
+ window.addEventListener('keydown', onKey);
70
+ return () => window.removeEventListener('keydown', onKey);
71
+ }, [toggle, openSettings]);
72
+ }
73
+ /**
74
+ * The installed app with its title bar hidden draws the bar itself (see .ta-titlebar), but the browser
75
+ * paints the corners of the window's buttons with theme-color: the traffic lights at the left over the
76
+ * side columns, its own buttons at the right. So the bar is the colour of the side columns throughout, the
77
+ * conversation below it too. Otherwise the whole title bar has the conversation's colour, as the sign-in page.
78
+ */
79
+ export function useTitlebarColor(signedIn, theme) {
80
+ React.useEffect(() => {
81
+ const overlay = matchMedia('(display-mode: window-controls-overlay)');
82
+ const apply = () => {
83
+ const meta = document.querySelector('meta[name="theme-color"]');
84
+ if (meta) {
85
+ meta.content = THEME_COLORS[theme][overlay.matches && signedIn ? 'side' : 'main'];
86
+ }
87
+ };
88
+ apply();
89
+ overlay.addEventListener('change', apply);
90
+ return () => overlay.removeEventListener('change', apply);
91
+ }, [signedIn, theme]);
92
+ }
93
+ /** Reads the open sessions and the web extensions again while the tab is visible: other clients change them too. */
94
+ export function useRefresh(online) {
95
+ const [, workbench] = useWorkbench();
96
+ const [, extensions] = useWebExtensions();
97
+ React.useEffect(() => {
98
+ if (!online) {
99
+ return;
100
+ }
101
+ const sessions = () => document.visibilityState === 'visible' && workbench.refresh().catch(() => undefined);
102
+ const shown = () => {
103
+ sessions();
104
+ if (document.visibilityState === 'visible') {
105
+ extensions.refresh().catch(() => undefined);
106
+ }
107
+ };
108
+ const timer = setInterval(sessions, REFRESH_MS);
109
+ document.addEventListener('visibilitychange', shown);
110
+ return () => {
111
+ clearInterval(timer);
112
+ document.removeEventListener('visibilitychange', shown);
113
+ };
114
+ }, [online, workbench, extensions]);
115
+ }
116
+ /** The drawer of a compact layout comes out from the left edge under the finger, and goes the same way. */
117
+ export function useDrawerSwipe(enabled, open, setOpen) {
118
+ useSheetSwipe({
119
+ enabled,
120
+ open,
121
+ setOpen,
122
+ side: 'left',
123
+ opensFrom: 'edge',
124
+ closesFrom: 'anywhere',
125
+ sheet: '.ta-nav',
126
+ scrim: '.ta-scrim',
127
+ settleMs: 240,
128
+ });
129
+ }
130
+ /**
131
+ * The cards of web extensions as a tool of the workbench and its tab: the tab opens when the first card
132
+ * comes while the workbench `shown` has nothing else open, and goes with the last card.
133
+ */
134
+ export function useWorkbenchCards(shown) {
135
+ const [extensions, host] = useWebExtensions();
136
+ const [, settingsStore] = useSettings();
137
+ // The cards of web extensions are a tab of the workbench: it opens when the first card comes, if nothing else is open there, and goes with the last.
138
+ const hasCards = extensions.widgets.some(widget => widget.placement === 'panel');
139
+ const cardsOpen = extensions.editors.some(candidate => candidate.id === CARDS_TAB_ID);
140
+ const openCards = React.useCallback(() => host.open(cardsTab(() => message(settingsStore.state.language, 'ta.workbench.cards'))), [host, settingsStore]);
141
+ const quiet = extensions.editors.length === 0 && shown;
142
+ // Only when cards come: not when the user closes their tab.
143
+ // biome-ignore lint/correctness/useExhaustiveDependencies: follows whether there are cards
144
+ React.useEffect(() => {
145
+ if (hasCards && !cardsOpen && quiet) {
146
+ openCards();
147
+ }
148
+ }, [hasCards]);
149
+ React.useEffect(() => {
150
+ if (!hasCards && cardsOpen) {
151
+ void host.closeEditor(CARDS_TAB_ID);
152
+ }
153
+ }, [hasCards, cardsOpen, host]);
154
+ const cardsTool = {
155
+ id: CARDS_ID,
156
+ extension: 'ta',
157
+ title: () => message(settingsStore.state.language, 'ta.workbench.cards'),
158
+ component: WorkbenchCards,
159
+ icon: LayoutGrid,
160
+ location: 'panel',
161
+ order: 0,
162
+ };
163
+ return { hasCards, openCards, cardsTool };
164
+ }
165
+ //# sourceMappingURL=app-shell-hooks.js.map
@@ -1,26 +1,23 @@
1
- import { ChevronLeft, LayoutGrid } from 'lucide-react';
1
+ import { ChevronLeft } from 'lucide-react';
2
2
  import * as React from 'react';
3
3
  import { AssistantChatList } from '../assistant/assistant-chat-list.js';
4
4
  import { REMOVED_CHATS } from '../chat/chat-protocol.js';
5
5
  import { ChatView, useChat } from '../chat/chat-view.js';
6
6
  import { useDevice } from '../device/device.js';
7
7
  import { LaunchScreenUtil } from '../device/launch-screen.js';
8
- import { useSheetSwipe } from '../device/sheet-swipe.js';
9
8
  import { MessageRenderers, SessionAvatars } from '../extension/extension-view.js';
10
9
  import { useOpenLink, usePersisted, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
11
- import { message } from '../i18n/messages.js';
12
10
  import { useT } from '../i18n/use-t.js';
13
11
  import { SIGN_IN_EVENT } from '../notices/notices.js';
14
- import { THEME_COLORS } from '../settings/settings.js';
15
- import { StateUtil } from '../state/state-protocol.js';
16
12
  import { PageView, Rail, SidebarView, useNavigation } from './app-nav.js';
13
+ import { CARDS_ID, EDITOR, FIRST_SIDE, LOGIN_LATER, RAIL, SIDE, SIDEBAR, useDrawerSwipe, useKeys, useRefresh, useRight, useTitlebarColor, useWorkbenchCards, } from './app-shell-hooks.js';
17
14
  import { AuthUtil, LoginPage, useAuthProviders } from './auth-view.js';
18
15
  import { BoardSurface, useSurfaces } from './board.js';
19
16
  import { BY_DIRECTORY, FOLDED } from './chat-list.js';
20
17
  import { ConnectionBar } from './connection-bar.js';
21
18
  import { DinoLookHost, DinoLookProvider } from './dino-look.js';
22
19
  import { DiscoverView } from './discover-view.js';
23
- import { EditorArea, WorkbenchCards } from './editor-area.js';
20
+ import { EditorArea } from './editor-area.js';
24
21
  import { EnvironmentPage } from './environment-view.js';
25
22
  import { SwitchingVeil } from './host-view.js';
26
23
  import { IconButton, SidebarLeft } from './icon.js';
@@ -41,112 +38,6 @@ import { paneStyle, Sash, usePane } from './split-pane.js';
41
38
  import { SurfaceFlyout } from './surface-flyout.js';
42
39
  import { WorkbenchToggleContext } from './workbench-toggle.js';
43
40
  import { SignIn, useDocument } from './workbench-view.js';
44
- /**
45
- * What the sidebar shows in this tab: `` for the chats, else the id of a sidebar view. Until the user picks
46
- * a tab, the first sidebar view of web extensions (the agents), or the chats if there is none.
47
- */
48
- const FIRST_SIDE = '*';
49
- /** The user put off signing in to a model, in this tab: the page shows the app until the tab is reopened. */
50
- const LOGIN_LATER = { key: 'login.later', tier: 'tab', initial: false, parse: StateUtil.boolean };
51
- const SIDE = { key: 'side', tier: 'tab', initial: FIRST_SIDE, parse: StateUtil.string };
52
- /** Whether the workbench on the right shows, in this browser, whose screen decides. */
53
- const RIGHT = { key: 'panel', tier: 'device', initial: true, parse: StateUtil.boolean };
54
- /** Sessions change with other clients too; while the tab is visible they are read again now and then. */
55
- const REFRESH_MS = 5000;
56
- /** The cards of web extensions, as a tool of the workbench and its tab. */
57
- const CARDS_ID = 'ta/cards';
58
- const CARDS_TAB_ID = `view:${CARDS_ID}`;
59
- function cardsTab(title) {
60
- return { id: CARDS_TAB_ID, extension: 'ta', title, icon: LayoutGrid, render: WorkbenchCards };
61
- }
62
- const SIDEBAR = { key: 'sidebar', initial: 300, min: 200, max: 520 };
63
- const EDITOR = { key: 'editor', initial: 480, min: 320, max: 1200 };
64
- /** The width of the navigation rail, in style.ts. */
65
- const RAIL = 56;
66
- /**
67
- * Whether the right of the page (editors and cards) shows; on narrow screens it starts hidden. The last of
68
- * them hides it where it lies over the conversation, the user's choice kept.
69
- */
70
- function useRight() {
71
- const [kept, keep] = usePersisted(RIGHT);
72
- // Where it does not fit beside the conversation it opens over it: only when asked, in this page.
73
- const inline = useDevice(device => device.layout) === 'expanded';
74
- const [asked, setAsked] = React.useState(false);
75
- const open = kept && (inline || asked);
76
- const set = React.useCallback((next) => {
77
- setAsked(next);
78
- keep(next);
79
- }, [keep]);
80
- const toggle = React.useCallback(() => set(!open), [set, open]);
81
- const reveal = React.useCallback(() => set(true), [set]);
82
- const uncover = React.useCallback(() => setAsked(false), []);
83
- // `set` is stable, so `reveal` is too: effects may depend on it.
84
- return [open, toggle, reveal, uncover];
85
- }
86
- /** Cmd/Ctrl+B shows or hides the sidebar and Cmd/Ctrl+, opens the settings, as in an IDE. */
87
- function useKeys(toggle, openSettings) {
88
- React.useEffect(() => {
89
- const onKey = (event) => {
90
- if (!(event.metaKey || event.ctrlKey) || event.shiftKey || event.altKey) {
91
- return;
92
- }
93
- const key = event.key.toLowerCase();
94
- if (key === 'b') {
95
- event.preventDefault();
96
- toggle();
97
- }
98
- else if (key === ',') {
99
- event.preventDefault();
100
- openSettings();
101
- }
102
- };
103
- window.addEventListener('keydown', onKey);
104
- return () => window.removeEventListener('keydown', onKey);
105
- }, [toggle, openSettings]);
106
- }
107
- /** Reads the open sessions and the web extensions again while the tab is visible: other clients change them too. */
108
- /**
109
- * The installed app with its title bar hidden draws the bar itself (see .ta-titlebar), but the browser
110
- * paints the corners of the window's buttons with theme-color: the traffic lights at the left over the
111
- * side columns, its own buttons at the right. So the bar is the colour of the side columns throughout, the
112
- * conversation below it too. Otherwise the whole title bar has the conversation's colour, as the sign-in page.
113
- */
114
- function useTitlebarColor(signedIn, theme) {
115
- React.useEffect(() => {
116
- const overlay = matchMedia('(display-mode: window-controls-overlay)');
117
- const apply = () => {
118
- const meta = document.querySelector('meta[name="theme-color"]');
119
- if (meta) {
120
- meta.content = THEME_COLORS[theme][overlay.matches && signedIn ? 'side' : 'main'];
121
- }
122
- };
123
- apply();
124
- overlay.addEventListener('change', apply);
125
- return () => overlay.removeEventListener('change', apply);
126
- }, [signedIn, theme]);
127
- }
128
- function useRefresh(online) {
129
- const [, workbench] = useWorkbench();
130
- const [, extensions] = useWebExtensions();
131
- React.useEffect(() => {
132
- if (!online) {
133
- return;
134
- }
135
- const sessions = () => document.visibilityState === 'visible' && workbench.refresh().catch(() => undefined);
136
- const shown = () => {
137
- sessions();
138
- if (document.visibilityState === 'visible') {
139
- extensions.refresh().catch(() => undefined);
140
- }
141
- };
142
- const timer = setInterval(sessions, REFRESH_MS);
143
- document.addEventListener('visibilitychange', shown);
144
- return () => {
145
- clearInterval(timer);
146
- document.removeEventListener('visibilitychange', shown);
147
- };
148
- }, [online, workbench, extensions]);
149
- }
150
41
  /**
151
42
  * ta on the web, laid out as an IDE: the navigation, a sidebar (the chats, or a sidebar view of a web
152
43
  * extension), the conversation or a page, the workbench (the tools of web extensions and the tabs they
@@ -202,7 +93,7 @@ function AppShell() {
202
93
  const settingsShown = settings !== undefined && (!phone || screenOpen);
203
94
  const [rightOpen, toggleRight, revealRight, uncoverRight] = useRight();
204
95
  const [maximized, setMaximized] = React.useState(false);
205
- const [{ theme, language }, settingsStore] = useSettings();
96
+ const [{ theme, language }] = useSettings();
206
97
  const sidebar = usePane(SIDEBAR);
207
98
  const editor = usePane(EDITOR);
208
99
  const online = workbench.status === 'online';
@@ -288,32 +179,7 @@ function AppShell() {
288
179
  setSideId('');
289
180
  }
290
181
  }, [shownSession]);
291
- // The cards of web extensions are a tab of the workbench: it opens when the first card comes, if nothing else is open there, and goes with the last.
292
- const hasCards = extensions.widgets.some(widget => widget.placement === 'panel');
293
- const cardsOpen = extensions.editors.some(candidate => candidate.id === CARDS_TAB_ID);
294
- const openCards = React.useCallback(() => host.open(cardsTab(() => message(settingsStore.state.language, 'ta.workbench.cards'))), [host, settingsStore]);
295
- const quiet = extensions.editors.length === 0 && rightOpen && !editor.collapsed;
296
- // Only when cards come: not when the user closes their tab.
297
- // biome-ignore lint/correctness/useExhaustiveDependencies: follows whether there are cards
298
- React.useEffect(() => {
299
- if (hasCards && !cardsOpen && quiet) {
300
- openCards();
301
- }
302
- }, [hasCards]);
303
- React.useEffect(() => {
304
- if (!hasCards && cardsOpen) {
305
- void host.closeEditor(CARDS_TAB_ID);
306
- }
307
- }, [hasCards, cardsOpen, host]);
308
- const cardsTool = {
309
- id: CARDS_ID,
310
- extension: 'ta',
311
- title: () => message(settingsStore.state.language, 'ta.workbench.cards'),
312
- component: WorkbenchCards,
313
- icon: LayoutGrid,
314
- location: 'panel',
315
- order: 0,
316
- };
182
+ const { hasCards, openCards, cardsTool } = useWorkbenchCards(rightOpen && !editor.collapsed);
317
183
  const view = extensions.views.find(candidate => candidate.id === page && candidate.location === 'page');
318
184
  const sideViews = SideListUtil.sidebarViews(extensions.views);
319
185
  const sideView = sideId === FIRST_SIDE ? sideViews[0] : sideViews.find(candidate => candidate.id === sideId);
@@ -340,18 +206,7 @@ function AppShell() {
340
206
  }
341
207
  tabsBefore.current = tabCount;
342
208
  }, [tabCount, showEditors, toggleRight, layout]);
343
- // The drawer of a compact layout comes out from the left edge under the finger, and goes the same way.
344
- useSheetSwipe({
345
- enabled: touch && layout === 'compact' && !phone && !showEditors,
346
- open: navOpen,
347
- setOpen: setNavOpen,
348
- side: 'left',
349
- opensFrom: 'edge',
350
- closesFrom: 'anywhere',
351
- sheet: '.ta-nav',
352
- scrim: '.ta-scrim',
353
- settleMs: 240,
354
- });
209
+ useDrawerSwipe(touch && layout === 'compact' && !phone && !showEditors, navOpen, setNavOpen);
355
210
  // The pages of the rail: in the navigation, or under Discover.
356
211
  const navigation = useNavigation(extensions.views);
357
212
  // Without a sidebar view that lists the double, its page is the first tab: it opens there, once the views are in.
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { useNotices, useWorkbench } from '../hooks.js';
5
5
  import { useT } from '../i18n/use-t.js';
6
- import { WorkbenchUtil } from '../workbench.js';
6
+ import { WorkbenchUtil } from '../workbench-util.js';
7
7
  import { AuthPicture } from './auth-pictures.js';
8
8
  import { Callout } from './callout.js';
9
9
  import { EmptyState } from './empty-state.js';
@@ -1,5 +1,6 @@
1
1
  import { Clock3, CornerDownRight, Undo2, X } from 'lucide-react';
2
2
  import * as React from 'react';
3
+ import { AssistantTaskUtil } from '../assistant/assistant-task-util.js';
3
4
  import { useDevice } from '../device/device.js';
4
5
  import { useT } from '../i18n/use-t.js';
5
6
  import { ComposerUtil } from '../util/composer.js';
@@ -8,6 +9,8 @@ import { Icon } from './icon.js';
8
9
  const FILE_LIMIT = 20;
9
10
  const FILE_DELAY_MS = 120;
10
11
  const EMPTY_QUEUE = { steering: [], followUp: [] };
12
+ /** What the user said of what waited: not the notes of the tasks that ended, which they did not write. */
13
+ const said = (texts) => texts.filter(text => !AssistantTaskUtil.noteOf(text));
11
14
  /** The files for an `@` being typed; a server without file search answers with an error, and the menu says so. */
12
15
  function useFiles(workspace, cwd, query) {
13
16
  const t = useT();
@@ -84,7 +87,7 @@ export const Composer = React.forwardRef(function Composer(props, ref) {
84
87
  server.clearQueue(store.sessionId).then(taken => {
85
88
  var _a;
86
89
  setQueue(EMPTY_QUEUE);
87
- (_a = box.current) === null || _a === void 0 ? void 0 : _a.setText(ComposerUtil.restore(taken, box.current.text()));
90
+ (_a = box.current) === null || _a === void 0 ? void 0 : _a.setText(ComposerUtil.restore({ steering: said(taken.steering), followUp: said(taken.followUp) }, box.current.text()));
88
91
  }, onError);
89
92
  };
90
93
  /** Takes one message out; into the box when `back`. */
@@ -107,14 +110,18 @@ export const Composer = React.forwardRef(function Composer(props, ref) {
107
110
  React.createElement("div", { className: "ta-queue-head" },
108
111
  React.createElement("span", null, t('ta.composer.queue.count', { count: waiting.length })),
109
112
  React.createElement("button", { type: "button", className: "ta-queue-all", onClick: takeBack, title: t('ta.composer.queue.takeBackTitle') }, t('ta.composer.queue.takeBackAll'))),
110
- waiting.map(entry => (React.createElement("div", { key: `${entry.kind}-${entry.index}-${entry.text}`, className: "ta-queue-row" },
111
- React.createElement("span", { className: "ta-queue-kind", title: t(entry.kind === 'steering' ? 'ta.composer.queue.steering' : 'ta.composer.queue.followUp') },
112
- React.createElement(Icon, { icon: entry.kind === 'steering' ? CornerDownRight : Clock3, size: 13 })),
113
- React.createElement("span", { className: "ta-ellipsis ta-queue-text", title: entry.text }, entry.text),
114
- React.createElement("span", { className: "ta-queue-actions" },
115
- React.createElement("button", { type: "button", className: "ta-icon-button", onClick: () => remove(entry, true), title: t('ta.composer.queue.editTitle'), "aria-label": t('ta.composer.queue.editTitle') },
116
- React.createElement(Icon, { icon: Undo2, size: 13 })),
117
- React.createElement("button", { type: "button", className: "ta-icon-button", onClick: () => remove(entry, false), title: t('ta.composer.queue.remove'), "aria-label": t('ta.composer.queue.remove') },
118
- React.createElement(Icon, { icon: X, size: 13 }))))))))) }));
113
+ waiting.map(entry => {
114
+ const note = AssistantTaskUtil.noteOf(entry.text);
115
+ const text = note ? t('ta.task.ended', { title: note.title, status: t(`ta.task.${note.status}`) }) : entry.text;
116
+ return (React.createElement("div", { key: `${entry.kind}-${entry.index}-${entry.text}`, className: "ta-queue-row" },
117
+ React.createElement("span", { className: "ta-queue-kind", title: t(entry.kind === 'steering' ? 'ta.composer.queue.steering' : 'ta.composer.queue.followUp') },
118
+ React.createElement(Icon, { icon: entry.kind === 'steering' ? CornerDownRight : Clock3, size: 13 })),
119
+ React.createElement("span", { className: "ta-ellipsis ta-queue-text", title: text }, text),
120
+ React.createElement("span", { className: "ta-queue-actions" },
121
+ !note && (React.createElement("button", { type: "button", className: "ta-icon-button", onClick: () => remove(entry, true), title: t('ta.composer.queue.editTitle'), "aria-label": t('ta.composer.queue.editTitle') },
122
+ React.createElement(Icon, { icon: Undo2, size: 13 }))),
123
+ React.createElement("button", { type: "button", className: "ta-icon-button", onClick: () => remove(entry, false), title: t('ta.composer.queue.remove'), "aria-label": t('ta.composer.queue.remove') },
124
+ React.createElement(Icon, { icon: X, size: 13 })))));
125
+ })))) }));
119
126
  });
120
127
  //# sourceMappingURL=composer.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { LOGO_PATH } from '../avatar/dino-species.js';
2
+ import { LOGO_PATH } from '../avatar/dino-shape.js';
3
3
  export const DINO_GREEN = '#10B981';
4
4
  /** Cell's dinosaur as assets/logo.svg draws it: the mark of ta. */
5
5
  export function Dino({ size = 32 }) {
@@ -2,6 +2,7 @@ import { TaLocation } from '@celljs/ta-protocol';
2
2
  import { ChevronDown, ChevronRight, CornerLeftUp, Folder, Monitor, Plus, Server, X } from 'lucide-react';
3
3
  import * as React from 'react';
4
4
  import { createPortal } from 'react-dom';
5
+ import { useDevice } from '../device/device.js';
5
6
  import { useT } from '../i18n/use-t.js';
6
7
  import { MessageUtil } from '../util/message.js';
7
8
  import { EmptyState } from './empty-state.js';
@@ -113,6 +114,8 @@ function Machines({ host, hosts, onPick }) {
113
114
  export function FolderPicker({ list, initial, onPick, onClose, remote: bench }) {
114
115
  var _a;
115
116
  const t = useT();
117
+ // On a touch screen the keyboard would cover the folders: the user goes folder by folder there.
118
+ const touch = useDevice(device => device.touch);
116
119
  const [path, setPath] = React.useState(initial);
117
120
  const [input, setInput] = React.useState(TaLocation.path(initial));
118
121
  const [folders, setFolders] = React.useState();
@@ -186,7 +189,7 @@ export function FolderPicker({ list, initial, onPick, onClose, remote: bench })
186
189
  } },
187
190
  React.createElement(IconButton, { icon: CornerLeftUp, label: t('ta.folder.up'), disabled: !up, onClick: () => up && go(up) }),
188
191
  React.createElement("label", { className: "ta-field ta-field-small" },
189
- React.createElement("input", { autoFocus: true, spellCheck: false, value: input, "aria-label": t('ta.folder.path'), title: t('ta.folder.path'), onChange: event => setInput(event.target.value) }))),
192
+ React.createElement("input", { autoFocus: !touch, spellCheck: false, value: input, "aria-label": t('ta.folder.path'), title: t('ta.folder.path'), onChange: event => setInput(event.target.value) }))),
190
193
  React.createElement("ul", { className: "ta-folder-list" },
191
194
  (folders === undefined || (loading && connecting)) && !failed && (React.createElement("li", { className: "ta-folder-note" },
192
195
  React.createElement("span", { className: "ta-spinner" }),
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol.js';
4
4
  /** Adding a computer by its code or link: what the sign-in and the sheet of the computers share. */
5
5
  export declare function useAddHost(): {
6
6
  busy: boolean;
7
- error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOff" | "ta.assistant.speakOn" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.close" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.notDoneHint" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.notSaved" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retrying" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | undefined;
7
+ error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOff" | "ta.assistant.speakOn" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.close" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.notDoneHint" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.notSaved" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retrying" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | undefined;
8
8
  add: (text: string, scanned?: boolean) => Promise<void>;
9
9
  scan: () => Promise<void>;
10
10
  canScan: boolean;