MCPcopy
hub / github.com/codeaashu/claude-code / addHiddenPaneId

Function addHiddenPaneId

src/utils/swarm/teamHelpers.ts:235–251  ·  view source on GitHub ↗
(teamName: string, paneId: string)

Source from the content-addressed store, hash-verified

233 * @returns true if the pane was added to hidden list, false if team doesn't exist
234 */
235export function addHiddenPaneId(teamName: string, paneId: string): boolean {
236 const teamFile = readTeamFile(teamName)
237 if (!teamFile) {
238 return false
239 }
240
241 const hiddenPaneIds = teamFile.hiddenPaneIds ?? []
242 if (!hiddenPaneIds.includes(paneId)) {
243 hiddenPaneIds.push(paneId)
244 teamFile.hiddenPaneIds = hiddenPaneIds
245 writeTeamFile(teamName, teamFile)
246 logForDebugging(
247 `[TeammateTool] Added ${paneId} to hidden panes for team ${teamName}`,
248 )
249 }
250 return true
251}
252
253/**
254 * Removes a pane ID from the hidden panes list in the team file.

Callers

nothing calls this directly

Calls 4

readTeamFileFunction · 0.85
writeTeamFileFunction · 0.85
logForDebuggingFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected