An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
const cellPanelTargets = new WeakMap<Element, Element>();
// 记录单元格面板所属的显示实例,视图配置面板不随单元格移出当前结果而关闭。
export const setAVCellPanelTarget = (panelElement: Element, blockElement: Element) => {
cellPanelTargets.set(panelElement, blockElement);
};
export const getAVCellPanelTarget = (panelElement: Element) => cellPanelTargets.get(panelElement);
export const isAVCellPanelForBlock = (panelElement: Element, blockElement: Element) =>
cellPanelTargets.get(panelElement) === blockElement;