MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / StreamSource

Interface StreamSource

node/src/streaming.ts:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30export interface StreamSource {
31 envelopes(): AsyncGenerator<Envelope>;
32}
33
34const STREAM_ERROR_NAMES: Record<number, string> = {
35 [AskStreamErrorCode.UNSPECIFIED]: "unspecified",
36 [AskStreamErrorCode.MACHINE_OFFLINE]: "machine_offline",
37 [AskStreamErrorCode.NO_TARGETS]: "no_targets",
38 [AskStreamErrorCode.INTERNAL]: "internal",
39 [AskStreamErrorCode.PIN_DENIED]: "pin_denied",
40};
41
42export class AskStream implements AsyncIterable<AskFrame> {

Callers 3

pinMethod · 0.65
confirmMethod · 0.65

Implementers 1

Transportnode/src/transport.ts

Calls

no outgoing calls

Tested by

no test coverage detected