commit a8b321470a4596a069ace3c461bb9bf1959c7919
parent 963e97e4b90669321f6b6af4db8267c851915fd3
Author: triesap <tyson@radroots.org>
Date: Mon, 27 Apr 2026 10:50:19 +0000
cli: include listing key in create output
- add the listing create key field to the runtime output contract
- populate real listing create output from the authored draft product key
- populate dry run listing create output from the same draft product key
- verify final nix check and test acceptance after the repair
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/domain/runtime.rs b/src/domain/runtime.rs
@@ -1377,6 +1377,8 @@ pub struct ListingNewView {
pub file: String,
pub listing_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
+ pub key: Option<String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub selected_account_id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub seller_pubkey: Option<String>,
diff --git a/src/runtime/listing.rs b/src/runtime/listing.rs
@@ -212,6 +212,7 @@ pub fn scaffold(
source: LISTING_SOURCE.to_owned(),
file: output_path.display().to_string(),
listing_id: draft.listing.d_tag,
+ key: non_empty(draft.product.key.clone()),
selected_account_id: defaults.selected_account_id,
seller_pubkey: defaults.selected_account_pubkey,
farm_d_tag: defaults.selected_farm_d_tag,
@@ -246,6 +247,7 @@ pub fn scaffold_preflight(
source: LISTING_SOURCE.to_owned(),
file: output_path.display().to_string(),
listing_id: draft.listing.d_tag,
+ key: non_empty(draft.product.key.clone()),
selected_account_id: defaults.selected_account_id,
seller_pubkey: defaults.selected_account_pubkey,
farm_d_tag: defaults.selected_farm_d_tag,