From d1a12679c7c0366a8a50972010874bc9e9a6d643 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 05:40:21 +0000 Subject: [PATCH 1/3] chore: zip READMEs as part of build artifact --- scripts/utils/upload-artifact.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index d453066..f68fc50 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -5,10 +5,15 @@ BINARY_NAME="beeper-desktop-cli" DIST_DIR="dist" FILENAME="dist.zip" -mapfile -d '' files < <( - find "$DIST_DIR" -regextype posix-extended -type f \ - -regex ".*/[^/]*(amd64|arm64)[^/]*/${BINARY_NAME}(\\.exe)?$" -print0 -) +files=() +while IFS= read -r -d '' file; do + files+=("$file") +done < <(find "$DIST_DIR" -type f \( \ + -path "*amd64*/$BINARY_NAME" -o \ + -path "*arm64*/$BINARY_NAME" -o \ + -path "*amd64*/${BINARY_NAME}.exe" -o \ + -path "*arm64*/${BINARY_NAME}.exe" \ + \) -print0) if [[ ${#files[@]} -eq 0 ]]; then echo -e "\033[31mNo binaries found for packaging.\033[0m" @@ -20,7 +25,8 @@ rm -f "${DIST_DIR}/${FILENAME}" while IFS= read -r -d '' dir; do printf "Remove the quarantine attribute before running the executable:\n\nxattr -d com.apple.quarantine %s\n" \ "$BINARY_NAME" >"${dir}/README.txt" -done < <(find "$DIST_DIR" -type d -name '*macos*' -print0) + files+=("${dir}/README.txt") +done < <(find "$DIST_DIR" -type d -path '*macos*' -print0) relative_files=() for file in "${files[@]}"; do @@ -46,7 +52,7 @@ UPLOAD_RESPONSE=$(curl -v -X PUT \ if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then echo -e "\033[32mUploaded build to Stainless storage.\033[0m" - echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/beeper-desktop-api-cli/$SHA/$FILENAME'. On macOS, run `xattr -d com.apple.quarantine {executable name}.`\033[0m" + echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/beeper-desktop-api-cli/$SHA/$FILENAME'. On macOS, run 'xattr -d com.apple.quarantine {executable name}'.\033[0m" else echo -e "\033[31mFailed to upload artifact.\033[0m" exit 1 From d75801861b11dfd1cb5568e2b5da3eb0176b7c21 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 05:51:18 +0000 Subject: [PATCH 2/3] fix: more gracefully handle empty stdin input --- pkg/cmd/flagoptions.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/flagoptions.go b/pkg/cmd/flagoptions.go index b314e9a..250c513 100644 --- a/pkg/cmd/flagoptions.go +++ b/pkg/cmd/flagoptions.go @@ -217,13 +217,16 @@ func flagOptions( flagContents := requestflag.ExtractRequestContents(cmd) var bodyData any + var pipeData []byte if isInputPiped() && !stdinInUse { var err error - pipeData, err := io.ReadAll(os.Stdin) + pipeData, err = io.ReadAll(os.Stdin) if err != nil { return nil, err } + } + if len(pipeData) > 0 { if err := yaml.Unmarshal(pipeData, &bodyData); err == nil { if bodyMap, ok := bodyData.(map[string]any); ok { if flagMap, ok := flagContents.Body.(map[string]any); ok { From 1518612ad3aebcbbd2ab26898d394aab720b25b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 05:51:33 +0000 Subject: [PATCH 3/3] release: 0.1.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pkg/cmd/version.go | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5547f83..cda9cbd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.1" + ".": "0.1.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de4fdd..cff42f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.1.2 (2026-02-27) + +Full Changelog: [v0.1.1...v0.1.2](https://github.com/beeper/desktop-api-cli/compare/v0.1.1...v0.1.2) + +### Bug Fixes + +* more gracefully handle empty stdin input ([d758018](https://github.com/beeper/desktop-api-cli/commit/d75801861b11dfd1cb5568e2b5da3eb0176b7c21)) + + +### Chores + +* zip READMEs as part of build artifact ([d1a1267](https://github.com/beeper/desktop-api-cli/commit/d1a12679c7c0366a8a50972010874bc9e9a6d643)) + ## 0.1.1 (2026-02-25) Full Changelog: [v0.1.0...v0.1.1](https://github.com/beeper/desktop-api-cli/compare/v0.1.0...v0.1.1) diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index e6caf60..1d3a0c9 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "0.1.1" // x-release-please-version +const Version = "0.1.2" // x-release-please-version