internal/

directory
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0

Directories

Path Synopsis
Package agent is the declaration layer for autonomous assistants: the Agent type, discovery of agent.md files into an immutable Set, and a cron Scheduler.
Package agent is the declaration layer for autonomous assistants: the Agent type, discovery of agent.md files into an immutable Set, and a cron Scheduler.
Package auth is the daemon's device registry: it gates every WebSocket connection on a bearer a device obtained by pairing.
Package auth is the daemon's device registry: it gates every WebSocket connection on a bearer a device obtained by pairing.
Package chat persists conversations and multiplexes them — the layer agentkit deliberately leaves to the consumer.
Package chat persists conversations and multiplexes them — the layer agentkit deliberately leaves to the consumer.
Package discovery holds the vocabulary every discoverable kind shares (agents, skills, plugins, MCP servers): how a skipped item is recorded, and how an item's name is resolved.
Package discovery holds the vocabulary every discoverable kind shares (agents, skills, plugins, MCP servers): how a skipped item is recorded, and how an item's name is resolved.
Package extension is what a workspace installs, and the one declaration every installed thing shares.
Package extension is what a workspace installs, and the one declaration every installed thing shares.
Package frontmatter parses the YAML preamble a Markdown file may open with — the shape the Agent Skills standard uses, and the same one nocturn's memory notes use to describe themselves.
Package frontmatter parses the YAML preamble a Markdown file may open with — the shape the Agent Skills standard uses, and the same one nocturn's memory notes use to describe themselves.
Package hitl routes a gate approval to a human out of band: it presents the request to every attached connection and takes the first answer (first-committed-wins), or wakes a device via a Pusher when none is attached.
Package hitl routes a gate approval to a human out of band: it presents the request to every attached connection and takes the first answer (first-committed-wins), or wakes a device via a Pusher when none is attached.
Package knowledge is retrieval over a workspace's own documents: the folder you drop things into, chunked, embedded, and searched on demand.
Package knowledge is retrieval over a workspace's own documents: the folder you drop things into, chunked, embedded, and searched on demand.
embed
Package embed is the remote half of knowledge retrieval: an OpenAI-compatible /v1/embeddings client, and the only place in the tree that sends document text to a third party.
Package embed is the remote half of knowledge retrieval: an OpenAI-compatible /v1/embeddings client, and the only place in the tree that sends document text to a third party.
Package library is the curated catalog a person installs extensions from — the shop side of extending a workspace, as opposed to assembling a folder by hand.
Package library is the curated catalog a person installs extensions from — the shop side of extending a workspace, as opposed to assembling a folder by hand.
Package mail is the household's mailbox: reading it, and sending from it.
Package mail is the household's mailbox: reading it, and sending from it.
mcp
Package mcp connects to remote (HTTP) MCP servers — the SAFE half of MCP (ADR-9): a remote server runs no code on your machine, so talking to it is just gated HTTP.
Package mcp connects to remote (HTTP) MCP servers — the SAFE half of MCP (ADR-9): a remote server runs no code on your machine, so talking to it is just gated HTTP.
authflow
Package authflow implements the discovery half of the MCP authorization spec (2025-06-18): the client-side steps that turn a bare MCP server URL into concrete OAuth endpoints and a client id, so nocturn can run the interactive flow without hand-configured endpoints.
Package authflow implements the discovery half of the MCP authorization spec (2025-06-18): the client-side steps that turn a bare MCP server URL into concrete OAuth endpoints and a client id, so nocturn can run the interactive flow without hand-configured endpoints.
Package memory is the assistant's own durable memory: a per-workspace folder of Markdown files whose index (MEMORY.md) is folded into every system prompt, with the detail files loaded on demand.
Package memory is the assistant's own durable memory: a per-workspace folder of Markdown files whose index (MEMORY.md) is folded into every system prompt, with the detail files loaded on demand.
Package onnx runs a small ONNX graph in pure Go — no CGO, no shared library, no WebAssembly, and no dependency outside the standard library.
Package onnx runs a small ONNX graph in pure Go — no CGO, no shared library, no WebAssembly, and no dependency outside the standard library.
Package plugin runs installed, sandboxed plugins as ordinary model tools.
Package plugin runs installed, sandboxed plugins as ordinary model tools.
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus the APNs adapter (apns.go) that implements it.
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus the APNs adapter (apns.go) that implements it.
Package sandbox runs an untrusted WebAssembly guest (an interpreter such as QuickJS or MicroPython, or a compiled skill) under strict isolation on wazero.
Package sandbox runs an untrusted WebAssembly guest (an interpreter such as QuickJS or MicroPython, or a compiled skill) under strict isolation on wazero.
Package script runs untrusted JavaScript on the sandbox interpreter (QuickJS compiled to wasm) and bridges a script's actions through a single generic host gate onto the SAME agentkit tools the model uses.
Package script runs untrusted JavaScript on the sandbox interpreter (QuickJS compiled to wasm) and bridges a script's actions through a single generic host gate onto the SAME agentkit tools the model uses.
Package secret is the host's secret store and credential injection.
Package secret is the host's secret store and credential injection.
oauth
Package oauth runs the host side of OAuth2 (ADR-5): it obtains and refreshes access tokens so the gateway can inject a Bearer at the boundary.
Package oauth runs the host side of OAuth2 (ADR-5): it obtains and refreshes access tokens so the gateway can inject a Bearer at the boundary.
Package serve exposes a workspace's chats over a WebSocket: one backend, many fronts (daemon-as-truth).
Package serve exposes a workspace's chats over a WebSocket: one backend, many fronts (daemon-as-truth).
Package skill is nocturn's consumer-side skills layer: it reads the SKILL.md an extension carries (YAML frontmatter + Markdown body) into an agentkit.SkillSet, and provides skill_read for a skill's bundled files (Tier 3 of progressive disclosure).
Package skill is nocturn's consumer-side skills layer: it reads the SKILL.md an extension carries (YAML frontmatter + Markdown body) into an agentkit.SkillSet, and provides skill_read for a skill's bundled files (Tier 3 of progressive disclosure).
Package speaker answers "who said this" from 16 kHz PCM, entirely on the machine that runs nocturn: no CGO, no shared library, no service call, and no audio leaving the device.
Package speaker answers "who said this" from 16 kHz PCM, entirely on the machine that runs nocturn: no CGO, no shared library, no service call, and no audio leaving the device.
Package tools bundles nocturn's own gated tools — the thin ones whose whole body is "build an agentkit.Tool that gates its target on a shared kind before it acts".
Package tools bundles nocturn's own gated tools — the thin ones whose whole body is "build an agentkit.Tool that gates its target on a shared kind before it acts".
tui
Package tui is nocturn's terminal surface: a full-screen chat over the workspace facade.
Package tui is nocturn's terminal surface: a full-screen chat over the workspace facade.
logring
Package logring is a slog.Handler that keeps the last N records in memory for the terminal UI's log pane.
Package logring is a slog.Handler that keeps the last N records in memory for the terminal UI's log pane.
transcript
Package transcript is the ONE pure fold of a chat's rendered state — no terminal, no clock, no I/O. Both entry points reduce into the SAME View by the SAME builders, so the snapshot path and the live-stream path can never drift:
Package transcript is the ONE pure fold of a chat's rendered state — no terminal, no clock, no I/O. Both entry points reduce into the SAME View by the SAME builders, so the snapshot path and the live-stream path can never drift:
Package voice drives a duplex speech session against an agentkit.LiveLLM, brokering the tool calls it issues through the same ToolSet and the same gate machinery a typed chat uses.
Package voice drives a duplex speech session against an agentkit.LiveLLM, brokering the tool calls it issues through the same ToolSet and the same gate machinery a typed chat uses.
Package webui serves the browser front-end out of the binary itself.
Package webui serves the browser front-end out of the binary itself.
Package workspace is the composition root per workspace: it bundles the tools (the cage), the permission gate (policy + durable grants + approver), the persona, and the chat store and manager into one aggregate over a shared Host.
Package workspace is the composition root per workspace: it bundles the tools (the cage), the permission gate (policy + durable grants + approver), the persona, and the chat store and manager into one aggregate over a shared Host.

Jump to

Keyboard shortcuts

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