refactor: simplify session ID handling and improve Taskfile options

- Include hostname in workflow ID for better audit log organization
- Extract sanitizeHostname utility to audit/utils.ts for reuse
- Remove unused generateSessionLogPath and buildLogFilePath functions
- Simplify Taskfile with CONFIG/OUTPUT/CLEAN named parameters
This commit is contained in:
ajmallesh
2026-01-12 17:18:28 -08:00
parent b84c1d3bb0
commit 69f2d8ffe7
5 changed files with 34 additions and 42 deletions
+3 -1
View File
@@ -30,6 +30,7 @@ import { Connection, Client } from '@temporalio/client';
import dotenv from 'dotenv';
import chalk from 'chalk';
import { displaySplashScreen } from '../splash-screen.js';
import { sanitizeHostname } from '../audit/utils.js';
// Import types only - these don't pull in workflow runtime code
import type { PipelineInput, PipelineState, PipelineProgress } from './shared.js';
@@ -126,7 +127,8 @@ async function startPipeline(): Promise<void> {
const client = new Client({ connection });
try {
const workflowId = customWorkflowId || `shannon-${Date.now()}`;
const hostname = sanitizeHostname(webUrl);
const workflowId = customWorkflowId || `${hostname}_shannon-${Date.now()}`;
const input: PipelineInput = {
webUrl,