chore: generate

This commit is contained in:
GitHub Action
2026-01-20 16:11:56 +00:00
parent e8b0a65c63
commit 733226de9d

View File

@@ -689,11 +689,7 @@ export namespace ACP {
} }
} else if (part.type === "text") { } else if (part.type === "text") {
if (part.text) { if (part.text) {
const audience: Role[] | undefined = part.synthetic const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined
? ["assistant"]
: part.ignored
? ["user"]
: undefined
await this.connection await this.connection
.sessionUpdate({ .sessionUpdate({
sessionId, sessionId,
@@ -975,7 +971,8 @@ export namespace ACP {
const agent = session.modeId ?? (await AgentModule.defaultAgent()) const agent = session.modeId ?? (await AgentModule.defaultAgent())
const parts: Array< const parts: Array<
{ type: "text"; text: string; synthetic?: boolean; ignored?: boolean } | { type: "file"; url: string; filename: string; mime: string } | { type: "text"; text: string; synthetic?: boolean; ignored?: boolean }
| { type: "file"; url: string; filename: string; mime: string }
> = [] > = []
for (const part of params.prompt) { for (const part of params.prompt) {
switch (part.type) { switch (part.type) {