MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildCcshareCandidateUrls

Function buildCcshareCandidateUrls

src/utils/ccshareResume.ts:125–138  ·  view source on GitHub ↗
(ccshareId: string)

Source from the content-addressed store, hash-verified

123}
124
125export 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
140function parseTransportPayload(raw: unknown): unknown {
141 if (typeof raw !== 'string') {

Callers 2

fetchCcsharePayloadFunction · 0.85

Calls 2

getOauthConfigFunction · 0.85
buildNoumenaPlatformUrlFunction · 0.85

Tested by

no test coverage detected