remotesurface

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package remotesurface declares the `--remote` and `--session` flags that are shared by `klausctl run`, `klausctl prompt`, and `klausctl messages` plus the corresponding MCP tools (klaus_run, klaus_prompt, klaus_messages).

Both the Cobra commands and the MCP tool registrations consume this package so the two surfaces cannot drift. A parity test in cmd/remote_parity_test.go asserts that every CLI flag has an MCP equivalent and vice versa, across all three subcommands/tools.

Index

Constants

This section is empty.

Variables

View Source
var Flags = []Flag{
	{
		CLIFlag:     "remote",
		MCPKey:      "remote",
		Kind:        "string",
		Description: "Remote klaus-gateway base URL; when set, the target is the gateway and no local container is inspected or spawned.",
	},
	{
		CLIFlag:     "session",
		MCPKey:      "session",
		Kind:        "string",
		Description: "Session (thread) name forwarded as X-Klaus-Thread-ID (default: stable hash of the current working directory).",
	},
}

Flags lists the remote-targeting inputs accepted by `run`, `prompt`, and `messages` (CLI) and `klaus_run`, `klaus_prompt`, `klaus_messages` (MCP).

Functions

This section is empty.

Types

type Flag

type Flag struct {
	CLIFlag     string
	MCPKey      string
	Kind        string
	Description string
}

Flag is a single CLI/MCP surface entry. CLIFlag is the Cobra flag name (kebab-case), MCPKey is the MCP input parameter name (camelCase), Kind names the value type ("bool", "int", "string"), and Description is the human-readable summary shown in both surfaces.

func CLIFlagByKey

func CLIFlagByKey(key string) Flag

CLIFlagByKey returns the Flag entry for a given CLIFlag name, panicking on an unknown key. Use this in Cobra bindings so typos fail at init time.

Jump to

Keyboard shortcuts

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