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
membranebinary (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 initenrollment. - 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-residentfound 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 keepSCHEMA_BLUEPRINT.- SCHEMA_
CONTEXT_ PULL - Top-level
"schema"of each--jsondocument: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