scrubbedParentEnv (src/index.ts)

deepseek-harness · packages/subprocess/subprocess/src/index.ts · typescript · MIT
auth

Provides a service definition and utility for managing subprocesses while securely scrubbing sensitive environment variables before execution.

// Source: https://github.com/diegosouzapw/deepseek-harness | License: MIT | Copyright 2026 DeepSeek
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Service Definition for the subprocess capability seam (`ctx.subprocess`): execution-world executable lookup,
 * fully specified managed process trees with raw or
 * collected stdio, and one terminal-process primitive. Command defaulting,
 * shell semantics, deadlines, protocol framing, terminal readiness, and
 * presentation belong to consumers. The local implementation lives in
 * `@deepseek-ai/dsh-subprocess-local`.
 * @module @deepseek-ai/dsh-subprocess
 */

import { Context, Service } from '@deepseek-ai/cordis'
import { DSH_ENV_PREFIX } from './types.ts'
import type { SubprocessHandle, SubprocessSpawnSpec } from './

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

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

Get a free API key