Skip to content

Commit 2ae538c

Browse files
Gate 4: satisfy UAPI observability typecheck
Normalize PTRR step-id parsing so the stricter UAPI TypeScript build receives a concrete string before checking Reading pipeline telemetry step names. Validation: pnpm -C uapi exec tsc --noEmit; pnpm run check:v29-gate4; pnpm --dir uapi exec jest --runTestsByPath tests/terminalPipelineHarnessClient.test.ts tests/pipelineExecutionLogHeader.test.tsx --runInBand; pnpm exec eslint packages/pipelines/asset-pack/src/reading-pipeline-observability.ts uapi/app/terminal/terminal-pipeline-harness-client.ts uapi/components/base/bitcode/execution/pipeline-execution-log-header.tsx uapi/components/base/bitcode/execution/pipeline-execution-log.tsx --ext .ts,.tsx; git diff --check
1 parent 987595c commit 2ae538c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/pipelines/asset-pack/src/reading-pipeline-observability.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function inferPipelineName(source: ProjectionSource): ReadingPipelineName | null
464464
}
465465

466466
function stepNameFromId(value: unknown): ReadingPipelinePtrrStepName | null {
467-
const text = String(value || '').split('.').pop();
467+
const text = String(value || '').split('.').pop() || '';
468468
return ['plan', 'try', 'refine', 'retry'].includes(text)
469469
? (text as ReadingPipelinePtrrStepName)
470470
: null;

0 commit comments

Comments
 (0)