MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / activeMentionsForQuestion

Function activeMentionsForQuestion

deployments/desktop/static/desktop.js:4685–4696  ·  view source on GitHub ↗
(question)

Source from the content-addressed store, hash-verified

4683 }
4684
4685 function activeMentionsForQuestion(question) {
4686 const selected = state.chatMentions.filter((mention) => {
4687 const nodeId = mention.node_id || "";
4688 const title = mention.title || "";
4689 return (nodeId && question.includes(nodeId)) || (title && question.includes(title));
4690 });
4691 return selected.map((mention) => ({
4692 node_id: mention.node_id,
4693 title: mention.title,
4694 node_type: mention.node_type
4695 }));
4696 }
4697
4698 function clearChatMentions() {
4699 state.chatMentions = [];

Callers 1

askWikiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected