artifact_inventory
Create deterministic, read-only receipts for Puzzletron campaign artifacts.
Functions
Return a deterministic, read-only inventory receipt for a campaign root. |
|
Run the receipt CLI for a campaign root and optional JSON output path. |
|
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