Skip to main content

Module cli

Module cli 

Source
Expand description

CLI mode for direct operation invocation

Provides command-line interface for manual testing and debugging through the local executable.

Structs§

WarmProcessConfig
Process identity for a local warm worker.

Enums§

CliCommand
CLI subcommands for memory operations
CliQueryMode
Retrieval intent for CLI search/orchestration.
ExperienceCommand
Record, retrieve, verify, and transfer operational experience.
ExportFormat
Export output format.
NativeHookHarness
Native hook payload format accepted by session-start.
ReportFormat
Report output format.
SearchReranker
Optional post-retrieval reranker for CLI search.
StoreAccess
WarmCommand
Administrative warm-worker commands.
WarmMode
Warm-worker behavior for agent-facing CLI retrieval and local tool calls.

Functions§

capture_execution_context
Capture the calling process’s execution context.
capture_tracked_diff_sha256
Hash HEAD plus the staged and unstaged tracked diff without retaining it.
emit_case_if_requested
Handle experience note --emit: print the canonical case and report whether the command is finished. This runs before tenant, project, and store resolution because validating a file needs none of them.
enrich_operation_arguments
Add the current client context to one operation’s arguments.
prepare_execution_context
Capture once, then materialize context into a CLI command before warm/cold routing. A warm worker therefore receives the caller’s context and never observes its own process identity on behalf of a client.
prepare_experience_command
Convert experience commands to the existing local operation transport.
resolve_command_scope
run_cli
Run a CLI command
run_warm_admin
try_run_warm_client
warm_socket_path