
import { URI } from '../../../../base/common/uri.js';

var ChatSessionStatus;
(function (ChatSessionStatus) {
    ChatSessionStatus[ChatSessionStatus["Failed"] = 0] = "Failed";
    ChatSessionStatus[ChatSessionStatus["Completed"] = 1] = "Completed";
    ChatSessionStatus[ChatSessionStatus["InProgress"] = 2] = "InProgress";
    ChatSessionStatus[ChatSessionStatus["NeedsInput"] = 3] = "NeedsInput";
})(ChatSessionStatus || (ChatSessionStatus = {}));
const localChatSessionType = 'local';
const agentOptionId = 'agent';
function isSessionInProgressStatus(state) {
    return state === ChatSessionStatus.InProgress || state === ChatSessionStatus.NeedsInput;
}
function isIChatSessionFileChange2(obj) {
    const candidate = obj;
    return candidate && candidate.uri instanceof URI && typeof candidate.insertions === 'number' && typeof candidate.deletions === 'number';
}

export { ChatSessionStatus, agentOptionId, isIChatSessionFileChange2, isSessionInProgressStatus, localChatSessionType };
