artifact_inventory

Create deterministic, read-only receipts for Puzzletron campaign artifacts.

Functions

inventory_campaign_artifacts

Return a deterministic, read-only inventory receipt for a campaign root.

main

Run the receipt CLI for a campaign root and optional JSON output path.

write_inventory

Write an inventory receipt without changing any campaign artifact.

inventory_campaign_artifacts(campaign_root, *, artifact_paths=None)

Return a deterministic, read-only inventory receipt for a campaign root.

Parameters:
  • campaign_root (str | Path)

  • artifact_paths (Mapping[str, str | Path] | None)

Return type:

dict[str, Any]

main(argv=None)

Run the receipt CLI for a campaign root and optional JSON output path.

Parameters:

argv (list[str] | None)

Return type:

int

write_inventory(inventory, output_path)

Write an inventory receipt without changing any campaign artifact.

Parameters:
  • inventory (Mapping[str, Any])

  • output_path (str | Path)

Return type:

None