(ccshareId: string)
| 123 | } |
| 124 | |
| 125 | export function buildCcshareCandidateUrls(ccshareId: string): string[] { |
| 126 | const encoded = encodeURIComponent(ccshareId) |
| 127 | const { CLAUDE_AI_ORIGIN } = getOauthConfig() |
| 128 | return [ |
| 129 | buildNoumenaPlatformUrl( |
| 130 | `/api/claude_code_shared_session_transcripts/${encoded}`, |
| 131 | ), |
| 132 | buildNoumenaPlatformUrl( |
| 133 | `/api/claude_code_shared_session_transcripts/${encoded}/content`, |
| 134 | ), |
| 135 | `${CLAUDE_AI_ORIGIN}/api/claude_code_shared_session_transcripts/${encoded}`, |
| 136 | `${CLAUDE_AI_ORIGIN}/api/claude_code_shared_session_transcripts/${encoded}/content`, |
| 137 | ].filter((url, index, urls) => urls.indexOf(url) === index) |
| 138 | } |
| 139 | |
| 140 | function parseTransportPayload(raw: unknown): unknown { |
| 141 | if (typeof raw !== 'string') { |
no test coverage detected