MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / injectActivePrompt

Function injectActivePrompt

packages/server/test/ws-abort.e2e.test.ts:125–135  ·  view source on GitHub ↗
(
  r: RunningServer,
  sid: string,
  promptId: string,
  turnId: number | null,
)

Source from the content-addressed store, hash-verified

123}
124
125function injectActivePrompt(
126 r: RunningServer,
127 sid: string,
128 promptId: string,
129 turnId: number | null,
130): void {
131 const impl = r.services.invokeFunction(
132 (a) => a.get(IPromptService) as PromptService,
133 );
134 impl._injectActiveForTest(sid, promptId, turnId);
135}
136
137interface Subscriber {
138 ws: WebSocket;

Callers 1

Calls 3

_injectActiveForTestMethod · 0.80
invokeFunctionMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected