// tools/schemas/workers-schema.ts — Worker tool input schemas (SPEC-078)
// Registry schemas (WorkerTrigger/Definition/Registry) live in engine/workers/schema.ts
// so engine/ modules can import them without violating architecture.
import { z } from 'zod';
// Re-export engine schemas so existing consumers of this file don't break
export { WorkerTriggerSchema, WorkerDefinitionSchema, WorkerRegistrySchema, } from '../../engine/workers/schema.js';
// ---------------------------------------------------------------------------
// Tool input schemas (tools/ only — not needed by engine/)
// ---------------------------------------------------------------------------
export const WorkerStatusInputSchema = z.object({
    projectId: z.string().min(1).max(500).describe('Project identifier'),
    workerName: z
        .string()
        .max(500)
        .optional()
        .describe('Optional worker name to get detailed status. ' +
        'Available: test-gaps | security-audit | optimization | code-map | documentation | dependency-health'),
});
export const ConfigureWorkersInputSchema = z.object({
    projectId: z.string().min(1).max(500).describe('Project identifier'),
    workerName: z
        .string()
        .min(1)
        .max(500)
        .describe('Worker to configure: test-gaps | security-audit | optimization | code-map | documentation | dependency-health'),
    action: z
        .enum([
        'enable',
        'disable',
        'set-cooldown',
        'set-priority',
        'add-pattern',
        'remove-pattern',
        'enable-auto-memory',
    ])
        .describe('Configuration action: enable | disable | set-cooldown | set-priority | add-pattern | remove-pattern | enable-auto-memory'),
    value: z
        .union([z.string().max(4096), z.number()])
        .optional()
        .describe('Value for the action (ms for cooldown, 1-10 for priority, glob for patterns)'),
});
//# sourceMappingURL=workers-schema.js.map