Files
DeepTutor/web/shared/ui/activity-state.ts
Bingxi Zhao (Frank) 93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +08:00

19 lines
608 B
TypeScript

/**
* Where a single piece of work stands.
*
* Lives in `shared/` rather than beside the activity components because the
* pure logic that *computes* these states (`lib/book-activity.ts`, and
* whatever follows it) must not import from `components/` — so the four
* states are the contract between the two layers, and there is exactly one
* copy of it.
*/
export type ActivityState =
/** In flight right now. */
| "running"
/** Blocked on the reader (an `ask_user` card, a confirmation). */
| "awaiting"
/** Finished badly. */
| "error"
/** Finished, or never started. */
| "done";