From 039a20a31107b055a6e8a6b8edd6f66952225885 Mon Sep 17 00:00:00 2001 From: Ironystock Date: Tue, 28 Apr 2026 15:25:35 -0700 Subject: [PATCH] feat(pair): huh forms for prompts (TTY-gated, legacy fallback) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Final phase of the Charmbracelet polish sprint. Three pair-flow prompts now render through huh in real terminals; the legacy bufio implementations are preserved verbatim and still fire when stdout is not a TTY. promptForServerURL -> huh.NewSelect + huh.NewInput on "Other" promptForDefaultNamespace -> huh.NewSelect with explicit skip option confirmFileMerge (F24) -> huh.NewConfirm("Yes, merge" / "No, skip") Each new wrapper: if !isTTY(out) { return *Legacy(in, out, ...) } // ...huh form... isTTY (added in render.go for Phase 3) returns false for any writer that isn't a *os.File — including the *bytes.Buffer and io.Discard that pair_flow_test.go uses. Result: the entire existing test suite (TestPair_F24_*, TestPair_PromptsForServerWhenConfigEmpty, TestPair_NamespacePromptSetsDefault, etc.) exercises the legacy path and passes unchanged. The legacy functions are intentionally not deleted. Three reasons: - Tests + scripted use need them; gating preserves both UX modes. - Removing them would mean either rewriting the tests against a pty harness (overkill) or losing test coverage entirely (worse). - They're tiny (~25 lines each) and have stable behavior. Closes the original 5-phase plan. Phases 0-3 already on main; this is Phase 4. Phase 5 is the v0.1.0 tag — separate step, owned by Brad per AGENTS.md early-weeks rule. Co-Authored-By: Claude Opus 4.7 --- cmd/rememberize/pair.go | 111 ++++++++++++++++++++++++++++++++++++---- go.mod | 11 ++++ go.sum | 33 ++++++++++++ 3 files changed, 145 insertions(+), 10 deletions(-) diff --git a/cmd/rememberize/pair.go b/cmd/rememberize/pair.go index e9f034f..c2fc225 100644 --- a/cmd/rememberize/pair.go +++ b/cmd/rememberize/pair.go @@ -11,6 +11,7 @@ import ( "path/filepath" "strings" + "github.com/charmbracelet/huh" "github.com/spf13/cobra" ) @@ -233,10 +234,34 @@ func fileHasContent(path string) bool { } // confirmFileMerge prompts the user to confirm merging a rememberize -// MCP entry into an existing file at path. Default on empty input is -// "yes" (the common case is the user IS in the right cwd). Returns -// false only on an explicit "n" / "no". +// MCP entry into an existing file at path. TTY callers get a styled +// huh.Confirm; non-TTY callers (tests, CI, piped scripts) fall through +// to the legacy bufio prompt so the existing pair_flow_test.go contract +// holds. Default on empty input is "yes" (common case: user IS in the +// right cwd). Returns false only on an explicit decline. func confirmFileMerge(in io.Reader, out io.Writer, path string) bool { + if !isTTY(out) { + return confirmFileMergeLegacy(in, out, path) + } + confirm := true + err := huh.NewConfirm(). + Title(fmt.Sprintf("Found existing %s", path)). + Description("Add rememberize MCP entry here?"). + Affirmative("Yes, merge"). + Negative("No, skip"). + Value(&confirm). + Run() + if err != nil { + // Fail-safe: if huh blew up, preserve the legacy default of "yes" + // (matches the bufio-EOF fallback below). + return true + } + return confirm +} + +// confirmFileMergeLegacy is the original bufio-based prompt. Kept +// exactly as it was so non-TTY tests + scripted use are unchanged. +func confirmFileMergeLegacy(in io.Reader, out io.Writer, path string) bool { fmt.Fprintf(out, "Found existing %s — add rememberize MCP entry here? [Y/n]: ", path) reader := bufio.NewReader(in) raw, err := reader.ReadString('\n') @@ -252,9 +277,35 @@ func confirmFileMerge(in io.Reader, out io.Writer, path string) bool { } // promptForDefaultNamespace lists the user's namespaces and asks which -// (if any) to use as the CLI's default. Returns the chosen name, or "" -// if the user skipped or gave invalid input. +// (if any) to use as the CLI's default. TTY callers get a styled +// huh.Select with a "skip" option. Non-TTY callers fall through to the +// legacy numeric-index prompt. Returns the chosen name, or "" if the +// user skipped (or gave invalid input on the legacy path). func promptForDefaultNamespace(in io.Reader, out io.Writer, names []string) string { + if !isTTY(out) { + return promptForDefaultNamespaceLegacy(in, out, names) + } + options := make([]huh.Option[string], 0, len(names)+1) + options = append(options, huh.NewOption("(skip — don't set a default)", "")) + for _, name := range names { + options = append(options, huh.NewOption(name, name)) + } + var choice string + err := huh.NewSelect[string](). + Title("Set default namespace"). + Description("Used by 'rememberize add' and other commands when --ns is unset"). + Options(options...). + Value(&choice). + Run() + if err != nil { + return "" + } + return choice +} + +// promptForDefaultNamespaceLegacy is the original numeric-index prompt. +// Kept verbatim so non-TTY tests + scripted use are unchanged. +func promptForDefaultNamespaceLegacy(in io.Reader, out io.Writer, names []string) string { fmt.Fprintln(out, "\nAvailable namespaces:") for i, name := range names { fmt.Fprintf(out, " %d. %s\n", i+1, name) @@ -270,7 +321,6 @@ func promptForDefaultNamespace(in io.Reader, out io.Writer, names []string) stri if choice == "" { return "" } - // Accept either a 1-based index or the literal namespace name. for i, name := range names { if choice == name { return name @@ -283,9 +333,52 @@ func promptForDefaultNamespace(in io.Reader, out io.Writer, names []string) stri } // promptForServerURL asks the user which server to pair against and -// returns the resolved URL. Default on empty input is the production -// platform. Choice "3" (or any non-1/2) prompts for a custom URL. +// returns the resolved URL. TTY callers get a styled huh.Select; on +// "Other" they get a follow-up huh.Input. Non-TTY callers fall through +// to the legacy numbered-menu prompt (which also accepts a pasted URL). +// Default on empty input is the production platform. func promptForServerURL(in io.Reader, out io.Writer) (string, error) { + if !isTTY(out) { + return promptForServerURLLegacy(in, out) + } + const customSentinel = "__custom__" + var choice string + err := huh.NewSelect[string](). + Title("Pair against"). + Options( + huh.NewOption("platform.rememberize.app (production, recommended)", productionServerURL), + huh.NewOption("http://localhost:8080 (local dev)", localDevServerURL), + huh.NewOption("Other (enter URL)", customSentinel), + ). + Value(&choice). + Run() + if err != nil { + return "", fmt.Errorf("server URL prompt: %w", err) + } + if choice != customSentinel { + return choice, nil + } + var custom string + err = huh.NewInput(). + Title("Server URL"). + Placeholder("https://your.rememberize.example"). + Value(&custom). + Validate(func(s string) error { + if strings.TrimSpace(s) == "" { + return fmt.Errorf("server URL required") + } + return nil + }). + Run() + if err != nil { + return "", fmt.Errorf("custom server URL prompt: %w", err) + } + return strings.TrimSpace(custom), nil +} + +// promptForServerURLLegacy is the original numbered-menu prompt. Kept +// verbatim so non-TTY tests + scripted use are unchanged. +func promptForServerURLLegacy(in io.Reader, out io.Writer) (string, error) { fmt.Fprintln(out, "No server configured. Pair against:") fmt.Fprintln(out, " 1. platform.rememberize.app (production, recommended)") fmt.Fprintln(out, " 2. http://localhost:8080 (local dev)") @@ -316,8 +409,6 @@ func promptForServerURL(in io.Reader, out io.Writer) (string, error) { } return url, nil default: - // Treat any other input as a pasted URL (common shortcut when the - // user has the URL on their clipboard and skips the menu). if strings.Contains(choice, "://") { return choice, nil } diff --git a/go.mod b/go.mod index 7104125..5c95d28 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.25.5 require ( github.com/BurntSushi/toml v1.6.0 github.com/charmbracelet/fang v1.0.0 + github.com/charmbracelet/huh v1.0.0 github.com/charmbracelet/lipgloss v1.1.0 github.com/charmbracelet/log v1.0.0 github.com/spf13/cobra v1.10.2 @@ -13,23 +14,33 @@ require ( require ( charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410 // indirect + github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/catppuccin/go v0.3.0 // indirect + github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 // indirect + github.com/charmbracelet/bubbletea v1.3.6 // indirect github.com/charmbracelet/colorprofile v0.4.1 // indirect github.com/charmbracelet/ultraviolet v0.0.0-20251106190538-99ea45596692 // indirect github.com/charmbracelet/x/ansi v0.11.5 // indirect github.com/charmbracelet/x/cellbuf v0.0.15 // indirect github.com/charmbracelet/x/exp/charmtone v0.0.0-20250603201427-c31516f43444 // indirect + github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect github.com/charmbracelet/x/term v0.2.2 // indirect github.com/charmbracelet/x/termios v0.1.1 // indirect github.com/charmbracelet/x/windows v0.2.2 // indirect github.com/clipperhouse/displaywidth v0.9.0 // indirect github.com/clipperhouse/stringish v0.1.1 // indirect github.com/clipperhouse/uax29/v2 v2.5.0 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect github.com/go-logfmt/logfmt v0.6.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/lucasb-eyer/go-colorful v1.3.0 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.19 // indirect + github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect + github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/muesli/mango v0.1.0 // indirect github.com/muesli/mango-cobra v1.2.0 // indirect diff --git a/go.sum b/go.sum index d801276..7561718 100644 --- a/go.sum +++ b/go.sum @@ -2,14 +2,26 @@ charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410 h1:D9PbaszZYp charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410/go.mod h1:1qZyvvVCenJO2M1ac2mX0yyiIZJoZmDM4DG4s0udJkU= github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= +github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= +github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= +github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/aymanbagabas/go-udiff v0.3.1 h1:LV+qyBQ2pqe0u42ZsUEtPiCaUoqgA9gYRDs3vj1nolY= github.com/aymanbagabas/go-udiff v0.3.1/go.mod h1:G0fsKmG+P6ylD0r6N/KgQD/nWzgfnl8ZBcNLgcbrw8E= +github.com/catppuccin/go v0.3.0 h1:d+0/YicIq+hSTo5oPuRi5kOpqkVA5tAsU6dNhvRu+aY= +github.com/catppuccin/go v0.3.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc= +github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 h1:JFgG/xnwFfbezlUnFMJy0nusZvytYysV4SCS2cYbvws= +github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7/go.mod h1:ISC1gtLcVilLOf23wvTfoQuYbW2q0JevFxPfUzZ9Ybw= +github.com/charmbracelet/bubbletea v1.3.6 h1:VkHIxPJQeDt0aFJIsVxw8BQdh/F/L2KKZGsK6et5taU= +github.com/charmbracelet/bubbletea v1.3.6/go.mod h1:oQD9VCRQFF8KplacJLo28/jofOI2ToOfGYeFgBBxHOc= github.com/charmbracelet/colorprofile v0.4.1 h1:a1lO03qTrSIRaK8c3JRxJDZOvhvIeSco3ej+ngLk1kk= github.com/charmbracelet/colorprofile v0.4.1/go.mod h1:U1d9Dljmdf9DLegaJ0nGZNJvoXAhayhmidOdcBwAvKk= github.com/charmbracelet/fang v1.0.0 h1:jESBY40agJOlLYnnv9jE0mLqDGTxEk0hkOnx7YGyRlQ= github.com/charmbracelet/fang v1.0.0/go.mod h1:P5/DNb9DddQ0Z0dbc0P3ol4/ix5Po7Ofr2KMBfAqoCo= +github.com/charmbracelet/huh v1.0.0 h1:wOnedH8G4qzJbmhftTqrpppyqHakl/zbbNdXIWJyIxw= +github.com/charmbracelet/huh v1.0.0/go.mod h1:5YVc+SlZ1IhQALxRPpkGwwEKftN/+OlJlnJYlDRFqN4= github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= github.com/charmbracelet/log v1.0.0 h1:HVVVMmfOorfj3BA9i8X8UL69Hoz9lI0PYwXfJvOdRc4= @@ -20,16 +32,24 @@ github.com/charmbracelet/x/ansi v0.11.5 h1:NBWeBpj/lJPE3Q5l+Lusa4+mH6v7487OP8K0r github.com/charmbracelet/x/ansi v0.11.5/go.mod h1:2JNYLgQUsyqaiLovhU2Rv/pb8r6ydXKS3NIttu3VGZQ= github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= +github.com/charmbracelet/x/conpty v0.1.0 h1:4zc8KaIcbiL4mghEON8D72agYtSeIgq8FSThSPQIb+U= +github.com/charmbracelet/x/conpty v0.1.0/go.mod h1:rMFsDJoDwVmiYM10aD4bH2XiRgwI7NYJtQgl5yskjEQ= +github.com/charmbracelet/x/errors v0.0.0-20240508181413-e8d8b6e2de86 h1:JSt3B+U9iqk37QUU2Rvb6DSBYRLtWqFqfxf8l5hOZUA= +github.com/charmbracelet/x/errors v0.0.0-20240508181413-e8d8b6e2de86/go.mod h1:2P0UgXMEa6TsToMSuFqKFQR+fZTO9CNGUNokkPatT/0= github.com/charmbracelet/x/exp/charmtone v0.0.0-20250603201427-c31516f43444 h1:IJDiTgVE56gkAGfq0lBEloWgkXMk4hl/bmuPoicI4R0= github.com/charmbracelet/x/exp/charmtone v0.0.0-20250603201427-c31516f43444/go.mod h1:T9jr8CzFpjhFVHjNjKwbAD7KwBNyFnj2pntAO7F2zw0= github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f h1:pk6gmGpCE7F3FcjaOEKYriCvpmIN4+6OS/RD0vm4uIA= github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f/go.mod h1:IfZAMTHB6XkZSeXUqriemErjAWCCzT0LwjKFYCZyw0I= +github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 h1:qko3AQ4gK1MTS/de7F5hPGx6/k1u0w4TeYmBFwzYVP4= +github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ= github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY= github.com/charmbracelet/x/termios v0.1.1/go.mod h1:rB7fnv1TgOPOyyKRJ9o+AsTU/vK5WHJ2ivHeut/Pcwo= github.com/charmbracelet/x/windows v0.2.2 h1:IofanmuvaxnKHuV04sC0eBy/smG6kIKrWG2/jYn2GuM= github.com/charmbracelet/x/windows v0.2.2/go.mod h1:/8XtdKZzedat74NQFn0NGlGL4soHB0YQZrETF96h75k= +github.com/charmbracelet/x/xpty v0.1.2 h1:Pqmu4TEJ8KeA9uSkISKMU3f+C1F6OGBn8ABuGlqCbtI= +github.com/charmbracelet/x/xpty v0.1.2/go.mod h1:XK2Z0id5rtLWcpeNiMYBccNNBrP2IJnzHI0Lq13Xzq4= github.com/clipperhouse/displaywidth v0.9.0 h1:Qb4KOhYwRiN3viMv1v/3cTBlz3AcAZX3+y9OLhMtAtA= github.com/clipperhouse/displaywidth v0.9.0/go.mod h1:aCAAqTlh4GIVkhQnJpbL0T/WfcrJXHcj8C0yjYcjOZA= github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfatpWHKCs= @@ -37,8 +57,14 @@ github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEX github.com/clipperhouse/uax29/v2 v2.5.0 h1:x7T0T4eTHDONxFJsL94uKNKPHrclyFI0lm7+w94cO8U= github.com/clipperhouse/uax29/v2 v2.5.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s= +github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= github.com/go-logfmt/logfmt v0.6.1 h1:4hvbpePJKnIzH1B+8OR/JPbTx37NktoI9LE2QZBBkvE= github.com/go-logfmt/logfmt v0.6.1/go.mod h1:EV2pOAQoZaT1ZXZbqDl5hrymndi4SY9ED9/z6CO0XAk= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= @@ -49,8 +75,14 @@ github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQ github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= +github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw= github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= +github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= +github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/muesli/mango v0.1.0 h1:DZQK45d2gGbql1arsYA4vfg4d7I9Hfx5rX/GCmzsAvI= @@ -81,6 +113,7 @@ golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug= golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=