UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

37 lines (36 loc) • 1.42 kB
import { z } from "zod"; export declare const CI_REPORTER_HEADER = "x-phren-ci-reporter"; export declare const CI_PROOF_HEADER = "x-phren-ci-proof"; declare const originSchema: z.ZodObject<{ submission: z.ZodObject<{ repo: z.ZodString; branch: z.ZodOptional<z.ZodString>; commit: z.ZodOptional<z.ZodString>; snapshotId: z.ZodOptional<z.ZodString>; reporterId: z.ZodString; attemptId: z.ZodString; }, z.core.$strict>; target: z.ZodObject<{ server: z.ZodString; workspace: z.ZodString; tab: z.ZodString; pane: z.ZodString; source: z.ZodEnum<{ claude: "claude"; codex: "codex"; copilot: "copilot"; opencode: "opencode"; phren: "phren"; }>; session: z.ZodUnion<readonly [z.ZodString, z.ZodString]>; }, z.core.$strip>; terminal: z.ZodString; issuedAt: z.ZodNumber; nonce: z.ZodString; }, z.core.$strict>; export type CiOrigin = z.infer<typeof originSchema>; export declare function issueCiOrigin(origin: CiOrigin): Promise<string>; export declare function verifyCiOrigin(token: string): Promise<CiOrigin>; export declare function signCiIngress(reporter: string, bodyDigest: string): Promise<string>; export declare function authenticatedCiReporter(reporter: unknown, proof: unknown, bodyDigest: string): Promise<string>; export {};