An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
interface IDocTreeMenuFrom {
notebook: string;
notebooks: string;
doc: string;
docs: string;
items: string;
}
export const getDocTreeEntryScope = (from: string | undefined, menuFrom: IDocTreeMenuFrom) => {
if (from === menuFrom.notebook) {
return "docTree.notebook";
}
if (from === menuFrom.doc) {
return "docTree.document";
}
if (from === menuFrom.docs || from === menuFrom.items) {
return "docTree.multi";
}
if (from === menuFrom.notebooks) {
return "docTree.notebooks";
}
return "";
};