chore(ask): reorganize docs and fix repo checks
This commit is contained in:
+7
-7
@@ -6,32 +6,32 @@ export const AskOptionSchema = Type.Object({
|
||||
}),
|
||||
label: Type.String({ description: "Short option title shown in the list" }),
|
||||
description: Type.Optional(
|
||||
Type.String({ description: "Optional subtitle/description" }),
|
||||
Type.String({ description: "Optional subtitle/description" })
|
||||
),
|
||||
preview: Type.Optional(
|
||||
Type.String({
|
||||
description:
|
||||
"Optional preview text shown in the dedicated preview pane for preview questions",
|
||||
}),
|
||||
})
|
||||
),
|
||||
});
|
||||
|
||||
export const AskQuestionSchema = Type.Object({
|
||||
id: Type.String({ description: "Unique question identifier" }),
|
||||
label: Type.Optional(
|
||||
Type.String({ description: "Short tab label, e.g. Scope or Runtime" }),
|
||||
Type.String({ description: "Short tab label, e.g. Scope or Runtime" })
|
||||
),
|
||||
prompt: Type.String({ description: "Full question prompt" }),
|
||||
type: Type.Optional(
|
||||
Type.Union(
|
||||
[Type.Literal("single"), Type.Literal("multi"), Type.Literal("preview")],
|
||||
{ description: "Question type" },
|
||||
),
|
||||
{ description: "Question type" }
|
||||
)
|
||||
),
|
||||
required: Type.Optional(
|
||||
Type.Boolean({
|
||||
description: "Optional metadata flag; submit is never blocked",
|
||||
}),
|
||||
})
|
||||
),
|
||||
options: Type.Array(AskOptionSchema, {
|
||||
description: "Available answer options",
|
||||
@@ -40,7 +40,7 @@ export const AskQuestionSchema = Type.Object({
|
||||
|
||||
export const AskParamsSchema = Type.Object({
|
||||
title: Type.Optional(
|
||||
Type.String({ description: "Optional title shown above the interview" }),
|
||||
Type.String({ description: "Optional title shown above the interview" })
|
||||
),
|
||||
questions: Type.Array(AskQuestionSchema, {
|
||||
description: "Questions to ask the user",
|
||||
|
||||
Reference in New Issue
Block a user