From 4715227801b3f2b46fead213723289197417d114 Mon Sep 17 00:00:00 2001 From: Pras Date: Mon, 23 Nov 2026 14:33:37 +0100 Subject: [PATCH 1/2] fix(server): skip Antigravity native approvals in full-access mode - Full-access Antigravity sessions launch agy ACP with --dangerously-skip-permissions, so native subagents no longer hang on unattended tool approvals. - Sessions with an approval or sandbox override, or a max runtime mode above full-access, keep the default ask mode. - Antigravity no longer advertises runtime mode switching in session, since the flag is fixed at launch. --- .../Adapters/AntigravityAdapterV2.ts | 7 ++- .../Drivers/AntigravityDriver.test.ts | 54 +++++++++++++++---- .../src/provider/Drivers/AntigravityDriver.ts | 9 +++- .../acp/AntigravityAcpSupport.test.ts | 38 +++++++++++++ .../src/provider/acp/AntigravityAcpSupport.ts | 19 +++++-- .../provider/antigravityAuthSupport.test.ts | 29 ++++++++++ .../src/provider/antigravityAuthSupport.ts | 2 + 7 files changed, 141 insertions(+), 17 deletions(-) diff --git a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts index c20afa04e31b8..61eb3659091d6 100644 --- a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts @@ -64,7 +64,7 @@ const AntigravityProviderCapabilitiesV2 = { sessions: { ...AcpProviderCapabilitiesV2.sessions, supportsModelSwitchInSession: true, - supportsRuntimeModeSwitchInSession: true, + supportsRuntimeModeSwitchInSession: false, }, tools: { ...AcpProviderCapabilitiesV2.tools, @@ -80,7 +80,10 @@ const AntigravityProviderCapabilitiesV2 = { export type AntigravityAdapterV2RuntimeInput = Omit< AntigravityAcpRuntimeInput, "spawn" | "childProcessSpawner" -> & { readonly processEnvironment?: NodeJS.ProcessEnv }; +> & { + readonly processEnvironment?: NodeJS.ProcessEnv; + readonly runtimePolicy?: AcpAdapterV2RuntimeInput["runtimePolicy"]; +}; export interface AntigravityAdapterV2Options { readonly instanceId: ProviderInstanceId; diff --git a/apps/server/src/provider/Drivers/AntigravityDriver.test.ts b/apps/server/src/provider/Drivers/AntigravityDriver.test.ts index 3c0135f419c66..380007e011024 100644 --- a/apps/server/src/provider/Drivers/AntigravityDriver.test.ts +++ b/apps/server/src/provider/Drivers/AntigravityDriver.test.ts @@ -396,7 +396,17 @@ it.layer(layerTest)("AntigravityDriver", (it) => { modelSelection, runtimePolicy, }); + expect( + session.providerSession.capabilities.sessions.supportsRuntimeModeSwitchInSession, + ).toBe(false); yield* session.ensureThread({ threadId, modelSelection, runtimePolicy }); + expect(h.launches.at(-1)?.args).toEqual([ + "acp", + "--gemini-dir", + h.profileDirectory, + "--app-data-dir", + "antigravity-acp", + ]); const helper = { fs: { readTextFile: false, writeTextFile: false }, @@ -420,19 +430,44 @@ it.layer(layerTest)("AntigravityDriver", (it) => { }, ]); - // The agy CLI rejects `yolo` and `auto_edit`; it stays in `default` and T3 answers its requests. + // Full access passes `--dangerously-skip-permissions` so native subagents do not hang on + // unattended tool approvals; policy overrides and narrower modes stay in ask mode. h.controls.selected = yield* h.makeExecutable("runtime cli", { initialMode: "auto_edit" }); - for (const runtimeMode of ["full-access", "auto-accept-edits"] as const) { + for (const [caseName, cliPolicy, expectsSkipFlag] of [ + [ + "full-access", + ProviderAdapter.ProviderAdapterV2RuntimePolicy.make({ + runtimeMode: "full-access", + interactionMode: "default", + cwd: workspace, + }), + true, + ], + [ + "full-access-sandbox-override", + ProviderAdapter.ProviderAdapterV2RuntimePolicy.make({ + runtimeMode: "full-access", + interactionMode: "default", + sandboxPolicy: { type: "readOnly" }, + cwd: workspace, + }), + false, + ], + [ + "auto-accept-edits", + ProviderAdapter.ProviderAdapterV2RuntimePolicy.make({ + runtimeMode: "auto-accept-edits", + interactionMode: "default", + cwd: workspace, + }), + false, + ], + ] as const) { const requestsBefore = (yield* h.readRequests).length; - const cliThreadId = ThreadId.make(`thread-antigravity-cli-${runtimeMode}`); - const cliPolicy = ProviderAdapter.ProviderAdapterV2RuntimePolicy.make({ - runtimeMode, - interactionMode: "default", - cwd: workspace, - }); + const cliThreadId = ThreadId.make(`thread-antigravity-cli-${caseName}`); const cliSession = yield* h.instance.orchestrationAdapter.openSession({ threadId: cliThreadId, - providerSessionId: ProviderSessionId.make(`provider-session-cli-${runtimeMode}`), + providerSessionId: ProviderSessionId.make(`provider-session-cli-${caseName}`), modelSelection, runtimePolicy: cliPolicy, }); @@ -447,6 +482,7 @@ it.layer(layerTest)("AntigravityDriver", (it) => { h.profileDirectory, "--app-data-dir", "antigravity-acp", + ...(expectsSkipFlag ? ["--dangerously-skip-permissions"] : []), ]); expect( (yield* h.readRequests) diff --git a/apps/server/src/provider/Drivers/AntigravityDriver.ts b/apps/server/src/provider/Drivers/AntigravityDriver.ts index b0d11b453dc61..ae55244a7785a 100644 --- a/apps/server/src/provider/Drivers/AntigravityDriver.ts +++ b/apps/server/src/provider/Drivers/AntigravityDriver.ts @@ -54,6 +54,7 @@ import { antigravitySessionMode, antigravityThinkingConfig, makeAntigravityAcpRuntime, + shouldSkipAntigravityPermissions, type AntigravityAcpRuntimeInput, } from "../acp/AntigravityAcpSupport.ts"; import type * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime"; @@ -227,6 +228,7 @@ export const AntigravityDriver: ProviderDriver< const prepareSpawn = Effect.fn("AntigravityDriver.prepareSpawn")(function* ( cwd: string, baseEnv: NodeJS.ProcessEnv, + options?: { readonly shouldSkipPermissions?: boolean }, ): Effect.fn.Return< { readonly executable: AntigravityInstallation.AntigravityExecutable; @@ -307,6 +309,7 @@ export const AntigravityDriver: ProviderDriver< baseEnv, auth, runtimeTempDirectory, + shouldSkipPermissions: options?.shouldSkipPermissions === true, }), }; }); @@ -320,12 +323,16 @@ export const AntigravityDriver: ProviderDriver< > { // `buildAntigravityAcpSpawnInput` sets `extendEnv: false`, so thread variables only reach the // agent's shell through `baseEnv`. - const { processEnvironment: threadEnvironment, ...runtimeInput } = input; + const { processEnvironment: threadEnvironment, runtimePolicy, ...runtimeInput } = input; const { executable, spawn } = yield* prepareSpawn( runtimeInput.cwd, threadEnvironment === undefined ? processEnvironment : { ...processEnvironment, ...threadEnvironment }, + { + shouldSkipPermissions: + runtimePolicy !== undefined && shouldSkipAntigravityPermissions(runtimePolicy), + }, ); const runtime = yield* makeAntigravityAcpRuntime({ ...runtimeInput, diff --git a/apps/server/src/provider/acp/AntigravityAcpSupport.test.ts b/apps/server/src/provider/acp/AntigravityAcpSupport.test.ts index a68c1334c473f..b429d391b061c 100644 --- a/apps/server/src/provider/acp/AntigravityAcpSupport.test.ts +++ b/apps/server/src/provider/acp/AntigravityAcpSupport.test.ts @@ -20,6 +20,7 @@ import { antigravitySessionMeta, antigravitySessionMode, buildAntigravityPrompt, + shouldSkipAntigravityPermissions, } from "./AntigravityAcpSupport.ts"; const modelConfig = { @@ -101,6 +102,43 @@ describe("Antigravity Auto", () => { expect(antigravitySessionMode("auto", modeState)).toBe(expected); }); + it("skips native permissions at launch only for unrestricted full-access policies", () => { + expect(shouldSkipAntigravityPermissions({ runtimeMode: "full-access", cwd: "/worktree" })).toBe( + true, + ); + expect( + shouldSkipAntigravityPermissions({ + runtimeMode: "full-access", + maxRuntimeMode: "full-access", + cwd: "/worktree", + }), + ).toBe(true); + for (const runtimeMode of ["approval-required", "auto-accept-edits", "auto"] as const) { + expect(shouldSkipAntigravityPermissions({ runtimeMode, cwd: "/worktree" })).toBe(false); + } + expect( + shouldSkipAntigravityPermissions({ + runtimeMode: "full-access", + approvalPolicy: "on-request", + cwd: "/worktree", + }), + ).toBe(false); + expect( + shouldSkipAntigravityPermissions({ + runtimeMode: "full-access", + sandboxPolicy: { type: "readOnly" }, + cwd: "/worktree", + }), + ).toBe(false); + expect( + shouldSkipAntigravityPermissions({ + runtimeMode: "full-access", + maxRuntimeMode: "auto", + cwd: "/worktree", + }), + ).toBe(false); + }); + it.each(["execute", "read"] as const)("asks about the %s requests agy's Auto sends", (kind) => { const request = { sessionId: "session-1", diff --git a/apps/server/src/provider/acp/AntigravityAcpSupport.ts b/apps/server/src/provider/acp/AntigravityAcpSupport.ts index f16c143cc278c..834d244af78aa 100644 --- a/apps/server/src/provider/acp/AntigravityAcpSupport.ts +++ b/apps/server/src/provider/acp/AntigravityAcpSupport.ts @@ -1,6 +1,7 @@ import { ANTIGRAVITY_DEFAULT_MODEL, type AntigravityAuthMethod, + isRuntimeModeAbove, PROVIDER_SEND_TURN_MAX_FILE_BYTES, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, type ProviderSendTurnInput, @@ -166,11 +167,19 @@ export function antigravityPermissionMode(runtimeMode: RuntimeMode): string { } } -/** - * The agy CLI rejects `yolo` and `auto_edit`, and sessions without native Auto reject `auto`. - * Those stay in `default`, where it asks before acting and T3 answers from the live runtime - * policy, so permission changes apply on the next turn without a restart. - */ +export function shouldSkipAntigravityPermissions( + policy: AcpRuntimePolicy & { readonly maxRuntimeMode?: RuntimeMode | undefined }, +): boolean { + return ( + policy.runtimeMode === "full-access" && + policy.approvalPolicy === undefined && + policy.sandboxPolicy === undefined && + (policy.maxRuntimeMode === undefined || + !isRuntimeModeAbove(policy.runtimeMode, policy.maxRuntimeMode)) + ); +} + +/** The agy CLI rejects `yolo` and `auto_edit`, and sessions without native Auto reject `auto`. */ export function antigravitySessionMode( modeId: string, modeState: AcpSessionModeState | undefined, diff --git a/apps/server/src/provider/antigravityAuthSupport.test.ts b/apps/server/src/provider/antigravityAuthSupport.test.ts index ca759ef80a72f..5112bca554afd 100644 --- a/apps/server/src/provider/antigravityAuthSupport.test.ts +++ b/apps/server/src/provider/antigravityAuthSupport.test.ts @@ -184,6 +184,35 @@ describe("Antigravity process environment", () => { expect(perRun.env?.TMP).toBe(`${windowsProfile.tempDirectory}\\run-1`); }); + it("appends --dangerously-skip-permissions only when requested", () => { + const baseInput = { + installation: { executablePath: "/usr/bin/agy" }, + profile, + cwd: "/project", + baseEnv: { PATH: "/usr/bin" }, + }; + expect(buildAntigravityAcpSpawnInput(baseInput).args).toEqual([ + "acp", + "--gemini-dir", + profile.geminiHome, + "--app-data-dir", + "antigravity-acp", + ]); + expect( + buildAntigravityAcpSpawnInput({ ...baseInput, shouldSkipPermissions: false }).args, + ).toEqual(["acp", "--gemini-dir", profile.geminiHome, "--app-data-dir", "antigravity-acp"]); + expect( + buildAntigravityAcpSpawnInput({ ...baseInput, shouldSkipPermissions: true }).args, + ).toEqual([ + "acp", + "--gemini-dir", + profile.geminiHome, + "--app-data-dir", + "antigravity-acp", + "--dangerously-skip-permissions", + ]); + }); + it.effect("keeps accounts separate even when instance IDs differ only by case", () => Effect.gen(function* () { const first = yield* resolveAntigravityInstanceDirectories( diff --git a/apps/server/src/provider/antigravityAuthSupport.ts b/apps/server/src/provider/antigravityAuthSupport.ts index 8edd875839773..8cf6dfdb18984 100644 --- a/apps/server/src/provider/antigravityAuthSupport.ts +++ b/apps/server/src/provider/antigravityAuthSupport.ts @@ -550,6 +550,7 @@ export function buildAntigravityAcpSpawnInput(input: { readonly baseEnv?: NodeJS.ProcessEnv; readonly auth?: AntigravityAuthConfig; readonly runtimeTempDirectory?: string; + readonly shouldSkipPermissions?: boolean; }): AcpSessionRuntime.AcpSpawnInput { return { command: input.installation.executablePath, @@ -560,6 +561,7 @@ export function buildAntigravityAcpSpawnInput(input: { "--app-data-dir", // The CLI joins this beneath gemini-dir, including when the value is absolute. "antigravity-acp", + ...(input.shouldSkipPermissions === true ? ["--dangerously-skip-permissions"] : []), ], cwd: input.cwd, env: antigravityEnvironment( From fb366e3c7b7d21b4a8ba8ff4ffde929527fb85b1 Mon Sep 17 00:00:00 2001 From: Pras Date: Mon, 23 Nov 2026 19:19:27 +0100 Subject: [PATCH 2/2] fix(server): prevent Antigravity shell deadlocks and add speech read-aloud --- .../provider/antigravityAuthSupport.test.ts | 50 +++ .../src/provider/antigravityAuthSupport.ts | 40 ++- apps/server/src/speech/http.ts | 9 + apps/server/src/speech/postProcessing.test.ts | 50 +++ apps/server/src/speech/postProcessing.ts | 340 +++++++++++++++++- .../components/chat/TimelineAssistantRows.tsx | 119 +++++- apps/web/src/i18n/translations/de.json | 43 ++- apps/web/src/i18n/translations/en.json | 43 ++- apps/web/src/i18n/translations/es.json | 43 ++- apps/web/src/i18n/translations/fr.json | 43 ++- apps/web/src/i18n/translations/ja.json | 43 ++- apps/web/src/i18n/translations/ko.json | 43 ++- apps/web/src/i18n/translations/pt-BR.json | 43 ++- apps/web/src/i18n/translations/ru.json | 43 ++- apps/web/src/i18n/translations/sv.json | 43 ++- apps/web/src/i18n/translations/zh.json | 41 ++- apps/web/src/speech/readAloudPlayer.ts | 196 ++++++++++ .../src/voice-input/environment.ts | 17 + .../client-runtime/src/voice-input/index.ts | 1 + packages/contracts/src/environmentHttp.ts | 9 + packages/contracts/src/speech.ts | 9 + 21 files changed, 1093 insertions(+), 175 deletions(-) create mode 100644 apps/web/src/speech/readAloudPlayer.ts diff --git a/apps/server/src/provider/antigravityAuthSupport.test.ts b/apps/server/src/provider/antigravityAuthSupport.test.ts index 5112bca554afd..389bf268f43da 100644 --- a/apps/server/src/provider/antigravityAuthSupport.test.ts +++ b/apps/server/src/provider/antigravityAuthSupport.test.ts @@ -75,6 +75,12 @@ describe("Antigravity process environment", () => { agy_cli_disable_auto_update: "0", BROWSER: "open-real-browser", browser: "another-real-browser", + PAGER: "less -R", + pager: "more", + GH_PAGER: "less", + gh_pager: "less -R", + GIT_PAGER: "less", + GIT_TERMINAL_PROMPT: "1", PYTHONUNBUFFERED: "0", ELECTRON_RUN_AS_NODE: "0", CHROME_CRASHPAD_PIPE_NAME: "\\\\.\\pipe\\crashpad_50144_ZUJNJELFHHXPBIRT", @@ -104,6 +110,10 @@ describe("Antigravity process environment", () => { AGY_ACP_FORCE_FILE_STORAGE: "1", AGY_CLI_DISABLE_AUTO_UPDATE: "1", BROWSER: profile.browserCommand, + PAGER: "cat", + GH_PAGER: "cat", + GIT_PAGER: "cat", + GIT_TERMINAL_PROMPT: "0", PYTHONUNBUFFERED: "1", ELECTRON_RUN_AS_NODE: "1", TMPDIR: profile.tempDirectory, @@ -602,6 +612,46 @@ it.layer(NodeServices.layer)("Antigravity profile preparation", (it) => { }), ); + it.effect.skipIf(!symlinksSupported || HostProcess.Platform.defaultValue() === "win32")( + "links /bin/zsh ahead of Nix zsh on macOS and guards nix-darwin /etc/zshenv", + () => + Effect.gen(function* () { + const fs = yield* FileSystem.FileSystem; + const path = yield* Path.Path; + const directory = yield* fs.makeTempDirectoryScoped(); + const profile = yield* prepareAntigravityProfile({ + profileDirectory: path.join(directory, "profile"), + userHome: path.join(directory, "home"), + runtimeExecutablePath: process.execPath, + platform: "darwin", + baseEnv: { PATH: "/etc/profiles/per-user/dev/bin:/usr/bin:/bin" }, + }).pipe( + Effect.provideService(FileSystem.FileSystem, { + ...fs, + exists: (candidate) => + candidate === "/bin/zsh" ? Effect.succeed(true) : fs.exists(candidate), + }), + ); + expect(profile.shellBinDirectory).toBe(path.join(profile.acpDirectory, "bin")); + expect(yield* fs.readLink(path.join(profile.acpDirectory, "bin", "zsh"))).toBe("/bin/zsh"); + + const env = buildAntigravityAcpSpawnInput({ + installation: { executablePath: "/usr/bin/agy" }, + profile, + cwd: directory, + baseEnv: { PATH: "/etc/profiles/per-user/dev/bin:/usr/bin:/bin" }, + }).env; + expect(env?.PATH).toBe( + `${path.join(profile.acpDirectory, "bin")}:/etc/profiles/per-user/dev/bin:/usr/bin:/bin`, + ); + expect(env?.__NIX_DARWIN_SET_ENVIRONMENT_DONE).toBe("1"); + expect(env?.GH_PAGER).toBe("cat"); + expect(env?.PAGER).toBe("cat"); + expect(env?.GIT_PAGER).toBe("cat"); + expect(env?.GIT_TERMINAL_PROMPT).toBe("0"); + }), + ); + it.effect("runs the browser helper with installed Node in standalone builds", () => Effect.gen(function* () { const fs = yield* FileSystem.FileSystem; diff --git a/apps/server/src/provider/antigravityAuthSupport.ts b/apps/server/src/provider/antigravityAuthSupport.ts index 8cf6dfdb18984..76c0af9f5010f 100644 --- a/apps/server/src/provider/antigravityAuthSupport.ts +++ b/apps/server/src/provider/antigravityAuthSupport.ts @@ -75,6 +75,10 @@ const removedEnvironmentKeys = new Set([ "AGY_ACP_FORCE_FILE_STORAGE", "AGY_CLI_DISABLE_AUTO_UPDATE", "BROWSER", + "PAGER", + "GH_PAGER", + "GIT_PAGER", + "GIT_TERMINAL_PROMPT", "PYTHONUNBUFFERED", "ELECTRON_RUN_AS_NODE", // An inherited pipe whose owner exited makes Electron-as-Node print Crashpad errors to stderr. @@ -89,6 +93,7 @@ export interface AntigravityProfile { readonly tempDirectory: string; readonly browserCommand: string; readonly caBundlePath?: string; + readonly shellBinDirectory?: string; } export interface AntigravityAuthConfig { @@ -232,10 +237,26 @@ function antigravityEnvironment( ...(auth.authMethod === "oauth-personal" ? { SSH_CONNECTION: baseEnv.SSH_CONNECTION || "127.0.0.1 0 127.0.0.1 0" } : {}), + ...(profile.platform === "darwin" + ? { + __NIX_DARWIN_SET_ENVIRONMENT_DONE: baseEnv.__NIX_DARWIN_SET_ENVIRONMENT_DONE || "1", + } + : {}), + ...(profile.shellBinDirectory !== undefined + ? { + PATH: environment.PATH + ? `${profile.shellBinDirectory}:${environment.PATH}` + : profile.shellBinDirectory, + } + : {}), GEMINI_HOME: profile.geminiHome, AGY_ACP_FORCE_FILE_STORAGE: "1", AGY_CLI_DISABLE_AUTO_UPDATE: "1", BROWSER: profile.browserCommand, + PAGER: "cat", + GH_PAGER: "cat", + GIT_PAGER: "cat", + GIT_TERMINAL_PROMPT: "0", PYTHONUNBUFFERED: "1", ELECTRON_RUN_AS_NODE: "1", ...(profile.platform === "win32" @@ -470,6 +491,10 @@ export const prepareAntigravityProfile = Effect.fn("prepareAntigravityProfile")( tempDirectory, browserCommand, ...(caBundlePath === undefined ? {} : { caBundlePath }), + ...(platform === "darwin" && + (yield* fs.exists("/bin/zsh").pipe(Effect.orElseSucceed(() => false))) + ? { shellBinDirectory: path.join(acpDirectory, "bin") } + : {}), }; const environment = antigravityEnvironment(profile, input.baseEnv ?? process.env, auth); yield* Effect.gen(function* () { @@ -511,7 +536,12 @@ export const prepareAntigravityProfile = Effect.fn("prepareAntigravityProfile")( ), ); - for (const directory of [geminiHome, acpDirectory, tempDirectory]) { + for (const directory of [ + geminiHome, + acpDirectory, + tempDirectory, + ...(profile.shellBinDirectory === undefined ? [] : [profile.shellBinDirectory]), + ]) { yield* fs .makeDirectory(directory, { recursive: true, mode: 0o700 }) .pipe( @@ -529,6 +559,14 @@ export const prepareAntigravityProfile = Effect.fn("prepareAntigravityProfile")( ); } } + if (profile.shellBinDirectory !== undefined) { + const zshLink = path.join(profile.shellBinDirectory, "zsh"); + yield* fs.remove(zshLink, { force: true }).pipe(Effect.orElseSucceed(() => undefined)); + yield* Effect.tryPromise({ + try: () => NodeFSP.symlink("/bin/zsh", zshLink, "file"), + catch: () => authSupportError("The Antigravity profile shell link could not be created."), + }); + } yield* fs .writeFileString(path.join(acpDirectory, "settings.json"), antigravityProfileSettings(auth)) .pipe( diff --git a/apps/server/src/speech/http.ts b/apps/server/src/speech/http.ts index 09c3d4dc23faa..3f04efd68e8b6 100644 --- a/apps/server/src/speech/http.ts +++ b/apps/server/src/speech/http.ts @@ -246,6 +246,15 @@ export const speechHttpApiLayer = HttpApiBuilder.group( ), ); }), + ) + .handle( + "synthesize", + Effect.fn("environment.voice.synthesize")(function* (args) { + yield* guard(args.endpoint.name); + if (args.payload.text.trim().length === 0) + return yield* failEnvironmentInvalidRequest("invalid_command"); + return yield* postProcessing.synthesize(args.payload).pipe(mapSpeechError); + }), ); }), ).pipe(Layer.provide(bodyLimit), Layer.provide(SpeechPostProcessing.layer)); diff --git a/apps/server/src/speech/postProcessing.test.ts b/apps/server/src/speech/postProcessing.test.ts index 3dd64c9b1bcc7..d54cde9decd6f 100644 --- a/apps/server/src/speech/postProcessing.test.ts +++ b/apps/server/src/speech/postProcessing.test.ts @@ -79,3 +79,53 @@ it.effect("cleanup pinned to a provider that cannot generate text uses the text ); }), ); + +it.effect("synthesizes full cleaned markdown and summarizes long replies in summary mode", () => + Effect.gen(function* () { + const synthesized = yield* Ref.make([]); + const fakeWav = new Uint8Array([82, 73, 70, 70]); + const layer = Layer.effect( + SpeechPostProcessing.SpeechPostProcessing, + SpeechPostProcessing.make((text) => + Ref.update(synthesized, (previous) => [...previous, text]).pipe(Effect.as(fakeWav)), + ), + ).pipe( + Layer.provide( + Layer.succeed(TextGeneration.TextGeneration, { + generateTranscriptionPostProcessing: () => + Effect.succeed({ transcription: "Short spoken summary." }), + } as unknown as TextGeneration.TextGeneration["Service"]), + ), + Layer.provide( + Layer.succeed(ProviderRegistry.ProviderRegistry, { + getProviders: Effect.succeed([]), + } as unknown as ProviderRegistry.ProviderRegistry["Service"]), + ), + Layer.provide( + ServerSettings.layerTest({ + textGenerationModelSelection: textGenerationSelection, + }), + ), + Layer.provide(NodeServices.layer), + ); + yield* Effect.gen(function* () { + const postProcessing = yield* SpeechPostProcessing.SpeechPostProcessing; + const fullResult = yield* postProcessing.synthesize({ + text: "### Heading\nHere is [a link](https://example.com) and:\n```ts\nconst x = 1;\n```", + mode: "full", + }); + assert.deepStrictEqual(fullResult, fakeWav); + const longReply = `${"This is a detailed explanation of the architectural change. ".repeat(8)}\n\`\`\`ts\nexport const value = 42;\n\`\`\``; + const summaryResult = yield* postProcessing.synthesize({ + text: longReply, + mode: "summary", + }); + assert.deepStrictEqual(summaryResult, fakeWav); + }).pipe(Effect.provide(layer)); + const calls = yield* Ref.get(synthesized); + assert.deepStrictEqual(calls, [ + "Heading Here is a link and: Code block omitted.", + "Short spoken summary.", + ]); + }), +); diff --git a/apps/server/src/speech/postProcessing.ts b/apps/server/src/speech/postProcessing.ts index 92f4af17696c3..99ed7844d09f0 100644 --- a/apps/server/src/speech/postProcessing.ts +++ b/apps/server/src/speech/postProcessing.ts @@ -1,7 +1,16 @@ +// @effect-diagnostics nodeBuiltinImport:off globalTimers:off - on-demand native TTS worker subprocess and idle unload timer require Node child_process and timers. +import * as NodeChildProcess from "node:child_process"; +import * as NodeFS from "node:fs"; +import * as NodeOS from "node:os"; +import * as NodePath from "node:path"; +import * as NodeReadline from "node:readline"; import { DEFAULT_SPEECH_POST_PROCESSING_PROMPT, type EnvironmentSpeechPostProcessingRequest, + type EnvironmentSpeechSynthesizeRequest, + type SpeechModelUnloadTimeout, } from "@t3tools/contracts"; +import * as HostProcess from "@t3tools/shared/HostProcess"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; @@ -15,20 +24,314 @@ import { buildTranscriptionPostProcessingPrompt } from "../textGeneration/Transc import { applySpeechAliases } from "./customWords.ts"; import { SpeechOperationError } from "./SpeechService.ts"; +const UNLOAD_MILLISECONDS: Readonly, number>> = { + immediately: 0, + min_2: 2 * 60_000, + min_5: 5 * 60_000, + min_10: 10 * 60_000, + min_15: 15 * 60_000, + hour_1: 60 * 60_000, +}; + +const SPOKEN_SUMMARY_INSTRUCTIONS = `Summarize this assistant response into 2 to 4 concise, natural spoken sentences suitable for reading aloud via text-to-speech. +Focus on the key takeaway, answer, or action taken. +Omit raw code blocks, diffs, URLs, and markdown syntax. +Use the same language as the response. +Return only the spoken summary text.`; + +function prepareSpokenMarkdown(markdown: string): string { + return markdown + .replace(/```[\s\S]*?```/g, " Code block omitted. ") + .replace(/!\[([^\]]*)\]\([^)]+\)/g, "$1") + .replace(/\[([^\]]+)\]\([^)]+\)/g, "$1") + .replace(/`([^`]+)`/g, "$1") + .replace(/<[^>]+>/g, " ") + .replace(/^\s*\|[-:\s|]+\|\s*$/gm, " ") + .replace(/\|/g, " ") + .replace(/^\s{0,3}(?:#{1,6}|>+|-|\*|\+)\s+/gm, "") + .replace(/(\*\*|__|~~)/g, "") + .replace(/\s+/g, " ") + .trim(); +} + +function extractiveSpokenSummary(markdown: string): string { + const cleaned = prepareSpokenMarkdown(markdown); + if (cleaned.length <= 480) return cleaned; + const sentences = cleaned.split(/(?<=[.!?])\s+/); + let summary = ""; + for (const sentence of sentences) { + const candidate = summary ? `${summary} ${sentence}` : sentence; + if (candidate.length > 480 && summary.length > 0) break; + summary = candidate; + if (summary.length >= 360) break; + } + return summary || cleaned.slice(0, 480).trim(); +} + +function detectSpeechLanguage(text: string): string { + return /[äöüßÄÖÜ]|\b(und|der|die|das|nicht|ist|für|mit|auf|ein|eine)\b/i.test(text) + ? "de" + : "en-us"; +} + +const KOKORO_WORKER_SCRIPT = ` +import base64, io, json, sys +import numpy as np +import soundfile as sf +from kokoro_onnx import Kokoro + +model_path, voices_path = sys.argv[1], sys.argv[2] +kokoro = Kokoro(model_path, voices_path) + +for raw_line in sys.stdin: + line = raw_line.strip() + if not line: + continue + try: + request = json.loads(line) + text = request.get("text", "").strip() + lang = request.get("lang", "en-us") + voice = request.get("voice", "af_heart") + chunks = [part.strip() for part in text.replace("\\n", " ").split(". ") if part.strip()] + if not chunks: + chunks = ["."] + audio_parts = [] + sample_rate = 24000 + for chunk in chunks: + segment = chunk if chunk.endswith((".", "!", "?")) else chunk + "." + samples, sample_rate = kokoro.create(segment, voice=voice, speed=1.0, lang=lang) + audio_parts.append(samples) + combined = np.concatenate(audio_parts) if len(audio_parts) > 1 else audio_parts[0] + buffer = io.BytesIO() + sf.write(buffer, combined, sample_rate, format="WAV", subtype="PCM_16") + encoded = base64.b64encode(buffer.getvalue()).decode("ascii") + sys.stdout.write(json.dumps({"ok": True, "wavBase64": encoded}) + "\\n") + sys.stdout.flush() + except Exception as exc: + sys.stdout.write(json.dumps({"ok": False, "error": str(exc)}) + "\\n") + sys.stdout.flush() +`; + +type PendingWorkerReply = { + readonly resolve: (bytes: Uint8Array) => void; + readonly reject: (error: Error) => void; +}; + +class OnDemandKokoroWorker { + private child: NodeChildProcess.ChildProcessWithoutNullStreams | null = null; + private queue: PendingWorkerReply[] = []; + private unloadTimer: ReturnType | null = null; + private serial: Promise = Promise.resolve(); + + private clearTimer() { + if (this.unloadTimer !== null) { + clearTimeout(this.unloadTimer); + this.unloadTimer = null; + } + } + + private scheduleUnload(timeout: SpeechModelUnloadTimeout) { + this.clearTimer(); + if (timeout === "never") return; + const delayMs = UNLOAD_MILLISECONDS[timeout]; + if (delayMs <= 0) { + this.stop(); + return; + } + this.unloadTimer = setTimeout(() => { + this.stop(); + }, delayMs); + this.unloadTimer.unref?.(); + } + + stop() { + this.clearTimer(); + const running = this.child; + this.child = null; + if (running) { + running.kill("SIGTERM"); + } + const pending = this.queue.splice(0); + for (const item of pending) { + item.reject(new Error("TTS worker stopped.")); + } + } + + private ensureProcess(modelPath: string, voicesPath: string) { + if (this.child && !this.child.killed && this.child.exitCode === null) { + return this.child; + } + const child = NodeChildProcess.spawn( + "uv", + [ + "run", + "--offline", + "--with", + "kokoro-onnx", + "--with", + "soundfile", + "python3", + "-u", + "-c", + KOKORO_WORKER_SCRIPT, + modelPath, + voicesPath, + ], + { stdio: ["pipe", "pipe", "pipe"] }, + ); + const reader = NodeReadline.createInterface({ input: child.stdout }); + reader.on("line", (line) => { + const current = this.queue.shift(); + if (!current) return; + try { + const parsed = JSON.parse(line) as { + readonly ok: boolean; + readonly wavBase64?: string; + readonly error?: string; + }; + if (parsed.ok && parsed.wavBase64) { + current.resolve(new Uint8Array(Buffer.from(parsed.wavBase64, "base64"))); + } else { + current.reject(new Error(parsed.error ?? "Kokoro synthesis failed.")); + } + } catch (error) { + current.reject(error instanceof Error ? error : new Error("Invalid Kokoro worker reply.")); + } + }); + const failAll = (reason: string) => { + if (this.child === child) this.child = null; + const pending = this.queue.splice(0); + for (const item of pending) { + item.reject(new Error(reason)); + } + }; + child.on("error", (error) => failAll(error.message)); + child.on("close", (code) => failAll(`Kokoro worker exited with code ${code ?? "unknown"}.`)); + this.child = child; + return child; + } + + synthesize(text: string, timeout: SpeechModelUnloadTimeout): Promise { + const home = NodeOS.homedir(); + const ttsDir = NodePath.join(home, ".cache", "t3code", "tts"); + const modelPath = NodePath.join(ttsDir, "kokoro-v1.0.int8.onnx"); + const voicesPath = NodePath.join(ttsDir, "voices-v1.0.bin"); + if (!NodeFS.existsSync(modelPath) || !NodeFS.existsSync(voicesPath)) { + return Promise.reject(new Error("Kokoro model files are not installed.")); + } + this.clearTimer(); + const task = this.serial.then( + () => + new Promise((resolve, reject) => { + const child = this.ensureProcess(modelPath, voicesPath); + this.queue.push({ resolve, reject }); + const payload = JSON.stringify({ + text, + lang: detectSpeechLanguage(text), + voice: "af_heart", + }); + child.stdin.write(`${payload}\n`, (error) => { + if (error) { + const index = this.queue.findIndex((entry) => entry.resolve === resolve); + if (index >= 0) this.queue.splice(index, 1); + reject(error); + } + }); + }), + ); + this.serial = task.then( + () => { + this.scheduleUnload(timeout); + }, + () => { + this.scheduleUnload(timeout); + }, + ); + return task; + } +} + +const sharedKokoroWorker = new OnDemandKokoroWorker(); + +function synthesizeWithMacSay(text: string): Promise { + return new Promise((resolve, reject) => { + const tempDir = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "t3-tts-")); + const outputWav = NodePath.join(tempDir, "speech.wav"); + const cleanup = () => { + try { + NodeFS.rmSync(tempDir, { recursive: true, force: true }); + } catch { + return; + } + }; + const child = NodeChildProcess.spawn( + "/usr/bin/say", + ["-o", outputWav, "--data-format=LEI16@22050", text], + { stdio: ["ignore", "ignore", "pipe"] }, + ); + child.on("error", (error) => { + cleanup(); + reject(error); + }); + child.on("close", (code) => { + if (code !== 0) { + cleanup(); + reject(new Error(`macOS say exited with code ${code ?? "unknown"}.`)); + return; + } + try { + const bytes = new Uint8Array(NodeFS.readFileSync(outputWav)); + cleanup(); + resolve(bytes); + } catch (error) { + cleanup(); + reject(error instanceof Error ? error : new Error("Failed to read synthesized WAV.")); + } + }); + }); +} + +export type SpeechAudioSynthesizer = ( + text: string, + timeout: SpeechModelUnloadTimeout, +) => Effect.Effect; + +const makeDefaultSynthesizeAudio = (platform: NodeJS.Platform): SpeechAudioSynthesizer => + Effect.fn("SpeechPostProcessing.synthesizeAudio")(function* ( + text: string, + timeout: SpeechModelUnloadTimeout, + ) { + return yield* Effect.tryPromise({ + try: () => + sharedKokoroWorker.synthesize(text, timeout).catch((error) => { + if (platform === "darwin") return synthesizeWithMacSay(text); + throw error; + }), + catch: (cause) => new SpeechOperationError({ operation: "synthesis", cause }), + }); + }); + export class SpeechPostProcessing extends Context.Service< SpeechPostProcessing, { readonly process: ( input: EnvironmentSpeechPostProcessingRequest, ) => Effect.Effect<{ readonly text: string }, SpeechOperationError>; + readonly synthesize: ( + input: EnvironmentSpeechSynthesizeRequest, + ) => Effect.Effect; } >()("t3/speech/postProcessing/SpeechPostProcessing") {} -const make = Effect.gen(function* () { +export const make = Effect.fn("SpeechPostProcessing.make")(function* ( + customSynthesizeAudio?: SpeechAudioSynthesizer, +) { const settingsService = yield* ServerSettings.ServerSettingsService; const fileSystem = yield* FileSystem.FileSystem; const textGeneration = yield* TextGeneration.TextGeneration; const providerRegistry = yield* ProviderRegistry.ProviderRegistry; + const platform = yield* HostProcess.Platform; + const synthesizeAudio = customSynthesizeAudio ?? makeDefaultSynthesizeAudio(platform); return SpeechPostProcessing.of({ process: Effect.fn("SpeechPostProcessing.process")( function* (input) { @@ -39,7 +342,6 @@ const make = Effect.gen(function* () { const instructions = (mode === "custom" ? customInstructions.trim() : "") || DEFAULT_SPEECH_POST_PROCESSING_PROMPT; - // Providers run in a working directory; cleanup must not read a checkout. const cwd = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-voice-cleanup-" }); const generated = yield* textGeneration.generateTranscriptionPostProcessing({ cwd, @@ -62,7 +364,39 @@ const make = Effect.gen(function* () { Effect.scoped, Effect.mapError((cause) => new SpeechOperationError({ operation: "post-processing", cause })), ), + synthesize: Effect.fn("SpeechPostProcessing.synthesize")( + function* (input) { + const settings = yield* settingsService.getSettings; + const cleaned = prepareSpokenMarkdown(input.text); + let spokenText = cleaned || input.text.trim(); + if (input.mode === "summary" && spokenText.length > 240) { + const providers = yield* providerRegistry.getProviders; + const cwd = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-voice-summary-" }); + const generated = yield* textGeneration + .generateTranscriptionPostProcessing({ + cwd, + prompt: buildTranscriptionPostProcessingPrompt( + SPOKEN_SUMMARY_INSTRUCTIONS, + spokenText, + { text: "", selection: { start: 0, end: 0 } }, + "", + ), + modelSelection: resolveSpeechPostProcessingModelSelection(settings, providers), + }) + .pipe( + Effect.orElseSucceed(() => ({ + transcription: extractiveSpokenSummary(input.text), + })), + ); + const candidate = prepareSpokenMarkdown(generated.transcription); + spokenText = candidate.length > 0 ? candidate : extractiveSpokenSummary(input.text); + } + return yield* synthesizeAudio(spokenText, settings.speechModelUnloadTimeout); + }, + Effect.scoped, + Effect.mapError((cause) => new SpeechOperationError({ operation: "synthesis", cause })), + ), }); }); -export const layer = Layer.effect(SpeechPostProcessing, make); +export const layer = Layer.effect(SpeechPostProcessing, make()); diff --git a/apps/web/src/components/chat/TimelineAssistantRows.tsx b/apps/web/src/components/chat/TimelineAssistantRows.tsx index 72fcf79013e87..25df450cbfd87 100644 --- a/apps/web/src/components/chat/TimelineAssistantRows.tsx +++ b/apps/web/src/components/chat/TimelineAssistantRows.tsx @@ -3,13 +3,21 @@ import { MessageId, type RunId, type TurnItemId } from "@t3tools/contracts"; import { canForkProjectedAssistantItem } from "@t3tools/client-runtime/state/thread-workflows"; import { agentWorkingDirectories } from "@t3tools/client-runtime/workspace-basename-lookup"; import { T, useGT, useMessages } from "gt-react"; -import { memo, use, useState } from "react"; +import { memo, use, useState, useSyncExternalStore } from "react"; import { type ChatMessage, type TurnDiffSummary } from "../../types"; import ChatMarkdown from "../ChatMarkdown"; -import { GitForkIcon, ReplyIcon } from "lucide-react"; +import { FileTextIcon, GitForkIcon, ReplyIcon, SquareIcon, Volume2Icon } from "lucide-react"; import { captureAssistantMessageOpening } from "~/lib/assistantTextSelection"; import { responseContextRecord } from "~/lib/composerContextRecords"; import { Button } from "../ui/button"; +import { Menu, MenuItem, MenuItemLabel, MenuPopup, MenuTrigger } from "../ui/menu"; +import { Spinner } from "../ui/spinner"; +import { + getReadAloudSnapshot, + startReadAloud, + stopReadAloud, + subscribeReadAloud, +} from "~/speech/readAloudPlayer"; import { ProposedPlanCard } from "./ProposedPlanCard"; import { HtmlRenderFrame } from "./HtmlRenderFrame"; import { McpAppFrame } from "./McpAppFrame"; @@ -255,6 +263,11 @@ function AssistantMessageMeta({ showCopyButton={showCopyButton} streaming={copyStreaming} /> + {projectedItem?.item.type === "assistant_message" ? ( ) : null} @@ -360,6 +373,108 @@ function AssistantCopyButton({ return ; } +function AssistantReadAloudButton({ + message, + showCopyButton, + streaming, +}: { + message: ChatMessage; + showCopyButton: boolean; + streaming: boolean; +}) { + const ctx = use(TimelineRowCtx); + const gt = useGT(); + const snapshot = useSyncExternalStore( + subscribeReadAloud, + getReadAloudSnapshot, + getReadAloudSnapshot, + ); + const copyState = resolveAssistantMessageCopyState({ + text: message.text ?? null, + showCopyButton, + streaming, + }); + + if (!copyState.visible || !copyState.text) { + return null; + } + + const text = copyState.text; + const environmentId = ctx.threadRef?.environmentId ?? ctx.activeThreadEnvironmentId; + const isActive = snapshot.activeMessageId === message.id && snapshot.phase !== "idle"; + + if (isActive) { + return ( + + + } + > + {snapshot.phase === "loading" ? ( + + ) : ( + + )} + + + Stop reading + + + ); + } + + return ( + + + } + > + + + + + startReadAloud({ + messageId: message.id, + environmentId, + text, + mode: "summary", + }) + } + > + + + Read summary + + + + startReadAloud({ + messageId: message.id, + environmentId, + text, + mode: "full", + }) + } + > + + + Read full text + + + + + ); +} + export function ProposedPlanTimelineRow({ row, }: { diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 7900e73186091..2bce3a80b54a4 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agent", "bfe1a60f3f9c60fb": "Runde {turn} · {what}", "dfdaa6255a416140": "Übersicht über {turns, plural, one {{turns} letzte Runde} other {{turns} letzte Runden}}, {textTurns, plural, =0 {ohne Nachrichtentext} one {mit dem Nachrichtentext der letzten Runde} other {mit den Nachrichtentexten der letzten {textTurns} Runden}}{truncated, select, yes {, passend gekürzt} other {}}", + "260c6b45f52d2f27": "Fügt den Text deiner Nachrichten und der Antworten des Agenten aus {textTurns, plural, one {der letzten Runde} other {den letzten {textTurns} Runden}} hinzu.", "afac52a5cc2dc801": "Deine Antwort konnte nicht gesendet werden. Versuche es erneut.", "79d776428f4d0650": "Die Datei konnte nicht geladen werden. Verbinde dich erneut und versuch es noch einmal.", "3ea34cbb1ca5ba9b": "Vorschau abgebrochen.", @@ -2734,9 +2735,9 @@ "db7b3a938c45e56c": "Update {version} bereit zum Download", "9a951140b69ba740": "Update wird heruntergeladen ({percent} %)", "7fdece033260e9fb": "Update wird heruntergeladen", + "52e1d4a487c0cf4b": "Installation von {version} fehlgeschlagen. Klicke, um es erneut zu versuchen.", "09ef51903e99e876": "Update heruntergeladen. Klicke zum Neustarten und Installieren.", "d62631cab06d2b80": "Update {version} heruntergeladen. Klicke zum Neustarten und Installieren.", - "52e1d4a487c0cf4b": "Installation von {version} fehlgeschlagen. Klicke, um es erneut zu versuchen.", "78a04e0e625c0990": "Update fehlgeschlagen", "c24de5eb69373a55": "Dieser {build}-Build ignoriert {track}-Releases. Prüfe den Update-Kanal in den Einstellungen, um den Wechsel abzuschließen.", "b02ae45a6109c93b": "Auf dem neuesten Stand", @@ -3079,6 +3080,10 @@ "4094c385ce0a6493": "Spracheingabe konnte nicht gestartet werden", "47e93194d837912b": "Apple Speech unterstützt diese Sprache nicht.", "f9bebb0ec6c93680": "Apple Speech ist auf diesem Mac nicht verfügbar.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Kein Modell passt zu deiner Sprache. Wähle ein Modell oder ändere die Sprache in den Spracheingabe-Einstellungen.", "ff4cf071e91f7617": "Transkriptionsmodelle konnten nicht geladen werden. Prüfe die Verbindung und versuche es erneut.", "8fc9dbbfebef2a39": "Spracheingabe ist nicht verfügbar", @@ -3639,7 +3644,6 @@ "4e0710d19dfc2e7e": "Diesen Bericht an das T3-Team senden?", "87d0ae0723ba75d1": "Das ist alles, was deinen Rechner verlässt. Erst wenn du auf Senden klickst, wird etwas gesendet.", "bf19826f81484328": "Unterhaltung mitsenden", - "260c6b45f52d2f27": "Fügt den Text deiner Nachrichten und der Antworten des Agenten aus {textTurns, plural, one {der letzten Runde} other {den letzten {textTurns} Runden}} hinzu.", "ddb7e6f8ce99e657": "Nur wer auf diesem Rechner Agenten ausführen kann, kann den Bericht senden oder ablehnen.", "03c1eb603c112f47": "Nicht senden", "653405e4ed498d9f": "Senden", @@ -4407,9 +4411,14 @@ "991cc9fb37606c91": "(leere Antwort)", "36e4b8d2db087296": "Ab dieser Antwort forken", "c92a0bab54261695": "Auf diese Antwort antworten", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "Die Änderungen dieser Runde in diesem Repository können nicht aufgelistet werden.", "f6958f38dc87c712": "Ab dieser Antwort forken", "72f8e14b1246d224": "Auf diese Antwort antworten", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Zur Nachricht springen: {text}", "e5428a0daffa236c": "Benutzernachricht", "d18107d06a0eb562": "Vorherige Runde", @@ -8756,9 +8765,13 @@ "ed83b25c71c98a20": "Wähle für jedes Projekt ein oder mehrere {scope}s in {tracker}. Ihre Issues erscheinen neben denen des Repositorys, und Agenten legen neue Issues im ersten an, sofern kein anderes verlangt wird.", "19c2d5e81ff8f89a": "{tracker} {scope} für {project}", "68e061510b765772": "Nicht zugeordnet", + "99d51127f573296b": "Weiteres Konto", + "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer.", + "99963c0142e17f00": "Für das neue {tracker}-Konto.", "a2d95d39d3398bda": "Anmeldedaten abgelehnt", "9eae463720500113": "Auf dem Server gespeichert.", "b6e27ab2537ef874": "Erstellen", + "6d8e4ebc889bace9": "Konto hinzufügen", "13ef526271b0f5d4": "Alle Bedingungen löschen", "d1938a629f039515": "Bedingung entfernen", "84a605b241ce65b7": "Gruppe und ihre Bedingungen entfernen", @@ -12605,6 +12618,16 @@ "156ff7b625287a1e": "Übersprungene ausblenden", "69b985b97ab45e6b": "{count} übersprungene anzeigen", "2400254d362de84d": "Workflow-Ausführungen werden geladen…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "Eine Workflow-Datei hat ein Problem." + }, + " ", + "Die letzte funktionierende Version läuft weiter." + ], + "ed8ce6ebc73dc12d": "Datei öffnen", "145e1f7503ba3b2c": [ "Diese Umgebung hat keinen Lauf mit diesem Link.", " ", @@ -12630,16 +12653,6 @@ "c": "Anleitung lesen" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "Eine Workflow-Datei hat ein Problem." - }, - " ", - "Die letzte funktionierende Version läuft weiter." - ], - "ed8ce6ebc73dc12d": "Datei öffnen", "5d8d278ff828102d": "Alle Workflows", "39459da07479f482": "Agent", "7741243632056b81": "{step} · Transkript", @@ -12782,9 +12795,5 @@ "27d76249d09eb69f": "Review-Leitfaden bereit", "faa3bb26abb39c93": "Review-Leitfaden fehlgeschlagen", "b7df38b7d8792d78": "Leitfaden öffnen", - "9e91e9a77b664e4e": "Review-Leitfaden konnte nicht gestartet werden", - "99d51127f573296b": "Weiteres Konto", - "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer.", - "99963c0142e17f00": "Für das neue {tracker}-Konto.", - "6d8e4ebc889bace9": "Konto hinzufügen" + "9e91e9a77b664e4e": "Review-Leitfaden konnte nicht gestartet werden" } diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 5bdd7c383d319..28b4a62acb366 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agent", "bfe1a60f3f9c60fb": "Turn {turn} · {what}", "dfdaa6255a416140": "Outline of {turns, plural, one {{turns} recent turn} other {{turns} recent turns}}, {textTurns, plural, =0 {no message text} one {message text of the last turn} other {message text of the last {textTurns} turns}}{truncated, select, yes {, shortened to fit} other {}}", + "260c6b45f52d2f27": "Adds the text of your messages and the agent's replies in the last {textTurns, plural, one {turn} other {{textTurns} turns}}.", "afac52a5cc2dc801": "Could not send your answer. Try again.", "79d776428f4d0650": "The file could not be loaded. Reconnect and try again.", "3ea34cbb1ca5ba9b": "Preview cancelled.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Update {version} ready to download", "9a951140b69ba740": "Downloading update ({percent}%)", "7fdece033260e9fb": "Downloading update", + "52e1d4a487c0cf4b": "Install failed for {version}. Click to retry.", "09ef51903e99e876": "Update ready downloaded. Click to restart and install.", "d62631cab06d2b80": "Update {version} downloaded. Click to restart and install.", - "52e1d4a487c0cf4b": "Install failed for {version}. Click to retry.", "78a04e0e625c0990": "Update failed", "c24de5eb69373a55": "This {build} build ignores {track} releases. Review the update track in Settings to finish the switch.", "b02ae45a6109c93b": "Up to date", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "Could not start voice input", "47e93194d837912b": "Apple Speech does not support this language.", "f9bebb0ec6c93680": "Apple Speech is not available on this Mac.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "No model matches your language. Choose a model or change the language in Voice settings.", "ff4cf071e91f7617": "Could not load transcription models. Check the connection and try again.", "8fc9dbbfebef2a39": "Voice input is not available", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "Send this report to the T3 team?", "87d0ae0723ba75d1": "This is everything that leaves your machine. Nothing is sent unless you press Send.", "bf19826f81484328": "Include the conversation", - "260c6b45f52d2f27": "Adds the text of your messages and the agent's replies in the last {textTurns, plural, one {turn} other {{textTurns} turns}}.", "ddb7e6f8ce99e657": "Only someone who can run agents on this machine can send or decline it.", "03c1eb603c112f47": "Don't send", "653405e4ed498d9f": "Send", @@ -4406,9 +4410,14 @@ "991cc9fb37606c91": "(empty response)", "36e4b8d2db087296": "Fork from this response", "c92a0bab54261695": "Reply to this response", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "This turn's changes in this repository cannot be listed.", "f6958f38dc87c712": "Fork from this response", "72f8e14b1246d224": "Reply to this response", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Jump to message: {text}", "e5428a0daffa236c": "User message", "d18107d06a0eb562": "Previous turn", @@ -8764,9 +8773,13 @@ "ed83b25c71c98a20": "Pick one or more {tracker} {scope}s for each project. Their issues list beside the repository's own, and agents file new issues in the first one unless asked for another.", "19c2d5e81ff8f89a": "{tracker} {scope} for {project}", "68e061510b765772": "Not bound", + "99d51127f573296b": "Another account", + "8ec2c57414669b79": "Connect a second {tracker} workspace or user.", + "99963c0142e17f00": "For the new {tracker} account.", "a2d95d39d3398bda": "Credential rejected", "9eae463720500113": "Stored on the server.", "b6e27ab2537ef874": "Create one", + "6d8e4ebc889bace9": "Add account", "13ef526271b0f5d4": "Clear all conditions", "d1938a629f039515": "Remove condition", "84a605b241ce65b7": "Remove group and its conditions", @@ -12613,6 +12626,16 @@ "156ff7b625287a1e": "Hide skipped", "69b985b97ab45e6b": "Show {count} skipped", "2400254d362de84d": "Loading workflow runs…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "A workflow file has a problem." + }, + " ", + "The last version that did keeps running." + ], + "ed8ce6ebc73dc12d": "Open the file", "145e1f7503ba3b2c": [ "This environment has no run with that link.", " ", @@ -12638,16 +12661,6 @@ "c": "Read the guide" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "A workflow file has a problem." - }, - " ", - "The last version that did keeps running." - ], - "ed8ce6ebc73dc12d": "Open the file", "5d8d278ff828102d": "All workflows", "39459da07479f482": "Agent", "7741243632056b81": "{step} · transcript", @@ -12791,9 +12804,5 @@ "27d76249d09eb69f": "Review guide ready", "faa3bb26abb39c93": "Review guide failed", "b7df38b7d8792d78": "Open guide", - "9e91e9a77b664e4e": "Could not start a review guide", - "99d51127f573296b": "Another account", - "8ec2c57414669b79": "Connect a second {tracker} workspace or user.", - "99963c0142e17f00": "For the new {tracker} account.", - "6d8e4ebc889bace9": "Add account" + "9e91e9a77b664e4e": "Could not start a review guide" } diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 91dbb2b07f50f..5e3b1845fb50e 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agente", "bfe1a60f3f9c60fb": "Turno {turn} · {what}", "dfdaa6255a416140": "Resumen de {turns, plural, one {{turns} turno reciente} other {{turns} turnos recientes}}, {textTurns, plural, =0 {sin texto de mensajes} one {con el texto de los mensajes del último turno} other {con el texto de los mensajes de los últimos {textTurns} turnos}}{truncated, select, yes {, acortado para ajustarse} other {}}", + "260c6b45f52d2f27": "Añade el texto de tus mensajes y de las respuestas del agente en {textTurns, plural, one {el último turno} other {los últimos {textTurns} turnos}}.", "afac52a5cc2dc801": "No se pudo enviar tu respuesta. Inténtalo de nuevo.", "79d776428f4d0650": "No se pudo cargar el archivo. Vuelve a conectarte e inténtalo de nuevo.", "3ea34cbb1ca5ba9b": "Vista previa cancelada.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Actualización {version} lista para descargar", "9a951140b69ba740": "Descargando actualización ({percent} %)", "7fdece033260e9fb": "Descargando actualización", + "52e1d4a487c0cf4b": "Falló la instalación de {version}. Haz clic para reintentarlo.", "09ef51903e99e876": "Actualización descargada. Haz clic para reiniciar e instalar.", "d62631cab06d2b80": "Actualización {version} descargada. Haz clic para reiniciar e instalar.", - "52e1d4a487c0cf4b": "Falló la instalación de {version}. Haz clic para reintentarlo.", "78a04e0e625c0990": "Falló la actualización", "c24de5eb69373a55": "Esta compilación {build} ignora las versiones {track}. Revisa el canal de actualizaciones en Ajustes para terminar el cambio.", "b02ae45a6109c93b": "Actualizado", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "No se pudo iniciar la entrada de voz", "47e93194d837912b": "Apple Speech no admite este idioma.", "f9bebb0ec6c93680": "Apple Speech no está disponible en este Mac.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Ningún modelo coincide con tu idioma. Elige un modelo o cambia el idioma en los ajustes de Voz.", "ff4cf071e91f7617": "No se pudieron cargar los modelos de transcripción. Comprueba la conexión y vuelve a intentarlo.", "8fc9dbbfebef2a39": "La entrada de voz no está disponible", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "¿Enviar este informe al equipo de T3?", "87d0ae0723ba75d1": "Esto es todo lo que sale de tu máquina. No se envía nada hasta que pulses Enviar.", "bf19826f81484328": "Incluir la conversación", - "260c6b45f52d2f27": "Añade el texto de tus mensajes y de las respuestas del agente en {textTurns, plural, one {el último turno} other {los últimos {textTurns} turnos}}.", "ddb7e6f8ce99e657": "Solo quien pueda ejecutar agentes en esta máquina puede enviarlo o rechazarlo.", "03c1eb603c112f47": "No enviar", "653405e4ed498d9f": "Enviar", @@ -4404,9 +4408,14 @@ "991cc9fb37606c91": "(respuesta vacía)", "36e4b8d2db087296": "Bifurcar desde esta respuesta", "c92a0bab54261695": "Responder a esta respuesta", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "No se pueden listar los cambios de este turno en este repositorio.", "f6958f38dc87c712": "Bifurcar desde esta respuesta", "72f8e14b1246d224": "Responder a esta respuesta", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Ir al mensaje: {text}", "e5428a0daffa236c": "Mensaje del usuario", "d18107d06a0eb562": "Turno anterior", @@ -8754,9 +8763,13 @@ "ed83b25c71c98a20": "Elige uno o más {scope}s de {tracker} para cada proyecto. Sus issues aparecen junto a las del repositorio, y los agentes crean issues nuevas en el primero, salvo que se les pida otro.", "19c2d5e81ff8f89a": "{scope} de {tracker} para {project}", "68e061510b765772": "Sin vincular", + "99d51127f573296b": "Otra cuenta", + "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}.", + "99963c0142e17f00": "Para la nueva cuenta de {tracker}.", "a2d95d39d3398bda": "Credencial rechazada", "9eae463720500113": "Guardado en el servidor.", "b6e27ab2537ef874": "Crear uno", + "6d8e4ebc889bace9": "Añadir cuenta", "13ef526271b0f5d4": "Borrar todas las condiciones", "d1938a629f039515": "Quitar condición", "84a605b241ce65b7": "Quitar grupo y sus condiciones", @@ -12598,6 +12611,16 @@ "156ff7b625287a1e": "Ocultar omitidos", "69b985b97ab45e6b": "Mostrar {count} omitidos", "2400254d362de84d": "Cargando ejecuciones de flujos de trabajo…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "Un archivo de flujo de trabajo tiene un problema." + }, + " ", + "Sigue en ejecución la última versión que sí cargó." + ], + "ed8ce6ebc73dc12d": "Abrir el archivo", "145e1f7503ba3b2c": [ "Este entorno no tiene ninguna ejecución con ese enlace.", " ", @@ -12623,16 +12646,6 @@ "c": "Leer la guía" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "Un archivo de flujo de trabajo tiene un problema." - }, - " ", - "Sigue en ejecución la última versión que sí cargó." - ], - "ed8ce6ebc73dc12d": "Abrir el archivo", "5d8d278ff828102d": "Todos los flujos de trabajo", "39459da07479f482": "Agente", "7741243632056b81": "{step} · transcripción", @@ -12777,9 +12790,5 @@ "27d76249d09eb69f": "Guía de revisión lista", "faa3bb26abb39c93": "Falló la guía de revisión", "b7df38b7d8792d78": "Abrir guía", - "9e91e9a77b664e4e": "No se pudo iniciar una guía de revisión", - "99d51127f573296b": "Otra cuenta", - "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}.", - "99963c0142e17f00": "Para la nueva cuenta de {tracker}.", - "6d8e4ebc889bace9": "Añadir cuenta" + "9e91e9a77b664e4e": "No se pudo iniciar una guía de revisión" } diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index f5cf7e62a4744..2ff079f96bf1c 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agent", "bfe1a60f3f9c60fb": "Tour {turn} · {what}", "dfdaa6255a416140": "Résumé de {turns, plural, one {{turns} tour récent} other {{turns} tours récents}}, {textTurns, plural, =0 {sans texte des messages} one {avec le texte des messages du dernier tour} other {avec le texte des messages des {textTurns} derniers tours}}{truncated, select, yes {, raccourci pour tenir dans la limite} other {}}", + "260c6b45f52d2f27": "Ajoute le texte de vos messages et des réponses de l'agent dans {textTurns, plural, one {le dernier tour} other {les {textTurns} derniers tours}}.", "afac52a5cc2dc801": "Impossible d'envoyer votre réponse. Réessayez.", "79d776428f4d0650": "Le fichier n’a pas pu être chargé. Reconnectez-vous et réessayez.", "3ea34cbb1ca5ba9b": "Aperçu annulé.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Mise à jour {version} prête à être téléchargée", "9a951140b69ba740": "Téléchargement de la mise à jour ({percent} %)", "7fdece033260e9fb": "Téléchargement de la mise à jour", + "52e1d4a487c0cf4b": "Échec de l’installation de {version}. Cliquez pour réessayer.", "09ef51903e99e876": "Mise à jour téléchargée. Cliquez pour redémarrer et l’installer.", "d62631cab06d2b80": "Mise à jour {version} téléchargée. Cliquez pour redémarrer et l’installer.", - "52e1d4a487c0cf4b": "Échec de l’installation de {version}. Cliquez pour réessayer.", "78a04e0e625c0990": "Échec de la mise à jour", "c24de5eb69373a55": "Cette version {build} ignore les versions {track}. Vérifiez le canal de mise à jour dans les Réglages pour terminer le changement.", "b02ae45a6109c93b": "À jour", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "Impossible de démarrer la saisie vocale", "47e93194d837912b": "Apple Speech ne prend pas en charge cette langue.", "f9bebb0ec6c93680": "Apple Speech n’est pas disponible sur ce Mac.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Aucun modèle ne correspond à votre langue. Choisissez un modèle ou changez de langue dans les paramètres Voix.", "ff4cf071e91f7617": "Impossible de charger les modèles de transcription. Vérifiez la connexion et réessayez.", "8fc9dbbfebef2a39": "La saisie vocale n’est pas disponible", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "Envoyer ce rapport à l'équipe T3 ?", "87d0ae0723ba75d1": "Voici tout ce qui quitte votre machine. Rien n'est envoyé tant que vous ne cliquez pas sur Envoyer.", "bf19826f81484328": "Inclure la conversation", - "260c6b45f52d2f27": "Ajoute le texte de vos messages et des réponses de l'agent dans {textTurns, plural, one {le dernier tour} other {les {textTurns} derniers tours}}.", "ddb7e6f8ce99e657": "Seule une personne autorisée à exécuter des agents sur cette machine peut l'envoyer ou le refuser.", "03c1eb603c112f47": "Ne pas envoyer", "653405e4ed498d9f": "Envoyer", @@ -4405,9 +4409,14 @@ "991cc9fb37606c91": "(réponse vide)", "36e4b8d2db087296": "Créer un fork depuis cette réponse", "c92a0bab54261695": "Répondre à cette réponse", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "Impossible de lister les modifications de ce tour dans ce dépôt.", "f6958f38dc87c712": "Créer un fork depuis cette réponse", "72f8e14b1246d224": "Répondre à cette réponse", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Aller au message : {text}", "e5428a0daffa236c": "Message de l’utilisateur", "d18107d06a0eb562": "Tour précédent", @@ -8755,9 +8764,13 @@ "ed83b25c71c98a20": "Choisissez un ou plusieurs {scope}s {tracker} pour chaque projet. Leurs tickets s'affichent à côté de ceux du dépôt, et les agents créent les nouveaux tickets dans le premier, sauf si vous leur indiquez une autre destination.", "19c2d5e81ff8f89a": "{scope} {tracker} pour {project}", "68e061510b765772": "Non lié", + "99d51127f573296b": "Autre compte", + "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}.", + "99963c0142e17f00": "Pour le nouveau compte {tracker}.", "a2d95d39d3398bda": "Identifiant refusé", "9eae463720500113": "Stocké sur le serveur.", "b6e27ab2537ef874": "En créer un", + "6d8e4ebc889bace9": "Ajouter un compte", "13ef526271b0f5d4": "Effacer toutes les conditions", "d1938a629f039515": "Supprimer la condition", "84a605b241ce65b7": "Supprimer le groupe et ses conditions", @@ -12603,6 +12616,16 @@ "156ff7b625287a1e": "Masquer les éléments ignorés", "69b985b97ab45e6b": "Afficher {count} ignorés", "2400254d362de84d": "Chargement des exécutions de workflow…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "Un fichier de workflow présente un problème." + }, + " ", + "La dernière version valide continue de s’exécuter." + ], + "ed8ce6ebc73dc12d": "Ouvrir le fichier", "145e1f7503ba3b2c": [ "Cet environnement n’a aucune exécution avec ce lien.", " ", @@ -12628,16 +12651,6 @@ "c": "Lire le guide" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "Un fichier de workflow présente un problème." - }, - " ", - "La dernière version valide continue de s’exécuter." - ], - "ed8ce6ebc73dc12d": "Ouvrir le fichier", "5d8d278ff828102d": "Tous les workflows", "39459da07479f482": "Agent", "7741243632056b81": "{step} · transcription", @@ -12782,9 +12795,5 @@ "27d76249d09eb69f": "Guide de revue prêt", "faa3bb26abb39c93": "Échec du guide de revue", "b7df38b7d8792d78": "Ouvrir le guide", - "9e91e9a77b664e4e": "Impossible de démarrer un guide de revue", - "99d51127f573296b": "Autre compte", - "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}.", - "99963c0142e17f00": "Pour le nouveau compte {tracker}.", - "6d8e4ebc889bace9": "Ajouter un compte" + "9e91e9a77b664e4e": "Impossible de démarrer un guide de revue" } diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 7e3be343b068b..6bc1b3015f589 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "エージェント", "bfe1a60f3f9c60fb": "ターン {turn} · {what}", "dfdaa6255a416140": "{turns, plural, one {直近 {turns} ターン} other {直近 {turns} ターン}}の概要、{textTurns, plural, =0 {メッセージ本文なし} one {最後のターンのメッセージ本文} other {直近 {textTurns} ターンのメッセージ本文}}{truncated, select, yes {、収まる長さに短縮済み} other {}}", + "260c6b45f52d2f27": "直近 {textTurns} ターンでのあなたのメッセージとエージェントの返信の本文を追加します。", "afac52a5cc2dc801": "回答を送信できませんでした。もう一度お試しください。", "79d776428f4d0650": "ファイルを読み込めませんでした。再接続してもう一度お試しください。", "3ea34cbb1ca5ba9b": "プレビューをキャンセルしました。", @@ -2731,9 +2732,9 @@ "db7b3a938c45e56c": "更新 {version} をダウンロードできます", "9a951140b69ba740": "更新をダウンロードしています ({percent}%)", "7fdece033260e9fb": "更新をダウンロードしています", + "52e1d4a487c0cf4b": "{version} のインストールに失敗しました。クリックして再試行してください。", "09ef51903e99e876": "更新をダウンロードしました。クリックすると再起動してインストールします。", "d62631cab06d2b80": "更新 {version} をダウンロードしました。クリックすると再起動してインストールします。", - "52e1d4a487c0cf4b": "{version} のインストールに失敗しました。クリックして再試行してください。", "78a04e0e625c0990": "更新に失敗しました", "c24de5eb69373a55": "この {build} ビルドは {track} のリリースを無視します。切り替えを完了するには、設定で更新トラックを確認してください。", "b02ae45a6109c93b": "最新の状態です", @@ -3076,6 +3077,10 @@ "4094c385ce0a6493": "音声入力を開始できませんでした", "47e93194d837912b": "Apple Speech はこの言語に対応していません。", "f9bebb0ec6c93680": "この Mac では Apple Speech を利用できません。", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "言語に一致するモデルがありません。音声の設定でモデルを選択するか、言語を変更してください。", "ff4cf071e91f7617": "文字起こしモデルを読み込めませんでした。接続を確認して、もう一度お試しください。", "8fc9dbbfebef2a39": "音声入力を利用できません", @@ -3634,7 +3639,6 @@ "4e0710d19dfc2e7e": "このレポートを T3 チームに送信しますか?", "87d0ae0723ba75d1": "この内容だけがこのマシンから送信されます。「送信」を押すまで何も送信されません。", "bf19826f81484328": "会話を含める", - "260c6b45f52d2f27": "直近 {textTurns} ターンでのあなたのメッセージとエージェントの返信の本文を追加します。", "ddb7e6f8ce99e657": "このマシンでエージェントを実行できる人だけが、送信または拒否できます。", "03c1eb603c112f47": "送信しない", "653405e4ed498d9f": "送信", @@ -4395,9 +4399,14 @@ "991cc9fb37606c91": "(空のレスポンス)", "36e4b8d2db087296": "この応答からフォーク", "c92a0bab54261695": "この応答に返信", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "このリポジトリでのこのターンの変更は一覧表示できません。", "f6958f38dc87c712": "この応答からフォーク", "72f8e14b1246d224": "この応答に返信", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "メッセージに移動: {text}", "e5428a0daffa236c": "ユーザーのメッセージ", "d18107d06a0eb562": "前のターン", @@ -8712,9 +8721,13 @@ "ed83b25c71c98a20": "各プロジェクトに {tracker} の {scope} を1つ以上選択します。その Issue はリポジトリ自身の Issue と並べて表示され、エージェントは別の {scope} を指定されない限り、最初の {scope} に新しい Issue を作成します。", "19c2d5e81ff8f89a": "{project} の {tracker} {scope}", "68e061510b765772": "未バインド", + "99d51127f573296b": "別のアカウント", + "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。", + "99963c0142e17f00": "新しい {tracker} アカウント用です。", "a2d95d39d3398bda": "資格情報が拒否されました", "9eae463720500113": "サーバーに保存されています。", "b6e27ab2537ef874": "作成する", + "6d8e4ebc889bace9": "アカウントを追加", "13ef526271b0f5d4": "すべての条件をクリア", "d1938a629f039515": "条件を削除", "84a605b241ce65b7": "グループとその条件を削除", @@ -12546,6 +12559,16 @@ "156ff7b625287a1e": "スキップ済みを非表示", "69b985b97ab45e6b": "スキップ済み {count} 件を表示", "2400254d362de84d": "ワークフローの実行を読み込んでいます…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "ワークフローファイルに問題があります。" + }, + " ", + "正常に読み込めた最後のバージョンが引き続き実行されます。" + ], + "ed8ce6ebc73dc12d": "ファイルを開く", "145e1f7503ba3b2c": [ "この環境には、そのリンクの実行はありません。", " ", @@ -12571,16 +12594,6 @@ "c": "ガイドを読む" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "ワークフローファイルに問題があります。" - }, - " ", - "正常に読み込めた最後のバージョンが引き続き実行されます。" - ], - "ed8ce6ebc73dc12d": "ファイルを開く", "5d8d278ff828102d": "すべてのワークフロー", "39459da07479f482": "エージェント", "7741243632056b81": "{step} · トランスクリプト", @@ -12723,9 +12736,5 @@ "27d76249d09eb69f": "レビューガイドの準備ができました", "faa3bb26abb39c93": "レビューガイドの作成に失敗しました", "b7df38b7d8792d78": "ガイドを開く", - "9e91e9a77b664e4e": "レビューガイドを開始できませんでした", - "99d51127f573296b": "別のアカウント", - "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。", - "99963c0142e17f00": "新しい {tracker} アカウント用です。", - "6d8e4ebc889bace9": "アカウントを追加" + "9e91e9a77b664e4e": "レビューガイドを開始できませんでした" } diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index ef69858aead11..8a675d82d0893 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "에이전트", "bfe1a60f3f9c60fb": "턴 {turn} · {what}", "dfdaa6255a416140": "{turns, plural, one {최근 {turns}개 턴} other {최근 {turns}개 턴}}의 개요, {textTurns, plural, =0 {메시지 본문 없음} one {마지막 턴의 메시지 본문} other {최근 {textTurns}개 턴의 메시지 본문}}{truncated, select, yes {, 길이에 맞게 줄임} other {}}", + "260c6b45f52d2f27": "최근 {textTurns}개 턴에서 내 메시지와 에이전트 답변의 본문을 추가합니다.", "afac52a5cc2dc801": "답변을 보내지 못했습니다. 다시 시도하세요.", "79d776428f4d0650": "파일을 불러올 수 없습니다. 다시 연결한 뒤 시도하세요.", "3ea34cbb1ca5ba9b": "미리 보기가 취소되었습니다.", @@ -2732,9 +2733,9 @@ "db7b3a938c45e56c": "업데이트 {version} 다운로드 가능", "9a951140b69ba740": "업데이트 다운로드 중({percent}%)", "7fdece033260e9fb": "업데이트 다운로드 중", + "52e1d4a487c0cf4b": "{version} 설치에 실패했습니다. 클릭하여 다시 시도하세요.", "09ef51903e99e876": "업데이트가 다운로드되었습니다. 클릭하여 다시 시작하고 설치하세요.", "d62631cab06d2b80": "업데이트 {version}이(가) 다운로드되었습니다. 클릭하여 다시 시작하고 설치하세요.", - "52e1d4a487c0cf4b": "{version} 설치에 실패했습니다. 클릭하여 다시 시도하세요.", "78a04e0e625c0990": "업데이트 실패", "c24de5eb69373a55": "이 {build} 빌드는 {track} 릴리스를 무시합니다. 전환을 완료하려면 설정에서 업데이트 트랙을 확인하세요.", "b02ae45a6109c93b": "최신 상태", @@ -3077,6 +3078,10 @@ "4094c385ce0a6493": "음성 입력을 시작할 수 없습니다", "47e93194d837912b": "Apple Speech는 이 언어를 지원하지 않습니다.", "f9bebb0ec6c93680": "이 Mac에서는 Apple Speech를 사용할 수 없습니다.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "언어와 일치하는 모델이 없습니다. 음성 설정에서 모델을 선택하거나 언어를 변경하세요.", "ff4cf071e91f7617": "받아쓰기 모델을 불러올 수 없습니다. 연결을 확인하고 다시 시도하세요.", "8fc9dbbfebef2a39": "음성 입력을 사용할 수 없습니다", @@ -3634,7 +3639,6 @@ "4e0710d19dfc2e7e": "이 보고서를 T3 팀에 보낼까요?", "87d0ae0723ba75d1": "이 내용만 이 컴퓨터에서 전송됩니다. 보내기를 누르기 전에는 아무것도 전송되지 않습니다.", "bf19826f81484328": "대화 포함", - "260c6b45f52d2f27": "최근 {textTurns}개 턴에서 내 메시지와 에이전트 답변의 본문을 추가합니다.", "ddb7e6f8ce99e657": "이 컴퓨터에서 에이전트를 실행할 수 있는 사람만 보고서를 보내거나 거절할 수 있습니다.", "03c1eb603c112f47": "보내지 않기", "653405e4ed498d9f": "보내기", @@ -4392,9 +4396,14 @@ "991cc9fb37606c91": "(빈 응답)", "36e4b8d2db087296": "이 응답에서 포크", "c92a0bab54261695": "이 응답에 답장", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "이 저장소에서 이 턴의 변경 사항을 나열할 수 없습니다.", "f6958f38dc87c712": "이 응답에서 포크", "72f8e14b1246d224": "이 응답에 답장", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "메시지로 이동: {text}", "e5428a0daffa236c": "사용자 메시지", "d18107d06a0eb562": "이전 턴", @@ -8715,9 +8724,13 @@ "ed83b25c71c98a20": "각 프로젝트에 {tracker} {scope}을(를) 하나 이상 선택하세요. 해당 이슈는 저장소 자체 이슈와 함께 표시되며, 에이전트는 다른 {scope}을(를) 지정받지 않으면 첫 번째 {scope}에 새 이슈를 만듭니다.", "19c2d5e81ff8f89a": "{project}의 {tracker} {scope}", "68e061510b765772": "바인딩되지 않음", + "99d51127f573296b": "다른 계정", + "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다.", + "99963c0142e17f00": "새 {tracker} 계정용입니다.", "a2d95d39d3398bda": "자격 증명 거부됨", "9eae463720500113": "서버에 저장됩니다.", "b6e27ab2537ef874": "새로 만들기", + "6d8e4ebc889bace9": "계정 추가", "13ef526271b0f5d4": "모든 조건 지우기", "d1938a629f039515": "조건 제거", "84a605b241ce65b7": "그룹과 조건 제거", @@ -12543,6 +12556,16 @@ "156ff7b625287a1e": "건너뛴 항목 숨기기", "69b985b97ab45e6b": "건너뛴 항목 {count}개 표시", "2400254d362de84d": "워크플로 실행을 불러오는 중…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "워크플로 파일에 문제가 있습니다." + }, + " ", + "마지막으로 불러온 버전이 계속 실행됩니다." + ], + "ed8ce6ebc73dc12d": "파일 열기", "145e1f7503ba3b2c": [ "이 환경에는 해당 링크의 실행이 없습니다.", " ", @@ -12568,16 +12591,6 @@ "c": "가이드 읽기" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "워크플로 파일에 문제가 있습니다." - }, - " ", - "마지막으로 불러온 버전이 계속 실행됩니다." - ], - "ed8ce6ebc73dc12d": "파일 열기", "5d8d278ff828102d": "모든 워크플로", "39459da07479f482": "에이전트", "7741243632056b81": "{step} · 기록", @@ -12719,9 +12732,5 @@ "27d76249d09eb69f": "검토 가이드 준비됨", "faa3bb26abb39c93": "검토 가이드 실패", "b7df38b7d8792d78": "가이드 열기", - "9e91e9a77b664e4e": "검토 가이드를 시작할 수 없습니다", - "99d51127f573296b": "다른 계정", - "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다.", - "99963c0142e17f00": "새 {tracker} 계정용입니다.", - "6d8e4ebc889bace9": "계정 추가" + "9e91e9a77b664e4e": "검토 가이드를 시작할 수 없습니다" } diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 5b2f82a27a416..aafe418d8ee9c 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agente", "bfe1a60f3f9c60fb": "Turno {turn} · {what}", "dfdaa6255a416140": "Resumo de {turns, plural, one {{turns} turno recente} other {{turns} turnos recentes}}, {textTurns, plural, =0 {sem texto das mensagens} one {com o texto das mensagens do último turno} other {com o texto das mensagens dos últimos {textTurns} turnos}}{truncated, select, yes {, encurtado para caber} other {}}", + "260c6b45f52d2f27": "Adiciona o texto das suas mensagens e das respostas do agente {textTurns, plural, one {no último turno} other {nos últimos {textTurns} turnos}}.", "afac52a5cc2dc801": "Não foi possível enviar sua resposta. Tente novamente.", "79d776428f4d0650": "Não foi possível carregar o arquivo. Reconecte e tente novamente.", "3ea34cbb1ca5ba9b": "Pré-visualização cancelada.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Atualização {version} pronta para baixar", "9a951140b69ba740": "Baixando atualização ({percent}%)", "7fdece033260e9fb": "Baixando atualização", + "52e1d4a487c0cf4b": "Falha ao instalar {version}. Clique para tentar novamente.", "09ef51903e99e876": "Atualização baixada. Clique para reiniciar e instalar.", "d62631cab06d2b80": "Atualização {version} baixada. Clique para reiniciar e instalar.", - "52e1d4a487c0cf4b": "Falha ao instalar {version}. Clique para tentar novamente.", "78a04e0e625c0990": "Falha na atualização", "c24de5eb69373a55": "Esta build {build} ignora as versões {track}. Revise o canal de atualização em Configurações para concluir a troca.", "b02ae45a6109c93b": "Atualizado", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "Não foi possível iniciar a entrada de voz", "47e93194d837912b": "O Apple Speech não é compatível com este idioma.", "f9bebb0ec6c93680": "O Apple Speech não está disponível neste Mac.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Nenhum modelo corresponde ao seu idioma. Escolha um modelo ou mude o idioma nas configurações de Voz.", "ff4cf071e91f7617": "Não foi possível carregar os modelos de transcrição. Verifique a conexão e tente novamente.", "8fc9dbbfebef2a39": "A entrada de voz não está disponível", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "Enviar este relatório para a equipe do T3?", "87d0ae0723ba75d1": "Isto é tudo o que sai da sua máquina. Nada é enviado até você clicar em Enviar.", "bf19826f81484328": "Incluir a conversa", - "260c6b45f52d2f27": "Adiciona o texto das suas mensagens e das respostas do agente {textTurns, plural, one {no último turno} other {nos últimos {textTurns} turnos}}.", "ddb7e6f8ce99e657": "Somente quem pode executar agentes nesta máquina pode enviar ou recusar o relatório.", "03c1eb603c112f47": "Não enviar", "653405e4ed498d9f": "Enviar", @@ -4404,9 +4408,14 @@ "991cc9fb37606c91": "(resposta vazia)", "36e4b8d2db087296": "Criar fork a partir desta resposta", "c92a0bab54261695": "Responder a esta resposta", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "Não é possível listar as alterações deste turno neste repositório.", "f6958f38dc87c712": "Criar fork a partir desta resposta", "72f8e14b1246d224": "Responder a esta resposta", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Ir para a mensagem: {text}", "e5428a0daffa236c": "Mensagem do usuário", "d18107d06a0eb562": "Turno anterior", @@ -8754,9 +8763,13 @@ "ed83b25c71c98a20": "Escolha um ou mais {scope}s do {tracker} para cada projeto. As issues deles aparecem ao lado das do repositório, e os agentes criam novas issues no primeiro, a menos que outro seja pedido.", "19c2d5e81ff8f89a": "{scope} do {tracker} para {project}", "68e061510b765772": "Não vinculado", + "99d51127f573296b": "Outra conta", + "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}.", + "99963c0142e17f00": "Para a nova conta do {tracker}.", "a2d95d39d3398bda": "Credencial recusada", "9eae463720500113": "Armazenado no servidor.", "b6e27ab2537ef874": "Criar um", + "6d8e4ebc889bace9": "Adicionar conta", "13ef526271b0f5d4": "Limpar todas as condições", "d1938a629f039515": "Remover condição", "84a605b241ce65b7": "Remover grupo e as condições dele", @@ -12603,6 +12616,16 @@ "156ff7b625287a1e": "Ocultar puladas", "69b985b97ab45e6b": "Mostrar puladas ({count})", "2400254d362de84d": "Carregando execuções de workflow…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "Um arquivo de workflow tem um problema." + }, + " ", + "A última versão que carregou continua em execução." + ], + "ed8ce6ebc73dc12d": "Abrir o arquivo", "145e1f7503ba3b2c": [ "Este ambiente não tem nenhuma execução com esse link.", " ", @@ -12628,16 +12651,6 @@ "c": "Leia o guia" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "Um arquivo de workflow tem um problema." - }, - " ", - "A última versão que carregou continua em execução." - ], - "ed8ce6ebc73dc12d": "Abrir o arquivo", "5d8d278ff828102d": "Todos os workflows", "39459da07479f482": "Agente", "7741243632056b81": "{step} · transcrição", @@ -12782,9 +12795,5 @@ "27d76249d09eb69f": "Guia de revisão pronto", "faa3bb26abb39c93": "O guia de revisão falhou", "b7df38b7d8792d78": "Abrir guia", - "9e91e9a77b664e4e": "Não foi possível iniciar um guia de revisão", - "99d51127f573296b": "Outra conta", - "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}.", - "99963c0142e17f00": "Para a nova conta do {tracker}.", - "6d8e4ebc889bace9": "Adicionar conta" + "9e91e9a77b664e4e": "Não foi possível iniciar um guia de revisão" } diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index 2891cb8165d7c..4cb39bb43fdf8 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Агент", "bfe1a60f3f9c60fb": "Ход {turn} · {what}", "dfdaa6255a416140": "Обзор {turns, plural, one {{turns} последнего хода} other {{turns} последних ходов}}, {textTurns, plural, =0 {без текста сообщений} =1 {с текстом сообщений последнего хода} one {с текстом сообщений последнего {textTurns} хода} other {с текстом сообщений последних {textTurns} ходов}}{truncated, select, yes {, сокращено до допустимого размера} other {}}", + "260c6b45f52d2f27": "Добавляет текст ваших сообщений и ответов агента за {textTurns, plural, =1 {последний ход} one {последний {textTurns} ход} few {последние {textTurns} хода} many {последние {textTurns} ходов} other {последние {textTurns} хода}}.", "afac52a5cc2dc801": "Не удалось отправить ваш ответ. Попробуйте ещё раз.", "79d776428f4d0650": "Не удалось загрузить файл. Переподключитесь и попробуйте ещё раз.", "3ea34cbb1ca5ba9b": "Предпросмотр отменён.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Обновление {version} готово к загрузке", "9a951140b69ba740": "Загрузка обновления ({percent}%)", "7fdece033260e9fb": "Загрузка обновления", + "52e1d4a487c0cf4b": "Не удалось установить {version}. Нажмите, чтобы повторить.", "09ef51903e99e876": "Обновление скачано. Нажмите, чтобы перезапустить и установить.", "d62631cab06d2b80": "Обновление {version} скачано. Нажмите, чтобы перезапустить и установить.", - "52e1d4a487c0cf4b": "Не удалось установить {version}. Нажмите, чтобы повторить.", "78a04e0e625c0990": "Ошибка обновления", "c24de5eb69373a55": "Эта сборка {build} игнорирует выпуски {track}. Проверьте канал обновлений в настройках, чтобы завершить переключение.", "b02ae45a6109c93b": "Последняя версия", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "Не удалось начать голосовой ввод", "47e93194d837912b": "Apple Speech не поддерживает этот язык.", "f9bebb0ec6c93680": "Apple Speech недоступен на этом Mac.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Нет модели для вашего языка. Выберите модель или смените язык в настройках голоса.", "ff4cf071e91f7617": "Не удалось загрузить модели расшифровки. Проверьте подключение и повторите попытку.", "8fc9dbbfebef2a39": "Голосовой ввод недоступен", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "Отправить этот отчёт команде T3?", "87d0ae0723ba75d1": "С этого компьютера отправится только это содержимое. Ничего не будет отправлено, пока вы не нажмёте «Отправить».", "bf19826f81484328": "Включить переписку", - "260c6b45f52d2f27": "Добавляет текст ваших сообщений и ответов агента за {textTurns, plural, =1 {последний ход} one {последний {textTurns} ход} few {последние {textTurns} хода} many {последние {textTurns} ходов} other {последние {textTurns} хода}}.", "ddb7e6f8ce99e657": "Отправить отчёт или отклонить его может только тот, кто может запускать агентов на этом компьютере.", "03c1eb603c112f47": "Не отправлять", "653405e4ed498d9f": "Отправить", @@ -4404,9 +4408,14 @@ "991cc9fb37606c91": "(пустой ответ)", "36e4b8d2db087296": "Ответвить от этого ответа", "c92a0bab54261695": "Ответить на этот ответ", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "Не удаётся показать изменения этого хода в этом репозитории.", "f6958f38dc87c712": "Ответвить от этого ответа", "72f8e14b1246d224": "Ответить на этот ответ", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Перейти к сообщению: {text}", "e5428a0daffa236c": "Сообщение пользователя", "d18107d06a0eb562": "Предыдущий ход", @@ -8756,9 +8765,13 @@ "ed83b25c71c98a20": "Выберите один или несколько {scope} в {tracker} для каждого проекта. Их issue показываются рядом с issue репозитория, а агенты создают новые issue в первом, если вы не укажете, где их создать.", "19c2d5e81ff8f89a": "{tracker} {scope} для {project}", "68e061510b765772": "Не привязано", + "99d51127f573296b": "Другой аккаунт", + "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}.", + "99963c0142e17f00": "Для нового аккаунта {tracker}.", "a2d95d39d3398bda": "Учётные данные отклонены", "9eae463720500113": "Хранится на сервере.", "b6e27ab2537ef874": "Создать", + "6d8e4ebc889bace9": "Добавить аккаунт", "13ef526271b0f5d4": "Очистить все условия", "d1938a629f039515": "Удалить условие", "84a605b241ce65b7": "Удалить группу и её условия", @@ -12604,6 +12617,16 @@ "156ff7b625287a1e": "Скрыть пропущенные", "69b985b97ab45e6b": "Показать пропущенные ({count})", "2400254d362de84d": "Загрузка запусков воркфлоу…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "В файле воркфлоу есть ошибка." + }, + " ", + "Продолжает работать последняя версия, которая загрузилась." + ], + "ed8ce6ebc73dc12d": "Открыть файл", "145e1f7503ba3b2c": [ "В этом окружении нет запуска по этой ссылке.", " ", @@ -12629,16 +12652,6 @@ "c": "Читать руководство" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "В файле воркфлоу есть ошибка." - }, - " ", - "Продолжает работать последняя версия, которая загрузилась." - ], - "ed8ce6ebc73dc12d": "Открыть файл", "5d8d278ff828102d": "Все воркфлоу", "39459da07479f482": "Агент", "7741243632056b81": "{step} · расшифровка", @@ -12782,9 +12795,5 @@ "27d76249d09eb69f": "Гид по ревью готов", "faa3bb26abb39c93": "Не удалось создать гид по ревью", "b7df38b7d8792d78": "Открыть гид", - "9e91e9a77b664e4e": "Не удалось запустить гид по ревью", - "99d51127f573296b": "Другой аккаунт", - "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}.", - "99963c0142e17f00": "Для нового аккаунта {tracker}.", - "6d8e4ebc889bace9": "Добавить аккаунт" + "9e91e9a77b664e4e": "Не удалось запустить гид по ревью" } diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index c792d6fb4a981..1c360a63eca3e 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "Agent", "bfe1a60f3f9c60fb": "Omgång {turn} · {what}", "dfdaa6255a416140": "Översikt över {turns, plural, one {{turns} senaste omgång} other {{turns} senaste omgångar}}, {textTurns, plural, =0 {ingen meddelandetext} one {meddelandetext från den senaste omgången} other {meddelandetext från de senaste {textTurns} omgångarna}}{truncated, select, yes {, förkortad för att få plats} other {}}", + "260c6b45f52d2f27": "Lägger till texten i dina meddelanden och agentens svar under {textTurns, plural, one {den senaste omgången} other {de senaste {textTurns} omgångarna}}.", "afac52a5cc2dc801": "Det gick inte att skicka ditt svar. Försök igen.", "79d776428f4d0650": "Filen kunde inte läsas in. Återanslut och försök igen.", "3ea34cbb1ca5ba9b": "Förhandsvisningen avbröts.", @@ -2733,9 +2734,9 @@ "db7b3a938c45e56c": "Uppdateringen {version} är redo att laddas ned", "9a951140b69ba740": "Laddar ned uppdatering ({percent} %)", "7fdece033260e9fb": "Laddar ned uppdatering", + "52e1d4a487c0cf4b": "Installationen av {version} misslyckades. Klicka för att försöka igen.", "09ef51903e99e876": "Uppdateringen har laddats ned. Klicka för att starta om och installera.", "d62631cab06d2b80": "Uppdateringen {version} har laddats ned. Klicka för att starta om och installera.", - "52e1d4a487c0cf4b": "Installationen av {version} misslyckades. Klicka för att försöka igen.", "78a04e0e625c0990": "Uppdateringen misslyckades", "c24de5eb69373a55": "Den här {build}-versionen ignorerar {track}-versioner. Granska uppdateringsspåret i Inställningar för att slutföra bytet.", "b02ae45a6109c93b": "Uppdaterad", @@ -3078,6 +3079,10 @@ "4094c385ce0a6493": "Kunde inte starta röstinmatning", "47e93194d837912b": "Apple Speech stöder inte det här språket.", "f9bebb0ec6c93680": "Apple Speech är inte tillgängligt på den här Macen.", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "Ingen modell matchar ditt språk. Välj en modell eller ändra språket i röstinställningarna.", "ff4cf071e91f7617": "Kunde inte läsa in transkriberingsmodeller. Kontrollera anslutningen och försök igen.", "8fc9dbbfebef2a39": "Röstinmatning är inte tillgänglig", @@ -3638,7 +3643,6 @@ "4e0710d19dfc2e7e": "Skicka den här rapporten till T3-teamet?", "87d0ae0723ba75d1": "Det här är allt som lämnar din dator. Inget skickas förrän du trycker på Skicka.", "bf19826f81484328": "Ta med konversationen", - "260c6b45f52d2f27": "Lägger till texten i dina meddelanden och agentens svar under {textTurns, plural, one {den senaste omgången} other {de senaste {textTurns} omgångarna}}.", "ddb7e6f8ce99e657": "Bara den som kan köra agenter på den här datorn kan skicka eller avböja rapporten.", "03c1eb603c112f47": "Skicka inte", "653405e4ed498d9f": "Skicka", @@ -4405,9 +4409,14 @@ "991cc9fb37606c91": "(tomt svar)", "36e4b8d2db087296": "Forka från det här svaret", "c92a0bab54261695": "Svara på det här svaret", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "Den här omgångens ändringar i det här repot kan inte listas.", "f6958f38dc87c712": "Forka från det här svaret", "72f8e14b1246d224": "Svara på det här svaret", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "Hoppa till meddelande: {text}", "e5428a0daffa236c": "Användarmeddelande", "d18107d06a0eb562": "Föregående omgång", @@ -8762,9 +8771,13 @@ "ed83b25c71c98a20": "Välj en eller flera {scope} i {tracker} för varje projekt. Deras ärenden listas bredvid repots egna, och agenter skapar nya ärenden i det första om de inte ombeds välja ett annat.", "19c2d5e81ff8f89a": "{scope} i {tracker} för {project}", "68e061510b765772": "Inte kopplad", + "99d51127f573296b": "Ett konto till", + "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare.", + "99963c0142e17f00": "För det nya {tracker}-kontot.", "a2d95d39d3398bda": "Autentiseringsuppgiften avvisades", "9eae463720500113": "Lagras på servern.", "b6e27ab2537ef874": "Skapa en", + "6d8e4ebc889bace9": "Lägg till konto", "13ef526271b0f5d4": "Rensa alla villkor", "d1938a629f039515": "Ta bort villkor", "84a605b241ce65b7": "Ta bort gruppen och dess villkor", @@ -12611,6 +12624,16 @@ "156ff7b625287a1e": "Dölj överhoppade", "69b985b97ab45e6b": "Visa överhoppade ({count})", "2400254d362de84d": "Läser in arbetsflödeskörningar…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "En arbetsflödesfil har ett problem." + }, + " ", + "Den senaste versionen som gick att läsa in körs vidare." + ], + "ed8ce6ebc73dc12d": "Öppna filen", "145e1f7503ba3b2c": [ "Den här miljön har ingen körning med den länken.", " ", @@ -12636,16 +12659,6 @@ "c": "Läs guiden" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "En arbetsflödesfil har ett problem." - }, - " ", - "Den senaste versionen som gick att läsa in körs vidare." - ], - "ed8ce6ebc73dc12d": "Öppna filen", "5d8d278ff828102d": "Alla arbetsflöden", "39459da07479f482": "Agent", "7741243632056b81": "{step} · transkript", @@ -12789,9 +12802,5 @@ "27d76249d09eb69f": "Granskningsguiden är klar", "faa3bb26abb39c93": "Granskningsguiden misslyckades", "b7df38b7d8792d78": "Öppna guiden", - "9e91e9a77b664e4e": "Kunde inte starta en granskningsguide", - "99d51127f573296b": "Ett konto till", - "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare.", - "99963c0142e17f00": "För det nya {tracker}-kontot.", - "6d8e4ebc889bace9": "Lägg till konto" + "9e91e9a77b664e4e": "Kunde inte starta en granskningsguide" } diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index cd80e9a35102a..9f01f412cade4 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -71,6 +71,7 @@ "cd03eb1b84271c02": "智能体", "bfe1a60f3f9c60fb": "第 {turn} 轮 · {what}", "dfdaa6255a416140": "{turns, plural, one {最近 {turns} 轮的概要} other {最近 {turns} 轮的概要}},{textTurns, plural, =0 {不含消息文本} one {包含最后一轮的消息文本} other {包含最近 {textTurns} 轮的消息文本}}{truncated, select, yes {,已缩短以符合长度限制} other {}}", + "260c6b45f52d2f27": "添加你在最近 {textTurns} 轮中的消息和智能体回复的文本。", "afac52a5cc2dc801": "无法发送你的回答。请重试。", "79d776428f4d0650": "无法加载文件。请重新连接后重试。", "3ea34cbb1ca5ba9b": "预览已取消。", @@ -2737,9 +2738,9 @@ "db7b3a938c45e56c": "更新 {version} 已可下载", "9a951140b69ba740": "正在下载更新({percent}%)", "7fdece033260e9fb": "正在下载更新", + "52e1d4a487c0cf4b": "安装 {version} 失败。点击重试。", "09ef51903e99e876": "更新已下载。点击重启并安装。", "d62631cab06d2b80": "更新 {version} 已下载。点击重启并安装。", - "52e1d4a487c0cf4b": "安装 {version} 失败。点击重试。", "78a04e0e625c0990": "更新失败", "c24de5eb69373a55": "此 {build} 版本会忽略 {track} 版本。请在设置中检查更新通道以完成切换。", "b02ae45a6109c93b": "已是最新版本", @@ -3082,6 +3083,10 @@ "4094c385ce0a6493": "无法开始语音输入", "47e93194d837912b": "Apple Speech 不支持此语言。", "f9bebb0ec6c93680": "此 Mac 上无法使用 Apple Speech。", + "fa06565b3576fdae": "Response summary", + "fcc72724c26e3087": "Full response", + "2361c8287401c2b3": "Could not read response aloud.", + "b01aa606db310b1a": "Could not play synthesized speech.", "14ff185a0153700e": "没有与你的语言匹配的模型。请选择模型,或在“设置 → 语音”中更改语言。", "ff4cf071e91f7617": "无法加载转写模型。请检查连接后重试。", "8fc9dbbfebef2a39": "语音输入不可用", @@ -3643,7 +3648,6 @@ "4e0710d19dfc2e7e": "将这份报告发送给 T3 团队?", "87d0ae0723ba75d1": "只有这些内容会从你的机器发送出去。点击“发送”前,不会发送任何内容。", "bf19826f81484328": "包含对话", - "260c6b45f52d2f27": "添加你在最近 {textTurns} 轮中的消息和智能体回复的文本。", "ddb7e6f8ce99e657": "只有能在这台机器上运行智能体的人,才能发送或拒绝这份报告。", "03c1eb603c112f47": "不发送", "653405e4ed498d9f": "发送", @@ -4411,9 +4415,14 @@ "991cc9fb37606c91": "(空响应)", "36e4b8d2db087296": "从这条回复分叉", "c92a0bab54261695": "回复这条回答", + "154bec57dbece73c": "Stop reading", + "14ed6325d92638e8": "Read response", "405a3e88ee6e62b3": "无法列出此轮次在该仓库中的改动。", "f6958f38dc87c712": "从这条回复分叉", "72f8e14b1246d224": "回复这条回答", + "41dacf2a84a045ac": "Stop reading", + "fae3f399c502e87b": "Read summary", + "ca2631a2759df692": "Read full text", "01d7728e893c281d": "跳转到消息:{text}", "e5428a0daffa236c": "用户消息", "d18107d06a0eb562": "上一轮", @@ -8772,9 +8781,13 @@ "ed83b25c71c98a20": "为每个项目选择一个或多个 {tracker} {scope}。它们的 issue 会列在仓库自身的 issue 旁;除非另有指定,智能体会在第一个中创建新 issue。", "19c2d5e81ff8f89a": "{project} 的 {tracker} {scope}", "68e061510b765772": "未绑定", + "99d51127f573296b": "其他账号", + "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。", + "99963c0142e17f00": "用于新的 {tracker} 账号。", "a2d95d39d3398bda": "凭据被拒绝", "9eae463720500113": "存储在服务器上。", "b6e27ab2537ef874": "创建一个", + "6d8e4ebc889bace9": "添加账号", "13ef526271b0f5d4": "清除所有条件", "d1938a629f039515": "移除条件", "84a605b241ce65b7": "移除条件组及其条件", @@ -12622,6 +12635,15 @@ "156ff7b625287a1e": "隐藏已跳过", "69b985b97ab45e6b": "显示 {count} 个已跳过", "2400254d362de84d": "正在加载工作流运行…", + "cae5c3205c01d062": [ + { + "t": "span", + "i": 1, + "c": "有工作流文件存在问题。" + }, + "上一个可加载的版本会继续运行。" + ], + "ed8ce6ebc73dc12d": "打开文件", "145e1f7503ba3b2c": [ "此环境中没有该链接对应的运行。", " ", @@ -12648,15 +12670,6 @@ "c": "阅读指南" } ], - "cae5c3205c01d062": [ - { - "t": "span", - "i": 1, - "c": "有工作流文件存在问题。" - }, - "上一个可加载的版本会继续运行。" - ], - "ed8ce6ebc73dc12d": "打开文件", "5d8d278ff828102d": "全部工作流", "39459da07479f482": "智能体", "7741243632056b81": "{step} · 记录", @@ -12801,9 +12814,5 @@ "27d76249d09eb69f": "审查导览已就绪", "faa3bb26abb39c93": "审查导览生成失败", "b7df38b7d8792d78": "打开导览", - "9e91e9a77b664e4e": "无法开始生成审查导览", - "99d51127f573296b": "其他账号", - "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。", - "99963c0142e17f00": "用于新的 {tracker} 账号。", - "6d8e4ebc889bace9": "添加账号" + "9e91e9a77b664e4e": "无法开始生成审查导览" } diff --git a/apps/web/src/speech/readAloudPlayer.ts b/apps/web/src/speech/readAloudPlayer.ts new file mode 100644 index 0000000000000..4290a796a95fc --- /dev/null +++ b/apps/web/src/speech/readAloudPlayer.ts @@ -0,0 +1,196 @@ +import { synthesizeEnvironmentSpeech } from "@t3tools/client-runtime/voice-input"; +import type { EnvironmentId, SpeechReadAloudMode } from "@t3tools/contracts"; +import { msg } from "gt-react"; + +import { toastManager } from "~/components/ui/toast"; +import { m } from "~/i18n/messages"; +import { readPreparedConnection } from "~/state/session"; +import { runEnvironmentSpeech } from "./runEnvironmentSpeech"; + +export type ReadAloudSnapshot = { + readonly activeMessageId: string | null; + readonly phase: "idle" | "loading" | "playing"; + readonly mode: SpeechReadAloudMode | null; +}; + +const IDLE_SNAPSHOT: ReadAloudSnapshot = { + activeMessageId: null, + phase: "idle", + mode: null, +}; + +let currentSnapshot: ReadAloudSnapshot = IDLE_SNAPSHOT; +let activeController: AbortController | null = null; +let activeAudio: HTMLAudioElement | null = null; +let activeObjectUrl: string | null = null; +const listeners = new Set<() => void>(); + +function emitSnapshot(next: ReadAloudSnapshot) { + currentSnapshot = next; + for (const listener of listeners) { + listener(); + } +} + +function clearMediaSession() { + if (typeof navigator === "undefined" || !("mediaSession" in navigator)) return; + try { + navigator.mediaSession.playbackState = "none"; + navigator.mediaSession.setActionHandler("play", null); + navigator.mediaSession.setActionHandler("pause", null); + navigator.mediaSession.setActionHandler("stop", null); + } catch { + return; + } +} + +function configureMediaSession(audio: HTMLAudioElement, mode: SpeechReadAloudMode) { + if ( + typeof navigator === "undefined" || + !("mediaSession" in navigator) || + typeof MediaMetadata === "undefined" + ) { + return; + } + try { + navigator.mediaSession.metadata = new MediaMetadata({ + title: mode === "summary" ? m(msg("Response summary")) : m(msg("Full response")), + artist: "T3 Code", + }); + navigator.mediaSession.playbackState = "playing"; + navigator.mediaSession.setActionHandler("play", () => { + void audio.play().catch(() => stopReadAloud()); + }); + navigator.mediaSession.setActionHandler("pause", () => { + stopReadAloud(); + }); + navigator.mediaSession.setActionHandler("stop", () => { + stopReadAloud(); + }); + } catch { + return; + } +} + +function cleanupResources() { + if (activeController) { + activeController.abort(); + activeController = null; + } + if (activeAudio) { + activeAudio.pause(); + activeAudio.removeAttribute("src"); + activeAudio = null; + } + if (activeObjectUrl) { + URL.revokeObjectURL(activeObjectUrl); + activeObjectUrl = null; + } + clearMediaSession(); +} + +export function subscribeReadAloud(listener: () => void): () => void { + listeners.add(listener); + return () => { + listeners.delete(listener); + }; +} + +export function getReadAloudSnapshot(): ReadAloudSnapshot { + return currentSnapshot; +} + +export function stopReadAloud() { + cleanupResources(); + if (currentSnapshot.phase !== "idle") { + emitSnapshot(IDLE_SNAPSHOT); + } +} + +export function startReadAloud(input: { + readonly messageId: string; + readonly environmentId: EnvironmentId | null; + readonly text: string; + readonly mode: SpeechReadAloudMode; +}) { + cleanupResources(); + if (!input.environmentId) { + toastManager.add({ + type: "error", + title: m(msg("Could not read response aloud.")), + }); + emitSnapshot(IDLE_SNAPSHOT); + return; + } + const connection = readPreparedConnection(input.environmentId); + if (!connection) { + toastManager.add({ + type: "error", + title: m(msg("Could not read response aloud.")), + }); + emitSnapshot(IDLE_SNAPSHOT); + return; + } + const controller = new AbortController(); + activeController = controller; + emitSnapshot({ + activeMessageId: input.messageId, + phase: "loading", + mode: input.mode, + }); + void runEnvironmentSpeech( + synthesizeEnvironmentSpeech( + connection, + input.text, + input.mode, + () => !controller.signal.aborted, + ), + { signal: controller.signal }, + ).then( + (wavBytes) => { + if (controller.signal.aborted || activeController !== controller) return; + const copy = new Uint8Array(wavBytes.byteLength); + copy.set(wavBytes); + const blob = new Blob([copy], { type: "audio/wav" }); + const objectUrl = URL.createObjectURL(blob); + activeObjectUrl = objectUrl; + const audio = new Audio(objectUrl); + activeAudio = audio; + audio.addEventListener("ended", () => { + if (activeAudio === audio) stopReadAloud(); + }); + audio.addEventListener("error", () => { + if (activeAudio === audio) { + stopReadAloud(); + toastManager.add({ + type: "error", + title: m(msg("Could not play synthesized speech.")), + }); + } + }); + configureMediaSession(audio, input.mode); + emitSnapshot({ + activeMessageId: input.messageId, + phase: "playing", + mode: input.mode, + }); + void audio.play().catch(() => { + if (activeAudio === audio) { + stopReadAloud(); + toastManager.add({ + type: "error", + title: m(msg("Could not play synthesized speech.")), + }); + } + }); + }, + () => { + if (controller.signal.aborted || activeController !== controller) return; + stopReadAloud(); + toastManager.add({ + type: "error", + title: m(msg("Could not read response aloud.")), + }); + }, + ); +} diff --git a/packages/client-runtime/src/voice-input/environment.ts b/packages/client-runtime/src/voice-input/environment.ts index 2aa18a7beb5a5..251513e2ab30b 100644 --- a/packages/client-runtime/src/voice-input/environment.ts +++ b/packages/client-runtime/src/voice-input/environment.ts @@ -10,6 +10,7 @@ import type { SettingsSecretValue, SpeechAcceleration, SpeechModelUnloadTimeout, + SpeechReadAloudMode, SpeechTranscriptionOptions, SpeechPostProcessingOptions, } from "@t3tools/contracts"; @@ -331,3 +332,19 @@ export const removeEnvironmentSpeechModel = (prepared: PreparedConnection, model path: (urls) => urls.removeModel(), run: ({ client, headers }) => client.removeModel({ headers, payload: { modelId } }), }); + +export const synthesizeEnvironmentSpeech = ( + prepared: PreparedConnection, + text: string, + mode: SpeechReadAloudMode, + canSend?: () => boolean, +) => + request({ + group: "voice", + prepared, + method: "POST", + path: (urls) => urls.synthesize(), + ...(canSend ? { canSend } : {}), + timeoutMs: INFERENCE_OR_DOWNLOAD_TIMEOUT_MS, + run: ({ client, headers }) => client.synthesize({ headers, payload: { text, mode } }), + }); diff --git a/packages/client-runtime/src/voice-input/index.ts b/packages/client-runtime/src/voice-input/index.ts index d607b32aad355..102ded4c79006 100644 --- a/packages/client-runtime/src/voice-input/index.ts +++ b/packages/client-runtime/src/voice-input/index.ts @@ -28,6 +28,7 @@ export { postProcessEnvironmentTranscript, removeEnvironmentSpeechModel, selectEnvironmentSpeechModel, + synthesizeEnvironmentSpeech, transcribeEnvironmentPcm, updateEnvironmentSpeechAcceleration, updateEnvironmentSpeechModelUnloadTimeout, diff --git a/packages/contracts/src/environmentHttp.ts b/packages/contracts/src/environmentHttp.ts index 2a6c0dc43d50c..9b3b8c227b45f 100644 --- a/packages/contracts/src/environmentHttp.ts +++ b/packages/contracts/src/environmentHttp.ts @@ -69,6 +69,7 @@ import { EnvironmentSpeechPostProcessingRequest, EnvironmentSpeechPostProcessingResult, EnvironmentSpeechStatus, + EnvironmentSpeechSynthesizeRequest, EnvironmentSpeechTranscriptionResult, } from "./speech.ts"; import { PeerLinkClientPairingCredential, PeerLinkClientPairingRequest } from "./peerLink.ts"; @@ -991,6 +992,14 @@ export class EnvironmentVoiceHttpApi extends HttpApiGroup.make("voice") success: EnvironmentSpeechPostProcessingResult, error: EnvironmentScopedOperationErrors, }).middleware(EnvironmentAuthenticatedAuth), + ) + .add( + HttpApiEndpoint.post("synthesize", "/api/voice/synthesize", { + headers: OptionalBearerHeaders, + payload: EnvironmentSpeechSynthesizeRequest, + success: Schema.Uint8Array.pipe(HttpApiSchema.asUint8Array({ contentType: "audio/wav" })), + error: [...EnvironmentScopedOperationErrors, EnvironmentRequestInvalidError], + }).middleware(EnvironmentAuthenticatedAuth), ) {} class EnvironmentConnectHttpApi extends HttpApiGroup.make("connect") diff --git a/packages/contracts/src/speech.ts b/packages/contracts/src/speech.ts index 0784c92be4ab6..d17c4b14d2122 100644 --- a/packages/contracts/src/speech.ts +++ b/packages/contracts/src/speech.ts @@ -364,3 +364,12 @@ export const SpeechStreamEvent = Schema.Union([ Schema.Struct({ type: Schema.Literal("error"), message: Schema.String }), ]); export type SpeechStreamEvent = typeof SpeechStreamEvent.Type; + +export const SpeechReadAloudMode = Schema.Literals(["summary", "full"]); +export type SpeechReadAloudMode = typeof SpeechReadAloudMode.Type; + +export const EnvironmentSpeechSynthesizeRequest = Schema.Struct({ + text: Schema.String.check(Schema.isMaxLength(200_000)), + mode: SpeechReadAloudMode, +}); +export type EnvironmentSpeechSynthesizeRequest = typeof EnvironmentSpeechSynthesizeRequest.Type;