@meistrari/workflow-shared
v1.10.1
Published
Pure workflow contracts and helpers shared by Tela workflow app code, `tela-workflow`, and `@meistrari/workflow-code`, including graph, reference URI, lifecycle, update-spec, and reusable action input schema contracts.
Maintainers
Keywords
Readme
Workflow Shared
Pure workflow contracts and helpers shared by Tela workflow app code, tela-workflow, and @meistrari/workflow-code, including graph, reference URI, lifecycle, update-spec, and reusable action input schema contracts.
This package should not depend on Vue, API server modules, CLI modules, filesystem access, credentials, or workflow runtime execution internals.
Classifier contract
Import CLASSIFIER_MODELS, DEFAULT_CLASSIFIER_MODEL, classifierModelSchema,
getClassifierModelProfile, classifierAcceptsFile, and inferClassifierOutputSchema
from @meistrari/workflow-shared/classifier (also exported from the root).
The catalog declares model IDs, provider names, text, parsed-document and raw-file capabilities, MIME types,
and native answer formats (record for Jev, array for Luna). classifierInput derives
its model validation from this catalog. Omitted models default to Jev; the legacy
jev-evaluator action ID still coalesces to classifier.
The compiler and reference picker can call inferClassifierOutputSchema(questions, model)
for the same question-specific JSON Schema as the runtime. Jev exposes keyed answers;
Luna exposes its native array fields without normalizing provider output. Provider wire
validation remains in the runtime adapters. New models must declare a catalog profile;
consumers should derive their capabilities and answer shape from it.
Changes publish through publish-workflow-shared.yml after merging to main. Workflow
Code can then update its dependency and replace its local classifier profiles and output
inference with these exports.
