Skip to content

Add @include resolution in CLI render/export flows #67

@alpha912

Description

@alpha912

Problem

Parser supports @include resolution, but CLI commands do not expose it. Render/export flows parse without resolveIncludes, leaving includes unresolved in output.

Evidence

  • omniscript-core/parser/src/parser.ts supports resolveIncludes/basePath.
  • CLI commands call parse(text) without options in parse/render/export/format.

Expected

  • Add CLI flags (e.g., --resolve-includes, --base-path, --max-depth).
  • Use parse options in render/export/format to resolve includes when requested.
  • Document new flags in CLI README.

Acceptance Criteria

  • CLI can resolve @include directives safely (path traversal protection preserved).
  • Tests cover include resolution and error cases.
  • Documentation updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions