fix: rename clawd.invoke → openclaw.invoke + fix stdin merge (--merge-stdin, --spread)#19
Open
theclawdaddy wants to merge 1 commit intoopenclaw:mainfrom
Open
Conversation
- Rename clawd_invoke.ts to openclaw_invoke.ts - Change primary command name from 'clawd.invoke' to 'openclaw.invoke' - Keep 'clawd.invoke' as deprecated alias for backward compatibility - Update env vars: CLAWD_URL → OPENCLAW_URL, CLAWD_TOKEN → OPENCLAW_TOKEN (with fallbacks) - Add --merge-stdin flag: merge first stdin JSON object fields into tool args (non-each mode) - Add --spread flag: spread item fields into args instead of nesting (each mode) - Update help text and error messages to reflect OpenClaw branding - All existing tests pass, maintaining backward compatibility
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.
What
Two fixes for
clawd.invoke:1. Rename to
openclaw.invokeThe project was renamed from Clawd to OpenClaw. This renames the command to
openclaw.invokewith:clawd.invokekept as a deprecated alias (backward compat)OPENCLAW_URL/OPENCLAW_TOKEN(oldCLAWD_*still work as fallback)2. Fix stdin handling (
--merge-stdin+--spread)Bug: Without
--each, stdin from previous pipeline steps is completely drained and ignored. This makes it impossible to pipe JSON output from one step into tool args.Fix:
--merge-stdin: Collects the first stdin JSON object and merges its fields intotoolArgsbefore invoking--spread(for--eachmode): Spreads item fields into args instead of nesting underitemKeyTested