(entry, currentId, currentDir)
| 329 | // - As a softer fallback, when the entry has no workspace_id but does carry a |
| 330 | // cwd, match that against the current project dir. |
| 331 | function belongsToWorkspace(entry, currentId, currentDir) { |
| 332 | if (entry && typeof entry.workspace_id === 'string' && entry.workspace_id) { |
| 333 | if (currentId) return entry.workspace_id === currentId; |
| 334 | return true; // can't compare — don't hide it |
| 335 | } |
| 336 | if (entry && typeof entry.cwd === 'string' && entry.cwd) { |
| 337 | if (currentDir) return entry.cwd === currentDir; |
| 338 | return true; |
| 339 | } |
| 340 | return true; // untagged (legacy / Hub) — never excluded |
| 341 | } |
| 342 | |
| 343 | function formatOutcome(entry) { |
| 344 | const status = entry.outcome ? entry.outcome.status : 'unknown'; |
no outgoing calls
no test coverage detected