donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
27 lines • 790 B
JavaScript
;
// src/models/FlowMetadata.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.RunModes = exports.isComplete = exports.States = void 0;
exports.States = [
'UNSTARTED',
'INITIALIZING',
'QUERYING_LLM_FOR_NEXT_ACTION',
'WAITING_ON_USER_FOR_NEXT_ACTION',
'PAUSED',
'RESUMING',
'RUNNING_ACTION',
'FAILED',
'SUCCESS',
];
/**
* Checks if a flow state represents completion (either success or failure).
*
* @param state - The state to check
* @returns True if the state represents completion
*/
const isComplete = (state) => {
return state === 'FAILED' || state === 'SUCCESS';
};
exports.isComplete = isComplete;
exports.RunModes = ['AUTONOMOUS', 'INSTRUCT', 'DETERMINISTIC'];
//# sourceMappingURL=FlowMetadata.js.map