Add Claude Ultracode with setting-change notices (#1625)
* Add Claude Ultracode mode notices * Share provider notice definitions * Test Claude Ultracode through public turn API
This commit is contained in:
@@ -172,6 +172,7 @@ import type {
|
||||
ProviderStatus,
|
||||
AgentRuntimeInfo,
|
||||
AgentTimelineItem,
|
||||
AgentProviderNotice,
|
||||
ToolCallDetail,
|
||||
ToolCallTimelineItem,
|
||||
AgentUsage,
|
||||
@@ -202,6 +203,12 @@ const AgentSelectOptionSchema = z.object({
|
||||
metadata: z.record(z.string(), z.unknown()).optional(),
|
||||
});
|
||||
|
||||
const AgentProviderNoticeSchema: z.ZodType<AgentProviderNotice> = z.discriminatedUnion("type", [
|
||||
z.object({ type: z.literal("info"), message: z.string() }),
|
||||
z.object({ type: z.literal("warning"), message: z.string() }),
|
||||
z.object({ type: z.literal("error"), message: z.string() }),
|
||||
]);
|
||||
|
||||
export const AgentFeatureToggleSchema = z.object({
|
||||
type: z.literal("toggle"),
|
||||
id: z.string(),
|
||||
@@ -1264,6 +1271,7 @@ const AgentActionResponsePayloadSchema = z.object({
|
||||
agentId: z.string(),
|
||||
accepted: z.boolean(),
|
||||
error: z.string().nullable(),
|
||||
notice: AgentProviderNoticeSchema.nullable().optional(),
|
||||
});
|
||||
|
||||
export const SetAgentModeResponseMessageSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user