@karmaniverous/jeeves
    Preparing search index...

    Function validateConversationHooks

    • Check that package.json declares exactly the conversation hooks a plugin registers.

      Parameters

      • packageJson: unknown

        Parsed package.json of the plugin package.

      • registeredHooks: readonly string[]

        Hook names the plugin registers (see recordRegisteredHooks); non-conversation hooks are ignored.

      Returns string[]

      The declared conversation hooks.

      Error when the field is malformed, a registered conversation hook is not declared, or a declared hook is not a registered conversation hook.