Skip to main content

Crate rightkit_context

Crate rightkit_context 

Source
Expand description

Membrane: the one program the host app runs for context, memory and Blueprint queries.

cli defines the command line (C4), dispatch runs it, modes holds what each command does (resident first, then in process), and serve is the resident the host app supervises. activation keeps the activation lock, and native_init the repository enrollment behind init. Real work is delegated to membrane_runtime.

Re-exports§

pub use serve::run_serve;
pub use rightkit_context_protocol as protocol;
pub use rightkit_context_runtime as runtime;

Modules§

activation
The activation lock.
cli
Command line of the one membrane binary (C4).
dispatch
Parse a command line and run the command it names.
modes
What each command does: ask the resident first, then run in process (A3, C4).
native_init
Explicit native membrane init enrollment.
serve
membrane serve: the resident the host app runs.

Constants§

EXIT_INTERNAL_ERROR
An internal failure: a bug or an unreadable/corrupt store.
EXIT_NOT_AVAILABLE
The answer is not available: no memory store, or Membrane could not produce the context or Blueprint answer asked for. The reason is one line on stderr.
EXIT_OK
Process-wide exit-code contract (README “CLI contract”). Scripts distinguish the outcomes below without parsing stderr; a hook ignores all of this and always exits 0.
EXIT_RESIDENT_UNREACHABLE
status --require-resident found no resident answering.
EXIT_USER_ERROR
A usage error: bad arguments, empty input. Same code clap uses for a parse failure.
SCHEMA_ADAPT_ADJUDICATE_TASTE
SCHEMA_ADAPT_APPLY
SCHEMA_ADAPT_MINE_SESSION
SCHEMA_ADAPT_OBSERVE
membrane adapt <verb>: one schema per verb.
SCHEMA_ADAPT_RECALL
SCHEMA_ADAPT_STATUS
SCHEMA_ADAPT_TASTE_REVIEW
SCHEMA_BLUEPRINT
SCHEMA_BLUEPRINT_SEARCH
membrane blueprint search <text> carries this id; other Blueprint verbs keep SCHEMA_BLUEPRINT.
SCHEMA_CONTEXT_PULL
Top-level "schema" of each --json document: membrane.<command>.v<version>. A change that removes or retypes a field bumps the version; adding a field does not.
SCHEMA_MEMORY_DELETE
SCHEMA_MEMORY_GET
SCHEMA_MEMORY_INFO
SCHEMA_MEMORY_LIST
SCHEMA_MEMORY_PUSH
SCHEMA_MEMORY_SCOPES
SCHEMA_MEMORY_SEARCH
SCHEMA_RECEIPTS_MARK
SCHEMA_STATUS
SCHEMA_TRANSCRIPT_APPEND
membrane transcript append.
SCHEMA_TRANSCRIPT_TIP
SCHEMA_WHERE