Skip to content

Preset library (EcsFargateComponent, LambdaComponent, ...) #566

Closed

Description

@lex00

Source of truth: epic #551 — read it fully before starting. Docs/conventions: #552 is the docs-driven spec; align with it once merged. This is a cold-handoff issue: everything you need is here or in those two.

Repo orientation: core lives in packages/core/src (discovery, build pipeline, serializer, lint engine, codegen, CLI). Lexicons live in lexicons/<name>/src. Op step builders + composites (Op, phase, gate, ApplyOp, step builders) live in @intentius/chant-lexicon-temporal (lexicons/temporal/src). The Op codegen emits dist/ops/<name>/{workflow,activities,worker}.ts. chant graph --stacks emits cross-stack order + parallel waves.

Task

Build the preset library (Level 2 reuse): named compositions for the common component shapes (Phase 4).

Depends on

Typed Component declaration; pilot capabilities.

Read first

Scope

  • Presets that expand to a standard composition, e.g. EcsFargateComponent({ service, image, healthPath }), LambdaComponent(...), SingleHostComposeComponent(...).
  • A component uses a preset, or starts from it and drops to raw capabilities where it is special. Same contract + orchestrator underneath.

Acceptance criteria

  • At least three presets that expand to valid component declarations.
  • A preset-based and a hand-composed component produce equivalent contracts and both run through the driver.
  • Presets reduce identical-composition duplication (ties to the COMP* copy-paste hint).

Out of scope

An exhaustive preset catalog; start with the common shapes.

Part of #551.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions