Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/agentmail-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run lints
run: ./scripts/lint

build:
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/agentmail-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run goreleaser
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: latest
args: release --snapshot --clean --skip=publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/agentmail-cli'
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/agentmail-cli'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/agentmail-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test
31 changes: 31 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Publish Release
permissions:
contents: write

concurrency:
group: publish

on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'agentmail-to/agentmail-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6

- name: Check release environment
run: |
bash ./bin/check-release-environment
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.prism.log
dist/
/agentmail
*.exe
80 changes: 80 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
project_name: agentmail
version: 2

before:
hooks:
- mkdir -p completions
- sh -c "go run ./cmd/agentmail/main.go @completion bash > completions/agentmail.bash"
- sh -c "go run ./cmd/agentmail/main.go @completion zsh > completions/agentmail.zsh"
- sh -c "go run ./cmd/agentmail/main.go @completion fish > completions/agentmail.fish"
- sh -c "go run ./cmd/agentmail/main.go @manpages -o man"

builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/agentmail/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'

- id: linux
goos: [linux]
goarch: ['386', arm, amd64, arm64]
env:
- CGO_ENABLED=0
binary: '{{ .ProjectName }}'
main: ./cmd/agentmail/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'

- id: windows
goos: [windows]
goarch: ['386', amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/agentmail/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'

archives:
- id: linux-archive
ids: [linux]
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [tar.gz]
files:
- completions/*
- man/*/*
- id: macos-archive
ids: [macos]
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
- id: windows-archive
ids: [windows]
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*

snapshot:
version_template: '{{ .Tag }}-next'

nfpms:
- license: Apache-2.0
maintainer:
bindir: /usr
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
contents:
- src: man/man1/*.1.gz
dst: /usr/share/man/man1/
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.2"
}
4 changes: 4 additions & 0 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
configured_endpoints: 62
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentmail%2Fagentmail-2481bfc63c4c9fa16c58f07d8a23b37ca8ce6360ae1de8f7cb864b762b6cb4dd.yml
openapi_spec_hash: caa7650be0b2ab945b63b1361f457873
config_hash: cea1e69c35953ae493e829cc87a332df
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## 0.0.2 (2026-03-02)

Full Changelog: [v0.0.1...v0.0.2](https://github.com/agentmail-to/agentmail-cli/compare/v0.0.1...v0.0.2)

### Chores

* sync repo ([3fcf10d](https://github.com/agentmail-to/agentmail-cli/commit/3fcf10d0b9c49193616513db312122c3bc98ef8f))
* update SDK settings ([55fe742](https://github.com/agentmail-to/agentmail-cli/commit/55fe74252155d07e0a1c36233626b3919ce14139))
Loading
Loading