ignore: fix typerrs on dev (#26544)
This commit is contained in:
@@ -8,7 +8,6 @@ import type {
|
|||||||
ToolStatePending,
|
ToolStatePending,
|
||||||
ToolStateRunning,
|
ToolStateRunning,
|
||||||
} from "@opencode-ai/sdk/v2"
|
} from "@opencode-ai/sdk/v2"
|
||||||
import { Instance } from "../../src/project/instance"
|
|
||||||
import { WithInstance } from "../../src/project/with-instance"
|
import { WithInstance } from "../../src/project/with-instance"
|
||||||
import { tmpdir } from "../fixture/fixture"
|
import { tmpdir } from "../fixture/fixture"
|
||||||
|
|
||||||
@@ -113,6 +112,7 @@ function completedToolEvent(
|
|||||||
...(opts.attachments && { attachments: opts.attachments }),
|
...(opts.attachments && { attachments: opts.attachments }),
|
||||||
}
|
}
|
||||||
const payload: EventMessagePartUpdated = {
|
const payload: EventMessagePartUpdated = {
|
||||||
|
id: `evt_${opts.callID}`,
|
||||||
type: "message.part.updated",
|
type: "message.part.updated",
|
||||||
properties: {
|
properties: {
|
||||||
sessionID: sessionId,
|
sessionID: sessionId,
|
||||||
@@ -671,7 +671,7 @@ describe("acp.agent event subscription", () => {
|
|||||||
|
|
||||||
test("emits image attachments as ACP tool content blocks on live completed tool updates", async () => {
|
test("emits image attachments as ACP tool content blocks on live completed tool updates", async () => {
|
||||||
await using tmp = await tmpdir()
|
await using tmp = await tmpdir()
|
||||||
await Instance.provide({
|
await WithInstance.provide({
|
||||||
directory: tmp.path,
|
directory: tmp.path,
|
||||||
fn: async () => {
|
fn: async () => {
|
||||||
const { agent, controller, sessionUpdates, stop } = createFakeAgent()
|
const { agent, controller, sessionUpdates, stop } = createFakeAgent()
|
||||||
@@ -728,7 +728,7 @@ describe("acp.agent event subscription", () => {
|
|||||||
|
|
||||||
test("replays completed tool image attachments as ACP tool content blocks", async () => {
|
test("replays completed tool image attachments as ACP tool content blocks", async () => {
|
||||||
await using tmp = await tmpdir()
|
await using tmp = await tmpdir()
|
||||||
await Instance.provide({
|
await WithInstance.provide({
|
||||||
directory: tmp.path,
|
directory: tmp.path,
|
||||||
fn: async () => {
|
fn: async () => {
|
||||||
const { agent, sessionUpdates, stop, sdk } = createFakeAgent()
|
const { agent, sessionUpdates, stop, sdk } = createFakeAgent()
|
||||||
|
|||||||
Reference in New Issue
Block a user