feat(sdk): restore session runtime operations (#33777)

This commit is contained in:
Kit Langton 2026-06-25 20:23:01 +02:00 committed by GitHub
commit f44423609b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1099 additions and 92 deletions

View file

@ -1066,6 +1066,31 @@ const scenarios: Scenario[] = [
headers: ctx.headers(),
}))
.status(400, undefined, "none"),
http.protected
.get("/api/session/{sessionID}/event", "v2.session.events.missing")
.at((ctx) => ({
path: `${route("/api/session/{sessionID}/event", { sessionID: "ses_httpapi_missing" })}?after=0`,
headers: ctx.headers(),
}))
.status(404, undefined, "status"),
http.protected
.post("/api/session/{sessionID}/interrupt", "v2.session.interrupt")
.seeded((ctx) => ctx.session({ title: "Interrupt session" }))
.at((ctx) => ({
path: route("/api/session/{sessionID}/interrupt", { sessionID: ctx.state.id }),
headers: ctx.headers(),
}))
.status(204, undefined, "none"),
http.protected
.get("/api/session/{sessionID}/message/{messageID}", "v2.session.message.missing")
.at((ctx) => ({
path: route("/api/session/{sessionID}/message/{messageID}", {
sessionID: "ses_httpapi_missing",
messageID: "msg_httpapi_missing",
}),
headers: ctx.headers(),
}))
.json(404, object, "status"),
http.protected
.post("/api/session/{sessionID}/prompt", "v2.session.prompt.invalid")
.seeded((ctx) => ctx.session({ title: "Invalid prompt owner" }))