"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeLockTool = makeLockTool;
function makeLockTool(authService) {
    async function lock() {
        authService.lock();
        return {
            success: true,
            message: "Worker locked. Call getChallenge and unlock to regain access.",
        };
    }
    const lockDefinition = {
        type: "function",
        function: {
            name: "lock",
            description: "Lock the worker. After locking, only getChallenge, unlock, and lock tools will be accessible until the worker is unlocked again with a valid passkey assertion.",
            parameters: {
                type: "object",
                properties: {},
                required: [],
            },
        },
    };
    return { lock, lockDefinition };
}
//# sourceMappingURL=lock.js.map