Skip to content

feat: add interactive prompts and report sharing - #4

Merged
blimmer merged 3 commits into
mainfrom
add-clack-prompts-on-main
May 24, 2026
Merged

feat: add interactive prompts and report sharing#4
blimmer merged 3 commits into
mainfrom
add-clack-prompts-on-main

Conversation

@blimmer

@blimmer blimmer commented May 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an interactive Clack CLI flow for token setup, target selection, report opening, and optional sharing.
  • Write generated report artifacts to a fixed basename inside a fresh temporary directory.
  • Add upload/browser abstractions and prompt-focused test helpers so the interactive flow is reviewable and testable.

blimmer added 3 commits May 24, 2026 11:38
Adds the interactive CLI flow on top of @clack/prompts, behind a
Prompter interface so prompts stay testable (PrompterImpl in
production, FakePrompter in tests).

- prompt/Prompter.ts: Result-returning wrapper over Clack (note,
  confirm, select, text, spinner); cancellation surfaces as a
  `cancelled` PromptError
- interactive/tokenWalkthrough + ttyGate: resolve a GitHub token and
  bail early when stdin/stdout isn't a TTY
- interactive/targetPrompt: choose the org/target to scan
- interactive/banner: first-run summary pointing at PatchWave, honest
  about what leaves the machine
- interactive/openReportPrompt: offer to open the report in the browser
  (defaults to yes) via a BrowserOpener wrapping the `open` package
- interactive/sharePrompt + upload/Uploader: presign + S3 upload of the
  HTML or full bundle, defaulting to share
- github/GithubClient: route @octokit/request deprecation notices
  through pino via request.log instead of patching console.warn
@blimmer blimmer changed the title Add interactive Clack prompts and report sharing feat: add interactive prompts and report sharing May 24, 2026
@blimmer
blimmer marked this pull request as ready for review May 24, 2026 17:47
@blimmer
blimmer merged commit 23e8543 into main May 24, 2026
7 of 8 checks passed
@blimmer
blimmer deleted the add-clack-prompts-on-main branch May 24, 2026 17:47
jcarver989 pushed a commit that referenced this pull request May 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](v0.0.1...v0.1.0)
(2026-05-26)


### Features

* add interactive prompts and report sharing
([#4](#4))
([23e8543](23e8543))
* bootstrap repo
([57653df](57653df))
* CLI entrypoint and project docs
([073dccb](073dccb))
* core infrastructure — Context, IO, GitHub client, analytics
([edd14ac](edd14ac))
* data collectors and dependency-bump heuristics
([2ef4ad3](2ef4ad3))
* React report web UI and build script
([00dd2ec](00dd2ec))
* refocus the report on engineer toil and polish the UI
([#9](#9))
([ae6853f](ae6853f))
* report aggregation, cost model, bundling, and HTML render
([376adb8](376adb8))
* waitlist via upload
([#12](#12))
([b2050e3](b2050e3))


### Bug Fixes

* allow setting numberstepper directly
([367beb8](367beb8))
* double counting reviewers and mergers
([2cfa24e](2cfa24e))
* exclude bot actors from the cost table and forked repos from the
analysis
([#10](#10))
([7ce42f0](7ce42f0))
* improved sources
([#13](#13))
([010a11a](010a11a))
* streamline CLI share prompts
([#11](#11))
([066465c](066465c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: contextbridge-pr-automation[bot] <259134118+contextbridge-pr-automation[bot]@users.noreply.github.com>
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