MCPcopy Create free account
hub / github.com/codeaashu/claude-code / parseSplitOutput

Function parseSplitOutput

src/utils/swarm/backends/ITermBackend.ts:50–56  ·  view source on GitHub ↗

* Parses the session ID from `it2 session split` output. * Format: "Created new pane: " * * NOTE: This UUID is only valid when splitting from a specific session * using the -s flag. When splitting from the "active" session, the UUID * may not be accessible if the split happened in a

(output: string)

Source from the content-addressed store, hash-verified

48 * may not be accessible if the split happened in a different window.
49 */
50function parseSplitOutput(output: string): string {
51 const match = output.match(/Created new pane:\s*(.+)/)
52 if (match && match[1]) {
53 return match[1].trim()
54 }
55 return ''
56}
57
58/**
59 * Gets the leader's session ID from ITERM_SESSION_ID env var.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected