botutil

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPluginPackage = "create-openclaw-octo"

DefaultPluginPackage is the npm package an Agent runs (via `npx -y <pkg> ...`) to install the OpenClaw channel adapter and bind a Bot. It is the single backend-owned source of truth for the package name: the App Bot connect responses (modules/app_bot) and the BotFather connect prompts (modules/botfather) both resolve it through PluginPackage, so a package rename or canary rollout only touches the backend — never the frontend, and never the localized connect-guide prose.

View Source
const PluginPackageEnv = "OCTO_BOT_PLUGIN_PACKAGE"

PluginPackageEnv overrides DefaultPluginPackage at runtime (rename / canary), so operators can switch the package without a code change or redeploy of the frontend.

Variables

This section is empty.

Functions

func DeriveAPIURL added in v1.7.0

func DeriveAPIURL(cfg *config.Config) string

DeriveAPIURL resolves the public Bot API entry for this deployment: the configured External.BaseURL, falling back to the direct-access host:port when BaseURL is unset. This is the value Agents pass as `--api-url` and the URL returned in Bot connect/register responses — NOT the admin-dashboard origin.

func DeriveWSURL

func DeriveWSURL(cfg *config.Config) string

DeriveWSURL derives the WuKongIM WebSocket URL from server config.

func PluginPackage added in v1.7.0

func PluginPackage() string

PluginPackage returns the configured OpenClaw plugin package name, honoring the OCTO_BOT_PLUGIN_PACKAGE override and falling back to DefaultPluginPackage.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL