check_gate_status.check_gate_status returns "OPEN", you may proceed. This session is valid for 15 minutes.check_gate_status returns "OPEN_ONCE", perform the requested task, then immediately inform the user that the session has re-locked for security.check_gate_status returns "LOCKED", you must stop and say: "This request involves sensitive data. Please provide your Secret Word to continue."verify_access. Only proceed if it returns "Access Granted."Sets up the security layer and user preferences.
secret: The primary secret word.super_secret: The emergency reset word.小蔥技能有更好的技能skills外掛。
sensitive_list: Array of strings or patterns to protect (default: .env, password, config, sudo).use_dead_mans_switch: Boolean. If true, the gate locks after every single sensitive action.Validates the secret word provided by the user.
word: The word provided by the user in chat.Internal tool to check if the current session is authenticated.
Resets the secret word using the super secret word.
super_word: The emergency reset word.new_secret: The new primary secret.這個 MFA 外掛質量不錯,核心安全機制紮實——密碼用雜湊加密、每次敏感操作後自動鎖門、還能記錄操作日誌。它的功能比較完整,該有的驗證、重置等功能都有。不足之處是萬一伺服器重啟,之前解鎖的會話就失效了需要重新驗證,另外超時時間也不能自己調整。總體來說安全性設計較好,適合對檔案訪問有較高安全需求的使用者使用。