Skip to content

feat(cli): add run-scoped --script and --source-language to workflows run#79

Merged
sbpodonos merged 3 commits into
mainfrom
sb/cli-run-script
Jul 10, 2026
Merged

feat(cli): add run-scoped --script and --source-language to workflows run#79
sbpodonos merged 3 commits into
mainfrom
sb/cli-run-script

Conversation

@sbpodonos

Copy link
Copy Markdown
Contributor

What

onepin workflows run gains run-scoped script inputs:

  • --script TEXT — overrides the saved script for this run only
  • --source-language CODE — BCP-47 language of the script (optional; defaults to the saved language)

Wire format is POST /runs body {script_text, source_language} (donut-be #387). Until the generated runs.start() gains these params on the next spec regen, they ride as request_options additional_body_parameters — identical bytes on the wire, so the code keeps working unchanged after the regen.

Tests

CLI manifest snapshot regenerated; full CLI + unit suites green.

Notes

  • Re-implements work lost with an unpushed branch; the public docs' CLI lane (Quickstart, Use your own script) depends on these flags.
  • Part of the coordinated launch. After merge, include in the next SDK release.

🤖 Generated with Claude Code

… run

Pass run-scoped script inputs on `onepin workflows run` — the text
overrides the saved script for that run only (POST /runs body:
script_text/source_language, shipped in donut-be #387). Until the
generated runs.start() gains the params on the next spec regen, they
ride as request_options additional_body_parameters — identical wire
format, so the code keeps working after the regen too.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sbpodonos
sbpodonos requested a review from kj-podonos as a code owner July 9, 2026 22:59
sbpodonos and others added 2 commits July 9, 2026 16:07
Three cases: both flags ride as additional_body_parameters, --script
alone sends only script_text, and no flags means no request_options.
Clears the diff-cover 90% gate that failed CI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sbpodonos
sbpodonos merged commit 54593f0 into main Jul 10, 2026
22 checks passed
@sbpodonos
sbpodonos deleted the sb/cli-run-script branch July 10, 2026 02:00
sbpodonos pushed a commit that referenced this pull request Jul 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.10.0](v0.9.0...v0.10.0)
(2026-07-10)


### Features

* **cli:** add run-scoped --script and --source-language to workflows
run ([#79](#79))
([54593f0](54593f0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants