fix(core): revert form service and mcp elicitation (#35080)

This commit is contained in:
Aiden Cline 2026-07-03 00:32:10 -05:00 committed by GitHub
commit ef2140d121
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
73 changed files with 6587 additions and 6492 deletions

View file

@ -76,8 +76,6 @@ import type {
FindTextResponses,
FormatterStatusErrors,
FormatterStatusResponses,
FormCreatePayload,
FormReply,
GlobalConfigGetErrors,
GlobalConfigGetResponses,
GlobalConfigUpdateErrors,
@ -145,8 +143,8 @@ import type {
ProjectUpdateErrors,
ProjectUpdateResponses,
PromptAgentAttachment2,
PromptInput,
PromptInputFileAttachment,
PromptInputFileAttachment2,
PromptInputV2,
ProviderAuthErrors,
ProviderAuthResponses,
ProviderListErrors,
@ -178,13 +176,14 @@ import type {
QuestionRejectResponses,
QuestionReplyErrors,
QuestionReplyResponses,
QuestionV2Reply2,
SessionAbortErrors,
SessionAbortResponses,
SessionChildrenErrors,
SessionChildrenResponses,
SessionCommandErrors,
SessionCommandResponses,
SessionContextEntryKey,
SessionContextEntryKey2,
SessionCreateErrors,
SessionCreateResponses,
SessionDeleteErrors,
@ -279,8 +278,6 @@ import type {
V2EventChangesResponses,
V2EventSubscribeErrors,
V2EventSubscribeResponses,
V2FormRequestListErrors,
V2FormRequestListResponses,
V2FsFindErrors,
V2FsFindResponses,
V2FsListErrors,
@ -349,6 +346,8 @@ import type {
V2PtyRemoveResponses,
V2PtyUpdateErrors,
V2PtyUpdateResponses,
V2QuestionRequestListErrors,
V2QuestionRequestListResponses,
V2ReferenceListErrors,
V2ReferenceListResponses,
V2SessionActiveErrors,
@ -371,18 +370,6 @@ import type {
V2SessionCreateResponses,
V2SessionForkErrors,
V2SessionForkResponses,
V2SessionFormCancelErrors,
V2SessionFormCancelResponses,
V2SessionFormCreateErrors,
V2SessionFormCreateResponses,
V2SessionFormGetErrors,
V2SessionFormGetResponses,
V2SessionFormListErrors,
V2SessionFormListResponses,
V2SessionFormReplyErrors,
V2SessionFormReplyResponses,
V2SessionFormStateErrors,
V2SessionFormStateResponses,
V2SessionGetErrors,
V2SessionGetResponses,
V2SessionInterruptErrors,
@ -405,6 +392,12 @@ import type {
V2SessionPermissionReplyResponses,
V2SessionPromptErrors,
V2SessionPromptResponses,
V2SessionQuestionListErrors,
V2SessionQuestionListResponses,
V2SessionQuestionRejectErrors,
V2SessionQuestionRejectResponses,
V2SessionQuestionReplyErrors,
V2SessionQuestionReplyResponses,
V2SessionRenameErrors,
V2SessionRenameResponses,
V2SessionRevertClearErrors,
@ -5274,7 +5267,7 @@ export class Entry extends HeyApiClient {
public remove<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
key: SessionContextEntryKey
key: SessionContextEntryKey2
},
options?: Options<never, ThrowOnError>,
) {
@ -5308,7 +5301,7 @@ export class Entry extends HeyApiClient {
public put<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
key: SessionContextEntryKey
key: SessionContextEntryKey2
value?: unknown
},
options?: Options<never, ThrowOnError>,
@ -5349,232 +5342,6 @@ export class Context extends HeyApiClient {
}
}
export class Form extends HeyApiClient {
/**
* List session forms
*
* Retrieve pending forms for a session.
*/
public list<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "query", key: "location" },
],
},
],
)
return (options?.client ?? this.client).get<V2SessionFormListResponses, V2SessionFormListErrors, ThrowOnError>({
url: "/api/session/{sessionID}/form",
...options,
...params,
})
}
/**
* Create session form
*
* Create a form for a session.
*/
public create<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
formCreatePayload: FormCreatePayload
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "query", key: "location" },
{ key: "formCreatePayload", map: "body" },
],
},
],
)
return (options?.client ?? this.client).post<V2SessionFormCreateResponses, V2SessionFormCreateErrors, ThrowOnError>(
{
url: "/api/session/{sessionID}/form",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
},
)
}
/**
* Get session form
*
* Retrieve a form for a session.
*/
public get<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
formID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "formID" },
{ in: "query", key: "location" },
],
},
],
)
return (options?.client ?? this.client).get<V2SessionFormGetResponses, V2SessionFormGetErrors, ThrowOnError>({
url: "/api/session/{sessionID}/form/{formID}",
...options,
...params,
})
}
/**
* Get form state
*
* Retrieve the current state for a form.
*/
public state<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
formID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "formID" },
{ in: "query", key: "location" },
],
},
],
)
return (options?.client ?? this.client).get<V2SessionFormStateResponses, V2SessionFormStateErrors, ThrowOnError>({
url: "/api/session/{sessionID}/form/{formID}/state",
...options,
...params,
})
}
/**
* Reply to form
*
* Submit an answer to a pending form.
*/
public reply<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
formID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
formReply: FormReply
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "formID" },
{ in: "query", key: "location" },
{ key: "formReply", map: "body" },
],
},
],
)
return (options?.client ?? this.client).post<V2SessionFormReplyResponses, V2SessionFormReplyErrors, ThrowOnError>({
url: "/api/session/{sessionID}/form/{formID}/reply",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
})
}
/**
* Cancel form
*
* Cancel a pending form.
*/
public cancel<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
formID: string
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "formID" },
{ in: "query", key: "location" },
],
},
],
)
return (options?.client ?? this.client).post<V2SessionFormCancelResponses, V2SessionFormCancelErrors, ThrowOnError>(
{
url: "/api/session/{sessionID}/form/{formID}/cancel",
...options,
...params,
},
)
}
}
export class Permission2 extends HeyApiClient {
/**
* List session permission requests
@ -5730,6 +5497,106 @@ export class Permission2 extends HeyApiClient {
}
}
export class Question2 extends HeyApiClient {
/**
* List session question requests
*
* Retrieve pending question requests owned by a session.
*/
public list<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }])
return (options?.client ?? this.client).get<
V2SessionQuestionListResponses,
V2SessionQuestionListErrors,
ThrowOnError
>({
url: "/api/session/{sessionID}/question",
...options,
...params,
})
}
/**
* Reply to pending question request
*
* Answer a pending question request owned by a session.
*/
public reply<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
requestID: string
questionV2Reply: QuestionV2Reply2
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "requestID" },
{ key: "questionV2Reply", map: "body" },
],
},
],
)
return (options?.client ?? this.client).post<
V2SessionQuestionReplyResponses,
V2SessionQuestionReplyErrors,
ThrowOnError
>({
url: "/api/session/{sessionID}/question/{requestID}/reply",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
})
}
/**
* Reject pending question request
*
* Reject a pending question request owned by a session.
*/
public reject<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
requestID: string
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "sessionID" },
{ in: "path", key: "requestID" },
],
},
],
)
return (options?.client ?? this.client).post<
V2SessionQuestionRejectResponses,
V2SessionQuestionRejectErrors,
ThrowOnError
>({
url: "/api/session/{sessionID}/question/{requestID}/reject",
...options,
...params,
})
}
}
export class Session3 extends HeyApiClient {
/**
* List sessions
@ -5739,7 +5606,7 @@ export class Session3 extends HeyApiClient {
public list<ThrowOnError extends boolean = false>(
parameters?: {
workspace?: string | null
limit?: string | null
limit?: number | null
order?: "asc" | "desc" | null
search?: string | null
parentID?: string | "null" | null
@ -6002,7 +5869,7 @@ export class Session3 extends HeyApiClient {
parameters: {
sessionID: string
id?: string | null
prompt?: PromptInput
prompt?: PromptInputV2
delivery?: "steer" | "queue" | null
resume?: boolean | null
},
@ -6047,7 +5914,7 @@ export class Session3 extends HeyApiClient {
arguments?: string | null
agent?: string | null
model?: ModelRef2 | null
files?: Array<PromptInputFileAttachment>
files?: Array<PromptInputFileAttachment2>
agents?: Array<PromptAgentAttachment2>
delivery?: "steer" | "queue" | null
resume?: boolean | null
@ -6225,7 +6092,7 @@ export class Session3 extends HeyApiClient {
/**
* Read the session log
*
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a caught-up marker once the replay reaches the end of the log, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a synced marker once replay reaches the captured watermark, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.
*/
public log<ThrowOnError extends boolean = false>(
parameters: {
@ -6332,7 +6199,7 @@ export class Session3 extends HeyApiClient {
public messages<ThrowOnError extends boolean = false>(
parameters: {
sessionID: string
limit?: string | null
limit?: number | null
order?: "asc" | "desc" | null
cursor?: string | null
},
@ -6368,15 +6235,15 @@ export class Session3 extends HeyApiClient {
return (this._context ??= new Context({ client: this.client }))
}
private _form?: Form
get form(): Form {
return (this._form ??= new Form({ client: this.client }))
}
private _permission?: Permission2
get permission(): Permission2 {
return (this._permission ??= new Permission2({ client: this.client }))
}
private _question?: Question2
get question(): Question2 {
return (this._question ??= new Question2({ client: this.client }))
}
}
export class Model extends HeyApiClient {
@ -6972,37 +6839,6 @@ export class Project2 extends HeyApiClient {
}
export class Request extends HeyApiClient {
/**
* List pending form requests
*
* Retrieve pending forms for a location.
*/
public list<ThrowOnError extends boolean = false>(
parameters?: {
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
return (options?.client ?? this.client).get<V2FormRequestListResponses, V2FormRequestListErrors, ThrowOnError>({
url: "/api/form/request",
...options,
...params,
})
}
}
export class Form2 extends HeyApiClient {
private _request?: Request
get request(): Request {
return (this._request ??= new Request({ client: this.client }))
}
}
export class Request2 extends HeyApiClient {
/**
* List pending permission requests
*
@ -7079,9 +6915,9 @@ export class Saved extends HeyApiClient {
}
export class Permission3 extends HeyApiClient {
private _request?: Request2
get request(): Request2 {
return (this._request ??= new Request2({ client: this.client }))
private _request?: Request
get request(): Request {
return (this._request ??= new Request({ client: this.client }))
}
private _saved?: Saved
@ -7683,6 +7519,41 @@ export class Shell extends HeyApiClient {
}
}
export class Request2 extends HeyApiClient {
/**
* List pending question requests
*
* Retrieve pending question requests for a location.
*/
public list<ThrowOnError extends boolean = false>(
parameters?: {
location?: {
directory?: string | null
workspace?: string | null
} | null
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
return (options?.client ?? this.client).get<
V2QuestionRequestListResponses,
V2QuestionRequestListErrors,
ThrowOnError
>({
url: "/api/question/request",
...options,
...params,
})
}
}
export class Question3 extends HeyApiClient {
private _request?: Request2
get request(): Request2 {
return (this._request ??= new Request2({ client: this.client }))
}
}
export class Reference extends HeyApiClient {
/**
* List references
@ -7884,11 +7755,6 @@ export class V2 extends HeyApiClient {
return (this._project ??= new Project2({ client: this.client }))
}
private _form?: Form2
get form(): Form2 {
return (this._form ??= new Form2({ client: this.client }))
}
private _permission?: Permission3
get permission(): Permission3 {
return (this._permission ??= new Permission3({ client: this.client }))
@ -7924,6 +7790,11 @@ export class V2 extends HeyApiClient {
return (this._shell ??= new Shell({ client: this.client }))
}
private _question?: Question3
get question(): Question3 {
return (this._question ??= new Question3({ client: this.client }))
}
private _reference?: Reference
get reference(): Reference {
return (this._reference ??= new Reference({ client: this.client }))

File diff suppressed because it is too large Load diff