/** Extracts the common base fields shared by all tool call lifecycle states. */
return {
toolCallId: tc.toolCallId,
toolName: tc.toolName,
displayName: tc.displayName,
intention: tc.intention,
contributor: tc.contributor,
_meta: tc._meta,
};
}
function tcBaseWithMeta(tc: ToolCallState, meta: Record<string, unknown> | undefined) {