MCPcopy Create free account
hub / github.com/apache/maka / stopLinkedRoot

Method stopLinkedRoot

packages/runtime/src/session-manager.ts:4790–4800  ·  view source on GitHub ↗
(
    identity: RuntimeMessageRunIdentity,
    input: StopSessionInput,
  )

Source from the content-addressed store, hash-verified

4788 }
4789
4790 private stopLinkedRoot(
4791 identity: RuntimeMessageRunIdentity,
4792 input: StopSessionInput,
4793 ): Promise<void> {
4794 const authority = isRuntimeHostedRootAuthority(this.deps.messageAuthority)
4795 ? this.deps.messageAuthority
4796 : undefined;
4797 return authority
4798 ? authority.stopRoot(identity, input)
4799 : this.runtimeKernel.stopSession(identity.sessionId, input);
4800 }
4801
4802 /** Queue a user message for mid-turn injection at the next step boundary. */
4803 steer(sessionId: string, text: string): QueueEnqueueOutcome {

Callers 1

onAbortMethod · 0.95

Calls 3

stopRootMethod · 0.65
stopSessionMethod · 0.65

Tested by

no test coverage detected