feat(schema): add semantic schema generation as default mode
schema-generate now builds content-aware schemas from the document's section hierarchy instead of counting markdown syntax elements. Detects key-value tables, data tables, link lists, and mixed content patterns to produce schemas that reflect the actual document outline. Old behavior preserved via --mode syntactic. Validator and visualization tools pinned to syntactic mode for compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
120ed89780
commit
60f33443ae
8 changed files with 408 additions and 55 deletions
|
|
@ -1392,7 +1392,7 @@ def ast_stats(config, file_path, format):
|
|||
@click.option('--output', '-o', type=click.Path(path_type=Path), help='Output file path (default: stdout)')
|
||||
@click.option('--outfile', type=click.Path(path_type=Path), help='Output file path (alias for --output)')
|
||||
@click.option('--format', 'output_format', type=click.Choice(['json', 'yaml']), default='json', help='Output format')
|
||||
@click.option('--mode', type=click.Choice(['outline']), help='Generation mode: outline for structure-focused schemas')
|
||||
@click.option('--mode', type=click.Choice(['semantic', 'syntactic', 'outline']), help='Generation mode: semantic (default) for content-aware schemas, syntactic for element counting, outline for structure-focused')
|
||||
@click.option('--depth', type=int, help='Maximum depth for outline mode (similar to --max-depth)')
|
||||
@click.option('--capture-heading-text', is_flag=True, help='Capture exact heading text as schema constraints')
|
||||
@click.option('--include-content-instructions', is_flag=True, help='Include content field instructions for document generation')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue