repo workspace-push <DIR> [-b BRANCH] [-m MSG]— closes the agent edit-and-PR loop. Optionally checks out / creates a branch, optionally stages + commits any uncommitted changes (when-mis given), thengit push -u origin HEAD. Same/tmp/fledge-gh-*safety guard as the other workspace commands. In--jsonmode emits{branch, repo, path}so the agent can chain straight intoprs create -R … -H ….prs create --head <BRANCH>— wires gh's--headthrough so an agent can create a PR for a branch that lives in a different working tree (the typical post-workspace-pushcase where the cwd isn't the cloned repo).
repo clone <OWNER/NAME> [DIR]— structured clone command, wrapsgh repo clone(inherits yourgh authfor private repos). Optional--depth Nfor shallow clones.repo workspace <OWNER/NAME> [-r REF] [--depth N]— the higher-level "give me a sandbox" command for agents. Creates a fresh/tmp/fledge-gh-<owner>-<name>-XXXXXX/<name>dir, clones the repo there (optionally shallow + at a specific ref), and prints the absolute path on stdout. The-r REFis wired through to git's--branchso shallow + ref work together.repo workspace-clean <DIR>—rm -rfs a workspace dir. Refuses to remove anything that doesn't live under/tmp/fledge-gh-, so a bad agent path can't wipe arbitrary files.
These give agents driven from non-interactive bridges (Discord/Telegram) a structured path to clone a repo for edit work, instead of falling back to shell-exec git clone ... which is auto-denied by the Tier 1.5 safety gate in merlin's --yes mode.
repo viewnow also acceptsOWNER/NAMEas a positional argument, matchinggh repo view's native syntax. Previously the agent's natural-lookingrepo view CorvidLabs/corvid-verifyfailed withunknown argumentand forced an awkward retry with-R.repo filenow detects whether the path resolves to a file or a directory and renders accordingly: file → decoded contents (as before), directory →name<TAB>type<TAB>sizelisting. Previously a directory path hitjq: expected an object but got: arrayand the agent had no way to browse remote repos.
- Add
-R, --repo OWNER/NAMEflag toprs,issues, andchecksso agents can target any repo without first changing into a clone. Previously every PR / issue subcommand defaulted togh's cwd-based detection, which silently pointed at the wrong repo when the agent was running in a different working tree — leading to spurious 404s when looking up a PR in a different project. checks -R OWNER/NAMEnow falls back to that repo's default branch when--branchisn't given, instead of using the local current branch (which has no meaning cross-repo).
prs view: add--diffand--commentsflags to append the unified diff and conversation comments + reviews to the view output.prs comment <NUMBER> -b BODY: post a comment on a pull request.prs review <NUMBER>: submit a review — one of--approve,--request-changes, or--comment-review, plus--body.prs merge <NUMBER>: merge a PR with--squash(default),--merge, or--rebase.prs close <NUMBER>/prs reopen <NUMBER>: close without merging or reopen.issues view: add--commentsflag to append the issue conversation.issues comment <NUMBER> -b BODY: post a comment on an issue.issues close <NUMBER>/issues reopen <NUMBER>.- New
reposubcommand:repo view [-R OWNER/NAME] [--json]— repo metadata.repo file <PATH> [-R OWNER/NAME] [-r REF] [--json]— read a file's contents at any ref viagh api repos/.../contents/.... Closes the gap where agents fell back to authenticated-failingweb-fetchagainstraw.githubusercontent.com.
- Add
fledge github pollsubcommand for daemon event polling (#5)- Polls GitHub for new issues and PRs via the
ghCLI - Outputs JSON array of Event objects matching the Merlin daemon schema
- Supports
--since,--types,--label,--repo,--limit,--stateoptions - Uses python3 for JSON transformation
- Polls GitHub for new issues and PRs via the
- Fix: resolve dispatcher symlink to find sibling helpers (f6dd786)
- initial scaffold — checks, issues, prs (663d27e)
- add missing plugin.toml manifest (37e9680)
- Bump: version 0.2.0 (671593a)
- Refactor: nest commands under
fledge github(a43948f)