From c81a8bee9d219874bfdbd76a09c7cb17a15de163 Mon Sep 17 00:00:00 2001 From: "dd-octo-sts[bot]" <200755185+dd-octo-sts[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:30:03 +0000 Subject: [PATCH 1/2] chore(release): bump version to v2.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update Cargo.toml package version 1.27.1 → 2.0.0 - Refresh Cargo.lock - Update plugin.json version to 2.0.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- plugin.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3d216ada..18178990 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3418,7 +3418,7 @@ dependencies = [ [[package]] name = "pup" -version = "1.27.1" +version = "2.0.0" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 7f10fcc4..b8243f74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pup" -version = "1.27.1" +version = "2.0.0" edition = "2021" rust-version = "1.93.1" publish = false diff --git a/plugin.json b/plugin.json index 7e980b35..5746d0f2 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "pup", - "version": "1.27.1", + "version": "2.0.0", "description": "Datadog API CLI with 49 command groups, 300+ subcommands. Skills and domain agents for monitoring, logs, APM, security, and infrastructure.", "author": { "name": "Datadog", From 4f9396384727c4fccfd8e075901050dfb0ef9e85 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Thu, 15 Oct 2026 09:49:54 -0500 Subject: [PATCH 2/2] fix(generated): update downtime list to the new formatter contract PR #908 regenerated src/generated/downtime.rs against the pre-#899 formatter API (agent_mode arg, four-field Metadata). Both merged to main back to back, leaving main and this release branch unable to compile. - Build Metadata with ..Default::default() for the new pagination fields - Print via formatter::output_with_meta instead of the removed signature Co-Authored-By: Claude Opus 5.5 --- src/generated/downtime.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/generated/downtime.rs b/src/generated/downtime.rs index 81b808e6..a4646235 100644 --- a/src/generated/downtime.rs +++ b/src/generated/downtime.rs @@ -165,21 +165,12 @@ pub async fn list( .await .map_err(|e| anyhow::anyhow!("failed to list_downtimes: {:?}", e))?; let count = resp.data.as_ref().map_or(0, |d| d.len()); - let truncated = false; - let next_action: Option = None; let meta = formatter::Metadata { count: Some(count), - truncated, command: Some("downtime list".to_string()), - next_action, + ..Default::default() }; - formatter::format_and_print( - &resp, - &cfg.output_format, - cfg.agent_mode, - Some(&meta), - cfg.jq.as_deref(), - ) + formatter::output_with_meta(cfg, &resp, &meta) } #[cfg(test)]