internal/

directory
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT

Directories

Path Synopsis
Package authz contains the server authorization port.
Package authz contains the server authorization port.
Package database provides SQLite connection management with optimized pragmas.
Package database provides SQLite connection management with optimized pragmas.
Package domain defines the core domain models and business rules for Cortex.
Package domain defines the core domain models and business rules for Cortex.
ast
Package ast provides zero-CGO static code analysis and symbol extraction for Go, TypeScript/JavaScript, Python, and SQL files, building deterministic code knowledge graphs.
Package ast provides zero-CGO static code analysis and symbol extraction for Go, TypeScript/JavaScript, Python, and SQL files, building deterministic code knowledge graphs.
dna
Package dna generates Project DNA — a structured summary of a project's key decisions, patterns, tech stack, and gotchas extracted from observations.
Package dna generates Project DNA — a structured summary of a project's key decisions, patterns, tech stack, and gotchas extracted from observations.
entity
Package entity implements entity extraction and linking for Cortex.
Package entity implements entity extraction and linking for Cortex.
extraction
Package extraction provides automated extraction and synthesis of observations, entities, and knowledge-graph relationships from raw text, code notes, and session logs.
Package extraction provides automated extraction and synthesis of observations, entities, and knowledge-graph relationships from raw text, code notes, and session logs.
graph
Package graph provides graph analytics, clustering, and structural code intelligence algorithms inspired by Graphify, ported natively to Go with zero-CGO.
Package graph provides graph analytics, clustering, and structural code intelligence algorithms inspired by Graphify, ported natively to Go with zero-CGO.
lifecycle
Package lifecycle implements auto-archival and lifecycle management for Cortex.
Package lifecycle implements auto-archival and lifecycle management for Cortex.
memory
Package memory provides the business logic layer for observation management.
Package memory provides the business logic layer for observation management.
observability
Package observability provides metrics and quality evaluation for the Cortex memory system.
Package observability provides metrics and quality evaluation for the Cortex memory system.
projectprotocol
Package projectprotocol defines the Project Context Protocol domain contract: skill and rule artifacts, immutable revisions, activation compare-and-swap (CAS) pointers, idempotency DTOs, canonical hashing and the deterministic effective protocol resolution with its approved limits.
Package projectprotocol defines the Project Context Protocol domain contract: skill and rule artifacts, immutable revisions, activation compare-and-swap (CAS) pointers, idempotency DTOs, canonical hashing and the deterministic effective protocol resolution with its approved limits.
scoring
Package scoring implements the importance scoring business logic for Cortex.
Package scoring implements the importance scoring business logic for Cortex.
search
Package search provides FTS5-based full-text search business logic for Cortex.
Package search provides FTS5-based full-text search business logic for Cortex.
session
Package session provides business logic for session management.
Package session provides business logic for session management.
temporal
Package temporal provides temporal graph semantics and evolution tracking for the knowledge graph in Cortex.
Package temporal provides temporal graph semantics and evolution tracking for the knowledge graph in Cortex.
Package embedding provides text-to-vector embedding for Cortex.
Package embedding provides text-to-vector embedding for Cortex.
Package http implements the REST API server for Cortex.
Package http implements the REST API server for Cortex.
Package identity provides Principal and TenantContext types and nil-safe constructors for threading authenticated identity through the Cortex platform.
Package identity provides Principal and TenantContext types and nil-safe constructors for threading authenticated identity through the Cortex platform.
mcp
Package mcp implements the Model Context Protocol server for Cortex.
Package mcp implements the Model Context Protocol server for Cortex.
memorycontract
Package memorycontract is the shared, pure MCP contract for the durable memory write surface (design RD6, REM-SAVE-001, REM-MCP-001).
Package memorycontract is the shared, pure MCP contract for the durable memory write surface (design RD6, REM-SAVE-001, REM-MCP-001).
Package migration provides a database migration framework for SQLite.
Package migration provides a database migration framework for SQLite.
Package ollama manages the Ollama process lifecycle for Cortex.
Package ollama manages the Ollama process lifecycle for Cortex.
server
Package server is the PostgreSQL composition root.
Package server is the PostgreSQL composition root.
projection
obsidian
Package obsidian implements a one-way, deterministic Markdown projection.
Package obsidian implements a one-way, deterministic Markdown projection.
Package retrieval provides shared retrieval-pipeline orchestration that bridges the domain.VectorIndex port (W8.1, ADR-05) to the full search-result types that MCP, bench, CLI, and TUI consumers require.
Package retrieval provides shared retrieval-pipeline orchestration that bridges the domain.VectorIndex port (W8.1, ADR-05) to the full search-result types that MCP, bench, CLI, and TUI consumers require.
server
external
Package external: provider health aggregation (W8.4, REQ-VEC-002).
Package external: provider health aggregation (W8.4, REQ-VEC-002).
Package setup installs Cortex integrations for AI coding agents.
Package setup installs Cortex integrations for AI coding agents.
store
bundle
Package bundle provides the Stores struct that bundles all store dependencies.
Package bundle provides the Stores struct that bundles all store dependencies.
entity
Package entity implements the SQLite entity link store for Cortex.
Package entity implements the SQLite entity link store for Cortex.
graph
dna_batch.go implements the optional DNA batch edge-count capability on the local SQLite graph store.
dna_batch.go implements the optional DNA batch edge-count capability on the local SQLite graph store.
postgres
Package postgres contains the server-mode repositories.
Package postgres contains the server-mode repositories.
prompt
Package prompt implements the SQLite prompt store for Cortex.
Package prompt implements the SQLite prompt store for Cortex.
scoring
Package scoring implements the SQLite scoring store for Cortex.
Package scoring implements the SQLite scoring store for Cortex.
search
Package search implements the SQLite search store for Cortex.
Package search implements the SQLite search store for Cortex.
session
Package session implements the SQLite session store for Cortex.
Package session implements the SQLite session store for Cortex.
sqlite
Package sqlite implements the SQLite memory store for Cortex.
Package sqlite implements the SQLite memory store for Cortex.
Package sync provides git-friendly memory synchronization via compressed chunks.
Package sync provides git-friendly memory synchronization via compressed chunks.
Package transportpolicy defines the shared transport security policy for every client that sends Bearer credentials to an HTTP(S) destination (REM-TRANSPORT-001): HTTPS is required for non-loopback destinations, plain HTTP is only allowed on strict loopback, and redirects must never downgrade the scheme or change the origin before the Authorization header is forwarded.
Package transportpolicy defines the shared transport security policy for every client that sends Bearer credentials to an HTTP(S) destination (REM-TRANSPORT-001): HTTPS is required for non-loopback destinations, plain HTTP is only allowed on strict loopback, and redirects must never downgrade the scheme or change the origin before the Authorization header is forwarded.
Package tui implements the BubbleTea terminal UI for Cortex.
Package tui implements the BubbleTea terminal UI for Cortex.
Package update provides version checking and self-updating against GitHub releases.
Package update provides version checking and self-updating against GitHub releases.
vector
conformance
Package conformance provides the shared VectorIndex conformance suite (REQ-VEC-002, ADR-05, W8.4).
Package conformance provides the shared VectorIndex conformance suite (REQ-VEC-002, ADR-05, W8.4).
pgvector
Package pgvector implements the second external VectorIndex adapter (ADR-05, REQ-VEC-001/002).
Package pgvector implements the second external VectorIndex adapter (ADR-05, REQ-VEC-001/002).
purego
Package purego provides a zero-CGO, pure Go VectorIndex implementation.
Package purego provides a zero-CGO, pure Go VectorIndex implementation.
qdrant
Package qdrant implements the first external VectorIndex adapter (ADR-05, REQ-VEC-001/002).
Package qdrant implements the first external VectorIndex adapter (ADR-05, REQ-VEC-001/002).
sqlite_blob
Package sqlite_blob implements the always-available zero-CGO VectorIndex adapter (ADR-05, REQ-VEC-001).
Package sqlite_blob implements the always-available zero-CGO VectorIndex adapter (ADR-05, REQ-VEC-001).

Jump to

Keyboard shortcuts

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