askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
20 lines • 720 B
JavaScript
// Task store to manage dynamic tasks using the store factory pattern
// Uses createStore for automatic reactive updates
import { createStore } from "../../core/store.js";
// Create the task store with all state in one place
export const taskStore = createStore({
taskListDynamicTasks: new Map(),
taskListStates: new Map(),
allTaskStates: new Map(),
pendingTaskExecutors: new Map(),
revision: 0,
});
// Check if any task lists exist (for the silently fail check)
export function hasAnyTaskLists() {
return taskStore.get().taskListDynamicTasks.size > 0;
}
// Clear all task data (for testing/reset)
export function clearTaskStore() {
taskStore.reset();
}
//# sourceMappingURL=task-store.js.map