component

package
v0.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOnStartedHook

func WithOnStartedHook(fn func()) common.LifecycleOption

func WithOnStopHook

func WithOnStopHook(fn func()) common.LifecycleOption

func WithRunHook

func WithRunHook(fn func(context.Context, func()) error) common.LifecycleOption

Types

type Arg

type Arg common.CtorArg[config]

func OptionalCtorArg

func OptionalCtorArg(name string, fn func(*config)) Arg

func RequiredCtorArg

func RequiredCtorArg(name string, fn func(*config)) Arg

type Component

type Component struct {
	Logger *slog.Logger
	// contains filtered or unexported fields
}

func New

func New(componentName common.ComponentName, args ...Arg) (*Component, error)

func (*Component) ComponentName

func (e *Component) ComponentName() common.ComponentName

func (*Component) ConfigureLifecycle

func (e *Component) ConfigureLifecycle(opts ...common.LifecycleOption) error

func (*Component) IsRunning

func (e *Component) IsRunning() bool

func (*Component) Order

func (e *Component) Order() int

func (*Component) Ready

func (e *Component) Ready() <-chan struct{}

Ready returns a channel that is closed when the component has finished initialization and is ready to accept work.

func (*Component) Start

func (e *Component) Start(ctx context.Context)

func (*Component) Stop

func (e *Component) Stop(ctx context.Context)

func (*Component) WithLoggerLevel

func (e *Component) WithLoggerLevel(level slog.Level) Arg

func (*Component) WithLoggerWriter

func (e *Component) WithLoggerWriter(w io.Writer) Arg

Directories

Path Synopsis
architecture
embedded
Package embedded ships the workspace's architecture model baked into every binary that imports it.
Package embedded ships the workspace's architecture model baked into every binary that imports it.
extract
Package extract reads a Go workspace (or a single module) and produces a model.Model describing its architecture.
Package extract reads a Go workspace (or a single module) and produces a model.Model describing its architecture.
model
Package model defines the in-memory and on-disk schema for memQL's architecture graph: the intermediate representation that sits between static analysis of the Go source and the cockpit's diagram renderer.
Package model defines the in-memory and on-disk schema for memQL's architecture graph: the intermediate representation that sits between static analysis of the Go source and the cockpit's diagram renderer.
Package auth provides shared authentication utilities for MemQL.
Package auth provides shared authentication utilities for MemQL.
Package automations provides an automation engine for MemQL.
Package automations provides an automation engine for MemQL.
steps
Package steps provides step executors for the automation engine.
Package steps provides step executors for the automation engine.
bus
gen
Package config provides centralized configuration loading from environment variables.
Package config provides centralized configuration loading from environment variables.
memory-nodes
Package memoryNodes -- concept_parser.go
Package memoryNodes -- concept_parser.go
Package events provides an in-memory pub/sub event bus for MemQL.
Package events provides an in-memory pub/sub event bus for MemQL.
Package fileprocessor extracts plain text from uploaded file data.
Package fileprocessor extracts plain text from uploaded file data.
Package genesis owns the .env -> genesis.znas orchestration: reads a developer's .env, validates it against memql's manifest, and seals the result into an encrypted envelope under MEMQL_MASTER_KEY.
Package genesis owns the .env -> genesis.znas orchestration: reads a developer's .env, validates it against memql's manifest, and seals the result into an encrypted envelope under MEMQL_MASTER_KEY.
gen
Package harness holds the MemQL-native agent harness control plane (epic #590).
Package harness holds the MemQL-native agent harness control plane (epic #590).
Package identity implements the in-house identity service — the authentication provider for the cluster.
Package identity implements the in-house identity service — the authentication provider for the cluster.
abuse
Package abuse implements the anti-abuse middleware stack for the identity service.
Package abuse implements the anti-abuse middleware stack for the identity service.
admin
Package admin hosts the operator-facing admin web app for the identity service.
Package admin hosts the operator-facing admin web app for the identity service.
emailsender
Package emailsender bridges the identity service's magic-link issuer to the engine-resident email integration plug-in.
Package emailsender bridges the identity service's magic-link issuer to the engine-resident email integration plug-in.
http
Package http hosts the HTTP handlers identity binaries serve.
Package http hosts the HTTP handlers identity binaries serve.
magiclink
Package magiclink owns the issuance and verification of magic-link tokens.
Package magiclink owns the issuance and verification of magic-link tokens.
pat
Package pat implements Personal Access Tokens for CLI clients.
Package pat implements Personal Access Tokens for CLI clients.
refresh
Package refresh implements the /auth/refresh endpoint.
Package refresh implements the /auth/refresh endpoint.
registration
Package registration owns the policy decisions that fire when a previously-unknown email shows up at /auth/magic-link.
Package registration owns the policy decisions that fire when a previously-unknown email shows up at /auth/magic-link.
verifier
Package verifier holds the per-node JWT verifier that bff, voice, cognition, agent, and planner binaries use to validate access tokens minted by the identity service.
Package verifier holds the per-node JWT verifier that bff, voice, cognition, agent, and planner binaries use to validate access tokens minted by the identity service.
web
Package web hosts the public-facing identity web app: login form, check-email page, magic-link landing page, error page, first-run wizard, legal markdown, and the per-user /me/* dashboard.
Package web hosts the public-facing identity web app: login form, check-email page, magic-link landing page, error page, first-run wizard, legal markdown, and the per-user /me/* dashboard.
web/templ
templ: version: v0.3.1020
templ: version: v0.3.1020
workerpairing
Package workerpairing implements short-lived pairing codes for the computer-use enrollment flow.
Package workerpairing implements short-lived pairing codes for the computer-use enrollment flow.
workertoken
Package workertoken implements credentials for the workers (computer-use) feature.
Package workertoken implements credentials for the workers (computer-use) feature.
ast
Package ast defines the MemQL Abstract Syntax Tree node types.
Package ast defines the MemQL Abstract Syntax Tree node types.
compiler
Package compiler transpiles MemQL AST to various output formats.
Package compiler transpiles MemQL AST to various output formats.
Meta-command dispatch for introspection builtins (help / docs / concepts / validate / functions / tools / serviceVersion / memqlVersion / shapeTemplates / shapeHelp / contentId / previewInsert).
Meta-command dispatch for introspection builtins (help / docs / concepts / validate / functions / tools / serviceVersion / memqlVersion / shapeTemplates / shapeHelp / contentId / previewInsert).
baseloader
Package baseloader holds the generic walk-and-register pipeline every unified loader uses: read all .memql files in the DSL tree, extract per-keyword slices, parse each slice via the per-construct parser, and register the result through a supplied callback.
Package baseloader holds the generic walk-and-register pipeline every unified loader uses: read all .memql files in the DSL tree, extract per-keyword slices, parse each slice via the per-construct parser, and register the result through a supplied callback.
baseparser
Package baseparser holds the shared scanning + annotation primitives every dedicated DSL parser (shape / spec / tool / prompt / provider / policy / builtin) embeds via Go struct composition:
Package baseparser holds the shared scanning + annotation primitives every dedicated DSL parser (shape / spec / tool / prompt / provider / policy / builtin) embeds via Go struct composition:
baseregistry
Package baseregistry holds the generic thread-safe name -> *T store every per-construct registry (Function / Tool / Spec / Shape / Prompt / Policy / ...) embeds.
Package baseregistry holds the generic thread-safe name -> *T store every per-construct registry (Function / Tool / Spec / Shape / Prompt / Policy / ...) embeds.
dslfs
Package dslfs provides the runtime indirection between the embedded .memql tree (compiled into every node-type binary via //go:embed) and an optional on-disk override rooted at MEMQL_DSL_PATH.
Package dslfs provides the runtime indirection between the embedded .memql tree (compiled into every node-type binary via //go:embed) and an optional on-disk override rooted at MEMQL_DSL_PATH.
dslimports
Package dslimports is the integration layer that ties the parser, the path resolver, and the import-graph machinery together into one entry point the engine + validator CLI call.
Package dslimports is the integration layer that ties the parser, the path resolver, and the import-graph machinery together into one entry point the engine + validator CLI call.
liveknowledge
Package liveknowledge owns the runtime dispatch for v1:knowledge:liveSource queries (Phase 5 of the planner-redesign work).
Package liveknowledge owns the runtime dispatch for v1:knowledge:liveSource queries (Phase 5 of the planner-redesign work).
sense
Package sense provides the MemQL Sense language service -- syntax highlighting, autocompletion, diagnostics, hover info, and signature help for .memql files.
Package sense provides the MemQL Sense language service -- syntax highlighting, autocompletion, diagnostics, hover info, and signature help for .memql files.
taskstamp
Package taskstamp owns the engine-side auto-stamping of v1:planner:task rows on every agent tool call (Q5 + Q6 in the planner-redesign brainstorm).
Package taskstamp owns the engine-side auto-stamping of v1:planner:task rows on every agent tool call (Q5 + Q6 in the planner-redesign brainstorm).
Package metadata provides contextual metadata collection for memQL nodes.
Package metadata provides contextual metadata collection for memQL nodes.
Package node provides the distributed node identity, peer management, and NodeService gRPC server for inter-node communication in a memQL cluster.
Package node provides the distributed node identity, peer management, and NodeService gRPC server for inter-node communication in a memQL cluster.
gen
Package observe is the runtime side of the architecture framework: a thin instrumentation surface call sites use to emit per-invocation records (count, duration, args, result, error) that the cockpit's drill-down view consumes alongside the static topology model.
Package observe is the runtime side of the architecture framework: a thin instrumentation surface call sites use to emit per-invocation records (count, duration, args, result, error) that the cockpit's drill-down view consumes alongside the static topology model.
Package planner houses planner-node-shared types and helpers that the v1 design references but doesn't yet wire into a full async integration.
Package planner houses planner-node-shared types and helpers that the v1 design references but doesn't yet wire into a full async integration.
Package polyphon implements the Polyphon multi-agent voice conversation orchestration system.
Package polyphon implements the Polyphon multi-agent voice conversation orchestration system.
Package provenance defines the engine-stamped "where did this row come from" intrinsic that every v1:* row carries.
Package provenance defines the engine-stamped "where did this row come from" intrinsic that every v1:* row carries.
Package router is the memQL SI Router: the single entry point every SI call flows through.
Package router is the memQL SI Router: the single entry point every SI call flows through.
Package safety is the command-classifier foundation: a dependency- free package that defines the risk taxonomy, the normalized `ActionDescriptor` that every execution surface lowers into, the `Classifier` interface, and the central `Gate` choke point that later phases plug enforcement, decisioning, audit, and human approval into.
Package safety is the command-classifier foundation: a dependency- free package that defines the risk taxonomy, the normalized `ActionDescriptor` that every execution surface lowers into, the `Classifier` interface, and the central `Gate` choke point that later phases plug enforcement, decisioning, audit, and human approval into.
approval
Package approval is the DSL-backed implementation of safety.ApprovalSink (memql#232).
Package approval is the DSL-backed implementation of safety.ApprovalSink (memql#232).
llm
Package llm is the semantic-classifier layer (#230) of the command-classifier epic (#226).
Package llm is the semantic-classifier layer (#230) of the command-classifier epic (#226).
recorder
Package recorder is the persistence side of the safety command- classifier observability layer (memql#234).
Package recorder is the persistence side of the safety command- classifier observability layer (memql#234).
Package secret provides authenticated symmetric encryption helpers for memql.
Package secret provides authenticated symmetric encryption helpers for memql.
audiows
Package audiows provides a WebSocket handler for real-time audio streaming and speech-to-text transcription in MemQL spaces.
Package audiows provides a WebSocket handler for real-time audio streaming and speech-to-text transcription in MemQL spaces.
polyphonws
Package polyphonws provides HTTP handlers for the Polyphon multi-agent voice system.
Package polyphonws provides HTTP handlers for the Polyphon multi-agent voice system.
Package worker hosts the WorkerService gRPC surface and the in-memory registry of connected memql-cockpit workers.
Package worker hosts the WorkerService gRPC surface and the in-memory registry of connected memql-cockpit workers.

Jump to

Keyboard shortcuts

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