MCPcopy
hub / github.com/KeygraphHQ/shannon / buildSessionMetadata

Function buildSessionMetadata

apps/worker/src/temporal/activities.ts:104–112  ·  view source on GitHub ↗

* Build SessionMetadata from ActivityInput.

(input: ActivityInput)

Source from the content-addressed store, hash-verified

102 * Build SessionMetadata from ActivityInput.
103 */
104function buildSessionMetadata(input: ActivityInput): SessionMetadata {
105 const { webUrl, repoPath, outputPath, sessionId } = input;
106 return {
107 id: sessionId,
108 webUrl,
109 repoPath,
110 ...(outputPath && { outputPath }),
111 };
112}
113
114/**
115 * Build ContainerConfig from ActivityInput, falling back to defaults.

Callers 7

runAgentActivityFunction · 0.85
syncCodePathDenyRulesFunction · 0.85
recordResumeAttemptFunction · 0.85
logPhaseTransitionFunction · 0.85
logWorkflowCompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected