Documentation
¶
Index ¶
- func CollectProviders(models map[string]string) []string
- func ExecInContainer(ctx context.Context, cli *client.Client, containerID string, cmd []string) (stdout, stderr string, exitCode int, err error)
- func ExpectedProviderKeys(provider string) []string
- func GenerateChannelSkill(surface driver.ResolvedSurface) string
- func GenerateClawdapusMD(rc *driver.ResolvedClaw, podName string) string
- func GenerateHandleSkill(platform string, info *driver.HandleInfo) string
- func IsFiveFieldCron(expr string) bool
- func NormalizeProvider(provider string) string
- func ParseConfigSetCommand(line, driverPrefix string) (path string, value any, err error)
- func PlatformTokenVar(platform string) string
- func PrimaryModelRef(models map[string]string) (string, error)
- func ProviderAllowsEmptyAPIKey(provider string) bool
- func ResolveEnvToken(raw string) string
- func ResolveEnvTokenFromMap(env map[string]string, key string) string
- func ResolveProviderAPIKey(provider string, env map[string]string) string
- func SetPath(obj map[string]any, path string, value any) error
- func SplitModelRef(ref string) (string, string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectProviders ¶ added in v0.2.0
CollectProviders returns a sorted unique provider list from MODEL refs.
func ExecInContainer ¶ added in v0.3.0
func ExpectedProviderKeys ¶ added in v0.2.0
func GenerateChannelSkill ¶
func GenerateChannelSkill(surface driver.ResolvedSurface) string
GenerateChannelSkill produces a markdown skill file for a channel surface. Describes the platform, token env var, routing config, and usage guidance.
func GenerateClawdapusMD ¶
func GenerateClawdapusMD(rc *driver.ResolvedClaw, podName string) string
GenerateClawdapusMD builds the CLAWDAPUS.md context file — the infrastructure layer's letter to the agent. Contains identity, surfaces, and skill index. Injected into the agent's context via bootstrap-extra-files hook.
func GenerateHandleSkill ¶
func GenerateHandleSkill(platform string, info *driver.HandleInfo) string
GenerateHandleSkill produces a skill file describing a claw's identity and membership on the given platform. Helps the agent understand how to present itself and navigate its guild/channel topology.
func IsFiveFieldCron ¶ added in v0.3.0
func NormalizeProvider ¶ added in v0.2.0
func ParseConfigSetCommand ¶ added in v0.3.0
func PlatformTokenVar ¶
PlatformTokenVar returns the conventional env var name for a platform's bot token.
func PrimaryModelRef ¶ added in v0.3.0
func ProviderAllowsEmptyAPIKey ¶ added in v0.2.0
func ResolveEnvToken ¶ added in v0.2.0
func ResolveEnvTokenFromMap ¶ added in v0.2.0
func ResolveProviderAPIKey ¶ added in v0.2.0
Types ¶
This section is empty.