/** * TX API Definition * * Declarative API definition using Effect HttpApi. * Defines all endpoints, groups, errors, and their schemas. * Handlers are implemented separately in routes/*.ts files. */ import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "@effect/platform"; import { Schema } from "effect"; declare const NotFound_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class NotFound extends NotFound_base { } declare const BadRequest_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class BadRequest extends BadRequest_base { } declare const InternalError_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class InternalError extends InternalError_base { } declare const Unauthorized_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class Unauthorized extends Unauthorized_base { } declare const Forbidden_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class Forbidden extends Forbidden_base { } declare const ServiceUnavailable_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class ServiceUnavailable extends ServiceUnavailable_base { } /** * Maps tx-core tagged errors to API error types. * Used by all route handlers for consistent error handling. */ export declare const mapCoreError: (e: unknown) => NotFound | BadRequest | InternalError | ServiceUnavailable | Unauthorized | Forbidden; /** * A Schema.String with basic path traversal protection. * Rejects null bytes and '..' traversal sequences at the schema level. * Handler-level validation still checks allowed directories (defense-in-depth). */ export declare const SafePathString: Schema.filter; export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"health", HttpApiEndpoint.HttpApiEndpoint<"health", "GET", never, never, never, never, { readonly status: "healthy" | "degraded" | "unhealthy"; readonly version: string; readonly database: { readonly path: string | null; readonly connected: boolean; }; readonly timestamp: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stats", "GET", never, never, never, never, { readonly ready: number; readonly done: number; readonly learnings: number; readonly tasks: number; readonly runsRunning?: number | undefined; readonly runsTotal?: number | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ralph", "GET", never, never, never, never, { readonly running: boolean; readonly pid: number | null; readonly currentIteration: number; readonly currentTask: string | null; readonly recentActivity: readonly { readonly status: "completed" | "failed" | "started"; readonly agent: string; readonly taskTitle: string; readonly task: string; readonly timestamp: string; readonly iteration: number; }[]; }, never, never, never>, never, never, false>; export declare const TasksGroup: HttpApiGroup.HttpApiGroup<"tasks", HttpApiEndpoint.HttpApiEndpoint<"listTasks", "GET", never, { readonly status?: string | undefined; readonly search?: string | undefined; readonly limit?: number | undefined; readonly cursor?: string | undefined; readonly labels?: string | undefined; readonly excludeLabels?: string | undefined; }, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly total: number; readonly nextCursor: string | null; readonly hasMore: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"readyTasks", "GET", never, { readonly limit?: number | undefined; readonly labels?: string | undefined; readonly excludeLabels?: string | undefined; }, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTask", "GET", { readonly id: string; }, never, never, never, { readonly task: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }; readonly blockedByTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly blocksTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly childTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createTask", "POST", never, never, { readonly title: string; readonly description?: string | undefined; readonly parentId?: string | undefined; readonly score?: number | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateTask", "PATCH", { readonly id: string; }, never, { readonly title?: string | undefined; readonly description?: string | undefined; readonly status?: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done" | undefined; readonly parentId?: string | null | undefined; readonly score?: number | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeTask", "POST", { readonly id: string; }, never, never, never, { readonly task: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }; readonly nowReady: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteTask", "DELETE", { readonly id: string; }, { readonly cascade?: string | undefined; }, never, never, { readonly id: string; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"blockTask", "POST", { readonly id: string; }, never, { readonly blockerId: string; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unblockTask", "DELETE", { readonly id: string; readonly blockerId: string; }, never, never, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setTaskGroupContext", "PUT", { readonly id: string; }, never, { readonly context: string; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearTaskGroupContext", "DELETE", { readonly id: string; }, never, never, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskTree", "GET", { readonly id: string; }, never, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"claimTask", "POST", { readonly id: string; }, never, { readonly workerId: string; readonly leaseDurationMinutes?: number | undefined; }, never, { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseTaskClaim", "DELETE", { readonly id: string; }, never, { readonly workerId: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renewTaskClaim", "POST", { readonly id: string; }, never, { readonly workerId: string; }, never, { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskClaim", "GET", { readonly id: string; }, never, never, never, { readonly claim: { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; } | null; }, never, never, never>, never, never, false>; export declare const LearningsGroup: HttpApiGroup.HttpApiGroup<"learnings", HttpApiEndpoint.HttpApiEndpoint<"searchLearnings", "GET", never, { readonly category?: string | undefined; readonly limit?: number | undefined; readonly minScore?: number | undefined; readonly query?: string | undefined; }, never, never, { readonly learnings: readonly { readonly id: number; readonly createdAt: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly rerankerScore?: number | undefined; readonly expansionHops?: number | undefined; readonly expansionPath?: readonly number[] | undefined; readonly sourceEdge?: "ANCHORED_TO" | "DERIVED_FROM" | "IMPORTS" | "CO_CHANGES_WITH" | "SIMILAR_TO" | "LINKS_TO" | "USED_IN_RUN" | "INVALIDATED_BY" | null | undefined; readonly feedbackScore?: number | undefined; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getLearning", "GET", { readonly id: number; }, never, never, never, { readonly id: number; readonly createdAt: string; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createLearning", "POST", never, never, { readonly content: string; readonly sourceType?: "compaction" | "run" | "manual" | "claude_md" | undefined; readonly sourceRef?: string | undefined; readonly keywords?: readonly string[] | undefined; readonly category?: string | undefined; }, never, { readonly id: number; readonly createdAt: string; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateHelpfulness", "POST", { readonly id: number; }, never, { readonly score: number; }, never, { readonly id: number; readonly score: number; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getContext", "GET", { readonly taskId: string; }, never, never, never, { readonly taskId: string; readonly taskTitle: string; readonly learnings: readonly { readonly id: number; readonly createdAt: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly rerankerScore?: number | undefined; readonly expansionHops?: number | undefined; readonly expansionPath?: readonly number[] | undefined; readonly sourceEdge?: "ANCHORED_TO" | "DERIVED_FROM" | "IMPORTS" | "CO_CHANGES_WITH" | "SIMILAR_TO" | "LINKS_TO" | "USED_IN_RUN" | "INVALIDATED_BY" | null | undefined; readonly feedbackScore?: number | undefined; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }[]; readonly searchQuery: string; readonly searchDuration: number; readonly graphExpansion?: { readonly enabled: boolean; readonly seedCount: number; readonly expandedCount: number; readonly maxDepthReached: number; } | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listFileLearnings", "GET", never, { readonly path?: string | undefined; }, never, never, { readonly learnings: readonly { readonly id: number & import("effect/Brand").Brand<"FileLearningId">; readonly createdAt: string; readonly taskId: string | null; readonly note: string; readonly filePattern: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createFileLearning", "POST", never, never, { readonly taskId?: string | undefined; readonly note: string; readonly filePattern: string; }, never, { readonly id: number & import("effect/Brand").Brand<"FileLearningId">; readonly createdAt: string; readonly taskId: string | null; readonly note: string; readonly filePattern: string; }, never, never, never>, never, never, false>; export declare const RunsGroup: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"listRuns", "GET", never, { readonly status?: string | undefined; readonly agent?: string | undefined; readonly taskId?: string | undefined; readonly limit?: number | undefined; readonly cursor?: string | undefined; }, never, never, { readonly total: number; readonly nextCursor: string | null; readonly hasMore: boolean; readonly runs: readonly { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listStalledRuns", "GET", never, { readonly transcriptIdleSeconds?: number | undefined; readonly heartbeatLagSeconds?: number | undefined; }, never, never, { readonly runs: readonly { readonly run: { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }; readonly reason: "transcript_idle" | "heartbeat_stale"; readonly stdoutBytes: number; readonly stderrBytes: number; readonly transcriptBytes: number; readonly transcriptIdleSeconds: number | null; readonly heartbeatLagSeconds: number | null; readonly lastActivityAt: string | null; readonly lastCheckAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reapStalledRuns", "POST", never, never, { readonly dryRun?: boolean | undefined; readonly resetTask?: boolean | undefined; readonly transcriptIdleSeconds?: number | undefined; readonly heartbeatLagSeconds?: number | undefined; }, never, { readonly runs: readonly { readonly id: string; readonly taskId: string | null; readonly reason: "transcript_idle" | "heartbeat_stale"; readonly pid: number | null; readonly transcriptIdleSeconds: number | null; readonly heartbeatLagSeconds: number | null; readonly processTerminated: boolean; readonly taskReset: boolean; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRun", "GET", { readonly id: string; }, never, never, never, { readonly run: { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }; readonly messages: readonly { readonly content: unknown; readonly type?: "tool_use" | "tool_result" | "text" | "thinking" | undefined; readonly timestamp?: string | undefined; readonly role: "system" | "user" | "assistant"; readonly tool_name?: string | undefined; }[]; readonly logs: { readonly stderr: string | null; readonly stdout: string | null; readonly stdoutTruncated: boolean; readonly stderrTruncated: boolean; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunErrors", "GET", never, { readonly limit?: number | undefined; readonly hours?: number | undefined; }, never, never, { readonly errors: readonly { readonly name: string; readonly agent: string | null; readonly taskId: string | null; readonly error: string; readonly source: "run" | "span" | "event"; readonly durationMs: number | null; readonly runId: string | null; readonly timestamp: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createRun", "POST", never, never, { readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly agent: string; readonly taskId?: string | undefined; readonly pid?: number | undefined; readonly transcriptPath?: string | undefined; readonly contextInjected?: string | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateRun", "PATCH", { readonly id: string; }, never, { readonly status?: "running" | "completed" | "failed" | "timeout" | "cancelled" | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly exitCode?: number | undefined; readonly summary?: string | undefined; readonly endedAt?: string | undefined; readonly transcriptPath?: string | undefined; readonly errorMessage?: string | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"heartbeatRun", "POST", { readonly id: string; }, never, { readonly stdoutBytes?: number | undefined; readonly stderrBytes?: number | undefined; readonly transcriptBytes?: number | undefined; readonly deltaBytes?: number | undefined; readonly checkAt?: string | undefined; readonly activityAt?: string | undefined; }, never, { readonly runId: string; readonly stdoutBytes: number; readonly stderrBytes: number; readonly transcriptBytes: number; readonly deltaBytes: number; readonly checkAt: string; readonly activityAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStdout", "GET", { readonly id: string; }, { readonly tail?: number | undefined; }, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStderr", "GET", { readonly id: string; }, { readonly tail?: number | undefined; }, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunContext", "GET", { readonly id: string; }, never, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never>, never, never, false>; export declare const SyncGroup: HttpApiGroup.HttpApiGroup<"sync", HttpApiEndpoint.HttpApiEndpoint<"syncExport", "POST", never, never, never, never, { readonly path: string; readonly eventCount: number; readonly streamId: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncImport", "POST", never, never, never, never, { readonly importedEvents: number; readonly appliedEvents: number; readonly streamCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStatus", "GET", never, never, never, never, { readonly dbTaskCount: number; readonly eventOpCount: number; readonly lastExport: string | null; readonly lastImport: string | null; readonly isDirty: boolean; readonly autoSyncEnabled: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStream", "GET", never, never, never, never, { readonly streamId: string; readonly nextSeq: number; readonly lastSeq: number; readonly eventsDir: string; readonly configPath: string; readonly knownStreams: readonly { readonly streamId: string; readonly lastSeq: number; readonly lastEventAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncHydrate", "POST", never, never, never, never, { readonly importedEvents: number; readonly appliedEvents: number; readonly streamCount: number; readonly rebuilt: boolean; }, never, never, never>, never, never, false>; export declare const MessagesGroup: HttpApiGroup.HttpApiGroup<"messages", HttpApiEndpoint.HttpApiEndpoint<"sendMessage", "POST", never, never, { readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly taskId?: string | undefined; readonly content: string; readonly channel: string; readonly sender?: string | undefined; readonly correlationId?: string | undefined; readonly ttlSeconds?: number | undefined; }, never, { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inbox", "GET", { readonly channel: string; }, { readonly limit?: number | undefined; readonly sender?: string | undefined; readonly correlationId?: string | undefined; readonly afterId?: number | undefined; readonly includeAcked?: string | undefined; }, never, never, { readonly channel: string; readonly messages: readonly { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }[]; readonly count: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ackMessage", "POST", { readonly id: number; }, never, never, never, { readonly message: { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ackAllMessages", "POST", { readonly channel: string; }, never, never, never, { readonly channel: string; readonly ackedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pendingCount", "GET", { readonly channel: string; }, never, never, never, { readonly channel: string; readonly count: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"gcMessages", "POST", never, never, { readonly ackedOlderThanHours?: number | undefined; }, never, { readonly expired: number; readonly acked: number; }, never, never, never>, never, never, false>; export declare const CyclesGroup: HttpApiGroup.HttpApiGroup<"cycles", HttpApiEndpoint.HttpApiEndpoint<"listCycles", "GET", never, never, never, never, { readonly cycles: readonly { readonly id: string; readonly description: string; readonly status: string; readonly name: string; readonly cycle: number; readonly rounds: number; readonly totalNewIssues: number; readonly existingIssues: number; readonly finalLoss: number; readonly converged: boolean; readonly startedAt: string; readonly endedAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getCycle", "GET", { readonly id: string; }, never, never, never, { readonly cycle: { readonly id: string; readonly description: string; readonly status: string; readonly name: string; readonly cycle: number; readonly rounds: number; readonly totalNewIssues: number; readonly existingIssues: number; readonly finalLoss: number; readonly converged: boolean; readonly startedAt: string; readonly endedAt: string | null; }; readonly roundMetrics: readonly { readonly cycle: number; readonly existingIssues: number; readonly low: number; readonly medium: number; readonly high: number; readonly round: number; readonly loss: number; readonly newIssues: number; readonly duplicates: number; }[]; readonly issues: readonly { readonly id: string; readonly title: string; readonly description: string; readonly cycle: number; readonly severity: string; readonly file: string; readonly round: number; readonly issueType: string; readonly line: number; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteCycle", "DELETE", { readonly id: string; }, never, never, never, { readonly id: string; readonly success: boolean; readonly deletedIssues: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteIssues", "POST", never, never, { readonly issueIds: readonly string[]; }, never, { readonly success: boolean; readonly deletedCount: number; }, never, never, never>, never, never, false>; export declare const DocsGroup: HttpApiGroup.HttpApiGroup<"docs", HttpApiEndpoint.HttpApiEndpoint<"listDocs", "GET", never, { readonly status?: string | undefined; readonly kind?: string | undefined; }, never, never, { readonly docs: readonly { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocsHealth", "GET", never, never, never, never, { readonly total: number; readonly healthy: number; readonly issues: readonly { readonly docId: string; readonly kind: string; readonly docName: string; readonly problems: readonly string[]; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createDoc", "POST", never, never, { readonly title: string; readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly name: string; readonly kind: string; readonly content: string; }, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDoc", "GET", { readonly name: string; }, never, never, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateDoc", "PATCH", { readonly name: string; }, never, { readonly content: string; }, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDoc", "DELETE", { readonly name: string; }, never, never, never, { readonly docId: string; readonly name: string; readonly version: number; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"lockDoc", "POST", { readonly name: string; }, never, never, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkDocs", "POST", never, never, { readonly linkType?: "overview_to_prd" | "overview_to_design" | "prd_to_design" | "design_patch" | "requirement_to_prd" | "requirement_to_design" | "system_design_to_design" | "system_design_to_prd" | undefined; readonly fromName: string; readonly toName: string; }, never, { readonly id: number; readonly createdAt: string; readonly linkType: "overview_to_prd" | "overview_to_design" | "prd_to_design" | "design_patch" | "requirement_to_prd" | "requirement_to_design" | "system_design_to_design" | "system_design_to_prd"; readonly fromDocId: number; readonly toDocId: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renderDocs", "POST", never, never, { readonly name?: string | null | undefined; }, never, { readonly rendered: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocSource", "GET", { readonly name: string; }, never, never, never, { readonly docId: string; readonly name: string; readonly version: number; readonly filePath: string; readonly content: string | null; readonly renderedContent: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocGraph", "GET", never, never, never, never, { readonly nodes: readonly { readonly id: string; readonly status?: string | undefined; readonly kind: string; readonly label: string; }[]; readonly edges: readonly { readonly target: string; readonly source: string; readonly type: string; }[]; }, never, never, never>, never, never, false>; export declare const PinsGroup: HttpApiGroup.HttpApiGroup<"pins", HttpApiEndpoint.HttpApiEndpoint<"setPin", "POST", { readonly id: string; }, never, { readonly content: string; }, never, { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listPins", "GET", never, never, never, never, { readonly pins: readonly { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPin", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deletePin", "DELETE", { readonly id: string; }, never, never, never, { readonly deleted: boolean; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncPins", "POST", never, never, never, never, { readonly synced: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPinTargets", "GET", never, never, never, never, { readonly files: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setPinTargets", "PUT", never, never, { readonly files: readonly string[]; }, never, { readonly files: readonly string[]; }, never, never, never>, never, never, false>; export declare const MemoryGroup: HttpApiGroup.HttpApiGroup<"memory", HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", never, never, { readonly label?: string | undefined; readonly dir: string; }, never, { readonly id: number; readonly createdAt: string; readonly label: string | null; readonly rootDir: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSource", "DELETE", never, never, { readonly dir: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSources", "GET", never, never, never, never, { readonly sources: readonly { readonly id: number; readonly createdAt: string; readonly label: string | null; readonly rootDir: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createMemoryDocument", "POST", never, never, { readonly title: string; readonly content?: string | undefined; readonly dir?: string | undefined; readonly tags?: readonly string[] | undefined; readonly properties?: { readonly [x: string]: string; } | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryDocument", "GET", { readonly id: string; }, never, never, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listMemoryDocuments", "GET", never, { readonly source?: string | undefined; readonly tags?: string | undefined; }, never, never, { readonly documents: readonly { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"searchMemoryDocuments", "GET", never, { readonly limit?: number | undefined; readonly tags?: string | undefined; readonly minScore?: number | undefined; readonly semantic?: string | undefined; readonly expand?: string | undefined; readonly props?: string | undefined; readonly query: string; }, never, never, { readonly results: readonly { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly expansionHops?: number | undefined; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"indexMemoryDocuments", "POST", never, never, { readonly incremental?: boolean | undefined; }, never, { readonly skipped: number; readonly indexed: number; readonly removed: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryIndexStatus", "GET", never, never, never, never, { readonly totalFiles: number; readonly indexed: number; readonly stale: number; readonly embedded: number; readonly links: number; readonly sources: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addMemoryTags", "POST", { readonly id: string; }, never, { readonly tags: readonly string[]; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeMemoryTags", "DELETE", { readonly id: string; }, never, { readonly tags: readonly string[]; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addMemoryRelation", "POST", { readonly id: string; }, never, { readonly target: string; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setMemoryProperty", "PUT", { readonly id: string; readonly key: string; }, never, { readonly value: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeMemoryProperty", "DELETE", { readonly id: string; readonly key: string; }, never, never, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryProperties", "GET", { readonly id: string; }, never, never, never, { readonly properties: readonly { readonly id: number; readonly value: string; readonly docId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly key: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryLinks", "GET", { readonly id: string; }, never, never, never, { readonly links: readonly { readonly id: number; readonly createdAt: string; readonly linkType: "frontmatter" | "explicit" | "wikilink"; readonly sourceDocId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly targetDocId: (string & import("effect/Brand").Brand<"MemoryDocumentId">) | null; readonly targetRef: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryBacklinks", "GET", { readonly id: string; }, never, never, never, { readonly links: readonly { readonly id: number; readonly createdAt: string; readonly linkType: "frontmatter" | "explicit" | "wikilink"; readonly sourceDocId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly targetDocId: (string & import("effect/Brand").Brand<"MemoryDocumentId">) | null; readonly targetRef: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createMemoryLink", "POST", never, never, { readonly targetRef: string; readonly sourceId: string; }, never, { readonly success: boolean; }, never, never, never>, never, never, false>; export declare const InvariantsGroup: HttpApiGroup.HttpApiGroup<"invariants", HttpApiEndpoint.HttpApiEndpoint<"listInvariants", "GET", never, { readonly enforcement?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly invariants: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly docId: number; readonly rule: string; readonly enforcement: "integration_test" | "linter" | "llm_as_judge"; readonly subsystem: string | null; readonly testRef: string | null; readonly lintRule: string | null; readonly promptRef: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getInvariant", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly docId: number; readonly rule: string; readonly enforcement: "integration_test" | "linter" | "llm_as_judge"; readonly subsystem: string | null; readonly testRef: string | null; readonly lintRule: string | null; readonly promptRef: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recordInvariantCheck", "POST", { readonly id: string; }, never, { readonly details?: string | undefined; readonly passed: boolean; readonly durationMs?: number | undefined; }, never, { readonly id: number; readonly details: string | null; readonly invariantId: string; readonly passed: boolean; readonly checkedAt: string; readonly durationMs: number | null; }, never, never, never>, never, never, false>; export declare const SpecGroup: HttpApiGroup.HttpApiGroup<"spec", HttpApiEndpoint.HttpApiEndpoint<"discoverSpec", "POST", never, never, { readonly doc?: string | undefined; readonly dryRun?: boolean | undefined; readonly patterns?: readonly string[] | undefined; readonly prune?: boolean | undefined; }, never, { readonly dryRun: boolean; readonly scannedFiles: number; readonly discoveredLinks: number; readonly upserted: number; readonly pruneEnabled: boolean; readonly prospectivePruneCount: number; readonly prospectivePrunes: readonly { readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "tag" | "comment" | "manifest"; }[]; readonly pruned: number; readonly prunedMappings: readonly { readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "tag" | "comment" | "manifest"; }[]; readonly tagLinks: number; readonly commentLinks: number; readonly manifestLinks: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecTests", "GET", { readonly invariantId: string; }, never, never, never, { readonly tests: readonly { readonly id: number; readonly createdAt: string; readonly updatedAt: string; readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecGaps", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly gaps: readonly { readonly id: string; readonly rule: string; readonly subsystem: string | null; readonly docName: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecFci", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly phase: "BUILD" | "HARDEN" | "COMPLETE"; readonly total: number; readonly covered: number; readonly uncovered: number; readonly passing: number; readonly failing: number; readonly untested: number; readonly fci: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecMatrix", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly matrix: readonly { readonly rule: string; readonly subsystem: string | null; readonly invariantId: string; readonly tests: readonly { readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; readonly specTestId: number; readonly latestRun: { readonly passed: boolean | null; readonly runAt: string | null; }; }[]; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecStatus", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly phase: "BUILD" | "HARDEN" | "COMPLETE"; readonly total: number; readonly covered: number; readonly uncovered: number; readonly passing: number; readonly failing: number; readonly untested: number; readonly fci: number; readonly gaps: number; readonly signedOff: boolean; readonly blockers: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecInvariantsForTest", "GET", never, { readonly testId: string; }, never, never, { readonly invariants: readonly string[]; readonly testId: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkSpecTest", "POST", never, never, { readonly name?: string | undefined; readonly invariantId: string; readonly framework?: string | undefined; readonly file: string; }, never, { readonly id: number; readonly createdAt: string; readonly updatedAt: string; readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unlinkSpecTest", "POST", never, never, { readonly invariantId: string; readonly testId: string; }, never, { readonly removed: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recordSpecRun", "POST", never, never, { readonly details?: string | undefined; readonly passed: boolean; readonly durationMs?: number | undefined; readonly testId: string; readonly runAt?: string | undefined; }, never, { readonly received: number; readonly recorded: number; readonly unmatched: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"batchSpecRuns", "POST", never, never, { readonly from?: string | undefined; readonly runAt?: string | undefined; readonly results?: readonly { readonly details?: string | null | undefined; readonly passed: boolean; readonly durationMs?: number | null | undefined; readonly testId: string; }[] | undefined; readonly raw?: string | undefined; }, never, { readonly received: number; readonly recorded: number; readonly unmatched: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeSpec", "POST", never, never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; readonly notes?: string | undefined; readonly signedOffBy: string; }, never, { readonly id: number; readonly notes: string | null; readonly scopeType: "doc" | "subsystem" | "global"; readonly scopeValue: string | null; readonly signedOffBy: string; readonly signedOffAt: string; }, never, never, never>, never, never, false>; export declare const GuardsGroup: HttpApiGroup.HttpApiGroup<"guards", HttpApiEndpoint.HttpApiEndpoint<"setGuard", "POST", never, never, { readonly scope?: string | undefined; readonly enforce?: boolean | undefined; readonly maxPending?: number | undefined; readonly maxChildren?: number | undefined; readonly maxDepth?: number | undefined; }, never, { readonly id: number; readonly createdAt: string; readonly scope: string; readonly enforce: boolean; readonly maxPending: number | null; readonly maxChildren: number | null; readonly maxDepth: number | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listGuards", "GET", never, never, never, never, { readonly guards: readonly { readonly id: number; readonly createdAt: string; readonly scope: string; readonly enforce: boolean; readonly maxPending: number | null; readonly maxChildren: number | null; readonly maxDepth: number | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearGuards", "DELETE", never, { readonly scope?: string | undefined; }, never, never, { readonly cleared: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"checkGuard", "GET", never, { readonly parentId?: string | undefined; }, never, never, { readonly passed: boolean; readonly warnings: readonly string[]; }, never, never, never>, never, never, false>; export declare const VerifyGroup: HttpApiGroup.HttpApiGroup<"verify", HttpApiEndpoint.HttpApiEndpoint<"setVerify", "PUT", { readonly id: string; }, never, { readonly schema?: string | undefined; readonly cmd: string; }, never, { readonly message: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"showVerify", "GET", { readonly id: string; }, never, never, never, { readonly schema: string | null; readonly cmd: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"runVerify", "POST", { readonly id: string; }, { readonly timeout?: number | undefined; }, never, never, { readonly taskId: string; readonly exitCode: number; readonly output?: { readonly [x: string]: unknown; } | undefined; readonly stderr: string; readonly passed: boolean; readonly durationMs: number; readonly stdout: string; readonly schemaValid?: boolean | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearVerify", "DELETE", { readonly id: string; }, never, never, never, { readonly message: string; }, never, never, never>, never, never, false>; export declare const ReflectGroup: HttpApiGroup.HttpApiGroup<"reflect", HttpApiEndpoint.HttpApiEndpoint<"reflect", "GET", never, { readonly hours?: number | undefined; readonly sessions?: number | undefined; readonly analyze?: "true" | "false" | undefined; }, never, never, { readonly sessions: { readonly completed: number; readonly failed: number; readonly timeout: number; readonly total: number; readonly avgDurationMinutes: number; }; readonly throughput: { readonly completed: number; readonly created: number; readonly net: number; readonly completionRate: number; }; readonly proliferation: { readonly maxDepth: number; readonly avgCreatedPerSession: number; readonly maxCreatedPerSession: number; readonly orphanChains: number; }; readonly stuckTasks: readonly { readonly failedAttempts: number; readonly id: string; readonly title: string; readonly lastError: string | null; }[]; readonly signals: readonly { readonly message: string; readonly severity: "critical" | "warning" | "info"; readonly type: string; }[]; readonly analysis: string | null; }, never, never, never>, never, never, false>; export declare const DecisionsGroup: HttpApiGroup.HttpApiGroup<"decisions", HttpApiEndpoint.HttpApiEndpoint<"createDecision", "POST", never, never, { readonly docId?: number | null | undefined; readonly taskId?: string | null | undefined; readonly content: string; readonly source?: "agent" | "manual" | "transcript" | "diff" | undefined; readonly question?: string | null | undefined; readonly commitSha?: string | null | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listDecisions", "GET", never, { readonly status?: "pending" | "approved" | "rejected" | "edited" | "superseded" | undefined; readonly limit?: number | undefined; readonly source?: "agent" | "manual" | "transcript" | "diff" | undefined; }, never, never, { readonly decisions: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDecision", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"approveDecision", "POST", { readonly id: string; }, never, { readonly reviewer?: string | undefined; readonly note?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"rejectDecision", "POST", { readonly id: string; }, never, { readonly reason: string; readonly reviewer?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"editDecision", "POST", { readonly id: string; }, never, { readonly content: string; readonly reviewer?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pendingDecisions", "GET", never, never, never, never, { readonly decisions: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }[]; }, never, never, never>, never, never, false>; export declare const DecomposeGroup: HttpApiGroup.HttpApiGroup<"decompose", HttpApiEndpoint.HttpApiEndpoint<"runDecompose", "POST", never, never, { readonly model?: string | null | undefined; readonly runtime?: "auto" | "claude" | "codex" | undefined; readonly dryRun?: boolean | undefined; readonly parentTaskId?: (string & import("effect/Brand").Brand<"TaskId">) | null | undefined; readonly docRef: string; readonly maxTasks?: number | undefined; readonly rootTitle?: string | null | undefined; readonly rootScore?: number | null | undefined; }, never, { readonly doc: { readonly title: string; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: "design"; readonly filePath: string; }; readonly model: string | null; readonly runtime: "auto" | "claude" | "codex"; readonly dryRun: boolean; readonly rationale: string | null; readonly plan: { readonly tasks: readonly { readonly title: string; readonly description: string; readonly score: number; readonly localId: string; readonly parentLocalId: string | null; readonly dependsOn: readonly string[]; }[]; readonly rationale?: string | undefined; readonly rootTask: { readonly title: string; readonly description: string; readonly score: number; }; }; readonly parentTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly rootTaskPreview: { readonly title: string; readonly description: string; readonly score: number; readonly existingParentTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; }; readonly rootTask: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; } | null; readonly createdTasks: readonly { readonly title: string; readonly score: number; readonly taskId: string & import("effect/Brand").Brand<"TaskId">; readonly parentTaskId: string & import("effect/Brand").Brand<"TaskId">; readonly localId: string; readonly dependsOn: readonly string[]; }[]; }, never, never, never>, never, never, false>; declare const TxApi_base: HttpApi.HttpApi<"tx", HttpApiGroup.HttpApiGroup<"health", HttpApiEndpoint.HttpApiEndpoint<"health", "GET", never, never, never, never, { readonly status: "healthy" | "degraded" | "unhealthy"; readonly version: string; readonly database: { readonly path: string | null; readonly connected: boolean; }; readonly timestamp: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stats", "GET", never, never, never, never, { readonly ready: number; readonly done: number; readonly learnings: number; readonly tasks: number; readonly runsRunning?: number | undefined; readonly runsTotal?: number | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ralph", "GET", never, never, never, never, { readonly running: boolean; readonly pid: number | null; readonly currentIteration: number; readonly currentTask: string | null; readonly recentActivity: readonly { readonly status: "completed" | "failed" | "started"; readonly agent: string; readonly taskTitle: string; readonly task: string; readonly timestamp: string; readonly iteration: number; }[]; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"tasks", HttpApiEndpoint.HttpApiEndpoint<"listTasks", "GET", never, { readonly status?: string | undefined; readonly search?: string | undefined; readonly limit?: number | undefined; readonly cursor?: string | undefined; readonly labels?: string | undefined; readonly excludeLabels?: string | undefined; }, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly total: number; readonly nextCursor: string | null; readonly hasMore: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"readyTasks", "GET", never, { readonly limit?: number | undefined; readonly labels?: string | undefined; readonly excludeLabels?: string | undefined; }, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTask", "GET", { readonly id: string; }, never, never, never, { readonly task: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }; readonly blockedByTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly blocksTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; readonly childTasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createTask", "POST", never, never, { readonly title: string; readonly description?: string | undefined; readonly parentId?: string | undefined; readonly score?: number | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateTask", "PATCH", { readonly id: string; }, never, { readonly title?: string | undefined; readonly description?: string | undefined; readonly status?: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done" | undefined; readonly parentId?: string | null | undefined; readonly score?: number | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeTask", "POST", { readonly id: string; }, never, never, never, { readonly task: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }; readonly nowReady: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteTask", "DELETE", { readonly id: string; }, { readonly cascade?: string | undefined; }, never, never, { readonly id: string; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"blockTask", "POST", { readonly id: string; }, never, { readonly blockerId: string; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unblockTask", "DELETE", { readonly id: string; readonly blockerId: string; }, never, never, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setTaskGroupContext", "PUT", { readonly id: string; }, never, { readonly context: string; }, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearTaskGroupContext", "DELETE", { readonly id: string; }, never, never, never, { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskTree", "GET", { readonly id: string; }, never, never, never, { readonly tasks: readonly { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"claimTask", "POST", { readonly id: string; }, never, { readonly workerId: string; readonly leaseDurationMinutes?: number | undefined; }, never, { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseTaskClaim", "DELETE", { readonly id: string; }, never, { readonly workerId: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renewTaskClaim", "POST", { readonly id: string; }, never, { readonly workerId: string; }, never, { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskClaim", "GET", { readonly id: string; }, never, never, never, { readonly claim: { readonly id: number; readonly status: string; readonly taskId: string; readonly workerId: string; readonly claimedAt: string; readonly leaseExpiresAt: string; readonly renewedCount: number; } | null; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"learnings", HttpApiEndpoint.HttpApiEndpoint<"searchLearnings", "GET", never, { readonly category?: string | undefined; readonly limit?: number | undefined; readonly minScore?: number | undefined; readonly query?: string | undefined; }, never, never, { readonly learnings: readonly { readonly id: number; readonly createdAt: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly rerankerScore?: number | undefined; readonly expansionHops?: number | undefined; readonly expansionPath?: readonly number[] | undefined; readonly sourceEdge?: "ANCHORED_TO" | "DERIVED_FROM" | "IMPORTS" | "CO_CHANGES_WITH" | "SIMILAR_TO" | "LINKS_TO" | "USED_IN_RUN" | "INVALIDATED_BY" | null | undefined; readonly feedbackScore?: number | undefined; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getLearning", "GET", { readonly id: number; }, never, never, never, { readonly id: number; readonly createdAt: string; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createLearning", "POST", never, never, { readonly content: string; readonly sourceType?: "compaction" | "run" | "manual" | "claude_md" | undefined; readonly sourceRef?: string | undefined; readonly keywords?: readonly string[] | undefined; readonly category?: string | undefined; }, never, { readonly id: number; readonly createdAt: string; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateHelpfulness", "POST", { readonly id: number; }, never, { readonly score: number; }, never, { readonly id: number; readonly score: number; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getContext", "GET", { readonly taskId: string; }, never, never, never, { readonly taskId: string; readonly taskTitle: string; readonly learnings: readonly { readonly id: number; readonly createdAt: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly rerankerScore?: number | undefined; readonly expansionHops?: number | undefined; readonly expansionPath?: readonly number[] | undefined; readonly sourceEdge?: "ANCHORED_TO" | "DERIVED_FROM" | "IMPORTS" | "CO_CHANGES_WITH" | "SIMILAR_TO" | "LINKS_TO" | "USED_IN_RUN" | "INVALIDATED_BY" | null | undefined; readonly feedbackScore?: number | undefined; readonly content: string; readonly sourceType: "compaction" | "run" | "manual" | "claude_md"; readonly sourceRef: string | null; readonly keywords: readonly string[]; readonly category: string | null; readonly usageCount: number; readonly lastUsedAt: string | null; readonly outcomeScore: number | null; readonly embedding: readonly number[] | null; }[]; readonly searchQuery: string; readonly searchDuration: number; readonly graphExpansion?: { readonly enabled: boolean; readonly seedCount: number; readonly expandedCount: number; readonly maxDepthReached: number; } | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listFileLearnings", "GET", never, { readonly path?: string | undefined; }, never, never, { readonly learnings: readonly { readonly id: number & import("effect/Brand").Brand<"FileLearningId">; readonly createdAt: string; readonly taskId: string | null; readonly note: string; readonly filePattern: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createFileLearning", "POST", never, never, { readonly taskId?: string | undefined; readonly note: string; readonly filePattern: string; }, never, { readonly id: number & import("effect/Brand").Brand<"FileLearningId">; readonly createdAt: string; readonly taskId: string | null; readonly note: string; readonly filePattern: string; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"listRuns", "GET", never, { readonly status?: string | undefined; readonly agent?: string | undefined; readonly taskId?: string | undefined; readonly limit?: number | undefined; readonly cursor?: string | undefined; }, never, never, { readonly total: number; readonly nextCursor: string | null; readonly hasMore: boolean; readonly runs: readonly { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listStalledRuns", "GET", never, { readonly transcriptIdleSeconds?: number | undefined; readonly heartbeatLagSeconds?: number | undefined; }, never, never, { readonly runs: readonly { readonly run: { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }; readonly reason: "transcript_idle" | "heartbeat_stale"; readonly stdoutBytes: number; readonly stderrBytes: number; readonly transcriptBytes: number; readonly transcriptIdleSeconds: number | null; readonly heartbeatLagSeconds: number | null; readonly lastActivityAt: string | null; readonly lastCheckAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reapStalledRuns", "POST", never, never, { readonly dryRun?: boolean | undefined; readonly resetTask?: boolean | undefined; readonly transcriptIdleSeconds?: number | undefined; readonly heartbeatLagSeconds?: number | undefined; }, never, { readonly runs: readonly { readonly id: string; readonly taskId: string | null; readonly reason: "transcript_idle" | "heartbeat_stale"; readonly pid: number | null; readonly transcriptIdleSeconds: number | null; readonly heartbeatLagSeconds: number | null; readonly processTerminated: boolean; readonly taskReset: boolean; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRun", "GET", { readonly id: string; }, never, never, never, { readonly run: { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }; readonly messages: readonly { readonly content: unknown; readonly type?: "tool_use" | "tool_result" | "text" | "thinking" | undefined; readonly timestamp?: string | undefined; readonly role: "system" | "user" | "assistant"; readonly tool_name?: string | undefined; }[]; readonly logs: { readonly stderr: string | null; readonly stdout: string | null; readonly stdoutTruncated: boolean; readonly stderrTruncated: boolean; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunErrors", "GET", never, { readonly limit?: number | undefined; readonly hours?: number | undefined; }, never, never, { readonly errors: readonly { readonly name: string; readonly agent: string | null; readonly taskId: string | null; readonly error: string; readonly source: "run" | "span" | "event"; readonly durationMs: number | null; readonly runId: string | null; readonly timestamp: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createRun", "POST", never, never, { readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly agent: string; readonly taskId?: string | undefined; readonly pid?: number | undefined; readonly transcriptPath?: string | undefined; readonly contextInjected?: string | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateRun", "PATCH", { readonly id: string; }, never, { readonly status?: "running" | "completed" | "failed" | "timeout" | "cancelled" | undefined; readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly exitCode?: number | undefined; readonly summary?: string | undefined; readonly endedAt?: string | undefined; readonly transcriptPath?: string | undefined; readonly errorMessage?: string | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"RunId">; readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled"; readonly metadata: { readonly [x: string]: unknown; }; readonly agent: string; readonly taskId: string | null; readonly exitCode: number | null; readonly summary: string | null; readonly startedAt: string; readonly endedAt: string | null; readonly pid: number | null; readonly transcriptPath: string | null; readonly stderrPath: string | null; readonly stdoutPath: string | null; readonly contextInjected: string | null; readonly errorMessage: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"heartbeatRun", "POST", { readonly id: string; }, never, { readonly stdoutBytes?: number | undefined; readonly stderrBytes?: number | undefined; readonly transcriptBytes?: number | undefined; readonly deltaBytes?: number | undefined; readonly checkAt?: string | undefined; readonly activityAt?: string | undefined; }, never, { readonly runId: string; readonly stdoutBytes: number; readonly stderrBytes: number; readonly transcriptBytes: number; readonly deltaBytes: number; readonly checkAt: string; readonly activityAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStdout", "GET", { readonly id: string; }, { readonly tail?: number | undefined; }, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStderr", "GET", { readonly id: string; }, { readonly tail?: number | undefined; }, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunContext", "GET", { readonly id: string; }, never, never, never, { readonly content: string; readonly truncated: boolean; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"sync", HttpApiEndpoint.HttpApiEndpoint<"syncExport", "POST", never, never, never, never, { readonly path: string; readonly eventCount: number; readonly streamId: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncImport", "POST", never, never, never, never, { readonly importedEvents: number; readonly appliedEvents: number; readonly streamCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStatus", "GET", never, never, never, never, { readonly dbTaskCount: number; readonly eventOpCount: number; readonly lastExport: string | null; readonly lastImport: string | null; readonly isDirty: boolean; readonly autoSyncEnabled: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStream", "GET", never, never, never, never, { readonly streamId: string; readonly nextSeq: number; readonly lastSeq: number; readonly eventsDir: string; readonly configPath: string; readonly knownStreams: readonly { readonly streamId: string; readonly lastSeq: number; readonly lastEventAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncHydrate", "POST", never, never, never, never, { readonly importedEvents: number; readonly appliedEvents: number; readonly streamCount: number; readonly rebuilt: boolean; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"messages", HttpApiEndpoint.HttpApiEndpoint<"sendMessage", "POST", never, never, { readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly taskId?: string | undefined; readonly content: string; readonly channel: string; readonly sender?: string | undefined; readonly correlationId?: string | undefined; readonly ttlSeconds?: number | undefined; }, never, { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inbox", "GET", { readonly channel: string; }, { readonly limit?: number | undefined; readonly sender?: string | undefined; readonly correlationId?: string | undefined; readonly afterId?: number | undefined; readonly includeAcked?: string | undefined; }, never, never, { readonly channel: string; readonly messages: readonly { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }[]; readonly count: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ackMessage", "POST", { readonly id: number; }, never, never, never, { readonly message: { readonly id: number & import("effect/Brand").Brand<"MessageId">; readonly status: "pending" | "acked"; readonly createdAt: string; readonly metadata: { readonly [x: string]: unknown; }; readonly taskId: string | null; readonly content: string; readonly channel: string; readonly sender: string; readonly correlationId: string | null; readonly ackedAt: string | null; readonly expiresAt: string | null; }; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ackAllMessages", "POST", { readonly channel: string; }, never, never, never, { readonly channel: string; readonly ackedCount: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pendingCount", "GET", { readonly channel: string; }, never, never, never, { readonly channel: string; readonly count: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"gcMessages", "POST", never, never, { readonly ackedOlderThanHours?: number | undefined; }, never, { readonly expired: number; readonly acked: number; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"cycles", HttpApiEndpoint.HttpApiEndpoint<"listCycles", "GET", never, never, never, never, { readonly cycles: readonly { readonly id: string; readonly description: string; readonly status: string; readonly name: string; readonly cycle: number; readonly rounds: number; readonly totalNewIssues: number; readonly existingIssues: number; readonly finalLoss: number; readonly converged: boolean; readonly startedAt: string; readonly endedAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getCycle", "GET", { readonly id: string; }, never, never, never, { readonly cycle: { readonly id: string; readonly description: string; readonly status: string; readonly name: string; readonly cycle: number; readonly rounds: number; readonly totalNewIssues: number; readonly existingIssues: number; readonly finalLoss: number; readonly converged: boolean; readonly startedAt: string; readonly endedAt: string | null; }; readonly roundMetrics: readonly { readonly cycle: number; readonly existingIssues: number; readonly low: number; readonly medium: number; readonly high: number; readonly round: number; readonly loss: number; readonly newIssues: number; readonly duplicates: number; }[]; readonly issues: readonly { readonly id: string; readonly title: string; readonly description: string; readonly cycle: number; readonly severity: string; readonly file: string; readonly round: number; readonly issueType: string; readonly line: number; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteCycle", "DELETE", { readonly id: string; }, never, never, never, { readonly id: string; readonly success: boolean; readonly deletedIssues: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteIssues", "POST", never, never, { readonly issueIds: readonly string[]; }, never, { readonly success: boolean; readonly deletedCount: number; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"docs", HttpApiEndpoint.HttpApiEndpoint<"listDocs", "GET", never, { readonly status?: string | undefined; readonly kind?: string | undefined; }, never, never, { readonly docs: readonly { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocsHealth", "GET", never, never, never, never, { readonly total: number; readonly healthy: number; readonly issues: readonly { readonly docId: string; readonly kind: string; readonly docName: string; readonly problems: readonly string[]; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createDoc", "POST", never, never, { readonly title: string; readonly metadata?: { readonly [x: string]: unknown; } | undefined; readonly name: string; readonly kind: string; readonly content: string; }, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDoc", "GET", { readonly name: string; }, never, never, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateDoc", "PATCH", { readonly name: string; }, never, { readonly content: string; }, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDoc", "DELETE", { readonly name: string; }, never, never, never, { readonly docId: string; readonly name: string; readonly version: number; readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"lockDoc", "POST", { readonly name: string; }, never, never, never, { readonly id: number; readonly title: string; readonly status: "changing" | "locked"; readonly createdAt: string; readonly docId: string; readonly name: string; readonly kind: string; readonly version: number; readonly filePath: string; readonly hash: string; readonly parentDocId: number | null; readonly lockedAt: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkDocs", "POST", never, never, { readonly linkType?: "overview_to_prd" | "overview_to_design" | "prd_to_design" | "design_patch" | "requirement_to_prd" | "requirement_to_design" | "system_design_to_design" | "system_design_to_prd" | undefined; readonly fromName: string; readonly toName: string; }, never, { readonly id: number; readonly createdAt: string; readonly linkType: "overview_to_prd" | "overview_to_design" | "prd_to_design" | "design_patch" | "requirement_to_prd" | "requirement_to_design" | "system_design_to_design" | "system_design_to_prd"; readonly fromDocId: number; readonly toDocId: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renderDocs", "POST", never, never, { readonly name?: string | null | undefined; }, never, { readonly rendered: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocSource", "GET", { readonly name: string; }, never, never, never, { readonly docId: string; readonly name: string; readonly version: number; readonly filePath: string; readonly content: string | null; readonly renderedContent: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDocGraph", "GET", never, never, never, never, { readonly nodes: readonly { readonly id: string; readonly status?: string | undefined; readonly kind: string; readonly label: string; }[]; readonly edges: readonly { readonly target: string; readonly source: string; readonly type: string; }[]; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"pins", HttpApiEndpoint.HttpApiEndpoint<"setPin", "POST", { readonly id: string; }, never, { readonly content: string; }, never, { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listPins", "GET", never, never, never, never, { readonly pins: readonly { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPin", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly createdAt: string; readonly updatedAt: string; readonly content: string; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deletePin", "DELETE", { readonly id: string; }, never, never, never, { readonly deleted: boolean; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncPins", "POST", never, never, never, never, { readonly synced: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPinTargets", "GET", never, never, never, never, { readonly files: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setPinTargets", "PUT", never, never, { readonly files: readonly string[]; }, never, { readonly files: readonly string[]; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"memory", HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", never, never, { readonly label?: string | undefined; readonly dir: string; }, never, { readonly id: number; readonly createdAt: string; readonly label: string | null; readonly rootDir: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSource", "DELETE", never, never, { readonly dir: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSources", "GET", never, never, never, never, { readonly sources: readonly { readonly id: number; readonly createdAt: string; readonly label: string | null; readonly rootDir: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createMemoryDocument", "POST", never, never, { readonly title: string; readonly content?: string | undefined; readonly dir?: string | undefined; readonly tags?: readonly string[] | undefined; readonly properties?: { readonly [x: string]: string; } | undefined; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryDocument", "GET", { readonly id: string; }, never, never, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listMemoryDocuments", "GET", never, { readonly source?: string | undefined; readonly tags?: string | undefined; }, never, never, { readonly documents: readonly { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"searchMemoryDocuments", "GET", never, { readonly limit?: number | undefined; readonly tags?: string | undefined; readonly minScore?: number | undefined; readonly semantic?: string | undefined; readonly expand?: string | undefined; readonly props?: string | undefined; readonly query: string; }, never, never, { readonly results: readonly { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly relevanceScore: number; readonly bm25Score: number; readonly vectorScore: number; readonly recencyScore: number; readonly rrfScore: number; readonly bm25Rank: number; readonly vectorRank: number; readonly expansionHops?: number | undefined; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"indexMemoryDocuments", "POST", never, never, { readonly incremental?: boolean | undefined; }, never, { readonly skipped: number; readonly indexed: number; readonly removed: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryIndexStatus", "GET", never, never, never, never, { readonly totalFiles: number; readonly indexed: number; readonly stale: number; readonly embedded: number; readonly links: number; readonly sources: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addMemoryTags", "POST", { readonly id: string; }, never, { readonly tags: readonly string[]; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeMemoryTags", "DELETE", { readonly id: string; }, never, { readonly tags: readonly string[]; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addMemoryRelation", "POST", { readonly id: string; }, never, { readonly target: string; }, never, { readonly id: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly title: string; readonly createdAt: string; readonly filePath: string; readonly content: string; readonly embedding: unknown; readonly frontmatter: string | null; readonly tags: readonly string[]; readonly rootDir: string; readonly fileHash: string; readonly fileMtime: string; readonly indexedAt: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setMemoryProperty", "PUT", { readonly id: string; readonly key: string; }, never, { readonly value: string; }, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeMemoryProperty", "DELETE", { readonly id: string; readonly key: string; }, never, never, never, { readonly success: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryProperties", "GET", { readonly id: string; }, never, never, never, { readonly properties: readonly { readonly id: number; readonly value: string; readonly docId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly key: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryLinks", "GET", { readonly id: string; }, never, never, never, { readonly links: readonly { readonly id: number; readonly createdAt: string; readonly linkType: "frontmatter" | "explicit" | "wikilink"; readonly sourceDocId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly targetDocId: (string & import("effect/Brand").Brand<"MemoryDocumentId">) | null; readonly targetRef: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getMemoryBacklinks", "GET", { readonly id: string; }, never, never, never, { readonly links: readonly { readonly id: number; readonly createdAt: string; readonly linkType: "frontmatter" | "explicit" | "wikilink"; readonly sourceDocId: string & import("effect/Brand").Brand<"MemoryDocumentId">; readonly targetDocId: (string & import("effect/Brand").Brand<"MemoryDocumentId">) | null; readonly targetRef: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createMemoryLink", "POST", never, never, { readonly targetRef: string; readonly sourceId: string; }, never, { readonly success: boolean; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"invariants", HttpApiEndpoint.HttpApiEndpoint<"listInvariants", "GET", never, { readonly enforcement?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly invariants: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly docId: number; readonly rule: string; readonly enforcement: "integration_test" | "linter" | "llm_as_judge"; readonly subsystem: string | null; readonly testRef: string | null; readonly lintRule: string | null; readonly promptRef: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getInvariant", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly docId: number; readonly rule: string; readonly enforcement: "integration_test" | "linter" | "llm_as_judge"; readonly subsystem: string | null; readonly testRef: string | null; readonly lintRule: string | null; readonly promptRef: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recordInvariantCheck", "POST", { readonly id: string; }, never, { readonly details?: string | undefined; readonly passed: boolean; readonly durationMs?: number | undefined; }, never, { readonly id: number; readonly details: string | null; readonly invariantId: string; readonly passed: boolean; readonly checkedAt: string; readonly durationMs: number | null; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"spec", HttpApiEndpoint.HttpApiEndpoint<"discoverSpec", "POST", never, never, { readonly doc?: string | undefined; readonly dryRun?: boolean | undefined; readonly patterns?: readonly string[] | undefined; readonly prune?: boolean | undefined; }, never, { readonly dryRun: boolean; readonly scannedFiles: number; readonly discoveredLinks: number; readonly upserted: number; readonly pruneEnabled: boolean; readonly prospectivePruneCount: number; readonly prospectivePrunes: readonly { readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "tag" | "comment" | "manifest"; }[]; readonly pruned: number; readonly prunedMappings: readonly { readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "tag" | "comment" | "manifest"; }[]; readonly tagLinks: number; readonly commentLinks: number; readonly manifestLinks: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecTests", "GET", { readonly invariantId: string; }, never, never, never, { readonly tests: readonly { readonly id: number; readonly createdAt: string; readonly updatedAt: string; readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecGaps", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly gaps: readonly { readonly id: string; readonly rule: string; readonly subsystem: string | null; readonly docName: string; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecFci", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly phase: "BUILD" | "HARDEN" | "COMPLETE"; readonly total: number; readonly covered: number; readonly uncovered: number; readonly passing: number; readonly failing: number; readonly untested: number; readonly fci: number; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecMatrix", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly matrix: readonly { readonly rule: string; readonly subsystem: string | null; readonly invariantId: string; readonly tests: readonly { readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; readonly specTestId: number; readonly latestRun: { readonly passed: boolean | null; readonly runAt: string | null; }; }[]; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSpecStatus", "GET", never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; }, never, never, { readonly phase: "BUILD" | "HARDEN" | "COMPLETE"; readonly total: number; readonly covered: number; readonly uncovered: number; readonly passing: number; readonly failing: number; readonly untested: number; readonly fci: number; readonly gaps: number; readonly signedOff: boolean; readonly blockers: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSpecInvariantsForTest", "GET", never, { readonly testId: string; }, never, never, { readonly invariants: readonly string[]; readonly testId: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkSpecTest", "POST", never, never, { readonly name?: string | undefined; readonly invariantId: string; readonly framework?: string | undefined; readonly file: string; }, never, { readonly id: number; readonly createdAt: string; readonly updatedAt: string; readonly invariantId: string; readonly testId: string; readonly testFile: string; readonly discovery: "manual" | "tag" | "comment" | "manifest"; readonly testName: string | null; readonly framework: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unlinkSpecTest", "POST", never, never, { readonly invariantId: string; readonly testId: string; }, never, { readonly removed: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recordSpecRun", "POST", never, never, { readonly details?: string | undefined; readonly passed: boolean; readonly durationMs?: number | undefined; readonly testId: string; readonly runAt?: string | undefined; }, never, { readonly received: number; readonly recorded: number; readonly unmatched: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"batchSpecRuns", "POST", never, never, { readonly from?: string | undefined; readonly runAt?: string | undefined; readonly results?: readonly { readonly details?: string | null | undefined; readonly passed: boolean; readonly durationMs?: number | null | undefined; readonly testId: string; }[] | undefined; readonly raw?: string | undefined; }, never, { readonly received: number; readonly recorded: number; readonly unmatched: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeSpec", "POST", never, never, { readonly doc?: string | undefined; readonly subsystem?: string | undefined; readonly notes?: string | undefined; readonly signedOffBy: string; }, never, { readonly id: number; readonly notes: string | null; readonly scopeType: "doc" | "subsystem" | "global"; readonly scopeValue: string | null; readonly signedOffBy: string; readonly signedOffAt: string; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"guards", HttpApiEndpoint.HttpApiEndpoint<"setGuard", "POST", never, never, { readonly scope?: string | undefined; readonly enforce?: boolean | undefined; readonly maxPending?: number | undefined; readonly maxChildren?: number | undefined; readonly maxDepth?: number | undefined; }, never, { readonly id: number; readonly createdAt: string; readonly scope: string; readonly enforce: boolean; readonly maxPending: number | null; readonly maxChildren: number | null; readonly maxDepth: number | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listGuards", "GET", never, never, never, never, { readonly guards: readonly { readonly id: number; readonly createdAt: string; readonly scope: string; readonly enforce: boolean; readonly maxPending: number | null; readonly maxChildren: number | null; readonly maxDepth: number | null; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearGuards", "DELETE", never, { readonly scope?: string | undefined; }, never, never, { readonly cleared: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"checkGuard", "GET", never, { readonly parentId?: string | undefined; }, never, never, { readonly passed: boolean; readonly warnings: readonly string[]; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"verify", HttpApiEndpoint.HttpApiEndpoint<"setVerify", "PUT", { readonly id: string; }, never, { readonly schema?: string | undefined; readonly cmd: string; }, never, { readonly message: string; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"showVerify", "GET", { readonly id: string; }, never, never, never, { readonly schema: string | null; readonly cmd: string | null; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"runVerify", "POST", { readonly id: string; }, { readonly timeout?: number | undefined; }, never, never, { readonly taskId: string; readonly exitCode: number; readonly output?: { readonly [x: string]: unknown; } | undefined; readonly stderr: string; readonly passed: boolean; readonly durationMs: number; readonly stdout: string; readonly schemaValid?: boolean | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clearVerify", "DELETE", { readonly id: string; }, never, never, never, { readonly message: string; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"reflect", HttpApiEndpoint.HttpApiEndpoint<"reflect", "GET", never, { readonly hours?: number | undefined; readonly sessions?: number | undefined; readonly analyze?: "true" | "false" | undefined; }, never, never, { readonly sessions: { readonly completed: number; readonly failed: number; readonly timeout: number; readonly total: number; readonly avgDurationMinutes: number; }; readonly throughput: { readonly completed: number; readonly created: number; readonly net: number; readonly completionRate: number; }; readonly proliferation: { readonly maxDepth: number; readonly avgCreatedPerSession: number; readonly maxCreatedPerSession: number; readonly orphanChains: number; }; readonly stuckTasks: readonly { readonly failedAttempts: number; readonly id: string; readonly title: string; readonly lastError: string | null; }[]; readonly signals: readonly { readonly message: string; readonly severity: "critical" | "warning" | "info"; readonly type: string; }[]; readonly analysis: string | null; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"decisions", HttpApiEndpoint.HttpApiEndpoint<"createDecision", "POST", never, never, { readonly docId?: number | null | undefined; readonly taskId?: string | null | undefined; readonly content: string; readonly source?: "agent" | "manual" | "transcript" | "diff" | undefined; readonly question?: string | null | undefined; readonly commitSha?: string | null | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listDecisions", "GET", never, { readonly status?: "pending" | "approved" | "rejected" | "edited" | "superseded" | undefined; readonly limit?: number | undefined; readonly source?: "agent" | "manual" | "transcript" | "diff" | undefined; }, never, never, { readonly decisions: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDecision", "GET", { readonly id: string; }, never, never, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"approveDecision", "POST", { readonly id: string; }, never, { readonly reviewer?: string | undefined; readonly note?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"rejectDecision", "POST", { readonly id: string; }, never, { readonly reason: string; readonly reviewer?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"editDecision", "POST", { readonly id: string; }, never, { readonly content: string; readonly reviewer?: string | undefined; }, never, { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }, NotFound | BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pendingDecisions", "GET", never, never, never, never, { readonly decisions: readonly { readonly id: string; readonly status: string; readonly createdAt: string; readonly updatedAt: string; readonly docId: number | null; readonly taskId: string | null; readonly content: string; readonly source: string; readonly invariantId: string | null; readonly question: string | null; readonly commitSha: string | null; readonly runId: string | null; readonly reviewedBy: string | null; readonly reviewNote: string | null; readonly editedContent: string | null; readonly reviewedAt: string | null; readonly contentHash: string; readonly supersededBy: string | null; readonly syncedToDoc: boolean; }[]; }, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"decompose", HttpApiEndpoint.HttpApiEndpoint<"runDecompose", "POST", never, never, { readonly model?: string | null | undefined; readonly runtime?: "auto" | "claude" | "codex" | undefined; readonly dryRun?: boolean | undefined; readonly parentTaskId?: (string & import("effect/Brand").Brand<"TaskId">) | null | undefined; readonly docRef: string; readonly maxTasks?: number | undefined; readonly rootTitle?: string | null | undefined; readonly rootScore?: number | null | undefined; }, never, { readonly doc: { readonly title: string; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: "design"; readonly filePath: string; }; readonly model: string | null; readonly runtime: "auto" | "claude" | "codex"; readonly dryRun: boolean; readonly rationale: string | null; readonly plan: { readonly tasks: readonly { readonly title: string; readonly description: string; readonly score: number; readonly localId: string; readonly parentLocalId: string | null; readonly dependsOn: readonly string[]; }[]; readonly rationale?: string | undefined; readonly rootTask: { readonly title: string; readonly description: string; readonly score: number; }; }; readonly parentTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly rootTaskPreview: { readonly title: string; readonly description: string; readonly score: number; readonly existingParentTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; }; readonly rootTask: { readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[]; readonly isReady: boolean; readonly groupContext: string | null; readonly effectiveGroupContext: string | null; readonly effectiveGroupContextSourceTaskId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly orchestrationStatus: "unclaimed" | "claimed" | "running" | "lease_expired" | "released" | null; readonly claimedBy: string | null; readonly claimExpiresAt: string | null; readonly failedAttempts: number; readonly linkedDocs: readonly { readonly title: string; readonly status: "changing" | "locked"; readonly docId: string & import("effect/Brand").Brand<"DocStableId">; readonly name: string; readonly kind: string & import("effect/Brand").Brand<"DocKind">; readonly version: number; readonly filePath: string; readonly linkType: "implements" | "references"; }[]; readonly id: string & import("effect/Brand").Brand<"TaskId">; readonly title: string; readonly description: string; readonly status: "backlog" | "ready" | "planning" | "active" | "blocked" | "review" | "needs_review" | "done"; readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null; readonly score: number; readonly createdAt: string; readonly updatedAt: string; readonly completedAt: string | null; readonly assigneeType: "human" | "agent" | null; readonly assigneeId: string | null; readonly assignedAt: string | null; readonly assignedBy: string | null; readonly metadata: { readonly [x: string]: unknown; }; } | null; readonly createdTasks: readonly { readonly title: string; readonly score: number; readonly taskId: string & import("effect/Brand").Brand<"TaskId">; readonly parentTaskId: string & import("effect/Brand").Brand<"TaskId">; readonly localId: string; readonly dependsOn: readonly string[]; }[]; }, never, never, never>, never, never, false>, NotFound | BadRequest | InternalError | Unauthorized | Forbidden | ServiceUnavailable | import("@effect/platform/HttpApiError").HttpApiDecodeError, never>; export declare class TxApi extends TxApi_base { } export {}; //# sourceMappingURL=api.d.ts.map