diff --git a/src/temporal/activities.ts b/src/temporal/activities.ts index 40fcf4f..2e544dd 100644 --- a/src/temporal/activities.ts +++ b/src/temporal/activities.ts @@ -678,7 +678,7 @@ export async function logPhaseTransition( phase: string, event: 'start' | 'complete' ): Promise { - const { webUrl, repoPath, outputPath, sessionId } = input; + const { webUrl, repoPath, outputPath, sessionId, workflowId } = input; const sessionMetadata: SessionMetadata = { id: sessionId, @@ -688,7 +688,7 @@ export async function logPhaseTransition( }; const auditSession = new AuditSession(sessionMetadata); - await auditSession.initialize(); + await auditSession.initialize(workflowId); if (event === 'start') { await auditSession.logPhaseStart(phase); diff --git a/src/types/agents.ts b/src/types/agents.ts index 481346a..041e0f3 100644 --- a/src/types/agents.ts +++ b/src/types/agents.ts @@ -8,8 +8,6 @@ * Agent type definitions */ -import path from 'path'; - /** * List of all agents in execution order. * Used for iteration during resume state checking. @@ -118,5 +116,5 @@ export function getDeliverablePath(agentName: AgentName, repoPath: string): stri }; const filename = deliverableMap[agentName]; - return path.join(repoPath, 'deliverables', filename); + return `${repoPath}/deliverables/${filename}`; }