Skip to content

Add --data option to ai start-session command#238

Merged
maximelb merged 2 commits intocli-v2from
ai-session-data-option
Mar 7, 2026
Merged

Add --data option to ai start-session command#238
maximelb merged 2 commits intocli-v2from
ai-session-data-option

Conversation

@maximelb
Copy link
Contributor

@maximelb maximelb commented Mar 7, 2026

Summary

  • Adds a --data CLI option to limacharlie ai start-session that accepts a JSON dictionary
  • When provided, the data is appended to the prompt in the same format the D&R engine uses (`Event data:\njson\n...\n)
  • This allows standalone CLI sessions to receive input data without needing a triggering event

Test plan

  • New unit tests for data appending and no-data passthrough
  • All 976 existing unit tests still pass

🤖 Generated with Claude Code

When starting an AI session from the CLI there is no event to apply
the definition's data transform to. The new --data flag accepts a JSON
dictionary that is appended to the prompt as event data, matching the
format used by the D&R engine.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maximelb maximelb requested a review from dzimine-lc March 7, 2026 02:47
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maximelb maximelb marked this pull request as ready for review March 7, 2026 02:51
@maximelb maximelb merged commit 437df80 into cli-v2 Mar 7, 2026
1 check passed
@maximelb maximelb deleted the ai-session-data-option branch March 7, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant