@celljs/ta-web 4.33.0 → 4.35.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 (277) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/apps/app-icon.d.ts +23 -0
  4. package/esm/browser/apps/app-icon.js +98 -0
  5. package/esm/browser/apps/app-settings.d.ts +6 -0
  6. package/esm/browser/apps/app-settings.js +67 -0
  7. package/esm/browser/apps/app-window-util.d.ts +23 -0
  8. package/esm/browser/apps/app-window-util.js +27 -0
  9. package/esm/browser/apps/app-window.d.ts +9 -0
  10. package/esm/browser/apps/app-window.js +90 -0
  11. package/esm/browser/apps/web-apps.d.ts +29 -0
  12. package/esm/browser/apps/web-apps.js +57 -0
  13. package/esm/browser/assistant/assistant-thread.js +3 -1
  14. package/esm/browser/assistant/assistant-view.js +8 -4
  15. package/esm/browser/assistant/call-keeper.d.ts +2 -5
  16. package/esm/browser/assistant/call-keeper.js +7 -11
  17. package/esm/browser/components/access-settings.d.ts +6 -0
  18. package/esm/browser/components/access-settings.js +52 -0
  19. package/esm/browser/components/app-root.d.ts +6 -0
  20. package/esm/browser/components/app-root.js +34 -0
  21. package/esm/browser/components/app-view.d.ts +8 -2
  22. package/esm/browser/components/app-view.js +1 -25
  23. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  24. package/esm/browser/components/context-act.d.ts +4 -0
  25. package/esm/browser/components/context-act.js +8 -0
  26. package/esm/browser/components/context-line.d.ts +19 -0
  27. package/esm/browser/components/context-line.js +71 -0
  28. package/esm/browser/components/host-view.d.ts +1 -1
  29. package/esm/browser/components/message-list.js +12 -6
  30. package/esm/browser/components/message-steps.js +1 -1
  31. package/esm/browser/components/session-settings.d.ts +8 -4
  32. package/esm/browser/components/session-settings.js +10 -5
  33. package/esm/browser/components/session-view.js +12 -8
  34. package/esm/browser/components/settings-more.js +6 -0
  35. package/esm/browser/device/screen-awake.d.ts +16 -0
  36. package/esm/browser/device/screen-awake.js +37 -0
  37. package/esm/browser/device/sheet-swipe.js +4 -0
  38. package/esm/browser/extension/icons.js +2 -1
  39. package/esm/browser/extension/web-access.d.ts +16 -0
  40. package/esm/browser/extension/web-access.js +75 -0
  41. package/esm/browser/extension/web-api-desktop.d.ts +23 -0
  42. package/esm/browser/extension/web-api-spec.d.ts +70 -0
  43. package/esm/browser/extension/web-api-spec.js +223 -0
  44. package/esm/browser/extension/web-extension-api.d.ts +6 -0
  45. package/esm/browser/extension/web-extension-context.js +11 -2
  46. package/esm/browser/extension/web-extension-run.d.ts +6 -1
  47. package/esm/browser/extension/web-extension-run.js +25 -0
  48. package/esm/browser/extension/web-extensions-running.d.ts +18 -1
  49. package/esm/browser/extension/web-extensions-running.js +102 -9
  50. package/esm/browser/extension/web-pages.d.ts +5 -0
  51. package/esm/browser/extension/web-pages.js +3 -0
  52. package/esm/browser/i18n/en/chat.d.ts +16 -2
  53. package/esm/browser/i18n/en/chat.js +16 -2
  54. package/esm/browser/i18n/en/common.d.ts +1 -0
  55. package/esm/browser/i18n/en/common.js +1 -0
  56. package/esm/browser/i18n/en/discover.d.ts +11 -0
  57. package/esm/browser/i18n/en/discover.js +11 -0
  58. package/esm/browser/i18n/en/settings.d.ts +54 -0
  59. package/esm/browser/i18n/en/settings.js +57 -3
  60. package/esm/browser/i18n/en/tools.d.ts +1 -0
  61. package/esm/browser/i18n/en/tools.js +1 -0
  62. package/esm/browser/i18n/ja/chat.js +16 -2
  63. package/esm/browser/i18n/ja/common.js +1 -0
  64. package/esm/browser/i18n/ja/discover.js +11 -0
  65. package/esm/browser/i18n/ja/settings.js +57 -3
  66. package/esm/browser/i18n/ja/tools.js +1 -0
  67. package/esm/browser/i18n/locales.d.ts +84 -5
  68. package/esm/browser/i18n/messages.d.ts +83 -4
  69. package/esm/browser/i18n/zh/chat.js +16 -2
  70. package/esm/browser/i18n/zh/common.js +1 -0
  71. package/esm/browser/i18n/zh/discover.js +11 -0
  72. package/esm/browser/i18n/zh/settings.js +57 -3
  73. package/esm/browser/i18n/zh/tools.js +1 -0
  74. package/esm/browser/i18n/zh-tw/chat.js +16 -2
  75. package/esm/browser/i18n/zh-tw/common.js +1 -0
  76. package/esm/browser/i18n/zh-tw/discover.js +11 -0
  77. package/esm/browser/i18n/zh-tw/settings.js +57 -3
  78. package/esm/browser/i18n/zh-tw/tools.js +1 -0
  79. package/esm/browser/index.d.ts +1 -0
  80. package/esm/browser/index.js +1 -0
  81. package/esm/browser/notices/notices.js +1 -0
  82. package/esm/browser/sandbox/channel/channel.d.ts +56 -0
  83. package/esm/browser/sandbox/channel/channel.js +124 -0
  84. package/esm/browser/sandbox/channel/codec.d.ts +80 -0
  85. package/esm/browser/sandbox/channel/codec.js +251 -0
  86. package/esm/browser/sandbox/hook-host.d.ts +23 -0
  87. package/esm/browser/sandbox/hook-host.js +61 -0
  88. package/esm/browser/sandbox/isolated-host.d.ts +105 -0
  89. package/esm/browser/sandbox/isolated-host.js +395 -0
  90. package/esm/browser/sandbox/remote/remote-copy.d.ts +56 -0
  91. package/esm/browser/sandbox/remote/remote-copy.js +302 -0
  92. package/esm/browser/sandbox/remote/remote-mirror.d.ts +61 -0
  93. package/esm/browser/sandbox/remote/remote-mirror.js +341 -0
  94. package/esm/browser/sandbox/remote/remote-protocol.d.ts +79 -0
  95. package/esm/browser/sandbox/remote/remote-protocol.js +54 -0
  96. package/esm/browser/sandbox/remote/remote-styles.d.ts +10 -0
  97. package/esm/browser/sandbox/remote/remote-styles.js +113 -0
  98. package/esm/browser/sandbox/remote-root.d.ts +11 -0
  99. package/esm/browser/sandbox/remote-root.js +81 -0
  100. package/esm/browser/sandbox/runtime/frame-api.d.ts +28 -0
  101. package/esm/browser/sandbox/runtime/frame-api.js +147 -0
  102. package/esm/browser/sandbox/runtime/frame-features.d.ts +6 -0
  103. package/esm/browser/sandbox/runtime/frame-features.js +50 -0
  104. package/esm/browser/sandbox/runtime/frame-parts.d.ts +36 -0
  105. package/esm/browser/sandbox/runtime/frame-parts.js +69 -0
  106. package/esm/browser/sandbox/runtime/frame-roots.d.ts +26 -0
  107. package/esm/browser/sandbox/runtime/frame-roots.js +76 -0
  108. package/esm/browser/sandbox/runtime/frame-store.d.ts +9 -0
  109. package/esm/browser/sandbox/runtime/frame-store.js +18 -0
  110. package/esm/browser/sandbox/runtime/sandbox-runtime.d.ts +11 -0
  111. package/esm/browser/sandbox/runtime/sandbox-runtime.js +45 -0
  112. package/esm/browser/sandbox/sandbox-features.d.ts +25 -0
  113. package/esm/browser/sandbox/sandbox-features.js +32 -0
  114. package/esm/browser/sandbox/sandbox-frame.d.ts +21 -0
  115. package/esm/browser/sandbox/sandbox-frame.js +75 -0
  116. package/esm/browser/sandbox/sandbox-guards.d.ts +19 -0
  117. package/esm/browser/sandbox/sandbox-guards.js +74 -0
  118. package/esm/browser/sandbox/sandbox-protocol.d.ts +57 -0
  119. package/esm/browser/sandbox/sandbox-protocol.js +49 -0
  120. package/esm/browser/sandbox/sandbox-runtime-code.d.ts +1 -0
  121. package/esm/browser/sandbox/sandbox-runtime-code.js +3 -0
  122. package/esm/browser/sandbox/web-sandbox.d.ts +28 -0
  123. package/esm/browser/sandbox/web-sandbox.js +44 -0
  124. package/esm/browser/settings/agent-settings.js +12 -2
  125. package/esm/browser/settings/settings-protocol.d.ts +2 -0
  126. package/esm/browser/settings/settings-protocol.js +2 -0
  127. package/esm/browser/style/conversation.d.ts +1 -1
  128. package/esm/browser/style/conversation.js +20 -1
  129. package/esm/browser/style/surfaces.d.ts +1 -1
  130. package/esm/browser/style/surfaces.js +5 -0
  131. package/esm/browser/style/tints.d.ts +2 -0
  132. package/esm/browser/style/tints.js +10 -0
  133. package/esm/browser/util/context-view.d.ts +16 -0
  134. package/esm/browser/util/context-view.js +42 -0
  135. package/esm/browser/util/desktop.d.ts +31 -1
  136. package/esm/browser/util/desktop.js +20 -0
  137. package/esm/browser/util/progress.d.ts +4 -0
  138. package/esm/browser/util/progress.js +9 -3
  139. package/esm/browser/view.js +1 -1
  140. package/lib/browser/apps/app-icon.d.ts +24 -0
  141. package/lib/browser/apps/app-icon.js +134 -0
  142. package/lib/browser/apps/app-settings.d.ts +7 -0
  143. package/lib/browser/apps/app-settings.js +103 -0
  144. package/lib/browser/apps/app-window-util.d.ts +24 -0
  145. package/lib/browser/apps/app-window-util.js +30 -0
  146. package/lib/browser/apps/app-window.d.ts +10 -0
  147. package/lib/browser/apps/app-window.js +126 -0
  148. package/lib/browser/apps/web-apps.d.ts +30 -0
  149. package/lib/browser/apps/web-apps.js +61 -0
  150. package/lib/browser/assistant/assistant-thread.js +3 -1
  151. package/lib/browser/assistant/assistant-view.js +8 -4
  152. package/lib/browser/assistant/call-keeper.d.ts +2 -5
  153. package/lib/browser/assistant/call-keeper.js +6 -10
  154. package/lib/browser/components/access-settings.d.ts +7 -0
  155. package/lib/browser/components/access-settings.js +88 -0
  156. package/lib/browser/components/app-root.d.ts +7 -0
  157. package/lib/browser/components/app-root.js +70 -0
  158. package/lib/browser/components/app-view.d.ts +8 -2
  159. package/lib/browser/components/app-view.js +1 -25
  160. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  161. package/lib/browser/components/context-act.d.ts +5 -0
  162. package/lib/browser/components/context-act.js +44 -0
  163. package/lib/browser/components/context-line.d.ts +20 -0
  164. package/lib/browser/components/context-line.js +109 -0
  165. package/lib/browser/components/host-view.d.ts +1 -1
  166. package/lib/browser/components/message-list.js +12 -6
  167. package/lib/browser/components/message-steps.js +1 -1
  168. package/lib/browser/components/session-settings.d.ts +8 -4
  169. package/lib/browser/components/session-settings.js +10 -5
  170. package/lib/browser/components/session-view.js +12 -8
  171. package/lib/browser/components/settings-more.js +6 -0
  172. package/lib/browser/device/screen-awake.d.ts +16 -0
  173. package/lib/browser/device/screen-awake.js +39 -1
  174. package/lib/browser/device/sheet-swipe.js +4 -0
  175. package/lib/browser/extension/icons.js +1 -0
  176. package/lib/browser/extension/web-access.d.ts +17 -0
  177. package/lib/browser/extension/web-access.js +78 -0
  178. package/lib/browser/extension/web-api-desktop.d.ts +23 -0
  179. package/lib/browser/extension/web-api-spec.d.ts +71 -0
  180. package/lib/browser/extension/web-api-spec.js +226 -0
  181. package/lib/browser/extension/web-extension-api.d.ts +6 -0
  182. package/lib/browser/extension/web-extension-context.js +11 -2
  183. package/lib/browser/extension/web-extension-run.d.ts +6 -1
  184. package/lib/browser/extension/web-extension-run.js +25 -0
  185. package/lib/browser/extension/web-extensions-running.d.ts +18 -1
  186. package/lib/browser/extension/web-extensions-running.js +102 -9
  187. package/lib/browser/extension/web-pages.d.ts +5 -0
  188. package/lib/browser/extension/web-pages.js +3 -0
  189. package/lib/browser/i18n/en/chat.d.ts +16 -2
  190. package/lib/browser/i18n/en/chat.js +16 -2
  191. package/lib/browser/i18n/en/common.d.ts +1 -0
  192. package/lib/browser/i18n/en/common.js +1 -0
  193. package/lib/browser/i18n/en/discover.d.ts +11 -0
  194. package/lib/browser/i18n/en/discover.js +11 -0
  195. package/lib/browser/i18n/en/settings.d.ts +54 -0
  196. package/lib/browser/i18n/en/settings.js +57 -3
  197. package/lib/browser/i18n/en/tools.d.ts +1 -0
  198. package/lib/browser/i18n/en/tools.js +1 -0
  199. package/lib/browser/i18n/ja/chat.js +16 -2
  200. package/lib/browser/i18n/ja/common.js +1 -0
  201. package/lib/browser/i18n/ja/discover.js +11 -0
  202. package/lib/browser/i18n/ja/settings.js +57 -3
  203. package/lib/browser/i18n/ja/tools.js +1 -0
  204. package/lib/browser/i18n/locales.d.ts +84 -5
  205. package/lib/browser/i18n/messages.d.ts +83 -4
  206. package/lib/browser/i18n/zh/chat.js +16 -2
  207. package/lib/browser/i18n/zh/common.js +1 -0
  208. package/lib/browser/i18n/zh/discover.js +11 -0
  209. package/lib/browser/i18n/zh/settings.js +57 -3
  210. package/lib/browser/i18n/zh/tools.js +1 -0
  211. package/lib/browser/i18n/zh-tw/chat.js +16 -2
  212. package/lib/browser/i18n/zh-tw/common.js +1 -0
  213. package/lib/browser/i18n/zh-tw/discover.js +11 -0
  214. package/lib/browser/i18n/zh-tw/settings.js +57 -3
  215. package/lib/browser/i18n/zh-tw/tools.js +1 -0
  216. package/lib/browser/index.d.ts +1 -0
  217. package/lib/browser/index.js +1 -0
  218. package/lib/browser/notices/notices.js +1 -0
  219. package/lib/browser/sandbox/channel/channel.d.ts +57 -0
  220. package/lib/browser/sandbox/channel/channel.js +128 -0
  221. package/lib/browser/sandbox/channel/codec.d.ts +81 -0
  222. package/lib/browser/sandbox/channel/codec.js +256 -0
  223. package/lib/browser/sandbox/hook-host.d.ts +24 -0
  224. package/lib/browser/sandbox/hook-host.js +98 -0
  225. package/lib/browser/sandbox/isolated-host.d.ts +106 -0
  226. package/lib/browser/sandbox/isolated-host.js +432 -0
  227. package/lib/browser/sandbox/remote/remote-copy.d.ts +57 -0
  228. package/lib/browser/sandbox/remote/remote-copy.js +306 -0
  229. package/lib/browser/sandbox/remote/remote-mirror.d.ts +62 -0
  230. package/lib/browser/sandbox/remote/remote-mirror.js +345 -0
  231. package/lib/browser/sandbox/remote/remote-protocol.d.ts +80 -0
  232. package/lib/browser/sandbox/remote/remote-protocol.js +57 -0
  233. package/lib/browser/sandbox/remote/remote-styles.d.ts +11 -0
  234. package/lib/browser/sandbox/remote/remote-styles.js +116 -0
  235. package/lib/browser/sandbox/remote-root.d.ts +12 -0
  236. package/lib/browser/sandbox/remote-root.js +117 -0
  237. package/lib/browser/sandbox/runtime/frame-api.d.ts +29 -0
  238. package/lib/browser/sandbox/runtime/frame-api.js +183 -0
  239. package/lib/browser/sandbox/runtime/frame-features.d.ts +7 -0
  240. package/lib/browser/sandbox/runtime/frame-features.js +53 -0
  241. package/lib/browser/sandbox/runtime/frame-parts.d.ts +37 -0
  242. package/lib/browser/sandbox/runtime/frame-parts.js +106 -0
  243. package/lib/browser/sandbox/runtime/frame-roots.d.ts +27 -0
  244. package/lib/browser/sandbox/runtime/frame-roots.js +113 -0
  245. package/lib/browser/sandbox/runtime/frame-store.d.ts +10 -0
  246. package/lib/browser/sandbox/runtime/frame-store.js +22 -0
  247. package/lib/browser/sandbox/runtime/sandbox-runtime.d.ts +12 -0
  248. package/lib/browser/sandbox/runtime/sandbox-runtime.js +47 -0
  249. package/lib/browser/sandbox/sandbox-features.d.ts +26 -0
  250. package/lib/browser/sandbox/sandbox-features.js +35 -0
  251. package/lib/browser/sandbox/sandbox-frame.d.ts +22 -0
  252. package/lib/browser/sandbox/sandbox-frame.js +79 -0
  253. package/lib/browser/sandbox/sandbox-guards.d.ts +20 -0
  254. package/lib/browser/sandbox/sandbox-guards.js +77 -0
  255. package/lib/browser/sandbox/sandbox-protocol.d.ts +58 -0
  256. package/lib/browser/sandbox/sandbox-protocol.js +52 -0
  257. package/lib/browser/sandbox/sandbox-runtime-code.d.ts +2 -0
  258. package/lib/browser/sandbox/sandbox-runtime-code.js +6 -0
  259. package/lib/browser/sandbox/web-sandbox.d.ts +29 -0
  260. package/lib/browser/sandbox/web-sandbox.js +47 -0
  261. package/lib/browser/settings/agent-settings.js +12 -2
  262. package/lib/browser/settings/settings-protocol.d.ts +2 -0
  263. package/lib/browser/settings/settings-protocol.js +2 -0
  264. package/lib/browser/style/conversation.d.ts +1 -1
  265. package/lib/browser/style/conversation.js +20 -1
  266. package/lib/browser/style/surfaces.d.ts +1 -1
  267. package/lib/browser/style/surfaces.js +5 -0
  268. package/lib/browser/style/tints.d.ts +2 -0
  269. package/lib/browser/style/tints.js +10 -0
  270. package/lib/browser/util/context-view.d.ts +17 -0
  271. package/lib/browser/util/context-view.js +45 -0
  272. package/lib/browser/util/desktop.d.ts +31 -1
  273. package/lib/browser/util/desktop.js +20 -0
  274. package/lib/browser/util/progress.d.ts +4 -0
  275. package/lib/browser/util/progress.js +9 -3
  276. package/lib/browser/view.js +2 -2
  277. package/package.json +8 -8
@@ -3,7 +3,35 @@ export type DesktopFeature = 'webview' | 'debugWebview' | 'showItemInFolder' | '
3
3
  /** It lets the page open the window of a video call (window.open('about:blank', 'ta-video-call')). */
4
4
  | 'callWindow'
5
5
  /** It pins the window of a video call above every window, or not (callWindowPin). */
6
- | 'callWindowPin';
6
+ | 'callWindowPin'
7
+ /** It installs pages as apps of the computer, each with a window of its own (docs/design/ta-install-as-app.md). */
8
+ | 'apps';
9
+ /** A page installed as an app of the computer. */
10
+ export interface DesktopApp {
11
+ /** The id of the page, as `ui.showView` takes it. */
12
+ id: string;
13
+ name: string;
14
+ installedAt: number;
15
+ }
16
+ /** What the page sends to install a page: its name, and its icon, PNGs of 1024 and of 256 pixels (AppIcon). */
17
+ export interface DesktopAppInstall {
18
+ id: string;
19
+ name: string;
20
+ png: Uint8Array;
21
+ small: Uint8Array;
22
+ }
23
+ /** The pages installed as apps of the computer, by Ta Desktop (desktop-apps.ts of apps/ta-desktop). */
24
+ export interface DesktopApps {
25
+ list(): Promise<DesktopApp[]>;
26
+ /** `problem`: its entry of the system could not be written; the app is kept, and opens all the same. */
27
+ install(app: DesktopAppInstall): Promise<DesktopApp & {
28
+ problem?: string;
29
+ }>;
30
+ /** Its entry and icon gone, its window closed. */
31
+ remove(id: string): Promise<void>;
32
+ /** Its window in front, opened when it is not. */
33
+ open(id: string): Promise<void>;
34
+ }
7
35
  /** The file manager of the system, from Ta Desktop: {@link WebDesktop} of the extension API. */
8
36
  export interface DesktopFileManager {
9
37
  /** Node's `process.platform` of the machine: what the file manager is called there. */
@@ -88,6 +116,8 @@ export declare namespace DesktopUtil {
88
116
  * `pinned` is given; it keeps the choice for the next call. None outside Ta Desktop, nor in an older one.
89
117
  */
90
118
  function callWindowPin(scope?: object): ((pinned?: boolean) => Promise<boolean>) | undefined;
119
+ /** The pages installed as apps, where Ta Desktop installs them. */
120
+ function apps(scope?: object): DesktopApps | undefined;
91
121
  function browserData(scope?: object): DesktopBrowserData | undefined;
92
122
  /** `debugWebview` of Ta Desktop; `undefined` elsewhere. */
93
123
  function debugWebview(scope?: object): DebugWebview | undefined;
@@ -55,6 +55,26 @@ var DesktopUtil;
55
55
  return has('callWindowPin', scope) && typeof pin === 'function' ? async (pinned) => (await pin(pinned)) === true : undefined;
56
56
  }
57
57
  DesktopUtil.callWindowPin = callWindowPin;
58
+ /** The pages installed as apps, where Ta Desktop installs them. */
59
+ function apps(scope = globalThis) {
60
+ var _a;
61
+ var _b;
62
+ const { list, install, remove, open } = (_b = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.apps) !== null && _b !== void 0 ? _b : {};
63
+ if (!has('apps', scope) || typeof list !== 'function' || typeof install !== 'function' || typeof remove !== 'function' || typeof open !== 'function') {
64
+ return undefined;
65
+ }
66
+ return Object.freeze({
67
+ list: async () => { var _a; return (_a = (await list())) !== null && _a !== void 0 ? _a : []; },
68
+ install: async (app) => (await install(app)),
69
+ remove: async (id) => {
70
+ await remove(id);
71
+ },
72
+ open: async (id) => {
73
+ await open(id);
74
+ },
75
+ });
76
+ }
77
+ DesktopUtil.apps = apps;
58
78
  function browserData(scope = globalThis) {
59
79
  var _a;
60
80
  const data = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.browserData;
@@ -25,6 +25,10 @@ export type Phase = {
25
25
  } | {
26
26
  kind: 'compacting';
27
27
  }
28
+ /** Ta turns the context over with a handoff (docs/design/ta-context.md 5.5). */
29
+ | {
30
+ kind: 'renewing';
31
+ }
28
32
  /** `error`: what the provider said, for a reason without a word of its own. */
29
33
  | {
30
34
  kind: 'retrying';
@@ -40,6 +40,8 @@ var ProgressUtil;
40
40
  return t('ta.mood.attention');
41
41
  case 'compacting':
42
42
  return t('ta.progress.compacting');
43
+ case 'renewing':
44
+ return t('ta.progress.renewing');
43
45
  case 'retrying': {
44
46
  const error = phase.reason === 'error' ? ProgressUtil.brief(phase.error) : '';
45
47
  const reason = error || t(`ta.progress.retry.${phase.reason}`);
@@ -53,10 +55,14 @@ var ProgressUtil;
53
55
  ProgressUtil.text = text;
54
56
  /** What ta does now, the most pressing first: a question for the user, then pi's own work, then the model's. */
55
57
  function phase(state, renderers) {
56
- var _a, _b;
58
+ var _a;
59
+ var _b, _c;
57
60
  if (state.pendingUi.length > 0) {
58
61
  return { kind: 'attention' };
59
62
  }
63
+ if ((_a = state.context) === null || _a === void 0 ? void 0 : _a.renewing) {
64
+ return { kind: 'renewing' };
65
+ }
60
66
  if (state.compacting) {
61
67
  return { kind: 'compacting' };
62
68
  }
@@ -72,7 +78,7 @@ var ProgressUtil;
72
78
  }
73
79
  const run = tool_1.ToolUtil.current(state.tools);
74
80
  if (run) {
75
- return { kind: 'tool', summary: tool_1.ToolUtil.summary(run.toolName, (_a = run.args) !== null && _a !== void 0 ? _a : {}, renderers) };
81
+ return { kind: 'tool', summary: tool_1.ToolUtil.summary(run.toolName, (_b = run.args) !== null && _b !== void 0 ? _b : {}, renderers) };
76
82
  }
77
83
  const last = state.messages[state.messages.length - 1];
78
84
  if (role(last) !== 'assistant' || last.stopReason === 'toolUse') {
@@ -87,7 +93,7 @@ var ProgressUtil;
87
93
  case 'text':
88
94
  return { kind: 'writing' };
89
95
  case 'toolCall':
90
- return { kind: 'calling', tool: (_b = block.name) !== null && _b !== void 0 ? _b : '' };
96
+ return { kind: 'calling', tool: (_c = block.name) !== null && _c !== void 0 ? _c : '' };
91
97
  default:
92
98
  return { kind: 'waiting' };
93
99
  }
@@ -8,12 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.TaAppPage = void 0;
10
10
  const react_1 = require("@celljs/react");
11
- const app_view_1 = require("./components/app-view");
11
+ const app_root_1 = require("./components/app-root");
12
12
  /** ta on the web: the conversations, and what the web extensions of packages add. */
13
13
  let TaAppPage = class TaAppPage {
14
14
  };
15
15
  exports.TaAppPage = TaAppPage;
16
16
  exports.TaAppPage = TaAppPage = __decorate([
17
- (0, react_1.View)({ index: true, component: app_view_1.AppView })
17
+ (0, react_1.View)({ index: true, component: app_root_1.AppView })
18
18
  ], TaAppPage);
19
19
  //# sourceMappingURL=view.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-web",
3
- "version": "4.33.0",
3
+ "version": "4.35.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"
@@ -27,18 +27,18 @@
27
27
  "!**/*.map"
28
28
  ],
29
29
  "scripts": {
30
- "build": "tsc -b && bun ../../scripts/build-esm.ts",
30
+ "build": "bun scripts/sandbox-runtime.ts && tsc -b && bun ../../scripts/build-esm.ts",
31
31
  "clean": "rm -rf lib esm *.tsbuildinfo",
32
32
  "test": "bun test --preload reflect-metadata ./lib",
33
33
  "watch": "tsc -b -w --preserveWatchOutput"
34
34
  },
35
35
  "dependencies": {
36
- "@celljs/core": "4.33.0",
37
- "@celljs/react": "4.33.0",
38
- "@celljs/ta-client": "4.33.0",
39
- "@celljs/ta-protocol": "4.33.0",
40
- "@celljs/ta-relay": "4.33.0",
41
- "@celljs/widget": "4.33.0",
36
+ "@celljs/core": "4.35.0",
37
+ "@celljs/react": "4.35.0",
38
+ "@celljs/ta-client": "4.35.0",
39
+ "@celljs/ta-protocol": "4.35.0",
40
+ "@celljs/ta-relay": "4.35.0",
41
+ "@celljs/widget": "4.35.0",
42
42
  "@types/three": "^0.187.0",
43
43
  "@xterm/addon-fit": "^0.11.0",
44
44
  "@xterm/addon-unicode11": "^0.9.0",