/**
 * src/examples/index.ts — Generated example data.
 *
 * DO NOT EDIT — this file is generated by scripts/generate-examples.ts
 * from TypeScript task files in packages/core/examples/tasks/
 * and YAML config files in packages/core/examples/.
 *
 * To regenerate: pnpm generate-examples
 */
/** Parsed config example data (JSON-safe) */
export declare const configData: {
    readonly models: readonly [{
        readonly id: "openai:chat:gpt-5.2";
        readonly label: "GPT 5.2";
        readonly config: {
            readonly temperature: 0.2;
            readonly max_tokens: 4096;
        };
        readonly modes: readonly ["baseline", "observed", "agentic-naive", "agentic-optimized"];
    }, {
        readonly id: "anthropic:messages:claude-opus-4-6";
        readonly label: "Claude Opus 4.6";
        readonly config: {
            readonly temperature: 0.2;
            readonly max_tokens: 4096;
        };
        readonly modes: readonly ["baseline", "agentic-naive"];
    }];
    readonly grader: {
        readonly id: "openai:gpt-5-2025-08-07";
        readonly label: "GPT-5 (grader)";
    };
    readonly maxConcurrency: 32;
    readonly defaults: {
        readonly temperature: 0.2;
        readonly max_tokens: 4096;
    };
};
/** Raw YAML string for config example (preserves comments) */
export declare const configYaml = "# Example model configuration for AI Literacy Framework evaluations.\n#\n# This defines which LLMs to evaluate and which model grades the results.\n# The grader model should always be different from the evaluated models\n# (\"the judge should not be the defendant\").\n\nmodels:\n  - id: \"openai:chat:gpt-5.2\"\n    label: \"GPT 5.2\"\n    config:\n      temperature: 0.2\n      max_tokens: 4096\n    modes:\n      - baseline\n      - observed\n      - agentic-naive\n      - agentic-optimized\n\n  - id: \"anthropic:messages:claude-opus-4-6\"\n    label: \"Claude Opus 4.6\"\n    config:\n      temperature: 0.2\n      max_tokens: 4096\n    modes:\n      - baseline\n      - agentic-naive\n\ngrader:\n  id: \"openai:gpt-5-2025-08-07\"\n  label: \"GPT-5 (grader)\"\n\nmaxConcurrency: 32\n\ndefaults:\n  temperature: 0.2\n  max_tokens: 4096\n";
/** Parsed source example data (JSON-safe) */
export declare const sourceData: {
    readonly name: "production";
    readonly type: "sanity";
    readonly projectId: "3do82whm";
    readonly dataset: "next";
    readonly baseUrl: "https://www.sanity.io/docs";
    readonly llmsTxt: "https://www.sanity.io/docs/llms.txt";
    readonly allowedOrigins: readonly ["sanity.io", "*.sanity.build"];
};
/** Raw YAML string for source example (preserves comments) */
export declare const sourceYaml = "# Example documentation source definition.\n#\n# Defines where the AI Literacy Framework fetches documentation content.\n# The framework uses these settings for both baseline (GROQ fetch) and\n# agentic (live URL) evaluation modes.\n\nname: production\ntype: sanity\nprojectId: \"3do82whm\"\ndataset: next\nbaseUrl: \"https://www.sanity.io/docs\"\nllmsTxt: \"https://www.sanity.io/docs/llms.txt\"\nallowedOrigins:\n  - \"sanity.io\"\n  - \"*.sanity.build\"\n";
/** Parsed rubric example data (JSON-safe) */
export declare const rubricData: {
    readonly templates: {
        readonly "task-completion": {
            readonly dimension: "task_completion";
            readonly weight: 0.5;
            readonly prompt: "Evaluate whether the implementation correctly completes the assigned task.\n\nCriteria:\n{{criteria}}\n\nScore 0-100 where:\n- 0-20: Task not attempted or fundamentally wrong approach\n- 21-50: Partial implementation, major gaps\n- 51-80: Working implementation with minor issues\n- 81-100: Complete, correct implementation\n";
        };
    };
    readonly weights: {
        readonly task_completion: 0.5;
        readonly code_correctness: 0.25;
        readonly doc_coverage: 0.25;
    };
};
/** Raw YAML string for rubric example (preserves comments) */
export declare const rubricYaml = "# Example rubric templates for LLM grading.\n#\n# Rubrics define how the grader LLM scores each dimension of a response.\n# The {{criteria}} placeholder is replaced with task-specific bullets\n# from each task's assert entries.\n#\n# Weights must sum to 1.0.\n\ntemplates:\n  task-completion:\n    dimension: task_completion\n    weight: 0.5\n    prompt: |\n      Evaluate whether the implementation correctly completes the assigned task.\n\n      Criteria:\n      {{criteria}}\n\n      Score 0-100 where:\n      - 0-20: Task not attempted or fundamentally wrong approach\n      - 21-50: Partial implementation, major gaps\n      - 51-80: Working implementation with minor issues\n      - 81-100: Complete, correct implementation\n\nweights:\n  task_completion: 0.5\n  code_correctness: 0.25\n  doc_coverage: 0.25\n";
/** Parsed threshold example data (JSON-safe) */
export declare const thresholdData: {
    readonly global: {
        readonly composite: 60;
        readonly dimensions: {
            readonly task_completion: 55;
            readonly code_correctness: 50;
            readonly doc_coverage: 50;
        };
        readonly ceiling: 70;
        readonly docLift: 10;
    };
    readonly areas: {
        readonly groq: {
            readonly composite: 65;
            readonly ceiling: 75;
        };
    };
};
/** Raw YAML string for threshold example (preserves comments) */
export declare const thresholdYaml = "# Example quality threshold configuration.\n#\n# Thresholds define the minimum scores for readiness gates.\n# The `ailf report readiness` command evaluates scores against these\n# thresholds and produces a go/no-go checklist.\n#\n# Global thresholds apply to all areas unless overridden per-area.\n\nglobal:\n  composite: 60\n  dimensions:\n    task_completion: 55\n    code_correctness: 50\n    doc_coverage: 50\n  ceiling: 70\n  docLift: 10\n\nareas:\n  groq:\n    composite: 65\n    ceiling: 75\n";
/** Parsed ailf-config example data (JSON-safe) */
export declare const ailfConfigData: {
    readonly source: {
        readonly projectId: "3do82whm";
        readonly dataset: "next";
        readonly baseUrl: "https://www.sanity.io/docs";
    };
    readonly triggers: {
        readonly pr: {
            readonly mode: "validate-only";
        };
        readonly "pr-task-change": {
            readonly mode: "eval";
            readonly paths: readonly [".ailf/**"];
        };
        readonly main: {
            readonly mode: "eval";
            readonly blocking: false;
            readonly notify: true;
        };
    };
};
/** Raw YAML string for ailf-config example (preserves comments) */
export declare const ailfConfigYaml = "# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n# .ailf/config.yaml \u2014 AI Literacy Framework project configuration\n# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n#\n# This file configures how the AILF evaluation pipeline runs in this\n# repository. Place it at .ailf/config.yaml in your project root.\n#\n# Evaluations are submitted to the AILF API (ailf-api.sanity.build).\n# The API handles LLM calls, doc fetching, grading, and report\n# publishing. Your repo only needs one secret: AILF_API_KEY.\n#\n# Docs: https://github.com/sanity-labs/ai-literacy-framework\n# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n# Documentation source \u2014 which docs are being evaluated.\n#\n# This tells the pipeline which Sanity project and dataset contain\n# the documentation under test. For most users, this is Sanity's own\n# docs project.\n#\n# projectId \u2014 Sanity project ID (find yours at sanity.io/manage)\n# dataset   \u2014 the dataset to query (e.g., \"production\", \"next\")\n# baseUrl   \u2014 the public URL of your documentation site\n#             (used by agentic mode to test agent discoverability)\nsource:\n  projectId: \"3do82whm\"\n  dataset: next\n  baseUrl: \"https://www.sanity.io/docs\"\n\n# Trigger configuration \u2014 when evaluations run automatically.\n#\n# Each key is a trigger context. The pipeline checks which trigger\n# matches the current execution context (PR, merge, schedule, etc.)\n# and applies its settings.\n#\n# mode options:\n#   validate-only \u2014 check that task YAML parses correctly (fast, no LLM calls)\n#   eval          \u2014 run the full evaluation pipeline\n#\n# paths \u2014 only trigger when files matching these globs change\n# blocking \u2014 if true, a failing eval blocks the PR merge\n# notify \u2014 if true, post results to configured notification channels\ntriggers:\n  # On pull requests: just validate task files parse correctly\n  pr:\n    mode: validate-only\n\n  # When .ailf/ files change in a PR: run a real evaluation\n  pr-task-change:\n    mode: eval\n    paths: [\".ailf/**\"]\n\n  # On merge to main: run evaluation (non-blocking)\n  main:\n    mode: eval\n    blocking: false\n    notify: true\n";
/** Parsed task data for example-agent-add-schema (JSON-safe) */
export declare const exampleAgentAddSchemaData: readonly [{
    readonly mode: "agent-harness";
    readonly id: "example-agent-add-schema";
    readonly title: "Add a document schema to a Sanity Studio project";
    readonly description: "Example — tests whether an agent can create a schema file and register it in an existing Sanity Studio project";
    readonly area: "studio";
    readonly sandbox: {
        readonly type: "tempdir";
    };
    readonly tools: readonly ["coding"];
    readonly fixtures: readonly ["file://apps/editor"];
    readonly prompt: {
        readonly text: "You have a Sanity Studio project with an existing article schema.\nAdd a new \"post\" document type with the following fields:\n1. title (string, required)\n2. slug (slug, sourced from title, required)\n3. author (string)\n4. publishedAt (datetime)\n5. body (array of block content)\n\nCreate the schema file at schemas/post.ts using defineType() and defineField().\nRegister it in schemas/index.ts alongside the existing article schema.";
    };
    readonly assertions: readonly [{
        readonly type: "file-exists";
        readonly value: "schemas/post.ts";
    }, {
        readonly type: "file-contains";
        readonly value: {
            readonly path: "schemas/post.ts";
            readonly content: "defineType";
        };
    }, {
        readonly type: "file-contains";
        readonly value: {
            readonly path: "schemas/post.ts";
            readonly content: "defineField";
        };
    }, {
        readonly type: "file-contains";
        readonly value: {
            readonly path: "schemas/index.ts";
            readonly content: "post";
        };
    }, {
        readonly type: "file-contains";
        readonly value: {
            readonly path: "sanity.config.ts";
            readonly content: "defineConfig";
        };
    }];
    readonly status: "draft";
}];
/** TypeScript task template for example-agent-add-schema */
export declare const exampleAgentAddSchemaTs = "/**\n * Example Task: Agent harness \u2014 add a schema to a Sanity Studio project.\n *\n * This is a starter template for agent-harness evaluations. It tests whether\n * an autonomous coding agent can modify a real project in a sandboxed\n * environment using file system tools.\n *\n * Unlike literacy or knowledge-probe tasks that evaluate text responses,\n * agent-harness tasks evaluate *side-effects*: files created, code modified,\n * commands executed. The agent gets a working directory with real files and\n * tools (Bash, Read, Write, Edit, etc.) and is graded on what it produces.\n *\n * This task is a DRAFT \u2014 it won't run unless activated or explicitly targeted.\n * To activate: change status to \"active\" or remove the status field.\n *\n * @see https://github.com/sanity-labs/ai-literacy-framework/blob/main/docs/modes.md#agent-harness\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  // \u2500\u2500 Mode \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // \"agent-harness\" runs a real coding agent (Claude Agent SDK) with\n  // filesystem tools in an isolated sandbox. The agent can read, write,\n  // edit files and run shell commands \u2014 then assertions verify the results.\n  //\n  // Other modes: \"literacy\" (text Q&A), \"mcp-server\" (tool use),\n  //              \"knowledge-probe\" (baseline knowledge).\n  mode: \"agent-harness\",\n\n  id: \"example-agent-add-schema\",\n  title: \"Add a document schema to a Sanity Studio project\",\n  description:\n    \"Example \u2014 tests whether an agent can create a schema file and \" +\n    \"register it in an existing Sanity Studio project\",\n\n  // Area groups tasks for scoring. All agent-harness tasks in the same\n  // area are aggregated together in the score report.\n  area: \"studio\",\n\n  // \u2500\u2500 Sandbox \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // The sandbox isolates the agent's file operations from your real repo.\n  // Currently only \"tempdir\" is implemented (creates a temporary directory).\n  // The pipeline creates the sandbox dir at config-generation time, copies\n  // fixtures into it before the agent starts, and the agent's working_dir\n  // is set to the sandbox path.\n  //\n  // See: docs/modes.md#sandbox-lifecycle\n  sandbox: { type: \"tempdir\" },\n\n  // \u2500\u2500 Tools \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Tool presets control which Claude Agent SDK tools the agent can use:\n  //   \"coding\"      \u2192 Bash, Read, Write, Edit, Glob, Grep\n  //   \"full-access\" \u2192 coding + WebSearch, WebFetch, TodoRead, TodoWrite\n  //   \"read-only\"   \u2192 Read, Glob, Grep, WebSearch\n  //\n  // You can also mix presets with explicit tool names:\n  //   tools: [\"coding\", \"WebFetch\"]\n  tools: [\"coding\"],\n\n  // \u2500\u2500 Fixtures \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Fixtures are files or directories copied into the sandbox before the\n  // agent starts. Paths use the file:// prefix and resolve relative to\n  // the directory where you run the pipeline (typically your repo root).\n  //\n  // The agent sees these files in its working directory as if they were\n  // a real project. For example, \"file://apps/editor\" copies the entire\n  // editor Studio app into the sandbox root.\n  //\n  // If you don't have fixture projects, you can omit this field and the\n  // agent starts with an empty directory.\n  fixtures: [\"file://apps/editor\"],\n\n  // \u2500\u2500 Prompt \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // The task instructions sent to the agent. Be specific about expected\n  // file paths and patterns \u2014 the assertions check for exact paths.\n  prompt: {\n    text: `You have a Sanity Studio project with an existing article schema.\nAdd a new \"post\" document type with the following fields:\n1. title (string, required)\n2. slug (slug, sourced from title, required)\n3. author (string)\n4. publishedAt (datetime)\n5. body (array of block content)\n\nCreate the schema file at schemas/post.ts using defineType() and defineField().\nRegister it in schemas/index.ts alongside the existing article schema.`,\n  },\n\n  // \u2500\u2500 Assertions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Agent-harness assertions verify the sandbox state after the agent runs.\n  // They execute in a full Node.js context (not eval()) so they can use\n  // fs, child_process, etc. All file paths resolve relative to the sandbox.\n  //\n  // Available assertion types:\n  //   file-exists      \u2014 check a file was created\n  //   file-contains    \u2014 check a file contains a substring\n  //   command-succeeds \u2014 run a shell command (exit 0 = pass)\n  //   diff-matches     \u2014 check git diff contains a pattern\n  //   llm-rubric       \u2014 LLM grades the agent's text output\n  assertions: [\n    // Verify the agent created the new schema file\n    { type: \"file-exists\", value: \"schemas/post.ts\" },\n\n    // Verify it uses the modern Sanity schema API\n    {\n      type: \"file-contains\",\n      value: { path: \"schemas/post.ts\", content: \"defineType\" },\n    },\n    {\n      type: \"file-contains\",\n      value: { path: \"schemas/post.ts\", content: \"defineField\" },\n    },\n\n    // Verify the schema was registered in the barrel export\n    {\n      type: \"file-contains\",\n      value: { path: \"schemas/index.ts\", content: \"post\" },\n    },\n\n    // Verify the existing config is still intact\n    {\n      type: \"file-contains\",\n      value: { path: \"sanity.config.ts\", content: \"defineConfig\" },\n    },\n  ],\n\n  status: \"draft\",\n})\n";
/** Generated YAML for example-agent-add-schema (from parsed TS data) */
export declare const exampleAgentAddSchemaYaml = "- mode: agent-harness\n  id: example-agent-add-schema\n  title: Add a document schema to a Sanity Studio project\n  description: Example \u2014 tests whether an agent can create a schema file and register it in an existing Sanity Studio project\n  area: studio\n  sandbox:\n    type: tempdir\n  tools:\n    - coding\n  fixtures:\n    - file://apps/editor\n  prompt:\n    text: |-\n      You have a Sanity Studio project with an existing article schema.\n      Add a new \"post\" document type with the following fields:\n      1. title (string, required)\n      2. slug (slug, sourced from title, required)\n      3. author (string)\n      4. publishedAt (datetime)\n      5. body (array of block content)\n\n      Create the schema file at schemas/post.ts using defineType() and defineField().\n      Register it in schemas/index.ts alongside the existing article schema.\n  assertions:\n    - type: file-exists\n      value: schemas/post.ts\n    - type: file-contains\n      value:\n        path: schemas/post.ts\n        content: defineType\n    - type: file-contains\n      value:\n        path: schemas/post.ts\n        content: defineField\n    - type: file-contains\n      value:\n        path: schemas/index.ts\n        content: post\n    - type: file-contains\n      value:\n        path: sanity.config.ts\n        content: defineConfig\n  status: draft\n";
/** Parsed task data for example-groq-blog-listing (JSON-safe) */
export declare const exampleGroqBlogListingData: readonly [{
    readonly mode: "literacy";
    readonly id: "example-groq-blog-listing";
    readonly title: "Blog listing with GROQ queries";
    readonly description: "Example — tests GROQ blog listing implementation";
    readonly area: "groq";
    readonly context: {
        readonly docs: readonly [{
            readonly slug: "groq-introduction";
            readonly reason: "Core GROQ syntax and query language reference";
        }, {
            readonly slug: "how-queries-work";
            readonly reason: "Query execution model and best practices";
        }];
    };
    readonly docCoverage: true;
    readonly referenceSolution: "canonical/example-groq-blog-listing.ts";
    readonly prompt: {
        readonly text: "Create a Next.js page component that lists blog posts from Sanity\nusing GROQ. The page should display the title, slug, and published\ndate for each post, sorted by most recent first. Use the Sanity\nclient to fetch data.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "uses-groq-template-literal";
            readonly text: "Uses the groq tagged template literal";
        }, {
            readonly id: "fetches-blog-fields";
            readonly text: "Fetches blog posts with title, slug, and publishedAt fields";
        }, {
            readonly id: "orders-by-published-at";
            readonly text: "Orders results by publishedAt in descending order";
        }];
    }, {
        readonly type: "llm-rubric";
        readonly template: "code-correctness";
        readonly criteria: readonly [{
            readonly id: "uses-create-client";
            readonly text: "Uses createClient from @sanity/client or next-sanity";
        }, {
            readonly id: "exports-nextjs-page";
            readonly text: "Exports a valid Next.js page component";
        }];
    }];
    readonly baseline: {
        readonly enabled: true;
        readonly rubric: "full";
    };
    readonly status: "draft";
}];
/** TypeScript task template for example-groq-blog-listing */
export declare const exampleGroqBlogListingTs = "/**\n * Example Task: Blog listing with GROQ queries.\n *\n * This is a starter template \u2014 edit it for your own documentation.\n * Each task evaluates whether an AI coding agent can implement a feature\n * using your docs as context. Delete this file or replace it entirely.\n *\n * This example task ships as a DRAFT so it does not run in production\n * evaluations automatically. To activate it, change status to \"active\"\n * or remove the status field entirely (defaults to active).\n *\n * Full field reference:\n *   https://github.com/sanity-labs/ai-literacy-framework/blob/main/docs/contributing-tasks.md\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  // \u2500\u2500 Mode \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // \"literacy\" tests whether AI coding tools can implement features\n  // using your docs as context. Other modes: \"mcp-server\",\n  // \"knowledge-probe\", \"agent-harness\", \"custom\".\n  mode: \"literacy\",\n\n  // \u2500\u2500 Identity \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Unique identifier \u2014 lowercase alphanumeric with hyphens.\n  // Must be unique across all task files in .ailf/tasks/.\n  id: \"example-groq-blog-listing\",\n  title: \"Blog listing with GROQ queries\",\n  description: \"Example \u2014 tests GROQ blog listing implementation\",\n\n  // Feature area this task belongs to. Tasks with the same area are\n  // grouped together in score summaries.\n  area: \"groq\",\n\n  // \u2500\u2500 Documentation context \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Canonical doc references for this task. The pipeline fetches these\n  // from Sanity and injects them into the prompt for baseline evaluation.\n  //\n  // This example uses slug-based references \u2014 the simplest form.\n  // See the other example tasks for path, id, and perspective references.\n  context: {\n    docs: [\n      {\n        slug: \"groq-introduction\",\n        reason: \"Core GROQ syntax and query language reference\",\n      },\n      {\n        slug: \"how-queries-work\",\n        reason: \"Query execution model and best practices\",\n      },\n    ],\n  },\n\n  // When true, the pipeline auto-generates an additional rubric that\n  // checks whether the LLM's response actually used the provided docs.\n  docCoverage: true,\n\n  // Path to a gold-standard implementation, relative to canonical/.\n  // The grader uses this as a reference when scoring code correctness.\n  referenceSolution: \"canonical/example-groq-blog-listing.ts\",\n\n  // \u2500\u2500 Prompt \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // prompt.text \u2014 the implementation prompt given to the LLM.\n  // Write this as if you're asking a developer to build the feature.\n  // Be specific about requirements so the grader can evaluate clearly.\n  prompt: {\n    text: `Create a Next.js page component that lists blog posts from Sanity\nusing GROQ. The page should display the title, slug, and published\ndate for each post, sorted by most recent first. Use the Sanity\nclient to fetch data.`,\n  },\n\n  // \u2500\u2500 Assertions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Grading assertions \u2014 how the LLM's response is scored.\n  //\n  // \"llm-rubric\" assertions use a grader LLM to score against criteria.\n  // The \"template\" references a rubric template (e.g. task-completion).\n  //\n  // Available templates:\n  //   task-completion   \u2014 did the LLM implement the feature? (weight: 0.50)\n  //   code-correctness  \u2014 is the code idiomatic and correct? (weight: 0.25)\n  //\n  // You can also use value-based assertions:\n  //   { type: \"contains\", value: \"client.fetch\" }\n  //   { type: \"contains-any\", value: [\"createClient\", \"sanityClient\"] }\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"uses-groq-template-literal\",\n          text: \"Uses the groq tagged template literal\",\n        },\n        {\n          id: \"fetches-blog-fields\",\n          text: \"Fetches blog posts with title, slug, and publishedAt fields\",\n        },\n        {\n          id: \"orders-by-published-at\",\n          text: \"Orders results by publishedAt in descending order\",\n        },\n      ],\n    },\n    {\n      type: \"llm-rubric\",\n      template: \"code-correctness\",\n      criteria: [\n        {\n          id: \"uses-create-client\",\n          text: \"Uses createClient from @sanity/client or next-sanity\",\n        },\n        {\n          id: \"exports-nextjs-page\",\n          text: \"Exports a valid Next.js page component\",\n        },\n      ],\n    },\n  ],\n\n  // \u2500\u2500 Baseline variant \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  //   enabled \u2014 set to false to skip this task entirely\n  //   rubric  \u2014 \"full\" (default), \"abbreviated\" (faster), or \"none\"\n  baseline: {\n    enabled: true,\n    rubric: \"full\",\n  },\n\n  // Example tasks ship as drafts so they don't run in production evals.\n  // Change to \"active\" (or remove this field) to activate.\n  status: \"draft\",\n})\n";
/** Generated YAML for example-groq-blog-listing (from parsed TS data) */
export declare const exampleGroqBlogListingYaml = "- mode: literacy\n  id: example-groq-blog-listing\n  title: Blog listing with GROQ queries\n  description: Example \u2014 tests GROQ blog listing implementation\n  area: groq\n  context:\n    docs:\n      - slug: groq-introduction\n        reason: Core GROQ syntax and query language reference\n      - slug: how-queries-work\n        reason: Query execution model and best practices\n  docCoverage: true\n  referenceSolution: canonical/example-groq-blog-listing.ts\n  prompt:\n    text: |-\n      Create a Next.js page component that lists blog posts from Sanity\n      using GROQ. The page should display the title, slug, and published\n      date for each post, sorted by most recent first. Use the Sanity\n      client to fetch data.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: uses-groq-template-literal\n          text: Uses the groq tagged template literal\n        - id: fetches-blog-fields\n          text: Fetches blog posts with title, slug, and publishedAt fields\n        - id: orders-by-published-at\n          text: Orders results by publishedAt in descending order\n    - type: llm-rubric\n      template: code-correctness\n      criteria:\n        - id: uses-create-client\n          text: Uses createClient from @sanity/client or next-sanity\n        - id: exports-nextjs-page\n          text: Exports a valid Next.js page component\n  baseline:\n    enabled: true\n    rubric: full\n  status: draft\n";
/** Parsed task data for example-id-based-ref (JSON-safe) */
export declare const exampleIdBasedRefData: readonly [{
    readonly mode: "literacy";
    readonly id: "example-id-based-ref";
    readonly title: "GROQ feature support (ID-based doc references)";
    readonly description: "Example — demonstrates ID-based canonical doc references";
    readonly area: "groq";
    readonly context: {
        readonly docs: readonly [{
            readonly id: "0ba88f1b-d1a7-418a-9267-2e343d01886a";
            readonly slug: "groq-feature-support-by-context";
            readonly reason: "GROQ feature support across different Sanity contexts";
        }, {
            readonly id: "5b9c2863-ef01-4565-af8e-ee54e081ee74";
            readonly slug: "custom-groq-functions";
            readonly reason: "Custom GROQ functions and pipelines";
        }];
    };
    readonly docCoverage: true;
    readonly prompt: {
        readonly text: "Explain how GROQ is used across different Sanity contexts.\nCover the following:\n1. Which GROQ features are available in each context (API queries,\n   webhooks, custom functions, access control)\n2. How to create and use custom GROQ functions\n3. Any differences in GROQ support between contexts\nProvide examples demonstrating context-specific GROQ patterns.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "groq-availability";
            readonly text: "Explains GROQ availability across different Sanity contexts";
        }, {
            readonly id: "custom-groq-functions";
            readonly text: "Describes custom GROQ function creation and usage";
        }, {
            readonly id: "groq-context-differences";
            readonly text: "Notes differences in GROQ support between contexts";
        }];
    }, {
        readonly type: "llm-rubric";
        readonly template: "code-correctness";
        readonly criteria: readonly [{
            readonly id: "valid-groq-syntax";
            readonly text: "GROQ examples use valid syntax";
        }, {
            readonly id: "correct-function-api";
            readonly text: "Custom function examples follow the correct API pattern";
        }];
    }];
    readonly baseline: {
        readonly enabled: true;
        readonly rubric: "full";
    };
    readonly status: "draft";
}];
/** TypeScript task template for example-id-based-ref */
export declare const exampleIdBasedRefTs = "/**\n * Example Task: Document ID-based canonical doc references.\n *\n * Demonstrates using `id` to reference canonical documentation by\n * Sanity document `_id`. This is useful for:\n *   - Draft documents that don't have a stable slug yet\n *   - Programmatic references from imports or migrations\n *   - Documents where you know the _id but not the slug\n *\n * The `id` ref type can also carry optional `slug` and `path` fields\n * as human-readable annotations \u2014 these are NOT used for resolution,\n * only for display in logs and reports.\n *\n * This example task ships as a DRAFT so it does not run in production\n * evaluations automatically. To activate it, change status to \"active\"\n * or remove the status field entirely (defaults to active).\n *\n * @see docs/design-docs/canonical-doc-resolution.md\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"literacy\",\n  id: \"example-id-based-ref\",\n  title: \"GROQ feature support (ID-based doc references)\",\n  description: \"Example \u2014 demonstrates ID-based canonical doc references\",\n\n  area: \"groq\",\n\n  // ID-based canonical doc references.\n  //\n  // Use the Sanity document _id to reference articles directly.\n  // Optional slug/path annotations help humans reading the file\n  // but are NOT used for resolution \u2014 only the `id` field matters.\n  //\n  // These IDs reference real articles in the Sanity docs (next dataset):\n  //   0ba88f1b... = \"GROQ feature support across Sanity\"\n  //   5b9c2863... = \"Custom GROQ functions\"\n  context: {\n    docs: [\n      {\n        id: \"0ba88f1b-d1a7-418a-9267-2e343d01886a\",\n        slug: \"groq-feature-support-by-context\", // annotation only\n        reason: \"GROQ feature support across different Sanity contexts\",\n      },\n      {\n        id: \"5b9c2863-ef01-4565-af8e-ee54e081ee74\",\n        slug: \"custom-groq-functions\", // annotation only\n        reason: \"Custom GROQ functions and pipelines\",\n      },\n    ],\n  },\n\n  docCoverage: true,\n\n  prompt: {\n    text: `Explain how GROQ is used across different Sanity contexts.\nCover the following:\n1. Which GROQ features are available in each context (API queries,\n   webhooks, custom functions, access control)\n2. How to create and use custom GROQ functions\n3. Any differences in GROQ support between contexts\nProvide examples demonstrating context-specific GROQ patterns.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"groq-availability\",\n          text: \"Explains GROQ availability across different Sanity contexts\",\n        },\n        {\n          id: \"custom-groq-functions\",\n          text: \"Describes custom GROQ function creation and usage\",\n        },\n        {\n          id: \"groq-context-differences\",\n          text: \"Notes differences in GROQ support between contexts\",\n        },\n      ],\n    },\n    {\n      type: \"llm-rubric\",\n      template: \"code-correctness\",\n      criteria: [\n        { id: \"valid-groq-syntax\", text: \"GROQ examples use valid syntax\" },\n        {\n          id: \"correct-function-api\",\n          text: \"Custom function examples follow the correct API pattern\",\n        },\n      ],\n    },\n  ],\n\n  baseline: { enabled: true, rubric: \"full\" },\n  status: \"draft\",\n})\n";
/** Generated YAML for example-id-based-ref (from parsed TS data) */
export declare const exampleIdBasedRefYaml = "- mode: literacy\n  id: example-id-based-ref\n  title: GROQ feature support (ID-based doc references)\n  description: Example \u2014 demonstrates ID-based canonical doc references\n  area: groq\n  context:\n    docs:\n      - id: 0ba88f1b-d1a7-418a-9267-2e343d01886a\n        slug: groq-feature-support-by-context\n        reason: GROQ feature support across different Sanity contexts\n      - id: 5b9c2863-ef01-4565-af8e-ee54e081ee74\n        slug: custom-groq-functions\n        reason: Custom GROQ functions and pipelines\n  docCoverage: true\n  prompt:\n    text: |-\n      Explain how GROQ is used across different Sanity contexts.\n      Cover the following:\n      1. Which GROQ features are available in each context (API queries,\n         webhooks, custom functions, access control)\n      2. How to create and use custom GROQ functions\n      3. Any differences in GROQ support between contexts\n      Provide examples demonstrating context-specific GROQ patterns.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: groq-availability\n          text: Explains GROQ availability across different Sanity contexts\n        - id: custom-groq-functions\n          text: Describes custom GROQ function creation and usage\n        - id: groq-context-differences\n          text: Notes differences in GROQ support between contexts\n    - type: llm-rubric\n      template: code-correctness\n      criteria:\n        - id: valid-groq-syntax\n          text: GROQ examples use valid syntax\n        - id: correct-function-api\n          text: Custom function examples follow the correct API pattern\n  baseline:\n    enabled: true\n    rubric: full\n  status: draft\n";
/** Parsed task data for example-knowledge-probe (JSON-safe) */
export declare const exampleKnowledgeProbeData: readonly [{
    readonly mode: "knowledge-probe";
    readonly id: "example-knowledge-probe";
    readonly title: "Model knowledge of GROQ syntax";
    readonly description: "Example — probes baseline model knowledge (draft)";
    readonly area: "groq";
    readonly prompt: {
        readonly text: "Explain the GROQ query language used by Sanity. Cover:\n1. Basic query syntax and projections\n2. How to filter and sort results\n3. Common patterns for fetching related documents\nProvide working code examples.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "understands-groq-syntax";
            readonly text: "Demonstrates understanding of GROQ query syntax";
        }, {
            readonly id: "filter-projection-patterns";
            readonly text: "Shows filtering and projection patterns";
        }, {
            readonly id: "valid-groq-examples";
            readonly text: "Code examples use valid GROQ syntax";
        }];
    }];
    readonly status: "draft";
}];
/** TypeScript task template for example-knowledge-probe */
export declare const exampleKnowledgeProbeTs = "/**\n * Example Task: Knowledge probe baseline (DRAFT).\n *\n * Tests what the model knows about a topic without providing documentation.\n * Used to establish a baseline for comparison with literacy evaluations.\n * This task is a DRAFT \u2014 it won't run unless activated or explicitly targeted.\n *\n * To activate: change status to \"active\" or remove the status field.\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"knowledge-probe\",\n  id: \"example-knowledge-probe\",\n  title: \"Model knowledge of GROQ syntax\",\n  description: \"Example \u2014 probes baseline model knowledge (draft)\",\n  area: \"groq\",\n\n  prompt: {\n    text: `Explain the GROQ query language used by Sanity. Cover:\n1. Basic query syntax and projections\n2. How to filter and sort results\n3. Common patterns for fetching related documents\nProvide working code examples.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"understands-groq-syntax\",\n          text: \"Demonstrates understanding of GROQ query syntax\",\n        },\n        {\n          id: \"filter-projection-patterns\",\n          text: \"Shows filtering and projection patterns\",\n        },\n        {\n          id: \"valid-groq-examples\",\n          text: \"Code examples use valid GROQ syntax\",\n        },\n      ],\n    },\n  ],\n\n  status: \"draft\",\n})\n";
/** Generated YAML for example-knowledge-probe (from parsed TS data) */
export declare const exampleKnowledgeProbeYaml = "- mode: knowledge-probe\n  id: example-knowledge-probe\n  title: Model knowledge of GROQ syntax\n  description: Example \u2014 probes baseline model knowledge (draft)\n  area: groq\n  prompt:\n    text: |-\n      Explain the GROQ query language used by Sanity. Cover:\n      1. Basic query syntax and projections\n      2. How to filter and sort results\n      3. Common patterns for fetching related documents\n      Provide working code examples.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: understands-groq-syntax\n          text: Demonstrates understanding of GROQ query syntax\n        - id: filter-projection-patterns\n          text: Shows filtering and projection patterns\n        - id: valid-groq-examples\n          text: Code examples use valid GROQ syntax\n  status: draft\n";
/** Parsed task data for example-mcp-tool-usage (JSON-safe) */
export declare const exampleMcpToolUsageData: readonly [{
    readonly mode: "mcp-server";
    readonly id: "example-mcp-tool-usage";
    readonly title: "MCP tool discovery and invocation";
    readonly description: "Example — tests MCP server tool-use (draft)";
    readonly area: "mcp";
    readonly serverConfig: {
        readonly transport: "streamable-http";
        readonly url: "https://your-mcp-server.example.com";
        readonly headers: {
            readonly Authorization: "Bearer {{env.MCP_AUTH_TOKEN}}";
        };
    };
    readonly prompt: {
        readonly text: "Use the available MCP tools to complete the task.\nReplace this prompt with instructions specific to your MCP server.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "mcp-output-correctness";
        readonly criteria: readonly [{
            readonly id: "discovers-correct-tool";
            readonly text: "Correctly discovers and selects the appropriate tool";
        }, {
            readonly id: "passes-valid-arguments";
            readonly text: "Passes valid arguments to the tool";
        }, {
            readonly id: "interprets-response";
            readonly text: "Interprets the tool response coherently";
        }];
    }];
    readonly status: "draft";
}];
/** TypeScript task template for example-mcp-tool-usage */
export declare const exampleMcpToolUsageTs = "/**\n * Example Task: MCP Server tool-use evaluation (DRAFT).\n *\n * Tests whether an LLM can correctly discover and invoke tools from\n * an MCP server. Replace the placeholder serverConfig with your own\n * MCP server's URL and authentication details.\n *\n * Transports:\n *   - \"streamable-http\" / \"sse\" \u2014 remote servers (set url + optional headers)\n *   - \"stdio\" \u2014 local process (set command instead of url)\n *\n * Authentication:\n *   - `headers` \u2014 send arbitrary HTTP headers (e.g., Authorization)\n *   - `auth`    \u2014 structured auth config (bearer, basic, api_key, oauth)\n *   Values support {{env.VAR}} syntax so secrets stay out of source control.\n *\n * This task is a DRAFT \u2014 it won't run unless activated or explicitly targeted.\n * To activate: change status to \"active\" or remove the status field.\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"mcp-server\",\n  id: \"example-mcp-tool-usage\",\n  title: \"MCP tool discovery and invocation\",\n  description: \"Example \u2014 tests MCP server tool-use (draft)\",\n  area: \"mcp\",\n\n  // \u2500\u2500 Server configuration \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Replace the URL and headers below with your MCP server's details.\n  //\n  // For a local stdio server, use:\n  //   transport: \"stdio\",\n  //   command: \"node dist/my-mcp-server.js\",\n  serverConfig: {\n    transport: \"streamable-http\",\n    url: \"https://your-mcp-server.example.com\",\n    headers: {\n      Authorization: \"Bearer {{env.MCP_AUTH_TOKEN}}\",\n    },\n  },\n\n  // \u2500\u2500 Capabilities \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  // Restrict which MCP tools the model can call. If omitted, all\n  // tools discovered from the server are available.\n  // capabilities: [\"tool_a\", \"tool_b\"],\n\n  prompt: {\n    text: `Use the available MCP tools to complete the task.\nReplace this prompt with instructions specific to your MCP server.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"mcp-output-correctness\",\n      criteria: [\n        {\n          id: \"discovers-correct-tool\",\n          text: \"Correctly discovers and selects the appropriate tool\",\n        },\n        {\n          id: \"passes-valid-arguments\",\n          text: \"Passes valid arguments to the tool\",\n        },\n        {\n          id: \"interprets-response\",\n          text: \"Interprets the tool response coherently\",\n        },\n      ],\n    },\n  ],\n\n  status: \"draft\",\n})\n";
/** Generated YAML for example-mcp-tool-usage (from parsed TS data) */
export declare const exampleMcpToolUsageYaml = "- mode: mcp-server\n  id: example-mcp-tool-usage\n  title: MCP tool discovery and invocation\n  description: Example \u2014 tests MCP server tool-use (draft)\n  area: mcp\n  serverConfig:\n    transport: streamable-http\n    url: https://your-mcp-server.example.com\n    headers:\n      Authorization: Bearer {{env.MCP_AUTH_TOKEN}}\n  prompt:\n    text: |-\n      Use the available MCP tools to complete the task.\n      Replace this prompt with instructions specific to your MCP server.\n  assertions:\n    - type: llm-rubric\n      template: mcp-output-correctness\n      criteria:\n        - id: discovers-correct-tool\n          text: Correctly discovers and selects the appropriate tool\n        - id: passes-valid-arguments\n          text: Passes valid arguments to the tool\n        - id: interprets-response\n          text: Interprets the tool response coherently\n  status: draft\n";
/** Parsed task data for example-path-based-ref (JSON-safe) */
export declare const examplePathBasedRefData: readonly [{
    readonly mode: "literacy";
    readonly id: "example-path-based-ref";
    readonly title: "GROQ mutations (path-based doc references)";
    readonly description: "Example — demonstrates path-based canonical doc references";
    readonly area: "groq";
    readonly context: {
        readonly docs: readonly [{
            readonly path: "content-lake/mutations-introduction";
            readonly reason: "Introduction to document mutations in the Content Lake";
        }, {
            readonly path: "content-lake/documents";
            readonly reason: "Document structure and types (Content Lake, not CLI reference)";
        }];
    };
    readonly docCoverage: true;
    readonly prompt: {
        readonly text: "Explain how to create, update, and delete documents in Sanity's\nContent Lake using mutations. Cover:\n1. The different mutation types (create, createOrReplace, patch, delete)\n2. Document structure and required fields (_id, _type)\n3. How to use patch operations to update specific fields\n4. Best practices for mutation patterns\nProvide working code examples using @sanity/client.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "explains-mutations";
            readonly text: "Explains create, createOrReplace, patch, and delete mutations";
        }, {
            readonly id: "required-document-fields";
            readonly text: "Describes required document fields (_id, _type)";
        }, {
            readonly id: "patch-operations";
            readonly text: "Shows patch operations for field-level updates";
        }, {
            readonly id: "practical-code-examples";
            readonly text: "Includes practical code examples";
        }];
    }, {
        readonly type: "llm-rubric";
        readonly template: "code-correctness";
        readonly criteria: readonly [{
            readonly id: "correct-mutation-api";
            readonly text: "Uses correct @sanity/client mutation API";
        }, {
            readonly id: "valid-patch-syntax";
            readonly text: "Patch operations use valid set/unset/inc syntax";
        }];
    }];
    readonly baseline: {
        readonly enabled: true;
        readonly rubric: "full";
    };
    readonly status: "draft";
}];
/** TypeScript task template for example-path-based-ref */
export declare const examplePathBasedRefTs = "/**\n * Example Task: Path-based canonical doc references.\n *\n * Demonstrates using `path` to reference canonical documentation.\n * Paths are the preferred reference type because they uniquely identify\n * an article across sections (unlike slugs, which can collide).\n *\n * Path format:\n *   - Simple:    \"webhooks\"                \u2192 resolves by slug lookup\n *   - Sectioned: \"content-lake/webhooks\"   \u2192 disambiguates by section + slug\n *\n * This example demonstrates why paths matter: the slug \"documents\"\n * exists in both the \"content-lake\" and \"cli-reference\" sections.\n * Using \"content-lake/documents\" ensures we get the right one.\n *\n * This example task ships as a DRAFT so it does not run in production\n * evaluations automatically. To activate it, change status to \"active\"\n * or remove the status field entirely (defaults to active).\n *\n * @see docs/design-docs/canonical-doc-resolution.md\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"literacy\",\n  id: \"example-path-based-ref\",\n  title: \"GROQ mutations (path-based doc references)\",\n  description: \"Example \u2014 demonstrates path-based canonical doc references\",\n\n  area: \"groq\",\n\n  // Path-based canonical doc references.\n  //\n  // Use \"section/slug\" format to uniquely identify articles:\n  //   - \"content-lake/mutations-introduction\" \u2192 the mutations article\n  //   - \"content-lake/documents\" \u2192 the documents article in Content Lake\n  //     (not the CLI \"documents\" article in cli-reference section)\n  //\n  // The \"documents\" slug exists in two sections \u2014 this is exactly why\n  // path-based references are preferred over slug-based references.\n  context: {\n    docs: [\n      {\n        path: \"content-lake/mutations-introduction\",\n        reason: \"Introduction to document mutations in the Content Lake\",\n      },\n      {\n        path: \"content-lake/documents\",\n        reason:\n          \"Document structure and types (Content Lake, not CLI reference)\",\n      },\n    ],\n  },\n\n  docCoverage: true,\n\n  prompt: {\n    text: `Explain how to create, update, and delete documents in Sanity's\nContent Lake using mutations. Cover:\n1. The different mutation types (create, createOrReplace, patch, delete)\n2. Document structure and required fields (_id, _type)\n3. How to use patch operations to update specific fields\n4. Best practices for mutation patterns\nProvide working code examples using @sanity/client.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"explains-mutations\",\n          text: \"Explains create, createOrReplace, patch, and delete mutations\",\n        },\n        {\n          id: \"required-document-fields\",\n          text: \"Describes required document fields (_id, _type)\",\n        },\n        {\n          id: \"patch-operations\",\n          text: \"Shows patch operations for field-level updates\",\n        },\n        {\n          id: \"practical-code-examples\",\n          text: \"Includes practical code examples\",\n        },\n      ],\n    },\n    {\n      type: \"llm-rubric\",\n      template: \"code-correctness\",\n      criteria: [\n        {\n          id: \"correct-mutation-api\",\n          text: \"Uses correct @sanity/client mutation API\",\n        },\n        {\n          id: \"valid-patch-syntax\",\n          text: \"Patch operations use valid set/unset/inc syntax\",\n        },\n      ],\n    },\n  ],\n\n  baseline: { enabled: true, rubric: \"full\" },\n  status: \"draft\",\n})\n";
/** Generated YAML for example-path-based-ref (from parsed TS data) */
export declare const examplePathBasedRefYaml = "- mode: literacy\n  id: example-path-based-ref\n  title: GROQ mutations (path-based doc references)\n  description: Example \u2014 demonstrates path-based canonical doc references\n  area: groq\n  context:\n    docs:\n      - path: content-lake/mutations-introduction\n        reason: Introduction to document mutations in the Content Lake\n      - path: content-lake/documents\n        reason: Document structure and types (Content Lake, not CLI reference)\n  docCoverage: true\n  prompt:\n    text: |-\n      Explain how to create, update, and delete documents in Sanity's\n      Content Lake using mutations. Cover:\n      1. The different mutation types (create, createOrReplace, patch, delete)\n      2. Document structure and required fields (_id, _type)\n      3. How to use patch operations to update specific fields\n      4. Best practices for mutation patterns\n      Provide working code examples using @sanity/client.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: explains-mutations\n          text: Explains create, createOrReplace, patch, and delete mutations\n        - id: required-document-fields\n          text: Describes required document fields (_id, _type)\n        - id: patch-operations\n          text: Shows patch operations for field-level updates\n        - id: practical-code-examples\n          text: Includes practical code examples\n    - type: llm-rubric\n      template: code-correctness\n      criteria:\n        - id: correct-mutation-api\n          text: Uses correct @sanity/client mutation API\n        - id: valid-patch-syntax\n          text: Patch operations use valid set/unset/inc syntax\n  baseline:\n    enabled: true\n    rubric: full\n  status: draft\n";
/** Parsed task data for example-perspective-ref (JSON-safe) */
export declare const examplePerspectiveRefData: readonly [{
    readonly mode: "literacy";
    readonly id: "example-perspective-ref";
    readonly title: "GROQ features from content release (perspective-based doc references)";
    readonly description: "Example — demonstrates perspective-based canonical doc references";
    readonly area: "groq";
    readonly context: {
        readonly docs: readonly [{
            readonly perspective: "rE9TSJvR4";
            readonly reason: "All GROQ documentation updates in the test content release";
        }, {
            readonly slug: "groq-data-types";
            readonly reason: "GROQ data type reference (published, stable)";
        }];
    };
    readonly docCoverage: true;
    readonly prompt: {
        readonly text: "Using GROQ, demonstrate advanced query patterns including:\n1. Joining data across document types using references\n2. Filtering webhook payloads with GROQ projections\n3. Using the query cheat sheet patterns for common operations\n4. Working with different GROQ data types in filters\nProvide working GROQ query examples for each pattern.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "groq-join-syntax";
            readonly text: "Demonstrates GROQ join syntax for cross-document queries";
        }, {
            readonly id: "groq-filter-patterns";
            readonly text: "Shows GROQ filter patterns for webhook configuration";
        }, {
            readonly id: "practical-query-examples";
            readonly text: "Includes practical query examples from cheat sheet patterns";
        }];
    }, {
        readonly type: "llm-rubric";
        readonly template: "code-correctness";
        readonly criteria: readonly [{
            readonly id: "valid-groq-syntax";
            readonly text: "All GROQ queries use valid syntax";
        }, {
            readonly id: "correct-dereference-operator";
            readonly text: "Reference joins use correct dereference operator (->)";
        }];
    }];
    readonly baseline: {
        readonly enabled: true;
        readonly rubric: "full";
    };
    readonly status: "draft";
}];
/** TypeScript task template for example-perspective-ref */
export declare const examplePerspectiveRefTs = "/**\n * Example Task: Perspective / content release doc references.\n *\n * Demonstrates using `perspective` to reference all documentation\n * articles within a content release. This is the key capability for\n * evaluating NEW feature documentation before it's published.\n *\n * How it works:\n *   - A perspective ref is one-to-many: the doc fetcher queries the\n *     named release and expands it to ALL articles versioned within it.\n *   - Downstream consumers see the same flat DocContext[] regardless\n *     of how docs were resolved.\n *   - When the release is published, the perspective entry becomes a\n *     no-op (articles are now in published). Migrate to explicit path\n *     or slug refs at your convenience.\n *\n * This example task ships as a DRAFT so it does not run in production\n * evaluations automatically. To activate it, change status to \"active\"\n * or remove the status field entirely (defaults to active).\n *\n * @see docs/design-docs/canonical-doc-resolution.md\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"literacy\",\n  id: \"example-perspective-ref\",\n  title:\n    \"GROQ features from content release (perspective-based doc references)\",\n  description:\n    \"Example \u2014 demonstrates perspective-based canonical doc references\",\n\n  area: \"groq\",\n\n  // Perspective-based canonical doc reference.\n  //\n  // The perspective ID references a content release in the Sanity\n  // Content Lake. At evaluation time, the doc fetcher auto-discovers\n  // all articles versioned in this release and includes them as\n  // canonical documentation context.\n  //\n  // Release rE9TSJvR4 contains:\n  //   - \"GROQ-powered webhooks\" (webhooks)\n  //   - \"Query Cheat Sheet - GROQ\" (query-cheat-sheet)\n  //   - \"GROQ joins\" (groq-joins)\n  //\n  // You can combine perspective refs with explicit slug/path/id refs\n  // to include foundational published docs alongside release content.\n  // Here we add groq-data-types as a complementary published reference.\n  context: {\n    docs: [\n      {\n        perspective: \"rE9TSJvR4\",\n        reason: \"All GROQ documentation updates in the test content release\",\n      },\n      {\n        slug: \"groq-data-types\",\n        reason: \"GROQ data type reference (published, stable)\",\n      },\n    ],\n  },\n\n  docCoverage: true,\n\n  prompt: {\n    text: `Using GROQ, demonstrate advanced query patterns including:\n1. Joining data across document types using references\n2. Filtering webhook payloads with GROQ projections\n3. Using the query cheat sheet patterns for common operations\n4. Working with different GROQ data types in filters\nProvide working GROQ query examples for each pattern.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"groq-join-syntax\",\n          text: \"Demonstrates GROQ join syntax for cross-document queries\",\n        },\n        {\n          id: \"groq-filter-patterns\",\n          text: \"Shows GROQ filter patterns for webhook configuration\",\n        },\n        {\n          id: \"practical-query-examples\",\n          text: \"Includes practical query examples from cheat sheet patterns\",\n        },\n      ],\n    },\n    {\n      type: \"llm-rubric\",\n      template: \"code-correctness\",\n      criteria: [\n        { id: \"valid-groq-syntax\", text: \"All GROQ queries use valid syntax\" },\n        {\n          id: \"correct-dereference-operator\",\n          text: \"Reference joins use correct dereference operator (->)\",\n        },\n      ],\n    },\n  ],\n\n  baseline: { enabled: true, rubric: \"full\" },\n  status: \"draft\",\n})\n";
/** Generated YAML for example-perspective-ref (from parsed TS data) */
export declare const examplePerspectiveRefYaml = "- mode: literacy\n  id: example-perspective-ref\n  title: GROQ features from content release (perspective-based doc references)\n  description: Example \u2014 demonstrates perspective-based canonical doc references\n  area: groq\n  context:\n    docs:\n      - perspective: rE9TSJvR4\n        reason: All GROQ documentation updates in the test content release\n      - slug: groq-data-types\n        reason: GROQ data type reference (published, stable)\n  docCoverage: true\n  prompt:\n    text: |-\n      Using GROQ, demonstrate advanced query patterns including:\n      1. Joining data across document types using references\n      2. Filtering webhook payloads with GROQ projections\n      3. Using the query cheat sheet patterns for common operations\n      4. Working with different GROQ data types in filters\n      Provide working GROQ query examples for each pattern.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: groq-join-syntax\n          text: Demonstrates GROQ join syntax for cross-document queries\n        - id: groq-filter-patterns\n          text: Shows GROQ filter patterns for webhook configuration\n        - id: practical-query-examples\n          text: Includes practical query examples from cheat sheet patterns\n    - type: llm-rubric\n      template: code-correctness\n      criteria:\n        - id: valid-groq-syntax\n          text: All GROQ queries use valid syntax\n        - id: correct-dereference-operator\n          text: Reference joins use correct dereference operator (->)\n  baseline:\n    enabled: true\n    rubric: full\n  status: draft\n";
/** Parsed task data for example-studio-custom-input (JSON-safe) */
export declare const exampleStudioCustomInputData: readonly [{
    readonly mode: "literacy";
    readonly id: "example-studio-custom-input";
    readonly title: "Custom input component in Sanity Studio";
    readonly description: "Example — tests Studio custom input implementation";
    readonly area: "studio";
    readonly context: {
        readonly docs: readonly [{
            readonly slug: "custom-input-widgets";
            readonly reason: "Guide for building custom form inputs in Sanity Studio";
        }, {
            readonly slug: "form-components";
            readonly reason: "Form component API and customization patterns";
        }];
    };
    readonly docCoverage: true;
    readonly referenceSolution: "canonical/example-studio-custom-input.ts";
    readonly prompt: {
        readonly text: "Build a custom string input component for Sanity Studio that shows\na character count below the input field. The component should accept\na maxLength option from the field schema and display a warning when\nthe text exceeds the limit.";
    };
    readonly assertions: readonly [{
        readonly type: "llm-rubric";
        readonly template: "task-completion";
        readonly criteria: readonly [{
            readonly id: "renders-text-input";
            readonly text: "Implements a React component that renders a text input";
        }, {
            readonly id: "displays-character-count";
            readonly text: "Displays a live character count";
        }, {
            readonly id: "reads-max-length";
            readonly text: "Reads maxLength from schema options";
        }, {
            readonly id: "shows-visual-warning";
            readonly text: "Shows a visual warning when limit is exceeded";
        }];
    }, {
        readonly type: "llm-rubric";
        readonly template: "code-correctness";
        readonly criteria: readonly [{
            readonly id: "uses-sanity-ui";
            readonly text: "Uses the Sanity UI library for styling";
        }, {
            readonly id: "calls-onchange-patches";
            readonly text: "Calls onChange with patch operations";
        }];
    }];
    readonly baseline: {
        readonly enabled: true;
        readonly rubric: "full";
    };
    readonly status: "draft";
}];
/** TypeScript task template for example-studio-custom-input */
export declare const exampleStudioCustomInputTs = "/**\n * Example Task: Custom input component in Sanity Studio.\n *\n * This is a starter template \u2014 edit it for your own documentation.\n * Delete this file or replace it with your own tasks.\n *\n * This example task ships as a DRAFT so it does not run in production\n * evaluations automatically. To activate it, change status to \"active\"\n * or remove the status field entirely (defaults to active).\n */\n\nimport { defineTask } from \"@sanity/ailf\"\n\nexport default defineTask({\n  mode: \"literacy\",\n  id: \"example-studio-custom-input\",\n  title: \"Custom input component in Sanity Studio\",\n  description: \"Example \u2014 tests Studio custom input implementation\",\n\n  area: \"studio\",\n\n  context: {\n    docs: [\n      {\n        slug: \"custom-input-widgets\",\n        reason: \"Guide for building custom form inputs in Sanity Studio\",\n      },\n      {\n        slug: \"form-components\",\n        reason: \"Form component API and customization patterns\",\n      },\n    ],\n  },\n\n  docCoverage: true,\n  referenceSolution: \"canonical/example-studio-custom-input.ts\",\n\n  prompt: {\n    text: `Build a custom string input component for Sanity Studio that shows\na character count below the input field. The component should accept\na maxLength option from the field schema and display a warning when\nthe text exceeds the limit.`,\n  },\n\n  assertions: [\n    {\n      type: \"llm-rubric\",\n      template: \"task-completion\",\n      criteria: [\n        {\n          id: \"renders-text-input\",\n          text: \"Implements a React component that renders a text input\",\n        },\n        {\n          id: \"displays-character-count\",\n          text: \"Displays a live character count\",\n        },\n        { id: \"reads-max-length\", text: \"Reads maxLength from schema options\" },\n        {\n          id: \"shows-visual-warning\",\n          text: \"Shows a visual warning when limit is exceeded\",\n        },\n      ],\n    },\n    {\n      type: \"llm-rubric\",\n      template: \"code-correctness\",\n      criteria: [\n        {\n          id: \"uses-sanity-ui\",\n          text: \"Uses the Sanity UI library for styling\",\n        },\n        {\n          id: \"calls-onchange-patches\",\n          text: \"Calls onChange with patch operations\",\n        },\n      ],\n    },\n  ],\n\n  baseline: { enabled: true, rubric: \"full\" },\n  status: \"draft\",\n})\n";
/** Generated YAML for example-studio-custom-input (from parsed TS data) */
export declare const exampleStudioCustomInputYaml = "- mode: literacy\n  id: example-studio-custom-input\n  title: Custom input component in Sanity Studio\n  description: Example \u2014 tests Studio custom input implementation\n  area: studio\n  context:\n    docs:\n      - slug: custom-input-widgets\n        reason: Guide for building custom form inputs in Sanity Studio\n      - slug: form-components\n        reason: Form component API and customization patterns\n  docCoverage: true\n  referenceSolution: canonical/example-studio-custom-input.ts\n  prompt:\n    text: |-\n      Build a custom string input component for Sanity Studio that shows\n      a character count below the input field. The component should accept\n      a maxLength option from the field schema and display a warning when\n      the text exceeds the limit.\n  assertions:\n    - type: llm-rubric\n      template: task-completion\n      criteria:\n        - id: renders-text-input\n          text: Implements a React component that renders a text input\n        - id: displays-character-count\n          text: Displays a live character count\n        - id: reads-max-length\n          text: Reads maxLength from schema options\n        - id: shows-visual-warning\n          text: Shows a visual warning when limit is exceeded\n    - type: llm-rubric\n      template: code-correctness\n      criteria:\n        - id: uses-sanity-ui\n          text: Uses the Sanity UI library for styling\n        - id: calls-onchange-patches\n          text: Calls onChange with patch operations\n  baseline:\n    enabled: true\n    rubric: full\n  status: draft\n";
/** All task example data as a flat array (JSON-safe) */
export declare const allTaskData: readonly unknown[];
/** Map of task ID (filename stem) → raw TypeScript source */
export declare const taskTsFiles: Record<string, string>;
/** Map of task ID (filename stem) → generated YAML string */
export declare const taskYamlFiles: Record<string, string>;
/** List of task file stems, in alphabetical order */
export declare const TASK_FILE_NAMES: readonly ["example-agent-add-schema", "example-groq-blog-listing", "example-id-based-ref", "example-knowledge-probe", "example-mcp-tool-usage", "example-path-based-ref", "example-perspective-ref", "example-studio-custom-input"];
/** Task metadata for mode-based filtering in init and other consumers */
export interface TaskExampleMeta {
    stem: string;
    mode: string;
    status: string;
}
export declare const TASK_EXAMPLES: readonly TaskExampleMeta[];
export type ExampleType = "config" | "source" | "rubric" | "threshold" | "ailf-config" | "task";
export declare const EXAMPLE_TYPES: readonly ExampleType[];
export interface ExampleRecord {
    description: string;
    example: unknown;
    yaml: string;
}
export declare const EXAMPLES: Record<ExampleType, ExampleRecord>;
/** GitHub Actions workflow template for AI Literacy evaluation */
export declare const workflowYaml = "# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n# AI Literacy Evaluation \u2014 GitHub Actions workflow\n# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n#\n# Evaluates your documentation quality on every pull request.\n# The AILF CLI reads your .ailf/tasks/ definitions, submits them\n# to the AILF API for evaluation, and writes a score report.\n#\n# Prerequisites:\n#   Add one secret to your repository (Settings \u2192 Secrets \u2192 Actions):\n#     AILF_API_KEY \u2014 your API key (starts with ailf_live_sk_)\n#\n#   @sanity/ailf is published with public npm access, so no npm token is\n#   needed to install the CLI.\n#\n# Customization:\n#   - Narrow the trigger paths to reduce cost (see comment below)\n#   - Check debug_mode for faster iteration (fewer tests)\n#   - See: https://github.com/sanity-labs/ai-literacy-framework\n# \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nname: AI Literacy Eval\n\non:\n  pull_request:\n    branches: [main]\n    # Runs on every PR to main by default. To reduce cost:\n    #   paths: [\".ailf/**\", \"docs/**\"]\n\n  workflow_dispatch:\n    inputs:\n      debug_mode:\n        description: \"Run in debug mode (fewer tests, faster iteration)\"\n        type: boolean\n        default: false\n\nconcurrency:\n  group: ailf-eval-${{ github.event.pull_request.number || github.ref }}\n  cancel-in-progress: true\n\njobs:\n  evaluate:\n    name: AI Literacy Evaluation\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Run evaluation\n        id: eval\n        env:\n          AILF_API_KEY: ${{ secrets.AILF_API_KEY }}\n          # \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n          # D0037 run provenance envelope \u2014 REPLACE THE OWNER TEAM SLUG\n          # below. Unedited templates produce runs tagged with the literal\n          # placeholder so you can spot them in Studio / BigQuery and fix.\n          #\n          # AILF_CLASSIFICATION values: official | adhoc | experimental |\n          # test | external. External teams should use `adhoc` by default;\n          # `official` is reserved for the core-docs scheduled series.\n          # \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n          AILF_CLASSIFICATION: adhoc\n          AILF_OWNER_TEAM: \"<REPLACE-WITH-YOUR-TEAM-SLUG>\"\n          AILF_OWNER_INDIVIDUAL: ${{ github.actor }}\n        run: |\n          npx @sanity/ailf@latest run --remote \\\n            --output /tmp/ailf-report.md \\\n            ${{ inputs.debug_mode && '--debug' || '' }}\n\n      - name: Post PR comment\n        if: always() && github.event_name == 'pull_request'\n        uses: actions/github-script@v7\n        with:\n          script: |\n            const fs = require('fs');\n\n            // --- Constants ---\n            const MARKER = '<!-- ailf-score-report -->';\n            const HISTORY_START = '<!-- ailf-score-history -->';\n            const HISTORY_END = '<!-- /ailf-score-history -->';\n            const MAX_HISTORY = 3; // keep at most 3 prior runs\n\n            // --- Read new report ---\n            let newReport;\n            try {\n              newReport = fs.readFileSync('/tmp/ailf-report.md', 'utf-8');\n            } catch {\n              newReport = `## \u26A0\uFE0F AI Literacy Evaluation\\n\\nNo report generated. Check the [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).`;\n            }\n\n            const prNumber = context.issue?.number || context.payload?.pull_request?.number;\n            if (!prNumber) {\n              console.log('No PR number found, skipping comment');\n              return;\n            }\n\n            // --- Find existing comment ---\n            const { data: comments } = await github.rest.issues.listComments({\n              owner: context.repo.owner, repo: context.repo.repo,\n              issue_number: prNumber,\n            });\n            const existing = comments.find(c => c.body?.includes(MARKER));\n\n            // --- Build history from previous comment ---\n            let historyEntries = [];\n            if (existing) {\n              const oldBody = existing.body || '';\n\n              // Collect existing collapsed history entries\n              const histStart = oldBody.indexOf(HISTORY_START);\n              const histEnd = oldBody.indexOf(HISTORY_END);\n              if (histStart !== -1 && histEnd !== -1) {\n                const historyContent = oldBody.slice(histStart + HISTORY_START.length, histEnd).trim();\n                // Split on </details> boundaries to get individual entries\n                if (historyContent) {\n                  historyEntries = historyContent\n                    .split(/<\\/details>\\s*/)\n                    .map(s => s.trim())\n                    .filter(s => s.startsWith('<details>'))\n                    .map(s => s + '\\n</details>');\n                }\n              }\n\n              // Extract the current report (will become the newest history entry)\n              let previousReport = '';\n              if (histStart !== -1) {\n                // Report is between MARKER and the \"Previous runs\" heading (or history section)\n                const markerIdx = oldBody.indexOf(MARKER);\n                // Find the --- separator before history\n                const separatorIdx = oldBody.lastIndexOf('---', histStart);\n                const endIdx = separatorIdx > markerIdx ? separatorIdx : histStart;\n                previousReport = oldBody.slice(markerIdx + MARKER.length, endIdx).trim();\n              } else {\n                // No history yet \u2014 everything after MARKER is the report\n                const markerIdx = oldBody.indexOf(MARKER);\n                if (markerIdx !== -1) {\n                  previousReport = oldBody.slice(markerIdx + MARKER.length).trim();\n                }\n              }\n\n              // Collapse the previous report into a <details> entry\n              if (previousReport) {\n                const scoreMatch = previousReport.match(/Overall:\\s*(\\d+)\\/100/);\n                const score = scoreMatch ? scoreMatch[1] : '?';\n                const dateMatch = previousReport.match(/Generated by.*?\u00B7\\s*([^\u00B7<\\n*]+)/);\n                const date = dateMatch\n                  ? dateMatch[1].trim()\n                  : new Date().toISOString().slice(0, 16).replace('T', ' ') + ' UTC';\n                const entry = `<details>\\n<summary>\uD83D\uDCDC ${date} \u2014 ${score}/100</summary>\\n\\n${previousReport}\\n\\n</details>`;\n                historyEntries.unshift(entry); // newest first\n              }\n\n              // Enforce max history limit\n              historyEntries = historyEntries.slice(0, MAX_HISTORY);\n            }\n\n            // --- Assemble final comment ---\n            const historySection = historyEntries.length > 0\n              ? `\\n\\n---\\n\\n### \uD83D\uDCDC Previous runs\\n\\n${HISTORY_START}\\n${historyEntries.join('\\n\\n')}\\n${HISTORY_END}`\n              : '';\n            const finalBody = `${MARKER}\\n${newReport}${historySection}`;\n\n            if (existing) {\n              await github.rest.issues.updateComment({\n                owner: context.repo.owner, repo: context.repo.repo,\n                comment_id: existing.id, body: finalBody,\n              });\n              console.log(`Updated comment (${historyEntries.length} history entries)`);\n            } else {\n              await github.rest.issues.createComment({\n                owner: context.repo.owner, repo: context.repo.repo,\n                issue_number: prNumber, body: finalBody,\n              });\n              console.log('Created new PR comment');\n            }\n\n      - name: Summary\n        if: always()\n        run: |\n          if [ -f /tmp/ailf-report.md ]; then\n            cat /tmp/ailf-report.md >> \"$GITHUB_STEP_SUMMARY\"\n          else\n            echo \"## \u26A0\uFE0F AI Literacy Evaluation\" >> \"$GITHUB_STEP_SUMMARY\"\n            echo \"\" >> \"$GITHUB_STEP_SUMMARY\"\n            echo \"No report generated. Check the workflow logs.\" >> \"$GITHUB_STEP_SUMMARY\"\n          fi\n";
/** TypeScript project configuration template (ailf.config.ts) */
export declare const ailfConfigTs = "/**\n * .ailf/ailf.config.ts \u2014 AI Literacy Framework project configuration.\n *\n * This file configures how the AILF evaluation pipeline runs in this\n * repository. Place it at .ailf/ailf.config.ts in your project root.\n *\n * Evaluations are submitted to the AILF API (ailf-api.sanity.build).\n * The API handles LLM calls, doc fetching, grading, and report\n * publishing. Your repo only needs one secret: AILF_API_KEY.\n *\n * Docs: https://github.com/sanity-labs/ai-literacy-framework\n */\n\nexport default {\n  /**\n   * Documentation source \u2014 which docs are being evaluated.\n   *\n   * This tells the pipeline which Sanity project and dataset contain\n   * the documentation under test. For most users, this is Sanity's own\n   * docs project.\n   */\n  source: {\n    /** Sanity project ID (find yours at sanity.io/manage) */\n    projectId: \"3do82whm\",\n    /** The dataset to query (e.g., \"production\", \"next\") */\n    dataset: \"next\",\n    /**\n     * The public URL of your documentation site.\n     * Used by agentic mode to test agent discoverability.\n     */\n    baseUrl: \"https://www.sanity.io/docs\",\n  },\n\n  /**\n   * Trigger configuration \u2014 when evaluations run automatically.\n   *\n   * Each key is a trigger context. The pipeline checks which trigger\n   * matches the current execution context (PR, merge, schedule, etc.)\n   * and applies its settings.\n   *\n   * Mode options:\n   *   \"validate-only\" \u2014 check that task files parse correctly (fast, no LLM calls)\n   *   \"eval\"          \u2014 run the full evaluation pipeline\n   */\n  triggers: {\n    /** On pull requests: just validate task files parse correctly. */\n    pr: {\n      mode: \"validate-only\",\n    },\n\n    /** When .ailf/ files change in a PR: run a real evaluation. */\n    \"pr-task-change\": {\n      mode: \"eval\",\n      paths: [\".ailf/**\"],\n    },\n\n    /** On merge to main: run evaluation (non-blocking). */\n    main: {\n      mode: \"eval\",\n      blocking: false,\n      notify: true,\n    },\n  },\n}\n";
