mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 05:16:50 +01:00
Extract source-root identity helpers and split policy regression suites. Preserve behavior while applying current contributor source rules and reconcile Storybook execution-default fixtures and catalog dependencies. Co-Authored-By: Paperclip <noreply@paperclip.ing>
10 lines
286 B
TypeScript
10 lines
286 B
TypeScript
import { and, inArray, isNull } from "drizzle-orm";
|
|
import { executionWorkspaces } from "@paperclipai/db";
|
|
|
|
export function taskWorkspaceSelectableCondition() {
|
|
return and(
|
|
inArray(executionWorkspaces.status, ["active", "idle"]),
|
|
isNull(executionWorkspaces.closedAt),
|
|
)!;
|
|
}
|