import { describe, expect, it } from 'vitest';
import { DOCS_LIFECYCLE_STATUSES } from '../../operations/docs.js';
import { OPERATIONS } from '../operations-registry.js';
describe('docs.update registry flags (T10617)', () => {
    it('exposes registry-driven dry-run and strict preflight CLI params', () => {
        const updateOp = OPERATIONS.find((op) => op.domain === 'docs' && op.operation === 'update' && op.gateway === 'mutate');
        expect(updateOp).toBeDefined();
        const dryRun = updateOp?.params?.find((param) => param.name === 'dryRun');
        const strict = updateOp?.params?.find((param) => param.name === 'strict');
        expect(dryRun).toMatchObject({
            type: 'boolean',
            required: false,
            cli: { flag: 'dry-run' },
        });
        expect(strict).toMatchObject({
            type: 'boolean',
            required: false,
        });
    });
    it('derives lifecycle help and enum from the runtime docs.update status SSoT', () => {
        const updateOp = OPERATIONS.find((op) => op.domain === 'docs' && op.operation === 'update' && op.gateway === 'mutate');
        const status = updateOp?.params?.find((param) => param.name === 'status');
        expect(status?.enum).toEqual(DOCS_LIFECYCLE_STATUSES);
        expect(status?.description).toContain(`Valid: ${DOCS_LIFECYCLE_STATUSES.join('|')}.`);
    });
});
//# sourceMappingURL=docs-update-registry.test.js.map