session
uses tcmts.cli.test.e2e.mcp.sessionOf, which uses node:child_process
tcm mcp as an agent's client runs it (with args: --branch agent/a for a session; bin, another program
than tcm's own).
import { tcmBin } from "#codebase/tcmts/cli/test/e2e/harness"; import { sessionOf } from "#codebase/tcmts/cli/test/e2e/mcp"; import type { ChildProcess } from "node:child_process"; export function session(dir: string, keep: <C extends ChildProcess>(c: C) => C, ...args: string[]) { return sessionOf(dir, keep, [tcmBin(), "mcp", ...args]); }
uses
used by
- tcmts.cli.test.e2e.mcp.testAgentWorksThroughMcp
- tcmts.cli.test.e2e.mcp.testMcpSessionsAndUpgrades
- tcmts.cli.test.e2e.mcp.testSearchAndFindFollowTheSessionsBranch
- tcmts.cli.test.e2e.mcp.testSessionSaysWhereItsScratchFilesAre
- tcmts.cli.test.e2e.mcp.testSessionsLeftBehindAreClearedAway
- tcmts.cli.test.e2e.mcp.testSessionsReadOtherBranches
- tcmts.cli.test.e2e.mcp.testSessionsStartingTogetherKeepTheirBranches
- tcmts.cli.test.e2e.mcp.testSessionsWorkApart
- tcmts.cli.test.e2e.mcp.testToolsRunInAWorker
- tcmts.cli.test.e2e.mcp.testUnknownToolOptionsAreRefused