()
| 31 | }; |
| 32 | |
| 33 | function buildPrimarySection(): Property[] { |
| 34 | const sessionId = getSessionId(); |
| 35 | const customTitle = getCurrentSessionTitle(sessionId); |
| 36 | const nameValue = customTitle ?? <Text dimColor>/rename to add a name</Text>; |
| 37 | |
| 38 | return [ |
| 39 | { label: 'Version', value: MACRO.VERSION }, |
| 40 | { label: 'Session name', value: nameValue }, |
| 41 | { label: 'Session ID', value: sessionId }, |
| 42 | { label: 'cwd', value: getCwd() }, |
| 43 | ...buildAccountProperties(), |
| 44 | ...buildAPIProviderProperties(), |
| 45 | ]; |
| 46 | } |
| 47 | |
| 48 | function buildSecondarySection({ |
| 49 | mainLoopModel, |
no test coverage detected