@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.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/apps/app-icon.d.ts +23 -0
- package/esm/browser/apps/app-icon.js +98 -0
- package/esm/browser/apps/app-settings.d.ts +6 -0
- package/esm/browser/apps/app-settings.js +67 -0
- package/esm/browser/apps/app-window-util.d.ts +23 -0
- package/esm/browser/apps/app-window-util.js +27 -0
- package/esm/browser/apps/app-window.d.ts +9 -0
- package/esm/browser/apps/app-window.js +90 -0
- package/esm/browser/apps/web-apps.d.ts +29 -0
- package/esm/browser/apps/web-apps.js +57 -0
- package/esm/browser/assistant/assistant-thread.js +3 -1
- package/esm/browser/assistant/assistant-view.js +8 -4
- package/esm/browser/assistant/call-keeper.d.ts +2 -5
- package/esm/browser/assistant/call-keeper.js +7 -11
- package/esm/browser/components/access-settings.d.ts +6 -0
- package/esm/browser/components/access-settings.js +52 -0
- package/esm/browser/components/app-root.d.ts +6 -0
- package/esm/browser/components/app-root.js +34 -0
- package/esm/browser/components/app-view.d.ts +8 -2
- package/esm/browser/components/app-view.js +1 -25
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/context-act.d.ts +4 -0
- package/esm/browser/components/context-act.js +8 -0
- package/esm/browser/components/context-line.d.ts +19 -0
- package/esm/browser/components/context-line.js +71 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/message-list.js +12 -6
- package/esm/browser/components/message-steps.js +1 -1
- package/esm/browser/components/session-settings.d.ts +8 -4
- package/esm/browser/components/session-settings.js +10 -5
- package/esm/browser/components/session-view.js +12 -8
- package/esm/browser/components/settings-more.js +6 -0
- package/esm/browser/device/screen-awake.d.ts +16 -0
- package/esm/browser/device/screen-awake.js +37 -0
- package/esm/browser/device/sheet-swipe.js +4 -0
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-access.d.ts +16 -0
- package/esm/browser/extension/web-access.js +75 -0
- package/esm/browser/extension/web-api-desktop.d.ts +23 -0
- package/esm/browser/extension/web-api-spec.d.ts +70 -0
- package/esm/browser/extension/web-api-spec.js +223 -0
- package/esm/browser/extension/web-extension-api.d.ts +6 -0
- package/esm/browser/extension/web-extension-context.js +11 -2
- package/esm/browser/extension/web-extension-run.d.ts +6 -1
- package/esm/browser/extension/web-extension-run.js +25 -0
- package/esm/browser/extension/web-extensions-running.d.ts +18 -1
- package/esm/browser/extension/web-extensions-running.js +102 -9
- package/esm/browser/extension/web-pages.d.ts +5 -0
- package/esm/browser/extension/web-pages.js +3 -0
- package/esm/browser/i18n/en/chat.d.ts +16 -2
- package/esm/browser/i18n/en/chat.js +16 -2
- package/esm/browser/i18n/en/common.d.ts +1 -0
- package/esm/browser/i18n/en/common.js +1 -0
- package/esm/browser/i18n/en/discover.d.ts +11 -0
- package/esm/browser/i18n/en/discover.js +11 -0
- package/esm/browser/i18n/en/settings.d.ts +54 -0
- package/esm/browser/i18n/en/settings.js +57 -3
- package/esm/browser/i18n/en/tools.d.ts +1 -0
- package/esm/browser/i18n/en/tools.js +1 -0
- package/esm/browser/i18n/ja/chat.js +16 -2
- package/esm/browser/i18n/ja/common.js +1 -0
- package/esm/browser/i18n/ja/discover.js +11 -0
- package/esm/browser/i18n/ja/settings.js +57 -3
- package/esm/browser/i18n/ja/tools.js +1 -0
- package/esm/browser/i18n/locales.d.ts +84 -5
- package/esm/browser/i18n/messages.d.ts +83 -4
- package/esm/browser/i18n/zh/chat.js +16 -2
- package/esm/browser/i18n/zh/common.js +1 -0
- package/esm/browser/i18n/zh/discover.js +11 -0
- package/esm/browser/i18n/zh/settings.js +57 -3
- package/esm/browser/i18n/zh/tools.js +1 -0
- package/esm/browser/i18n/zh-tw/chat.js +16 -2
- package/esm/browser/i18n/zh-tw/common.js +1 -0
- package/esm/browser/i18n/zh-tw/discover.js +11 -0
- package/esm/browser/i18n/zh-tw/settings.js +57 -3
- package/esm/browser/i18n/zh-tw/tools.js +1 -0
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -0
- package/esm/browser/notices/notices.js +1 -0
- package/esm/browser/sandbox/channel/channel.d.ts +56 -0
- package/esm/browser/sandbox/channel/channel.js +124 -0
- package/esm/browser/sandbox/channel/codec.d.ts +80 -0
- package/esm/browser/sandbox/channel/codec.js +251 -0
- package/esm/browser/sandbox/hook-host.d.ts +23 -0
- package/esm/browser/sandbox/hook-host.js +61 -0
- package/esm/browser/sandbox/isolated-host.d.ts +105 -0
- package/esm/browser/sandbox/isolated-host.js +395 -0
- package/esm/browser/sandbox/remote/remote-copy.d.ts +56 -0
- package/esm/browser/sandbox/remote/remote-copy.js +302 -0
- package/esm/browser/sandbox/remote/remote-mirror.d.ts +61 -0
- package/esm/browser/sandbox/remote/remote-mirror.js +341 -0
- package/esm/browser/sandbox/remote/remote-protocol.d.ts +79 -0
- package/esm/browser/sandbox/remote/remote-protocol.js +54 -0
- package/esm/browser/sandbox/remote/remote-styles.d.ts +10 -0
- package/esm/browser/sandbox/remote/remote-styles.js +113 -0
- package/esm/browser/sandbox/remote-root.d.ts +11 -0
- package/esm/browser/sandbox/remote-root.js +81 -0
- package/esm/browser/sandbox/runtime/frame-api.d.ts +28 -0
- package/esm/browser/sandbox/runtime/frame-api.js +147 -0
- package/esm/browser/sandbox/runtime/frame-features.d.ts +6 -0
- package/esm/browser/sandbox/runtime/frame-features.js +50 -0
- package/esm/browser/sandbox/runtime/frame-parts.d.ts +36 -0
- package/esm/browser/sandbox/runtime/frame-parts.js +69 -0
- package/esm/browser/sandbox/runtime/frame-roots.d.ts +26 -0
- package/esm/browser/sandbox/runtime/frame-roots.js +76 -0
- package/esm/browser/sandbox/runtime/frame-store.d.ts +9 -0
- package/esm/browser/sandbox/runtime/frame-store.js +18 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.d.ts +11 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.js +45 -0
- package/esm/browser/sandbox/sandbox-features.d.ts +25 -0
- package/esm/browser/sandbox/sandbox-features.js +32 -0
- package/esm/browser/sandbox/sandbox-frame.d.ts +21 -0
- package/esm/browser/sandbox/sandbox-frame.js +75 -0
- package/esm/browser/sandbox/sandbox-guards.d.ts +19 -0
- package/esm/browser/sandbox/sandbox-guards.js +74 -0
- package/esm/browser/sandbox/sandbox-protocol.d.ts +57 -0
- package/esm/browser/sandbox/sandbox-protocol.js +49 -0
- package/esm/browser/sandbox/sandbox-runtime-code.d.ts +1 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +3 -0
- package/esm/browser/sandbox/web-sandbox.d.ts +28 -0
- package/esm/browser/sandbox/web-sandbox.js +44 -0
- package/esm/browser/settings/agent-settings.js +12 -2
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +20 -1
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +5 -0
- package/esm/browser/style/tints.d.ts +2 -0
- package/esm/browser/style/tints.js +10 -0
- package/esm/browser/util/context-view.d.ts +16 -0
- package/esm/browser/util/context-view.js +42 -0
- package/esm/browser/util/desktop.d.ts +31 -1
- package/esm/browser/util/desktop.js +20 -0
- package/esm/browser/util/progress.d.ts +4 -0
- package/esm/browser/util/progress.js +9 -3
- package/esm/browser/view.js +1 -1
- package/lib/browser/apps/app-icon.d.ts +24 -0
- package/lib/browser/apps/app-icon.js +134 -0
- package/lib/browser/apps/app-settings.d.ts +7 -0
- package/lib/browser/apps/app-settings.js +103 -0
- package/lib/browser/apps/app-window-util.d.ts +24 -0
- package/lib/browser/apps/app-window-util.js +30 -0
- package/lib/browser/apps/app-window.d.ts +10 -0
- package/lib/browser/apps/app-window.js +126 -0
- package/lib/browser/apps/web-apps.d.ts +30 -0
- package/lib/browser/apps/web-apps.js +61 -0
- package/lib/browser/assistant/assistant-thread.js +3 -1
- package/lib/browser/assistant/assistant-view.js +8 -4
- package/lib/browser/assistant/call-keeper.d.ts +2 -5
- package/lib/browser/assistant/call-keeper.js +6 -10
- package/lib/browser/components/access-settings.d.ts +7 -0
- package/lib/browser/components/access-settings.js +88 -0
- package/lib/browser/components/app-root.d.ts +7 -0
- package/lib/browser/components/app-root.js +70 -0
- package/lib/browser/components/app-view.d.ts +8 -2
- package/lib/browser/components/app-view.js +1 -25
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/context-act.d.ts +5 -0
- package/lib/browser/components/context-act.js +44 -0
- package/lib/browser/components/context-line.d.ts +20 -0
- package/lib/browser/components/context-line.js +109 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/message-list.js +12 -6
- package/lib/browser/components/message-steps.js +1 -1
- package/lib/browser/components/session-settings.d.ts +8 -4
- package/lib/browser/components/session-settings.js +10 -5
- package/lib/browser/components/session-view.js +12 -8
- package/lib/browser/components/settings-more.js +6 -0
- package/lib/browser/device/screen-awake.d.ts +16 -0
- package/lib/browser/device/screen-awake.js +39 -1
- package/lib/browser/device/sheet-swipe.js +4 -0
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-access.d.ts +17 -0
- package/lib/browser/extension/web-access.js +78 -0
- package/lib/browser/extension/web-api-desktop.d.ts +23 -0
- package/lib/browser/extension/web-api-spec.d.ts +71 -0
- package/lib/browser/extension/web-api-spec.js +226 -0
- package/lib/browser/extension/web-extension-api.d.ts +6 -0
- package/lib/browser/extension/web-extension-context.js +11 -2
- package/lib/browser/extension/web-extension-run.d.ts +6 -1
- package/lib/browser/extension/web-extension-run.js +25 -0
- package/lib/browser/extension/web-extensions-running.d.ts +18 -1
- package/lib/browser/extension/web-extensions-running.js +102 -9
- package/lib/browser/extension/web-pages.d.ts +5 -0
- package/lib/browser/extension/web-pages.js +3 -0
- package/lib/browser/i18n/en/chat.d.ts +16 -2
- package/lib/browser/i18n/en/chat.js +16 -2
- package/lib/browser/i18n/en/common.d.ts +1 -0
- package/lib/browser/i18n/en/common.js +1 -0
- package/lib/browser/i18n/en/discover.d.ts +11 -0
- package/lib/browser/i18n/en/discover.js +11 -0
- package/lib/browser/i18n/en/settings.d.ts +54 -0
- package/lib/browser/i18n/en/settings.js +57 -3
- package/lib/browser/i18n/en/tools.d.ts +1 -0
- package/lib/browser/i18n/en/tools.js +1 -0
- package/lib/browser/i18n/ja/chat.js +16 -2
- package/lib/browser/i18n/ja/common.js +1 -0
- package/lib/browser/i18n/ja/discover.js +11 -0
- package/lib/browser/i18n/ja/settings.js +57 -3
- package/lib/browser/i18n/ja/tools.js +1 -0
- package/lib/browser/i18n/locales.d.ts +84 -5
- package/lib/browser/i18n/messages.d.ts +83 -4
- package/lib/browser/i18n/zh/chat.js +16 -2
- package/lib/browser/i18n/zh/common.js +1 -0
- package/lib/browser/i18n/zh/discover.js +11 -0
- package/lib/browser/i18n/zh/settings.js +57 -3
- package/lib/browser/i18n/zh/tools.js +1 -0
- package/lib/browser/i18n/zh-tw/chat.js +16 -2
- package/lib/browser/i18n/zh-tw/common.js +1 -0
- package/lib/browser/i18n/zh-tw/discover.js +11 -0
- package/lib/browser/i18n/zh-tw/settings.js +57 -3
- package/lib/browser/i18n/zh-tw/tools.js +1 -0
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/browser/notices/notices.js +1 -0
- package/lib/browser/sandbox/channel/channel.d.ts +57 -0
- package/lib/browser/sandbox/channel/channel.js +128 -0
- package/lib/browser/sandbox/channel/codec.d.ts +81 -0
- package/lib/browser/sandbox/channel/codec.js +256 -0
- package/lib/browser/sandbox/hook-host.d.ts +24 -0
- package/lib/browser/sandbox/hook-host.js +98 -0
- package/lib/browser/sandbox/isolated-host.d.ts +106 -0
- package/lib/browser/sandbox/isolated-host.js +432 -0
- package/lib/browser/sandbox/remote/remote-copy.d.ts +57 -0
- package/lib/browser/sandbox/remote/remote-copy.js +306 -0
- package/lib/browser/sandbox/remote/remote-mirror.d.ts +62 -0
- package/lib/browser/sandbox/remote/remote-mirror.js +345 -0
- package/lib/browser/sandbox/remote/remote-protocol.d.ts +80 -0
- package/lib/browser/sandbox/remote/remote-protocol.js +57 -0
- package/lib/browser/sandbox/remote/remote-styles.d.ts +11 -0
- package/lib/browser/sandbox/remote/remote-styles.js +116 -0
- package/lib/browser/sandbox/remote-root.d.ts +12 -0
- package/lib/browser/sandbox/remote-root.js +117 -0
- package/lib/browser/sandbox/runtime/frame-api.d.ts +29 -0
- package/lib/browser/sandbox/runtime/frame-api.js +183 -0
- package/lib/browser/sandbox/runtime/frame-features.d.ts +7 -0
- package/lib/browser/sandbox/runtime/frame-features.js +53 -0
- package/lib/browser/sandbox/runtime/frame-parts.d.ts +37 -0
- package/lib/browser/sandbox/runtime/frame-parts.js +106 -0
- package/lib/browser/sandbox/runtime/frame-roots.d.ts +27 -0
- package/lib/browser/sandbox/runtime/frame-roots.js +113 -0
- package/lib/browser/sandbox/runtime/frame-store.d.ts +10 -0
- package/lib/browser/sandbox/runtime/frame-store.js +22 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.d.ts +12 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.js +47 -0
- package/lib/browser/sandbox/sandbox-features.d.ts +26 -0
- package/lib/browser/sandbox/sandbox-features.js +35 -0
- package/lib/browser/sandbox/sandbox-frame.d.ts +22 -0
- package/lib/browser/sandbox/sandbox-frame.js +79 -0
- package/lib/browser/sandbox/sandbox-guards.d.ts +20 -0
- package/lib/browser/sandbox/sandbox-guards.js +77 -0
- package/lib/browser/sandbox/sandbox-protocol.d.ts +58 -0
- package/lib/browser/sandbox/sandbox-protocol.js +52 -0
- package/lib/browser/sandbox/sandbox-runtime-code.d.ts +2 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +6 -0
- package/lib/browser/sandbox/web-sandbox.d.ts +29 -0
- package/lib/browser/sandbox/web-sandbox.js +47 -0
- package/lib/browser/settings/agent-settings.js +12 -2
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +20 -1
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +5 -0
- package/lib/browser/style/tints.d.ts +2 -0
- package/lib/browser/style/tints.js +10 -0
- package/lib/browser/util/context-view.d.ts +17 -0
- package/lib/browser/util/context-view.js +45 -0
- package/lib/browser/util/desktop.d.ts +31 -1
- package/lib/browser/util/desktop.js +20 -0
- package/lib/browser/util/progress.d.ts +4 -0
- package/lib/browser/util/progress.js +9 -3
- package/lib/browser/view.js +2 -2
- 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
|
|
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, (
|
|
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: (
|
|
96
|
+
return { kind: 'calling', tool: (_c = block.name) !== null && _c !== void 0 ? _c : '' };
|
|
91
97
|
default:
|
|
92
98
|
return { kind: 'waiting' };
|
|
93
99
|
}
|
package/lib/browser/view.js
CHANGED
|
@@ -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
|
|
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:
|
|
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.
|
|
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.
|
|
37
|
-
"@celljs/react": "4.
|
|
38
|
-
"@celljs/ta-client": "4.
|
|
39
|
-
"@celljs/ta-protocol": "4.
|
|
40
|
-
"@celljs/ta-relay": "4.
|
|
41
|
-
"@celljs/widget": "4.
|
|
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",
|