Files
SnowLuma/.pnpm-store/v11/files/0a/5d8a707642a91fc2cc2ab493f545c10368e6b880f882e72096a4bf1dd2b6afd746cb36bf13ef5ce44e0ae32d6d5206dff6ea18cf37db7181c09250c0d18efb
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

19 lines
671 B
Plaintext

"use strict";
/**
* Experimental task interfaces for MCP SDK.
* WARNING: These APIs are experimental and may change without notice.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTerminal = isTerminal;
/**
* Checks if a task status represents a terminal state.
* Terminal states are those where the task has finished and will not change.
*
* @param status - The task status to check
* @returns True if the status is terminal (completed, failed, or cancelled)
* @experimental
*/
function isTerminal(status) {
return status === 'completed' || status === 'failed' || status === 'cancelled';
}
//# sourceMappingURL=interfaces.js.map