@karmaniverous/jeeves
    Preparing search index...

    Function resolveWorkspacePath

    • Resolve the workspace root from the OpenClaw plugin API.

      Parameters

      • api: PluginApi

        The plugin API object provided by the gateway.

      Returns string

      Absolute path to the workspace root.

      Tries three sources in order:

      1. api.config.agents.defaults.workspace — explicit config
      2. api.resolvePath('.') — gateway-provided path resolver
      3. process.cwd() — last resort