internal/

directory
v0.0.2 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package askengine is the unified entry engine shared by `panda ask` (CLI) and the web panel: one prompt in, three intents out — answer (pure LLM reply), tool_call (memory tools, executed and fed back), task (submitted to the node network, locally or delegated).
Package askengine is the unified entry engine shared by `panda ask` (CLI) and the web panel: one prompt in, three intents out — answer (pure LLM reply), tool_call (memory tools, executed and fed back), task (submitted to the node network, locally or delegated).
Package bus implements the WebSocket transport and wire protocol for node-to-node task delegation (design doc §10).
Package bus implements the WebSocket transport and wire protocol for node-to-node task delegation (design doc §10).
Package commander implements the three-tier capability execution: native (deterministic commands, no model), agent (AI CLI via adapter), and manual (human-notified).
Package commander implements the three-tier capability execution: native (deterministic commands, no model), agent (AI CLI via adapter), and manual (human-notified).
Package config loads PANDA node configuration from YAML.
Package config loads PANDA node configuration from YAML.
Package core hosts the node lifecycle: registration, heartbeat loop, and graceful shutdown.
Package core hosts the node lifecycle: registration, heartbeat loop, and graceful shutdown.
Package ctxstore implements the local context snapshot cache (design doc §12.4): a hash→data KV store over the `context` table with LRU eviction.
Package ctxstore implements the local context snapshot cache (design doc §12.4): a hash→data KV store over the `context` table with LRU eviction.
Package defense implements the task-loop defense chain (design doc §14) and the permission model (design doc §16).
Package defense implements the task-loop defense chain (design doc §14) and the permission model (design doc §16).
Package entry implements the unified entry model (design doc §7): one model call classifies a user request as an answer, a controlled tool call, or a structured task.
Package entry implements the unified entry model (design doc §7): one model call classifies a user request as an answer, a controlled tool call, or a structured task.
Package executil wraps os/exec so child processes can be hidden on Windows.
Package executil wraps os/exec so child processes can be hidden on Windows.
Package hwinfo probes the host machine's hardware identity (hostname, CPU model, RAM).
Package hwinfo probes the host machine's hardware identity (hostname, CPU model, RAM).
Package i18n provides the CLI's user-facing strings in the five project languages (the same set the READMEs and web console ship).
Package i18n provides the CLI's user-facing strings in the five project languages (the same set the READMEs and web console ship).
Package install implements `panda install` / `panda uninstall` / `panda doctor`: placing the binary on PATH (persistently, per-OS), and a whitelist-based uninstall that backs up and removes only OpenPanda-owned state while preserving user assets (projects, memory, skills, work).
Package install implements `panda install` / `panda uninstall` / `panda doctor`: placing the binary on PATH (persistently, per-OS), and a whitelist-based uninstall that backs up and removes only OpenPanda-owned state while preserving user assets (projects, memory, skills, work).
Package ledger manages the local capability directory (SQLite cache of node capability cards) and this node's self-registration.
Package ledger manages the local capability directory (SQLite cache of node capability cards) and this node's self-registration.
Package log provides structured JSON logging over slog.
Package log provides structured JSON logging over slog.
Package mcp is a minimal Model Context Protocol (MCP) client over stdio.
Package mcp is a minimal Model Context Protocol (MCP) client over stdio.
Package mdtext converts light Markdown into the two forms OpenPanda's surfaces need beyond a rendered web page:
Package mdtext converts light Markdown into the two forms OpenPanda's surfaces need beyond a rendered web page:
Package memory implements the two-layer memory system (design doc §17): Hermes personal-assistant memory and per-project memory, kept physically isolated by an isolation wall.
Package memory implements the two-layer memory system (design doc §17): Hermes personal-assistant memory and per-project memory, kept physically isolated by an isolation wall.
Package reminders implements scheduled user reminders (design P1-28): "提醒我 5 分钟后开会" — a reminder is persisted in SQLite, and a Scanner running in the daemon (and/or the web panel) claims each reminder when it comes due and fires a callback (log line, Web Push notification, SSE change signal).
Package reminders implements scheduled user reminders (design P1-28): "提醒我 5 分钟后开会" — a reminder is persisted in SQLite, and a Scanner running in the daemon (and/or the web panel) claims each reminder when it comes due and fires a callback (log line, Web Push notification, SSE change signal).
Package scheduler implements the P2P per-edge routing decision (design doc §6.4, §2.4 DCPS analogy).
Package scheduler implements the P2P per-edge routing decision (design doc §6.4, §2.4 DCPS analogy).
queue
Package queue implements the node-local task queue scheduler: it decides which queued task runs next on this node.
Package queue implements the node-local task queue scheduler: it decides which queued task runs next on this node.
Package security implements the execution-side hardening of design doc §16 and plan P3-29..P3-32: a sandboxed subprocess environment, network egress validation, secret scrubbing, and a high-risk audit trail.
Package security implements the execution-side hardening of design doc §16 and plan P3-29..P3-32: a sandboxed subprocess environment, network egress validation, secret scrubbing, and a high-risk audit trail.
Package sessions implements the web console's conversation model: each session is one chat thread plus — when the working directory is a git repository — a dedicated git worktree, so changes made while answering a session's prompts land on an isolated branch instead of the user's checkout (the codex / claude-code working model).
Package sessions implements the web console's conversation model: each session is one chat thread plus — when the working directory is a git repository — a dedicated git worktree, so changes made while answering a session's prompts land on an isolated branch instead of the user's checkout (the codex / claude-code working model).
Package skills implements the self-evolving procedural-memory layer (design §8): reusable workflows distilled from task history into SKILL.md files.
Package skills implements the self-evolving procedural-memory layer (design §8): reusable workflows distilled from task history into SKILL.md files.
Package storage wraps the local SQLite database (WAL mode).
Package storage wraps the local SQLite database (WAL mode).
Package util holds small shared helpers.
Package util holds small shared helpers.
Package version holds the build version in one place so both the CLI (`panda version`) and the web panel (/api/version) report the same value.
Package version holds the build version in one place so both the CLI (`panda version`) and the web panel (/api/version) report the same value.

Jump to

Keyboard shortcuts

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