feat: add [MANUAL] notation for human-interaction steps (closes #66)#121
Open
Kavirubc wants to merge 4 commits intogoogleworkspace:mainfrom
Open
feat: add [MANUAL] notation for human-interaction steps (closes #66)#121Kavirubc wants to merge 4 commits intogoogleworkspace:mainfrom
Kavirubc wants to merge 4 commits intogoogleworkspace:mainfrom
Conversation
Marks `login` in --help output with [MANUAL] since it requires browser interaction, and adds a [MANUAL] download note for `setup`. Updates the runtime stderr hint in CliFlowDelegate to prefix with [MANUAL] so AI agents know to hand control back to the user.
Adds `gws script +open --script <ID>` which constructs the editor URL, prints a [MANUAL] stderr hint for AI agents, attempts an OS-native browser open (open/xdg-open/start), and emits JSON on stdout.
Adds `gws script +run --script <ID> --function <NAME>` which calls scripts.run via the Apps Script Execution API. Supports --params (JSON array) and --dev-mode. On a 403 error, emits a [MANUAL] stderr hint directing the user to link the script to a GCP project.
🦋 Changeset detectedLatest commit: 52e94a3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 1 of #66 — adding
[MANUAL]prefixes to help text and stderr hints so AI agents know when to hand control back to a human.auth login— marked[MANUAL]in--helpoutput (opens browser)auth setup— added[MANUAL]download note for OAuth client JSONCliFlowDelegate::present_user_url— runtime stderr hint now prefixed with[MANUAL]script +open— new helper: opens the Apps Script editor in the browser with[MANUAL]help text and JSON outputscript +run— new helper: executes a function via the Apps Script Execution API; emits a[MANUAL]GCP project-linking hint on 403Test plan
cargo build— clean compilecargo test— 371 tests passcargo run -- auth --help | grep MANUAL— login and setup entries presentcargo run -- auth login— stderr shows[MANUAL] Open this URL...(confirmed in source)cargo run -- script +open --help | grep MANUAL— about + after-help presentcargo run -- script +open --script SCRIPT_ID— JSON output + stderr hint verifiedcargo run -- script +run --help | grep MANUAL— prerequisites presentcargo run -- script +run --script SCRIPT_ID --function main— 403[MANUAL]hint confirmed in source