stem_builder 0.2.0 copy "stem_builder: ^0.2.0" to clipboard
stem_builder: ^0.2.0 copied to clipboard

Build-time registry generator for annotated Stem workflows and tasks.

example/README.md

stem_builder example #

This example demonstrates:

  • Annotated workflow/task definitions
  • Generated stemModule
  • Generated typed workflow refs (no manual workflow-name strings):
    • StemWorkflowDefinitions.flow.start(runtime, params: (...))
    • StemWorkflowDefinitions.userSignup.start(runtime, params: (...))
  • Generated typed task definitions that use the shared TaskCall / TaskDefinition.waitFor(...) APIs
  • Generated zero-arg task definitions with direct helpers from core:
    • StemTaskDefinitions.builderExamplePing.enqueueAndWait(stem)
  • Generated workflow manifest via stemModule.workflowManifest
  • Running generated definitions through StemWorkflowApp
  • Runtime manifest + run/step metadata views via WorkflowRuntime

Run #

cd packages/stem_builder/example

dart pub get

dart run build_runner build

dart run bin/main.dart

dart run bin/runtime_metadata_views.dart

The checked-in lib/definitions.stem.g.dart is only a starter snapshot; rerun build_runner after changing annotations.

The generated bundle is the default integration surface:

  • StemWorkflowApp.inMemory(module: stemModule)
  • StemWorkflowApp.fromUrl(..., module: stemModule)
  • stemApp.createWorkflowApp() when the shared app already covers the workflow queue
  • StemClient.fromUrl(..., module: stemModule) + createWorkflowApp()
0
likes
150
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Build-time registry generator for annotated Stem workflows and tasks.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, dart_style, glob, source_gen, stem

More

Packages that depend on stem_builder