getProcess (swift-package/active-processes.ts)

MobileBuildMCP · src/mcp/tools/swift-package/active-processes.ts · typescript · MIT
infra, tag:knn-classified

* Shared process state management for Swift Package tools. Tracks active child processes so they can be individually stopped or bulk-terminated during server shutdown. /

// Source: https://github.com/getsentry/MobileBuildMCP | License: MIT | Copyright 2025 Cameron Cooke
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Shared process state management for Swift Package tools.
 *
 * Tracks active child processes so they can be individually stopped
 * or bulk-terminated during server shutdown.
 */

interface TrackedProcess {
  kill: (signal?: string) => void;
  on: (event: string, callback: () => void) => void;
  once?: (event: string, callback: () => void) => void;
  removeListener?: (event: string, callback: () => void) => void;
  pid?: number;
  exitCode?: number | null;
  signalCode?: string | null;
  killed?: boolean;
}

export interface ProcessInfo {
  process: TrackedProcess;
  startedAt: Date;
  executableName?: string;
  package

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key