@celljs/ta-web 4.13.0 → 4.14.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 +2 -2
- package/README.md +2 -2
- package/esm/browser/assistant/assistant-extension.js +3 -2
- package/esm/browser/assistant/assistant-state.js +2 -2
- package/esm/browser/components/app-view.js +4 -0
- package/esm/browser/components/chat-asks.d.ts +8 -0
- package/esm/browser/components/chat-asks.js +10 -0
- package/esm/browser/components/chat-list.js +11 -1
- package/esm/browser/components/composer-box.d.ts +2 -0
- package/esm/browser/components/composer-box.js +2 -1
- package/esm/browser/components/composer.d.ts +3 -1
- package/esm/browser/components/composer.js +16 -4
- package/esm/browser/components/face.d.ts +13 -1
- package/esm/browser/components/face.js +16 -1
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/message-list.js +20 -1
- package/esm/browser/components/people.d.ts +32 -0
- package/esm/browser/components/people.js +71 -0
- package/esm/browser/components/session-view.d.ts +1 -1
- package/esm/browser/components/session-view.js +56 -36
- package/esm/browser/components/settings-parts.js +14 -3
- package/esm/browser/components/sign-in-setup.d.ts +16 -0
- package/esm/browser/components/sign-in-setup.js +116 -0
- package/esm/browser/components/use-seen-chats.d.ts +2 -0
- package/esm/browser/components/use-seen-chats.js +2 -2
- package/esm/browser/extension/web-api-components.d.ts +12 -0
- package/esm/browser/extension/web-extension-api.d.ts +2 -2
- package/esm/browser/i18n/locales.d.ts +35 -1
- package/esm/browser/i18n/messages.d.ts +34 -0
- package/esm/browser/i18n/messages.js +69 -0
- package/esm/browser/presence/presence-reporter.d.ts +32 -0
- package/esm/browser/presence/presence-reporter.js +71 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +24 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +8 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +8 -0
- package/esm/browser/workbench-protocol.d.ts +9 -0
- package/esm/browser/workbench-util.d.ts +2 -0
- package/esm/browser/workbench-util.js +18 -0
- package/esm/browser/workbench.d.ts +3 -0
- package/esm/browser/workbench.js +14 -4
- package/lib/browser/assistant/assistant-extension.js +3 -2
- package/lib/browser/assistant/assistant-state.js +1 -1
- package/lib/browser/components/app-view.js +4 -0
- package/lib/browser/components/chat-asks.d.ts +8 -0
- package/lib/browser/components/chat-asks.js +10 -0
- package/lib/browser/components/chat-list.js +11 -1
- package/lib/browser/components/composer-box.d.ts +2 -0
- package/lib/browser/components/composer-box.js +2 -1
- package/lib/browser/components/composer.d.ts +3 -1
- package/lib/browser/components/composer.js +16 -4
- package/lib/browser/components/face.d.ts +13 -1
- package/lib/browser/components/face.js +16 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/message-list.js +19 -0
- package/lib/browser/components/people.d.ts +33 -0
- package/lib/browser/components/people.js +109 -0
- package/lib/browser/components/session-view.d.ts +1 -1
- package/lib/browser/components/session-view.js +56 -36
- package/lib/browser/components/settings-parts.js +14 -3
- package/lib/browser/components/sign-in-setup.d.ts +17 -0
- package/lib/browser/components/sign-in-setup.js +153 -0
- package/lib/browser/components/use-seen-chats.d.ts +2 -0
- package/lib/browser/components/use-seen-chats.js +3 -2
- package/lib/browser/extension/web-api-components.d.ts +12 -0
- package/lib/browser/extension/web-extension-api.d.ts +2 -2
- package/lib/browser/i18n/locales.d.ts +35 -1
- package/lib/browser/i18n/messages.d.ts +34 -0
- package/lib/browser/i18n/messages.js +69 -0
- package/lib/browser/presence/presence-reporter.d.ts +33 -0
- package/lib/browser/presence/presence-reporter.js +75 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +24 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +8 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +8 -0
- package/lib/browser/workbench-protocol.d.ts +9 -0
- package/lib/browser/workbench-util.d.ts +2 -0
- package/lib/browser/workbench-util.js +18 -0
- package/lib/browser/workbench.d.ts +3 -0
- package/lib/browser/workbench.js +14 -4
- package/package.json +10 -10
|
@@ -37,6 +37,8 @@ exports.Face = Face;
|
|
|
37
37
|
exports.GroupFace = GroupFace;
|
|
38
38
|
const relay_faces_1 = require("@celljs/ta-relay/lib/common/relay-faces");
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
|
+
const dino_species_1 = require("../avatar/dino-species");
|
|
41
|
+
const ta_avatar_1 = require("./ta-avatar");
|
|
40
42
|
/*
|
|
41
43
|
* The faces of those who are not Ta (agents, the people of rooms), drawn from FaceUtil.art (ta-relay, which the page of
|
|
42
44
|
* web guests draws too), so that they are told apart at a glance; Ta itself keeps the dinosaur of the logo. The styles
|
|
@@ -53,7 +55,20 @@ function draw(node, key) {
|
|
|
53
55
|
return React.createElement(node.tag, { ...props, key }, ...((_a = node.children) !== null && _a !== void 0 ? _a : []).map((child, index) => draw(child, index)));
|
|
54
56
|
}
|
|
55
57
|
/** One face; the eyes, cheeks and mouth are the same on every shape. */
|
|
56
|
-
function Face(
|
|
58
|
+
function Face(props) {
|
|
59
|
+
if (props.double) {
|
|
60
|
+
return React.createElement(DoubleFace, { size: props.size, online: props.online });
|
|
61
|
+
}
|
|
62
|
+
const species = dino_species_1.DinoSpecies.IDS.find(id => id === props.look);
|
|
63
|
+
return species ? React.createElement(DoubleFace, { species: species, size: props.size, online: props.online }) : React.createElement(ShapeFace, { ...props });
|
|
64
|
+
}
|
|
65
|
+
/** A Ta as its double: the close-up of the dinosaur, as the account shows it; this Ta's own without `species`. */
|
|
66
|
+
function DoubleFace({ species, size, online }) {
|
|
67
|
+
return (React.createElement("span", { className: "ta-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
68
|
+
React.createElement(ta_avatar_1.DinoFace, { species: species, size: size }),
|
|
69
|
+
online !== undefined && React.createElement("i", { className: `ta-face-dot${online ? ' ta-face-on' : ''}` })));
|
|
70
|
+
}
|
|
71
|
+
function ShapeFace({ face: given, seed = '', size, working, online }) {
|
|
57
72
|
const face = relay_faces_1.FaceUtil.pick(given, seed);
|
|
58
73
|
const art = React.useMemo(() => draw(relay_faces_1.FaceUtil.art(face)), [face]);
|
|
59
74
|
return (React.createElement("span", { className: `ta-face${working ? ' ta-face-working' : ''}`, style: { width: size, height: size }, "data-face": face, "aria-hidden": "true" },
|
|
@@ -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.forbidden" | "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.asking" | "ta.chat.asks" | "ta.chat.asksCount" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.letGo" | "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.toAsk" | "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.outdated" | "ta.connection.reload" | "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.forbidden" | "ta.error.forbiddenAsk" | "ta.error.forbiddenHint" | "ta.error.forbiddenNever" | "ta.error.limit" | "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.compactedFrom" | "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.queued" | "ta.message.queuedTitle" | "ta.message.quote" | "ta.message.resend" | "ta.message.resume" | "ta.message.resumeText" | "ta.message.resumed" | "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.steered" | "ta.message.steeredTitle" | "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.requestFailed" | "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.keepAwake" | "ta.relay.keepAwakeHint" | "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.relays.add" | "ta.relays.addButton" | "ta.relays.addHint" | "ta.relays.addPlaceholder" | "ta.relays.broken" | "ta.relays.drive" | "ta.relays.driveHint" | "ta.relays.driveUse" | "ta.relays.feature.devices" | "ta.relays.feature.devicesHint" | "ta.relays.feature.rooms" | "ta.relays.feature.roomsHint" | "ta.relays.feature.share" | "ta.relays.feature.shareHint" | "ta.relays.feature.sync" | "ta.relays.feature.syncHint" | "ta.relays.file" | "ta.relays.folderOnly" | "ta.relays.limits" | "ta.relays.memory" | "ta.relays.official" | "ta.relays.offline" | "ta.relays.online" | "ta.relays.onlineNoTime" | "ta.relays.optional" | "ta.relays.remove" | "ta.relays.storeAdd" | "ta.relays.storeName" | "ta.relays.storeNote" | "ta.relays.storeOnly" | "ta.relays.storeOpen" | "ta.relays.storeType" | "ta.relays.title" | "ta.relays.unavailable" | "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.exitCode" | "ta.tool.failedCalls" | "ta.tool.hideScript" | "ta.tool.moreEntries" | "ta.tool.noOutput" | "ta.tool.printed" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.deleteScheduled" | "ta.tool.verb.deleteTeam" | "ta.tool.verb.edit" | "ta.tool.verb.editImage" | "ta.tool.verb.fetch" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listScheduled" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.publish" | "ta.tool.verb.read" | "ta.tool.verb.scheduleTask" | "ta.tool.verb.sendMessage" | "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.forbidden" | "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.asking" | "ta.chat.asks" | "ta.chat.asksCount" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.letGo" | "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.replyingFor" | "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.toAsk" | "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.outdated" | "ta.connection.reload" | "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.forbidden" | "ta.error.forbiddenAsk" | "ta.error.forbiddenHint" | "ta.error.forbiddenNever" | "ta.error.limit" | "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.compactedFrom" | "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.queued" | "ta.message.queuedTitle" | "ta.message.quote" | "ta.message.resend" | "ta.message.resume" | "ta.message.resumeText" | "ta.message.resumed" | "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.steered" | "ta.message.steeredTitle" | "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.presence.asked" | "ta.presence.more" | "ta.presence.owner" | "ta.presence.separator" | "ta.presence.typing" | "ta.presence.viewing" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.requestFailed" | "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.keepAwake" | "ta.relay.keepAwakeHint" | "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.relays.add" | "ta.relays.addButton" | "ta.relays.addHint" | "ta.relays.addPlaceholder" | "ta.relays.broken" | "ta.relays.drive" | "ta.relays.driveHint" | "ta.relays.driveUse" | "ta.relays.feature.devices" | "ta.relays.feature.devicesHint" | "ta.relays.feature.rooms" | "ta.relays.feature.roomsHint" | "ta.relays.feature.share" | "ta.relays.feature.shareHint" | "ta.relays.feature.sync" | "ta.relays.feature.syncHint" | "ta.relays.file" | "ta.relays.folderOnly" | "ta.relays.limits" | "ta.relays.memory" | "ta.relays.official" | "ta.relays.offline" | "ta.relays.online" | "ta.relays.onlineNoTime" | "ta.relays.optional" | "ta.relays.remove" | "ta.relays.storeAdd" | "ta.relays.storeName" | "ta.relays.storeNote" | "ta.relays.storeOnly" | "ta.relays.storeOpen" | "ta.relays.storeType" | "ta.relays.title" | "ta.relays.unavailable" | "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.signInSetup.add" | "ta.signInSetup.callback" | "ta.signInSetup.copied" | "ta.signInSetup.copy" | "ta.signInSetup.edit" | "ta.signInSetup.field.appId" | "ta.signInSetup.field.appSecret" | "ta.signInSetup.field.clientId" | "ta.signInSetup.field.clientSecret" | "ta.signInSetup.field.issuer" | "ta.signInSetup.field.name" | "ta.signInSetup.field.url" | "ta.signInSetup.fromEnv" | "ta.signInSetup.hint" | "ta.signInSetup.incomplete" | "ta.signInSetup.off" | "ta.signInSetup.oidc" | "ta.signInSetup.on" | "ta.signInSetup.optional" | "ta.signInSetup.remove" | "ta.signInSetup.removeConfirm" | "ta.signInSetup.removeDetail" | "ta.signInSetup.removed" | "ta.signInSetup.save" | "ta.signInSetup.saved" | "ta.signInSetup.secretKept" | "ta.signInSetup.title" | "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.exitCode" | "ta.tool.failedCalls" | "ta.tool.hideScript" | "ta.tool.moreEntries" | "ta.tool.noOutput" | "ta.tool.printed" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.deleteScheduled" | "ta.tool.verb.deleteTeam" | "ta.tool.verb.edit" | "ta.tool.verb.editImage" | "ta.tool.verb.fetch" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listScheduled" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.publish" | "ta.tool.verb.read" | "ta.tool.verb.scheduleTask" | "ta.tool.verb.sendMessage" | "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;
|
|
@@ -59,11 +59,13 @@ const progress_1 = require("../util/progress");
|
|
|
59
59
|
const tool_1 = require("../util/tool");
|
|
60
60
|
const callout_1 = require("./callout");
|
|
61
61
|
const conversation_scroll_1 = require("./conversation-scroll");
|
|
62
|
+
const face_1 = require("./face");
|
|
62
63
|
const icon_1 = require("./icon");
|
|
63
64
|
const lightbox_1 = require("./lightbox");
|
|
64
65
|
const markdown_1 = require("./markdown");
|
|
65
66
|
const message_footer_1 = require("./message-footer");
|
|
66
67
|
const message_menu_1 = require("./message-menu");
|
|
68
|
+
const people_1 = require("./people");
|
|
67
69
|
const run_status_1 = require("./run-status");
|
|
68
70
|
const said_text_1 = require("./said-text");
|
|
69
71
|
const ta_avatar_1 = require("./ta-avatar");
|
|
@@ -307,10 +309,27 @@ function UserMarks({ blocks, queued }) {
|
|
|
307
309
|
queued && React.createElement(QueuedMark, null)));
|
|
308
310
|
}
|
|
309
311
|
function UserBubble({ message, blocks, text, copied, skill, queued, }) {
|
|
312
|
+
var _a, _b;
|
|
310
313
|
const [menu, onContextMenu] = (0, message_menu_1.useMessageMenu)({ kind: 'user', message, text: copied });
|
|
311
314
|
const marks = React.createElement(UserMarks, { blocks: blocks, queued: queued });
|
|
312
315
|
const outbox = React.useContext(Outbox);
|
|
316
|
+
const people = React.useContext(people_1.MessagePeople);
|
|
313
317
|
const sent = outbox.of.get(message);
|
|
318
|
+
// Someone else's in the same Ta (TaMessageAuthor): on the left with their face and name, as in a group chat.
|
|
319
|
+
const author = sent ? undefined : ta_protocol_1.TaMessageAuthor.of(message_1.MessageUtil.text(blocks));
|
|
320
|
+
const by = (_a = author === null || author === void 0 ? void 0 : author.id) !== null && _a !== void 0 ? _a : ta_protocol_1.TA_OWNER;
|
|
321
|
+
if (!sent && by !== people.me) {
|
|
322
|
+
return (React.createElement("div", { className: "ta-message ta-user ta-user-other", onContextMenu: onContextMenu },
|
|
323
|
+
React.createElement("div", { className: "ta-user-by" },
|
|
324
|
+
React.createElement(face_1.Face, { seed: by, size: 30, double: by === ta_protocol_1.TA_OWNER }),
|
|
325
|
+
React.createElement("div", { className: "ta-user-by-body" },
|
|
326
|
+
React.createElement("span", { className: "ta-user-by-name" }, (_b = author === null || author === void 0 ? void 0 : author.name) !== null && _b !== void 0 ? _b : people.ownerName),
|
|
327
|
+
marks,
|
|
328
|
+
skill && React.createElement(SkillUse, { skill: skill }),
|
|
329
|
+
React.createElement(UserSaid, { blocks: blocks, text: text, timestamp: message.timestamp }))),
|
|
330
|
+
React.createElement(message_footer_1.UserFooter, { message: message, text: copied }),
|
|
331
|
+
menu));
|
|
332
|
+
}
|
|
314
333
|
if (sent) {
|
|
315
334
|
// Not in the session yet: nothing to branch from or rewind to.
|
|
316
335
|
return (React.createElement("div", { className: `ta-message ta-user ${sent.failed ? 'ta-user-failed' : 'ta-user-sending'}` },
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type TaSessionPerson } from '@celljs/ta-protocol';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** Who the page is, and what the user of the Ta is called: a message of someone else is drawn as theirs (TaMessageAuthor). */
|
|
4
|
+
export interface MessagePeopleValue {
|
|
5
|
+
/** The principal of this page: TA_OWNER, or one let in (TaServerInfo.member). */
|
|
6
|
+
me: string;
|
|
7
|
+
/** The name of the user of the Ta, for their messages in the page of one let in. */
|
|
8
|
+
ownerName: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const MessagePeople: React.Context<MessagePeopleValue>;
|
|
11
|
+
/** What the others at a conversation do (TaSessionInfo.people), as the page says it. */
|
|
12
|
+
export declare namespace PresenceUtil {
|
|
13
|
+
function viewing(people: readonly TaSessionPerson[] | undefined): TaSessionPerson[];
|
|
14
|
+
function typing(people: readonly TaSessionPerson[] | undefined): TaSessionPerson[];
|
|
15
|
+
function asked(people: readonly TaSessionPerson[] | undefined): TaSessionPerson[];
|
|
16
|
+
/** Their names, two at most, then how many more (`more` says it with what comes before it). */
|
|
17
|
+
function names(people: readonly TaSessionPerson[], separator: string, more: (count: number) => string): string;
|
|
18
|
+
/** The same people the same: a row is not drawn again for a list that says the same. */
|
|
19
|
+
function same(a: readonly TaSessionPerson[] | undefined, b: readonly TaSessionPerson[] | undefined): boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Faces of people, one over the next, `max` at most and how many more. */
|
|
22
|
+
export declare function PeopleFaces({ people, size, max, label }: {
|
|
23
|
+
people: readonly TaSessionPerson[];
|
|
24
|
+
size: number;
|
|
25
|
+
max?: number;
|
|
26
|
+
label?: string;
|
|
27
|
+
}): React.JSX.Element | null;
|
|
28
|
+
/** Over the message box: who else types in it, or whose message Ta answers now. Nothing when neither. */
|
|
29
|
+
export declare function PresenceLine({ people, working }: {
|
|
30
|
+
people: readonly TaSessionPerson[] | undefined;
|
|
31
|
+
working: boolean;
|
|
32
|
+
}): React.JSX.Element | null;
|
|
33
|
+
//# sourceMappingURL=people.d.ts.map
|
|
@@ -0,0 +1,109 @@
|
|
|
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.PresenceUtil = exports.MessagePeople = void 0;
|
|
37
|
+
exports.PeopleFaces = PeopleFaces;
|
|
38
|
+
exports.PresenceLine = PresenceLine;
|
|
39
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const use_t_1 = require("../i18n/use-t");
|
|
42
|
+
const face_1 = require("./face");
|
|
43
|
+
exports.MessagePeople = React.createContext({ me: ta_protocol_1.TA_OWNER, ownerName: '' });
|
|
44
|
+
/** What the others at a conversation do (TaSessionInfo.people), as the page says it. */
|
|
45
|
+
var PresenceUtil;
|
|
46
|
+
(function (PresenceUtil) {
|
|
47
|
+
function viewing(people) {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = people === null || people === void 0 ? void 0 : people.filter(person => person.viewing)) !== null && _a !== void 0 ? _a : [];
|
|
50
|
+
}
|
|
51
|
+
PresenceUtil.viewing = viewing;
|
|
52
|
+
function typing(people) {
|
|
53
|
+
var _a;
|
|
54
|
+
return (_a = people === null || people === void 0 ? void 0 : people.filter(person => person.typing)) !== null && _a !== void 0 ? _a : [];
|
|
55
|
+
}
|
|
56
|
+
PresenceUtil.typing = typing;
|
|
57
|
+
function asked(people) {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = people === null || people === void 0 ? void 0 : people.filter(person => person.asked)) !== null && _a !== void 0 ? _a : [];
|
|
60
|
+
}
|
|
61
|
+
PresenceUtil.asked = asked;
|
|
62
|
+
/** Their names, two at most, then how many more (`more` says it with what comes before it). */
|
|
63
|
+
function names(people, separator, more) {
|
|
64
|
+
const named = people
|
|
65
|
+
.slice(0, 2)
|
|
66
|
+
.map(person => person.name)
|
|
67
|
+
.join(separator);
|
|
68
|
+
return people.length > 2 ? `${named}${more(people.length - 2)}` : named;
|
|
69
|
+
}
|
|
70
|
+
PresenceUtil.names = names;
|
|
71
|
+
/** The same people the same: a row is not drawn again for a list that says the same. */
|
|
72
|
+
function same(a, b) {
|
|
73
|
+
return a === b || JSON.stringify(a !== null && a !== void 0 ? a : []) === JSON.stringify(b !== null && b !== void 0 ? b : []);
|
|
74
|
+
}
|
|
75
|
+
PresenceUtil.same = same;
|
|
76
|
+
})(PresenceUtil || (exports.PresenceUtil = PresenceUtil = {}));
|
|
77
|
+
/** Faces of people, one over the next, `max` at most and how many more. */
|
|
78
|
+
function PeopleFaces({ people, size, max = 4, label }) {
|
|
79
|
+
if (!people.length) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
const shown = people.slice(0, max);
|
|
83
|
+
const names = people.map(person => person.name).join(', ');
|
|
84
|
+
return (React.createElement("span", { className: "ta-people", role: "img", "aria-label": label ? `${label}: ${names}` : names, title: names },
|
|
85
|
+
shown.map(person => (React.createElement("span", { key: person.id, className: `ta-people-face${person.typing ? ' ta-typing' : ''}` },
|
|
86
|
+
React.createElement(face_1.Face, { seed: person.id, size: size, double: person.id === ta_protocol_1.TA_OWNER })))),
|
|
87
|
+
people.length > max && React.createElement("span", { className: "ta-people-more" },
|
|
88
|
+
"+",
|
|
89
|
+
people.length - max)));
|
|
90
|
+
}
|
|
91
|
+
/** Over the message box: who else types in it, or whose message Ta answers now. Nothing when neither. */
|
|
92
|
+
function PresenceLine({ people, working }) {
|
|
93
|
+
const t = (0, use_t_1.useT)();
|
|
94
|
+
const typing = PresenceUtil.typing(people);
|
|
95
|
+
const asked = working ? PresenceUtil.asked(people) : [];
|
|
96
|
+
const shown = typing.length ? typing : asked;
|
|
97
|
+
if (!shown.length) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
const names = PresenceUtil.names(shown, t('ta.presence.separator'), count => t('ta.presence.more', { count }));
|
|
101
|
+
return (React.createElement("div", { className: "ta-presence-line", "aria-live": "polite" },
|
|
102
|
+
React.createElement(PeopleFaces, { people: shown, size: 16, max: 3 }),
|
|
103
|
+
React.createElement("span", { className: "ta-ellipsis" }, t(typing.length ? 'ta.presence.typing' : 'ta.presence.asked', { names })),
|
|
104
|
+
typing.length > 0 && (React.createElement("span", { className: "ta-typing-dots", "aria-hidden": "true" },
|
|
105
|
+
React.createElement("i", null),
|
|
106
|
+
React.createElement("i", null),
|
|
107
|
+
React.createElement("i", null)))));
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=people.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SessionStore } from '@celljs/ta-client';
|
|
2
|
-
import type
|
|
2
|
+
import { type TaServer, type TaSessionInfo, type TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export interface SessionViewProps {
|
|
5
5
|
store: SessionStore;
|
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.SessionView = SessionView;
|
|
37
37
|
const react_1 = require("@celljs/react");
|
|
38
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
38
39
|
const lucide_react_1 = require("lucide-react");
|
|
39
40
|
const React = __importStar(require("react"));
|
|
40
41
|
const device_1 = require("../device/device");
|
|
@@ -44,6 +45,7 @@ const use_t_1 = require("../i18n/use-t");
|
|
|
44
45
|
const code_renderers_1 = require("../markdown/code-renderers");
|
|
45
46
|
const message_1 = require("../util/message");
|
|
46
47
|
const terminal_text_1 = require("../util/terminal-text");
|
|
48
|
+
const workbench_protocol_1 = require("../workbench-protocol");
|
|
47
49
|
const chat_asks_1 = require("./chat-asks");
|
|
48
50
|
const composer_1 = require("./composer");
|
|
49
51
|
const composer_addons_1 = require("./composer-addons");
|
|
@@ -57,6 +59,7 @@ const media_1 = require("./media");
|
|
|
57
59
|
const message_actions_1 = require("./message-actions");
|
|
58
60
|
const message_footer_1 = require("./message-footer");
|
|
59
61
|
const message_list_1 = require("./message-list");
|
|
62
|
+
const people_1 = require("./people");
|
|
60
63
|
const session_settings_1 = require("./session-settings");
|
|
61
64
|
const terminal_art_1 = require("./terminal-art");
|
|
62
65
|
const use_stop_times_1 = require("./use-stop-times");
|
|
@@ -107,6 +110,15 @@ function StatusChip({ text }) {
|
|
|
107
110
|
segment.tone && React.createElement("span", { className: `ta-status ta-status-${segment.tone}` }),
|
|
108
111
|
segment.text)))));
|
|
109
112
|
}
|
|
113
|
+
/** Who this page is, from what the computer said of it (MessagePeople). */
|
|
114
|
+
function useMessagePeople() {
|
|
115
|
+
const workbench = (0, react_1.useInject)(workbench_protocol_1.TaWorkbench);
|
|
116
|
+
// Only these two: the conversation is not drawn again for every change of the workbench.
|
|
117
|
+
const subscribe = React.useCallback((listener) => workbench.subscribe(listener), [workbench]);
|
|
118
|
+
const me = React.useSyncExternalStore(subscribe, () => { var _a, _b; var _c; return (_c = (_b = (_a = workbench.state.server) === null || _a === void 0 ? void 0 : _a.member) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : ta_protocol_1.TA_OWNER; });
|
|
119
|
+
const ownerName = React.useSyncExternalStore(subscribe, () => { var _a, _b, _c; var _d, _e; return (_e = (_d = (_b = (_a = workbench.state.server) === null || _a === void 0 ? void 0 : _a.member) === null || _b === void 0 ? void 0 : _b.owner) !== null && _d !== void 0 ? _d : (_c = workbench.state.server) === null || _c === void 0 ? void 0 : _c.user) !== null && _e !== void 0 ? _e : ''; });
|
|
120
|
+
return React.useMemo(() => ({ me, ownerName }), [me, ownerName]);
|
|
121
|
+
}
|
|
110
122
|
function SessionView({ store, server, workspace, info, onClosed, onActivity, leading, trailing, empty, notice, aboveComposer, belowComposer, draftText, compact = false, }) {
|
|
111
123
|
var _a;
|
|
112
124
|
const t = (0, use_t_1.useT)();
|
|
@@ -168,41 +180,49 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
|
|
|
168
180
|
const images = React.useCallback((timestamp, index) => server.getMessageImage(store.sessionId, timestamp, index), [server, store]);
|
|
169
181
|
// A choice in a card of a reply answers this conversation, wherever it is shown, not the one in front.
|
|
170
182
|
const reply = React.useCallback((text) => store.prompt(text, { streamingBehavior: 'followUp' }).then(() => undefined), [store]);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
React.createElement("span", { className: "ta-
|
|
182
|
-
|
|
183
|
-
React.createElement(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
183
|
+
// Who else in the same Ta is here (TaSessionInfo.people): their faces on top, their typing over the box.
|
|
184
|
+
const people = useMessagePeople();
|
|
185
|
+
const presence = (0, react_1.useInject)(workbench_protocol_1.TaWorkbench).presence;
|
|
186
|
+
const onTyping = React.useCallback((typing) => presence.type(store.sessionId, typing), [presence, store]);
|
|
187
|
+
const viewing = people_1.PresenceUtil.viewing(info === null || info === void 0 ? void 0 : info.people);
|
|
188
|
+
return (React.createElement(people_1.MessagePeople.Provider, { value: people },
|
|
189
|
+
React.createElement("section", { className: `ta-session ${compact ? 'ta-session-compact' : ''}` },
|
|
190
|
+
!compact && (React.createElement("header", { className: "ta-session-header" },
|
|
191
|
+
leading,
|
|
192
|
+
React.createElement("div", { className: "ta-session-title" },
|
|
193
|
+
React.createElement("span", { className: "ta-title" }, title),
|
|
194
|
+
info && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, message_1.MessageUtil.shortPath(info.cwd)))),
|
|
195
|
+
React.createElement(people_1.PeopleFaces, { people: viewing, size: 24, label: t('ta.presence.viewing') }),
|
|
196
|
+
trailing)),
|
|
197
|
+
React.createElement("div", { className: "ta-scroll ta-conversation", ref: scroller },
|
|
198
|
+
React.createElement("div", { className: "ta-thread" },
|
|
199
|
+
state.start > 0 && (React.createElement("div", { className: `ta-earlier ${state.loadingEarlier ? '' : 'ta-earlier-idle'}`, role: "status", "aria-label": state.loadingEarlier ? t('ta.session.earlier') : undefined, ...conversation_scroll_1.SCROLL_SKIP },
|
|
200
|
+
React.createElement("span", { className: "ta-spinner" }))),
|
|
201
|
+
state.messages.length === 0 && (empty !== null && empty !== void 0 ? empty : React.createElement("div", { className: "ta-empty" }, t('ta.session.empty', { cwd: (_a = info === null || info === void 0 ? void 0 : info.cwd) !== null && _a !== void 0 ? _a : '.' }))),
|
|
202
|
+
React.createElement(message_list_1.ConversationSession.Provider, { value: info },
|
|
203
|
+
React.createElement(message_footer_1.MessageActions.Provider, { value: messageActions },
|
|
204
|
+
React.createElement(media_1.FileUrls.Provider, { value: fileUrl },
|
|
205
|
+
React.createElement(link_1.OpenLink.Provider, { value: openLink },
|
|
206
|
+
React.createElement(message_list_1.MessageImages.Provider, { value: images },
|
|
207
|
+
React.createElement(code_renderers_1.CodeReply.Provider, { value: reply },
|
|
208
|
+
React.createElement(message_list_1.MessageList, { state: state, outbox: outbox, rows: rows }))))))))),
|
|
209
|
+
React.createElement("div", { className: "ta-bottom" },
|
|
210
|
+
away &&
|
|
211
|
+
(asking ? (React.createElement("button", { type: "button", className: "ta-to-bottom ta-to-ask", title: t('ta.chat.toAsk', { question: asking.question }), onClick: toBottom },
|
|
212
|
+
React.createElement("span", { className: "ta-to-ask-mark", "aria-hidden": "true" }, "?"),
|
|
213
|
+
React.createElement("span", null, t('ta.chat.asking')),
|
|
214
|
+
React.createElement(lucide_react_1.ArrowDown, { size: 14 }))) : (React.createElement("button", { type: "button", className: "ta-to-bottom", "aria-label": t('ta.session.toBottom'), title: t('ta.session.toBottom'), onClick: toBottom },
|
|
215
|
+
React.createElement(lucide_react_1.ArrowDown, { size: 18 })))),
|
|
216
|
+
notice,
|
|
217
|
+
React.createElement(grow_box_1.GrowBox, null,
|
|
218
|
+
React.createElement(people_1.PresenceLine, { people: info === null || info === void 0 ? void 0 : info.people, working: state.working }),
|
|
219
|
+
dialog && React.createElement(dialog_view_1.DialogView, { key: dialog.id, request: dialog, respond: response => store.respondUi(response).catch(fail) }),
|
|
220
|
+
aboveComposer,
|
|
221
|
+
widgetsAt('aboveEditor'),
|
|
222
|
+
addons.above),
|
|
223
|
+
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, onTyping: onTyping, onError: fail }),
|
|
224
|
+
belowComposer,
|
|
225
|
+
widgetsAt('belowEditor'),
|
|
226
|
+
statuses.length > 0 && (React.createElement("div", { className: "ta-statusline" }, statuses.map(([key, text]) => (React.createElement(StatusChip, { key: key, text: text })))))))));
|
|
207
227
|
}
|
|
208
228
|
//# sourceMappingURL=session-view.js.map
|
|
@@ -56,6 +56,7 @@ const model_picker_1 = require("./model-picker");
|
|
|
56
56
|
const relay_services_1 = require("./relay-services");
|
|
57
57
|
const remote_hosts_1 = require("./remote-hosts");
|
|
58
58
|
const settings_controls_1 = require("./settings-controls");
|
|
59
|
+
const sign_in_setup_1 = require("./sign-in-setup");
|
|
59
60
|
const trusted_domains_1 = require("./trusted-domains");
|
|
60
61
|
const voice_picker_1 = require("./voice-picker");
|
|
61
62
|
const settings_choices_1 = require("./settings-choices");
|
|
@@ -74,6 +75,7 @@ function useParts(scope, onScope, onClose, onDialog) {
|
|
|
74
75
|
const agent = (0, agent_settings_view_1.useAgentSettings)(cwd !== null && cwd !== void 0 ? cwd : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd);
|
|
75
76
|
const [, notices] = (0, hooks_1.useNotices)();
|
|
76
77
|
const access = (0, access_view_1.useAccess)();
|
|
78
|
+
const signInConfig = (0, sign_in_setup_1.useSignInConfig)();
|
|
77
79
|
const gateway = (0, environment_view_1.useGateway)();
|
|
78
80
|
// As the menu of the account (useAccountEntries): a finger has no keys to learn; a phone is not the computer
|
|
79
81
|
// that pairs phones, and signs out at the foot of Me.
|
|
@@ -289,15 +291,24 @@ function useParts(scope, onScope, onClose, onDialog) {
|
|
|
289
291
|
},
|
|
290
292
|
]
|
|
291
293
|
: []),
|
|
292
|
-
//
|
|
293
|
-
...(access.info && (access.info.providers.length > 0 || access.info.accounts.length > 0)
|
|
294
|
+
// The ways to sign in for the owner (those invited use them too); who may sign in only where accounts can, or could.
|
|
295
|
+
...(signInConfig.config || (access.info && (access.info.providers.length > 0 || access.info.accounts.length > 0))
|
|
294
296
|
? [
|
|
295
297
|
{
|
|
296
298
|
id: 'access',
|
|
297
299
|
title: t('ta.access.title'),
|
|
298
300
|
icon: lucide_react_1.ShieldCheck,
|
|
299
301
|
rows: [
|
|
300
|
-
(
|
|
302
|
+
...(signInConfig.config
|
|
303
|
+
? [
|
|
304
|
+
(0, settings_controls_1.row)('sign-in', [t('ta.signInSetup.title'), t('ta.signInSetup.hint'), 'github', 'google', 'wechat', 'oidc', 'sso'], React.createElement(sign_in_setup_1.SignInSetupSettings, { config: signInConfig.config, onChange: () => Promise.all([signInConfig.read(), access.read()]) })),
|
|
305
|
+
]
|
|
306
|
+
: []),
|
|
307
|
+
...(access.info && (access.info.providers.length > 0 || access.info.accounts.length > 0)
|
|
308
|
+
? [
|
|
309
|
+
(0, settings_controls_1.row)('access', [t('ta.access.title'), t('ta.access.addHint'), 'github', 'google', 'wechat'], React.createElement(access_view_1.AccessSettings, { info: access.info, onChange: access.read })),
|
|
310
|
+
]
|
|
311
|
+
: []),
|
|
301
312
|
],
|
|
302
313
|
},
|
|
303
314
|
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TaSignInConfig } from '@celljs/ta-protocol';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** The ways to sign in as set up (TaAccessServer.getSignInConfig), for the owner alone: none for a member, nor behind a gateway. */
|
|
4
|
+
export declare function useSignInConfig(): {
|
|
5
|
+
config: TaSignInConfig | undefined;
|
|
6
|
+
read: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Settings, Access: the ways to sign in (docs/design/ta-team.md 17), which those invited use to say who they are and, on
|
|
10
|
+
* a Ta with an address, accounts to sign in to it. Kept in sign-in.json of the agent directory; one the environment of
|
|
11
|
+
* ta serve sets is shown, not changed. The address to register with a provider comes first.
|
|
12
|
+
*/
|
|
13
|
+
export declare function SignInSetupSettings({ config, onChange }: {
|
|
14
|
+
config: TaSignInConfig;
|
|
15
|
+
onChange(): Promise<unknown>;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=sign-in-setup.d.ts.map
|