Skip to content

Commit cee9d13

Browse files
committed
prettier fix
1 parent 7e7fb9a commit cee9d13

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

src/client/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ function applyElicitationDefaults(schema: JsonSchemaType | undefined, data: unkn
9797
}
9898
}
9999

100-
101100
export type ClientOptions = ProtocolOptions & {
102101
/**
103102
* Capabilities to advertise as being supported by this client.

src/server/elicitation.test.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,16 @@ function testElicitationFlow(validatorProvider: typeof ajvProvider | typeof cfWo
651651
}
652652
);
653653

654-
const client = new Client({ name: 'test-client', version: '1.0.0' }, { capabilities: { elicitation: {
655-
applyDefaults: true
656-
} } });
654+
const client = new Client(
655+
{ name: 'test-client', version: '1.0.0' },
656+
{
657+
capabilities: {
658+
elicitation: {
659+
applyDefaults: true
660+
}
661+
}
662+
}
663+
);
657664

658665
// Client returns no values; SDK should apply defaults automatically (and validate)
659666
client.setRequestHandler(ElicitRequestSchema, request => {

src/types.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,17 @@ export const ClientCapabilitiesSchema = z.object({
286286
/**
287287
* Present if the client supports eliciting user input.
288288
*/
289-
elicitation: z.intersection(z.object({
290-
/**
291-
* Whether the client should apply defaults to the user input.
292-
*/
293-
applyDefaults: z.boolean().optional(),
294-
}).optional(), z.record(z.string(), z.unknown()).optional()),
289+
elicitation: z.intersection(
290+
z
291+
.object({
292+
/**
293+
* Whether the client should apply defaults to the user input.
294+
*/
295+
applyDefaults: z.boolean().optional()
296+
})
297+
.optional(),
298+
z.record(z.string(), z.unknown()).optional()
299+
),
295300
/**
296301
* Present if the client supports listing roots.
297302
*/
@@ -1248,7 +1253,7 @@ export const EnumSchemaSchema = z.object({
12481253
/**
12491254
* Union of all primitive schema definitions.
12501255
*/
1251-
export const PrimitiveSchemaDefinitionSchema = z.union([EnumSchemaSchema,BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
1256+
export const PrimitiveSchemaDefinitionSchema = z.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
12521257

12531258
/**
12541259
* Parameters for an `elicitation/create` request.

0 commit comments

Comments
 (0)