feat(engine): embed nu-engine and nu-protocol with Run context injection #14

Open
opened 2026-09-09 10:15:31 +00:00 by larandar · 0 comments
Owner

Proposal

Evaluate Nushell scripts in-process with injected workflow run context.

Design

Embed nu-engine and nu-protocol and expose serialized run context as $env.TING_RUN for every evaluation.

Tasks

  • Wire in-process evaluation; inject TING_RUN; propagate evaluation errors.

Gherkin Specification Delta

must.contracts.ting-workflows.deliverable-14

Scenario: Deliverable behavior

  • GIVEN the stated prerequisites and inputs
  • WHEN the feature is exercised
  • THEN a script reading $env.TING_RUN, when evaluated, then it observes the supplied context without an external shell.
## Proposal Evaluate Nushell scripts in-process with injected workflow run context. ## Design Embed nu-engine and nu-protocol and expose serialized run context as $env.TING_RUN for every evaluation. ## Tasks - Wire in-process evaluation; inject TING_RUN; propagate evaluation errors. ## Gherkin Specification Delta ### must.contracts.ting-workflows.deliverable-14 **Scenario: Deliverable behavior** - **GIVEN** the stated prerequisites and inputs - **WHEN** the feature is exercised - **THEN** a script reading $env.TING_RUN, when evaluated, then it observes the supplied context without an external shell.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Ting/workflows#14
No description provided.