The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { noIssuePicks } from "@t3tools/client-runtime/issue-selection"; |
| 2 | import type { IssueAssigneeCandidate, IssueLabelCandidate } from "@t3tools/contracts"; |
| 3 | import { Atom } from "effect/reactivity"; |
| 4 | |
| 5 | // Outside the sheets: a sheet is gone before its write lands, and one reopened in between must |
| 6 | // build on those picks rather than on the issue as it was last read. |
| 7 | const IDLE_TTL_MS = 60_000; |
| 8 | |
| 9 | export const issueLabelPicksFamily = Atom.family((_issueKey: string) => |
| 10 | Atom.make(noIssuePicks<IssueLabelCandidate>()).pipe(Atom.setIdleTTL(IDLE_TTL_MS)), |
| 11 | ); |
| 12 | |
| 13 | export const issueAssigneePicksFamily = Atom.family((_issueKey: string) => |
| 14 | Atom.make(noIssuePicks<IssueAssigneeCandidate>()).pipe(Atom.setIdleTTL(IDLE_TTL_MS)), |
| 15 | ); |