Skip to content

Commit 9f17b72

Browse files
bennetboagu-z
andcommitted
Adjust name of AvailableCommandInput::Unstructured
Co-authored-by: Agus Zubiaga <agus@zed.dev>
1 parent 382e984 commit 9f17b72

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

rust/agent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ pub struct AvailableCommand {
230230
#[cfg(feature = "unstable")]
231231
pub enum AvailableCommandInput {
232232
/// All text that was typed after the command name is provided as input.
233+
#[schemars(rename = "UnstructuredCommandInput")]
233234
Unstructured {
234235
/// A brief description of the expected input
235236
hint: String,

schema/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
}
210210
},
211211
"required": ["hint"],
212-
"title": "unstructured",
212+
"title": "UnstructuredCommandInput",
213213
"type": "object"
214214
}
215215
]

typescript/schema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export type AgentResponse =
295295
| LoadSessionResponse
296296
| PromptResponse;
297297
export type AuthenticateResponse = null;
298-
export type AvailableCommandInput = Unstructured;
298+
export type AvailableCommandInput = UnstructuredCommandInput;
299299
export type LoadSessionResponse = null;
300300
/**
301301
* All possible notifications that an agent can send to a client.
@@ -861,7 +861,7 @@ export interface AvailableCommand {
861861
/**
862862
* All text that was typed after the command name is provided as input.
863863
*/
864-
export interface Unstructured {
864+
export interface UnstructuredCommandInput {
865865
/**
866866
* A brief description of the expected input
867867
*/
@@ -1169,7 +1169,7 @@ export const promptResponseSchema = z.object({
11691169
});
11701170

11711171
/** @internal */
1172-
export const unstructuredSchema = z.object({
1172+
export const unstructuredCommandInputSchema = z.object({
11731173
hint: z.string(),
11741174
});
11751175

@@ -1352,7 +1352,7 @@ export const promptCapabilitiesSchema = z.object({
13521352
});
13531353

13541354
/** @internal */
1355-
export const availableCommandInputSchema = unstructuredSchema;
1355+
export const availableCommandInputSchema = unstructuredCommandInputSchema;
13561356

13571357
/** @internal */
13581358
export const planEntrySchema = z.object({

0 commit comments

Comments
 (0)