MCPcopy Index your code
hub / github.com/codeaashu/claude-code / removeHiddenPaneId

Function removeHiddenPaneId

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

Source from the content-addressed store, hash-verified

257 * @returns true if the pane was removed from hidden list, false if team doesn't exist
258 */
259export function removeHiddenPaneId(teamName: string, paneId: string): boolean {
260 const teamFile = readTeamFile(teamName)
261 if (!teamFile) {
262 return false
263 }
264
265 const hiddenPaneIds = teamFile.hiddenPaneIds ?? []
266 const index = hiddenPaneIds.indexOf(paneId)
267 if (index !== -1) {
268 hiddenPaneIds.splice(index, 1)
269 teamFile.hiddenPaneIds = hiddenPaneIds
270 writeTeamFile(teamName, teamFile)
271 logForDebugging(
272 `[TeammateTool] Removed ${paneId} from hidden panes for team ${teamName}`,
273 )
274 }
275 return true
276}
277
278/**
279 * Removes a teammate from the team config file by pane ID.

Callers

nothing calls this directly

Calls 4

readTeamFileFunction · 0.85
writeTeamFileFunction · 0.85
logForDebuggingFunction · 0.85
spliceMethod · 0.80

Tested by

no test coverage detected