Files
t3code/apps/server/src/orchestration-v2/unknownField.ts
T
b9afba59f4 feat(web): show Claude workflow phases and members in Lineage (#12598)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: GPT-6.1-Sol (Codex) <[email protected]>
Co-authored-by: maria-rcks <[email protected]>
2026-10-10 21:34:02 -07:00

11 lines
440 B
TypeScript

/** Readers for decoding undeclared provider payloads without trusting shapes. */
export function field(source: unknown, key: string): unknown {
return typeof source === "object" && source !== null ? Reflect.get(source, key) : undefined;
}
export function text(value: unknown): string | undefined {
if (typeof value !== "string") return undefined;
const trimmed = value.trim();
return trimmed.length === 0 ? undefined : trimmed;
}