feat: unify JSON value schema DSL

This commit is contained in:
Tianyi Cui
2026-07-21 01:11:55 +08:00
parent 9a5c81f9e5
commit 8500974fd4
62 changed files with 1929 additions and 1179 deletions

View File

@@ -131,6 +131,7 @@ export function apply(ctx: Context, config: Config): void {
},
meta: {
type: 'object',
additionalProperties: true,
required: true,
description: 'The workflow identity block (plain JSON — never code).',
properties: {
@@ -142,6 +143,7 @@ export function apply(ctx: Context, config: Config): void {
description: 'Optional phase declarations matched by phase() calls.',
items: {
type: 'object',
additionalProperties: true,
properties: {
title: { type: 'string', required: true, description: 'The phase title phase() calls match by exact string.' },
detail: { type: 'string', description: 'Optional one-line description of the phase.' },
@@ -154,6 +156,7 @@ export function apply(ctx: Context, config: Config): void {
},
args: {
type: 'object',
additionalProperties: true,
description: 'Optional JSON input exposed to the script as the `args` global (wrap a bare list as a field, e.g. {"files": [...]}).',
},
},