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

Function userCancellationReason

packages/agent-core/src/utils/abort.ts:27–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27export function userCancellationReason(): UserCancellationError {
28 return new UserCancellationError();
29}
30
31export function isUserCancellation(value: unknown): value is UserCancellationError {
32 return value instanceof UserCancellationError;

Callers 8

agent.test.tsFile · 0.90
abort.test.tsFile · 0.90
abort.e2e.test.tsFile · 0.90
manager.test.tsFile · 0.90
cancelAllMethod · 0.90
cancelMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected