271
| { type: 'object'; title: string; sessionMutable: true };
272
273
>
function buildMutableConfigSchemaItem(key: string, value: unknown): MutableConfigSchemaItem | undefined {
agentHostSessionsProvider.ts
274
>
if (typeof value === 'string') {
275
>
return {
276
>
type: 'string',
277
>
title: key,
278
>
sessionMutable: true,
279
>
enum: key === 'autoApprove' ? AUTO_APPROVE_ENUM : [value],
280
>
};
281
>
}
282
>
if (typeof value === 'number') {
283
>
return { type: 'number', title: key, sessionMutable: true };
284
>
}
285
>
if (typeof value === 'boolean') {
286
>
return { type: 'boolean', title: key, sessionMutable: true };
287
>
}
288
>
if (Array.isArray(value)) {
289
>
return { type: 'array', title: key, sessionMutable: true };
290
>
}
291
>
if (value && typeof value === 'object') {
292
>
return { type: 'object', title: key, sessionMutable: true };
293
>
}
294
>
return undefined;
295
>
}
296
297
/**