Polyman Documentation - v3.1.0
    Preparing search index...

    Interface ConfigPatch

    The only way workers change Config.json. The scheduler applies it, a worker never writes Config.json itself. Names follow the template.

    interface ConfigPatch {
        set?: { name?: string; timeLimit?: number; memoryLimit?: number };
        addSolutions?: { name: string; source: string; tag: SolutionTag }[];
        validator?: { name: string; source: string; testsFilePath?: string };
        generators?: { name: string; source: string }[];
        checker?:
            | { name: string; isStandard: true }
            | {
                name: string;
                isStandard: false;
                source: string;
                testsFilePath?: string;
            };
        statements?: Record<
            string,
            {
                encoding: "UTF-8";
                name: string;
                legend: string;
                input: string;
                output: string;
                notes?: string;
            },
        >;
        generatorScript?: { testset: string; scriptFile: string };
        manualTests?: {
            testset: string;
            input: string;
            group?: string;
            useInStatements?: boolean;
        }[];
    }
    Index
    set?: { name?: string; timeLimit?: number; memoryLimit?: number }
    addSolutions?: { name: string; source: string; tag: SolutionTag }[]

    The scheduler fills sourceType from the file extension.

    validator?: { name: string; source: string; testsFilePath?: string }
    generators?: { name: string; source: string }[]
    checker?:
        | { name: string; isStandard: true }
        | {
            name: string;
            isStandard: false;
            source: string;
            testsFilePath?: string;
        }
    statements?: Record<
        string,
        {
            encoding: "UTF-8";
            name: string;
            legend: string;
            input: string;
            output: string;
            notes?: string;
        },
    >
    generatorScript?: { testset: string; scriptFile: string }
    manualTests?: {
        testset: string;
        input: string;
        group?: string;
        useInStatements?: boolean;
    }[]