MCPcopy Create free account
hub / github.com/Noumena-Network/code / createEmptyGroup

Function createEmptyGroup

src/utils/collapseReadSearch.ts:654–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

652}
653
654function createEmptyGroup(): GroupAccumulator {
655 const group: GroupAccumulator = {
656 messages: [],
657 searchCount: 0,
658 readFilePaths: new Set(),
659 readOperationCount: 0,
660 listCount: 0,
661 toolUseIds: new Set(),
662 memorySearchCount: 0,
663 memoryReadFilePaths: new Set(),
664 memoryWriteCount: 0,
665 nonMemSearchArgs: [],
666 latestDisplayHint: undefined,
667 hookTotalMs: 0,
668 hookCount: 0,
669 hookInfos: [],
670 }
671 if (feature('TEAMMEM')) {
672 group.teamMemorySearchCount = 0
673 group.teamMemoryReadFilePaths = new Set()
674 group.teamMemoryWriteCount = 0
675 }
676 group.mcpCallCount = 0
677 group.mcpServerNames = new Set()
678 if (isFullscreenEnvEnabled()) {
679 group.bashCount = 0
680 group.bashCommands = new Map()
681 group.commits = []
682 group.pushes = []
683 group.branches = []
684 group.prs = []
685 group.gitOpBashCount = 0
686 }
687 return group
688}
689
690function createCollapsedGroup(
691 group: GroupAccumulator,

Callers 2

collapseReadSearchGroupsFunction · 0.85
flushGroupFunction · 0.85

Calls 1

isFullscreenEnvEnabledFunction · 0.85

Tested by

no test coverage detected