MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createEmptyGroup

Function createEmptyGroup

source code/utils/collapseReadSearch.ts:627–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625}
626
627function createEmptyGroup(): GroupAccumulator {
628 const group: GroupAccumulator = {
629 messages: [],
630 searchCount: 0,
631 readFilePaths: new Set(),
632 readOperationCount: 0,
633 listCount: 0,
634 toolUseIds: new Set(),
635 memorySearchCount: 0,
636 memoryReadFilePaths: new Set(),
637 memoryWriteCount: 0,
638 nonMemSearchArgs: [],
639 latestDisplayHint: undefined,
640 hookTotalMs: 0,
641 hookCount: 0,
642 hookInfos: [],
643 }
644 if (feature('TEAMMEM')) {
645 group.teamMemorySearchCount = 0
646 group.teamMemoryReadFilePaths = new Set()
647 group.teamMemoryWriteCount = 0
648 }
649 group.mcpCallCount = 0
650 group.mcpServerNames = new Set()
651 if (isFullscreenEnvEnabled()) {
652 group.bashCount = 0
653 group.bashCommands = new Map()
654 group.commits = []
655 group.pushes = []
656 group.branches = []
657 group.prs = []
658 group.gitOpBashCount = 0
659 }
660 return group
661}
662
663function createCollapsedGroup(
664 group: GroupAccumulator,

Callers 2

collapseReadSearchGroupsFunction · 0.85
flushGroupFunction · 0.85

Calls 1

isFullscreenEnvEnabledFunction · 0.85

Tested by

no test coverage detected