(log: LogOption, options?: {
isChild?: boolean;
showProjectPath?: boolean;
})
| 127 | return `${truncatedSummary}${sidechainSuffix}${sessionCountSuffix}`; |
| 128 | } |
| 129 | function buildLogMetadata(log: LogOption, options?: { |
| 130 | isChild?: boolean; |
| 131 | showProjectPath?: boolean; |
| 132 | }): string { |
| 133 | const { |
| 134 | isChild = false, |
| 135 | showProjectPath = false |
| 136 | } = options || {}; |
| 137 | // Match the child prefix width for proper alignment |
| 138 | const childPadding = isChild ? ' ' : ''; // 4 spaces to match ' ▸ ' |
| 139 | const baseMetadata = formatLogMetadata(log); |
| 140 | const projectSuffix = showProjectPath && log.projectPath ? ` · ${log.projectPath}` : ''; |
| 141 | return childPadding + baseMetadata + projectSuffix; |
| 142 | } |
| 143 | export function LogSelector(t0) { |
| 144 | const $ = _c(247); |
| 145 | const { |
no test coverage detected