Skip to content

Commit 4663b86

Browse files
michaelmcneesclaude
andcommitted
feat(engine): wire config env map into CEL evaluator (#74)
Call eng.CEL.SetConfigEnv(cfg.Env) after engine.New(database) in the run and serve CLI commands so that env: values from mantle.yaml are available in CEL workflow expressions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2dfc5d4 commit 4663b86

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/engine/internal/cli/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func newRunCommand() *cobra.Command {
6464
if err != nil {
6565
return fmt.Errorf("creating engine: %w", err)
6666
}
67+
eng.CEL.SetConfigEnv(cfg.Env)
6768

6869
// Configure credential resolver with Postgres-backed store when encryption key is set.
6970
if cfg.Encryption.Key != "" {

packages/engine/internal/cli/serve.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func newServeCommand() *cobra.Command {
4949
if err != nil {
5050
return fmt.Errorf("creating engine: %w", err)
5151
}
52+
eng.CEL.SetConfigEnv(cfg.Env)
5253
eng.MaxToolRoundsLimit = cfg.Engine.MaxToolRoundsLimit
5354

5455
// Configure AWS defaults for AI (Bedrock) and S3 connectors.

0 commit comments

Comments
 (0)