Skip to content
Open
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.7.12"
".": "0.7.13"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 94
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentmail/agentmail-ec4e26c46715d10a0de953666e890ab67f97e61f7355971ed728942f957100f8.yml
openapi_spec_hash: 74a582c32cd3a4f6e2afb1e84eccbb21
config_hash: 8ab5eb1bfc282411f0283d386a319f23
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentmail/agentmail-f4753a92b17ddb79cf8082f675b8ef761b0f616d4fec4ae77e6097a72ca2b9d5.yml
openapi_spec_hash: d5a93e3167c99d7b144314e0d11835b3
config_hash: 79c13cf7727d64173933e0d367570632
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.7.13 (2026-05-30)

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

### Features

* **api:** api update ([95de1df](https://github.com/agentmail-to/agentmail-cli/commit/95de1df13b2ff5a3146cd0ce528e5d305057ee08))
* **api:** api update ([7f0959e](https://github.com/agentmail-to/agentmail-cli/commit/7f0959e4bbec8893c177ad4e155d7fc950d7c5e6))
* **api:** api update ([5b5819c](https://github.com/agentmail-to/agentmail-cli/commit/5b5819c93bb814f0e13f4ce45d86212e32defe4f))

## 0.7.12 (2026-05-14)

Full Changelog: [v0.7.11...v0.7.12](https://github.com/agentmail-to/agentmail-cli/compare/v0.7.11...v0.7.12)
Expand Down
13 changes: 11 additions & 2 deletions pkg/cmd/inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ var inboxesCreate = cli.Command{
Usage: "Domain of address. Must be verified domain. Defaults to `agentmail.to`.",
BodyPath: "domain",
},
&requestflag.Flag[map[string]any]{
Name: "metadata",
Usage: "Custom metadata to attach to the inbox.",
BodyPath: "metadata",
},
&requestflag.Flag[*string]{
Name: "username",
Usage: "Username of address. Randomly generated if not specified.",
Expand All @@ -55,12 +60,16 @@ var inboxesUpdate = cli.Command{
Required: true,
PathParam: "inbox_id",
},
&requestflag.Flag[string]{
&requestflag.Flag[*string]{
Name: "display-name",
Usage: "Display name: `Display Name <username@domain.com>`.",
Required: true,
BodyPath: "display_name",
},
&requestflag.Flag[map[string]any]{
Name: "metadata",
Usage: "Metadata to merge into the inbox's existing metadata. Keys you include\nare added or overwritten; keys you omit are left unchanged. To remove a\nsingle key, send it with a null value. To clear all metadata, send\n`metadata` as null. Sending an empty object is rejected; use null to\nclear. Each update must include at least one of `display_name` or\n`metadata`.",
BodyPath: "metadata",
},
},
Action: handleInboxesUpdate,
HideHelpCommand: true,
Expand Down
9 changes: 8 additions & 1 deletion pkg/cmd/inbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func TestInboxesCreate(t *testing.T) {
"--client-id", "client_id",
"--display-name", "display_name",
"--domain", "domain",
"--metadata", "{foo: string}",
"--username", "username",
)
})
Expand All @@ -28,6 +29,8 @@ func TestInboxesCreate(t *testing.T) {
"client_id: client_id\n" +
"display_name: display_name\n" +
"domain: domain\n" +
"metadata:\n" +
" foo: string\n" +
"username: username\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
Expand All @@ -46,12 +49,16 @@ func TestInboxesUpdate(t *testing.T) {
"inboxes", "update",
"--inbox-id", "inbox_id",
"--display-name", "display_name",
"--metadata", "{foo: string}",
)
})

t.Run("piping data", func(t *testing.T) {
// Test piping YAML data over stdin
pipeData := []byte("display_name: display_name")
pipeData := []byte("" +
"display_name: display_name\n" +
"metadata:\n" +
" foo: string\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
13 changes: 11 additions & 2 deletions pkg/cmd/podinbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ var podsInboxesCreate = cli.Command{
Usage: "Domain of address. Must be verified domain. Defaults to `agentmail.to`.",
BodyPath: "domain",
},
&requestflag.Flag[map[string]any]{
Name: "metadata",
Usage: "Custom metadata to attach to the inbox.",
BodyPath: "metadata",
},
&requestflag.Flag[*string]{
Name: "username",
Usage: "Username of address. Randomly generated if not specified.",
Expand Down Expand Up @@ -67,12 +72,16 @@ var podsInboxesUpdate = cli.Command{
Required: true,
PathParam: "inbox_id",
},
&requestflag.Flag[string]{
&requestflag.Flag[*string]{
Name: "display-name",
Usage: "Display name: `Display Name <username@domain.com>`.",
Required: true,
BodyPath: "display_name",
},
&requestflag.Flag[map[string]any]{
Name: "metadata",
Usage: "Metadata to merge into the inbox's existing metadata. Keys you include\nare added or overwritten; keys you omit are left unchanged. To remove a\nsingle key, send it with a null value. To clear all metadata, send\n`metadata` as null. Sending an empty object is rejected; use null to\nclear. Each update must include at least one of `display_name` or\n`metadata`.",
BodyPath: "metadata",
},
},
Action: handlePodsInboxesUpdate,
HideHelpCommand: true,
Expand Down
9 changes: 8 additions & 1 deletion pkg/cmd/podinbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestPodsInboxesCreate(t *testing.T) {
"--client-id", "client_id",
"--display-name", "display_name",
"--domain", "domain",
"--metadata", "{foo: string}",
"--username", "username",
)
})
Expand All @@ -29,6 +30,8 @@ func TestPodsInboxesCreate(t *testing.T) {
"client_id: client_id\n" +
"display_name: display_name\n" +
"domain: domain\n" +
"metadata:\n" +
" foo: string\n" +
"username: username\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
Expand All @@ -49,12 +52,16 @@ func TestPodsInboxesUpdate(t *testing.T) {
"--pod-id", "pod_id",
"--inbox-id", "inbox_id",
"--display-name", "display_name",
"--metadata", "{foo: string}",
)
})

t.Run("piping data", func(t *testing.T) {
// Test piping YAML data over stdin
pipeData := []byte("display_name: display_name")
pipeData := []byte("" +
"display_name: display_name\n" +
"metadata:\n" +
" foo: string\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmd

const Version = "0.7.12" // x-release-please-version
const Version = "0.7.13" // x-release-please-version
Loading