internal/

directory
v1.0.1 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 aicost records Anthropic API token usage and computed USD cost.
Package aicost records Anthropic API token usage and computed USD cost.
Package arch manages architecture snapshots for projects.
Package arch manages architecture snapshots for projects.
Package atom implements the MemoryAtom domain: atomic fact units extracted from decisions, knowledge items, and procedural memories.
Package atom implements the MemoryAtom domain: atomic fact units extracted from decisions, knowledge items, and procedural memories.
Package auth provides the compile-time capability token for authenticated requests.
Package auth provides the compile-time capability token for authenticated requests.
Package behaviorrule implements the BehaviorRule domain: persisted AI-derived or manually-authored rules that guide agent behavior.
Package behaviorrule implements the BehaviorRule domain: persisted AI-derived or manually-authored rules that guide agent behavior.
Package buildinfo is the single source of truth for the process's build identity: the version/commit/date this specific binary was built from.
Package buildinfo is the single source of truth for the process's build identity: the version/commit/date this specific binary was built from.
SessionStart hook logic for `wbt context session-start` (formerly the standalone wbt-context binary).
SessionStart hook logic for `wbt context session-start` (formerly the standalone wbt-context binary).
Package completioncandidate implements detection rules that surface GTD tasks that appear done but whose status is still pending or in_progress.
Package completioncandidate implements detection rules that surface GTD tasks that appear done but whose status is still pending or in_progress.
Package contextpack assembles a bounded, budget-capped "context pack" of the most relevant GTD/decision/knowledge/memory items for a given objective, so an agent (or a human) can be handed a compact brief instead of re-reading the whole workspace.
Package contextpack assembles a bounded, budget-capped "context pack" of the most relevant GTD/decision/knowledge/memory items for a given objective, so an agent (or a human) can be handed a compact brief instead of re-reading the whole workspace.
Package db contains sqlc-generated query and model types for PostgreSQL.
Package db contains sqlc-generated query and model types for PostgreSQL.
Package decay implements the Ebbinghaus forgetting curve strength formula used by the SQLite backend (which cannot run SQL math via EXTRACT EPOCH).
Package decay implements the Ebbinghaus forgetting curve strength formula used by the SQLite backend (which cannot run SQL math via EXTRACT EPOCH).
Package discipline implements the meta-rule drift-detection store: every successful mutating MCP tool call is recorded as a discipline_events row, and the system_health tool surfaces "drift signals" (mutating events that happened without a recent log_decision / confirm_plan in the same session).
Package discipline implements the meta-rule drift-detection store: every successful mutating MCP tool call is recorded as a discipline_events row, and the system_health tool surfaces "drift signals" (mutating events that happened without a recent log_decision / confirm_plan in the same session).
conflict_grader.go is a minimal type/interface placeholder for the conflict-detection eval category (superseded-chain resolution across memory items).
conflict_grader.go is a minimal type/interface placeholder for the conflict-detection eval category (superseded-chain resolution across memory items).
Package gtd fuzzy_reconcile.go implements the Phase 2 fuzzy matcher used by reconcile_merged_prs (sprint feature/0519-gtd-reconcile-phase2, GTD-fix 10/12) for legacy backlog tasks whose branch_name / pr_url linkage is NULL — i.e.
Package gtd fuzzy_reconcile.go implements the Phase 2 fuzzy matcher used by reconcile_merged_prs (sprint feature/0519-gtd-reconcile-phase2, GTD-fix 10/12) for legacy backlog tasks whose branch_name / pr_url linkage is NULL — i.e.
Package guard implements the wbt-guard PreToolUse hook for observing and classifying Claude Code tool invocations.
Package guard implements the wbt-guard PreToolUse hook for observing and classifying Claude Code tool invocations.
Package handler — reconcile_handler.go exposes POST /api/tasks/reconcile-merged-prs.
Package handler — reconcile_handler.go exposes POST /api/tasks/reconcile-merged-prs.
Package httpguard provides SSRF-protection helpers for outbound HTTP clients that accept user-configured base URLs (e.g.
Package httpguard provides SSRF-protection helpers for outbound HTTP clients that accept user-configured base URLs (e.g.
Package lifecycle provides process supervision primitives for the wbt CLI: spawn a server process in the background, write a PID file, query status, and stop it cleanly.
Package lifecycle provides process supervision primitives for the wbt CLI: spawn a server process in the background, write a PID file, query status, and stop it cleanly.
Package likeescape holds the single ILIKE/LIKE pattern-escaping helper that was duplicated verbatim across the Postgres skill/atom stores (as escapeLikePostgres) and the SQLite knowledge store (as escapeLike).
Package likeescape holds the single ILIKE/LIKE pattern-escaping helper that was duplicated verbatim across the Postgres skill/atom stores (as escapeLikePostgres) and the SQLite knowledge store (as escapeLike).
Package llm provides a provider-neutral abstraction for JSON text-generation LLM tasks (e.g.
Package llm provides a provider-neutral abstraction for JSON text-generation LLM tasks (e.g.
Package mcp — tools_reconcile.go exposes the reconcile_merged_prs MCP tool.
Package mcp — tools_reconcile.go exposes the reconcile_merged_prs MCP tool.
Package mcprunner is the shared MCP stdio transport entry point invoked by `cmd/wbt mcp` (wired into .mcp.json by `wbt init`).
Package mcprunner is the shared MCP stdio transport entry point invoked by `cmd/wbt mcp` (wired into .mcp.json by `wbt init`).
Package mergedprs persists observed merged PRs so a daily fuzzy-match detector can correlate them against legacy backlog tasks whose branch_name / pr_url linkage is null.
Package mergedprs persists observed merged PRs so a daily fuzzy-match detector can correlate them against legacy backlog tasks whose branch_name / pr_url linkage is null.
Package outcome implements the Outcome + Evaluation bounded context.
Package outcome implements the Outcome + Evaluation bounded context.
Package pgconv holds small Go-value <-> pgtype conversion helpers that were duplicated verbatim across the gtd, decision, session, workspace, vision, and proposal store.go files.
Package pgconv holds small Go-value <-> pgtype conversion helpers that were duplicated verbatim across the gtd, decision, session, workspace, vision, and proposal store.go files.
Package playbook implements the Playbook domain: generalised procedural rules derived from recurring decisions ("if I see X situation, do Y action").
Package playbook implements the Playbook domain: generalised procedural rules derived from recurring decisions ("if I see X situation, do Y action").
Package procedural implements the ProceduralMemory domain: first-class storage for "how-to" knowledge derived from past experience.
Package procedural implements the ProceduralMemory domain: first-class storage for "how-to" knowledge derived from past experience.
Package proposal manages pending agent-originated entities awaiting user confirmation before they become real (goals, projects, tasks, concepts).
Package proposal manages pending agent-originated entities awaiting user confirmation before they become real (goals, projects, tasks, concepts).
Package redact provides credential-pattern scrubbing for strings shipped to upstream LLM providers, log sinks, or persisted fields.
Package redact provides credential-pattern scrubbing for strings shipped to upstream LLM providers, log sinks, or persisted fields.
Package reflection implements the Reflection domain: persisted AI-generated reflection records for daily reviews, weekly summaries, and entity-specific analysis (task, decision, proposal, knowledge, system).
Package reflection implements the Reflection domain: persisted AI-generated reflection records for daily reviews, weekly summaries, and entity-specific analysis (task, decision, proposal, knowledge, system).
Package runtime exposes process-wide configuration read at startup time: most importantly the optional workspace context that scopes every domain Store.
Package runtime exposes process-wide configuration read at startup time: most importantly the optional workspace context that scopes every domain Store.
Package shim provides the shared wbt-subcommand shim implementation used by the legacy hook binaries (wbt-context, wbt-hook, wbt-doctor) so that existing ~/.claude/settings.json absolute-path entries keep working after Phase 2.3 collapsed the hook logic into `wbt` subcommands.
Package shim provides the shared wbt-subcommand shim implementation used by the legacy hook binaries (wbt-context, wbt-hook, wbt-doctor) so that existing ~/.claude/settings.json absolute-path entries keep working after Phase 2.3 collapsed the hook logic into `wbt` subcommands.
Package skill provides the Skill Library domain — reusable Claude Code skill definitions extracted from successful sessions.
Package skill provides the Skill Library domain — reusable Claude Code skill definitions extracted from successful sessions.
Package snapshot manages project status snapshots — Haiku-generated structured summaries of a project's current state (sprint progress, gap analysis, pending work).
Package snapshot manages project status snapshots — Haiku-generated structured summaries of a project's current state (sprint progress, gap analysis, pending work).
Package storage's ServerStores bundle is the backend-agnostic surface used by the HTTP server (cmd/server) and the MCP server (cmd/mcp) to obtain a working set of domain stores without compile-time coupling to a specific backend (Postgres pgxpool vs.
Package storage's ServerStores bundle is the backend-agnostic surface used by the HTTP server (cmd/server) and the MCP server (cmd/mcp) to obtain a working set of domain stores without compile-time coupling to a specific backend (Postgres pgxpool vs.
sqlite
Package sqlite is the SQLite-backed implementation of the wayneblacktea storage interfaces, intended for friend-grade self-hosting (one binary + one .db file, no Postgres server).
Package sqlite is the SQLite-backed implementation of the wayneblacktea storage interfaces, intended for friend-grade self-hosting (one binary + one .db file, no Postgres server).
Package timeline aggregates events from multiple domain stores into a unified chronological feed for the Personal OS calendar feature.
Package timeline aggregates events from multiple domain stores into a unified chronological feed for the Personal OS calendar feature.
Package validator provides input quality checks for GTD entries and related user-facing fields.
Package validator provides input quality checks for GTD entries and related user-facing fields.
Package vision implements the Vision domain: first-class storage for "future ideas that can't be acted on now".
Package vision implements the Vision domain: first-class storage for "future ideas that can't be acted on now".
Package watchdog records recent MCP tool invocations in process memory and surfaces lightweight system-health signals (stuck tasks, pending review queue depth, last N tool calls).
Package watchdog records recent MCP tool invocations in process memory and surfaces lightweight system-health signals (stuck tasks, pending review queue depth, last N tool calls).
Package worksession implements the work_session first-class data model introduced in P0a-α Session Core.
Package worksession implements the work_session first-class data model introduced in P0a-α Session Core.

Jump to

Keyboard shortcuts

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