Node id for a change, using the enrichment convention (12-char truncated).
(hash: &Hash)
| 44 | |
| 45 | /// Node id for a change, using the enrichment convention (12-char truncated). |
| 46 | pub(crate) fn change_node_id(hash: &Hash) -> String { |
| 47 | let b32 = hash.to_base32(); |
| 48 | format!("change:{}", &b32[..12.min(b32.len())]) |
| 49 | } |
| 50 | |
| 51 | /// Node id for a todo. Agent-provided IDs are only stable within their |
| 52 | /// session, so qualify them with that session. Generated turn-local IDs are |
no test coverage detected