Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

627 B
Raw Blame
import { z } from "zod";

export const contextWikiPageProposalSchema = z.object({
  id: z.string(),
  task_id: z.string(),
  path: z.string(),
  original_content: z.string(),
  content: z.string(),
  base_head: z.string(),
  created_at: z.string(),
});

export type ContextWikiPageProposal = z.infer<
  typeof contextWikiPageProposalSchema
>;

export const contextWikiProposalsSchema = z.array(
  contextWikiPageProposalSchema,
);

export const contextWikiProposalApplyResultSchema = z.object({
  head_sha: z.string(),
});

export type ContextWikiProposalApplyResult = z.infer<
  typeof contextWikiProposalApplyResultSchema
>;