- Added stable slot layout support in various components, enhancing the layout and interaction of nodes. - Updated TypeScript configuration to include new paths for the agent-graph package. - Refactored layout logic in activity lanes and kanban to accommodate stable slot assignments. - Enhanced GraphView and GraphControls to support sidebar visibility toggling and owner slot drop handling. - Introduced new types for layout management in GraphDataPort and related files. - Updated README to include stable slot layout documentation.
12 lines
275 B
TypeScript
12 lines
275 B
TypeScript
export interface StableTeamOwnerLike {
|
|
name: string;
|
|
agentId?: string | null;
|
|
}
|
|
|
|
export function getStableTeamOwnerId(member: StableTeamOwnerLike): string {
|
|
const agentId = member.agentId?.trim();
|
|
if (agentId) {
|
|
return agentId;
|
|
}
|
|
return member.name.trim();
|
|
}
|