- 分阶段加载智能体配置并按需缓存 MCP 工具 - 合并画布状态更新与节点尺寸监听,启用大图可视区域渲染和静态连线 - 隔离 Tinyflow Store 实例并补充数据同步与回归测试
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import { useTinyflowStore } from '#store/stores.svelte';
|
|
|
|
export const useGetEdgesBySource = () => {
|
|
const store = useTinyflowStore();
|
|
const getEdgesBySource = (target: string) => {
|
|
const edges = store.getEdges();
|
|
return edges.filter((edge) => edge.source === target);
|
|
};
|
|
return {
|
|
getEdgesBySource,
|
|
};
|
|
};
|