import { StringEnum } from "@earendil-works/pi-ai/compat";
import { Type } from "typebox";
export const TodoParams = Type.Object({
    action: StringEnum([
        "list",
        "list-all",
        "get",
        "create",
        "update",
        "append",
        "delete",
        "claim",
        "release",
    ]),
    id: Type.Optional(Type.String({ description: "Todo id (TODO-<hex> or raw hex filename)" })),
    title: Type.Optional(Type.String({ description: "Short summary shown in lists" })),
    status: Type.Optional(Type.String({ description: "Todo status" })),
    tags: Type.Optional(Type.Array(Type.String({ description: "Todo tag" }))),
    body: Type.Optional(Type.String({
        description: "Long-form details (markdown). Update replaces; append adds.",
    })),
    force: Type.Optional(Type.Boolean({ description: "Override another session's assignment" })),
});
export function isTodoOperationError(result) {
    return typeof result === "object" && result !== null && "error" in result;
}
//# sourceMappingURL=todos-types.js.map