internal/

directory
v0.107.39 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0

Directories

Path Synopsis
Package approval implements an isolated, tool-less action reviewer.
Package approval implements an isolated, tool-less action reviewer.
Package backend exposes K-brain's canonical session and Agent runtime over HTTP.
Package backend exposes K-brain's canonical session and Agent runtime over HTTP.
cua
Package cua connects K-brain to Cua Driver's native MCP interface.
Package cua connects K-brain to Cua Driver's native MCP interface.
Package elicit implements the client side of MCP form elicitation: it checks a server's requestedSchema against the restricted subset the specification allows, flattens it into form fields, validates the user's answer against those fields, and carries the hook through which a front end (the TUI, a /v1 client) asks the user.
Package elicit implements the client side of MCP form elicitation: it checks a server's requestedSchema against the restricted subset the specification allows, flattens it into form fields, validates the user's answer against those fields, and carries the hook through which a front end (the TUI, a /v1 client) asks the user.
Package goalloop holds the session-goal rules shared by the TUI and the backend: the round prompts, the GOAL_MET completion and GOAL_NEEDS_INPUT checks, and the round limit resolution.
Package goalloop holds the session-goal rules shared by the TUI and the backend: the round prompts, the GOAL_MET completion and GOAL_NEEDS_INPUT checks, and the round limit resolution.
adapters/async
Package asyncadapter implements evidence-scoped asynchronous image protocols.
Package asyncadapter implements evidence-scoped asynchronous image protocols.
adapters/direct
Package direct implements restricted, synchronous image provider protocols.
Package direct implements restricted, synchronous image provider protocols.
mcp
mcptest
Package mcptest provides a minimal MCP server for tests that need to control the exact bytes a server sends, such as an elicitation's requestedSchema with its property order or a schema outside the subset.
Package mcptest provides a minimal MCP server for tests that need to control the exact bytes a server sends, such as an elicitation's requestedSchema with its property order or a schema outside the subset.
Package memoryruntime owns model-backed memory injection and hidden turn extraction.
Package memoryruntime owns model-backed memory injection and hidden turn extraction.
Package netproxy selects the outbound transport for provider HTTP traffic.
Package netproxy selects the outbound transport for provider HTTP traffic.
Package planning owns persistent calendars and tasks shared by all backend clients.
Package planning owns persistent calendars and tasks shared by all backend clients.
Package protocol defines the versioned JSON contract between K-brain and clients such as LiveAgent.
Package protocol defines the versioned JSON contract between K-brain and clients such as LiveAgent.
Package resources owns LiveAgent-compatible prompt resources.
Package resources owns LiveAgent-compatible prompt resources.
Package sshhosts stores the SSH hosts SSHManager may connect to, the projects each host is associated with, and K-brain's own known_hosts file.
Package sshhosts stores the SSH hosts SSHManager may connect to, the projects each host is associated with, and K-brain's own known_hosts file.
Package sshmgr runs SSHManager: SSH connections, shells, remote commands and SFTP for the hosts stored in sshhosts, opened by the K-brain process itself.
Package sshmgr runs SSHManager: SSH connections, shells, remote commands and SFTP for the hosts stored in sshhosts, opened by the K-brain process itself.
sshtest
Package sshtest runs an SSH server inside the test process, on 127.0.0.1, for SSHManager tests.
Package sshtest runs an SSH server inside the test process, on 127.0.0.1, for SSHManager tests.
Package stackdump writes every goroutine's stack to a file in the K-brain log directory, without stopping the process, so a frozen kn or kn backend can be diagnosed: on SIGUSR1 (Unix), on GET /v1/debug/stacks (backend), and automatically when a watchdog sees the UI loop or the backend stall.
Package stackdump writes every goroutine's stack to a file in the K-brain log directory, without stopping the process, so a frozen kn or kn backend can be diagnosed: on SIGUSR1 (Unix), on GET /v1/debug/stacks (backend), and automatically when a watchdog sees the UI loop or the backend stall.
Package storage assembles persistent stores independently of the agent runtime.
Package storage assembles persistent stores independently of the agent runtime.
Package testhome keeps a test binary away from the developer's data directory.
Package testhome keeps a test binary away from the developer's data directory.
tui
tuicap
Package tuicap drives a real kn binary in a pseudo-terminal for tests.
Package tuicap drives a real kn binary in a pseudo-terminal for tests.
Package winpath maps the Win32 file namespace spelling of a local path to the ordinary one, so that path boundaries and permission rules compare one form.
Package winpath maps the Win32 file namespace spelling of a local path to the ordinary one, so that path boundaries and permission rules compare one form.

Jump to

Keyboard shortcuts

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