src/types.ts

pentest-harness · packages/sdk/protocol/src/types.ts · typescript · MIT
ai

* Named wire types for the Pentest Harness SDK runtime protocol: the three request/result pairs and the four server-to-client notification payloads exchanged over the newline-delimited JSON-RPC stdio transport. The server plugin (`@pentest-harness/dsh-sdk-jsonrpc-server`) and SDK

// Source: https://github.com/S1N6H/pentest-harness | License: MIT | Copyright 2026 DeepSeek
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Named wire types for the Pentest Harness SDK runtime protocol: the three
 * request/result pairs and the four server-to-client notification payloads
 * exchanged over the newline-delimited JSON-RPC stdio transport. The server
 * plugin (`@pentest-harness/dsh-sdk-jsonrpc-server`) and SDK clients share these shapes;
 * `serverInfo.name` stays the wire-stable `deepseek-harness-sdk-runtime`.
 *
 * @module @pentest-harness/dsh-sdk-protocol/types
 */

import type { ContentBlock } from '@pentest-harness/dsh-llm'
import type { SessionEvent } from '@pentest-harness/dsh-session'
import type { SubagentStopReason } from '@pentest-harness/d

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

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

Get a free API key