routing

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: BSD-2-Clause Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package routing decides whether a task controller should process a given CreateCommand based on the command's target vault and the controller's configured VAULT_NAME.

Index

Constants

View Source
const LegacyDefaultVault = "openclaw"

LegacyDefaultVault is the vault a controller acts on when a command leaves its TargetVault empty. Hard-coded per spec 044; do not make configurable.

Variables

This section is empty.

Functions

func ShouldProcess

func ShouldProcess(cmd task.CreateCommand, vaultName string) bool

ShouldProcess returns true iff the controller's vaultName owns this command. An empty cmd.TargetVault falls back to LegacyDefaultVault (spec 044 AC 12). A non-empty cmd.TargetVault is compared verbatim (no case-folding).

func ValidateVaultName

func ValidateVaultName(ctx context.Context, vaultName string) error

ValidateVaultName returns a wrapped validation error when vaultName is empty or does not match the slug regex ^[a-z][a-z0-9-]*$.

Types

This section is empty.

Jump to

Keyboard shortcuts

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