@celljs/ta-web 4.11.0 → 4.12.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 +5 -2
- package/esm/browser/chat/chat-view.js +6 -5
- package/esm/browser/components/app-view.js +8 -4
- package/esm/browser/components/composer-box.d.ts +1 -0
- package/esm/browser/components/composer-box.js +50 -28
- package/esm/browser/components/composer.d.ts +3 -0
- package/esm/browser/components/composer.js +28 -2
- package/esm/browser/components/conversation-scroll-hooks.d.ts +16 -0
- package/esm/browser/components/conversation-scroll-hooks.js +98 -0
- package/esm/browser/components/conversation-scroll-util.d.ts +30 -0
- package/esm/browser/components/conversation-scroll-util.js +56 -0
- package/esm/browser/components/conversation-scroll.d.ts +45 -31
- package/esm/browser/components/conversation-scroll.js +125 -123
- package/esm/browser/components/face.d.ts +24 -0
- package/esm/browser/components/face.js +42 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/media.js +59 -10
- package/esm/browser/components/message-actions.js +1 -0
- package/esm/browser/components/message-footer.d.ts +2 -0
- package/esm/browser/components/message-list.d.ts +3 -1
- package/esm/browser/components/message-list.js +55 -23
- package/esm/browser/components/phone-shell.js +2 -0
- package/esm/browser/components/session-view.d.ts +3 -1
- package/esm/browser/components/session-view.js +7 -3
- package/esm/browser/components/stop-times.d.ts +47 -0
- package/esm/browser/components/stop-times.js +81 -0
- package/esm/browser/components/use-stop-times.d.ts +3 -0
- package/esm/browser/components/use-stop-times.js +17 -0
- package/esm/browser/device/photo-picker.d.ts +14 -0
- package/esm/browser/device/photo-picker.js +48 -0
- package/esm/browser/device/row-swipe.d.ts +2 -0
- package/esm/browser/device/row-swipe.js +8 -2
- package/esm/browser/device/sheet-swipe.d.ts +1 -1
- package/esm/browser/device/sheet-swipe.js +17 -3
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-components.d.ts +18 -0
- package/esm/browser/extension/web-api-contributions.d.ts +9 -0
- package/esm/browser/extension/web-extension-api.d.ts +22 -2
- package/esm/browser/extension/web-extension-context.js +9 -1
- package/esm/browser/extension/web-extension-protocol.d.ts +13 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extensions.js +3 -0
- package/esm/browser/i18n/locales.d.ts +11 -1
- package/esm/browser/i18n/messages.d.ts +10 -0
- package/esm/browser/i18n/messages.js +20 -0
- package/esm/browser/links/links-protocol.d.ts +2 -0
- package/esm/browser/links/links.d.ts +7 -2
- package/esm/browser/links/links.js +16 -9
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +2 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +3 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +3 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +2 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +19 -0
- package/esm/browser/util/frame.d.ts +2 -0
- package/esm/browser/util/frame.js +2 -0
- package/esm/browser/util/process.d.ts +43 -1
- package/esm/browser/util/process.js +84 -3
- package/lib/browser/assistant/assistant-view.js +5 -2
- package/lib/browser/chat/chat-view.js +6 -5
- package/lib/browser/components/app-view.js +8 -4
- package/lib/browser/components/composer-box.d.ts +1 -0
- package/lib/browser/components/composer-box.js +48 -26
- package/lib/browser/components/composer.d.ts +3 -0
- package/lib/browser/components/composer.js +28 -2
- package/lib/browser/components/conversation-scroll-hooks.d.ts +17 -0
- package/lib/browser/components/conversation-scroll-hooks.js +135 -0
- package/lib/browser/components/conversation-scroll-util.d.ts +31 -0
- package/lib/browser/components/conversation-scroll-util.js +60 -0
- package/lib/browser/components/conversation-scroll.d.ts +45 -31
- package/lib/browser/components/conversation-scroll.js +126 -158
- package/lib/browser/components/face.d.ts +25 -0
- package/lib/browser/components/face.js +79 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/media.js +59 -10
- package/lib/browser/components/message-actions.js +1 -0
- package/lib/browser/components/message-footer.d.ts +2 -0
- package/lib/browser/components/message-list.d.ts +3 -1
- package/lib/browser/components/message-list.js +53 -21
- package/lib/browser/components/phone-shell.js +2 -0
- package/lib/browser/components/session-view.d.ts +3 -1
- package/lib/browser/components/session-view.js +8 -4
- package/lib/browser/components/stop-times.d.ts +48 -0
- package/lib/browser/components/stop-times.js +85 -0
- package/lib/browser/components/use-stop-times.d.ts +4 -0
- package/lib/browser/components/use-stop-times.js +53 -0
- package/lib/browser/device/photo-picker.d.ts +15 -0
- package/lib/browser/device/photo-picker.js +51 -0
- package/lib/browser/device/row-swipe.d.ts +2 -0
- package/lib/browser/device/row-swipe.js +8 -2
- package/lib/browser/device/sheet-swipe.d.ts +1 -1
- package/lib/browser/device/sheet-swipe.js +17 -3
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-components.d.ts +18 -0
- package/lib/browser/extension/web-api-contributions.d.ts +9 -0
- package/lib/browser/extension/web-extension-api.d.ts +22 -2
- package/lib/browser/extension/web-extension-context.js +10 -2
- package/lib/browser/extension/web-extension-protocol.d.ts +13 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extensions.js +3 -0
- package/lib/browser/i18n/locales.d.ts +11 -1
- package/lib/browser/i18n/messages.d.ts +10 -0
- package/lib/browser/i18n/messages.js +20 -0
- package/lib/browser/links/links-protocol.d.ts +2 -0
- package/lib/browser/links/links.d.ts +7 -2
- package/lib/browser/links/links.js +16 -9
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +2 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +3 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +3 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +2 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +19 -0
- package/lib/browser/util/frame.d.ts +2 -0
- package/lib/browser/util/frame.js +2 -0
- package/lib/browser/util/process.d.ts +43 -1
- package/lib/browser/util/process.js +86 -4
- package/package.json +7 -7
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Face = Face;
|
|
37
|
+
exports.GroupFace = GroupFace;
|
|
38
|
+
const relay_faces_1 = require("@celljs/ta-relay/lib/common/relay-faces");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
/*
|
|
41
|
+
* The faces of those who are not Ta (agents, the people of rooms), drawn from FaceUtil.art (ta-relay, which the page of
|
|
42
|
+
* web guests draws too), so that they are told apart at a glance; Ta itself keeps the dinosaur of the logo. The styles
|
|
43
|
+
* (style/surfaces.ts, `ta-face`) make them blink, and look about while they work. Web extensions draw them with
|
|
44
|
+
* `ui.Face` and `ui.GroupFace`.
|
|
45
|
+
*/
|
|
46
|
+
/** An element of SVG as React writes it: `class` as `className`, `stroke-width` as `strokeWidth`. */
|
|
47
|
+
function draw(node, key) {
|
|
48
|
+
var _a;
|
|
49
|
+
const props = {};
|
|
50
|
+
for (const [name, value] of Object.entries(node.attrs)) {
|
|
51
|
+
props[name === 'class' ? 'className' : name.replace(/-(\w)/g, (_, letter) => letter.toUpperCase())] = value;
|
|
52
|
+
}
|
|
53
|
+
return React.createElement(node.tag, { ...props, key }, ...((_a = node.children) !== null && _a !== void 0 ? _a : []).map((child, index) => draw(child, index)));
|
|
54
|
+
}
|
|
55
|
+
/** One face; the eyes, cheeks and mouth are the same on every shape. */
|
|
56
|
+
function Face({ face: given, seed = '', size, working, online }) {
|
|
57
|
+
const face = relay_faces_1.FaceUtil.pick(given, seed);
|
|
58
|
+
const art = React.useMemo(() => draw(relay_faces_1.FaceUtil.art(face)), [face]);
|
|
59
|
+
return (React.createElement("span", { className: `ta-face${working ? ' ta-face-working' : ''}`, style: { width: size, height: size }, "data-face": face, "aria-hidden": "true" },
|
|
60
|
+
React.createElement("svg", { viewBox: "0 0 40 40", width: size, height: size, focusable: "false", "aria-hidden": "true" }, art),
|
|
61
|
+
online !== undefined && React.createElement("i", { className: `ta-face-dot${online ? ' ta-face-on' : ''}` })));
|
|
62
|
+
}
|
|
63
|
+
/** A group, as a channel is drawn: the first in front, the next behind; one alone is drawn whole. */
|
|
64
|
+
function GroupFace({ members, size }) {
|
|
65
|
+
const [lead, next] = members;
|
|
66
|
+
if (!lead) {
|
|
67
|
+
return React.createElement("span", { className: "ta-group-face", style: { width: size, height: size } });
|
|
68
|
+
}
|
|
69
|
+
if (!next) {
|
|
70
|
+
return React.createElement(Face, { ...lead, size: size });
|
|
71
|
+
}
|
|
72
|
+
const small = Math.round(size * 0.76);
|
|
73
|
+
return (React.createElement("span", { className: "ta-group-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
74
|
+
React.createElement("span", { className: "ta-group-face-back" },
|
|
75
|
+
React.createElement(Face, { ...next, size: small })),
|
|
76
|
+
React.createElement("span", { className: "ta-group-face-front" },
|
|
77
|
+
React.createElement(Face, { ...lead, size: small }))));
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=face.js.map
|
|
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol';
|
|
|
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.confirmShort" | "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.offline" | "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.speakOn" | "ta.assistant.speakStop" | "ta.assistant.speakStopShort" | "ta.assistant.speakTalkShort" | "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.archived" | "ta.chat.archivedCount" | "ta.chat.archivedHint" | "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.olderCount" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.pin" | "ta.chat.pinned" | "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.chat.unpin" | "ta.chat.unseen" | "ta.close" | "ta.command.bug" | "ta.command.mcp" | "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.keyboard" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.page" | "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.recentShot" | "ta.composer.recentShotAdd" | "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.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "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.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "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.game.failed" | "ta.game.label" | "ta.game.loading" | "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.discard" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.modelSwitched" | "ta.message.notSaved" | "ta.message.quote" | "ta.message.resend" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.showLess" | "ta.message.showMore" | "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.showAll" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retry.error" | "ta.progress.retry.network" | "ta.progress.retry.overloaded" | "ta.progress.retry.rateLimit" | "ta.progress.retrying" | "ta.progress.retryingNow" | "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.scan" | "ta.scan.album" | "ta.scan.ask" | "ta.scan.askHint" | "ta.scan.askPlaceholder" | "ta.scan.askTitle" | "ta.scan.cameraFailed" | "ta.scan.copyFailed" | "ta.scan.error" | "ta.scan.errorPrompt" | "ta.scan.failed" | "ta.scan.flip" | "ta.scan.identify" | "ta.scan.identifyPrompt" | "ta.scan.instructions" | "ta.scan.myCode" | "ta.scan.noCode" | "ta.scan.note" | "ta.scan.notePrompt" | "ta.scan.pairMessage" | "ta.scan.pairTitle" | "ta.scan.result" | "ta.scan.retake" | "ta.scan.sameHost" | "ta.scan.translate" | "ta.scan.translatePrompt" | "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.chatArchive" | "ta.settings.chatArchiveHint" | "ta.settings.chatFold" | "ta.settings.chatFoldHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.chats" | "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.oneYear" | "ta.settings.recentShots" | "ta.settings.recentShotsHint" | "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.speakTalk" | "ta.settings.speakTalkHint" | "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.voiceAuto" | "ta.settings.voiceAutoNone" | "ta.settings.voiceName" | "ta.settings.voiceNameHint" | "ta.settings.voicePreview" | "ta.settings.voiceSample" | "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.talk.edit" | "ta.talk.hold" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "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.fetch" | "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.skill" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.todo" | "ta.tool.verb.viewImage" | "ta.tool.verb.webSearch" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "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" | "ta.zoom.actual" | "ta.zoom.failed" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.loading" | "ta.zoom.next" | "ta.zoom.out" | "ta.zoom.previous" | 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.confirmShort" | "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.offline" | "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.speakOn" | "ta.assistant.speakStop" | "ta.assistant.speakStopShort" | "ta.assistant.speakTalkShort" | "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.archived" | "ta.chat.archivedCount" | "ta.chat.archivedHint" | "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.olderCount" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.pin" | "ta.chat.pinned" | "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.chat.unpin" | "ta.chat.unseen" | "ta.close" | "ta.command.bug" | "ta.command.mcp" | "ta.composer.addImage" | "ta.composer.album" | "ta.composer.camera" | "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.keyboard" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.page" | "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.recentShot" | "ta.composer.recentShotAdd" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.stopping" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "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.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "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.game.failed" | "ta.game.label" | "ta.game.loading" | "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.discard" | "ta.message.failedUnknown" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.interrupted" | "ta.message.modelSwitched" | "ta.message.notSaved" | "ta.message.quote" | "ta.message.resend" | "ta.message.resume" | "ta.message.resumeText" | "ta.message.retriedFailed" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.showLess" | "ta.message.showMore" | "ta.message.silent" | "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.retried" | "ta.process.running" | "ta.process.showAll" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retry.error" | "ta.progress.retry.network" | "ta.progress.retry.overloaded" | "ta.progress.retry.rateLimit" | "ta.progress.retrying" | "ta.progress.retryingNow" | "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.scan" | "ta.scan.album" | "ta.scan.ask" | "ta.scan.askHint" | "ta.scan.askPlaceholder" | "ta.scan.askTitle" | "ta.scan.cameraFailed" | "ta.scan.copyFailed" | "ta.scan.error" | "ta.scan.errorPrompt" | "ta.scan.failed" | "ta.scan.flip" | "ta.scan.identify" | "ta.scan.identifyPrompt" | "ta.scan.instructions" | "ta.scan.myCode" | "ta.scan.noCode" | "ta.scan.note" | "ta.scan.notePrompt" | "ta.scan.pairMessage" | "ta.scan.pairTitle" | "ta.scan.result" | "ta.scan.retake" | "ta.scan.sameHost" | "ta.scan.translate" | "ta.scan.translatePrompt" | "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.chatArchive" | "ta.settings.chatArchiveHint" | "ta.settings.chatFold" | "ta.settings.chatFoldHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.chats" | "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.oneYear" | "ta.settings.recentShots" | "ta.settings.recentShotsHint" | "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.speakTalk" | "ta.settings.speakTalkHint" | "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.voiceAuto" | "ta.settings.voiceAutoNone" | "ta.settings.voiceName" | "ta.settings.voiceNameHint" | "ta.settings.voicePreview" | "ta.settings.voiceSample" | "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.talk.edit" | "ta.talk.hold" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "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.fetch" | "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.skill" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.todo" | "ta.tool.verb.viewImage" | "ta.tool.verb.webSearch" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "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" | "ta.zoom.actual" | "ta.zoom.failed" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.loading" | "ta.zoom.next" | "ta.zoom.out" | "ta.zoom.previous" | undefined;
|
|
8
8
|
add: (text: string, scanned?: boolean) => Promise<void>;
|
|
9
9
|
scan: () => Promise<void>;
|
|
10
10
|
canScan: boolean;
|
|
@@ -48,10 +48,45 @@ const lightbox_1 = require("./lightbox");
|
|
|
48
48
|
*/
|
|
49
49
|
exports.FileUrls = React.createContext(undefined);
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* What the targets replies showed came to, kept on the device (localStorage): shown again, even after the page
|
|
52
|
+
* loaded again, an image has its place before it loads and one that could not show says so at once, so that
|
|
53
|
+
* nothing under them moves.
|
|
53
54
|
*/
|
|
54
|
-
|
|
55
|
+
class ShownTargets extends lazy_1.Recent {
|
|
56
|
+
constructor(limit) {
|
|
57
|
+
var _a;
|
|
58
|
+
var _b;
|
|
59
|
+
super(limit);
|
|
60
|
+
try {
|
|
61
|
+
for (const [key, value] of JSON.parse((_b = (_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.getItem(ShownTargets.KEY)) !== null && _b !== void 0 ? _b : '[]')) {
|
|
62
|
+
super.set(key, value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (_c) {
|
|
66
|
+
// Kept by another version, or not at all: starts empty.
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
set(key, value) {
|
|
70
|
+
var _a;
|
|
71
|
+
super.set(key, value);
|
|
72
|
+
(_a = this.saving) !== null && _a !== void 0 ? _a : (this.saving = setTimeout(() => {
|
|
73
|
+
var _a;
|
|
74
|
+
this.saving = undefined;
|
|
75
|
+
try {
|
|
76
|
+
(_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.setItem(ShownTargets.KEY, JSON.stringify([...this.entries]));
|
|
77
|
+
}
|
|
78
|
+
catch (_b) {
|
|
79
|
+
// Full: kept for this page only.
|
|
80
|
+
}
|
|
81
|
+
}, 1000));
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
static storage() {
|
|
85
|
+
return typeof localStorage === 'undefined' ? undefined : localStorage;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
ShownTargets.KEY = 'ta.media.shown';
|
|
89
|
+
const shown = new ShownTargets(300);
|
|
55
90
|
/** The max-height of an image of a reply (style/conversation.ts). */
|
|
56
91
|
const MEDIA_MAX_HEIGHT = 420;
|
|
57
92
|
/** The URL of a target: as it is, or for a path, the URL of the file; null when it cannot show. */
|
|
@@ -83,10 +118,18 @@ function MediaView({ src, alt }) {
|
|
|
83
118
|
const url = useUrl(src);
|
|
84
119
|
const [failedUrl, setFailedUrl] = React.useState();
|
|
85
120
|
const [open, setOpen] = React.useState(false);
|
|
86
|
-
const
|
|
87
|
-
const
|
|
121
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
122
|
+
const known = shown.get(src);
|
|
123
|
+
const failed = (!!url && url === failedUrl) || known === false;
|
|
124
|
+
const setFailed = () => {
|
|
125
|
+
// A file of the workspace that is not there; one from the web may only be out of reach for now (offline).
|
|
126
|
+
if (markdown_1.MarkdownUtil.localPath(src) !== undefined) {
|
|
127
|
+
shown.set(src, false);
|
|
128
|
+
}
|
|
129
|
+
setFailedUrl(url !== null && url !== void 0 ? url : undefined);
|
|
130
|
+
};
|
|
88
131
|
const kind = (_a = markdown_1.MarkdownUtil.media(src)) !== null && _a !== void 0 ? _a : 'image';
|
|
89
|
-
const size = kind === 'image' ?
|
|
132
|
+
const size = kind === 'image' && known ? known : undefined;
|
|
90
133
|
// Of the size it had when known: its place does not change as it loads.
|
|
91
134
|
const box = size &&
|
|
92
135
|
// As tall as an image shows at most (.ta-media-image img), its shape kept.
|
|
@@ -95,10 +138,10 @@ function MediaView({ src, alt }) {
|
|
|
95
138
|
width: Math.round(Math.min(size.width, (size.width * MEDIA_MAX_HEIGHT) / size.height)),
|
|
96
139
|
height: 'auto',
|
|
97
140
|
};
|
|
98
|
-
if (url === undefined) {
|
|
141
|
+
if (url === undefined && !failed) {
|
|
99
142
|
return React.createElement("span", { className: `ta-media-loading ta-media-${kind}`, title: alt || src, style: box || undefined });
|
|
100
143
|
}
|
|
101
|
-
if (url
|
|
144
|
+
if (!url || failed) {
|
|
102
145
|
const name = alt || src.split(/[?#]/)[0].split('/').pop() || src;
|
|
103
146
|
return (React.createElement("span", { className: "ta-media-missing", title: src },
|
|
104
147
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ImageOff, size: 14 }),
|
|
@@ -113,8 +156,14 @@ function MediaView({ src, alt }) {
|
|
|
113
156
|
return React.createElement("audio", { className: "ta-media ta-media-audio", src: url, title: alt || undefined, controls: true, preload: "metadata", onError: setFailed });
|
|
114
157
|
default:
|
|
115
158
|
return (React.createElement(React.Fragment, null,
|
|
116
|
-
React.createElement("button", { type: "button", className:
|
|
117
|
-
React.createElement("img", { src: url, alt: alt, loading: "lazy", width: size === null || size === void 0 ? void 0 : size.width, height: size === null || size === void 0 ? void 0 : size.height, style: box || undefined, onLoad: event =>
|
|
159
|
+
React.createElement("button", { type: "button", className: `ta-media ta-media-image${size || loaded ? '' : ' ta-media-pending'}`, title: t('ta.markdown.enlarge'), onClick: () => setOpen(true) },
|
|
160
|
+
React.createElement("img", { src: url, alt: alt, loading: "lazy", width: size === null || size === void 0 ? void 0 : size.width, height: size === null || size === void 0 ? void 0 : size.height, style: box || undefined, onLoad: event => {
|
|
161
|
+
const { naturalWidth: width, naturalHeight: height } = event.currentTarget;
|
|
162
|
+
if (width > 0 && height > 0) {
|
|
163
|
+
shown.set(src, { width, height });
|
|
164
|
+
}
|
|
165
|
+
setLoaded(true);
|
|
166
|
+
}, onError: setFailed })),
|
|
118
167
|
open && React.createElement(lightbox_1.Lightbox, { src: url, alt: alt, onClose: () => setOpen(false) })));
|
|
119
168
|
}
|
|
120
169
|
}
|
|
@@ -88,6 +88,7 @@ function useMessageActions(store, server, working, cwd, composer, done) {
|
|
|
88
88
|
}, failed);
|
|
89
89
|
},
|
|
90
90
|
quote: text => { var _a; return (_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(quote_1.QuoteUtil.add(composer.current.text(), text)); },
|
|
91
|
+
resume: () => void store.send(t('ta.message.resumeText')).catch(failed),
|
|
91
92
|
rewind: message => {
|
|
92
93
|
notices
|
|
93
94
|
.confirm({
|
|
@@ -13,6 +13,8 @@ export interface MessageActionHandlers {
|
|
|
13
13
|
notify?(message: string): void;
|
|
14
14
|
/** Quotes what was said in the message box (WeChat's 引用), to ask about that part. */
|
|
15
15
|
quote?(text: string): void;
|
|
16
|
+
/** Tells the agent to go on, after a turn that stopped short (`ta.message.resumeText`). */
|
|
17
|
+
resume?(): void;
|
|
16
18
|
}
|
|
17
19
|
export declare const MessageActions: React.Context<MessageActionHandlers | undefined>;
|
|
18
20
|
export declare namespace MessageFooterUtil {
|
|
@@ -82,9 +82,11 @@ export declare function SkillUse({ skill }: {
|
|
|
82
82
|
* so that a long conversation reads as what was asked and what came of it. Before the first step the
|
|
83
83
|
* line says what ta does. The avatar stays the same element from the turn's first frame to its last.
|
|
84
84
|
*/
|
|
85
|
-
export declare function Process({ steps, active, results, tools, leading, status, }: {
|
|
85
|
+
export declare function Process({ steps, active, results, tools, leading, status, stopped, }: {
|
|
86
86
|
steps: ProcessStep[];
|
|
87
87
|
active: boolean;
|
|
88
|
+
/** It ended before it was done (an error, cut off, no reply): its work stays open, the latest steps of it. */
|
|
89
|
+
stopped?: boolean;
|
|
88
90
|
results: Map<string, ToolOutput>;
|
|
89
91
|
tools: Record<string, ToolRun>;
|
|
90
92
|
/** Before the head, on its line: the avatar of the turn. */
|
|
@@ -48,6 +48,7 @@ const lucide_react_1 = require("lucide-react");
|
|
|
48
48
|
const React = __importStar(require("react"));
|
|
49
49
|
const extension_view_1 = require("../extension/extension-view");
|
|
50
50
|
const use_t_1 = require("../i18n/use-t");
|
|
51
|
+
const code_renderers_1 = require("../markdown/code-renderers");
|
|
51
52
|
const lazy_1 = require("../markdown/lazy");
|
|
52
53
|
const message_1 = require("../util/message");
|
|
53
54
|
const process_1 = require("../util/process");
|
|
@@ -299,20 +300,33 @@ const SummaryStep = React.memo(function SummaryStep({ text }) {
|
|
|
299
300
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 14, className: "ta-step-chevron" })),
|
|
300
301
|
open && React.createElement("div", { className: "ta-thinking-text" }, text)));
|
|
301
302
|
});
|
|
302
|
-
|
|
303
|
+
/** A request that failed on the way, the work going on after it: one quiet line, which opens to the error. */
|
|
304
|
+
const ErrorStep = React.memo(function ErrorStep({ text }) {
|
|
305
|
+
const t = (0, use_t_1.useT)();
|
|
306
|
+
const [open, setOpen] = React.useState(false);
|
|
307
|
+
return (React.createElement("div", { className: "ta-step-thinking ta-step-error" },
|
|
308
|
+
React.createElement("button", { type: "button", className: "ta-step-toggle", "aria-expanded": open, onClick: () => setOpen(!open) },
|
|
309
|
+
React.createElement("span", { className: "ta-status ta-status-error" }),
|
|
310
|
+
React.createElement("span", { className: "ta-step-tag" }, t('ta.process.retried')),
|
|
311
|
+
!open && text && React.createElement("span", { className: "ta-step-preview" }, process_1.ProcessUtil.preview(text))),
|
|
312
|
+
open && text && React.createElement("div", { className: "ta-thinking-text" }, text)));
|
|
313
|
+
});
|
|
314
|
+
const TextStep = React.memo(function TextStep({ text, streaming }) {
|
|
303
315
|
return (React.createElement("div", { className: "ta-step-text" },
|
|
304
316
|
React.createElement("span", { className: "ta-status ta-status-thought" }),
|
|
305
|
-
React.createElement(markdown_1.Markdown, { text: text })));
|
|
317
|
+
React.createElement(markdown_1.Markdown, { text: text, streaming: streaming })));
|
|
306
318
|
});
|
|
307
|
-
function Step({ step, results, tools, tagged }) {
|
|
319
|
+
function Step({ step, results, tools, tagged, streaming, }) {
|
|
308
320
|
var _a;
|
|
309
321
|
switch (step.kind) {
|
|
310
322
|
case 'thinking':
|
|
311
323
|
return React.createElement(ThinkingStep, { text: step.text, tagged: tagged });
|
|
312
324
|
case 'text':
|
|
313
|
-
return React.createElement(TextStep, { text: step.text });
|
|
325
|
+
return React.createElement(TextStep, { text: step.text, streaming: streaming });
|
|
314
326
|
case 'summary':
|
|
315
327
|
return React.createElement(SummaryStep, { text: step.text });
|
|
328
|
+
case 'error':
|
|
329
|
+
return React.createElement(ErrorStep, { text: step.text });
|
|
316
330
|
default: {
|
|
317
331
|
const { id = '', name = '', arguments: args } = step.call;
|
|
318
332
|
return (React.createElement(tool_view_1.ToolView, { id: id, name: name, args: (_a = args) !== null && _a !== void 0 ? _a : {}, run: id ? tools[id] : undefined, message: id ? results.get(id) : undefined, runs: tools }));
|
|
@@ -378,17 +392,22 @@ function useFold(open, ref, slideOpen) {
|
|
|
378
392
|
* so that a long conversation reads as what was asked and what came of it. Before the first step the
|
|
379
393
|
* line says what ta does. The avatar stays the same element from the turn's first frame to its last.
|
|
380
394
|
*/
|
|
381
|
-
function Process({ steps, active, results, tools, leading, status, }) {
|
|
395
|
+
function Process({ steps, active, results, tools, leading, status, stopped, }) {
|
|
382
396
|
const t = (0, use_t_1.useT)();
|
|
383
397
|
const [manual, setManual] = React.useState();
|
|
384
398
|
const [showAll, setShowAll] = React.useState(false);
|
|
385
399
|
const id = React.useId();
|
|
386
400
|
const stepsRef = React.useRef(null);
|
|
387
401
|
const { steps: count, failed } = tool_1.ToolUtil.count(process_1.ProcessUtil.tools(steps), results, tools);
|
|
388
|
-
// Open while it works, then folded; a failed step says so on the head, quietly.
|
|
389
|
-
|
|
402
|
+
// Open while it works, then folded; a failed step says so on the head, quietly. A turn that stopped short keeps
|
|
403
|
+
// its work open: there is no reply, and its last steps say where it stopped.
|
|
404
|
+
const open = manual !== null && manual !== void 0 ? manual : (active || !!stopped);
|
|
390
405
|
const shown = useFold(open && steps.length > 0, stepsRef, !active);
|
|
391
|
-
const folded = process_1.ProcessUtil.fold(steps, active, showAll);
|
|
406
|
+
const folded = process_1.ProcessUtil.fold(steps, active || !!stopped, showAll);
|
|
407
|
+
// Folded, the cards on the way stay under the head: a choice asked in the middle is not hidden with the work.
|
|
408
|
+
const renderers = React.useContext(code_renderers_1.CodeRenderers);
|
|
409
|
+
const pinned = open ? [] : steps.filter(step => process_1.ProcessUtil.pinned(step, renderers));
|
|
410
|
+
const inline = pinned.length ? folded.steps.filter(step => !process_1.ProcessUtil.pinned(step, renderers)) : folded.steps;
|
|
392
411
|
// The earlier steps count as the head does: the calls among them, not the thoughts.
|
|
393
412
|
const earlier = folded.hidden ? tool_1.ToolUtil.count(process_1.ProcessUtil.tools(steps.slice(0, folded.hidden)), results, tools).steps : 0;
|
|
394
413
|
// Only thoughts: the head already says so, the steps need not say it again.
|
|
@@ -405,7 +424,8 @@ function Process({ steps, active, results, tools, leading, status, }) {
|
|
|
405
424
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 14, className: "ta-process-chevron" }))) : (status)),
|
|
406
425
|
shown && (React.createElement("div", { id: id, ref: stepsRef, className: "ta-process-steps" },
|
|
407
426
|
folded.hidden > 0 && (React.createElement("button", { type: "button", className: "ta-link ta-more", onClick: () => setShowAll(true) }, earlier ? t('ta.process.earlier', { count: earlier }) : t('ta.process.showAll'))),
|
|
408
|
-
|
|
427
|
+
inline.map((step, index) => (React.createElement(Step, { key: step.key, step: step, results: results, tools: tools, tagged: !thoughtOnly, streaming: active && index === inline.length - 1 }))))),
|
|
428
|
+
pinned.map(step => (React.createElement(markdown_1.Markdown, { key: step.key, text: step.text })))));
|
|
409
429
|
}
|
|
410
430
|
/** A turn that has shown nothing yet: what ta does goes on its head. */
|
|
411
431
|
function quiet(item) {
|
|
@@ -425,8 +445,9 @@ function Turn({ item, tools, mood, status, latest, }) {
|
|
|
425
445
|
const session = React.useContext(exports.ConversationSession);
|
|
426
446
|
const results = message_1.MessageUtil.results(item.messages);
|
|
427
447
|
const { errorMessage } = ((_a = item.last) !== null && _a !== void 0 ? _a : {});
|
|
428
|
-
const
|
|
448
|
+
const ending = process_1.ProcessUtil.ending(item);
|
|
429
449
|
const reply = item.reply.join('\n\n').trim();
|
|
450
|
+
const actions = React.useContext(message_footer_1.MessageActions);
|
|
430
451
|
const [menu, onContextMenu] = (0, message_menu_1.useMessageMenu)({
|
|
431
452
|
kind: 'turn',
|
|
432
453
|
last: item.active ? undefined : item.last,
|
|
@@ -435,13 +456,25 @@ function Turn({ item, tools, mood, status, latest, }) {
|
|
|
435
456
|
messages: item.messages,
|
|
436
457
|
});
|
|
437
458
|
return (React.createElement("div", { className: `ta-message ta-assistant ${item.active ? 'ta-turn-live' : ''}`, onContextMenu: onContextMenu },
|
|
438
|
-
React.createElement(Process, { steps: item.steps, active: item.active, results: results, tools: tools, leading: React.createElement(TurnAvatar, { mood: mood }), status: status }),
|
|
459
|
+
React.createElement(Process, { steps: item.steps, active: item.active, stopped: ending !== undefined && ending !== 'aborted', results: results, tools: tools, leading: React.createElement(TurnAvatar, { mood: mood }), status: status }),
|
|
439
460
|
item.reply.map((text, index) => (React.createElement(markdown_1.Markdown, { key: index, text: text, streaming: item.active && index === item.reply.length - 1 }))),
|
|
440
|
-
|
|
441
|
-
|
|
461
|
+
ending && ending !== 'aborted' && (React.createElement(TurnEnd, { ending: ending, error: errorMessage, retries: item.steps.filter(step => step.kind === 'error').length, resume: latest && !(actions === null || actions === void 0 ? void 0 : actions.working) ? actions === null || actions === void 0 ? void 0 : actions.resume : undefined })),
|
|
462
|
+
ending === 'aborted' && React.createElement("div", { className: "ta-muted ta-small" }, t('ta.message.stopped')),
|
|
442
463
|
!item.active && React.createElement(message_footer_1.TurnFooter, { messages: item.messages, last: item.last, reply: reply, session: session, latest: latest }),
|
|
443
464
|
menu));
|
|
444
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* Why a turn stopped short, under it: the error (and that pi retried it, how many times), or that it was cut off,
|
|
468
|
+
* or ended without a word; the last turn has a button to go on, which says so to the agent.
|
|
469
|
+
*/
|
|
470
|
+
function TurnEnd({ ending, error, retries, resume }) {
|
|
471
|
+
const t = (0, use_t_1.useT)();
|
|
472
|
+
const action = resume && (React.createElement("button", { type: "button", className: "ta-button", onClick: resume }, t('ta.message.resume')));
|
|
473
|
+
if (ending === 'error') {
|
|
474
|
+
return (React.createElement(callout_1.Callout, { level: "error", detail: retries ? t('ta.message.retriedFailed', { count: retries }) : undefined, action: action }, (error === null || error === void 0 ? void 0 : error.trim()) || t('ta.message.failedUnknown')));
|
|
475
|
+
}
|
|
476
|
+
return (React.createElement(callout_1.Callout, { level: "warning", action: action }, t(ending === 'interrupted' ? 'ta.message.interrupted' : 'ta.message.silent')));
|
|
477
|
+
}
|
|
445
478
|
/** `!command` of a user, which pi records as its own kind of message. */
|
|
446
479
|
function BashMessage({ message }) {
|
|
447
480
|
const { command, output, exitCode } = message;
|
|
@@ -494,6 +527,7 @@ const SETTLED_AFTER = 4;
|
|
|
494
527
|
/** The conversation; tool results show with the calls they answer. `rows`: only its latest rows are drawn, more as asked. */
|
|
495
528
|
function MessageList({ state, outbox, rows }) {
|
|
496
529
|
var _a;
|
|
530
|
+
var _b;
|
|
497
531
|
const renderers = React.useContext(extension_view_1.MessageRenderers);
|
|
498
532
|
const items = React.useMemo(() => process_1.ProcessUtil.items(state.messages, state.working, state.start, renderers), [state.messages, state.working, state.start, renderers]);
|
|
499
533
|
const breaks = React.useMemo(() => process_1.ProcessUtil.timeBreaks(process_1.ProcessUtil.starts(items), index => process_1.ProcessUtil.shown(items[index], renderers)), [items, renderers]);
|
|
@@ -512,13 +546,11 @@ function MessageList({ state, outbox, rows }) {
|
|
|
512
546
|
var _a;
|
|
513
547
|
firstKey.current = (_a = items[from]) === null || _a === void 0 ? void 0 : _a.key;
|
|
514
548
|
});
|
|
515
|
-
// Rows that come after the list is drawn come in with a motion; those of a conversation opened or loaded again,
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
count.current = items.length;
|
|
549
|
+
// Rows that come after the list is drawn come in with a motion; those of a conversation opened or loaded again,
|
|
550
|
+
// and those already there when earlier messages come in front of them, still: by key, not by index.
|
|
551
|
+
const freshRows = React.useRef(undefined);
|
|
552
|
+
(_b = freshRows.current) !== null && _b !== void 0 ? _b : (freshRows.current = new process_1.FreshRows(items));
|
|
553
|
+
const fresh = freshRows.current.from(items);
|
|
522
554
|
let lastTurn = items.length - 1;
|
|
523
555
|
while (lastTurn >= 0 && items[lastTurn].kind !== 'turn') {
|
|
524
556
|
lastTurn--;
|
|
@@ -533,7 +565,7 @@ function MessageList({ state, outbox, rows }) {
|
|
|
533
565
|
'ta-thread-item',
|
|
534
566
|
index >= front && index < items.length - SETTLED_AFTER && 'ta-settled',
|
|
535
567
|
index === items.length - 1 && 'ta-thread-last',
|
|
536
|
-
index >=
|
|
568
|
+
index >= fresh && 'ta-thread-new',
|
|
537
569
|
item.kind === 'message' && item.message.role === 'user' && conversation_scroll_1.ASK_CLASS,
|
|
538
570
|
]
|
|
539
571
|
.filter(Boolean)
|
|
@@ -177,6 +177,8 @@ function PhoneShell(props) {
|
|
|
177
177
|
sheet: '.ta-phone > .ta-editors-pane',
|
|
178
178
|
under: screenOpen ? '.ta-phone-screen' : '.ta-phone-home',
|
|
179
179
|
scrim: '.ta-phone-dim[data-for="workbench"]',
|
|
180
|
+
// A row swipes to the left as the workbench comes: over one, the workbench comes only from the edge.
|
|
181
|
+
edgeOver: '.ta-swipe-row[data-swipeable]',
|
|
180
182
|
});
|
|
181
183
|
// The layers in the order they stack, the top first: the workbench, what is pushed over the screen or the launcher, then
|
|
182
184
|
// the screen or what came out over the first tab. Going back closes those past the depth the history is at.
|
|
@@ -14,6 +14,8 @@ export interface SessionViewProps {
|
|
|
14
14
|
trailing?: React.ReactNode;
|
|
15
15
|
/** Instead of the hint of an empty conversation. */
|
|
16
16
|
empty?: React.ReactNode;
|
|
17
|
+
/** Over the message box and what comes and goes over it: a row that opens and closes by itself (the connection on a phone). */
|
|
18
|
+
notice?: React.ReactNode;
|
|
17
19
|
aboveComposer?: React.ReactNode;
|
|
18
20
|
belowComposer?: React.ReactNode;
|
|
19
21
|
/** In the box at the start: the message a fork left out. */
|
|
@@ -21,5 +23,5 @@ export interface SessionViewProps {
|
|
|
21
23
|
/** In a narrow column, as a tab of the workbench: no bar on top. */
|
|
22
24
|
compact?: boolean;
|
|
23
25
|
}
|
|
24
|
-
export declare function SessionView({ store, server, workspace, info, onClosed, onActivity, leading, trailing, empty, aboveComposer, belowComposer, draftText, compact, }: SessionViewProps): React.JSX.Element;
|
|
26
|
+
export declare function SessionView({ store, server, workspace, info, onClosed, onActivity, leading, trailing, empty, notice, aboveComposer, belowComposer, draftText, compact, }: SessionViewProps): React.JSX.Element;
|
|
25
27
|
//# sourceMappingURL=session-view.d.ts.map
|
|
@@ -46,6 +46,7 @@ const terminal_text_1 = require("../util/terminal-text");
|
|
|
46
46
|
const composer_1 = require("./composer");
|
|
47
47
|
const composer_addons_1 = require("./composer-addons");
|
|
48
48
|
const conversation_scroll_1 = require("./conversation-scroll");
|
|
49
|
+
const conversation_scroll_hooks_1 = require("./conversation-scroll-hooks");
|
|
49
50
|
const dialog_view_1 = require("./dialog-view");
|
|
50
51
|
const earlier_messages_1 = require("./earlier-messages");
|
|
51
52
|
const grow_box_1 = require("./grow-box");
|
|
@@ -56,6 +57,7 @@ const message_footer_1 = require("./message-footer");
|
|
|
56
57
|
const message_list_1 = require("./message-list");
|
|
57
58
|
const session_settings_1 = require("./session-settings");
|
|
58
59
|
const terminal_art_1 = require("./terminal-art");
|
|
60
|
+
const use_stop_times_1 = require("./use-stop-times");
|
|
59
61
|
/**
|
|
60
62
|
* What the extensions of the session say with `notify` goes to the notices of the page; what was said before it
|
|
61
63
|
* opened stays quiet. A picture in it (a QR code to sign in) is drawn, and stays until the next notice of the
|
|
@@ -103,19 +105,20 @@ function StatusChip({ text }) {
|
|
|
103
105
|
segment.tone && React.createElement("span", { className: `ta-status ta-status-${segment.tone}` }),
|
|
104
106
|
segment.text)))));
|
|
105
107
|
}
|
|
106
|
-
function SessionView({ store, server, workspace, info, onClosed, onActivity, leading, trailing, empty, aboveComposer, belowComposer, draftText, compact = false, }) {
|
|
108
|
+
function SessionView({ store, server, workspace, info, onClosed, onActivity, leading, trailing, empty, notice, aboveComposer, belowComposer, draftText, compact = false, }) {
|
|
107
109
|
var _a;
|
|
108
110
|
const t = (0, use_t_1.useT)();
|
|
109
111
|
const state = (0, hooks_1.useSessionState)(store);
|
|
110
112
|
const [, notices] = (0, hooks_1.useNotices)();
|
|
111
113
|
const asked = (0, earlier_messages_1.useAsked)(state);
|
|
112
114
|
// Another store in the same view (the one attached for what the device showed) is no message sent.
|
|
113
|
-
const scroller = (0,
|
|
115
|
+
const scroller = (0, conversation_scroll_hooks_1.useConversationScroll)(asked, { key: store.sessionId });
|
|
114
116
|
const rows = (0, earlier_messages_1.useRowWindow)();
|
|
115
117
|
(0, earlier_messages_1.useEarlierMessages)(store, state, scroller, rows);
|
|
116
|
-
const [away, toBottom] = (0,
|
|
118
|
+
const [away, toBottom] = (0, conversation_scroll_hooks_1.useAwayFromBottom)(scroller);
|
|
117
119
|
(0, device_1.useKeyboardDismiss)(scroller);
|
|
118
120
|
const fail = (cause) => notices.error(cause);
|
|
121
|
+
const stopTimed = (0, use_stop_times_1.useStopTimes)(store.sessionId, 'chat');
|
|
119
122
|
useSessionNotices(store, state.notices);
|
|
120
123
|
const { settings, actions } = (0, session_settings_1.useSessionSettings)(server, (0, hooks_1.useSettingsServer)(), store, state.working, t, fail);
|
|
121
124
|
const composer = React.useRef(null);
|
|
@@ -179,12 +182,13 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
|
|
|
179
182
|
React.createElement("div", { className: "ta-bottom" },
|
|
180
183
|
away && (React.createElement("button", { type: "button", className: "ta-to-bottom", "aria-label": t('ta.session.toBottom'), title: t('ta.session.toBottom'), onClick: toBottom },
|
|
181
184
|
React.createElement(lucide_react_1.ArrowDown, { size: 18 }))),
|
|
185
|
+
notice,
|
|
182
186
|
React.createElement(grow_box_1.GrowBox, null,
|
|
183
187
|
dialog && React.createElement(dialog_view_1.DialogView, { key: dialog.id, request: dialog, respond: response => store.respondUi(response).catch(fail) }),
|
|
184
188
|
aboveComposer,
|
|
185
189
|
widgetsAt('aboveEditor'),
|
|
186
190
|
addons.above),
|
|
187
|
-
React.createElement(composer_1.Composer, { ref: composer, store: store, server: server, workspace: workspace, working: state.working, commands: settings.commands, cwd: info === null || info === void 0 ? void 0 : info.cwd, actions: [actions, ...addons.actions], recentShots: recentShots, onError: fail }),
|
|
191
|
+
React.createElement(composer_1.Composer, { ref: composer, store: store, server: server, workspace: workspace, working: state.working, commands: settings.commands, cwd: info === null || info === void 0 ? void 0 : info.cwd, actions: [actions, ...addons.actions], recentShots: recentShots, onStopTimed: stopTimed, onError: fail }),
|
|
188
192
|
belowComposer,
|
|
189
193
|
widgetsAt('belowEditor'),
|
|
190
194
|
statuses.length > 0 && (React.createElement("div", { className: "ta-statusline" }, statuses.map(([key, text]) => (React.createElement(StatusChip, { key: key, text: text }))))))));
|