internal/

directory
v0.4.9 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package agent defines the abstract Agent interface that wraps any AI Coding CLI behind a single structured event stream.
Package agent defines the abstract Agent interface that wraps any AI Coding CLI behind a single structured event stream.
procutil
Package procutil — shared subprocess liveness helpers for bridge drivers that spawn an OS subprocess per AgentSession (claudecode, opencode, codex, pi, pty).
Package procutil — shared subprocess liveness helpers for bridge drivers that spawn an OS subprocess per AgentSession (claudecode, opencode, codex, pi, pty).
Package agentregistry — build an agent.Registry from a config.Config.
Package agentregistry — build an agent.Registry from a config.Config.
Package chatsession — AgentSession event dispatcher (multi-as Phase 1).
Package chatsession — AgentSession event dispatcher (multi-as Phase 1).
bridge
acp
Package acp implements the Agent Client Protocol client transport.
Package acp implements the Agent Client Protocol client transport.
claudecode
Package claudecode implements a bridge to the Claude Code CLI using stream-json mode over stdin/stdout.
Package claudecode implements a bridge to the Claude Code CLI using stream-json mode over stdin/stdout.
codex
Public Agent (template + live) for the codex app-server bridge.
Public Agent (template + live) for the codex app-server bridge.
cursor
Package cursor is the nightme bridge for the Cursor CLI.
Package cursor is the nightme bridge for the Cursor CLI.
dsh
Package dsh is the nightme bridge for DeepSeek Harness (dsh).
Package dsh is the nightme bridge for DeepSeek Harness (dsh).
dsh/host
Package host is the multiplexed client for a single shared dsh web daemon.
Package host is the multiplexed client for a single shared dsh web daemon.
opencode
Package opencode is the nightme bridge for the opencode CLI.
Package opencode is the nightme bridge for the opencode CLI.
pi
Package pi implements a bridge to the Pi coding agent using its native `pi --mode rpc` long-lived JSONL protocol.
Package pi implements a bridge to the Pi coding agent using its native `pi --mode rpc` long-lived JSONL protocol.
pty
Package pty also provides the Agent wrapper that turns a CLI command into a Starter/Agent backed by the PTY transport defined in this package.
Package pty also provides the Agent wrapper that turns a CLI command into a Starter/Agent backed by the PTY transport defined in this package.
Package channel — IM adapter interface and concrete adapters (Feishu, echo test stub).
Package channel — IM adapter interface and concrete adapters (Feishu, echo test stub).
bot
Package bot — implements channel.Channel.
Package bot — implements channel.Channel.
echo
Package echo implements a minimal Channel that prints everything to its configured writer.
Package echo implements a minimal Channel that prints everything to its configured writer.
feishu
Package feishu implements the Feishu channel adapter.
Package feishu implements the Feishu channel adapter.
telegram
Package telegram — registers the telegram Channel Builder in the channel registry.
Package telegram — registers the telegram Channel Builder in the channel registry.
Package chatsession — global AgentSessionPool (docs/CHATSTORE.md).
Package chatsession — global AgentSessionPool (docs/CHATSTORE.md).
Package chatstore is the in-process store for chat_sessions.json.
Package chatstore is the in-process store for chat_sessions.json.
Package command (commander.go) — the Commander dispatch surface.
Package command (commander.go) — the Commander dispatch surface.
close
Package close — /close's "stop + kill the bridge process" logic.
Package close — /close's "stop + kill the bridge process" logic.
cwd
Package cwd implements the `/cwd <path>` slash command.
Package cwd implements the `/cwd <path>` slash command.
format
Package format provides shared rendering helpers for slash command reply text (IM-friendly plain-text payloads).
Package format provides shared rendering helpers for slash command reply text (IM-friendly plain-text payloads).
gtw
Package gtw — agent invocation + unified reply sink.
Package gtw — agent invocation + unified reply sink.
newcmd
Package newcmd implements the `/new [<agent>]` slash command.
Package newcmd implements the `/new [<agent>]` slash command.
queue
Package queue implements the `/queue <message>` slash command.
Package queue implements the `/queue <message>` slash command.
review
Package review implements the `/review` slash command.
Package review implements the `/review` slash command.
services
Package services — EventBus[T] (F-54).
Package services — EventBus[T] (F-54).
steer
Package steer implements the `/steer <message>` slash command.
Package steer implements the `/steer <message>` slash command.
stop
Package stop implements the `/stop` slash command.
Package stop implements the `/stop` slash command.
think
Package think implements the `/think on|off` slash command.
Package think implements the `/think on|off` slash command.
tools
Package tools implements the `/tools on|off` slash command.
Package tools implements the `/tools on|off` slash command.
use
Package use implements the `/use <agent>` slash command.
Package use implements the `/use <agent>` slash command.
watch
Package watch implements the `/watch on|off` slash command.
Package watch implements the `/watch on|off` slash command.
Package config loads nightme configuration from a YAML file and applies environment-variable overrides.
Package config loads nightme configuration from a YAML file and applies environment-variable overrides.
Package daemoncontrol: cross-platform daemon lifecycle.
Package daemoncontrol: cross-platform daemon lifecycle.
Package errors defines nightme's unified error code surface.
Package errors defines nightme's unified error code surface.
Package gateway — the multi-channel inbound pump and the chat → session binding table.
Package gateway — the multi-channel inbound pump and the chat → session binding table.
inbound
Package inbound — tryActionDispatch: routes msg.Reaction to the wired services.ReactionRouter, and msg.Action (card button clicks) to Manager.SendPermission for pending approvals / AskUserQuestion.
Package inbound — tryActionDispatch: routes msg.Reaction to the wired services.ReactionRouter, and msg.Action (card button clicks) to Manager.SendPermission for pending approvals / AskUserQuestion.
inbound/teststubs
Package teststubs — test-double implementations of every inbound.Router dependency.
Package teststubs — test-double implementations of every inbound.Router dependency.
outbound
emitter_sink.go — RunOnce/Review event sink helpers.
emitter_sink.go — RunOnce/Review event sink helpers.
Package gatewaytest provides shared test fixtures for the gateway-side packages (gateway, gateway/outbound, gateway/inbound, command).
Package gatewaytest provides shared test fixtures for the gateway-side packages (gateway, gateway/outbound, gateway/inbound, command).
Package httpclient is the single home for outbound HTTP requests in nightme.
Package httpclient is the single home for outbound HTTP requests in nightme.
Package login defines the per-channel credential onboarding contract.
Package login defines the per-channel credential onboarding contract.
feishu
Package feishu implements login.Provider for the Feishu (飞书) channel.
Package feishu implements login.Provider for the Feishu (飞书) channel.
telegram
Package telegram implements login.Provider for the Telegram channel.
Package telegram implements login.Provider for the Telegram channel.
Package messages — wire-protocol message types shared by every component in the system: Channel adapters, the Gateway, the runtime event pump, and the outbound chokepoint.
Package messages — wire-protocol message types shared by every component in the system: Channel adapters, the Gateway, the runtime event pump, and the outbound chokepoint.
Cross-platform helpers that don't depend on platform-specific rules.
Cross-platform helpers that don't depend on platform-specific rules.
Package prcache — per-AgentSession cache for the GitHub / GitLab PR (or MR) associated with the current head branch, refreshed asynchronously on a 60s TTL.
Package prcache — per-AgentSession cache for the GitHub / GitLab PR (or MR) associated with the current head branch, refreshed asynchronously on a 60s TTL.
Package registry — AgentSessionEntry (v3 schema).
Package registry — AgentSessionEntry (v3 schema).
Package runtime — `nightme run` daemon core.
Package runtime — `nightme run` daemon core.
Package shell dispatches `!cmd` user input to a real shell (sh -c on Unix, cmd /c on Windows).
Package shell dispatches `!cmd` user input to a real shell (sh -c on Unix, cmd /c on Windows).
Package statusbar renders the per-turn session footer as a short slice of plain-text lines.
Package statusbar renders the per-turn session footer as a short slice of plain-text lines.
Package timeouts centralises the task-timeout policy for nightme.
Package timeouts centralises the task-timeout policy for nightme.
Package updater — self-update support for nightme.
Package updater — self-update support for nightme.
Package version — runtime version-check support.
Package version — runtime version-check support.
Package wfe — workflow engine.
Package wfe — workflow engine.

Jump to

Keyboard shortcuts

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