import { z } from "zod"; export declare const SESSION_WORKFLOW_SCHEMA_VERSION: "session-workflow/1.0"; export declare const SESSION_HANDOFF_RECEIPT_SCHEMA_VERSION: "session-handoff/1.0"; /** GitHub 形式的 work item:github:/# */ export declare const WORK_ITEM_PATTERN: RegExp; export interface ParsedWorkItem { provider: "github"; owner: string; repository: string; number: number; /** github:/#,规范化后的完整形式 */ workItem: string; } export declare function parseWorkItem(input: string): ParsedWorkItem | null; export declare const sessionWorkflowSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"session-workflow/1.0">; templates: z.ZodObject<{ handoff: z.ZodString; seed: z.ZodString; }, "strip", z.ZodTypeAny, { handoff: string; seed: string; }, { handoff: string; seed: string; }>; provider: z.ZodObject<{ project: z.ZodObject<{ handoffDocField: z.ZodString; acceptanceField: z.ZodString; statusValues: z.ZodEffects, Record, Record>; }, "strip", z.ZodTypeAny, { handoffDocField: string; acceptanceField: string; statusValues: Record; }, { handoffDocField: string; acceptanceField: string; statusValues: Record; }>; }, "strip", z.ZodTypeAny, { project: { handoffDocField: string; acceptanceField: string; statusValues: Record; }; }, { project: { handoffDocField: string; acceptanceField: string; statusValues: Record; }; }>; seed: z.ZodObject<{ constraints: z.ZodString; }, "strip", z.ZodTypeAny, { constraints: string; }, { constraints: string; }>; }, "strip", z.ZodTypeAny, { schemaVersion: "session-workflow/1.0"; provider: { project: { handoffDocField: string; acceptanceField: string; statusValues: Record; }; }; seed: { constraints: string; }; templates: { handoff: string; seed: string; }; }, { schemaVersion: "session-workflow/1.0"; provider: { project: { handoffDocField: string; acceptanceField: string; statusValues: Record; }; }; seed: { constraints: string; }; templates: { handoff: string; seed: string; }; }>; export type SessionWorkflow = z.infer; /** Normal handoffs continue delivery; review is an explicit separate intent. */ export declare const HANDOFF_CONTINUATION_STATUS: "in-progress"; export declare const HANDOFF_REVIEW_STATUS: "ready-for-review"; export declare const HANDOFF_FROM_STATUS: "in-progress"; export interface IssueObservation { state: string; title: string; body: string; url: string; /** 是否 Project 看板中存在该项目映射 */ projectItemPresent: boolean | undefined; /** 看板 Status 字段当前值 */ projectStatus: string | undefined; } export interface HandoffDocValidation { exists: boolean; valid: boolean; problems: string[]; referencedFiles: string[]; receiptIds: string[]; /** 校验失败时剩余占位符所在行(SEED 段除外) */ placeholders: string[]; } export interface SessionReceipt { schemaVersion: typeof SESSION_HANDOFF_RECEIPT_SCHEMA_VERSION; kind: "session-handoff-receipt"; id: string; workItem: string; session: string; handoffDocPath: string; handoffDocHash: string; commit: string; receiptIds: string[]; fromStatus: string | null; toStatus: string; at: string; } export interface HandoffCommitEntry { sha: string; subject: string; } //# sourceMappingURL=types.d.ts.map