@fayz-ai/tasks
The tasks bounded context: what a task is, the rules about it, where it is stored, and the UI over it.
Status: beta — extracted from @fayz-ai/admin, which still re-exports every name it had. Pre-1.0: minor APIs may change before 1.0.
The reference shape for every context in the SDK (docs/platform/PATTERNS.md). There is no entry file: each module is imported by its path.
Install
npm install @fayz-ai/tasks
Modules
| Import | What it holds |
|---|---|
@fayz-ai/tasks/domain/task | Task, TaskLabel, TasksSummary and the pure rules (isOverdue, summarizeTasks, splitOnboardingTasks, groupByStatus, listQuery…) |
@fayz-ai/tasks/data/provider | TasksDataProvider, the repository port |
@fayz-ai/tasks/data/supabase | createSupabaseTasksProvider, taskEntityDef — the only module that names a table |
@fayz-ai/tasks/data/mock | createMockTasksProvider, the same contract in memory |
@fayz-ai/tasks/store | useTasksStore, getTasksProvider, setTasksProvider |
@fayz-ai/tasks/components/* | presentational pieces: TaskCard, TaskDetail, TasksFilterBar, badges… |
@fayz-ai/tasks/views/TasksPanel | the list-and-detail panel over the store; the host passes locale, assistant and header slot |
import { isOverdue, isoDay } from '@fayz-ai/tasks/domain/task'
import { useTasksStore } from '@fayz-ai/tasks/store'
const late = useTasksStore((s) => s.tasks.filter((t) => isOverdue(t, isoDay())))
Words used here are defined in GLOSSARY.md.