@celljs/ta-web 4.45.1 → 4.46.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/assistant/assistant-view.js +8 -8
- package/esm/browser/assistant/assistant.d.ts +3 -1
- package/esm/browser/assistant/assistant.js +10 -4
- package/esm/browser/chat/chat-stores.d.ts +1 -3
- package/esm/browser/chat/chat-stores.js +3 -18
- package/esm/browser/chat/chat-view.js +9 -3
- package/esm/browser/chat/web-client-tools.d.ts +15 -0
- package/esm/browser/chat/web-client-tools.js +35 -0
- package/esm/browser/components/app-shell-hooks.js +2 -1
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-addon-util.d.ts +3 -1
- package/esm/browser/components/composer-addon-util.js +22 -0
- package/esm/browser/components/composer-addons.d.ts +2 -1
- package/esm/browser/components/composer-addons.js +1 -1
- package/esm/browser/components/hero-cards-util.d.ts +15 -0
- package/esm/browser/components/hero-cards-util.js +25 -0
- package/esm/browser/components/hero-cards.d.ts +13 -3
- package/esm/browser/components/hero-cards.js +41 -11
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/profile-view.js +31 -1
- package/esm/browser/components/recent-shots-access.d.ts +9 -0
- package/esm/browser/components/recent-shots-access.js +29 -0
- package/esm/browser/components/settings-more.js +2 -1
- package/esm/browser/components/settings-parts.js +5 -2
- package/esm/browser/components/workbench-tabs.js +1 -1
- package/esm/browser/components/workbench-view.js +3 -5
- package/esm/browser/device/hold.d.ts +5 -2
- package/esm/browser/device/hold.js +7 -4
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-composer.d.ts +51 -0
- package/esm/browser/extension/web-api-composer.js +2 -0
- package/esm/browser/extension/web-api-contributions.d.ts +5 -33
- package/esm/browser/extension/web-api-desktop.d.ts +5 -0
- package/esm/browser/extension/web-api-spec.js +1 -0
- package/esm/browser/extension/web-extension-context.js +6 -0
- package/esm/browser/i18n/en/assistant.d.ts +1 -0
- package/esm/browser/i18n/en/assistant.js +1 -0
- package/esm/browser/i18n/en/chat.d.ts +1 -0
- package/esm/browser/i18n/en/chat.js +1 -0
- package/esm/browser/i18n/en/settings.d.ts +5 -0
- package/esm/browser/i18n/en/settings.js +5 -0
- package/esm/browser/i18n/ja/assistant.js +1 -0
- package/esm/browser/i18n/ja/chat.js +1 -0
- package/esm/browser/i18n/ja/settings.js +5 -0
- package/esm/browser/i18n/locales.d.ts +8 -1
- package/esm/browser/i18n/messages.d.ts +7 -0
- package/esm/browser/i18n/zh/assistant.js +1 -0
- package/esm/browser/i18n/zh/chat.js +1 -0
- package/esm/browser/i18n/zh/settings.js +5 -0
- package/esm/browser/i18n/zh-tw/assistant.js +1 -0
- package/esm/browser/i18n/zh-tw/chat.js +1 -0
- package/esm/browser/i18n/zh-tw/settings.js +5 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/share/shared-page.js +3 -5
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +2 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +5 -2
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +2 -0
- package/esm/browser/style.d.ts +10 -0
- package/esm/browser/style.js +35 -0
- package/esm/browser/util/desktop.d.ts +9 -0
- package/esm/browser/util/desktop.js +5 -1
- package/esm/browser/video-call/call-window.js +2 -4
- package/lib/browser/assistant/assistant-view.js +7 -7
- package/lib/browser/assistant/assistant.d.ts +3 -1
- package/lib/browser/assistant/assistant.js +10 -4
- package/lib/browser/chat/chat-stores.d.ts +1 -3
- package/lib/browser/chat/chat-stores.js +3 -18
- package/lib/browser/chat/chat-view.js +8 -2
- package/lib/browser/chat/web-client-tools.d.ts +16 -0
- package/lib/browser/chat/web-client-tools.js +38 -0
- package/lib/browser/components/app-shell-hooks.js +2 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-addon-util.d.ts +3 -1
- package/lib/browser/components/composer-addon-util.js +22 -0
- package/lib/browser/components/composer-addons.d.ts +2 -1
- package/lib/browser/components/composer-addons.js +1 -1
- package/lib/browser/components/hero-cards-util.d.ts +16 -0
- package/lib/browser/components/hero-cards-util.js +28 -0
- package/lib/browser/components/hero-cards.d.ts +13 -3
- package/lib/browser/components/hero-cards.js +43 -11
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/profile-view.js +30 -0
- package/lib/browser/components/recent-shots-access.d.ts +10 -0
- package/lib/browser/components/recent-shots-access.js +65 -0
- package/lib/browser/components/settings-more.js +2 -1
- package/lib/browser/components/settings-parts.js +5 -2
- package/lib/browser/components/workbench-tabs.js +1 -1
- package/lib/browser/components/workbench-view.js +2 -4
- package/lib/browser/device/hold.d.ts +5 -2
- package/lib/browser/device/hold.js +7 -4
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-composer.d.ts +52 -0
- package/lib/browser/extension/web-api-composer.js +3 -0
- package/lib/browser/extension/web-api-contributions.d.ts +5 -33
- package/lib/browser/extension/web-api-desktop.d.ts +5 -0
- package/lib/browser/extension/web-api-spec.js +1 -0
- package/lib/browser/extension/web-extension-context.js +6 -0
- package/lib/browser/i18n/en/assistant.d.ts +1 -0
- package/lib/browser/i18n/en/assistant.js +1 -0
- package/lib/browser/i18n/en/chat.d.ts +1 -0
- package/lib/browser/i18n/en/chat.js +1 -0
- package/lib/browser/i18n/en/settings.d.ts +5 -0
- package/lib/browser/i18n/en/settings.js +5 -0
- package/lib/browser/i18n/ja/assistant.js +1 -0
- package/lib/browser/i18n/ja/chat.js +1 -0
- package/lib/browser/i18n/ja/settings.js +5 -0
- package/lib/browser/i18n/locales.d.ts +8 -1
- package/lib/browser/i18n/messages.d.ts +7 -0
- package/lib/browser/i18n/zh/assistant.js +1 -0
- package/lib/browser/i18n/zh/chat.js +1 -0
- package/lib/browser/i18n/zh/settings.js +5 -0
- package/lib/browser/i18n/zh-tw/assistant.js +1 -0
- package/lib/browser/i18n/zh-tw/chat.js +1 -0
- package/lib/browser/i18n/zh-tw/settings.js +5 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/share/shared-page.js +2 -4
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +2 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +5 -2
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +2 -0
- package/lib/browser/style.d.ts +10 -0
- package/lib/browser/style.js +36 -1
- package/lib/browser/util/desktop.d.ts +9 -0
- package/lib/browser/util/desktop.js +5 -1
- package/lib/browser/video-call/call-window.js +1 -3
- package/package.json +7 -7
|
@@ -76,7 +76,16 @@ export interface DesktopShots {
|
|
|
76
76
|
read(id: string): Promise<string | undefined>;
|
|
77
77
|
/** Called when a screenshot may have been taken; returns what stops it. */
|
|
78
78
|
onChange(listener: () => void): () => void;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the folder of the screenshots may be read: `ask` until the user allowed it where macOS guards it (the
|
|
81
|
+
* Desktop), `denied` when macOS refused. None from a Ta Desktop of before, which reads it at once.
|
|
82
|
+
*/
|
|
83
|
+
access?(): Promise<DesktopPlaceAccess>;
|
|
84
|
+
/** The user allows that folder: macOS asks now; refused before, its settings open. */
|
|
85
|
+
allow?(): Promise<DesktopPlaceAccess>;
|
|
79
86
|
}
|
|
87
|
+
/** What Ta Desktop may do with a folder macOS guards (PlaceAccess of apps/ta-desktop). */
|
|
88
|
+
export type DesktopPlaceAccess = 'ready' | 'ask' | 'denied';
|
|
80
89
|
/**
|
|
81
90
|
* A notice of the system Ta Desktop showed while its window was closed, hidden or minimized (its page tells of
|
|
82
91
|
* none then): tapped, what it is of, for the page to open.
|
|
@@ -172,14 +172,18 @@ var DesktopUtil;
|
|
|
172
172
|
function recentShots(scope = globalThis) {
|
|
173
173
|
var _a;
|
|
174
174
|
const shots = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.recentShots;
|
|
175
|
-
const { latest, read, onChange } = shots !== null && shots !== void 0 ? shots : {};
|
|
175
|
+
const { latest, read, onChange, access, allow } = shots !== null && shots !== void 0 ? shots : {};
|
|
176
176
|
if (!has('recentShots', scope) || typeof latest !== 'function' || typeof read !== 'function' || typeof onChange !== 'function') {
|
|
177
177
|
return undefined;
|
|
178
178
|
}
|
|
179
|
+
const place = (state) => (state === 'ask' || state === 'denied' ? state : 'ready');
|
|
179
180
|
return Object.freeze({
|
|
180
181
|
latest: async () => { var _a; return (_a = (await latest())) !== null && _a !== void 0 ? _a : undefined; },
|
|
181
182
|
read: async (id) => { var _a; return (_a = (await read(id))) !== null && _a !== void 0 ? _a : undefined; },
|
|
182
183
|
onChange: (listener) => onChange(listener),
|
|
184
|
+
...(typeof access === 'function' && typeof allow === 'function'
|
|
185
|
+
? { access: async () => place(await access()), allow: async () => place(await allow()) }
|
|
186
|
+
: {}),
|
|
183
187
|
});
|
|
184
188
|
}
|
|
185
189
|
DesktopUtil.recentShots = recentShots;
|
|
@@ -30,9 +30,7 @@ var CallWindow;
|
|
|
30
30
|
current = opened;
|
|
31
31
|
const doc = opened.document;
|
|
32
32
|
doc.title = title;
|
|
33
|
-
|
|
34
|
-
style.textContent = style_1.STYLE;
|
|
35
|
-
doc.head.appendChild(style);
|
|
33
|
+
style_1.PageStyle.attach(doc);
|
|
36
34
|
// As the page looks, and as it changes (the theme, the size of the text).
|
|
37
35
|
const root = document.documentElement;
|
|
38
36
|
const look = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-web",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.46.0",
|
|
4
4
|
"description": "The web client of ta serve: sessions, streaming messages, tool runs with diffs, and dialogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@celljs/core": "4.
|
|
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.46.0",
|
|
37
|
+
"@celljs/react": "4.46.0",
|
|
38
|
+
"@celljs/ta-client": "4.46.0",
|
|
39
|
+
"@celljs/ta-protocol": "4.46.0",
|
|
40
|
+
"@celljs/ta-relay": "4.46.0",
|
|
41
|
+
"@celljs/widget": "4.46.0",
|
|
42
42
|
"@types/three": "^0.187.0",
|
|
43
43
|
"@xterm/addon-fit": "^0.11.0",
|
|
44
44
|
"@xterm/addon-unicode11": "^0.9.0",
|