Skip to content

Asset plugins P3: studio panel.jsonc validation at labelle generate #577

Description

@apotema

Phase 3 of the asset-plugins epic. Design: labelle-toolkit/labelle-engine#725 · RFC PR labelle-toolkit/labelle-engine#726 (RFC-ASSET-PLUGINS.md rev 4)

Validate studio/*.panel.jsonc at labelle generate, alongside the Phase-1 asset validation:

  • schema check (the studio POC's zod schema in src/services/pluginPanels.ts is the reference — id/title/field-type requirements/action targets/min-max/default-domain/duplicate names);
  • a "target": "preview" command must name a handler the plugin's code declares (pairs with the engine-side handler declaration from the bridge-export ticket);
  • malformed panel = generate-time error with file:line.

Acceptance: the studio never sees an invalid panel from a generated project; error cases covered by assembler tests.

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