chore: generate
This commit is contained in:
@@ -21,11 +21,7 @@ type GlobalEventStream = {
|
|||||||
stream: AsyncIterable<GlobalEventEnvelope>
|
stream: AsyncIterable<GlobalEventEnvelope>
|
||||||
}
|
}
|
||||||
|
|
||||||
export function start(input: {
|
export function start(input: { sdk: OpencodeClient; connection: Connection; session: ACPNextSession.Interface }) {
|
||||||
sdk: OpencodeClient
|
|
||||||
connection: Connection
|
|
||||||
session: ACPNextSession.Interface
|
|
||||||
}) {
|
|
||||||
const subscription = new Subscription(input)
|
const subscription = new Subscription(input)
|
||||||
subscription.start()
|
subscription.start()
|
||||||
return subscription
|
return subscription
|
||||||
|
|||||||
@@ -232,14 +232,10 @@ describe("acp-next event routing", () => {
|
|||||||
await harness.subscription.handle(textDelta("ses_b", "msg_b", "part_b", "B2"))
|
await harness.subscription.handle(textDelta("ses_b", "msg_b", "part_b", "B2"))
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
harness.updates
|
harness.updates.filter((update) => update.sessionId === "ses_a").map((update) => update.update.sessionUpdate),
|
||||||
.filter((update) => update.sessionId === "ses_a")
|
|
||||||
.map((update) => update.update.sessionUpdate),
|
|
||||||
).toEqual(["agent_message_chunk", "agent_message_chunk"])
|
).toEqual(["agent_message_chunk", "agent_message_chunk"])
|
||||||
expect(
|
expect(
|
||||||
harness.updates
|
harness.updates.filter((update) => update.sessionId === "ses_b").map((update) => update.update.sessionUpdate),
|
||||||
.filter((update) => update.sessionId === "ses_b")
|
|
||||||
.map((update) => update.update.sessionUpdate),
|
|
||||||
).toEqual(["agent_thought_chunk", "agent_thought_chunk"])
|
).toEqual(["agent_thought_chunk", "agent_thought_chunk"])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user